From 5ccc3a292d4103458e16f20269bffdf8448a0160 Mon Sep 17 00:00:00 2001 From: Uttam Krishna Ukkoji Date: Fri, 16 Jul 2021 10:09:07 +0530 Subject: [PATCH 1/3] fix: :bug: Formdata retry --- .talismanrc | 10 +-- dist/es-modules/core/concurrency-queue.js | 27 ++++++- dist/es-modules/entity.js | 27 +++---- dist/es-modules/stack/asset/index.js | 48 +++++++------ .../stack/contentType/entry/index.js | 10 +-- dist/es-modules/stack/contentType/index.js | 10 +-- dist/es-modules/stack/extension/index.js | 72 ++++++++++--------- dist/es-modules/stack/globalField/index.js | 10 +-- dist/es-modules/stack/webhook/index.js | 10 +-- dist/es5/core/concurrency-queue.js | 27 ++++++- dist/es5/entity.js | 27 +++---- dist/es5/stack/asset/index.js | 48 +++++++------ dist/es5/stack/contentType/entry/index.js | 10 +-- dist/es5/stack/contentType/index.js | 10 +-- dist/es5/stack/extension/index.js | 72 ++++++++++--------- dist/es5/stack/globalField/index.js | 10 +-- dist/es5/stack/webhook/index.js | 10 +-- dist/nativescript/contentstack-management.js | 2 +- dist/node/contentstack-management.js | 4 +- dist/react-native/contentstack-management.js | 2 +- dist/web/contentstack-management.js | 2 +- jsdocs/Asset.html | 2 +- jsdocs/BulkOperation.html | 2 +- jsdocs/ContentType.html | 2 +- jsdocs/Contentstack.html | 2 +- jsdocs/ContentstackClient.html | 2 +- jsdocs/DeliveryToken.html | 2 +- jsdocs/Entry.html | 2 +- jsdocs/Environment.html | 2 +- jsdocs/Extension.html | 2 +- jsdocs/Folder.html | 2 +- jsdocs/GlobalField.html | 2 +- jsdocs/Label.html | 2 +- jsdocs/Locale.html | 2 +- jsdocs/Organization.html | 2 +- jsdocs/PublishRules.html | 2 +- jsdocs/Release.html | 2 +- jsdocs/Role.html | 2 +- jsdocs/Stack.html | 2 +- jsdocs/User.html | 2 +- jsdocs/Webhook.html | 2 +- jsdocs/Workflow.html | 2 +- jsdocs/contentstack.js.html | 2 +- jsdocs/contentstackClient.js.html | 2 +- jsdocs/index.html | 2 +- jsdocs/organization_index.js.html | 2 +- jsdocs/query_index.js.html | 2 +- jsdocs/stack_asset_folders_index.js.html | 2 +- jsdocs/stack_asset_index.js.html | 43 ++++++----- jsdocs/stack_bulkOperation_index.js.html | 2 +- jsdocs/stack_contentType_entry_index.js.html | 12 ++-- jsdocs/stack_contentType_index.js.html | 12 ++-- jsdocs/stack_deliveryToken_index.js.html | 2 +- jsdocs/stack_environment_index.js.html | 2 +- jsdocs/stack_extension_index.js.html | 57 +++++++-------- jsdocs/stack_globalField_index.js.html | 12 ++-- jsdocs/stack_index.js.html | 2 +- jsdocs/stack_label_index.js.html | 2 +- jsdocs/stack_locale_index.js.html | 2 +- jsdocs/stack_release_index.js.html | 2 +- jsdocs/stack_roles_index.js.html | 2 +- jsdocs/stack_webhook_index.js.html | 12 ++-- jsdocs/stack_workflow_index.js.html | 2 +- .../stack_workflow_publishRules_index.js.html | 2 +- jsdocs/user_index.js.html | 2 +- lib/core/concurrency-queue.js | 23 +++++- lib/entity.js | 1 - lib/stack/asset/index.js | 41 +++++------ lib/stack/contentType/entry/index.js | 10 +-- lib/stack/contentType/index.js | 10 +-- lib/stack/extension/index.js | 55 +++++++------- lib/stack/globalField/index.js | 10 +-- lib/stack/webhook/index.js | 10 +-- test/unit/concurrency-Queue-test.js | 45 +++++++++++- 74 files changed, 511 insertions(+), 366 deletions(-) diff --git a/.talismanrc b/.talismanrc index 705fa16f..b73e439a 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,11 +1,11 @@ fileignoreconfig: - filename: jsdocs/stack_environment_index.js.html - checksum: ef24cd9f2e12802a1abbbc440e22c486863b90823050bf0c7ed17cd95d6d0669 + checksum: 1093109567f5d30a23900af471422ccbad4c24aac2415d5bdd4f4f1eb95b27b3 - filename: dist/node/contentstack-management.js - checksum: 8313dfeaa7e856ae355b2ef9d9beac095c8b1c7c93aafb9ab73f0d86c23e29ec + checksum: 04714b8c8d21f1aec36faed12738dd8d5c16bca6197b57309f87208a15be1c37 - filename: dist/nativescript/contentstack-management.js - checksum: bb55ba77624c3f000c56c9f9730016883be9863973e9177c4e8a3a70fa9796e1 + checksum: dd7ca11b797a1e00d863a2474433b37c5517d7fe69977dd506680432e7f8c19c - filename: dist/react-native/contentstack-management.js - checksum: 8edb4ff3adf9f4a4d21047e8aeac28231a3711fae001ef805c8fd093bd211634 + checksum: 9fdd9277c186a8b670813528c89f8a21484122ca2aca6d4f7b3d501153ed936d - filename: dist/web/contentstack-management.js - checksum: a04259dd778b2f49aa5652299bdc7828e402de2167f24c33acfa8604ce662c0a + checksum: 16fce6e8acfa61a77bb2e900347c17b6bc6f465aeefeac99fb22ec221dffff10 diff --git a/dist/es-modules/core/concurrency-queue.js b/dist/es-modules/core/concurrency-queue.js index ee84dc9d..1e88b957 100644 --- a/dist/es-modules/core/concurrency-queue.js +++ b/dist/es-modules/core/concurrency-queue.js @@ -84,6 +84,12 @@ export function ConcurrencyQueue(_ref) { var requestHandler = function requestHandler(request) { + if (typeof request.data === 'function') { + request.formdata = request.data; + request.data = transformFormData(request); + } + + console.log(request.data); request.retryCount = request.retryCount || 0; if (request.headers.authorization && request.headers.authorization !== undefined) { @@ -108,6 +114,13 @@ export function ConcurrencyQueue(_ref) { } return new Promise(function (resolve) { + request.onComplete = function () { + _this.running.pop({ + request: request, + resolve: resolve + }); + }; + _this.push({ request: request, resolve: resolve @@ -141,8 +154,7 @@ export function ConcurrencyQueue(_ref) { var responseHandler = function responseHandler(response) { - _this.running.shift(); - + response.config.onComplete(); shift(); return response; }; @@ -247,10 +259,21 @@ export function ConcurrencyQueue(_ref) { } } + requestConfig.data = transformFormData(requestConfig); requestConfig.transformRequest = [function (data) { return data; }]; return requestConfig; + }; + + var transformFormData = function transformFormData(request) { + if (request.formdata) { + var formdata = request.formdata(); + request.headers = _objectSpread(_objectSpread({}, request.headers), formdata.getHeaders()); + return formdata; + } + + return request.data; }; // Adds interseptors in axios to queue request diff --git a/dist/es-modules/entity.js b/dist/es-modules/entity.js index f0ab56ca..aff3a5f5 100644 --- a/dist/es-modules/entity.js +++ b/dist/es-modules/entity.js @@ -147,7 +147,7 @@ export var upload = /*#__PURE__*/function () { case 0: http = _ref6.http, urlPath = _ref6.urlPath, stackHeaders = _ref6.stackHeaders, formData = _ref6.formData, params = _ref6.params, _ref6$method = _ref6.method, method = _ref6$method === void 0 ? 'POST' : _ref6$method; headers = { - headers: _objectSpread(_objectSpread(_objectSpread({}, params), formData.getHeaders()), cloneDeep(stackHeaders)) + headers: _objectSpread(_objectSpread({}, params), cloneDeep(stackHeaders)) } || {}; if (!(method === 'POST')) { @@ -186,38 +186,39 @@ export var create = function create(_ref8) { headers: _objectSpread(_objectSpread({}, cloneDeep(params)), cloneDeep(this.stackHeaders)), params: _objectSpread({}, cloneDeep(param)) } || {}; - _context5.prev = 1; - _context5.next = 4; + console.log('Entry ', data); + _context5.prev = 2; + _context5.next = 5; return http.post(this.urlPath, data, headers); - case 4: + case 5: response = _context5.sent; if (!response.data) { - _context5.next = 9; + _context5.next = 10; break; } return _context5.abrupt("return", new this.constructor(http, parseData(response, this.stackHeaders, this.content_type_uid))); - case 9: + case 10: throw error(response); - case 10: - _context5.next = 15; + case 11: + _context5.next = 16; break; - case 12: - _context5.prev = 12; - _context5.t0 = _context5["catch"](1); + case 13: + _context5.prev = 13; + _context5.t0 = _context5["catch"](2); throw error(_context5.t0); - case 15: + case 16: case "end": return _context5.stop(); } } - }, _callee5, this, [[1, 12]]); + }, _callee5, this, [[2, 13]]); })); return function (_x8, _x9) { diff --git a/dist/es-modules/stack/asset/index.js b/dist/es-modules/stack/asset/index.js index 1457600b..96f752bc 100644 --- a/dist/es-modules/stack/asset/index.js +++ b/dist/es-modules/stack/asset/index.js @@ -327,27 +327,29 @@ export function AssetCollection(http, data) { } function createFormData(data) { - var formData = new FormData(); - - if (typeof data['parent_uid'] === 'string') { - formData.append('asset[parent_uid]', data['parent_uid']); - } - - if (typeof data.description === 'string') { - formData.append('asset[description]', data.description); - } - - if (data.tags instanceof Array) { - formData.append('asset[tags]', data.tags.join(',')); - } else if (typeof data.tags === 'string') { - formData.append('asset[tags]', data.tags); - } - - if (typeof data.title === 'string') { - formData.append('asset[title]', data.title); - } - - var uploadStream = createReadStream(data.upload); - formData.append('asset[upload]', uploadStream); - return formData; + return function () { + var formData = new FormData(); + + if (typeof data['parent_uid'] === 'string') { + formData.append('asset[parent_uid]', data['parent_uid']); + } + + if (typeof data.description === 'string') { + formData.append('asset[description]', data.description); + } + + if (data.tags instanceof Array) { + formData.append('asset[tags]', data.tags.join(',')); + } else if (typeof data.tags === 'string') { + formData.append('asset[tags]', data.tags); + } + + if (typeof data.title === 'string') { + formData.append('asset[title]', data.title); + } + + var uploadStream = createReadStream(data.upload); + formData.append('asset[upload]', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es-modules/stack/contentType/entry/index.js b/dist/es-modules/stack/contentType/entry/index.js index cd30cab2..b2aa1d63 100644 --- a/dist/es-modules/stack/contentType/entry/index.js +++ b/dist/es-modules/stack/contentType/entry/index.js @@ -356,8 +356,10 @@ export function EntryCollection(http, data) { } function createFormData(entry) { - var formData = new FormData(); - var uploadStream = createReadStream(entry); - formData.append('entry', uploadStream); - return formData; + return function () { + var formData = new FormData(); + var uploadStream = createReadStream(entry); + formData.append('entry', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es-modules/stack/contentType/index.js b/dist/es-modules/stack/contentType/index.js index 36b018cc..c7b2a6ba 100644 --- a/dist/es-modules/stack/contentType/index.js +++ b/dist/es-modules/stack/contentType/index.js @@ -246,8 +246,10 @@ export function ContentTypeCollection(http, data) { } function createFormData(data) { - var formData = new FormData(); - var uploadStream = createReadStream(data.content_type); - formData.append('content_type', uploadStream); - return formData; + return function () { + var formData = new FormData(); + var uploadStream = createReadStream(data.content_type); + formData.append('content_type', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es-modules/stack/extension/index.js b/dist/es-modules/stack/extension/index.js index ea04d20d..e1f5eeee 100644 --- a/dist/es-modules/stack/extension/index.js +++ b/dist/es-modules/stack/extension/index.js @@ -209,39 +209,41 @@ export function ExtensionCollection(http, data) { } function createExtensionFormData(data) { - var formData = new FormData(); - - if (typeof data.title === 'string') { - formData.append('extension[title]', data.title); - } - - if (_typeof(data.scope) === 'object') { - formData.append('extension[scope]', "".concat(data.scope)); - } - - if (typeof data['data_type'] === 'string') { - formData.append('extension[data_type]', data['data_type']); - } - - if (typeof data.type === 'string') { - formData.append('extension[type]', data.type); - } - - if (data.tags instanceof Array) { - formData.append('extension[tags]', data.tags.join(',')); - } else if (typeof data.tags === 'string') { - formData.append('extension[tags]', data.tags); - } - - if (typeof data.multiple === 'boolean') { - formData.append('extension[multiple]', "".concat(data.multiple)); - } - - if (typeof data.enable === 'boolean') { - formData.append('extension[enable]', "".concat(data.enable)); - } - - var uploadStream = createReadStream(data.upload); - formData.append('extension[upload]', uploadStream); - return formData; + return function () { + var formData = new FormData(); + + if (typeof data.title === 'string') { + formData.append('extension[title]', data.title); + } + + if (_typeof(data.scope) === 'object') { + formData.append('extension[scope]', "".concat(data.scope)); + } + + if (typeof data['data_type'] === 'string') { + formData.append('extension[data_type]', data['data_type']); + } + + if (typeof data.type === 'string') { + formData.append('extension[type]', data.type); + } + + if (data.tags instanceof Array) { + formData.append('extension[tags]', data.tags.join(',')); + } else if (typeof data.tags === 'string') { + formData.append('extension[tags]', data.tags); + } + + if (typeof data.multiple === 'boolean') { + formData.append('extension[multiple]', "".concat(data.multiple)); + } + + if (typeof data.enable === 'boolean') { + formData.append('extension[enable]', "".concat(data.enable)); + } + + var uploadStream = createReadStream(data.upload); + formData.append('extension[upload]', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es-modules/stack/globalField/index.js b/dist/es-modules/stack/globalField/index.js index 922ef8aa..e0eafd22 100644 --- a/dist/es-modules/stack/globalField/index.js +++ b/dist/es-modules/stack/globalField/index.js @@ -193,8 +193,10 @@ export function GlobalFieldCollection(http, data) { } function createFormData(data) { - var formData = new FormData(); - var uploadStream = createReadStream(data.global_field); - formData.append('global_field', uploadStream); - return formData; + return function () { + var formData = new FormData(); + var uploadStream = createReadStream(data.global_field); + formData.append('global_field', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es-modules/stack/webhook/index.js b/dist/es-modules/stack/webhook/index.js index 28145769..985d60f4 100644 --- a/dist/es-modules/stack/webhook/index.js +++ b/dist/es-modules/stack/webhook/index.js @@ -346,8 +346,10 @@ export function WebhookCollection(http, data) { } function createFormData(data) { - var formData = new FormData(); - var uploadStream = createReadStream(data.webhook); - formData.append('webhook', uploadStream); - return formData; + return function () { + var formData = new FormData(); + var uploadStream = createReadStream(data.webhook); + formData.append('webhook', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/core/concurrency-queue.js b/dist/es5/core/concurrency-queue.js index b33de52f..ed394e1a 100644 --- a/dist/es5/core/concurrency-queue.js +++ b/dist/es5/core/concurrency-queue.js @@ -102,6 +102,12 @@ function ConcurrencyQueue(_ref) { var requestHandler = function requestHandler(request) { + if (typeof request.data === 'function') { + request.formdata = request.data; + request.data = transformFormData(request); + } + + console.log(request.data); request.retryCount = request.retryCount || 0; if (request.headers.authorization && request.headers.authorization !== undefined) { @@ -127,6 +133,13 @@ function ConcurrencyQueue(_ref) { } return new Promise(function (resolve) { + request.onComplete = function () { + _this.running.pop({ + request: request, + resolve: resolve + }); + }; + _this.push({ request: request, resolve: resolve @@ -160,8 +173,7 @@ function ConcurrencyQueue(_ref) { var responseHandler = function responseHandler(response) { - _this.running.shift(); - + response.config.onComplete(); shift(); return response; }; @@ -266,10 +278,21 @@ function ConcurrencyQueue(_ref) { } } + requestConfig.data = transformFormData(requestConfig); requestConfig.transformRequest = [function (data) { return data; }]; return requestConfig; + }; + + var transformFormData = function transformFormData(request) { + if (request.formdata) { + var formdata = request.formdata(); + request.headers = _objectSpread(_objectSpread({}, request.headers), formdata.getHeaders()); + return formdata; + } + + return request.data; }; // Adds interseptors in axios to queue request diff --git a/dist/es5/entity.js b/dist/es5/entity.js index f31fd27d..60f85928 100644 --- a/dist/es5/entity.js +++ b/dist/es5/entity.js @@ -183,7 +183,7 @@ var upload = /*#__PURE__*/exports.upload = function () { case 0: http = _ref6.http, urlPath = _ref6.urlPath, stackHeaders = _ref6.stackHeaders, formData = _ref6.formData, params = _ref6.params, _ref6$method = _ref6.method, method = _ref6$method === void 0 ? 'POST' : _ref6$method; headers = { - headers: _objectSpread(_objectSpread(_objectSpread({}, params), formData.getHeaders()), (0, _cloneDeep2["default"])(stackHeaders)) + headers: _objectSpread(_objectSpread({}, params), (0, _cloneDeep2["default"])(stackHeaders)) } || {}; if (!(method === 'POST')) { @@ -223,38 +223,39 @@ var create = exports.create = function create(_ref8) { headers: _objectSpread(_objectSpread({}, (0, _cloneDeep2["default"])(params)), (0, _cloneDeep2["default"])(this.stackHeaders)), params: _objectSpread({}, (0, _cloneDeep2["default"])(param)) } || {}; - _context5.prev = 1; - _context5.next = 4; + console.log('Entry ', data); + _context5.prev = 2; + _context5.next = 5; return http.post(this.urlPath, data, headers); - case 4: + case 5: response = _context5.sent; if (!response.data) { - _context5.next = 9; + _context5.next = 10; break; } return _context5.abrupt("return", new this.constructor(http, parseData(response, this.stackHeaders, this.content_type_uid))); - case 9: + case 10: throw (0, _contentstackError2["default"])(response); - case 10: - _context5.next = 15; + case 11: + _context5.next = 16; break; - case 12: - _context5.prev = 12; - _context5.t0 = _context5["catch"](1); + case 13: + _context5.prev = 13; + _context5.t0 = _context5["catch"](2); throw (0, _contentstackError2["default"])(_context5.t0); - case 15: + case 16: case "end": return _context5.stop(); } } - }, _callee5, this, [[1, 12]]); + }, _callee5, this, [[2, 13]]); })); return function (_x8, _x9) { diff --git a/dist/es5/stack/asset/index.js b/dist/es5/stack/asset/index.js index 93de17a8..4afb2b2a 100644 --- a/dist/es5/stack/asset/index.js +++ b/dist/es5/stack/asset/index.js @@ -358,27 +358,29 @@ function AssetCollection(http, data) { } function createFormData(data) { - var formData = new _formData2["default"](); - - if (typeof data['parent_uid'] === 'string') { - formData.append('asset[parent_uid]', data['parent_uid']); - } - - if (typeof data.description === 'string') { - formData.append('asset[description]', data.description); - } - - if (data.tags instanceof Array) { - formData.append('asset[tags]', data.tags.join(',')); - } else if (typeof data.tags === 'string') { - formData.append('asset[tags]', data.tags); - } - - if (typeof data.title === 'string') { - formData.append('asset[title]', data.title); - } - - var uploadStream = (0, _fs.createReadStream)(data.upload); - formData.append('asset[upload]', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + + if (typeof data['parent_uid'] === 'string') { + formData.append('asset[parent_uid]', data['parent_uid']); + } + + if (typeof data.description === 'string') { + formData.append('asset[description]', data.description); + } + + if (data.tags instanceof Array) { + formData.append('asset[tags]', data.tags.join(',')); + } else if (typeof data.tags === 'string') { + formData.append('asset[tags]', data.tags); + } + + if (typeof data.title === 'string') { + formData.append('asset[title]', data.title); + } + + var uploadStream = (0, _fs.createReadStream)(data.upload); + formData.append('asset[upload]', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/stack/contentType/entry/index.js b/dist/es5/stack/contentType/entry/index.js index c712fbbd..930d7d27 100644 --- a/dist/es5/stack/contentType/entry/index.js +++ b/dist/es5/stack/contentType/entry/index.js @@ -386,8 +386,10 @@ function EntryCollection(http, data) { } function createFormData(entry) { - var formData = new _formData2["default"](); - var uploadStream = (0, _fs.createReadStream)(entry); - formData.append('entry', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + var uploadStream = (0, _fs.createReadStream)(entry); + formData.append('entry', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/stack/contentType/index.js b/dist/es5/stack/contentType/index.js index 9ffbfc57..a19b521d 100644 --- a/dist/es5/stack/contentType/index.js +++ b/dist/es5/stack/contentType/index.js @@ -277,8 +277,10 @@ function ContentTypeCollection(http, data) { } function createFormData(data) { - var formData = new _formData2["default"](); - var uploadStream = (0, _fs.createReadStream)(data.content_type); - formData.append('content_type', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + var uploadStream = (0, _fs.createReadStream)(data.content_type); + formData.append('content_type', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/stack/extension/index.js b/dist/es5/stack/extension/index.js index a7c532b2..0cc024d9 100644 --- a/dist/es5/stack/extension/index.js +++ b/dist/es5/stack/extension/index.js @@ -242,39 +242,41 @@ function ExtensionCollection(http, data) { } function createExtensionFormData(data) { - var formData = new _formData2["default"](); - - if (typeof data.title === 'string') { - formData.append('extension[title]', data.title); - } - - if ((0, _typeof3["default"])(data.scope) === 'object') { - formData.append('extension[scope]', "".concat(data.scope)); - } - - if (typeof data['data_type'] === 'string') { - formData.append('extension[data_type]', data['data_type']); - } - - if (typeof data.type === 'string') { - formData.append('extension[type]', data.type); - } - - if (data.tags instanceof Array) { - formData.append('extension[tags]', data.tags.join(',')); - } else if (typeof data.tags === 'string') { - formData.append('extension[tags]', data.tags); - } - - if (typeof data.multiple === 'boolean') { - formData.append('extension[multiple]', "".concat(data.multiple)); - } - - if (typeof data.enable === 'boolean') { - formData.append('extension[enable]', "".concat(data.enable)); - } - - var uploadStream = (0, _fs.createReadStream)(data.upload); - formData.append('extension[upload]', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + + if (typeof data.title === 'string') { + formData.append('extension[title]', data.title); + } + + if ((0, _typeof3["default"])(data.scope) === 'object') { + formData.append('extension[scope]', "".concat(data.scope)); + } + + if (typeof data['data_type'] === 'string') { + formData.append('extension[data_type]', data['data_type']); + } + + if (typeof data.type === 'string') { + formData.append('extension[type]', data.type); + } + + if (data.tags instanceof Array) { + formData.append('extension[tags]', data.tags.join(',')); + } else if (typeof data.tags === 'string') { + formData.append('extension[tags]', data.tags); + } + + if (typeof data.multiple === 'boolean') { + formData.append('extension[multiple]', "".concat(data.multiple)); + } + + if (typeof data.enable === 'boolean') { + formData.append('extension[enable]', "".concat(data.enable)); + } + + var uploadStream = (0, _fs.createReadStream)(data.upload); + formData.append('extension[upload]', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/stack/globalField/index.js b/dist/es5/stack/globalField/index.js index 01d13be4..02b0e3a1 100644 --- a/dist/es5/stack/globalField/index.js +++ b/dist/es5/stack/globalField/index.js @@ -223,8 +223,10 @@ function GlobalFieldCollection(http, data) { } function createFormData(data) { - var formData = new _formData2["default"](); - var uploadStream = (0, _fs.createReadStream)(data.global_field); - formData.append('global_field', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + var uploadStream = (0, _fs.createReadStream)(data.global_field); + formData.append('global_field', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/es5/stack/webhook/index.js b/dist/es5/stack/webhook/index.js index dddee1d9..74bed44c 100644 --- a/dist/es5/stack/webhook/index.js +++ b/dist/es5/stack/webhook/index.js @@ -381,8 +381,10 @@ function WebhookCollection(http, data) { } function createFormData(data) { - var formData = new _formData2["default"](); - var uploadStream = (0, _fs.createReadStream)(data.webhook); - formData.append('webhook', uploadStream); - return formData; + return function () { + var formData = new _formData2["default"](); + var uploadStream = (0, _fs.createReadStream)(data.webhook); + formData.append('webhook', uploadStream); + return formData; + }; } \ No newline at end of file diff --git a/dist/nativescript/contentstack-management.js b/dist/nativescript/contentstack-management.js index 9eedee4a..47dc813d 100644 --- a/dist/nativescript/contentstack-management.js +++ b/dist/nativescript/contentstack-management.js @@ -1 +1 @@ -module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+b)}var y=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.3","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),b=r(122),y=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=b(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=y(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(y=a(y)?[y]:y),o.call(u,b)?u[b]=n.combine(u[b],y):u[b]=y}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),b=r.n(d),y=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;b()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new y(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new y(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k(k({},i),a.getHeaders()),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},t.prev=1,t.next=4,e.post(this.urlPath,n,a);case 4:if(!(i=t.sent).data){t.next=9;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 9:throw h(i);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(1),h(t.t0);case 15:case"end":return t.stop()}}),t,this,[[1,12]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new y(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:bt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function bt(t){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}function yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new y(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new y(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.transformRequest=[function(t){return t}],a};this.interceptors.request=r.interceptors.request.use((function(t){if(t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}]); \ No newline at end of file +module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+y)}var b=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(b,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(b))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.4","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","multiparty":"^4.2.2","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),y=r(122),b=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=y(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=b(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(b=a(b)?[b]:b),o.call(u,y)?u[y]=n.combine(u[y],b):u[y]=b}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),y=r.n(d),b=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;y()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new b(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new b(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k({},i),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},console.log("Entry ",n),t.prev=2,t.next=5,e.post(this.urlPath,n,a);case 5:if(!(i=t.sent).data){t.next=10;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 10:throw h(i);case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(2),h(t.t0);case 16:case"end":return t.stop()}}),t,this,[[2,13]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new b(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){return function(){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:yt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function yt(t){return function(){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new b(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new b(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.data=s(a),a.transformRequest=[function(t){return t}],a},s=function(t){if(t.formdata){var e=t.formdata();return t.headers=te(te({},t.headers),e.getHeaders()),e}return t.data};this.interceptors.request=r.interceptors.request.use((function(t){if("function"==typeof t.data&&(t.formdata=t.data,t.data=s(t)),console.log(t.data),t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){t.onComplete=function(){e.running.pop({request:t,resolve:r})},e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}]); \ No newline at end of file diff --git a/dist/node/contentstack-management.js b/dist/node/contentstack-management.js index 4918a889..1aee79ee 100644 --- a/dist/node/contentstack-management.js +++ b/dist/node/contentstack-management.js @@ -1,4 +1,4 @@ -module.exports=function(e){var a={};function t(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var i in e)t.d(n,i,function(a){return e[a]}.bind(null,i));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=193)}([function(e,a,t){var n=t(78);e.exports=function(e){return n(e,5)}},function(e,a,t){e.exports=t(148)},function(e,a){function t(e,a,t,n,i,o,r){try{var s=e[o](r),c=s.value}catch(e){return void t(e)}s.done?a(c):Promise.resolve(c).then(n,i)}e.exports=function(e){return function(){var a=this,n=arguments;return new Promise((function(i,o){var r=e.apply(a,n);function s(e){t(r,i,o,s,c,"next",e)}function c(e){t(r,i,o,s,c,"throw",e)}s(void 0)}))}}},function(e,a){e.exports=function(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}},function(e,a,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t(63),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===n(e)}function p(e){if("[object Object]"!==o.call(e))return!1;var a=Object.getPrototypeOf(e);return null===a||a===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,a){if(null!=e)if("object"!==n(e)&&(e=[e]),r(e))for(var t=0,i=e.length;t1;){var a=e.pop(),t=a.obj[a.prop];if(o(t)){for(var n=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=i.charAt(s):c<128?o+=r[c]:c<2048?o+=r[192|c>>6]+r[128|63&c]:c<55296||c>=57344?o+=r[224|c>>12]+r[128|c>>6&63]+r[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),o+=r[240|c>>18]+r[128|c>>12&63]+r[128|c>>6&63]+r[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!==n(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,a){if(o(e)){for(var t=[],n=0;n-1&&e%1==0&&e<=9007199254740991}},function(e,a){e.exports=function(e,a){return function(t){return e(a(t))}}},function(e,a,t){var n=t(40),i=t(47);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,a){e.exports=function(){return[]}},function(e,a,t){var n=t(52),i=t(53),o=t(29),r=t(50),s=Object.getOwnPropertySymbols?function(e){for(var a=[];e;)n(a,o(e)),e=i(e);return a}:r;e.exports=s},function(e,a){e.exports=function(e,a){for(var t=-1,n=a.length,i=e.length;++ta?1:0}e.exports=function(e,a,t,r){var s=i(e,t);return n(e,a,s,(function t(i,o){i?r(i,o):(s.index++,s.index<(s.keyedList||e).length?n(e,a,s,t):r(null,s.results))})),o.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,a){return-1*r(e,a)}},function(e,a,t){"use strict";var n=String.prototype.replace,i=/%20/g,o=t(36),r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:r.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},r)},function(e,a,t){"use strict";e.exports=function(e,a){return function(){for(var t=new Array(arguments.length),n=0;n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(o)})),e.exports=c},function(e,a,t){"use strict";var n=t(38);e.exports=function(e,a,t){var i=t.config.validateStatus;t.status&&i&&!i(t.status)?a(n("Request failed with status code "+t.status,t.config,null,t.request,t)):e(t)}},function(e,a,t){"use strict";e.exports=function(e,a,t,n,i){return e.config=a,t&&(e.code=t),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,a,t){"use strict";var n=t(174),i=t(175);e.exports=function(e,a){return e&&!n(a)?i(e,a):a}},function(e,a,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t(35),o=i.URL,r=t(33),s=t(34),c=t(32).Writable,p=t(179),u=t(180),l=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach((function(e){l[e]=function(a,t,n){this._redirectable.emit(e,a,t,n)}}));var d=j("ERR_FR_REDIRECTION_FAILURE",""),m=j("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),f=j("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),x=j("ERR_STREAM_WRITE_AFTER_END","write after end");function h(e,a){c.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var t=this;this._onNativeResponse=function(e){t._processResponse(e)},this._performRequest()}function v(e,a){clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.emit("timeout")}),a)}function b(){clearTimeout(this._timeout)}function g(e){var a={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(n){var r=n+":",s=t[r]=e[n],c=a[n]=Object.create(s);Object.defineProperties(c,{request:{value:function(e,n,s){if("string"==typeof e){var c=e;try{e=w(new o(c))}catch(a){e=i.parse(c)}}else o&&e instanceof o?e=w(e):(s=n,n=e,e={protocol:r});return"function"==typeof n&&(s=n,n=null),(n=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e,n)).nativeProtocols=t,p.equal(n.protocol,r,"protocol mismatch"),u("options",n),new h(n,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,a,t){var n=c.request(e,a,t);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),a}function y(){}function w(e){var a={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(a.port=Number(e.port)),a}function k(e,a){var t;for(var n in a)e.test(n)&&(t=a[n],delete a[n]);return t}function j(e,a){function t(e){Error.captureStackTrace(this,this.constructor),this.message=e||a}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+e+"]",t.prototype.code=e,t}h.prototype=Object.create(c.prototype),h.prototype.write=function(e,a,t){if(this._ending)throw new x;if(!("string"==typeof e||"object"===n(e)&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof a&&(t=a,a=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,t)):(this.emit("error",new f),this.abort()):t&&t()},h.prototype.end=function(e,a,t){if("function"==typeof e?(t=e,e=a=null):"function"==typeof a&&(t=a,a=null),e){var n=this,i=this._currentRequest;this.write(e,a,(function(){n._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},h.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},h.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},h.prototype.setTimeout=function(e,a){if(a&&this.once("timeout",a),this.socket)v(this,e);else{var t=this;this._currentRequest.once("socket",(function(){v(t,e)}))}return this.once("response",b),this.once("error",b),this},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){h.prototype[e]=function(a,t){return this._currentRequest[e](a,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(h.prototype,e,{get:function(){return this._currentRequest[e]}})})),h.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var a=e.path.indexOf("?");a<0?e.pathname=e.path:(e.pathname=e.path.substring(0,a),e.search=e.path.substring(a))}},h.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(a){if(this._options.agents){var t=e.substr(0,e.length-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=i.format(this._options),n._redirectable=this,l)o&&n.on(o,l[o]);if(this._isRedirect){var r=0,s=this,c=this._requestBodyBuffers;!function e(a){if(n===s._currentRequest)if(a)s.emit("error",a);else if(r=300&&a<400){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",y),this._currentRequest.abort(),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new m);((301===a||302===a)&&"POST"===this._options.method||303===a&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],k(/^content-/i,this._options.headers));var n=k(/^host$/i,this._options.headers)||i.parse(this._currentUrl).hostname,o=i.resolve(this._currentUrl,t);u("redirecting to",o),this._isRedirect=!0;var r=i.parse(o);if(Object.assign(this._options,r),r.hostname!==n&&k(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var s={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var c=new d("Redirected request failed: "+e.message);c.cause=e,this.emit("error",c)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=g({http:r,https:s}),e.exports.wrap=g},function(e,a,t){function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return i(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,a)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(e,a){e.exports=function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}},function(e,a){function t(a){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},function(e,a,t){var n=t(159),i=t(160),o=t(161),r=t(163);e.exports=function(e,a){return n(e)||i(e,a)||o(e,a)||r()}},function(e,a,t){"use strict";var n=t(164),i=t(165),o=t(62);e.exports={formats:o,parse:i,stringify:n}},function(e,a,t){var n=t(79),i=t(109),o=t(43),r=t(111),s=t(121),c=t(124),p=t(125),u=t(126),l=t(128),d=t(129),m=t(130),f=t(30),x=t(135),h=t(136),v=t(142),b=t(24),g=t(46),y=t(144),w=t(9),k=t(146),j=t(23),_=t(28),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,e.exports=function e(a,t,S,P,C,E){var z,H=1&t,A=2&t,q=4&t;if(S&&(z=C?S(a,P,C,E):S(a)),void 0!==z)return z;if(!w(a))return a;var R=b(a);if(R){if(z=x(a),!H)return p(a,z)}else{var T=f(a),D="[object Function]"==T||"[object GeneratorFunction]"==T;if(g(a))return c(a,H);if("[object Object]"==T||"[object Arguments]"==T||D&&!C){if(z=A||D?{}:v(a),!H)return A?l(a,s(z,a)):u(a,r(z,a))}else{if(!O[T])return C?a:{};z=h(a,T,H)}}E||(E=new n);var L=E.get(a);if(L)return L;E.set(a,z),k(a)?a.forEach((function(n){z.add(e(n,t,S,n,a,E))})):y(a)&&a.forEach((function(n,i){z.set(i,e(n,t,S,i,a,E))}));var F=R?void 0:(q?A?m:d:A?_:j)(a);return i(F||a,(function(n,i){F&&(n=a[i=n]),o(z,i,e(n,t,S,i,a,E))})),z}},function(e,a,t){var n=t(11),i=t(85),o=t(86),r=t(87),s=t(88),c=t(89);function p(e){var a=this.__data__=new n(e);this.size=a.size}p.prototype.clear=i,p.prototype.delete=o,p.prototype.get=r,p.prototype.has=s,p.prototype.set=c,e.exports=p},function(e,a){e.exports=function(){this.__data__=[],this.size=0}},function(e,a,t){var n=t(12),i=Array.prototype.splice;e.exports=function(e){var a=this.__data__,t=n(a,e);return!(t<0)&&(t==a.length-1?a.pop():i.call(a,t,1),--this.size,!0)}},function(e,a,t){var n=t(12);e.exports=function(e){var a=this.__data__,t=n(a,e);return t<0?void 0:a[t][1]}},function(e,a,t){var n=t(12);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,a,t){var n=t(12);e.exports=function(e,a){var t=this.__data__,i=n(t,e);return i<0?(++this.size,t.push([e,a])):t[i][1]=a,this}},function(e,a,t){var n=t(11);e.exports=function(){this.__data__=new n,this.size=0}},function(e,a){e.exports=function(e){var a=this.__data__,t=a.delete(e);return this.size=a.size,t}},function(e,a){e.exports=function(e){return this.__data__.get(e)}},function(e,a){e.exports=function(e){return this.__data__.has(e)}},function(e,a,t){var n=t(11),i=t(21),o=t(96);e.exports=function(e,a){var t=this.__data__;if(t instanceof n){var r=t.__data__;if(!i||r.length<199)return r.push([e,a]),this.size=++t.size,this;t=this.__data__=new o(r)}return t.set(e,a),this.size=t.size,this}},function(e,a,t){var n=t(40),i=t(93),o=t(9),r=t(42),s=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,u=c.toString,l=p.hasOwnProperty,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(r(e))}},function(e,a,t){var n=t(22),i=Object.prototype,o=i.hasOwnProperty,r=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var a=o.call(e,s),t=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=r.call(e);return n&&(a?e[s]=t:delete e[s]),i}},function(e,a){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,a,t){var n,i=t(94),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,a,t){var n=t(7)["__core-js_shared__"];e.exports=n},function(e,a){e.exports=function(e,a){return null==e?void 0:e[a]}},function(e,a,t){var n=t(97),i=t(104),o=t(106),r=t(107),s=t(108);function c(e){var a=-1,t=null==e?0:e.length;for(this.clear();++a-1&&e%1==0&&e=0;--i){var o=this.tryEntries[i],r=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--a){var t=this.tryEntries[a];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),j(t),l}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var t=this.tryEntries[a];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var i=n.arg;j(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,t){return this.delegate={iterator:O(e),resultName:a,nextLoc:t},"next"===this.method&&(this.arg=void 0),l}},e}("object"===a(e)?e.exports:{});try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}).call(this,t(17)(e))},function(e,a,t){var n=t(18),i=t(32).Stream,o=t(150);function r(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=r,n.inherits(r,i),r.create=function(e){var a=new this;for(var t in e=e||{})a[t]=e[t];return a},r.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},r.prototype.append=function(e){if(r.isStreamLike(e)){if(!(e instanceof o)){var a=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},r.prototype.pipe=function(e,a){return i.prototype.pipe.call(this,e,a),this.resume(),e},r.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},r.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){r.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},r.prototype._pipeNext=function(e){if(this._currentStream=e,r.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var a=e;this.write(a),this._getNext()},r.prototype._handleErrors=function(e){var a=this;e.on("error",(function(e){a._emitError(e)}))},r.prototype.write=function(e){this.emit("data",e)},r.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},r.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},r.prototype.end=function(){this._reset(),this.emit("end")},r.prototype.destroy=function(){this._reset(),this.emit("close")},r.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},r.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},r.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(a){a.dataSize&&(e.dataSize+=a.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},r.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},function(e,a,t){var n=t(32).Stream,i=t(18);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,n),o.create=function(e,a){var t=new this;for(var n in a=a||{})t[n]=a[n];t.source=e;var i=e.emit;return e.emit=function(){return t._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),t.pauseStream&&e.pause(),t},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},function(e,a,t){"use strict"; +module.exports=function(e){var a={};function t(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var i in e)t.d(n,i,function(a){return e[a]}.bind(null,i));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=193)}([function(e,a,t){var n=t(78);e.exports=function(e){return n(e,5)}},function(e,a,t){e.exports=t(148)},function(e,a){function t(e,a,t,n,i,o,r){try{var s=e[o](r),c=s.value}catch(e){return void t(e)}s.done?a(c):Promise.resolve(c).then(n,i)}e.exports=function(e){return function(){var a=this,n=arguments;return new Promise((function(i,o){var r=e.apply(a,n);function s(e){t(r,i,o,s,c,"next",e)}function c(e){t(r,i,o,s,c,"throw",e)}s(void 0)}))}}},function(e,a){e.exports=function(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}},function(e,a,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t(63),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===n(e)}function p(e){if("[object Object]"!==o.call(e))return!1;var a=Object.getPrototypeOf(e);return null===a||a===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,a){if(null!=e)if("object"!==n(e)&&(e=[e]),r(e))for(var t=0,i=e.length;t1;){var a=e.pop(),t=a.obj[a.prop];if(o(t)){for(var n=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=i.charAt(s):c<128?o+=r[c]:c<2048?o+=r[192|c>>6]+r[128|63&c]:c<55296||c>=57344?o+=r[224|c>>12]+r[128|c>>6&63]+r[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),o+=r[240|c>>18]+r[128|c>>12&63]+r[128|c>>6&63]+r[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!==n(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,a){if(o(e)){for(var t=[],n=0;n-1&&e%1==0&&e<=9007199254740991}},function(e,a){e.exports=function(e,a){return function(t){return e(a(t))}}},function(e,a,t){var n=t(40),i=t(47);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,a){e.exports=function(){return[]}},function(e,a,t){var n=t(52),i=t(53),o=t(29),r=t(50),s=Object.getOwnPropertySymbols?function(e){for(var a=[];e;)n(a,o(e)),e=i(e);return a}:r;e.exports=s},function(e,a){e.exports=function(e,a){for(var t=-1,n=a.length,i=e.length;++ta?1:0}e.exports=function(e,a,t,r){var s=i(e,t);return n(e,a,s,(function t(i,o){i?r(i,o):(s.index++,s.index<(s.keyedList||e).length?n(e,a,s,t):r(null,s.results))})),o.bind(s,r)},e.exports.ascending=r,e.exports.descending=function(e,a){return-1*r(e,a)}},function(e,a,t){"use strict";var n=String.prototype.replace,i=/%20/g,o=t(36),r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:r.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}}},r)},function(e,a,t){"use strict";e.exports=function(e,a){return function(){for(var t=new Array(arguments.length),n=0;n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(o)})),e.exports=c},function(e,a,t){"use strict";var n=t(38);e.exports=function(e,a,t){var i=t.config.validateStatus;t.status&&i&&!i(t.status)?a(n("Request failed with status code "+t.status,t.config,null,t.request,t)):e(t)}},function(e,a,t){"use strict";e.exports=function(e,a,t,n,i){return e.config=a,t&&(e.code=t),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,a,t){"use strict";var n=t(174),i=t(175);e.exports=function(e,a){return e&&!n(a)?i(e,a):a}},function(e,a,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t(35),o=i.URL,r=t(33),s=t(34),c=t(32).Writable,p=t(179),u=t(180),l=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach((function(e){l[e]=function(a,t,n){this._redirectable.emit(e,a,t,n)}}));var d=j("ERR_FR_REDIRECTION_FAILURE",""),m=j("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),f=j("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),x=j("ERR_STREAM_WRITE_AFTER_END","write after end");function h(e,a){c.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var t=this;this._onNativeResponse=function(e){t._processResponse(e)},this._performRequest()}function v(e,a){clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.emit("timeout")}),a)}function b(){clearTimeout(this._timeout)}function g(e){var a={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(e).forEach((function(n){var r=n+":",s=t[r]=e[n],c=a[n]=Object.create(s);Object.defineProperties(c,{request:{value:function(e,n,s){if("string"==typeof e){var c=e;try{e=w(new o(c))}catch(a){e=i.parse(c)}}else o&&e instanceof o?e=w(e):(s=n,n=e,e={protocol:r});return"function"==typeof n&&(s=n,n=null),(n=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e,n)).nativeProtocols=t,p.equal(n.protocol,r,"protocol mismatch"),u("options",n),new h(n,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,a,t){var n=c.request(e,a,t);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),a}function y(){}function w(e){var a={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(a.port=Number(e.port)),a}function k(e,a){var t;for(var n in a)e.test(n)&&(t=a[n],delete a[n]);return t}function j(e,a){function t(e){Error.captureStackTrace(this,this.constructor),this.message=e||a}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+e+"]",t.prototype.code=e,t}h.prototype=Object.create(c.prototype),h.prototype.write=function(e,a,t){if(this._ending)throw new x;if(!("string"==typeof e||"object"===n(e)&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof a&&(t=a,a=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,t)):(this.emit("error",new f),this.abort()):t&&t()},h.prototype.end=function(e,a,t){if("function"==typeof e?(t=e,e=a=null):"function"==typeof a&&(t=a,a=null),e){var n=this,i=this._currentRequest;this.write(e,a,(function(){n._ended=!0,i.end(null,null,t)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,t)},h.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},h.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},h.prototype.setTimeout=function(e,a){if(a&&this.once("timeout",a),this.socket)v(this,e);else{var t=this;this._currentRequest.once("socket",(function(){v(t,e)}))}return this.once("response",b),this.once("error",b),this},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){h.prototype[e]=function(a,t){return this._currentRequest[e](a,t)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(h.prototype,e,{get:function(){return this._currentRequest[e]}})})),h.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var a=e.path.indexOf("?");a<0?e.pathname=e.path:(e.pathname=e.path.substring(0,a),e.search=e.path.substring(a))}},h.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(a){if(this._options.agents){var t=e.substr(0,e.length-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=i.format(this._options),n._redirectable=this,l)o&&n.on(o,l[o]);if(this._isRedirect){var r=0,s=this,c=this._requestBodyBuffers;!function e(a){if(n===s._currentRequest)if(a)s.emit("error",a);else if(r=300&&a<400){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",y),this._currentRequest.abort(),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new m);((301===a||302===a)&&"POST"===this._options.method||303===a&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],k(/^content-/i,this._options.headers));var n=k(/^host$/i,this._options.headers)||i.parse(this._currentUrl).hostname,o=i.resolve(this._currentUrl,t);u("redirecting to",o),this._isRedirect=!0;var r=i.parse(o);if(Object.assign(this._options,r),r.hostname!==n&&k(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var s={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var c=new d("Redirected request failed: "+e.message);c.cause=e,this.emit("error",c)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=g({http:r,https:s}),e.exports.wrap=g},function(e,a,t){function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return i(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,a)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","multiparty":"^4.2.2","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(e,a){e.exports=function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}},function(e,a){function t(a){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},function(e,a,t){var n=t(159),i=t(160),o=t(161),r=t(163);e.exports=function(e,a){return n(e)||i(e,a)||o(e,a)||r()}},function(e,a,t){"use strict";var n=t(164),i=t(165),o=t(62);e.exports={formats:o,parse:i,stringify:n}},function(e,a,t){var n=t(79),i=t(109),o=t(43),r=t(111),s=t(121),c=t(124),p=t(125),u=t(126),l=t(128),d=t(129),m=t(130),f=t(30),x=t(135),h=t(136),v=t(142),b=t(24),g=t(46),y=t(144),w=t(9),k=t(146),j=t(23),_=t(28),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,e.exports=function e(a,t,S,P,C,E){var z,H=1&t,A=2&t,q=4&t;if(S&&(z=C?S(a,P,C,E):S(a)),void 0!==z)return z;if(!w(a))return a;var R=b(a);if(R){if(z=x(a),!H)return p(a,z)}else{var T=f(a),D="[object Function]"==T||"[object GeneratorFunction]"==T;if(g(a))return c(a,H);if("[object Object]"==T||"[object Arguments]"==T||D&&!C){if(z=A||D?{}:v(a),!H)return A?l(a,s(z,a)):u(a,r(z,a))}else{if(!O[T])return C?a:{};z=h(a,T,H)}}E||(E=new n);var L=E.get(a);if(L)return L;E.set(a,z),k(a)?a.forEach((function(n){z.add(e(n,t,S,n,a,E))})):y(a)&&a.forEach((function(n,i){z.set(i,e(n,t,S,i,a,E))}));var F=R?void 0:(q?A?m:d:A?_:j)(a);return i(F||a,(function(n,i){F&&(n=a[i=n]),o(z,i,e(n,t,S,i,a,E))})),z}},function(e,a,t){var n=t(11),i=t(85),o=t(86),r=t(87),s=t(88),c=t(89);function p(e){var a=this.__data__=new n(e);this.size=a.size}p.prototype.clear=i,p.prototype.delete=o,p.prototype.get=r,p.prototype.has=s,p.prototype.set=c,e.exports=p},function(e,a){e.exports=function(){this.__data__=[],this.size=0}},function(e,a,t){var n=t(12),i=Array.prototype.splice;e.exports=function(e){var a=this.__data__,t=n(a,e);return!(t<0)&&(t==a.length-1?a.pop():i.call(a,t,1),--this.size,!0)}},function(e,a,t){var n=t(12);e.exports=function(e){var a=this.__data__,t=n(a,e);return t<0?void 0:a[t][1]}},function(e,a,t){var n=t(12);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,a,t){var n=t(12);e.exports=function(e,a){var t=this.__data__,i=n(t,e);return i<0?(++this.size,t.push([e,a])):t[i][1]=a,this}},function(e,a,t){var n=t(11);e.exports=function(){this.__data__=new n,this.size=0}},function(e,a){e.exports=function(e){var a=this.__data__,t=a.delete(e);return this.size=a.size,t}},function(e,a){e.exports=function(e){return this.__data__.get(e)}},function(e,a){e.exports=function(e){return this.__data__.has(e)}},function(e,a,t){var n=t(11),i=t(21),o=t(96);e.exports=function(e,a){var t=this.__data__;if(t instanceof n){var r=t.__data__;if(!i||r.length<199)return r.push([e,a]),this.size=++t.size,this;t=this.__data__=new o(r)}return t.set(e,a),this.size=t.size,this}},function(e,a,t){var n=t(40),i=t(93),o=t(9),r=t(42),s=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,u=c.toString,l=p.hasOwnProperty,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(r(e))}},function(e,a,t){var n=t(22),i=Object.prototype,o=i.hasOwnProperty,r=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var a=o.call(e,s),t=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=r.call(e);return n&&(a?e[s]=t:delete e[s]),i}},function(e,a){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e,a,t){var n,i=t(94),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,a,t){var n=t(7)["__core-js_shared__"];e.exports=n},function(e,a){e.exports=function(e,a){return null==e?void 0:e[a]}},function(e,a,t){var n=t(97),i=t(104),o=t(106),r=t(107),s=t(108);function c(e){var a=-1,t=null==e?0:e.length;for(this.clear();++a-1&&e%1==0&&e=0;--i){var o=this.tryEntries[i],r=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--a){var t=this.tryEntries[a];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),j(t),l}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var t=this.tryEntries[a];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var i=n.arg;j(t)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,t){return this.delegate={iterator:O(e),resultName:a,nextLoc:t},"next"===this.method&&(this.arg=void 0),l}},e}("object"===a(e)?e.exports:{});try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}).call(this,t(17)(e))},function(e,a,t){var n=t(18),i=t(32).Stream,o=t(150);function r(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=r,n.inherits(r,i),r.create=function(e){var a=new this;for(var t in e=e||{})a[t]=e[t];return a},r.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},r.prototype.append=function(e){if(r.isStreamLike(e)){if(!(e instanceof o)){var a=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},r.prototype.pipe=function(e,a){return i.prototype.pipe.call(this,e,a),this.resume(),e},r.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},r.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){r.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},r.prototype._pipeNext=function(e){if(this._currentStream=e,r.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var a=e;this.write(a),this._getNext()},r.prototype._handleErrors=function(e){var a=this;e.on("error",(function(e){a._emitError(e)}))},r.prototype.write=function(e){this.emit("data",e)},r.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},r.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},r.prototype.end=function(){this._reset(),this.emit("end")},r.prototype.destroy=function(){this._reset(),this.emit("close")},r.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},r.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},r.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(a){a.dataSize&&(e.dataSize+=a.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},r.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},function(e,a,t){var n=t(32).Stream,i=t(18);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,n),o.create=function(e,a){var t=new this;for(var n in a=a||{})t[n]=a[n];t.source=e;var i=e.emit;return e.emit=function(){return t._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),t.pauseStream&&e.pause(),t},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},function(e,a,t){"use strict"; /*! * mime-types * Copyright(c) 2014 Jonathan Ong @@ -10,4 +10,4 @@ module.exports=function(e){var a={};function t(n){if(a[n])return a[n].exports;va * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ -e.exports=t(153)},function(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["ecma","es"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/mrb-publish+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["keynote"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana"},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana"},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana"},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana"},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shex":{"extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana"},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},function(e,a,t){e.exports={parallel:t(155),serial:t(157),serialOrdered:t(61)}},function(e,a,t){var n=t(56),i=t(59),o=t(60);e.exports=function(e,a,t){var r=i(e);for(;r.index<(r.keyedList||e).length;)n(e,a,r,(function(e,a){e?t(e,a):0!==Object.keys(r.jobs).length||t(null,r.results)})),r.index++;return o.bind(r,t)}},function(e,a){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var a="function"==typeof setImmediate?setImmediate:"object"==("undefined"==typeof process?"undefined":t(process))&&"function"==typeof process.nextTick?process.nextTick:null;a?a(e):setTimeout(e,0)}},function(e,a,t){var n=t(61);e.exports=function(e,a,t){return n(e,a,null,t)}},function(e,a){e.exports=function(e,a){return Object.keys(a).forEach((function(t){e[t]=e[t]||a[t]})),e}},function(e,a){e.exports=function(e){if(Array.isArray(e))return e}},function(e,a){e.exports=function(e,a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done)&&(t.push(r.value),!a||t.length!==a);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}}},function(e,a,t){var n=t(162);e.exports=function(e,a){if(e){if("string"==typeof e)return n(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,a):void 0}}},function(e,a){e.exports=function(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t0?g+b:""}},function(e,a,t){"use strict";var n=t(36),i=Object.prototype.hasOwnProperty,o=Array.isArray,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,a){return String.fromCharCode(parseInt(a,10))}))},c=function(e,a){return e&&"string"==typeof e&&a.comma&&e.indexOf(",")>-1?e.split(","):e},p=function(e,a,t,n){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,s=t.depth>0&&/(\[[^[\]]*])/.exec(o),p=s?o.slice(0,s.index):o,u=[];if(p){if(!t.plainObjects&&i.call(Object.prototype,p)&&!t.allowPrototypes)return;u.push(p)}for(var l=0;t.depth>0&&null!==(s=r.exec(o))&&l=0;--o){var r,s=e[o];if("[]"===s&&t.parseArrays)r=[].concat(i);else{r=t.plainObjects?Object.create(null):{};var p="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(p,10);t.parseArrays||""!==p?!isNaN(u)&&s!==p&&String(u)===p&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(r=[])[u]=i:r[p]=i:r={0:i}}i=r}return i}(u,a,t,n)}};e.exports=function(e,a){var t=function(e){if(!e)return r;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=void 0===e.charset?r.charset:e.charset;return{allowDots:void 0===e.allowDots?r.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:a,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(a);if(""===e||null==e)return t.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,a){var t,p={},u=a.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=a.parameterLimit===1/0?void 0:a.parameterLimit,d=u.split(a.delimiter,l),m=-1,f=a.charset;if(a.charsetSentinel)for(t=0;t-1&&(h=o(h)?[h]:h),i.call(p,x)?p[x]=n.combine(p[x],h):p[x]=h}return p}(e,t):e,l=t.plainObjects?Object.create(null):{},d=Object.keys(u),m=0;m=0)return;r[a]="set-cookie"===a?(r[a]?r[a]:[]).concat([t]):r[a]?r[a]+", "+t:t}})),r):r}},function(e,a,t){"use strict";var n=t(4);e.exports=n.isStandardBrowserEnv()?function(){var e,a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function i(e){var n=e;return a&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=i(window.location.href),function(a){var t=n.isString(a)?i(a):a;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0}},function(e,a,t){"use strict";var n=t(4),i=t(66),o=t(68),r=t(37),s=t(33),c=t(34),p=t(69).http,u=t(69).https,l=t(35),d=t(188),m=t(189),f=t(38),x=t(67),h=/https:?/;e.exports=function(e){return new Promise((function(a,t){var v=function(e){a(e)},b=function(e){t(e)},g=e.data,y=e.headers;if(y["User-Agent"]||y["user-agent"]||(y["User-Agent"]="axios/"+m.version),g&&!n.isStream(g)){if(Buffer.isBuffer(g));else if(n.isArrayBuffer(g))g=Buffer.from(new Uint8Array(g));else{if(!n.isString(g))return b(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));g=Buffer.from(g,"utf-8")}y["Content-Length"]=g.length}var w=void 0;e.auth&&(w=(e.auth.username||"")+":"+(e.auth.password||""));var k=o(e.baseURL,e.url),j=l.parse(k),_=j.protocol||"http:";if(!w&&j.auth){var O=j.auth.split(":");w=(O[0]||"")+":"+(O[1]||"")}w&&delete y.Authorization;var S=h.test(_),P=S?e.httpsAgent:e.httpAgent,C={path:r(j.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:y,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:w};e.socketPath?C.socketPath=e.socketPath:(C.hostname=j.hostname,C.port=j.port);var E,z=e.proxy;if(!z&&!1!==z){var H=_.slice(0,-1)+"_proxy",A=process.env[H]||process.env[H.toUpperCase()];if(A){var q=l.parse(A),R=process.env.no_proxy||process.env.NO_PROXY,T=!0;if(R)T=!R.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&j.hostname.substr(j.hostname.length-e.length)===e||j.hostname===e))}));if(T&&(z={host:q.hostname,port:q.port,protocol:q.protocol},q.auth)){var D=q.auth.split(":");z.auth={username:D[0],password:D[1]}}}}z&&(C.headers.host=j.hostname+(j.port?":"+j.port:""),function e(a,t,n){if(a.hostname=t.host,a.host=t.host,a.port=t.port,a.path=n,t.auth){var i=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");a.headers["Proxy-Authorization"]="Basic "+i}a.beforeRedirect=function(a){a.headers.host=a.host,e(a,t,a.href)}}(C,z,_+"//"+j.hostname+(j.port?":"+j.port:"")+C.path));var L=S&&(!z||h.test(z.protocol));e.transport?E=e.transport:0===e.maxRedirects?E=L?c:s:(e.maxRedirects&&(C.maxRedirects=e.maxRedirects),E=L?u:p),e.maxBodyLength>-1&&(C.maxBodyLength=e.maxBodyLength);var F=E.request(C,(function(a){if(!F.aborted){var t=a,o=a.req||F;if(204!==a.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(a.headers["content-encoding"]){case"gzip":case"compress":case"deflate":t=t.pipe(d.createUnzip()),delete a.headers["content-encoding"]}var r={status:a.statusCode,statusText:a.statusMessage,headers:a.headers,config:e,request:o};if("stream"===e.responseType)r.data=t,i(v,b,r);else{var s=[];t.on("data",(function(a){s.push(a),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(t.destroy(),b(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),t.on("error",(function(a){F.aborted||b(x(a,e,null,o))})),t.on("end",(function(){var a=Buffer.concat(s);"arraybuffer"!==e.responseType&&(a=a.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(a=n.stripBOM(a))),r.data=a,i(v,b,r)}))}}}));F.on("error",(function(a){F.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==a.code||b(x(a,e,null,F))})),e.timeout&&F.setTimeout(e.timeout,(function(){F.abort(),b(f("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",F))})),e.cancelToken&&e.cancelToken.promise.then((function(e){F.aborted||(F.abort(),b(e))})),n.isStream(g)?g.on("error",(function(a){b(x(a,e,null,F))})).pipe(F):F.end(g)}))}},function(e,a){e.exports=require("assert")},function(e,a,t){var n;try{n=t(181)("follow-redirects")}catch(e){n=function(){}}e.exports=n},function(e,a,t){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=t(182):e.exports=t(184)},function(e,a,t){var n;a.formatArgs=function(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var t="color: "+this.color;a.splice(1,0,t,"color: inherit");var n=0,i=0;a[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))})),a.splice(i,0,t)},a.save=function(e){try{e?a.storage.setItem("debug",e):a.storage.removeItem("debug")}catch(e){}},a.load=function(){var e;try{e=a.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},a.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=function(){try{return localStorage}catch(e){}}(),a.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.log=console.debug||console.log||function(){},e.exports=t(70)(a),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,a){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=1e3,i=6e4,o=60*i,r=24*o;function s(e,a,t,n){var i=a>=1.5*t;return Math.round(e/t)+" "+n+(i?"s":"")}e.exports=function(e,a){a=a||{};var c=t(e);if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var t=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*r;case"hours":case"hour":case"hrs":case"hr":case"h":return t*o;case"minutes":case"minute":case"mins":case"min":case"m":return t*i;case"seconds":case"second":case"secs":case"sec":case"s":return t*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}(e);if("number"===c&&isFinite(e))return a.long?function(e){var a=Math.abs(e);if(a>=r)return s(e,a,r,"day");if(a>=o)return s(e,a,o,"hour");if(a>=i)return s(e,a,i,"minute");if(a>=n)return s(e,a,n,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=r)return Math.round(e/r)+"d";if(a>=o)return Math.round(e/o)+"h";if(a>=i)return Math.round(e/i)+"m";if(a>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,a,t){var n=t(185),i=t(18);a.init=function(e){e.inspectOpts={};for(var t=Object.keys(a.inspectOpts),n=0;n=2&&(a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}a.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,a){var t=a.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,a){return a.toUpperCase()})),n=process.env[a];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[t]=n,e}),{}),e.exports=t(70)(a);var r=e.exports.formatters;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},function(e,a){e.exports=require("tty")},function(e,a,t){"use strict";var n,i=t(19),o=t(187),r=process.env;function s(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===n)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==n)return 0;var a=n?1:0;if("win32"===process.platform){var t=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in r}))||"codeship"===r.CI_NAME?1:a;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){var s=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,a)}(e))}o("no-color")||o("no-colors")||o("color=false")?n=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(n=!0),"FORCE_COLOR"in r&&(n=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},function(e,a,t){"use strict";e.exports=function(e,a){a=a||process.argv;var t=e.startsWith("-")?"":1===e.length?"-":"--",n=a.indexOf(t+e),i=a.indexOf("--");return-1!==n&&(-1===i||n2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;b()(this,e);var o=a.data||{};n&&(o.stackHeaders=n),this.items=i(t,o),void 0!==o.schema&&(this.schema=o.schema),void 0!==o.content_type&&(this.content_type=o.content_type),void 0!==o.count&&(this.count=o.count),void 0!==o.notice&&(this.notice=o.notice)};function y(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var a=1;a3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0,o={};n&&(o.headers=n);var r=null;t&&(t.content_type_uid&&(r=t.content_type_uid,delete t.content_type_uid),o.params=w({},s()(t)));var c=function(){var t=x()(m.a.mark((function t(){var s;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.get(a,o);case 3:if(!(s=t.sent).data){t.next=9;break}return r&&(s.data.content_type_uid=r),t.abrupt("return",new g(s,e,n,i));case 9:throw h(s);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(0),h(t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=x()(m.a.mark((function t(){var n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.params=w(w({},o.params),{},{count:!0}),t.prev=1,t.next=4,e.get(a,o);case 4:if(!(n=t.sent).data){t.next=9;break}return t.abrupt("return",n.data);case 9:throw h(n);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(1),h(t.t0);case 15:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(){return t.apply(this,arguments)}}(),u=function(){var t=x()(m.a.mark((function t(){var s,c;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(s=o).params.limit=1,t.prev=2,t.next=5,e.get(a,s);case 5:if(!(c=t.sent).data){t.next=11;break}return r&&(c.data.content_type_uid=r),t.abrupt("return",new g(c,e,n,i));case 11:throw h(c);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(2),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[2,14]])})));return function(){return t.apply(this,arguments)}}();return{count:p,find:c,findOne:u}}function j(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function _(e){for(var a=1;a4&&void 0!==p[4]?p[4]:null,r=p.length>5&&void 0!==p[5]?p[5]:null,s=p.length>6&&void 0!==p[6]?p[6]:null,null!==o&&(n.locale=o),null!==r&&(n.version=r),null!==s&&(n.scheduled_at=s),e.prev=6,e.next=9,a.post(t,n,i);case 9:if(!(c=e.sent).data){e.next=14;break}return e.abrupt("return",c.data);case 14:throw h(c);case 15:e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(6),h(e.t0);case 20:case"end":return e.stop()}}),e,null,[[6,17]])})));return function(a,t,n,i){return e.apply(this,arguments)}}(),C=function(){var e=x()(m.a.mark((function e(a){var t,n,i,o,r,c,p,u;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.http,n=a.urlPath,i=a.stackHeaders,o=a.formData,r=a.params,c=a.method,p=void 0===c?"POST":c,u={headers:_(_(_({},r),o.getHeaders()),s()(i))}||{},"POST"!==p){e.next=6;break}return e.abrupt("return",t.post(n,o,u));case 6:return e.abrupt("return",t.put(n,o,u));case 7:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),E=function(e){var a=e.http,t=e.params;return function(){var e=x()(m.a.mark((function e(n,i){var o,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={headers:_(_({},s()(t)),s()(this.stackHeaders)),params:_({},s()(i))}||{},e.prev=1,e.next=4,a.post(this.urlPath,n,o);case 4:if(!(r=e.sent).data){e.next=9;break}return e.abrupt("return",new this.constructor(a,T(r,this.stackHeaders,this.content_type_uid)));case 9:throw h(r);case 10:e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(1),h(e.t0);case 15:case"end":return e.stop()}}),e,this,[[1,12]])})));return function(a,t){return e.apply(this,arguments)}}()},z=function(e){var a=e.http,t=e.wrapperCollection;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(e.query||(e.query={}),e.query.org_uid=this.organization_uid),this.content_type_uid&&(e.content_type_uid=this.content_type_uid),k(a,this.urlPath,e,this.stackHeaders,t)}},H=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r,c=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},i={},delete(o=s()(this)).stackHeaders,delete o.urlPath,delete o.uid,delete o.org_uid,delete o.api_key,delete o.created_at,delete o.created_by,delete o.deleted_at,delete o.updated_at,delete o.updated_by,delete o.updated_at,i[a]=o,t.prev=15,t.next=18,e.put(this.urlPath,i,{headers:_({},s()(this.stackHeaders)),params:_({},s()(n))});case 18:if(!(r=t.sent).data){t.next=23;break}return t.abrupt("return",new this.constructor(e,T(r,this.stackHeaders,this.content_type_uid)));case 23:throw h(r);case 24:t.next=29;break;case 26:throw t.prev=26,t.t0=t.catch(15),h(t.t0);case 29:case"end":return t.stop()}}),t,this,[[15,26]])})))},A=function(e){return x()(m.a.mark((function a(){var t,n,i,o=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},a.prev=1,n={headers:_({},s()(this.stackHeaders)),params:_({},s()(t))}||{},a.next=5,e.delete(this.urlPath,n);case 5:if(!(i=a.sent).data){a.next=10;break}return a.abrupt("return",i.data);case 10:throw h(i);case 11:a.next=16;break;case 13:throw a.prev=13,a.t0=a.catch(1),h(a.t0);case 16:case"end":return a.stop()}}),a,this,[[1,13]])})))},q=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.prev=1,i={headers:_({},s()(this.stackHeaders)),params:_({},s()(n))}||{},t.next=5,e.get(this.urlPath,i);case 5:if(!(o=t.sent).data){t.next=11;break}return"entry"===a&&(o.data[a].content_type=o.data.content_type,o.data[a].schema=o.data.schema),t.abrupt("return",new this.constructor(e,T(o,this.stackHeaders,this.content_type_uid)));case 11:throw h(o);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(1),h(t.t0);case 17:case"end":return t.stop()}}),t,this,[[1,14]])})))},R=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},this.stackHeaders&&(i.headers=this.stackHeaders),n&&(i.params=_({},s()(n))),t.prev=4,t.next=7,e.get(this.urlPath,i);case 7:if(!(o=t.sent).data){t.next=12;break}return t.abrupt("return",new g(o,e,this.stackHeaders,a));case 12:throw h(o);case 13:t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(4),h(t.t0);case 18:case"end":return t.stop()}}),t,this,[[4,15]])})))};function T(e,a,t){var n=e.data||{};return a&&(n.stackHeaders=a),t&&(n.content_type_uid=t),n}function D(e,a){return this.urlPath="/roles",this.stackHeaders=a.stackHeaders,a.role?(Object.assign(this,s()(a.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(e,"role"),this.delete=A(e),this.fetch=q(e,"role"))):(this.create=E({http:e}),this.fetchAll=R(e,L),this.query=z({http:e,wrapperCollection:L})),this}function L(e,a){return s()(a.roles||[]).map((function(t){return new D(e,{role:t,stackHeaders:a.stackHeaders})}))}function F(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function B(e){for(var a=1;a0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/stacks"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,$e));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.transferOwnership=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.addUser=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/share"),{share:B({},n)});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,G));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.getInvitations=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/share"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,G));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.resendInvitation=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.roles=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/roles"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,L));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}())):this.fetchAll=R(e,U)}function U(e,a){return s()(a.organizations||[]).map((function(a){return new N(e,{organization:a})}))}function I(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function M(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/content_types",t.content_type?(Object.assign(this,s()(t.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(e,"content_type"),this.delete=A(e),this.fetch=q(e,"content_type"),this.entry=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return n.content_type_uid=a.uid,t&&(n.entry={uid:t}),new Y(e,n)}):(this.generateUid=function(e){if(!e)throw new TypeError("Expected parameter name");return e.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Z}),this.import=function(){var a=x()(m.a.mark((function a(t){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:ee(t)});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(n,this.stackHeaders)));case 8:throw h(n);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e){return a.apply(this,arguments)}}()),this}function Z(e,a){return(s()(a.content_types)||[]).map((function(t){return new X(e,{content_type:t,stackHeaders:a.stackHeaders})}))}function ee(e){var a=new K.a,t=Object(W.createReadStream)(e.content_type);return a.append("content_type",t),a}function ae(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=a.stackHeaders,this.urlPath="/global_fields",a.global_field?(Object.assign(this,s()(a.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(e,"global_field"),this.delete=A(e),this.fetch=q(e,"global_field")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:te}),this.import=function(){var a=x()(m.a.mark((function a(t){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:ne(t)});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(n,this.stackHeaders)));case 8:throw h(n);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e){return a.apply(this,arguments)}}()),this}function te(e,a){return(s()(a.global_fields)||[]).map((function(t){return new ae(e,{global_field:t,stackHeaders:a.stackHeaders})}))}function ne(e){var a=new K.a,t=Object(W.createReadStream)(e.global_field);return a.append("global_field",t),a}function ie(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/stacks/delivery_tokens",a.token?(Object.assign(this,s()(a.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(e,"token"),this.delete=A(e),this.fetch=q(e,"token")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:oe}))}function oe(e,a){return(s()(a.tokens)||[]).map((function(t){return new ie(e,{token:t,stackHeaders:a.stackHeaders})}))}function re(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/environments",a.environment?(Object.assign(this,s()(a.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(e,"environment"),this.delete=A(e),this.fetch=q(e,"environment")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:se}))}function se(e,a){return(s()(a.environments)||[]).map((function(t){return new re(e,{environment:t,stackHeaders:a.stackHeaders})}))}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.stackHeaders&&(this.stackHeaders=a.stackHeaders),this.urlPath="/assets/folders",a.asset?(Object.assign(this,s()(a.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(e,"asset"),this.delete=A(e),this.fetch=q(e,"asset")):this.create=E({http:e})}function pe(e){var a=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/assets",t.asset?(Object.assign(this,s()(t.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(e,"asset"),this.delete=A(e),this.fetch=q(e,"asset"),this.replace=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:le(t),params:n,method:"PUT"});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.publish=O(e,"asset"),this.unpublish=S(e,"asset")):(this.folder=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return t&&(n.asset={uid:t}),new ce(e,n)},this.create=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:le(t),params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.query=z({http:e,wrapperCollection:ue})),this}function ue(e,a){return(s()(a.assets)||[]).map((function(t){return new pe(e,{asset:t,stackHeaders:a.stackHeaders})}))}function le(e){var a=new K.a;"string"==typeof e.parent_uid&&a.append("asset[parent_uid]",e.parent_uid),"string"==typeof e.description&&a.append("asset[description]",e.description),e.tags instanceof Array?a.append("asset[tags]",e.tags.join(",")):"string"==typeof e.tags&&a.append("asset[tags]",e.tags),"string"==typeof e.title&&a.append("asset[title]",e.title);var t=Object(W.createReadStream)(e.upload);return a.append("asset[upload]",t),a}function de(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=a.stackHeaders,this.urlPath="/locales",a.locale?(Object.assign(this,s()(a.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(e,"locale"),this.delete=A(e),this.fetch=q(e,"locale")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:me})),this}function me(e,a){return(s()(a.locales)||[]).map((function(t){return new de(e,{locale:t,stackHeaders:a.stackHeaders})}))}var fe=t(75),xe=t.n(fe);function he(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/extensions",a.extension?(Object.assign(this,s()(a.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(e,"extension"),this.delete=A(e),this.fetch=q(e,"extension")):(this.upload=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:be(t),params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.create=E({http:e}),this.query=z({http:e,wrapperCollection:ve}))}function ve(e,a){return(s()(a.extensions)||[]).map((function(t){return new he(e,{extension:t,stackHeaders:a.stackHeaders})}))}function be(e){var a=new K.a;"string"==typeof e.title&&a.append("extension[title]",e.title),"object"===xe()(e.scope)&&a.append("extension[scope]","".concat(e.scope)),"string"==typeof e.data_type&&a.append("extension[data_type]",e.data_type),"string"==typeof e.type&&a.append("extension[type]",e.type),e.tags instanceof Array?a.append("extension[tags]",e.tags.join(",")):"string"==typeof e.tags&&a.append("extension[tags]",e.tags),"boolean"==typeof e.multiple&&a.append("extension[multiple]","".concat(e.multiple)),"boolean"==typeof e.enable&&a.append("extension[enable]","".concat(e.enable));var t=Object(W.createReadStream)(e.upload);return a.append("extension[upload]",t),a}function ge(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function ye(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/webhooks",t.webhook?(Object.assign(this,s()(t.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(e,"webhook"),this.delete=A(e),this.fetch=q(e,"webhook"),this.executions=function(){var t=x()(m.a.mark((function t(n){var i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},a.stackHeaders&&(i.headers=a.stackHeaders),n&&(i.params=ye({},s()(n))),t.prev=3,t.next=6,e.get("".concat(a.urlPath,"/executions"),i);case 6:if(!(o=t.sent).data){t.next=11;break}return t.abrupt("return",o.data);case 11:throw h(o);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}(),this.retry=function(){var t=x()(m.a.mark((function t(n){var i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},a.stackHeaders&&(i.headers=a.stackHeaders),t.prev=2,t.next=5,e.post("".concat(a.urlPath,"/retry"),{execution_uid:n},i);case 5:if(!(o=t.sent).data){t.next=10;break}return t.abrupt("return",o.data);case 10:throw h(o);case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(2),h(t.t0);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})));return function(e){return t.apply(this,arguments)}}()):(this.create=E({http:e}),this.fetchAll=R(e,ke)),this.import=function(){var t=x()(m.a.mark((function t(n){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C({http:e,urlPath:"".concat(a.urlPath,"/import"),stackHeaders:a.stackHeaders,formData:je(n)});case 3:if(!(i=t.sent).data){t.next=8;break}return t.abrupt("return",new a.constructor(e,T(i,a.stackHeaders)));case 8:throw h(i);case 9:t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(0),h(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}(),this}function ke(e,a){return(s()(a.webhooks)||[]).map((function(t){return new we(e,{webhook:t,stackHeaders:a.stackHeaders})}))}function je(e){var a=new K.a,t=Object(W.createReadStream)(e.webhook);return a.append("webhook",t),a}function _e(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/workflows/publishing_rules",a.publishing_rule?(Object.assign(this,s()(a.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(e,"publishing_rule"),this.delete=A(e),this.fetch=q(e,"publishing_rule")):(this.create=E({http:e}),this.fetchAll=R(e,Oe))}function Oe(e,a){return(s()(a.publishing_rules)||[]).map((function(t){return new _e(e,{publishing_rule:t,stackHeaders:a.stackHeaders})}))}function Se(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Pe(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=t.stackHeaders,this.urlPath="/workflows",t.workflow?(Object.assign(this,s()(t.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(e,"workflow"),this.disable=x()(m.a.mark((function a(){var t;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("/workflows/".concat(this.uid,"/disable"),{headers:Pe({},s()(this.stackHeaders))});case 3:if(!(t=a.sent).data){a.next=8;break}return a.abrupt("return",t.data);case 8:throw h(t);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])}))),this.enable=x()(m.a.mark((function a(){var t;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("/workflows/".concat(this.uid,"/enable"),{headers:Pe({},s()(this.stackHeaders))});case 3:if(!(t=a.sent).data){a.next=8;break}return a.abrupt("return",t.data);case 8:throw h(t);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])}))),this.delete=A(e),this.fetch=q(e,"workflow")):(this.contentType=function(t){if(t)return{getPublishRules:function(){var a=x()(m.a.mark((function a(n){var i,o;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i={},this.stackHeaders&&(i.headers=this.stackHeaders),n&&(i.params=Pe({},s()(n))),a.prev=3,a.next=6,e.get("/workflows/content_type/".concat(t),i);case 6:if(!(o=a.sent).data){a.next=11;break}return a.abrupt("return",new g(o,e,this.stackHeaders,Oe));case 11:throw h(o);case 12:a.next=17;break;case 14:throw a.prev=14,a.t0=a.catch(3),h(a.t0);case 17:case"end":return a.stop()}}),a,this,[[3,14]])})));return function(e){return a.apply(this,arguments)}}(),stackHeaders:Pe({},a.stackHeaders)}},this.create=E({http:e}),this.fetchAll=R(e,Ee),this.publishRule=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return t&&(n.publishing_rule={uid:t}),new _e(e,n)})}function Ee(e,a){return(s()(a.workflows)||[]).map((function(t){return new Ce(e,{workflow:t,stackHeaders:a.stackHeaders})}))}function ze(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function He(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,t.item&&Object.assign(this,s()(t.item)),t.releaseUid&&(this.urlPath="releases/".concat(t.releaseUid,"/items"),this.delete=function(){var n=x()(m.a.mark((function n(i){var o,r,c;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={},void 0===i&&(o={all:!0}),n.prev=2,r={headers:He({},s()(a.stackHeaders)),data:He({},s()(i)),params:He({},s()(o))}||{},n.next=6,e.delete(a.urlPath,r);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new De(e,He(He({},c.data),{},{stackHeaders:t.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(e){return n.apply(this,arguments)}}(),this.create=function(){var n=x()(m.a.mark((function n(i){var o,r;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={headers:He({},s()(a.stackHeaders))}||{},n.prev=1,n.next=4,e.post(i.item?"releases/".concat(t.releaseUid,"/item"):a.urlPath,i,o);case 4:if(!(r=n.sent).data){n.next=10;break}if(!r.data){n.next=8;break}return n.abrupt("return",new De(e,He(He({},r.data),{},{stackHeaders:t.stackHeaders})));case 8:n.next=11;break;case 10:throw h(r);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(e){return n.apply(this,arguments)}}(),this.findAll=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.prev=1,i={headers:He({},s()(a.stackHeaders)),params:He({},s()(n))}||{},t.next=5,e.get(a.urlPath,i);case 5:if(!(o=t.sent).data){t.next=10;break}return t.abrupt("return",new g(o,e,a.stackHeaders,qe));case 10:throw h(o);case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),h(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))),this}function qe(e,a,t){return(s()(a.items)||[]).map((function(n){return new Ae(e,{releaseUid:t,item:n,stackHeaders:a.stackHeaders})}))}function Re(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Te(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/releases",t.release?(Object.assign(this,s()(t.release)),t.release.items&&(this.items=new qe(e,{items:t.release.items,stackHeaders:t.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(e,"release"),this.fetch=q(e,"release"),this.delete=A(e),this.item=function(){return new Ae(e,{releaseUid:a.uid,stackHeaders:a.stackHeaders})},this.deploy=function(){var t=x()(m.a.mark((function t(n){var i,o,r,c,p,u,l;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.environments,o=n.locales,r=n.scheduledAt,c=n.action,p={environments:i,locales:o,scheduledAt:r,action:c},u={headers:Te({},s()(a.stackHeaders))}||{},t.prev=3,t.next=6,e.post("".concat(a.urlPath,"/deploy"),{release:p},u);case 6:if(!(l=t.sent).data){t.next=11;break}return t.abrupt("return",l.data);case 11:throw h(l);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}(),this.clone=function(){var t=x()(m.a.mark((function t(n){var i,o,r,c,p;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.name,o=n.description,r={name:i,description:o},c={headers:Te({},s()(a.stackHeaders))}||{},t.prev=3,t.next=6,e.post("".concat(a.urlPath,"/clone"),{release:r},c);case 6:if(!(p=t.sent).data){t.next=11;break}return t.abrupt("return",new De(e,p.data));case 11:throw h(p);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}()):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Le})),this}function Le(e,a){return(s()(a.releases)||[]).map((function(t){return new De(e,{release:t,stackHeaders:a.stackHeaders})}))}function Fe(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Be(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=t.stackHeaders,this.urlPath="/bulk",this.publish=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},n.skip_workflow_stage_check&&(o.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(o.headers.approvals=n.approvals),t.abrupt("return",P(e,"/bulk/publish",i,o));case 7:case"end":return t.stop()}}),t)}))),this.unpublish=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},n.skip_workflow_stage_check&&(o.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(o.headers.approvals=n.approvals),t.abrupt("return",P(e,"/bulk/unpublish",i,o));case 7:case"end":return t.stop()}}),t)}))),this.delete=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},t.abrupt("return",P(e,"/bulk/delete",i,o));case 5:case"end":return t.stop()}}),t)})))}function Ue(e,a){this.stackHeaders=a.stackHeaders,this.urlPath="/labels",a.label?(Object.assign(this,s()(a.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(e,"label"),this.delete=A(e),this.fetch=q(e,"label")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Ie}))}function Ie(e,a){return(s()(a.labels)||[]).map((function(t){return new Ue(e,{label:t,stackHeaders:a.stackHeaders})}))}function Me(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Ve(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.content_type={uid:a}),new X(e,n)},this.locale=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.locale={code:a}),new de(e,n)},this.asset=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.asset={uid:a}),new pe(e,n)},this.globalField=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.global_field={uid:a}),new ae(e,n)},this.environment=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.environment={name:a}),new re(e,n)},this.deliveryToken=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.token={uid:a}),new ie(e,n)},this.extension=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.extension={uid:a}),new he(e,n)},this.workflow=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.workflow={uid:a}),new Ce(e,n)},this.webhook=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.webhook={uid:a}),new we(e,n)},this.label=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.label={uid:a}),new Ue(e,n)},this.release=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.release={uid:a}),new De(e,n)},this.bulkOperation=function(){var a={stackHeaders:t.stackHeaders};return new Ne(e,a)},this.users=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get(t.urlPath,{params:{include_collaborators:!0},headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",G(e,n.data.stack));case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.transferOwnership=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.settings=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/settings"),{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",n.data.stack_settings);case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.resetSettings=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",n.data.stack_settings);case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.addSettings=x()(m.a.mark((function a(){var n,i,o=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},a.prev=1,a.next=4,e.post("".concat(t.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ve({},s()(t.stackHeaders))});case 4:if(!(i=a.sent).data){a.next=9;break}return a.abrupt("return",i.data.stack_settings);case 9:return a.abrupt("return",h(i));case 10:a.next=15;break;case 12:return a.prev=12,a.t0=a.catch(1),a.abrupt("return",h(a.t0));case 15:case"end":return a.stop()}}),a,null,[[1,12]])}))),this.share=x()(m.a.mark((function a(){var n,i,o,r=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:[],i=r.length>1&&void 0!==r[1]?r[1]:{},a.prev=2,a.next=5,e.post("".concat(t.urlPath,"/share"),{emails:n,roles:i},{headers:Ve({},s()(t.stackHeaders))});case 5:if(!(o=a.sent).data){a.next=10;break}return a.abrupt("return",o.data);case 10:return a.abrupt("return",h(o));case 11:a.next=16;break;case 13:return a.prev=13,a.t0=a.catch(2),a.abrupt("return",h(a.t0));case 16:case"end":return a.stop()}}),a,null,[[2,13]])}))),this.unShare=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/unshare"),{email:n},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.role=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.role={uid:a}),new D(e,n)}):(this.create=E({http:e,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=z({http:e,wrapperCollection:$e})),this}function $e(e,a){var t=a.stacks||[];return s()(t).map((function(a){return new Ge(e,{stack:a})}))}function Ke(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function We(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return a.post("/user-session",{user:e},{params:t}).then((function(e){return null!=e.data.user&&null!=e.data.user.authtoken&&(a.defaults.headers.common.authtoken=e.data.user.authtoken,e.data.user=new V(a,e.data)),e.data}),h)},logout:function(e){return void 0!==e?a.delete("/user-session",{headers:{authtoken:e}}).then((function(e){return e.data}),h):a.delete("/user-session").then((function(e){return a.defaults.headers.common&&delete a.defaults.headers.common.authtoken,delete a.defaults.headers.authtoken,delete a.httpClientParams.authtoken,delete a.httpClientParams.headers.authtoken,e.data}),h)},getUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.get("/user",{params:e}).then((function(e){return new V(a,e.data)}),h)},stack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=We({},s()(e));return new Ge(a,{stack:t})},organization:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new N(a,null!==e?{organization:{uid:e}}:null)},axiosInstance:a}}var Je=t(76),Qe=t.n(Je),Xe=t(77),Ze=t.n(Xe),ea=t(20),aa=t.n(ea);function ta(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function na(e){for(var a=1;aa.config.retryLimit)return Promise.reject(o(e));if(a.config.retryDelayOptions)if(a.config.retryDelayOptions.customBackoff){if((c=a.config.retryDelayOptions.customBackoff(i,e))&&c<=0)return Promise.reject(o(e))}else a.config.retryDelayOptions.base&&(c=a.config.retryDelayOptions.base*i);else c=a.config.retryDelay;return e.config.retryCount=i,new Promise((function(a){return setTimeout((function(){return a(t(r(e,n,c)))}),c)}))},this.interceptors={request:null,response:null};var r=function(e,n,i){var o=e.config;return a.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(i," ms before retrying...")),void 0!==t&&void 0!==t.defaults&&(t.defaults.agent===o.agent&&delete o.agent,t.defaults.httpAgent===o.httpAgent&&delete o.httpAgent,t.defaults.httpsAgent===o.httpsAgent&&delete o.httpsAgent),o.transformRequest=[function(e){return e}],o};this.interceptors.request=t.interceptors.request.use((function(e){if(e.retryCount=e.retryCount||0,e.headers.authorization&&void 0!==e.headers.authorization&&delete e.headers.authtoken,void 0===e.cancelToken){var t=aa.a.CancelToken.source();e.cancelToken=t.token,e.source=t}return a.paused&&e.retryCount>0?new Promise((function(t){a.unshift({request:e,resolve:t})})):e.retryCount>0?e:new Promise((function(t){a.push({request:e,resolve:t})}))})),this.interceptors.response=t.interceptors.response.use(o,(function(e){var n=e.config.retryCount,i=null;if(!a.config.retryOnError||n>a.config.retryLimit)return Promise.reject(o(e));var s=a.config.retryDelay,c=e.response;if(c){if(429===c.status)return i="Error with status: ".concat(c.status),++n>a.config.retryLimit?Promise.reject(o(e)):(a.running.shift(),function e(t){if(!a.paused)return a.paused=!0,a.running.length>0&&setTimeout((function(){e(t)}),t),new Promise((function(e){return setTimeout((function(){a.paused=!1;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},a={defaultHostName:"api.contentstack.io"},t="contentstack-management-javascript/".concat(o.version),n=l(t,e.application,e.integration,e.feature),i={"X-User-Agent":t,"User-Agent":n};e.authtoken&&(i.authtoken=e.authtoken),(e=ua(ua({},a),s()(e))).headers=ua(ua({},e.headers),i);var r=ca(e),c=Ye({http:r});return c}}]); \ No newline at end of file +e.exports=t(153)},function(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["ecma","es"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/mrb-publish+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["keynote"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana"},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana"},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana"},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana"},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shex":{"extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana"},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},function(e,a,t){e.exports={parallel:t(155),serial:t(157),serialOrdered:t(61)}},function(e,a,t){var n=t(56),i=t(59),o=t(60);e.exports=function(e,a,t){var r=i(e);for(;r.index<(r.keyedList||e).length;)n(e,a,r,(function(e,a){e?t(e,a):0!==Object.keys(r.jobs).length||t(null,r.results)})),r.index++;return o.bind(r,t)}},function(e,a){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var a="function"==typeof setImmediate?setImmediate:"object"==("undefined"==typeof process?"undefined":t(process))&&"function"==typeof process.nextTick?process.nextTick:null;a?a(e):setTimeout(e,0)}},function(e,a,t){var n=t(61);e.exports=function(e,a,t){return n(e,a,null,t)}},function(e,a){e.exports=function(e,a){return Object.keys(a).forEach((function(t){e[t]=e[t]||a[t]})),e}},function(e,a){e.exports=function(e){if(Array.isArray(e))return e}},function(e,a){e.exports=function(e,a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done)&&(t.push(r.value),!a||t.length!==a);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}}},function(e,a,t){var n=t(162);e.exports=function(e,a){if(e){if("string"==typeof e)return n(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,a):void 0}}},function(e,a){e.exports=function(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t0?g+b:""}},function(e,a,t){"use strict";var n=t(36),i=Object.prototype.hasOwnProperty,o=Array.isArray,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,a){return String.fromCharCode(parseInt(a,10))}))},c=function(e,a){return e&&"string"==typeof e&&a.comma&&e.indexOf(",")>-1?e.split(","):e},p=function(e,a,t,n){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,s=t.depth>0&&/(\[[^[\]]*])/.exec(o),p=s?o.slice(0,s.index):o,u=[];if(p){if(!t.plainObjects&&i.call(Object.prototype,p)&&!t.allowPrototypes)return;u.push(p)}for(var l=0;t.depth>0&&null!==(s=r.exec(o))&&l=0;--o){var r,s=e[o];if("[]"===s&&t.parseArrays)r=[].concat(i);else{r=t.plainObjects?Object.create(null):{};var p="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(p,10);t.parseArrays||""!==p?!isNaN(u)&&s!==p&&String(u)===p&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(r=[])[u]=i:r[p]=i:r={0:i}}i=r}return i}(u,a,t,n)}};e.exports=function(e,a){var t=function(e){if(!e)return r;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=void 0===e.charset?r.charset:e.charset;return{allowDots:void 0===e.allowDots?r.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:a,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(a);if(""===e||null==e)return t.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,a){var t,p={},u=a.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=a.parameterLimit===1/0?void 0:a.parameterLimit,d=u.split(a.delimiter,l),m=-1,f=a.charset;if(a.charsetSentinel)for(t=0;t-1&&(h=o(h)?[h]:h),i.call(p,x)?p[x]=n.combine(p[x],h):p[x]=h}return p}(e,t):e,l=t.plainObjects?Object.create(null):{},d=Object.keys(u),m=0;m=0)return;r[a]="set-cookie"===a?(r[a]?r[a]:[]).concat([t]):r[a]?r[a]+", "+t:t}})),r):r}},function(e,a,t){"use strict";var n=t(4);e.exports=n.isStandardBrowserEnv()?function(){var e,a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function i(e){var n=e;return a&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=i(window.location.href),function(a){var t=n.isString(a)?i(a):a;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0}},function(e,a,t){"use strict";var n=t(4),i=t(66),o=t(68),r=t(37),s=t(33),c=t(34),p=t(69).http,u=t(69).https,l=t(35),d=t(188),m=t(189),f=t(38),x=t(67),h=/https:?/;e.exports=function(e){return new Promise((function(a,t){var v=function(e){a(e)},b=function(e){t(e)},g=e.data,y=e.headers;if(y["User-Agent"]||y["user-agent"]||(y["User-Agent"]="axios/"+m.version),g&&!n.isStream(g)){if(Buffer.isBuffer(g));else if(n.isArrayBuffer(g))g=Buffer.from(new Uint8Array(g));else{if(!n.isString(g))return b(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));g=Buffer.from(g,"utf-8")}y["Content-Length"]=g.length}var w=void 0;e.auth&&(w=(e.auth.username||"")+":"+(e.auth.password||""));var k=o(e.baseURL,e.url),j=l.parse(k),_=j.protocol||"http:";if(!w&&j.auth){var O=j.auth.split(":");w=(O[0]||"")+":"+(O[1]||"")}w&&delete y.Authorization;var S=h.test(_),P=S?e.httpsAgent:e.httpAgent,C={path:r(j.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:y,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:w};e.socketPath?C.socketPath=e.socketPath:(C.hostname=j.hostname,C.port=j.port);var E,z=e.proxy;if(!z&&!1!==z){var H=_.slice(0,-1)+"_proxy",A=process.env[H]||process.env[H.toUpperCase()];if(A){var q=l.parse(A),R=process.env.no_proxy||process.env.NO_PROXY,T=!0;if(R)T=!R.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&j.hostname.substr(j.hostname.length-e.length)===e||j.hostname===e))}));if(T&&(z={host:q.hostname,port:q.port,protocol:q.protocol},q.auth)){var D=q.auth.split(":");z.auth={username:D[0],password:D[1]}}}}z&&(C.headers.host=j.hostname+(j.port?":"+j.port:""),function e(a,t,n){if(a.hostname=t.host,a.host=t.host,a.port=t.port,a.path=n,t.auth){var i=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");a.headers["Proxy-Authorization"]="Basic "+i}a.beforeRedirect=function(a){a.headers.host=a.host,e(a,t,a.href)}}(C,z,_+"//"+j.hostname+(j.port?":"+j.port:"")+C.path));var L=S&&(!z||h.test(z.protocol));e.transport?E=e.transport:0===e.maxRedirects?E=L?c:s:(e.maxRedirects&&(C.maxRedirects=e.maxRedirects),E=L?u:p),e.maxBodyLength>-1&&(C.maxBodyLength=e.maxBodyLength);var F=E.request(C,(function(a){if(!F.aborted){var t=a,o=a.req||F;if(204!==a.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(a.headers["content-encoding"]){case"gzip":case"compress":case"deflate":t=t.pipe(d.createUnzip()),delete a.headers["content-encoding"]}var r={status:a.statusCode,statusText:a.statusMessage,headers:a.headers,config:e,request:o};if("stream"===e.responseType)r.data=t,i(v,b,r);else{var s=[];t.on("data",(function(a){s.push(a),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(t.destroy(),b(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,o)))})),t.on("error",(function(a){F.aborted||b(x(a,e,null,o))})),t.on("end",(function(){var a=Buffer.concat(s);"arraybuffer"!==e.responseType&&(a=a.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(a=n.stripBOM(a))),r.data=a,i(v,b,r)}))}}}));F.on("error",(function(a){F.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==a.code||b(x(a,e,null,F))})),e.timeout&&F.setTimeout(e.timeout,(function(){F.abort(),b(f("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",F))})),e.cancelToken&&e.cancelToken.promise.then((function(e){F.aborted||(F.abort(),b(e))})),n.isStream(g)?g.on("error",(function(a){b(x(a,e,null,F))})).pipe(F):F.end(g)}))}},function(e,a){e.exports=require("assert")},function(e,a,t){var n;try{n=t(181)("follow-redirects")}catch(e){n=function(){}}e.exports=n},function(e,a,t){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=t(182):e.exports=t(184)},function(e,a,t){var n;a.formatArgs=function(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var t="color: "+this.color;a.splice(1,0,t,"color: inherit");var n=0,i=0;a[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))})),a.splice(i,0,t)},a.save=function(e){try{e?a.storage.setItem("debug",e):a.storage.removeItem("debug")}catch(e){}},a.load=function(){var e;try{e=a.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},a.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=function(){try{return localStorage}catch(e){}}(),a.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.log=console.debug||console.log||function(){},e.exports=t(70)(a),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,a){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=1e3,i=6e4,o=60*i,r=24*o;function s(e,a,t,n){var i=a>=1.5*t;return Math.round(e/t)+" "+n+(i?"s":"")}e.exports=function(e,a){a=a||{};var c=t(e);if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var t=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*r;case"hours":case"hour":case"hrs":case"hr":case"h":return t*o;case"minutes":case"minute":case"mins":case"min":case"m":return t*i;case"seconds":case"second":case"secs":case"sec":case"s":return t*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}(e);if("number"===c&&isFinite(e))return a.long?function(e){var a=Math.abs(e);if(a>=r)return s(e,a,r,"day");if(a>=o)return s(e,a,o,"hour");if(a>=i)return s(e,a,i,"minute");if(a>=n)return s(e,a,n,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=r)return Math.round(e/r)+"d";if(a>=o)return Math.round(e/o)+"h";if(a>=i)return Math.round(e/i)+"m";if(a>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,a,t){var n=t(185),i=t(18);a.init=function(e){e.inspectOpts={};for(var t=Object.keys(a.inspectOpts),n=0;n=2&&(a.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}a.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,a){var t=a.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,a){return a.toUpperCase()})),n=process.env[a];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[t]=n,e}),{}),e.exports=t(70)(a);var r=e.exports.formatters;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},function(e,a){e.exports=require("tty")},function(e,a,t){"use strict";var n,i=t(19),o=t(187),r=process.env;function s(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===n)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==n)return 0;var a=n?1:0;if("win32"===process.platform){var t=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in r}))||"codeship"===r.CI_NAME?1:a;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){var s=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,a)}(e))}o("no-color")||o("no-colors")||o("color=false")?n=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(n=!0),"FORCE_COLOR"in r&&(n=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},function(e,a,t){"use strict";e.exports=function(e,a){a=a||process.argv;var t=e.startsWith("-")?"":1===e.length?"-":"--",n=a.indexOf(t+e),i=a.indexOf("--");return-1!==n&&(-1===i||n2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;b()(this,e);var o=a.data||{};n&&(o.stackHeaders=n),this.items=i(t,o),void 0!==o.schema&&(this.schema=o.schema),void 0!==o.content_type&&(this.content_type=o.content_type),void 0!==o.count&&(this.count=o.count),void 0!==o.notice&&(this.notice=o.notice)};function y(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var a=1;a3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0,o={};n&&(o.headers=n);var r=null;t&&(t.content_type_uid&&(r=t.content_type_uid,delete t.content_type_uid),o.params=w({},s()(t)));var c=function(){var t=x()(m.a.mark((function t(){var s;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.get(a,o);case 3:if(!(s=t.sent).data){t.next=9;break}return r&&(s.data.content_type_uid=r),t.abrupt("return",new g(s,e,n,i));case 9:throw h(s);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(0),h(t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=x()(m.a.mark((function t(){var n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.params=w(w({},o.params),{},{count:!0}),t.prev=1,t.next=4,e.get(a,o);case 4:if(!(n=t.sent).data){t.next=9;break}return t.abrupt("return",n.data);case 9:throw h(n);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(1),h(t.t0);case 15:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(){return t.apply(this,arguments)}}(),u=function(){var t=x()(m.a.mark((function t(){var s,c;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(s=o).params.limit=1,t.prev=2,t.next=5,e.get(a,s);case 5:if(!(c=t.sent).data){t.next=11;break}return r&&(c.data.content_type_uid=r),t.abrupt("return",new g(c,e,n,i));case 11:throw h(c);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(2),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[2,14]])})));return function(){return t.apply(this,arguments)}}();return{count:p,find:c,findOne:u}}function j(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function _(e){for(var a=1;a4&&void 0!==p[4]?p[4]:null,r=p.length>5&&void 0!==p[5]?p[5]:null,s=p.length>6&&void 0!==p[6]?p[6]:null,null!==o&&(n.locale=o),null!==r&&(n.version=r),null!==s&&(n.scheduled_at=s),e.prev=6,e.next=9,a.post(t,n,i);case 9:if(!(c=e.sent).data){e.next=14;break}return e.abrupt("return",c.data);case 14:throw h(c);case 15:e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(6),h(e.t0);case 20:case"end":return e.stop()}}),e,null,[[6,17]])})));return function(a,t,n,i){return e.apply(this,arguments)}}(),C=function(){var e=x()(m.a.mark((function e(a){var t,n,i,o,r,c,p,u;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.http,n=a.urlPath,i=a.stackHeaders,o=a.formData,r=a.params,c=a.method,p=void 0===c?"POST":c,u={headers:_(_({},r),s()(i))}||{},"POST"!==p){e.next=6;break}return e.abrupt("return",t.post(n,o,u));case 6:return e.abrupt("return",t.put(n,o,u));case 7:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),E=function(e){var a=e.http,t=e.params;return function(){var e=x()(m.a.mark((function e(n,i){var o,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={headers:_(_({},s()(t)),s()(this.stackHeaders)),params:_({},s()(i))}||{},console.log("Entry ",n),e.prev=2,e.next=5,a.post(this.urlPath,n,o);case 5:if(!(r=e.sent).data){e.next=10;break}return e.abrupt("return",new this.constructor(a,T(r,this.stackHeaders,this.content_type_uid)));case 10:throw h(r);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[2,13]])})));return function(a,t){return e.apply(this,arguments)}}()},z=function(e){var a=e.http,t=e.wrapperCollection;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(e.query||(e.query={}),e.query.org_uid=this.organization_uid),this.content_type_uid&&(e.content_type_uid=this.content_type_uid),k(a,this.urlPath,e,this.stackHeaders,t)}},H=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r,c=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},i={},delete(o=s()(this)).stackHeaders,delete o.urlPath,delete o.uid,delete o.org_uid,delete o.api_key,delete o.created_at,delete o.created_by,delete o.deleted_at,delete o.updated_at,delete o.updated_by,delete o.updated_at,i[a]=o,t.prev=15,t.next=18,e.put(this.urlPath,i,{headers:_({},s()(this.stackHeaders)),params:_({},s()(n))});case 18:if(!(r=t.sent).data){t.next=23;break}return t.abrupt("return",new this.constructor(e,T(r,this.stackHeaders,this.content_type_uid)));case 23:throw h(r);case 24:t.next=29;break;case 26:throw t.prev=26,t.t0=t.catch(15),h(t.t0);case 29:case"end":return t.stop()}}),t,this,[[15,26]])})))},A=function(e){return x()(m.a.mark((function a(){var t,n,i,o=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},a.prev=1,n={headers:_({},s()(this.stackHeaders)),params:_({},s()(t))}||{},a.next=5,e.delete(this.urlPath,n);case 5:if(!(i=a.sent).data){a.next=10;break}return a.abrupt("return",i.data);case 10:throw h(i);case 11:a.next=16;break;case 13:throw a.prev=13,a.t0=a.catch(1),h(a.t0);case 16:case"end":return a.stop()}}),a,this,[[1,13]])})))},q=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.prev=1,i={headers:_({},s()(this.stackHeaders)),params:_({},s()(n))}||{},t.next=5,e.get(this.urlPath,i);case 5:if(!(o=t.sent).data){t.next=11;break}return"entry"===a&&(o.data[a].content_type=o.data.content_type,o.data[a].schema=o.data.schema),t.abrupt("return",new this.constructor(e,T(o,this.stackHeaders,this.content_type_uid)));case 11:throw h(o);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(1),h(t.t0);case 17:case"end":return t.stop()}}),t,this,[[1,14]])})))},R=function(e,a){return x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},this.stackHeaders&&(i.headers=this.stackHeaders),n&&(i.params=_({},s()(n))),t.prev=4,t.next=7,e.get(this.urlPath,i);case 7:if(!(o=t.sent).data){t.next=12;break}return t.abrupt("return",new g(o,e,this.stackHeaders,a));case 12:throw h(o);case 13:t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(4),h(t.t0);case 18:case"end":return t.stop()}}),t,this,[[4,15]])})))};function T(e,a,t){var n=e.data||{};return a&&(n.stackHeaders=a),t&&(n.content_type_uid=t),n}function D(e,a){return this.urlPath="/roles",this.stackHeaders=a.stackHeaders,a.role?(Object.assign(this,s()(a.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(e,"role"),this.delete=A(e),this.fetch=q(e,"role"))):(this.create=E({http:e}),this.fetchAll=R(e,L),this.query=z({http:e,wrapperCollection:L})),this}function L(e,a){return s()(a.roles||[]).map((function(t){return new D(e,{role:t,stackHeaders:a.stackHeaders})}))}function F(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function B(e){for(var a=1;a0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/stacks"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,$e));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.transferOwnership=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.addUser=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/share"),{share:B({},n)});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,G));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.getInvitations=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/share"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,G));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.resendInvitation=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.roles=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/roles"),{params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new g(i,e,null,L));case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}())):this.fetchAll=R(e,U)}function U(e,a){return s()(a.organizations||[]).map((function(a){return new N(e,{organization:a})}))}function I(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function M(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/content_types",t.content_type?(Object.assign(this,s()(t.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(e,"content_type"),this.delete=A(e),this.fetch=q(e,"content_type"),this.entry=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return n.content_type_uid=a.uid,t&&(n.entry={uid:t}),new Y(e,n)}):(this.generateUid=function(e){if(!e)throw new TypeError("Expected parameter name");return e.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Z}),this.import=function(){var a=x()(m.a.mark((function a(t){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:ee(t)});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(n,this.stackHeaders)));case 8:throw h(n);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e){return a.apply(this,arguments)}}()),this}function Z(e,a){return(s()(a.content_types)||[]).map((function(t){return new X(e,{content_type:t,stackHeaders:a.stackHeaders})}))}function ee(e){return function(){var a=new K.a,t=Object(W.createReadStream)(e.content_type);return a.append("content_type",t),a}}function ae(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=a.stackHeaders,this.urlPath="/global_fields",a.global_field?(Object.assign(this,s()(a.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(e,"global_field"),this.delete=A(e),this.fetch=q(e,"global_field")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:te}),this.import=function(){var a=x()(m.a.mark((function a(t){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:ne(t)});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(n,this.stackHeaders)));case 8:throw h(n);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e){return a.apply(this,arguments)}}()),this}function te(e,a){return(s()(a.global_fields)||[]).map((function(t){return new ae(e,{global_field:t,stackHeaders:a.stackHeaders})}))}function ne(e){return function(){var a=new K.a,t=Object(W.createReadStream)(e.global_field);return a.append("global_field",t),a}}function ie(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/stacks/delivery_tokens",a.token?(Object.assign(this,s()(a.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(e,"token"),this.delete=A(e),this.fetch=q(e,"token")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:oe}))}function oe(e,a){return(s()(a.tokens)||[]).map((function(t){return new ie(e,{token:t,stackHeaders:a.stackHeaders})}))}function re(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/environments",a.environment?(Object.assign(this,s()(a.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(e,"environment"),this.delete=A(e),this.fetch=q(e,"environment")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:se}))}function se(e,a){return(s()(a.environments)||[]).map((function(t){return new re(e,{environment:t,stackHeaders:a.stackHeaders})}))}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.stackHeaders&&(this.stackHeaders=a.stackHeaders),this.urlPath="/assets/folders",a.asset?(Object.assign(this,s()(a.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(e,"asset"),this.delete=A(e),this.fetch=q(e,"asset")):this.create=E({http:e})}function pe(e){var a=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/assets",t.asset?(Object.assign(this,s()(t.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(e,"asset"),this.delete=A(e),this.fetch=q(e,"asset"),this.replace=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:le(t),params:n,method:"PUT"});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.publish=O(e,"asset"),this.unpublish=S(e,"asset")):(this.folder=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return t&&(n.asset={uid:t}),new ce(e,n)},this.create=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:le(t),params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.query=z({http:e,wrapperCollection:ue})),this}function ue(e,a){return(s()(a.assets)||[]).map((function(t){return new pe(e,{asset:t,stackHeaders:a.stackHeaders})}))}function le(e){return function(){var a=new K.a;"string"==typeof e.parent_uid&&a.append("asset[parent_uid]",e.parent_uid),"string"==typeof e.description&&a.append("asset[description]",e.description),e.tags instanceof Array?a.append("asset[tags]",e.tags.join(",")):"string"==typeof e.tags&&a.append("asset[tags]",e.tags),"string"==typeof e.title&&a.append("asset[title]",e.title);var t=Object(W.createReadStream)(e.upload);return a.append("asset[upload]",t),a}}function de(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=a.stackHeaders,this.urlPath="/locales",a.locale?(Object.assign(this,s()(a.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(e,"locale"),this.delete=A(e),this.fetch=q(e,"locale")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:me})),this}function me(e,a){return(s()(a.locales)||[]).map((function(t){return new de(e,{locale:t,stackHeaders:a.stackHeaders})}))}var fe=t(75),xe=t.n(fe);function he(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/extensions",a.extension?(Object.assign(this,s()(a.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(e,"extension"),this.delete=A(e),this.fetch=q(e,"extension")):(this.upload=function(){var a=x()(m.a.mark((function a(t,n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,C({http:e,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:be(t),params:n});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",new this.constructor(e,T(i,this.stackHeaders)));case 8:throw h(i);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])})));return function(e,t){return a.apply(this,arguments)}}(),this.create=E({http:e}),this.query=z({http:e,wrapperCollection:ve}))}function ve(e,a){return(s()(a.extensions)||[]).map((function(t){return new he(e,{extension:t,stackHeaders:a.stackHeaders})}))}function be(e){return function(){var a=new K.a;"string"==typeof e.title&&a.append("extension[title]",e.title),"object"===xe()(e.scope)&&a.append("extension[scope]","".concat(e.scope)),"string"==typeof e.data_type&&a.append("extension[data_type]",e.data_type),"string"==typeof e.type&&a.append("extension[type]",e.type),e.tags instanceof Array?a.append("extension[tags]",e.tags.join(",")):"string"==typeof e.tags&&a.append("extension[tags]",e.tags),"boolean"==typeof e.multiple&&a.append("extension[multiple]","".concat(e.multiple)),"boolean"==typeof e.enable&&a.append("extension[enable]","".concat(e.enable));var t=Object(W.createReadStream)(e.upload);return a.append("extension[upload]",t),a}}function ge(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function ye(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/webhooks",t.webhook?(Object.assign(this,s()(t.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(e,"webhook"),this.delete=A(e),this.fetch=q(e,"webhook"),this.executions=function(){var t=x()(m.a.mark((function t(n){var i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},a.stackHeaders&&(i.headers=a.stackHeaders),n&&(i.params=ye({},s()(n))),t.prev=3,t.next=6,e.get("".concat(a.urlPath,"/executions"),i);case 6:if(!(o=t.sent).data){t.next=11;break}return t.abrupt("return",o.data);case 11:throw h(o);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}(),this.retry=function(){var t=x()(m.a.mark((function t(n){var i,o;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},a.stackHeaders&&(i.headers=a.stackHeaders),t.prev=2,t.next=5,e.post("".concat(a.urlPath,"/retry"),{execution_uid:n},i);case 5:if(!(o=t.sent).data){t.next=10;break}return t.abrupt("return",o.data);case 10:throw h(o);case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(2),h(t.t0);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})));return function(e){return t.apply(this,arguments)}}()):(this.create=E({http:e}),this.fetchAll=R(e,ke)),this.import=function(){var t=x()(m.a.mark((function t(n){var i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C({http:e,urlPath:"".concat(a.urlPath,"/import"),stackHeaders:a.stackHeaders,formData:je(n)});case 3:if(!(i=t.sent).data){t.next=8;break}return t.abrupt("return",new a.constructor(e,T(i,a.stackHeaders)));case 8:throw h(i);case 9:t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(0),h(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}(),this}function ke(e,a){return(s()(a.webhooks)||[]).map((function(t){return new we(e,{webhook:t,stackHeaders:a.stackHeaders})}))}function je(e){return function(){var a=new K.a,t=Object(W.createReadStream)(e.webhook);return a.append("webhook",t),a}}function _e(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=a.stackHeaders,this.urlPath="/workflows/publishing_rules",a.publishing_rule?(Object.assign(this,s()(a.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(e,"publishing_rule"),this.delete=A(e),this.fetch=q(e,"publishing_rule")):(this.create=E({http:e}),this.fetchAll=R(e,Oe))}function Oe(e,a){return(s()(a.publishing_rules)||[]).map((function(t){return new _e(e,{publishing_rule:t,stackHeaders:a.stackHeaders})}))}function Se(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Pe(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=t.stackHeaders,this.urlPath="/workflows",t.workflow?(Object.assign(this,s()(t.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(e,"workflow"),this.disable=x()(m.a.mark((function a(){var t;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("/workflows/".concat(this.uid,"/disable"),{headers:Pe({},s()(this.stackHeaders))});case 3:if(!(t=a.sent).data){a.next=8;break}return a.abrupt("return",t.data);case 8:throw h(t);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])}))),this.enable=x()(m.a.mark((function a(){var t;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("/workflows/".concat(this.uid,"/enable"),{headers:Pe({},s()(this.stackHeaders))});case 3:if(!(t=a.sent).data){a.next=8;break}return a.abrupt("return",t.data);case 8:throw h(t);case 9:a.next=14;break;case 11:throw a.prev=11,a.t0=a.catch(0),h(a.t0);case 14:case"end":return a.stop()}}),a,this,[[0,11]])}))),this.delete=A(e),this.fetch=q(e,"workflow")):(this.contentType=function(t){if(t)return{getPublishRules:function(){var a=x()(m.a.mark((function a(n){var i,o;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i={},this.stackHeaders&&(i.headers=this.stackHeaders),n&&(i.params=Pe({},s()(n))),a.prev=3,a.next=6,e.get("/workflows/content_type/".concat(t),i);case 6:if(!(o=a.sent).data){a.next=11;break}return a.abrupt("return",new g(o,e,this.stackHeaders,Oe));case 11:throw h(o);case 12:a.next=17;break;case 14:throw a.prev=14,a.t0=a.catch(3),h(a.t0);case 17:case"end":return a.stop()}}),a,this,[[3,14]])})));return function(e){return a.apply(this,arguments)}}(),stackHeaders:Pe({},a.stackHeaders)}},this.create=E({http:e}),this.fetchAll=R(e,Ee),this.publishRule=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:a.stackHeaders};return t&&(n.publishing_rule={uid:t}),new _e(e,n)})}function Ee(e,a){return(s()(a.workflows)||[]).map((function(t){return new Ce(e,{workflow:t,stackHeaders:a.stackHeaders})}))}function ze(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function He(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,t.item&&Object.assign(this,s()(t.item)),t.releaseUid&&(this.urlPath="releases/".concat(t.releaseUid,"/items"),this.delete=function(){var n=x()(m.a.mark((function n(i){var o,r,c;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={},void 0===i&&(o={all:!0}),n.prev=2,r={headers:He({},s()(a.stackHeaders)),data:He({},s()(i)),params:He({},s()(o))}||{},n.next=6,e.delete(a.urlPath,r);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new De(e,He(He({},c.data),{},{stackHeaders:t.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(e){return n.apply(this,arguments)}}(),this.create=function(){var n=x()(m.a.mark((function n(i){var o,r;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={headers:He({},s()(a.stackHeaders))}||{},n.prev=1,n.next=4,e.post(i.item?"releases/".concat(t.releaseUid,"/item"):a.urlPath,i,o);case 4:if(!(r=n.sent).data){n.next=10;break}if(!r.data){n.next=8;break}return n.abrupt("return",new De(e,He(He({},r.data),{},{stackHeaders:t.stackHeaders})));case 8:n.next=11;break;case 10:throw h(r);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(e){return n.apply(this,arguments)}}(),this.findAll=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},t.prev=1,i={headers:He({},s()(a.stackHeaders)),params:He({},s()(n))}||{},t.next=5,e.get(a.urlPath,i);case 5:if(!(o=t.sent).data){t.next=10;break}return t.abrupt("return",new g(o,e,a.stackHeaders,qe));case 10:throw h(o);case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),h(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))),this}function qe(e,a,t){return(s()(a.items)||[]).map((function(n){return new Ae(e,{releaseUid:t,item:n,stackHeaders:a.stackHeaders})}))}function Re(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Te(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=t.stackHeaders,this.urlPath="/releases",t.release?(Object.assign(this,s()(t.release)),t.release.items&&(this.items=new qe(e,{items:t.release.items,stackHeaders:t.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(e,"release"),this.fetch=q(e,"release"),this.delete=A(e),this.item=function(){return new Ae(e,{releaseUid:a.uid,stackHeaders:a.stackHeaders})},this.deploy=function(){var t=x()(m.a.mark((function t(n){var i,o,r,c,p,u,l;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.environments,o=n.locales,r=n.scheduledAt,c=n.action,p={environments:i,locales:o,scheduledAt:r,action:c},u={headers:Te({},s()(a.stackHeaders))}||{},t.prev=3,t.next=6,e.post("".concat(a.urlPath,"/deploy"),{release:p},u);case 6:if(!(l=t.sent).data){t.next=11;break}return t.abrupt("return",l.data);case 11:throw h(l);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}(),this.clone=function(){var t=x()(m.a.mark((function t(n){var i,o,r,c,p;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.name,o=n.description,r={name:i,description:o},c={headers:Te({},s()(a.stackHeaders))}||{},t.prev=3,t.next=6,e.post("".concat(a.urlPath,"/clone"),{release:r},c);case 6:if(!(p=t.sent).data){t.next=11;break}return t.abrupt("return",new De(e,p.data));case 11:throw h(p);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(3),h(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}()):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Le})),this}function Le(e,a){return(s()(a.releases)||[]).map((function(t){return new De(e,{release:t,stackHeaders:a.stackHeaders})}))}function Fe(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Be(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=t.stackHeaders,this.urlPath="/bulk",this.publish=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},n.skip_workflow_stage_check&&(o.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(o.headers.approvals=n.approvals),t.abrupt("return",P(e,"/bulk/publish",i,o));case 7:case"end":return t.stop()}}),t)}))),this.unpublish=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},n.skip_workflow_stage_check&&(o.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(o.headers.approvals=n.approvals),t.abrupt("return",P(e,"/bulk/unpublish",i,o));case 7:case"end":return t.stop()}}),t)}))),this.delete=x()(m.a.mark((function t(){var n,i,o,r=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},i={},n.details&&(i=s()(n.details)),o={headers:Be({},s()(a.stackHeaders))},t.abrupt("return",P(e,"/bulk/delete",i,o));case 5:case"end":return t.stop()}}),t)})))}function Ue(e,a){this.stackHeaders=a.stackHeaders,this.urlPath="/labels",a.label?(Object.assign(this,s()(a.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(e,"label"),this.delete=A(e),this.fetch=q(e,"label")):(this.create=E({http:e}),this.query=z({http:e,wrapperCollection:Ie}))}function Ie(e,a){return(s()(a.labels)||[]).map((function(t){return new Ue(e,{label:t,stackHeaders:a.stackHeaders})}))}function Me(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Ve(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.content_type={uid:a}),new X(e,n)},this.locale=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.locale={code:a}),new de(e,n)},this.asset=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.asset={uid:a}),new pe(e,n)},this.globalField=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.global_field={uid:a}),new ae(e,n)},this.environment=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.environment={name:a}),new re(e,n)},this.deliveryToken=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.token={uid:a}),new ie(e,n)},this.extension=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.extension={uid:a}),new he(e,n)},this.workflow=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.workflow={uid:a}),new Ce(e,n)},this.webhook=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.webhook={uid:a}),new we(e,n)},this.label=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.label={uid:a}),new Ue(e,n)},this.release=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.release={uid:a}),new De(e,n)},this.bulkOperation=function(){var a={stackHeaders:t.stackHeaders};return new Ne(e,a)},this.users=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get(t.urlPath,{params:{include_collaborators:!0},headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",G(e,n.data.stack));case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.transferOwnership=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.settings=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.get("".concat(t.urlPath,"/settings"),{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",n.data.stack_settings);case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.resetSettings=x()(m.a.mark((function a(){var n;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(n=a.sent).data){a.next=8;break}return a.abrupt("return",n.data.stack_settings);case 8:return a.abrupt("return",h(n));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])}))),this.addSettings=x()(m.a.mark((function a(){var n,i,o=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:{},a.prev=1,a.next=4,e.post("".concat(t.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ve({},s()(t.stackHeaders))});case 4:if(!(i=a.sent).data){a.next=9;break}return a.abrupt("return",i.data.stack_settings);case 9:return a.abrupt("return",h(i));case 10:a.next=15;break;case 12:return a.prev=12,a.t0=a.catch(1),a.abrupt("return",h(a.t0));case 15:case"end":return a.stop()}}),a,null,[[1,12]])}))),this.share=x()(m.a.mark((function a(){var n,i,o,r=arguments;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:[],i=r.length>1&&void 0!==r[1]?r[1]:{},a.prev=2,a.next=5,e.post("".concat(t.urlPath,"/share"),{emails:n,roles:i},{headers:Ve({},s()(t.stackHeaders))});case 5:if(!(o=a.sent).data){a.next=10;break}return a.abrupt("return",o.data);case 10:return a.abrupt("return",h(o));case 11:a.next=16;break;case 13:return a.prev=13,a.t0=a.catch(2),a.abrupt("return",h(a.t0));case 16:case"end":return a.stop()}}),a,null,[[2,13]])}))),this.unShare=function(){var a=x()(m.a.mark((function a(n){var i;return m.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.post("".concat(t.urlPath,"/unshare"),{email:n},{headers:Ve({},s()(t.stackHeaders))});case 3:if(!(i=a.sent).data){a.next=8;break}return a.abrupt("return",i.data);case 8:return a.abrupt("return",h(i));case 9:a.next=14;break;case 11:return a.prev=11,a.t0=a.catch(0),a.abrupt("return",h(a.t0));case 14:case"end":return a.stop()}}),a,null,[[0,11]])})));return function(e){return a.apply(this,arguments)}}(),this.role=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:t.stackHeaders};return a&&(n.role={uid:a}),new D(e,n)}):(this.create=E({http:e,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=z({http:e,wrapperCollection:$e})),this}function $e(e,a){var t=a.stacks||[];return s()(t).map((function(a){return new Ge(e,{stack:a})}))}function Ke(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function We(e){for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};return a.post("/user-session",{user:e},{params:t}).then((function(e){return null!=e.data.user&&null!=e.data.user.authtoken&&(a.defaults.headers.common.authtoken=e.data.user.authtoken,e.data.user=new V(a,e.data)),e.data}),h)},logout:function(e){return void 0!==e?a.delete("/user-session",{headers:{authtoken:e}}).then((function(e){return e.data}),h):a.delete("/user-session").then((function(e){return a.defaults.headers.common&&delete a.defaults.headers.common.authtoken,delete a.defaults.headers.authtoken,delete a.httpClientParams.authtoken,delete a.httpClientParams.headers.authtoken,e.data}),h)},getUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.get("/user",{params:e}).then((function(e){return new V(a,e.data)}),h)},stack:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=We({},s()(e));return new Ge(a,{stack:t})},organization:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new N(a,null!==e?{organization:{uid:e}}:null)},axiosInstance:a}}var Je=t(76),Qe=t.n(Je),Xe=t(77),Ze=t.n(Xe),ea=t(20),aa=t.n(ea);function ta(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function na(e){for(var a=1;aa.config.retryLimit)return Promise.reject(o(e));if(a.config.retryDelayOptions)if(a.config.retryDelayOptions.customBackoff){if((c=a.config.retryDelayOptions.customBackoff(i,e))&&c<=0)return Promise.reject(o(e))}else a.config.retryDelayOptions.base&&(c=a.config.retryDelayOptions.base*i);else c=a.config.retryDelay;return e.config.retryCount=i,new Promise((function(a){return setTimeout((function(){return a(t(r(e,n,c)))}),c)}))},this.interceptors={request:null,response:null};var r=function(e,n,i){var o=e.config;return a.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(i," ms before retrying...")),void 0!==t&&void 0!==t.defaults&&(t.defaults.agent===o.agent&&delete o.agent,t.defaults.httpAgent===o.httpAgent&&delete o.httpAgent,t.defaults.httpsAgent===o.httpsAgent&&delete o.httpsAgent),o.data=s(o),o.transformRequest=[function(e){return e}],o},s=function(e){if(e.formdata){var a=e.formdata();return e.headers=na(na({},e.headers),a.getHeaders()),a}return e.data};this.interceptors.request=t.interceptors.request.use((function(e){if("function"==typeof e.data&&(e.formdata=e.data,e.data=s(e)),console.log(e.data),e.retryCount=e.retryCount||0,e.headers.authorization&&void 0!==e.headers.authorization&&delete e.headers.authtoken,void 0===e.cancelToken){var t=aa.a.CancelToken.source();e.cancelToken=t.token,e.source=t}return a.paused&&e.retryCount>0?new Promise((function(t){a.unshift({request:e,resolve:t})})):e.retryCount>0?e:new Promise((function(t){e.onComplete=function(){a.running.pop({request:e,resolve:t})},a.push({request:e,resolve:t})}))})),this.interceptors.response=t.interceptors.response.use(o,(function(e){var n=e.config.retryCount,i=null;if(!a.config.retryOnError||n>a.config.retryLimit)return Promise.reject(o(e));var s=a.config.retryDelay,c=e.response;if(c){if(429===c.status)return i="Error with status: ".concat(c.status),++n>a.config.retryLimit?Promise.reject(o(e)):(a.running.shift(),function e(t){if(!a.paused)return a.paused=!0,a.running.length>0&&setTimeout((function(){e(t)}),t),new Promise((function(e){return setTimeout((function(){a.paused=!1;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},a={defaultHostName:"api.contentstack.io"},t="contentstack-management-javascript/".concat(o.version),n=l(t,e.application,e.integration,e.feature),i={"X-User-Agent":t,"User-Agent":n};e.authtoken&&(i.authtoken=e.authtoken),(e=ua(ua({},a),s()(e))).headers=ua(ua({},e.headers),i);var r=ca(e),c=Ye({http:r});return c}}]); \ No newline at end of file diff --git a/dist/react-native/contentstack-management.js b/dist/react-native/contentstack-management.js index 9eedee4a..47dc813d 100644 --- a/dist/react-native/contentstack-management.js +++ b/dist/react-native/contentstack-management.js @@ -1 +1 @@ -module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+b)}var y=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.3","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),b=r(122),y=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=b(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=y(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(y=a(y)?[y]:y),o.call(u,b)?u[b]=n.combine(u[b],y):u[b]=y}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),b=r.n(d),y=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;b()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new y(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new y(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k(k({},i),a.getHeaders()),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},t.prev=1,t.next=4,e.post(this.urlPath,n,a);case 4:if(!(i=t.sent).data){t.next=9;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 9:throw h(i);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(1),h(t.t0);case 15:case"end":return t.stop()}}),t,this,[[1,12]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new y(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new y(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:bt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function bt(t){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}function yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new y(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new y(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.transformRequest=[function(t){return t}],a};this.interceptors.request=r.interceptors.request.use((function(t){if(t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}]); \ No newline at end of file +module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+y)}var b=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(b,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(b))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.4","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","multiparty":"^4.2.2","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),y=r(122),b=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=y(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=b(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(b=a(b)?[b]:b),o.call(u,y)?u[y]=n.combine(u[y],b):u[y]=b}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),y=r.n(d),b=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;y()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new b(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new b(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k({},i),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},console.log("Entry ",n),t.prev=2,t.next=5,e.post(this.urlPath,n,a);case 5:if(!(i=t.sent).data){t.next=10;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 10:throw h(i);case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(2),h(t.t0);case 16:case"end":return t.stop()}}),t,this,[[2,13]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new b(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){return function(){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:yt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function yt(t){return function(){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new b(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new b(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.data=s(a),a.transformRequest=[function(t){return t}],a},s=function(t){if(t.formdata){var e=t.formdata();return t.headers=te(te({},t.headers),e.getHeaders()),e}return t.data};this.interceptors.request=r.interceptors.request.use((function(t){if("function"==typeof t.data&&(t.formdata=t.data,t.data=s(t)),console.log(t.data),t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){t.onComplete=function(){e.running.pop({request:t,resolve:r})},e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}]); \ No newline at end of file diff --git a/dist/web/contentstack-management.js b/dist/web/contentstack-management.js index 526710b0..1d5bed82 100644 --- a/dist/web/contentstack-management.js +++ b/dist/web/contentstack-management.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["contentstack-management"]=e():t["contentstack-management"]=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+y)}var b=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(b,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(b))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.3","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),y=r(122),b=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=y(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=b(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(b=a(b)?[b]:b),o.call(u,y)?u[y]=n.combine(u[y],b):u[y]=b}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),y=r.n(d),b=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;y()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new b(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new b(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k(k({},i),a.getHeaders()),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},t.prev=1,t.next=4,e.post(this.urlPath,n,a);case 4:if(!(i=t.sent).data){t.next=9;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 9:throw h(i);case 10:t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(1),h(t.t0);case 15:case"end":return t.stop()}}),t,this,[[1,12]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new b(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:yt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function yt(t){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new b(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new b(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.transformRequest=[function(t){return t}],a};this.interceptors.request=r.interceptors.request.use((function(t){if(t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}])})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["contentstack-management"]=e():t["contentstack-management"]=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=160)}([function(t,e,r){var n=r(64);t.exports=function(t){return n(t,5)}},function(t,e,r){t.exports=r(135)},function(t,e){function r(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(51),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function u(t){if("[object Object]"!==a.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function f(t){return"[object Function]"===a.call(t)}function p(t,e){if(null!=t)if("object"!==n(t)&&(t=[t]),i(t))for(var r=0,o=t.length;r1;){var e=t.pop(),r=e.obj[e.prop];if(a(r)){for(var n=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?a+=o.charAt(s):c<128?a+=i[c]:c<2048?a+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?a+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return a},isBuffer:function(t){return!(!t||"object"!==n(t))&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(34),o=r(41);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(46),o=r(47),a=r(28),i=r(44),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r1)for(var r=1;r=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(a)})),t.exports=c}).call(this,r(49))},function(t,e,r){"use strict";var n=r(4),o=r(149),a=r(151),i=r(52),s=r(152),c=r(155),u=r(156),f=r(56);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(d+":"+y)}var b=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),i(b,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,a),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||u(b))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},function(t,e,r){"use strict";var n=r(150);t.exports=function(t,e,r,o,a){var i=new Error(t);return n(i,e,r,o,a)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(i,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(a).concat(i).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,u),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t){t.exports=JSON.parse('{"name":"@contentstack/management","version":"1.2.4","description":"The Content Management API is used to manage the content of your Contentstack account","main":"dist/node/contentstack-management.js","browser":"dist/web/contentstack-management.js","directories":{"test":"test"},"repository":{"type":"git","url":"https://github.com/contentstack/contentstack-management-javascript.git"},"nyc":{"exclude":["**/bulkOperation","**/items","**/test"]},"scripts":{"clean":"rimraf coverage && rimraf dist","build":"npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall","build:es5":"BABEL_ENV=es5 babel lib -d dist/es5","build:es-modules":"BABEL_ENV=es-modules babel lib -d dist/es-modules","buildall":"npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript","buildnode":"webpack --config webpack/webpack.node.js --mode production","buildreactnative":"webpack --config webpack/webpack.react-native.js --mode production","buildnativescript":"webpack --config webpack/webpack.nativescript.js --mode production","buildweb":"webpack --config webpack/webpack.web.js --mode production","test":"npm run test:api && npm run test:unit","test:api":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill","test:unit":"BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/unit/index.js -t 30000 --reporter mochawesome --require babel-polyfill","test:debug":"BABEL_ENV=test mocha debug --require @babel/register ./test","lint":"eslint lib test","format":"eslint --fix lib test","prepare":"npm run build && npm run generate:docs","pretest":"rimraf coverage && npm run lint","precommit":"npm run lint","prepush":"npm run test:unit","generate:docs":"node_modules/.bin/jsdoc --configure .jsdoc.json --readme README.md --verbose"},"engines":{"node":">=8.0.0"},"author":"Contentstack","license":"MIT","dependencies":{"axios":"^0.21.1","form-data":"^3.0.0","lodash":"^4.17.21","qs":"^6.9.4"},"keywords":["contentstack management api","contentstack","management api"],"devDependencies":{"@babel/cli":"^7.14.5","@babel/core":"^7.11.0","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/register":"^7.10.5","@babel/runtime":"^7.11.2","@types/mocha":"^7.0.2","axios-mock-adapter":"^1.18.2","babel-loader":"^8.1.0","babel-plugin-add-module-exports":"^1.0.2","babel-plugin-rewire":"^1.2.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-polyfill":"^6.26.0","chai":"^4.2.0","docdash":"^1.2.0","dotenv":"^8.2.0","eslint":"^6.6.0","eslint-config-standard":"^13.0.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","jsdoc":"^3.6.7","mocha":"^7.2.0","mochawesome":"^4.1.0","multiparty":"^4.2.2","nock":"^10.0.6","nyc":"^14.1.1","rimraf":"^2.7.1","sinon":"^7.3.2","string-replace-loader":"^2.3.0","webpack":"^4.44.1","webpack-cli":"^3.3.12","webpack-merge":"4.1.0"},"homepage":"https://www.contentstack.com"}')},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e,r){var n=r(136),o=r(137),a=r(138),i=r(140);t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},function(t,e,r){"use strict";var n=r(141),o=r(142),a=r(50);t.exports={formats:a,parse:o,stringify:n}},function(t,e,r){var n=r(65),o=r(96),a=r(37),i=r(98),s=r(108),c=r(111),u=r(112),f=r(113),p=r(115),l=r(116),h=r(117),d=r(29),y=r(122),b=r(123),v=r(129),m=r(23),g=r(40),w=r(131),k=r(9),x=r(133),j=r(22),O=r(27),P={};P["[object Arguments]"]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P["[object Object]"]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P["[object Function]"]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,_,S,H,E){var A,D=1&r,C=2&r,L=4&r;if(_&&(A=H?_(e,S,H,E):_(e)),void 0!==A)return A;if(!k(e))return e;var T=m(e);if(T){if(A=y(e),!D)return u(e,A)}else{var N=d(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return c(e,D);if("[object Object]"==N||"[object Arguments]"==N||R&&!H){if(A=C||R?{}:v(e),!D)return C?p(e,s(A,e)):f(e,i(A,e))}else{if(!P[N])return H?e:{};A=b(e,N,D)}}E||(E=new n);var q=E.get(e);if(q)return q;E.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,_,n,e,E))})):w(e)&&e.forEach((function(n,o){A.set(o,t(n,r,_,o,e,E))}));var U=T?void 0:(L?C?h:l:C?O:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),a(A,o,t(n,r,_,o,e,E))})),A}},function(t,e,r){var n=r(11),o=r(71),a=r(72),i=r(73),s=r(74),c=r(75);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(12),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(12);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(11);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(11),o=r(20),a=r(83);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(34),o=r(80),a=r(9),i=r(36),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,p=u.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?l:s).test(i(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(81),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},function(t,e,r){var n=r(7)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(84),o=r(91),a=r(93),i=r(94),s=r(95);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(17)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}},function(t,e,r){var n=r(139);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?g+m:""}},function(t,e,r){"use strict";var n=r(31),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(s=i.exec(a))&&p=0;--a){var i,s=t[a];if("[]"===s&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(i=[])[f]=o:i[u]=o:i={0:o}}o=i}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,u={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(b=a(b)?[b]:b),o.call(u,y)?u[y]=n.combine(u[y],b):u[y]=b}return u}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),h=0;h=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(58);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return"object"===n(t)&&!0===t.isAxiosError}},function(t,e,r){"use strict";r.r(e),r.d(e,"client",(function(){return ce}));var n=r(3),o=r.n(n),a=r(59),i=r(0),s=r.n(i),c=r(18),u=r(1),f=r.n(u),p=r(2),l=r.n(p);function h(t){var e=t.config,r=t.response;if(!e||!r)throw t;var n=r.data,o={status:r.status,statusText:r.statusText};if(e.headers&&e.headers.authtoken){var a="...".concat(e.headers.authtoken.substr(-5));e.headers.authtoken=a}if(e.headers&&e.headers.authorization){var i="...".concat(e.headers.authorization.substr(-5));e.headers.authorization=i}o.request={url:e.url,method:e.method,data:e.data,headers:e.headers},n&&(o.errorMessage=n.error_message||"",o.errorCode=n.error_code||0,o.errors=n.errors||{});var s=new Error;throw Object.assign(s,o),s.message=JSON.stringify(o),s}var d=r(60),y=r.n(d),b=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;y()(this,t);var a=e.data||{};n&&(a.stackHeaders=n),this.items=o(r,a),void 0!==a.schema&&(this.schema=a.schema),void 0!==a.content_type&&(this.content_type=a.content_type),void 0!==a.count&&(this.count=a.count),void 0!==a.notice&&(this.notice=a.notice)};function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,a={};n&&(a.headers=n);var i=null;r&&(r.content_type_uid&&(i=r.content_type_uid,delete r.content_type_uid),a.params=m({},s()(r)));var c=function(){var r=l()(f.a.mark((function r(){var s;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,t.get(e,a);case 3:if(!(s=r.sent).data){r.next=9;break}return i&&(s.data.content_type_uid=i),r.abrupt("return",new b(s,t,n,o));case 9:throw h(s);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(0),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=l()(f.a.mark((function r(){var n;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.params=m(m({},a.params),{},{count:!0}),r.prev=1,r.next=4,t.get(e,a);case 4:if(!(n=r.sent).data){r.next=9;break}return r.abrupt("return",n.data);case 9:throw h(n);case 10:r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),h(r.t0);case 15:case"end":return r.stop()}}),r,null,[[1,12]])})));return function(){return r.apply(this,arguments)}}(),p=function(){var r=l()(f.a.mark((function r(){var s,c;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(s=a).params.limit=1,r.prev=2,r.next=5,t.get(e,s);case 5:if(!(c=r.sent).data){r.next=11;break}return i&&(c.data.content_type_uid=i),r.abrupt("return",new b(c,t,n,o));case 11:throw h(c);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(2),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));return function(){return r.apply(this,arguments)}}();return{count:u,find:c,findOne:p}}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e4&&void 0!==u[4]?u[4]:null,i=u.length>5&&void 0!==u[5]?u[5]:null,s=u.length>6&&void 0!==u[6]?u[6]:null,null!==a&&(n.locale=a),null!==i&&(n.version=i),null!==s&&(n.scheduled_at=s),t.prev=6,t.next=9,e.post(r,n,o);case 9:if(!(c=t.sent).data){t.next=14;break}return t.abrupt("return",c.data);case 14:throw h(c);case 15:t.next=20;break;case 17:throw t.prev=17,t.t0=t.catch(6),h(t.t0);case 20:case"end":return t.stop()}}),t,null,[[6,17]])})));return function(e,r,n,o){return t.apply(this,arguments)}}(),P=function(){var t=l()(f.a.mark((function t(e){var r,n,o,a,i,c,u,p;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.http,n=e.urlPath,o=e.stackHeaders,a=e.formData,i=e.params,c=e.method,u=void 0===c?"POST":c,p={headers:k(k({},i),s()(o))}||{},"POST"!==u){t.next=6;break}return t.abrupt("return",r.post(n,a,p));case 6:return t.abrupt("return",r.put(n,a,p));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(t){var e=t.http,r=t.params;return function(){var t=l()(f.a.mark((function t(n,o){var a,i;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={headers:k(k({},s()(r)),s()(this.stackHeaders)),params:k({},s()(o))}||{},console.log("Entry ",n),t.prev=2,t.next=5,e.post(this.urlPath,n,a);case 5:if(!(i=t.sent).data){t.next=10;break}return t.abrupt("return",new this.constructor(e,C(i,this.stackHeaders,this.content_type_uid)));case 10:throw h(i);case 11:t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(2),h(t.t0);case 16:case"end":return t.stop()}}),t,this,[[2,13]])})));return function(e,r){return t.apply(this,arguments)}}()},S=function(t){var e=t.http,r=t.wrapperCollection;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.organization_uid&&(t.query||(t.query={}),t.query.org_uid=this.organization_uid),this.content_type_uid&&(t.content_type_uid=this.content_type_uid),g(e,this.urlPath,t,this.stackHeaders,r)}},H=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i,c=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o={},delete(a=s()(this)).stackHeaders,delete a.urlPath,delete a.uid,delete a.org_uid,delete a.api_key,delete a.created_at,delete a.created_by,delete a.deleted_at,delete a.updated_at,delete a.updated_by,delete a.updated_at,o[e]=a,r.prev=15,r.next=18,t.put(this.urlPath,o,{headers:k({},s()(this.stackHeaders)),params:k({},s()(n))});case 18:if(!(i=r.sent).data){r.next=23;break}return r.abrupt("return",new this.constructor(t,C(i,this.stackHeaders,this.content_type_uid)));case 23:throw h(i);case 24:r.next=29;break;case 26:throw r.prev=26,r.t0=r.catch(15),h(r.t0);case 29:case"end":return r.stop()}}),r,this,[[15,26]])})))},E=function(t){return l()(f.a.mark((function e(){var r,n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,n={headers:k({},s()(this.stackHeaders)),params:k({},s()(r))}||{},e.next=5,t.delete(this.urlPath,n);case 5:if(!(o=e.sent).data){e.next=10;break}return e.abrupt("return",o.data);case 10:throw h(o);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),h(e.t0);case 16:case"end":return e.stop()}}),e,this,[[1,13]])})))},A=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:k({},s()(this.stackHeaders)),params:k({},s()(n))}||{},r.next=5,t.get(this.urlPath,o);case 5:if(!(a=r.sent).data){r.next=11;break}return"entry"===e&&(a.data[e].content_type=a.data.content_type,a.data[e].schema=a.data.schema),r.abrupt("return",new this.constructor(t,C(a,this.stackHeaders,this.content_type_uid)));case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(1),h(r.t0);case 17:case"end":return r.stop()}}),r,this,[[1,14]])})))},D=function(t,e){return l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=k({},s()(n))),r.prev=4,r.next=7,t.get(this.urlPath,o);case 7:if(!(a=r.sent).data){r.next=12;break}return r.abrupt("return",new b(a,t,this.stackHeaders,e));case 12:throw h(a);case 13:r.next=18;break;case 15:throw r.prev=15,r.t0=r.catch(4),h(r.t0);case 18:case"end":return r.stop()}}),r,this,[[4,15]])})))};function C(t,e,r){var n=t.data||{};return e&&(n.stackHeaders=e),r&&(n.content_type_uid=r),n}function L(t,e){return this.urlPath="/roles",this.stackHeaders=e.stackHeaders,e.role?(Object.assign(this,s()(e.role)),this.urlPath="/roles/".concat(this.uid),this.stackHeaders&&(this.update=H(t,"role"),this.delete=E(t),this.fetch=A(t,"role"))):(this.create=_({http:t}),this.fetchAll=D(t,T),this.query=S({http:t,wrapperCollection:T})),this}function T(t,e){return s()(e.roles||[]).map((function(r){return new L(t,{role:r,stackHeaders:e.stackHeaders})}))}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function R(t){for(var e=1;e0||this.owner&&!0===this.owner||this.is_owner&&!0===this.is_owner)&&(this.stacks=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/stacks"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,Mt));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.addUser=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/share"),{share:R({},n)});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.getInvitations=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/share"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,I));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.resendInvitation=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/").concat(n,"/resend_invitation"));case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.roles=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/roles"),{params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new b(o,t,null,T));case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}())):this.fetchAll=D(t,U)}function U(t,e){return s()(e.organizations||[]).map((function(e){return new q(t,{organization:e})}))}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/content_types",r.content_type?(Object.assign(this,s()(r.content_type)),this.urlPath="/content_types/".concat(this.uid),this.update=H(t,"content_type"),this.delete=E(t),this.fetch=A(t,"content_type"),this.entry=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return n.content_type_uid=e.uid,r&&(n.entry={uid:r}),new W(t,n)}):(this.generateUid=function(t){if(!t)throw new TypeError("Expected parameter name");return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()},this.create=_({http:t}),this.query=S({http:t,wrapperCollection:J}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:K(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function J(t,e){return(s()(e.content_types)||[]).map((function(r){return new X(t,{content_type:r,stackHeaders:e.stackHeaders})}))}function K(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.content_type);return e.append("content_type",r),e}}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/global_fields",e.global_field?(Object.assign(this,s()(e.global_field)),this.urlPath="/global_fields/".concat(this.uid),this.update=H(t,"global_field"),this.delete=E(t),this.fetch=A(t,"global_field")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Z}),this.import=function(){var e=l()(f.a.mark((function e(r){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:"".concat(this.urlPath,"/import"),stackHeaders:this.stackHeaders,formData:tt(r)});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(n,this.stackHeaders)));case 8:throw h(n);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t){return e.apply(this,arguments)}}()),this}function Z(t,e){return(s()(e.global_fields)||[]).map((function(r){return new Y(t,{global_field:r,stackHeaders:e.stackHeaders})}))}function tt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.global_field);return e.append("global_field",r),e}}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/stacks/delivery_tokens",e.token?(Object.assign(this,s()(e.token)),this.urlPath="/stacks/delivery_tokens/".concat(this.uid),this.update=H(t,"token"),this.delete=E(t),this.fetch=A(t,"token")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:rt}))}function rt(t,e){return(s()(e.tokens)||[]).map((function(r){return new et(t,{token:r,stackHeaders:e.stackHeaders})}))}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/environments",e.environment?(Object.assign(this,s()(e.environment)),this.urlPath="/environments/".concat(this.name),this.update=H(t,"environment"),this.delete=E(t),this.fetch=A(t,"environment")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ot}))}function ot(t,e){return(s()(e.environments)||[]).map((function(r){return new nt(t,{environment:r,stackHeaders:e.stackHeaders})}))}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stackHeaders&&(this.stackHeaders=e.stackHeaders),this.urlPath="/assets/folders",e.asset?(Object.assign(this,s()(e.asset)),this.urlPath="/assets/folders/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset")):this.create=_({http:t})}function it(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/assets",r.asset?(Object.assign(this,s()(r.asset)),this.urlPath="/assets/".concat(this.uid),this.update=H(t,"asset"),this.delete=E(t),this.fetch=A(t,"asset"),this.replace=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n,method:"PUT"});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.publish=x(t,"asset"),this.unpublish=j(t,"asset")):(this.folder=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.asset={uid:r}),new at(t,n)},this.create=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:ct(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.query=S({http:t,wrapperCollection:st})),this}function st(t,e){return(s()(e.assets)||[]).map((function(r){return new it(t,{asset:r,stackHeaders:e.stackHeaders})}))}function ct(t){return function(){var e=new V.a;"string"==typeof t.parent_uid&&e.append("asset[parent_uid]",t.parent_uid),"string"==typeof t.description&&e.append("asset[description]",t.description),t.tags instanceof Array?e.append("asset[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("asset[tags]",t.tags),"string"==typeof t.title&&e.append("asset[title]",t.title);var r=Object($.createReadStream)(t.upload);return e.append("asset[upload]",r),e}}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=e.stackHeaders,this.urlPath="/locales",e.locale?(Object.assign(this,s()(e.locale)),this.urlPath="/locales/".concat(this.code),this.update=H(t,"locale"),this.delete=E(t),this.fetch=A(t,"locale")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:ft})),this}function ft(t,e){return(s()(e.locales)||[]).map((function(r){return new ut(t,{locale:r,stackHeaders:e.stackHeaders})}))}var pt=r(61),lt=r.n(pt);function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/extensions",e.extension?(Object.assign(this,s()(e.extension)),this.urlPath="/extensions/".concat(this.uid),this.update=H(t,"extension"),this.delete=E(t),this.fetch=A(t,"extension")):(this.upload=function(){var e=l()(f.a.mark((function e(r,n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P({http:t,urlPath:this.urlPath,stackHeaders:this.stackHeaders,formData:yt(r),params:n});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",new this.constructor(t,C(o,this.stackHeaders)));case 8:throw h(o);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));return function(t,r){return e.apply(this,arguments)}}(),this.create=_({http:t}),this.query=S({http:t,wrapperCollection:dt}))}function dt(t,e){return(s()(e.extensions)||[]).map((function(r){return new ht(t,{extension:r,stackHeaders:e.stackHeaders})}))}function yt(t){return function(){var e=new V.a;"string"==typeof t.title&&e.append("extension[title]",t.title),"object"===lt()(t.scope)&&e.append("extension[scope]","".concat(t.scope)),"string"==typeof t.data_type&&e.append("extension[data_type]",t.data_type),"string"==typeof t.type&&e.append("extension[type]",t.type),t.tags instanceof Array?e.append("extension[tags]",t.tags.join(",")):"string"==typeof t.tags&&e.append("extension[tags]",t.tags),"boolean"==typeof t.multiple&&e.append("extension[multiple]","".concat(t.multiple)),"boolean"==typeof t.enable&&e.append("extension[enable]","".concat(t.enable));var r=Object($.createReadStream)(t.upload);return e.append("extension[upload]",r),e}}function bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/webhooks",r.webhook?(Object.assign(this,s()(r.webhook)),this.urlPath="/webhooks/".concat(this.uid),this.update=H(t,"webhook"),this.delete=E(t),this.fetch=A(t,"webhook"),this.executions=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),n&&(o.params=vt({},s()(n))),r.prev=3,r.next=6,t.get("".concat(e.urlPath,"/executions"),o);case 6:if(!(a=r.sent).data){r.next=11;break}return r.abrupt("return",a.data);case 11:throw h(a);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.retry=function(){var r=l()(f.a.mark((function r(n){var o,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},e.stackHeaders&&(o.headers=e.stackHeaders),r.prev=2,r.next=5,t.post("".concat(e.urlPath,"/retry"),{execution_uid:n},o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",a.data);case 10:throw h(a);case 11:r.next=16;break;case 13:throw r.prev=13,r.t0=r.catch(2),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.fetchAll=D(t,gt)),this.import=function(){var r=l()(f.a.mark((function r(n){var o;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({http:t,urlPath:"".concat(e.urlPath,"/import"),stackHeaders:e.stackHeaders,formData:wt(n)});case 3:if(!(o=r.sent).data){r.next=8;break}return r.abrupt("return",new e.constructor(t,C(o,e.stackHeaders)));case 8:throw h(o);case 9:r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(0),h(r.t0);case 14:case"end":return r.stop()}}),r,null,[[0,11]])})));return function(t){return r.apply(this,arguments)}}(),this}function gt(t,e){return(s()(e.webhooks)||[]).map((function(r){return new mt(t,{webhook:r,stackHeaders:e.stackHeaders})}))}function wt(t){return function(){var e=new V.a,r=Object($.createReadStream)(t.webhook);return e.append("webhook",r),e}}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=e.stackHeaders,this.urlPath="/workflows/publishing_rules",e.publishing_rule?(Object.assign(this,s()(e.publishing_rule)),this.urlPath="/workflows/publishing_rules/".concat(this.uid),this.update=H(t,"publishing_rule"),this.delete=E(t),this.fetch=A(t,"publishing_rule")):(this.create=_({http:t}),this.fetchAll=D(t,xt))}function xt(t,e){return(s()(e.publishing_rules)||[]).map((function(r){return new kt(t,{publishing_rule:r,stackHeaders:e.stackHeaders})}))}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/workflows",r.workflow?(Object.assign(this,s()(r.workflow)),this.urlPath="/workflows/".concat(this.uid),this.update=H(t,"workflow"),this.disable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/disable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.enable=l()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("/workflows/".concat(this.uid,"/enable"),{headers:Ot({},s()(this.stackHeaders))});case 3:if(!(r=e.sent).data){e.next=8;break}return e.abrupt("return",r.data);case 8:throw h(r);case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),h(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),this.delete=E(t),this.fetch=A(t,"workflow")):(this.contentType=function(r){if(r)return{getPublishRules:function(){var e=l()(f.a.mark((function e(n){var o,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},this.stackHeaders&&(o.headers=this.stackHeaders),n&&(o.params=Ot({},s()(n))),e.prev=3,e.next=6,t.get("/workflows/content_type/".concat(r),o);case 6:if(!(a=e.sent).data){e.next=11;break}return e.abrupt("return",new b(a,t,this.stackHeaders,xt));case 11:throw h(a);case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(3),h(e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t){return e.apply(this,arguments)}}(),stackHeaders:Ot({},e.stackHeaders)}},this.create=_({http:t}),this.fetchAll=D(t,_t),this.publishRule=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:e.stackHeaders};return r&&(n.publishing_rule={uid:r}),new kt(t,n)})}function _t(t,e){return(s()(e.workflows)||[]).map((function(r){return new Pt(t,{workflow:r,stackHeaders:e.stackHeaders})}))}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,r.item&&Object.assign(this,s()(r.item)),r.releaseUid&&(this.urlPath="releases/".concat(r.releaseUid,"/items"),this.delete=function(){var n=l()(f.a.mark((function n(o){var a,i,c;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={},void 0===o&&(a={all:!0}),n.prev=2,i={headers:Ht({},s()(e.stackHeaders)),data:Ht({},s()(o)),params:Ht({},s()(a))}||{},n.next=6,t.delete(e.urlPath,i);case 6:if(!(c=n.sent).data){n.next=11;break}return n.abrupt("return",new Lt(t,Ht(Ht({},c.data),{},{stackHeaders:r.stackHeaders})));case 11:throw h(c);case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(2),h(n.t0);case 17:case"end":return n.stop()}}),n,null,[[2,14]])})));return function(t){return n.apply(this,arguments)}}(),this.create=function(){var n=l()(f.a.mark((function n(o){var a,i;return f.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={headers:Ht({},s()(e.stackHeaders))}||{},n.prev=1,n.next=4,t.post(o.item?"releases/".concat(r.releaseUid,"/item"):e.urlPath,o,a);case 4:if(!(i=n.sent).data){n.next=10;break}if(!i.data){n.next=8;break}return n.abrupt("return",new Lt(t,Ht(Ht({},i.data),{},{stackHeaders:r.stackHeaders})));case 8:n.next=11;break;case 10:throw h(i);case 11:n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(1),h(n.t0);case 16:case"end":return n.stop()}}),n,null,[[1,13]])})));return function(t){return n.apply(this,arguments)}}(),this.findAll=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},r.prev=1,o={headers:Ht({},s()(e.stackHeaders)),params:Ht({},s()(n))}||{},r.next=5,t.get(e.urlPath,o);case 5:if(!(a=r.sent).data){r.next=10;break}return r.abrupt("return",new b(a,t,e.stackHeaders,At));case 10:throw h(a);case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),h(r.t0);case 16:case"end":return r.stop()}}),r,null,[[1,13]])})))),this}function At(t,e,r){return(s()(e.items)||[]).map((function(n){return new Et(t,{releaseUid:r,item:n,stackHeaders:e.stackHeaders})}))}function Dt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return this.stackHeaders=r.stackHeaders,this.urlPath="/releases",r.release?(Object.assign(this,s()(r.release)),r.release.items&&(this.items=new At(t,{items:r.release.items,stackHeaders:r.stackHeaders},this.uid)),this.urlPath="/releases/".concat(this.uid),this.update=H(t,"release"),this.fetch=A(t,"release"),this.delete=E(t),this.item=function(){return new Et(t,{releaseUid:e.uid,stackHeaders:e.stackHeaders})},this.deploy=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u,p,l;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.environments,a=n.locales,i=n.scheduledAt,c=n.action,u={environments:o,locales:a,scheduledAt:i,action:c},p={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/deploy"),{release:u},p);case 6:if(!(l=r.sent).data){r.next=11;break}return r.abrupt("return",l.data);case 11:throw h(l);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}(),this.clone=function(){var r=l()(f.a.mark((function r(n){var o,a,i,c,u;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.name,a=n.description,i={name:o,description:a},c={headers:Ct({},s()(e.stackHeaders))}||{},r.prev=3,r.next=6,t.post("".concat(e.urlPath,"/clone"),{release:i},c);case 6:if(!(u=r.sent).data){r.next=11;break}return r.abrupt("return",new Lt(t,u.data));case 11:throw h(u);case 12:r.next=17;break;case 14:throw r.prev=14,r.t0=r.catch(3),h(r.t0);case 17:case"end":return r.stop()}}),r,null,[[3,14]])})));return function(t){return r.apply(this,arguments)}}()):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:Tt})),this}function Tt(t,e){return(s()(e.releases)||[]).map((function(r){return new Lt(t,{release:r,stackHeaders:e.stackHeaders})}))}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.stackHeaders=r.stackHeaders,this.urlPath="/bulk",this.publish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/publish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.unpublish=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},n.skip_workflow_stage_check&&(a.headers.skip_workflow_stage_check=n.skip_workflow_stage_check),n.approvals&&(a.headers.approvals=n.approvals),r.abrupt("return",O(t,"/bulk/unpublish",o,a));case 7:case"end":return r.stop()}}),r)}))),this.delete=l()(f.a.mark((function r(){var n,o,a,i=arguments;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:{},o={},n.details&&(o=s()(n.details)),a={headers:Rt({},s()(e.stackHeaders))},r.abrupt("return",O(t,"/bulk/delete",o,a));case 5:case"end":return r.stop()}}),r)})))}function Ut(t,e){this.stackHeaders=e.stackHeaders,this.urlPath="/labels",e.label?(Object.assign(this,s()(e.label)),this.urlPath="/labels/".concat(this.uid),this.update=H(t,"label"),this.delete=E(t),this.fetch=A(t,"label")):(this.create=_({http:t}),this.query=S({http:t,wrapperCollection:zt}))}function zt(t,e){return(s()(e.labels)||[]).map((function(r){return new Ut(t,{label:r,stackHeaders:e.stackHeaders})}))}function Bt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.content_type={uid:e}),new X(t,n)},this.locale=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.locale={code:e}),new ut(t,n)},this.asset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.asset={uid:e}),new it(t,n)},this.globalField=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.global_field={uid:e}),new Y(t,n)},this.environment=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.environment={name:e}),new nt(t,n)},this.deliveryToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.token={uid:e}),new et(t,n)},this.extension=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.extension={uid:e}),new ht(t,n)},this.workflow=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.workflow={uid:e}),new Pt(t,n)},this.webhook=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.webhook={uid:e}),new mt(t,n)},this.label=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.label={uid:e}),new Ut(t,n)},this.release=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.release={uid:e}),new Lt(t,n)},this.bulkOperation=function(){var e={stackHeaders:r.stackHeaders};return new qt(t,e)},this.users=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r.urlPath,{params:{include_collaborators:!0},headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",I(t,n.data.stack));case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.transferOwnership=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/transfer_ownership"),{transfer_to:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.settings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get("".concat(r.urlPath,"/settings"),{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.resetSettings=l()(f.a.mark((function e(){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{discrete_variables:{},stack_variables:{}}},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(n=e.sent).data){e.next=8;break}return e.abrupt("return",n.data.stack_settings);case 8:return e.abrupt("return",h(n));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),this.addSettings=l()(f.a.mark((function e(){var n,o,a=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,t.post("".concat(r.urlPath,"/settings"),{stack_settings:{stack_variables:n}},{headers:Ft({},s()(r.stackHeaders))});case 4:if(!(o=e.sent).data){e.next=9;break}return e.abrupt("return",o.data.stack_settings);case 9:return e.abrupt("return",h(o));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",h(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),this.share=l()(f.a.mark((function e(){var n,o,a,i=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:[],o=i.length>1&&void 0!==i[1]?i[1]:{},e.prev=2,e.next=5,t.post("".concat(r.urlPath,"/share"),{emails:n,roles:o},{headers:Ft({},s()(r.stackHeaders))});case 5:if(!(a=e.sent).data){e.next=10;break}return e.abrupt("return",a.data);case 10:return e.abrupt("return",h(a));case 11:e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(2),e.abrupt("return",h(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,13]])}))),this.unShare=function(){var e=l()(f.a.mark((function e(n){var o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.post("".concat(r.urlPath,"/unshare"),{email:n},{headers:Ft({},s()(r.stackHeaders))});case 3:if(!(o=e.sent).data){e.next=8;break}return e.abrupt("return",o.data);case 8:return e.abrupt("return",h(o));case 9:e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(0),e.abrupt("return",h(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),this.role=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n={stackHeaders:r.stackHeaders};return e&&(n.role={uid:e}),new L(t,n)}):(this.create=_({http:t,params:this.organization_uid?{organization_uid:this.organization_uid}:null}),this.query=S({http:t,wrapperCollection:Mt})),this}function Mt(t,e){var r=e.stacks||[];return s()(r).map((function(e){return new It(t,{stack:e})}))}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return e.post("/user-session",{user:t},{params:r}).then((function(t){return null!=t.data.user&&null!=t.data.user.authtoken&&(e.defaults.headers.common.authtoken=t.data.user.authtoken,t.data.user=new F(e,t.data)),t.data}),h)},logout:function(t){return void 0!==t?e.delete("/user-session",{headers:{authtoken:t}}).then((function(t){return t.data}),h):e.delete("/user-session").then((function(t){return e.defaults.headers.common&&delete e.defaults.headers.common.authtoken,delete e.defaults.headers.authtoken,delete e.httpClientParams.authtoken,delete e.httpClientParams.headers.authtoken,t.data}),h)},getUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get("/user",{params:t}).then((function(t){return new F(e,t.data)}),h)},stack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=$t({},s()(t));return new It(e,{stack:r})},organization:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new q(e,null!==t?{organization:{uid:t}}:null)},axiosInstance:e}}var Gt=r(62),Qt=r.n(Gt),Xt=r(63),Jt=r.n(Xt),Kt=r(19),Yt=r.n(Kt);function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function te(t){for(var e=1;ee.config.retryLimit)return Promise.reject(a(t));if(e.config.retryDelayOptions)if(e.config.retryDelayOptions.customBackoff){if((c=e.config.retryDelayOptions.customBackoff(o,t))&&c<=0)return Promise.reject(a(t))}else e.config.retryDelayOptions.base&&(c=e.config.retryDelayOptions.base*o);else c=e.config.retryDelay;return t.config.retryCount=o,new Promise((function(e){return setTimeout((function(){return e(r(i(t,n,c)))}),c)}))},this.interceptors={request:null,response:null};var i=function(t,n,o){var a=t.config;return e.config.logHandler("warning","".concat(n," error occurred. Waiting for ").concat(o," ms before retrying...")),void 0!==r&&void 0!==r.defaults&&(r.defaults.agent===a.agent&&delete a.agent,r.defaults.httpAgent===a.httpAgent&&delete a.httpAgent,r.defaults.httpsAgent===a.httpsAgent&&delete a.httpsAgent),a.data=s(a),a.transformRequest=[function(t){return t}],a},s=function(t){if(t.formdata){var e=t.formdata();return t.headers=te(te({},t.headers),e.getHeaders()),e}return t.data};this.interceptors.request=r.interceptors.request.use((function(t){if("function"==typeof t.data&&(t.formdata=t.data,t.data=s(t)),console.log(t.data),t.retryCount=t.retryCount||0,t.headers.authorization&&void 0!==t.headers.authorization&&delete t.headers.authtoken,void 0===t.cancelToken){var r=Yt.a.CancelToken.source();t.cancelToken=r.token,t.source=r}return e.paused&&t.retryCount>0?new Promise((function(r){e.unshift({request:t,resolve:r})})):t.retryCount>0?t:new Promise((function(r){t.onComplete=function(){e.running.pop({request:t,resolve:r})},e.push({request:t,resolve:r})}))})),this.interceptors.response=r.interceptors.response.use(a,(function(t){var n=t.config.retryCount,o=null;if(!e.config.retryOnError||n>e.config.retryLimit)return Promise.reject(a(t));var s=e.config.retryDelay,c=t.response;if(c){if(429===c.status)return o="Error with status: ".concat(c.status),++n>e.config.retryLimit?Promise.reject(a(t)):(e.running.shift(),function t(r){if(!e.paused)return e.paused=!0,e.running.length>0&&setTimeout((function(){t(r)}),r),new Promise((function(t){return setTimeout((function(){e.paused=!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e={defaultHostName:"api.contentstack.io"},r="contentstack-management-javascript/".concat(a.version),n=Object(c.a)(r,t.application,t.integration,t.feature),o={"X-User-Agent":r,"User-Agent":n};t.authtoken&&(o.authtoken=t.authtoken),(t=se(se({},e),s()(t))).headers=se(se({},t.headers),o);var i=ae(t),u=Wt({http:i});return u}}])})); \ No newline at end of file diff --git a/jsdocs/Asset.html b/jsdocs/Asset.html index 0fa6e476..35ac3d70 100644 --- a/jsdocs/Asset.html +++ b/jsdocs/Asset.html @@ -1354,7 +1354,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/BulkOperation.html b/jsdocs/BulkOperation.html index c6719265..35eb9d8f 100644 --- a/jsdocs/BulkOperation.html +++ b/jsdocs/BulkOperation.html @@ -800,7 +800,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/ContentType.html b/jsdocs/ContentType.html index 1bdfe55f..da34e546 100644 --- a/jsdocs/ContentType.html +++ b/jsdocs/ContentType.html @@ -1317,7 +1317,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Contentstack.html b/jsdocs/Contentstack.html index d4da440f..49eae37e 100644 --- a/jsdocs/Contentstack.html +++ b/jsdocs/Contentstack.html @@ -829,7 +829,7 @@
Examples

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/ContentstackClient.html b/jsdocs/ContentstackClient.html index 7d856135..c427ea2b 100644 --- a/jsdocs/ContentstackClient.html +++ b/jsdocs/ContentstackClient.html @@ -1077,7 +1077,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/DeliveryToken.html b/jsdocs/DeliveryToken.html index 0a09c97c..5f630e38 100644 --- a/jsdocs/DeliveryToken.html +++ b/jsdocs/DeliveryToken.html @@ -763,7 +763,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Entry.html b/jsdocs/Entry.html index ae4f888a..71175df3 100644 --- a/jsdocs/Entry.html +++ b/jsdocs/Entry.html @@ -1693,7 +1693,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Environment.html b/jsdocs/Environment.html index 91bdcf34..9cc6a87f 100644 --- a/jsdocs/Environment.html +++ b/jsdocs/Environment.html @@ -766,7 +766,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Extension.html b/jsdocs/Extension.html index f5bbadb0..c1227448 100644 --- a/jsdocs/Extension.html +++ b/jsdocs/Extension.html @@ -944,7 +944,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Folder.html b/jsdocs/Folder.html index bd0a6a96..0c875520 100644 --- a/jsdocs/Folder.html +++ b/jsdocs/Folder.html @@ -633,7 +633,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/GlobalField.html b/jsdocs/GlobalField.html index 23c9a063..6d5b4198 100644 --- a/jsdocs/GlobalField.html +++ b/jsdocs/GlobalField.html @@ -908,7 +908,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Label.html b/jsdocs/Label.html index 133d2a40..b9167748 100644 --- a/jsdocs/Label.html +++ b/jsdocs/Label.html @@ -855,7 +855,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Locale.html b/jsdocs/Locale.html index 2c2e6388..21d57376 100644 --- a/jsdocs/Locale.html +++ b/jsdocs/Locale.html @@ -850,7 +850,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Organization.html b/jsdocs/Organization.html index d6004366..0d1cc17c 100644 --- a/jsdocs/Organization.html +++ b/jsdocs/Organization.html @@ -1691,7 +1691,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/PublishRules.html b/jsdocs/PublishRules.html index b0dce41d..2d7886d0 100644 --- a/jsdocs/PublishRules.html +++ b/jsdocs/PublishRules.html @@ -287,7 +287,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Release.html b/jsdocs/Release.html index 250403d6..6fa932a4 100644 --- a/jsdocs/Release.html +++ b/jsdocs/Release.html @@ -1503,7 +1503,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Role.html b/jsdocs/Role.html index 43ab1c62..3b2741aa 100644 --- a/jsdocs/Role.html +++ b/jsdocs/Role.html @@ -1125,7 +1125,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Stack.html b/jsdocs/Stack.html index 21d6d9a2..f0940664 100644 --- a/jsdocs/Stack.html +++ b/jsdocs/Stack.html @@ -3967,7 +3967,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/User.html b/jsdocs/User.html index 3df0249c..52ab2bb6 100644 --- a/jsdocs/User.html +++ b/jsdocs/User.html @@ -883,7 +883,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Webhook.html b/jsdocs/Webhook.html index de76d1a3..8046c229 100644 --- a/jsdocs/Webhook.html +++ b/jsdocs/Webhook.html @@ -1410,7 +1410,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/Workflow.html b/jsdocs/Workflow.html index 7d45eeed..9d667469 100644 --- a/jsdocs/Workflow.html +++ b/jsdocs/Workflow.html @@ -1544,7 +1544,7 @@
Returns:

- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/contentstack.js.html b/jsdocs/contentstack.js.html index 85a398f8..54bb49a0 100644 --- a/jsdocs/contentstack.js.html +++ b/jsdocs/contentstack.js.html @@ -216,7 +216,7 @@

contentstack.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/contentstackClient.js.html b/jsdocs/contentstackClient.js.html index c1914331..a52b3f07 100644 --- a/jsdocs/contentstackClient.js.html +++ b/jsdocs/contentstackClient.js.html @@ -237,7 +237,7 @@

contentstackClient.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/index.html b/jsdocs/index.html index 7bca0a26..39d5a270 100644 --- a/jsdocs/index.html +++ b/jsdocs/index.html @@ -171,7 +171,7 @@

The MIT License (MIT)


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/organization_index.js.html b/jsdocs/organization_index.js.html index cd770c7c..9d49a7c3 100644 --- a/jsdocs/organization_index.js.html +++ b/jsdocs/organization_index.js.html @@ -301,7 +301,7 @@

organization/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/query_index.js.html b/jsdocs/query_index.js.html index ffa7ab47..c5765a7a 100644 --- a/jsdocs/query_index.js.html +++ b/jsdocs/query_index.js.html @@ -195,7 +195,7 @@

query/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_asset_folders_index.js.html b/jsdocs/stack_asset_folders_index.js.html index 5e9bd3da..52ad5413 100644 --- a/jsdocs/stack_asset_folders_index.js.html +++ b/jsdocs/stack_asset_folders_index.js.html @@ -162,7 +162,7 @@

stack/asset/folders/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_asset_index.js.html b/jsdocs/stack_asset_index.js.html index 04a86474..fa1594bb 100644 --- a/jsdocs/stack_asset_index.js.html +++ b/jsdocs/stack_asset_index.js.html @@ -289,29 +289,26 @@

stack/asset/index.js

} function createFormData (data) { - const formData = new FormData() - if (typeof data['parent_uid'] === 'string') { - formData.append('asset[parent_uid]', data['parent_uid']) - } - - if (typeof data.description === 'string') { - formData.append('asset[description]', data.description) - } - - if (data.tags instanceof Array) { - formData.append('asset[tags]', data.tags.join(',')) - } else if (typeof data.tags === 'string') { - formData.append('asset[tags]', data.tags) - } - - if (typeof data.title === 'string') { - formData.append('asset[title]', data.title) + return () => { + const formData = new FormData() + if (typeof data['parent_uid'] === 'string') { + formData.append('asset[parent_uid]', data['parent_uid']) + } + if (typeof data.description === 'string') { + formData.append('asset[description]', data.description) + } + if (data.tags instanceof Array) { + formData.append('asset[tags]', data.tags.join(',')) + } else if (typeof data.tags === 'string') { + formData.append('asset[tags]', data.tags) + } + if (typeof data.title === 'string') { + formData.append('asset[title]', data.title) + } + const uploadStream = createReadStream(data.upload) + formData.append('asset[upload]', uploadStream) + return formData } - - const uploadStream = createReadStream(data.upload) - formData.append('asset[upload]', uploadStream) - - return formData } @@ -327,7 +324,7 @@

stack/asset/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_bulkOperation_index.js.html b/jsdocs/stack_bulkOperation_index.js.html index e7bbbc79..7015512b 100644 --- a/jsdocs/stack_bulkOperation_index.js.html +++ b/jsdocs/stack_bulkOperation_index.js.html @@ -225,7 +225,7 @@

stack/bulkOperation/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_contentType_entry_index.js.html b/jsdocs/stack_contentType_entry_index.js.html index 8110f36c..fd374946 100644 --- a/jsdocs/stack_contentType_entry_index.js.html +++ b/jsdocs/stack_contentType_entry_index.js.html @@ -332,10 +332,12 @@

stack/contentType/entry/index.js

} function createFormData (entry) { - const formData = new FormData() - const uploadStream = createReadStream(entry) - formData.append('entry', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(entry) + formData.append('entry', uploadStream) + return formData + } } @@ -351,7 +353,7 @@

stack/contentType/entry/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_contentType_index.js.html b/jsdocs/stack_contentType_index.js.html index 80df938a..59a8f7ed 100644 --- a/jsdocs/stack_contentType_index.js.html +++ b/jsdocs/stack_contentType_index.js.html @@ -254,10 +254,12 @@

stack/contentType/index.js

} function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.content_type) - formData.append('content_type', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.content_type) + formData.append('content_type', uploadStream) + return formData + } } @@ -273,7 +275,7 @@

stack/contentType/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_deliveryToken_index.js.html b/jsdocs/stack_deliveryToken_index.js.html index 39e20e41..4970e693 100644 --- a/jsdocs/stack_deliveryToken_index.js.html +++ b/jsdocs/stack_deliveryToken_index.js.html @@ -178,7 +178,7 @@

stack/deliveryToken/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_environment_index.js.html b/jsdocs/stack_environment_index.js.html index f2ba70f2..9db948dc 100644 --- a/jsdocs/stack_environment_index.js.html +++ b/jsdocs/stack_environment_index.js.html @@ -183,7 +183,7 @@

stack/environment/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_extension_index.js.html b/jsdocs/stack_extension_index.js.html index ded6e4ba..e65ec1c9 100644 --- a/jsdocs/stack_extension_index.js.html +++ b/jsdocs/stack_extension_index.js.html @@ -211,35 +211,36 @@

stack/extension/index.js

} function createExtensionFormData (data) { - const formData = new FormData() + return () => { + const formData = new FormData() - if (typeof data.title === 'string') { - formData.append('extension[title]', data.title) - } - if (typeof data.scope === 'object') { - formData.append('extension[scope]', `${data.scope}`) - } - if (typeof data['data_type'] === 'string') { - formData.append('extension[data_type]', data['data_type']) - } - if (typeof data.type === 'string') { - formData.append('extension[type]', data.type) - } - if (data.tags instanceof Array) { - formData.append('extension[tags]', data.tags.join(',')) - } else if (typeof data.tags === 'string') { - formData.append('extension[tags]', data.tags) - } - if (typeof data.multiple === 'boolean') { - formData.append('extension[multiple]', `${data.multiple}`) - } - if (typeof data.enable === 'boolean') { - formData.append('extension[enable]', `${data.enable}`) + if (typeof data.title === 'string') { + formData.append('extension[title]', data.title) + } + if (typeof data.scope === 'object') { + formData.append('extension[scope]', `${data.scope}`) + } + if (typeof data['data_type'] === 'string') { + formData.append('extension[data_type]', data['data_type']) + } + if (typeof data.type === 'string') { + formData.append('extension[type]', data.type) + } + if (data.tags instanceof Array) { + formData.append('extension[tags]', data.tags.join(',')) + } else if (typeof data.tags === 'string') { + formData.append('extension[tags]', data.tags) + } + if (typeof data.multiple === 'boolean') { + formData.append('extension[multiple]', `${data.multiple}`) + } + if (typeof data.enable === 'boolean') { + formData.append('extension[enable]', `${data.enable}`) + } + const uploadStream = createReadStream(data.upload) + formData.append('extension[upload]', uploadStream) + return formData } - - const uploadStream = createReadStream(data.upload) - formData.append('extension[upload]', uploadStream) - return formData } @@ -255,7 +256,7 @@

stack/extension/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_globalField_index.js.html b/jsdocs/stack_globalField_index.js.html index f2ed04c3..9df65658 100644 --- a/jsdocs/stack_globalField_index.js.html +++ b/jsdocs/stack_globalField_index.js.html @@ -204,10 +204,12 @@

stack/globalField/index.js

} function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.global_field) - formData.append('global_field', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.global_field) + formData.append('global_field', uploadStream) + return formData + } } @@ -223,7 +225,7 @@

stack/globalField/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_index.js.html b/jsdocs/stack_index.js.html index d992105f..3118d8bf 100644 --- a/jsdocs/stack_index.js.html +++ b/jsdocs/stack_index.js.html @@ -708,7 +708,7 @@

stack/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_label_index.js.html b/jsdocs/stack_label_index.js.html index 9642d952..985a195b 100644 --- a/jsdocs/stack_label_index.js.html +++ b/jsdocs/stack_label_index.js.html @@ -178,7 +178,7 @@

stack/label/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_locale_index.js.html b/jsdocs/stack_locale_index.js.html index ca491ffb..67093719 100644 --- a/jsdocs/stack_locale_index.js.html +++ b/jsdocs/stack_locale_index.js.html @@ -173,7 +173,7 @@

stack/locale/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_release_index.js.html b/jsdocs/stack_release_index.js.html index 5c4f63a6..435dda70 100644 --- a/jsdocs/stack_release_index.js.html +++ b/jsdocs/stack_release_index.js.html @@ -313,7 +313,7 @@

stack/release/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_roles_index.js.html b/jsdocs/stack_roles_index.js.html index 0243dbbb..ea425e21 100644 --- a/jsdocs/stack_roles_index.js.html +++ b/jsdocs/stack_roles_index.js.html @@ -231,7 +231,7 @@

stack/roles/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_webhook_index.js.html b/jsdocs/stack_webhook_index.js.html index 3a6dbcc3..8beae2e1 100644 --- a/jsdocs/stack_webhook_index.js.html +++ b/jsdocs/stack_webhook_index.js.html @@ -287,10 +287,12 @@

stack/webhook/index.js

} function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.webhook) - formData.append('webhook', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.webhook) + formData.append('webhook', uploadStream) + return formData + } } @@ -306,7 +308,7 @@

stack/webhook/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_workflow_index.js.html b/jsdocs/stack_workflow_index.js.html index 9339157c..6bc7f49c 100644 --- a/jsdocs/stack_workflow_index.js.html +++ b/jsdocs/stack_workflow_index.js.html @@ -371,7 +371,7 @@

stack/workflow/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/stack_workflow_publishRules_index.js.html b/jsdocs/stack_workflow_publishRules_index.js.html index 166ec5e3..1a8e86a8 100644 --- a/jsdocs/stack_workflow_publishRules_index.js.html +++ b/jsdocs/stack_workflow_publishRules_index.js.html @@ -195,7 +195,7 @@

stack/workflow/publishRules/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/jsdocs/user_index.js.html b/jsdocs/user_index.js.html index d4de2438..3fad7b00 100644 --- a/jsdocs/user_index.js.html +++ b/jsdocs/user_index.js.html @@ -225,7 +225,7 @@

user/index.js


- Documentation generated by JSDoc 3.6.7 on Mon Jun 21 2021 12:44:15 GMT+0530 (India Standard Time) using the docdash theme. + Documentation generated by JSDoc 3.6.7 on Thu Jul 15 2021 10:49:34 GMT+0530 (India Standard Time) using the docdash theme.
diff --git a/lib/core/concurrency-queue.js b/lib/core/concurrency-queue.js index 11366d75..ff6a57a2 100644 --- a/lib/core/concurrency-queue.js +++ b/lib/core/concurrency-queue.js @@ -71,6 +71,11 @@ export function ConcurrencyQueue ({ axios, config }) { // Request interceptor to queue the request const requestHandler = request => { + if (typeof request.data === 'function') { + request.formdata = request.data + request.data = transformFormData(request) + } + console.log(request.data) request.retryCount = request.retryCount || 0 if (request.headers.authorization && request.headers.authorization !== undefined) { delete request.headers.authtoken @@ -91,6 +96,9 @@ export function ConcurrencyQueue ({ axios, config }) { } return new Promise(resolve => { + request.onComplete = () => { + this.running.pop({ request, resolve }) + } this.push({ request, resolve }) }) } @@ -117,7 +125,7 @@ export function ConcurrencyQueue ({ axios, config }) { // Response interceptor used for const responseHandler = (response) => { - this.running.shift() + response.config.onComplete() shift() return response } @@ -210,12 +218,25 @@ export function ConcurrencyQueue ({ axios, config }) { } } + requestConfig.data = transformFormData(requestConfig) requestConfig.transformRequest = [function (data) { return data }] return requestConfig } + const transformFormData = (request) => { + if (request.formdata) { + const formdata = request.formdata() + request.headers = { + ...request.headers, + ...formdata.getHeaders() + } + return formdata + } + return request.data + } + // Adds interseptors in axios to queue request this.interceptors.request = axios.interceptors.request.use(requestHandler) this.interceptors.response = axios.interceptors.response.use(responseHandler, responseErrorHandler) diff --git a/lib/entity.js b/lib/entity.js index 3b193327..3358c5b2 100644 --- a/lib/entity.js +++ b/lib/entity.js @@ -57,7 +57,6 @@ export const upload = async ({ http, urlPath, stackHeaders, formData, params, me const headers = { headers: { ...params, - ...formData.getHeaders(), ...cloneDeep(stackHeaders) } } || {} diff --git a/lib/stack/asset/index.js b/lib/stack/asset/index.js index e1402254..5b45fe39 100644 --- a/lib/stack/asset/index.js +++ b/lib/stack/asset/index.js @@ -234,27 +234,24 @@ export function AssetCollection (http, data) { } function createFormData (data) { - const formData = new FormData() - if (typeof data['parent_uid'] === 'string') { - formData.append('asset[parent_uid]', data['parent_uid']) - } - - if (typeof data.description === 'string') { - formData.append('asset[description]', data.description) - } - - if (data.tags instanceof Array) { - formData.append('asset[tags]', data.tags.join(',')) - } else if (typeof data.tags === 'string') { - formData.append('asset[tags]', data.tags) - } - - if (typeof data.title === 'string') { - formData.append('asset[title]', data.title) + return () => { + const formData = new FormData() + if (typeof data['parent_uid'] === 'string') { + formData.append('asset[parent_uid]', data['parent_uid']) + } + if (typeof data.description === 'string') { + formData.append('asset[description]', data.description) + } + if (data.tags instanceof Array) { + formData.append('asset[tags]', data.tags.join(',')) + } else if (typeof data.tags === 'string') { + formData.append('asset[tags]', data.tags) + } + if (typeof data.title === 'string') { + formData.append('asset[title]', data.title) + } + const uploadStream = createReadStream(data.upload) + formData.append('asset[upload]', uploadStream) + return formData } - - const uploadStream = createReadStream(data.upload) - formData.append('asset[upload]', uploadStream) - - return formData } diff --git a/lib/stack/contentType/entry/index.js b/lib/stack/contentType/entry/index.js index d197f018..41a4773b 100644 --- a/lib/stack/contentType/entry/index.js +++ b/lib/stack/contentType/entry/index.js @@ -277,8 +277,10 @@ export function EntryCollection (http, data) { } function createFormData (entry) { - const formData = new FormData() - const uploadStream = createReadStream(entry) - formData.append('entry', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(entry) + formData.append('entry', uploadStream) + return formData + } } diff --git a/lib/stack/contentType/index.js b/lib/stack/contentType/index.js index 4450494a..43d56201 100644 --- a/lib/stack/contentType/index.js +++ b/lib/stack/contentType/index.js @@ -199,8 +199,10 @@ export function ContentTypeCollection (http, data) { } function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.content_type) - formData.append('content_type', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.content_type) + formData.append('content_type', uploadStream) + return formData + } } diff --git a/lib/stack/extension/index.js b/lib/stack/extension/index.js index 537c5753..095d5728 100644 --- a/lib/stack/extension/index.js +++ b/lib/stack/extension/index.js @@ -156,33 +156,34 @@ export function ExtensionCollection (http, data) { } function createExtensionFormData (data) { - const formData = new FormData() + return () => { + const formData = new FormData() - if (typeof data.title === 'string') { - formData.append('extension[title]', data.title) - } - if (typeof data.scope === 'object') { - formData.append('extension[scope]', `${data.scope}`) - } - if (typeof data['data_type'] === 'string') { - formData.append('extension[data_type]', data['data_type']) - } - if (typeof data.type === 'string') { - formData.append('extension[type]', data.type) - } - if (data.tags instanceof Array) { - formData.append('extension[tags]', data.tags.join(',')) - } else if (typeof data.tags === 'string') { - formData.append('extension[tags]', data.tags) - } - if (typeof data.multiple === 'boolean') { - formData.append('extension[multiple]', `${data.multiple}`) - } - if (typeof data.enable === 'boolean') { - formData.append('extension[enable]', `${data.enable}`) + if (typeof data.title === 'string') { + formData.append('extension[title]', data.title) + } + if (typeof data.scope === 'object') { + formData.append('extension[scope]', `${data.scope}`) + } + if (typeof data['data_type'] === 'string') { + formData.append('extension[data_type]', data['data_type']) + } + if (typeof data.type === 'string') { + formData.append('extension[type]', data.type) + } + if (data.tags instanceof Array) { + formData.append('extension[tags]', data.tags.join(',')) + } else if (typeof data.tags === 'string') { + formData.append('extension[tags]', data.tags) + } + if (typeof data.multiple === 'boolean') { + formData.append('extension[multiple]', `${data.multiple}`) + } + if (typeof data.enable === 'boolean') { + formData.append('extension[enable]', `${data.enable}`) + } + const uploadStream = createReadStream(data.upload) + formData.append('extension[upload]', uploadStream) + return formData } - - const uploadStream = createReadStream(data.upload) - formData.append('extension[upload]', uploadStream) - return formData } diff --git a/lib/stack/globalField/index.js b/lib/stack/globalField/index.js index e31ffc6e..fc06859a 100644 --- a/lib/stack/globalField/index.js +++ b/lib/stack/globalField/index.js @@ -149,8 +149,10 @@ export function GlobalFieldCollection (http, data) { } function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.global_field) - formData.append('global_field', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.global_field) + formData.append('global_field', uploadStream) + return formData + } } diff --git a/lib/stack/webhook/index.js b/lib/stack/webhook/index.js index 3764768b..44c5a92f 100644 --- a/lib/stack/webhook/index.js +++ b/lib/stack/webhook/index.js @@ -232,8 +232,10 @@ export function WebhookCollection (http, data) { } function createFormData (data) { - const formData = new FormData() - const uploadStream = createReadStream(data.webhook) - formData.append('webhook', uploadStream) - return formData + return () => { + const formData = new FormData() + const uploadStream = createReadStream(data.webhook) + formData.append('webhook', uploadStream) + return formData + } } diff --git a/test/unit/concurrency-Queue-test.js b/test/unit/concurrency-Queue-test.js index 76e66d77..7f32e495 100644 --- a/test/unit/concurrency-Queue-test.js +++ b/test/unit/concurrency-Queue-test.js @@ -5,7 +5,10 @@ import http from 'http' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' import { ConcurrencyQueue } from '../../lib/core/concurrency-queue' - +import FormData from 'form-data' +import { createReadStream } from 'fs' +import path from 'path' +import multiparty from 'multiparty' const axios = Axios.create() let server @@ -56,7 +59,7 @@ const reconfigureQueue = (options = {}) => { concurrencyQueue.detach() concurrencyQueue = new ConcurrencyQueue({ axios: api, config }) } - +var returnContent = false describe('Concurrency queue test', () => { before(() => { server = http.createServer((req, res) => { @@ -71,6 +74,21 @@ describe('Concurrency queue test', () => { } else if (req.url === '/ratelimit') { res.writeHead(429, { 'Content-Type': 'application/json' }) res.end(JSON.stringify({ errorCode: 429 })) + } else if (req.url === '/assetUpload') { + var form = new multiparty.Form() + form.parse(req, function (err, fields, files) { + if (err) { + return + } + if (returnContent) { + res.writeHead(200, { 'Content-Type': 'application/json' }) + res.end(JSON.stringify({ randomInteger: 123 })) + } else { + res.writeHead(429, { 'Content-Type': 'application/json' }) + res.end(JSON.stringify({ errorCode: 429 })) + } + returnContent = !returnContent + }) } else { res.writeHead(200, { 'Content-Type': 'application/json' }) res.end(JSON.stringify({ randomInteger: 123 })) @@ -279,6 +297,29 @@ describe('Concurrency queue test', () => { .catch(done) }) + it('Concurrency with 10 asset upload with rate limit error', done => { + reconfigureQueue() + const fuc = (pathcontent) => { + return () => { + const formData = new FormData() + const uploadStream = createReadStream(path.join(__dirname, '../api/mock/upload.html')) + formData.append('asset[upload]', uploadStream) + return formData + } + } + + Promise.all(sequence(10).map(() => wrapPromise(api.post('/assetUpload', fuc())))) + .then((responses) => { + return responses.map(r => r.data) + }) + .then(objects => { + expect(logHandlerStub.callCount).to.be.equal(10) + expect(objects.length).to.be.equal(10) + done() + }) + .catch(done) + }) + it('Concurrency with 20 request and 1 rate limit request tests', done => { reconfigureQueue() Promise.all( From f37118a8bbf561010defa60acb9c070415559fdb Mon Sep 17 00:00:00 2001 From: Uttam Krishna Ukkoji Date: Fri, 16 Jul 2021 10:10:13 +0530 Subject: [PATCH 2/3] doc :memo: Package version update --- .talismanrc | 12 +- package-lock.json | 1757 ++++++++++++++++++++++++++++++++++++--------- package.json | 5 +- 3 files changed, 1439 insertions(+), 335 deletions(-) diff --git a/.talismanrc b/.talismanrc index b73e439a..f89dbaab 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,11 +1,3 @@ fileignoreconfig: -- filename: jsdocs/stack_environment_index.js.html - checksum: 1093109567f5d30a23900af471422ccbad4c24aac2415d5bdd4f4f1eb95b27b3 -- filename: dist/node/contentstack-management.js - checksum: 04714b8c8d21f1aec36faed12738dd8d5c16bca6197b57309f87208a15be1c37 -- filename: dist/nativescript/contentstack-management.js - checksum: dd7ca11b797a1e00d863a2474433b37c5517d7fe69977dd506680432e7f8c19c -- filename: dist/react-native/contentstack-management.js - checksum: 9fdd9277c186a8b670813528c89f8a21484122ca2aca6d4f7b3d501153ed936d -- filename: dist/web/contentstack-management.js - checksum: 16fce6e8acfa61a77bb2e900347c17b6bc6f465aeefeac99fb22ec221dffff10 +- filename: package-lock.json + checksum: dc2cccebfb5ca8c6330c9c5b3300633c804876a5487c41f326a2c750f500c18b diff --git a/package-lock.json b/package-lock.json index b4d33ada..a0c0c933 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@contentstack/management", - "version": "1.2.3", + "version": "1.2.4", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1276,32 +1276,6 @@ "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", "dev": true }, - "@types/eslint": { - "version": "7.2.13", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.2.13.tgz", - "integrity": "sha512-LKmQCWAlnVHvvXq4oasNUMTJJb2GwSyTY8+1C7OH5ILR8mPLaljv1jxL1bXW3xB3jFbQxTKxJAvI8PyjB09aBg==", - "dev": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.0.tgz", - "integrity": "sha512-O/ql2+rrCUe2W2rs7wMR+GqPRcgB6UiqN5RhrR5xruFlY7l9YLMn0ZkDzjoHLeiFkR8MCQZVudUuuvQ2BLC9Qw==", - "dev": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "0.0.47", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.47.tgz", - "integrity": "sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==", - "dev": true - }, "@types/json-schema": { "version": "7.0.5", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.5.tgz", @@ -1320,155 +1294,178 @@ "integrity": "sha512-ZvO2tAcjmMi8V/5Z3JsyofMe3hasRcaw88cto5etSVMwVQfeivGAlEYmaQgceUSVYFofVjT+ioHsATjdWcFt1w==", "dev": true }, - "@types/node": { - "version": "15.12.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.4.tgz", - "integrity": "sha512-zrNj1+yqYF4WskCMOHwN+w9iuD12+dGm0rQ35HLl9/Ouuq52cEtd0CH9qMgrdNmi5ejC1/V7vKEXYubB+65DkA==", - "dev": true - }, "@webassemblyjs/ast": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.0.tgz", - "integrity": "sha512-kX2W49LWsbthrmIRMbQZuQDhGtjyqXfEmmHyEi4XWnSZtPmxY0+3anPIzsnRb45VH/J55zlOfWvZuY47aJZTJg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", + "integrity": "sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==", "dev": true, "requires": { - "@webassemblyjs/helper-numbers": "1.11.0", - "@webassemblyjs/helper-wasm-bytecode": "1.11.0" + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.0.tgz", - "integrity": "sha512-Q/aVYs/VnPDVYvsCBL/gSgwmfjeCb4LW8+TMrO3cSzJImgv8lxxEPM2JA5jMrivE7LSz3V+PFqtMbls3m1exDA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz", + "integrity": "sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==", "dev": true }, "@webassemblyjs/helper-api-error": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.0.tgz", - "integrity": "sha512-baT/va95eXiXb2QflSx95QGT5ClzWpGaa8L7JnJbgzoYeaA27FCvuBXU758l+KXWRndEmUXjP0Q5fibhavIn8w==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz", + "integrity": "sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==", "dev": true }, "@webassemblyjs/helper-buffer": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.0.tgz", - "integrity": "sha512-u9HPBEl4DS+vA8qLQdEQ6N/eJQ7gT7aNvMIo8AAWvAl/xMrcOSiI2M0MAnMCy3jIFke7bEee/JwdX1nUpCtdyA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz", + "integrity": "sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==", "dev": true }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.0.tgz", - "integrity": "sha512-DhRQKelIj01s5IgdsOJMKLppI+4zpmcMQ3XboFPLwCpSNH6Hqo1ritgHgD0nqHeSYqofA6aBN/NmXuGjM1jEfQ==", + "@webassemblyjs/helper-code-frame": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz", + "integrity": "sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==", "dev": true, "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.0", - "@webassemblyjs/helper-api-error": "1.11.0", - "@xtuc/long": "4.2.2" + "@webassemblyjs/wast-printer": "1.9.0" + } + }, + "@webassemblyjs/helper-fsm": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz", + "integrity": "sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==", + "dev": true + }, + "@webassemblyjs/helper-module-context": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz", + "integrity": "sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.0.tgz", - "integrity": "sha512-MbmhvxXExm542tWREgSFnOVo07fDpsBJg3sIl6fSp9xuu75eGz5lz31q7wTLffwL3Za7XNRCMZy210+tnsUSEA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz", + "integrity": "sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==", "dev": true }, "@webassemblyjs/helper-wasm-section": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.0.tgz", - "integrity": "sha512-3Eb88hcbfY/FCukrg6i3EH8H2UsD7x8Vy47iVJrP967A9JGqgBVL9aH71SETPx1JrGsOUVLo0c7vMCN22ytJew==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz", + "integrity": "sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/helper-buffer": "1.11.0", - "@webassemblyjs/helper-wasm-bytecode": "1.11.0", - "@webassemblyjs/wasm-gen": "1.11.0" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0" } }, "@webassemblyjs/ieee754": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.0.tgz", - "integrity": "sha512-KXzOqpcYQwAfeQ6WbF6HXo+0udBNmw0iXDmEK5sFlmQdmND+tr773Ti8/5T/M6Tl/413ArSJErATd8In3B+WBA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz", + "integrity": "sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.0.tgz", - "integrity": "sha512-aqbsHa1mSQAbeeNcl38un6qVY++hh8OpCOzxhixSYgbRfNWcxJNJQwe2rezK9XEcssJbbWIkblaJRwGMS9zp+g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.9.0.tgz", + "integrity": "sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==", "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.0.tgz", - "integrity": "sha512-A/lclGxH6SpSLSyFowMzO/+aDEPU4hvEiooCMXQPcQFPPJaYcPQNKGOCLUySJsYJ4trbpr+Fs08n4jelkVTGVw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.9.0.tgz", + "integrity": "sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==", "dev": true }, "@webassemblyjs/wasm-edit": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.0.tgz", - "integrity": "sha512-JHQ0damXy0G6J9ucyKVXO2j08JVJ2ntkdJlq1UTiUrIgfGMmA7Ik5VdC/L8hBK46kVJgujkBIoMtT8yVr+yVOQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz", + "integrity": "sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/helper-buffer": "1.11.0", - "@webassemblyjs/helper-wasm-bytecode": "1.11.0", - "@webassemblyjs/helper-wasm-section": "1.11.0", - "@webassemblyjs/wasm-gen": "1.11.0", - "@webassemblyjs/wasm-opt": "1.11.0", - "@webassemblyjs/wasm-parser": "1.11.0", - "@webassemblyjs/wast-printer": "1.11.0" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/helper-wasm-section": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-opt": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "@webassemblyjs/wast-printer": "1.9.0" } }, "@webassemblyjs/wasm-gen": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.0.tgz", - "integrity": "sha512-BEUv1aj0WptCZ9kIS30th5ILASUnAPEvE3tVMTrItnZRT9tXCLW2LEXT8ezLw59rqPP9klh9LPmpU+WmRQmCPQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz", + "integrity": "sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/helper-wasm-bytecode": "1.11.0", - "@webassemblyjs/ieee754": "1.11.0", - "@webassemblyjs/leb128": "1.11.0", - "@webassemblyjs/utf8": "1.11.0" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" } }, "@webassemblyjs/wasm-opt": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.0.tgz", - "integrity": "sha512-tHUSP5F4ywyh3hZ0+fDQuWxKx3mJiPeFufg+9gwTpYp324mPCQgnuVKwzLTZVqj0duRDovnPaZqDwoyhIO8kYg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz", + "integrity": "sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/helper-buffer": "1.11.0", - "@webassemblyjs/wasm-gen": "1.11.0", - "@webassemblyjs/wasm-parser": "1.11.0" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-buffer": "1.9.0", + "@webassemblyjs/wasm-gen": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0" } }, "@webassemblyjs/wasm-parser": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.0.tgz", - "integrity": "sha512-6L285Sgu9gphrcpDXINvm0M9BskznnzJTE7gYkjDbxET28shDqp27wpruyx3C2S/dvEwiigBwLA1cz7lNUi0kw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz", + "integrity": "sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-wasm-bytecode": "1.9.0", + "@webassemblyjs/ieee754": "1.9.0", + "@webassemblyjs/leb128": "1.9.0", + "@webassemblyjs/utf8": "1.9.0" + } + }, + "@webassemblyjs/wast-parser": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz", + "integrity": "sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/helper-api-error": "1.11.0", - "@webassemblyjs/helper-wasm-bytecode": "1.11.0", - "@webassemblyjs/ieee754": "1.11.0", - "@webassemblyjs/leb128": "1.11.0", - "@webassemblyjs/utf8": "1.11.0" + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/floating-point-hex-parser": "1.9.0", + "@webassemblyjs/helper-api-error": "1.9.0", + "@webassemblyjs/helper-code-frame": "1.9.0", + "@webassemblyjs/helper-fsm": "1.9.0", + "@xtuc/long": "4.2.2" } }, "@webassemblyjs/wast-printer": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.0.tgz", - "integrity": "sha512-Fg5OX46pRdTgB7rKIUojkh9vXaVN6sGYCnEiJN1GYkb0RPwShZXp6KTDqmoMdQPKhcroOXh3fEzmkWmCYaKYhQ==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz", + "integrity": "sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.0", + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/wast-parser": "1.9.0", "@xtuc/long": "4.2.2" } }, @@ -1508,6 +1505,12 @@ "uri-js": "^4.2.2" } }, + "ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true + }, "ajv-keywords": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", @@ -1584,6 +1587,12 @@ "default-require-extensions": "^2.0.0" } }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, "archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", @@ -1650,6 +1659,53 @@ "es-abstract": "^1.17.0-next.1" } }, + "asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "assert": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", + "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", + "dev": true, + "requires": { + "object-assign": "^4.1.1", + "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } + } + }, "assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -1995,6 +2051,12 @@ } } }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true + }, "big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -2024,6 +2086,12 @@ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, + "bn.js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", + "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==", + "dev": true + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2063,12 +2131,110 @@ } } }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", + "dev": true + }, "browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, + "browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "dev": true, + "requires": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "browserify-sign": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", + "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "dev": true, + "requires": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "~1.0.5" + } + }, "browserslist": { "version": "4.16.6", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", @@ -2108,12 +2274,75 @@ } } }, + "buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true + }, + "cacache": { + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz", + "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", + "dev": true, + "requires": { + "bluebird": "^3.5.5", + "chownr": "^1.1.1", + "figgy-pudding": "^3.5.1", + "glob": "^7.1.4", + "graceful-fs": "^4.1.15", + "infer-owner": "^1.0.3", + "lru-cache": "^5.1.1", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.1", + "move-concurrently": "^1.0.1", + "promise-inflight": "^1.0.1", + "rimraf": "^2.6.3", + "ssri": "^6.0.1", + "unique-filename": "^1.1.1", + "y18n": "^4.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, "cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", @@ -2222,12 +2451,28 @@ "upath": "^1.1.1" } }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, "chrome-trace-event": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", @@ -2380,6 +2625,30 @@ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true + }, "contains-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", @@ -2395,6 +2664,20 @@ "safe-buffer": "~5.1.1" } }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "fs-write-stream-atomic": "^1.0.8", + "iferr": "^0.1.5", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.0" + } + }, "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", @@ -2444,6 +2727,51 @@ "safe-buffer": "^5.0.1" } }, + "create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", @@ -2457,6 +2785,31 @@ "which": "^1.2.9" } }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "cyclist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", + "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=", + "dev": true + }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -2568,6 +2921,22 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true + }, + "des.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", + "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, "detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", @@ -2580,6 +2949,25 @@ "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, "docdash": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/docdash/-/docdash-1.2.0.tgz", @@ -2595,12 +2983,53 @@ "esutils": "^2.0.2" } }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, "dotenv": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", "dev": true }, + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "dev": true, + "requires": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -2613,6 +3042,15 @@ "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", "dev": true }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, "enhanced-resolve": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.3.0.tgz", @@ -2679,12 +3117,6 @@ "string.prototype.trimstart": "^1.0.1" } }, - "es-module-lexer": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.4.1.tgz", - "integrity": "sha512-ooYciCUtfw6/d2w56UVeqHPcoCFAiJdz5XOkYpv/Txl1HMUozpXjz/2RIQgqwKdXNDPSF1W7mJCFse3G+HDyAA==", - "dev": true - }, "es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", @@ -3087,6 +3519,16 @@ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -3255,6 +3697,12 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "figgy-pudding": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", + "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", + "dev": true + }, "figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -3380,6 +3828,16 @@ "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", "dev": true }, + "flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + } + }, "follow-redirects": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz", @@ -3432,6 +3890,16 @@ "map-cache": "^0.2.2" } }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, "fs-extra": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", @@ -3449,6 +3917,18 @@ "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", "dev": true }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "iferr": "^0.1.5", + "imurmurhash": "^0.1.4", + "readable-stream": "1 || 2" + } + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3545,12 +4025,6 @@ } } }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, "global-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", @@ -3666,21 +4140,72 @@ } } }, - "hasha": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-3.0.0.tgz", - "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=", + "hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", "dev": true, "requires": { - "is-stream": "^1.0.1" - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "hasha": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hasha/-/hasha-3.0.0.tgz", + "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=", + "dev": true, + "requires": { + "is-stream": "^1.0.1" + } + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "dev": true, + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, "homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", @@ -3702,6 +4227,25 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "http-errors": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.0.tgz", + "integrity": "sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -3711,6 +4255,18 @@ "safer-buffer": ">= 2.1.2 < 3" } }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "dev": true + }, "ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", @@ -3743,6 +4299,12 @@ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, + "infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "dev": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -4059,6 +4621,12 @@ "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "dev": true + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -4182,34 +4750,6 @@ "html-escaper": "^2.0.0" } }, - "jest-worker": { - "version": "27.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.0.2.tgz", - "integrity": "sha512-EoBdilOTTyOgmHXtw/cPc+ZrCA0KJMrkXzkrPGNwLmnvvlN1nj7MPrxpT7m+otSv2e1TLaVffzDnE/LB14zJMg==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -4395,9 +4935,9 @@ } }, "loader-runner": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", - "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", + "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", "dev": true }, "loader-utils": { @@ -4551,12 +5091,33 @@ "integrity": "sha512-yfCEUXmKhBPLOzEC7c+tc4XZdIeTdGoRCZakFMkCxodr7wDXqoapIME4wjcpBPJLNyUnKJ3e8rb8wlAgnLnaDw==", "dev": true }, + "md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, "mdurl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", "dev": true }, + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + }, "merge-source-map": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz", @@ -4574,12 +5135,6 @@ } } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", @@ -4601,6 +5156,24 @@ "to-regex": "^3.0.2" } }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, "mime-db": { "version": "1.44.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", @@ -4620,6 +5193,18 @@ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", + "dev": true + }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -4635,6 +5220,24 @@ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, + "mississippi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", + "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", + "dev": true, + "requires": { + "concat-stream": "^1.5.0", + "duplexify": "^3.4.2", + "end-of-stream": "^1.1.0", + "flush-write-stream": "^1.0.0", + "from2": "^2.1.0", + "parallel-transform": "^1.1.0", + "pump": "^3.0.0", + "pumpify": "^1.3.3", + "stream-each": "^1.1.0", + "through2": "^2.0.0" + } + }, "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -4914,12 +5517,45 @@ "yargs": "^13.2.2" } }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "copy-concurrently": "^1.0.0", + "fs-write-stream-atomic": "^1.0.8", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.3" + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "multiparty": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/multiparty/-/multiparty-4.2.2.tgz", + "integrity": "sha512-NtZLjlvsjcoGrzojtwQwn/Tm90aWJ6XXtPppYF4WmOk/6ncdwMMKggFY2NlRRN9yiCEIVxpOfPWahVEG2HAG8Q==", + "dev": true, + "requires": { + "http-errors": "~1.8.0", + "safe-buffer": "5.2.1", + "uid-safe": "2.1.5" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, "mute-stream": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", @@ -5044,6 +5680,45 @@ "semver": "^5.7.0" } }, + "node-libs-browser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", + "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", + "dev": true, + "requires": { + "assert": "^1.1.1", + "browserify-zlib": "^0.2.0", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "os-browserify": "^0.3.0", + "path-browserify": "0.0.1", + "process": "^0.11.10", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.3.3", + "stream-browserify": "^2.0.1", + "stream-http": "^2.7.2", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.0", + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "^1.0.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } + } + }, "node-modules-regexp": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", @@ -5250,6 +5925,12 @@ "word-wrap": "~1.2.3" } }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", @@ -5298,6 +5979,23 @@ "release-zalgo": "^1.0.0" } }, + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true + }, + "parallel-transform": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", + "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", + "dev": true, + "requires": { + "cyclist": "^1.0.1", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" + } + }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -5307,6 +6005,19 @@ "callsites": "^3.0.0" } }, + "parse-asn1": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", + "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", + "dev": true, + "requires": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", @@ -5328,6 +6039,12 @@ "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, "path-dirname": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", @@ -5399,6 +6116,19 @@ "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", "dev": true }, + "pbkdf2": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "dev": true, + "requires": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", @@ -5441,6 +6171,12 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -5453,6 +6189,12 @@ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", + "dev": true + }, "prop-types": { "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", @@ -5482,6 +6224,61 @@ "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", "dev": true }, + "public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -5493,6 +6290,24 @@ "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz", "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==" }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -5502,6 +6317,16 @@ "safe-buffer": "^5.1.0" } }, + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, "react": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react/-/react-16.13.1.tgz", @@ -5852,12 +6677,31 @@ "glob": "^7.1.3" } }, + "ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, "run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", "dev": true }, + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", + "dev": true, + "requires": { + "aproba": "^1.1.1" + } + }, "rxjs": { "version": "6.6.2", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", @@ -5916,9 +6760,9 @@ "dev": true }, "serialize-javascript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", - "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", "dev": true, "requires": { "randombytes": "^2.1.0" @@ -5953,6 +6797,28 @@ } } }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "dev": true + }, + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -6240,6 +7106,15 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "ssri": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz", + "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", + "dev": true, + "requires": { + "figgy-pudding": "^3.5.1" + } + }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", @@ -6261,6 +7136,51 @@ } } }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "dev": true + }, + "stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "stream-each": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", + "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "stream-shift": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", + "dev": true + }, "string-replace-loader": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/string-replace-loader/-/string-replace-loader-2.3.0.tgz", @@ -6438,14 +7358,14 @@ } }, "terser": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.7.0.tgz", - "integrity": "sha512-HP5/9hp2UaZt5fYkuhNBR8YyRcT8juw8+uFbAme53iN9hblvKnLUTKkmwJG6ocWpIKf8UK4DoeWG4ty0J6S6/g==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", + "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", "dev": true, "requires": { "commander": "^2.20.0", - "source-map": "~0.7.2", - "source-map-support": "~0.5.19" + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" }, "dependencies": { "commander": { @@ -6455,63 +7375,39 @@ "dev": true }, "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } }, "terser-webpack-plugin": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.1.3.tgz", - "integrity": "sha512-cxGbMqr6+A2hrIB5ehFIF+F/iST5ZOxvOmy9zih9ySbP1C2oEWQSOUS+2SNBTjzx5xLKO4xnod9eywdfq1Nb9A==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz", + "integrity": "sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==", "dev": true, "requires": { - "jest-worker": "^27.0.2", - "p-limit": "^3.1.0", - "schema-utils": "^3.0.0", - "serialize-javascript": "^5.0.1", + "cacache": "^12.0.2", + "find-cache-dir": "^2.1.0", + "is-wsl": "^1.1.0", + "schema-utils": "^1.0.0", + "serialize-javascript": "^4.0.0", "source-map": "^0.6.1", - "terser": "^5.7.0" + "terser": "^4.1.2", + "webpack-sources": "^1.4.0", + "worker-farm": "^1.7.0" }, "dependencies": { - "@types/json-schema": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", - "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", - "dev": true - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, "schema-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", - "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", "dev": true, "requires": { - "@types/json-schema": "^7.0.6", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" } }, "source-map": { @@ -6606,6 +7502,25 @@ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "timers-browserify": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", + "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", + "dev": true, + "requires": { + "setimmediate": "^1.0.4" + } + }, "tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -6615,6 +7530,12 @@ "os-tmpdir": "~1.0.2" } }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -6663,6 +7584,12 @@ "repeat-string": "^1.6.1" } }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "dev": true + }, "tsconfig-paths": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", @@ -6692,6 +7619,12 @@ "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", "dev": true }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, "type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -6713,12 +7646,27 @@ "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, "uc.micro": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", "dev": true }, + "uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "dev": true, + "requires": { + "random-bytes": "~1.0.0" + } + }, "underscore": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz", @@ -6765,6 +7713,24 @@ "set-value": "^2.0.1" } }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", @@ -6833,12 +7799,47 @@ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "dev": true }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, + "util": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", + "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, + "requires": { + "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + } + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -6873,124 +7874,225 @@ "integrity": "sha512-X/p3UZerAIsbBfN/IwahhYaBbY68EN/UQBWHtsbXGT5bfrH/p4NQzUCG1kF/rtKaNpnJ7jAu6NGTdSNtyNIXMw==", "dev": true }, + "vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, "watchpack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", - "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", + "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==", "dev": true, "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } - }, - "webpack": { - "version": "5.39.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.39.1.tgz", - "integrity": "sha512-ulOvoNCh2PvTUa+zbpRuEb1VPeQnhxpnHleMPVVCq3QqnaFogjsLyps+o42OviQFoaGtTQYrUqDXu1QNkvUPzw==", - "dev": true, - "requires": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.47", - "@webassemblyjs/ast": "1.11.0", - "@webassemblyjs/wasm-edit": "1.11.0", - "@webassemblyjs/wasm-parser": "1.11.0", - "acorn": "^8.2.1", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.8.0", - "es-module-lexer": "^0.4.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.0.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.1", - "watchpack": "^2.2.0", - "webpack-sources": "^2.3.0" + "chokidar": "^3.4.1", + "graceful-fs": "^4.1.2", + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.0.1" }, "dependencies": { - "@types/json-schema": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", - "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", - "dev": true + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "optional": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } }, - "acorn": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.0.tgz", - "integrity": "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", - "dev": true + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "optional": true }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, + "optional": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fill-range": "^7.0.1" } }, - "enhanced-resolve": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.2.tgz", - "integrity": "sha512-F27oB3WuHDzvR2DOGNTaYy0D5o0cnrv8TeI482VM4kYgQd/FT9lUQwuNsJ0oOHtBUq7eiW5ytqzp7nBFknL+GA==", + "chokidar": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", + "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, + "optional": true, "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "to-regex-range": "^5.0.1" } }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, + "optional": true + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "optional": true, "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "is-glob": "^4.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "optional": true + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "optional": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "optional": true, + "requires": { + "is-number": "^7.0.0" } + } + } + }, + "watchpack-chokidar2": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz", + "integrity": "sha512-nCFfBIPKr5Sh61s4LPpy1Wtfi0HE8isJ3d2Yb5/Ppw2P2B/3eVSEBjKfN0fmHJSK14+31KwMKmcrzs2GM4P0Ww==", + "dev": true, + "optional": true, + "requires": { + "chokidar": "^2.1.8" + } + }, + "webpack": { + "version": "4.46.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", + "integrity": "sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.9.0", + "@webassemblyjs/helper-module-context": "1.9.0", + "@webassemblyjs/wasm-edit": "1.9.0", + "@webassemblyjs/wasm-parser": "1.9.0", + "acorn": "^6.4.1", + "ajv": "^6.10.2", + "ajv-keywords": "^3.4.1", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^4.5.0", + "eslint-scope": "^4.0.3", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^2.4.0", + "loader-utils": "^1.2.3", + "memory-fs": "^0.4.1", + "micromatch": "^3.1.10", + "mkdirp": "^0.5.3", + "neo-async": "^2.6.1", + "node-libs-browser": "^2.2.1", + "schema-utils": "^1.0.0", + "tapable": "^1.1.3", + "terser-webpack-plugin": "^1.4.3", + "watchpack": "^1.7.4", + "webpack-sources": "^1.4.1" + }, + "dependencies": { + "acorn": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", + "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "dev": true }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "enhanced-resolve": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz", + "integrity": "sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==", "dev": true, "requires": { - "estraverse": "^5.2.0" + "graceful-fs": "^4.1.2", + "memory-fs": "^0.5.0", + "tapable": "^1.0.0" }, "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true + "memory-fs": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", + "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } } } }, - "schema-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.0.0.tgz", - "integrity": "sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==", + "eslint-scope": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", + "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", "dev": true, "requires": { - "@types/json-schema": "^7.0.6", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, - "tapable": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.0.tgz", - "integrity": "sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw==", - "dev": true + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } } } }, @@ -7034,13 +8136,13 @@ } }, "webpack-sources": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.0.tgz", - "integrity": "sha512-WyOdtwSvOML1kbgtXbTDnEW0jkJ7hZr/bDByIwszhWd/4XX1A3XMkrbFMsuH4+/MfLlZCUzlAdg4r7jaGKEIgQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", "dev": true, "requires": { - "source-list-map": "^2.0.1", - "source-map": "^0.6.1" + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" }, "dependencies": { "source-map": { @@ -7114,6 +8216,15 @@ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, + "worker-farm": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", + "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", + "dev": true, + "requires": { + "errno": "~0.1.7" + } + }, "wrap-ansi": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", @@ -7197,6 +8308,12 @@ "integrity": "sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ==", "dev": true }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, "y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", @@ -7287,12 +8404,6 @@ "lodash": "^4.17.15", "yargs": "^13.3.0" } - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true } } } diff --git a/package.json b/package.json index 87bfa0a3..2e2bdff9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/management", - "version": "1.2.3", + "version": "1.2.4", "description": "The Content Management API is used to manage the content of your Contentstack account", "main": "dist/node/contentstack-management.js", "browser": "dist/web/contentstack-management.js", @@ -82,12 +82,13 @@ "jsdoc": "^3.6.7", "mocha": "^7.2.0", "mochawesome": "^4.1.0", + "multiparty": "^4.2.2", "nock": "^10.0.6", "nyc": "^14.1.1", "rimraf": "^2.7.1", "sinon": "^7.3.2", "string-replace-loader": "^2.3.0", - "webpack": "^5.39.1", + "webpack": "^4.44.1", "webpack-cli": "^3.3.12", "webpack-merge": "4.1.0" }, From 54bfd8b3b1ecd0e2b87a8966d72ba01925b9c641 Mon Sep 17 00:00:00 2001 From: Uttam Krishna Ukkoji Date: Fri, 16 Jul 2021 11:54:47 +0530 Subject: [PATCH 3/3] :recycle: Test case added --- lib/core/concurrency-queue.js | 1 - lib/stack/asset/index.js | 2 +- lib/stack/contentType/entry/index.js | 2 +- lib/stack/contentType/index.js | 2 +- lib/stack/extension/index.js | 2 +- lib/stack/globalField/index.js | 2 +- lib/stack/webhook/index.js | 2 +- test/unit/asset-test.js | 15 +++++++-- test/unit/contentType-test.js | 10 ++++-- test/unit/entry-test.js | 41 +++++++++++++----------- test/unit/extension-test.js | 48 +++++++++++++++++++--------- test/unit/globalField-test.js | 10 ++++-- test/unit/webhook-test.js | 10 ++++-- 13 files changed, 99 insertions(+), 48 deletions(-) diff --git a/lib/core/concurrency-queue.js b/lib/core/concurrency-queue.js index ff6a57a2..4fb0924e 100644 --- a/lib/core/concurrency-queue.js +++ b/lib/core/concurrency-queue.js @@ -75,7 +75,6 @@ export function ConcurrencyQueue ({ axios, config }) { request.formdata = request.data request.data = transformFormData(request) } - console.log(request.data) request.retryCount = request.retryCount || 0 if (request.headers.authorization && request.headers.authorization !== undefined) { delete request.headers.authtoken diff --git a/lib/stack/asset/index.js b/lib/stack/asset/index.js index 5b45fe39..92d770d1 100644 --- a/lib/stack/asset/index.js +++ b/lib/stack/asset/index.js @@ -233,7 +233,7 @@ export function AssetCollection (http, data) { return assetCollection } -function createFormData (data) { +export function createFormData (data) { return () => { const formData = new FormData() if (typeof data['parent_uid'] === 'string') { diff --git a/lib/stack/contentType/entry/index.js b/lib/stack/contentType/entry/index.js index 41a4773b..6bda628a 100644 --- a/lib/stack/contentType/entry/index.js +++ b/lib/stack/contentType/entry/index.js @@ -276,7 +276,7 @@ export function EntryCollection (http, data) { return entryCollection } -function createFormData (entry) { +export function createFormData (entry) { return () => { const formData = new FormData() const uploadStream = createReadStream(entry) diff --git a/lib/stack/contentType/index.js b/lib/stack/contentType/index.js index 43d56201..4207a61c 100644 --- a/lib/stack/contentType/index.js +++ b/lib/stack/contentType/index.js @@ -198,7 +198,7 @@ export function ContentTypeCollection (http, data) { return contentTypeCollection } -function createFormData (data) { +export function createFormData (data) { return () => { const formData = new FormData() const uploadStream = createReadStream(data.content_type) diff --git a/lib/stack/extension/index.js b/lib/stack/extension/index.js index 095d5728..c6ada9d2 100644 --- a/lib/stack/extension/index.js +++ b/lib/stack/extension/index.js @@ -155,7 +155,7 @@ export function ExtensionCollection (http, data) { return extensionCollection } -function createExtensionFormData (data) { +export function createExtensionFormData (data) { return () => { const formData = new FormData() diff --git a/lib/stack/globalField/index.js b/lib/stack/globalField/index.js index fc06859a..a993d95f 100644 --- a/lib/stack/globalField/index.js +++ b/lib/stack/globalField/index.js @@ -148,7 +148,7 @@ export function GlobalFieldCollection (http, data) { return globalFieldCollection } -function createFormData (data) { +export function createFormData (data) { return () => { const formData = new FormData() const uploadStream = createReadStream(data.global_field) diff --git a/lib/stack/webhook/index.js b/lib/stack/webhook/index.js index 44c5a92f..3e4d7e33 100644 --- a/lib/stack/webhook/index.js +++ b/lib/stack/webhook/index.js @@ -231,7 +231,7 @@ export function WebhookCollection (http, data) { return webhookCollection } -function createFormData (data) { +export function createFormData (data) { return () => { const formData = new FormData() const uploadStream = createReadStream(data.webhook) diff --git a/test/unit/asset-test.js b/test/unit/asset-test.js index 74f21d27..184db299 100644 --- a/test/unit/asset-test.js +++ b/test/unit/asset-test.js @@ -3,7 +3,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { Asset, AssetCollection } from '../../lib/stack/asset' +import { Asset, AssetCollection, createFormData } from '../../lib/stack/asset' import { systemUidMock, stackHeadersMock, assetMock, checkSystemFields, noticeMock } from './mock/objects' describe('Contentstack Asset test', () => { @@ -127,8 +127,14 @@ describe('Contentstack Asset test', () => { ...assetMock } }) + const assetUpload = { upload: path.join(__dirname, '../api/mock/customUpload.html'), tags: 'tags' } + const form = createFormData(assetUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeAsset() - .create({ upload: path.join(__dirname, '../api/mock/customUpload.html'), tags: 'tags' }) + .create(assetUpload) .then((asset) => { checkAsset(asset) done() @@ -150,6 +156,11 @@ describe('Contentstack Asset test', () => { tags: ['Custom'], parent_uid: 'UID' } + const form = createFormData(assetUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeAsset() .create(assetUpload) .then((asset) => { diff --git a/test/unit/contentType-test.js b/test/unit/contentType-test.js index 6aba2594..6f7f08ce 100644 --- a/test/unit/contentType-test.js +++ b/test/unit/contentType-test.js @@ -2,7 +2,7 @@ import path from 'path' import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' -import { ContentType, ContentTypeCollection } from '../../lib/stack/contentType' +import { ContentType, ContentTypeCollection, createFormData } from '../../lib/stack/contentType' import { systemUidMock, checkSystemFields, contentTypeMock, stackHeadersMock, noticeMock } from './mock/objects' import MockAdapter from 'axios-mock-adapter' @@ -220,8 +220,14 @@ describe('Contentstack ContentType test', () => { ...contentTypeMock } }) + const contentTypeUpload = { content_type: path.join(__dirname, '../api/mock/contentType.json') } + const form = createFormData(contentTypeUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeContentType() - .import({ content_type: path.join(__dirname, '../api/mock/contentType.json') }) + .import(contentTypeUpload) .then((contentType) => { checkContentType(contentType) done() diff --git a/test/unit/entry-test.js b/test/unit/entry-test.js index e6493121..67e01e0f 100644 --- a/test/unit/entry-test.js +++ b/test/unit/entry-test.js @@ -3,7 +3,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { Entry, EntryCollection } from '../../lib/stack/contentType/entry' +import { Entry, EntryCollection, createFormData } from '../../lib/stack/contentType/entry' import { systemUidMock, stackHeadersMock, entryMock, noticeMock, checkSystemFields } from './mock/objects' describe('Contentstack Entry test', () => { @@ -221,8 +221,14 @@ describe('Contentstack Entry test', () => { ...entryMock } }) + const entryUpload = { entry: path.join(__dirname, '../api/mock/entry.json') } + const form = createFormData(entryUpload.entry)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeEntry() - .import({ entry: path.join(__dirname, '../api/mock/entry.json') }) + .import(entryUpload) .then((webhook) => { checkEntry(webhook) done() @@ -262,7 +268,6 @@ describe('Contentstack Entry test', () => { .catch(done) }) - it('Entry publish request test', done => { var mock = new MockAdapter(Axios) mock.onPost('/content_types/content_type_uid/entries/UID/workflow').reply(200, { @@ -270,14 +275,14 @@ describe('Contentstack Entry test', () => { }) const publishing_rule = { - "uid": "blt9b9253297f117e84", - "action": "publish", //(‘publish’, ‘unpublish’, or ’both’) - "status": 1, //(this could be ‘0’ for Approval Requested, ‘1’ for ‘Approval Accepted’, and ‘-1’ for ‘Approval Rejected’), - "notify": false, - "comment": "Please review this." - } + uid: 'blt9b9253297f117e84', + action: 'publish', // (‘publish’, ‘unpublish’, or ’both’) + status: 1, // (this could be ‘0’ for Approval Requested, ‘1’ for ‘Approval Accepted’, and ‘-1’ for ‘Approval Rejected’), + notify: false, + comment: 'Please review this.' + } makeEntry({ entry: { ...systemUidMock } }) - .publishRequest({publishing_rule, locale: 'en-us' }) + .publishRequest({ publishing_rule, locale: 'en-us' }) .then((response) => { expect(response.notice).to.be.equal(noticeMock.notice) done() @@ -292,14 +297,14 @@ describe('Contentstack Entry test', () => { }) const publishing_rule = { - "uid": "blt9b9253297f117e84", - "action": "publish", //(‘publish’, ‘unpublish’, or ’both’) - "status": 1, //(this could be ‘0’ for Approval Requested, ‘1’ for ‘Approval Accepted’, and ‘-1’ for ‘Approval Rejected’), - "notify": false, - "comment": "Please review this." - } - makeEntry({ entry: { ...systemUidMock }, stackHeaders: stackHeadersMock }) - .publishRequest({publishing_rule, locale: 'en-us' }) + uid: 'blt9b9253297f117e84', + action: 'publish', // (‘publish’, ‘unpublish’, or ’both’) + status: 1, // (this could be ‘0’ for Approval Requested, ‘1’ for ‘Approval Accepted’, and ‘-1’ for ‘Approval Rejected’), + notify: false, + comment: 'Please review this.' + } + makeEntry({ entry: { ...systemUidMock }, stackHeaders: stackHeadersMock }) + .publishRequest({ publishing_rule, locale: 'en-us' }) .then((response) => { expect(response.notice).to.be.equal(noticeMock.notice) done() diff --git a/test/unit/extension-test.js b/test/unit/extension-test.js index b95b2a24..4a133747 100644 --- a/test/unit/extension-test.js +++ b/test/unit/extension-test.js @@ -1,7 +1,7 @@ import path from 'path' import Axios from 'axios' import { describe, it } from 'mocha' -import { Extension, ExtensionCollection } from '../../lib/stack/extension/index' +import { Extension, ExtensionCollection, createExtensionFormData } from '../../lib/stack/extension/index' import { expect } from 'chai' import { systemUidMock, stackHeadersMock, checkSystemFields, extensionMock, noticeMock } from './mock/objects' import MockAdapter from 'axios-mock-adapter' @@ -170,8 +170,15 @@ describe('Contentstack Extension test', () => { } }) - makeExtension() - .upload({ upload: path.join(__dirname, '../api/mock/customUpload.html') }) + const extensionUpload = { upload: path.join(__dirname, '../api/mock/customUpload.html') } + const form = createExtensionFormData(extensionUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) + + makeExtension(extensionUpload) + .upload() .then((extension) => { checkExtension(extension) done() @@ -188,8 +195,14 @@ describe('Contentstack Extension test', () => { } }) + const extensionUpload = { upload: path.join(__dirname, '../api/mock/customUpload.html'), tags: 'tag1, tag2' } + const form = createExtensionFormData(extensionUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeExtension() - .upload({ upload: path.join(__dirname, '../api/mock/customUpload.html'), tags: 'tag1, tag2' }) + .upload(extensionUpload) .then((extension) => { checkExtension(extension) done() @@ -205,19 +218,24 @@ describe('Contentstack Extension test', () => { ...extensionMock } }) + const extensionUpload = { + title: 'Custom dashboard Upload', + data_type: extensionMock.data_type, + type: extensionMock.type, + tags: extensionMock.tags, + enable: true, + default_width: extensionMock.default_width, + upload: path.join(__dirname, '../api/mock/customUpload.html'), + scope: {}, + multiple: true + } + const form = createExtensionFormData(extensionUpload)() + var boundary = form.getBoundary() + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeExtension() - .upload({ - title: 'Custom dashboard Upload', - data_type: extensionMock.data_type, - type: extensionMock.type, - tags: extensionMock.tags, - enable: true, - default_width: extensionMock.default_width, - upload: path.join(__dirname, '../api/mock/customUpload.html'), - scope: {}, - multiple: true - }) + .upload(extensionUpload) .then((extension) => { checkExtension(extension) done() diff --git a/test/unit/globalField-test.js b/test/unit/globalField-test.js index 05357df5..6d694c33 100644 --- a/test/unit/globalField-test.js +++ b/test/unit/globalField-test.js @@ -2,7 +2,7 @@ import path from 'path' import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' -import { GlobalField, GlobalFieldCollection } from '../../lib/stack/globalField' +import { GlobalField, GlobalFieldCollection, createFormData } from '../../lib/stack/globalField' import { systemUidMock, checkSystemFields, globalFieldMock, stackHeadersMock, noticeMock } from './mock/objects' import MockAdapter from 'axios-mock-adapter' @@ -171,8 +171,14 @@ describe('Contentstack GlobalField test', () => { ...globalFieldMock } }) + const gfUpload = { global_field: path.join(__dirname, '../api/mock/globalfield.json') } + const form = createFormData(gfUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeGlobalField() - .import({ global_field: path.join(__dirname, '../api/mock/globalfield.json') }) + .import() .then((webhook) => { checkGlobalField(webhook) done() diff --git a/test/unit/webhook-test.js b/test/unit/webhook-test.js index 651be295..6b2bff63 100644 --- a/test/unit/webhook-test.js +++ b/test/unit/webhook-test.js @@ -3,7 +3,7 @@ import Axios from 'axios' import { expect } from 'chai' import { describe, it } from 'mocha' import MockAdapter from 'axios-mock-adapter' -import { Webhook, WebhookCollection } from '../../lib/stack/webhook' +import { Webhook, WebhookCollection, createFormData } from '../../lib/stack/webhook' import { systemUidMock, stackHeadersMock, webhookMock, checkSystemFields, noticeMock } from './mock/objects' describe('Contentstack Webhook test', () => { @@ -303,8 +303,14 @@ describe('Contentstack Webhook test', () => { ...webhookMock } }) + const webhookUpload = { webhook: path.join(__dirname, '../api/mock/customUpload.html') } + const form = createFormData(webhookUpload)() + var boundary = form.getBoundary() + + expect(boundary).to.be.equal(form.getBoundary()) + expect(boundary.length).to.be.equal(50) makeWebhook() - .import({ webhook: path.join(__dirname, '../api/mock/customUpload.html') }) + .import(webhookUpload) .then((webhook) => { checkWebhook(webhook) done()