@contentful/app-sdk 5.0.0-alpha.1 → 5.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).contentfulExtension={})}(this,(function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}"function"==typeof SuppressedError&&SuppressedError;var i=function(){function t(){this._id=0,this._listeners={}}return t.prototype.dispatch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r in this._listeners)(t=this._listeners)[r].apply(t,e)},t.prototype.attach=function(t){var e=this;if("function"!=typeof t)throw new Error("listener function expected");var n=this._id++;return this._listeners[n]=t,function(){return delete e._listeners[n]}},t}(),a=function(t){function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.call(this)||this;if(!e.length)throw new Error("Initial value to be memoized expected");return r._memoizedArgs=e,r}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n.prototype.dispatch=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._memoizedArgs=e,t.prototype.dispatch.apply(this,e)},n.prototype.attach=function(e){var n=t.prototype.attach.call(this,e);return e.apply(void 0,this._memoizedArgs),n},n.prototype.getMemoizedArgs=function(){return this._memoizedArgs},n}(i);var c,s=function(){function t(t,e){var n=this;this._messageHandlers={},this._responseHandlers={},this._send=function(t,e){return function(n,r){var o=u.getMessageId();try{e.postMessage({source:t,id:o,method:n,params:r},"*")}catch(t){throw t instanceof DOMException&&"DataCloneError"===t.name&&"openDialog"===n&&console.error("Error: openCurrent[App] parameters could not be parsed. You likely tried to pass functions or DOM elements as a parameter. Tip: Use the App SDK directly within the dialog location.\n\nLearn more about the dialog location: https://ctfl.io/app-sdk-dialog"),t}return o}}(t,e.parent),e.addEventListener("message",(function(t){n._handleMessage(t.data)}))}return t.prototype.call=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._send(t,n);return new Promise((function(t,n){e._responseHandlers[o]={resolve:t,reject:n}}))},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this._send(t,e)},t.prototype.addHandler=function(t,e){return t in this._messageHandlers||(this._messageHandlers[t]=new i),this._messageHandlers[t].attach(e)},t.prototype._handleMessage=function(t){if(t.method){var e=t.method,n=t.params,r=this._messageHandlers[e];r&&r.dispatch.apply(r,n)}else{var o=t.id,i=this._responseHandlers[o];if(!i)return;"result"in t?i.resolve(t.result):"error"in t&&i.reject(t.error),delete this._responseHandlers[o]}},t}(),u=(c=0,{getMessageId:function(){return c++}});var l=function(){function t(t,e){var n=this;this.id=e.id,this.name=e.name,this.locale=e.locale,this.type=e.type,this.required=e.required,this.validations=e.validations,"Array"===e.type&&(this.items=e.items),"Link"===e.type&&(this.linkType=e.linkType),this._value=e.value,this._valueSignal=new a(this._value),this._isDisabledSignal=new a(e.isDisabled),this._schemaErrorsChangedSignal=new a(e.schemaErrors),this._channel=t,t.addHandler("valueChanged",(function(t,e,r){t!==n.id||e&&e!==n.locale||(n._value=r,n._valueSignal.dispatch(r))})),t.addHandler("isDisabledChangedForFieldLocale",(function(t,e,r){t===n.id&&e===n.locale&&n._isDisabledSignal.dispatch(r)})),t.addHandler("schemaErrorsChangedForFieldLocale",(function(t,e,r){t===n.id&&e===n.locale&&n._schemaErrorsChangedSignal.dispatch(r)}))}return t.prototype.getValue=function(){return this._value},t.prototype.setValue=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this._value=t,[4,this._channel.call("setValue",this.id,this.locale,t)];case 1:return[2,e.sent()]}}))}))},t.prototype.removeValue=function(){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this._value=void 0,[4,this._channel.call("removeValue",this.id,this.locale)];case 1:return t.sent(),[2]}}))}))},t.prototype.setInvalid=function(t){return this._channel.call("setInvalid",t,this.locale)},t.prototype.onValueChanged=function(t){return this._valueSignal.attach(t)},t.prototype.getIsDisabled=function(){return this._isDisabledSignal.getMemoizedArgs()[0]},t.prototype.onIsDisabledChanged=function(t){return this._isDisabledSignal.attach(t)},t.prototype.getSchemaErrors=function(){return this._schemaErrorsChangedSignal.getMemoizedArgs()[0]},t.prototype.onSchemaErrorsChanged=function(t){return this._schemaErrorsChangedSignal.attach(t)},t}(),p=function(){function t(t,e,r){this.id=e.id,this.name=e.name,this.locales=e.locales,this.type=e.type,this.required=e.required,this.validations=e.validations,"Array"===e.type&&(this.items=e.items),"Link"===e.type&&(this.linkType=e.linkType),this._defaultLocale=r,this._fieldLocales=e.locales.reduce((function(r,o){var i,a=new l(t,{id:e.id,name:e.name,type:e.type,required:e.required,validations:e.validations,locale:o,items:"Array"===e.type?e.items:void 0,linkType:"Link"===e.type?e.linkType:void 0,value:e.values[o],isDisabled:e.isDisabled[o],schemaErrors:e.schemaErrors[o]});return n(n({},r),((i={})[o]=a,i))}),{}),this.assertHasLocale(r)}return t.prototype.getValue=function(t){return this._getFieldLocale(t).getValue()},t.prototype.setValue=function(t,e){return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this._getFieldLocale(e).setValue(t)];case 1:return[2,n.sent()]}}))}))},t.prototype.removeValue=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.setValue(void 0,t)];case 1:return e.sent(),[2]}}))}))},t.prototype.onValueChanged=function(t,e){var n=e||t;return e||(t=""),this._getFieldLocale(t).onValueChanged(n)},t.prototype.onIsDisabledChanged=function(t,e){var n=e||t;return e||(t=""),this._getFieldLocale(t).onIsDisabledChanged(n)},t.prototype._getFieldLocale=function(t){return t=t||this._defaultLocale,this.assertHasLocale(t),this._fieldLocales[t]},t.prototype.getForLocale=function(t){if(!t)throw new Error("getForLocale must be passed a locale");return this._getFieldLocale(t)},t.prototype.assertHasLocale=function(t){if(!this._fieldLocales[t])throw new Error('Unknown locale "'.concat(t,'" for field "').concat(this.id,'"'))},t}();function f(t,e){var n,r=t.document,o=t.MutationObserver,i=t.ResizeObserver,a=!1,c=!1,s=new Set,u=new o((function(t){!function(t){t.forEach((function(t){switch(t.type){case"attributes":if(t.target.nodeType===Node.ELEMENT_NODE){var e=t.target;f(t.type,e)?s.add(e):s.delete(e)}break;case"childList":t.addedNodes.forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e;f(t.type,n)&&s.add(n)}})),t.removedNodes.forEach((function(t){var e=t;s.delete(e)}))}}))}(t),a&&p.updateHeight()})),l=new i((function(){p.updateHeight()}));u.observe(r.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0});var p={startAutoResizer:function(t){var e=(void 0===t?{}:t).absoluteElements;if(c=Boolean(e===void 0?false:e),p.updateHeight(),a)return;a=!0,l.observe(r.body)},stopAutoResizer:function(){if(!a)return;a=!1,l.disconnect()},updateHeight:function(t){void 0===t&&(t=null);if(null===t){var o=Math.ceil(r.documentElement.getBoundingClientRect().height);if(c&&s.size){var i=o;s.forEach((function(t){i=Math.max(t.getBoundingClientRect().bottom,i)})),t=i}else t=o}t!==n&&(e.send("setHeight",t),n=t)}};return p;function f(t,e){var n=getComputedStyle(e);return"absolute"===n.position&&("attributes"!==t||"none"!==n.display)}}var d=["getTask","getTasks","createTask","updateTask","deleteTask"];function y(t,e,r,o){var i=e.sys,c=new a(i),s=e.metadata,u=new a(s);t.addHandler("sysChanged",(function(t){i=t,c.dispatch(i)})),t.addHandler("metadataChanged",(function(t){s=t,u.dispatch(s)}));var l={};return d.forEach((function(e){l[e]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.call("callEntryMethod",e,n)}})),n(n(n({getSys:function(){return i},publish:function(e){return t.call("callEntryMethod","publish",[e])},unpublish:function(){return t.call("callEntryMethod","unpublish")},save:function(){return t.call("callEntryMethod","save")},onSysChanged:function(t){return c.attach(t)},fields:r.reduce((function(t,e){return t[e.id]=o(e),t}),{})},s?{metadata:s}:{}),{getMetadata:function(){return s},onMetadataChanged:function(t){return u.attach(t)}}),l)}var h=function(t){return"object"!=typeof(e=t)||null===e||Array.isArray(e)?{}:t;var e};function m(t,e){return{openAlert:r.bind(null,"alert"),openConfirm:r.bind(null,"confirm"),openPrompt:r.bind(null,"prompt"),open:function(r){if(r=h(r),e.app){var o=n(n({},r),{id:e.app});return t.call("openDialog","app",o)}throw new Error("Not in the app context.")},selectSingleEntry:o.bind(null,"Entry",!1),selectSingleAsset:o.bind(null,"Asset",!1),selectMultipleEntries:o.bind(null,"Entry",!0),selectMultipleAssets:o.bind(null,"Asset",!0)};function r(e,n){return t.call("openDialog",e,h(n))}function o(e,n,r){return(r=h(r)).entityType=e,r.multiple=n,t.call("openDialog","entitySelector",r)}}function v(t,e,n){var r=new a(n.localeSettings),o=new a(n.showHiddenFields);return t.addHandler("localeSettingsChanged",(function(t){r.dispatch(t)})),t.addHandler("showHiddenFieldsChanged",(function(t){o.dispatch(t)})),{editorInterface:e,getLocaleSettings:function(){return r.getMemoizedArgs()[0]},onLocaleSettingsChanged:function(t){return r.attach(t)},onShowDisabledFieldsChanged:function(t){return o.attach(t)},getShowHiddenFields:function(){return o.getMemoizedArgs()[0]},onShowHiddenFieldsChanged:function(t){return o.attach(t)}}}function b(t,e){var r=new i;return t.addHandler("navigateSlideIn",(function(t){r.dispatch(t)})),{openEntry:function(e,r){return t.call("navigateToContentEntity",n(n({},r),{entityType:"Entry",id:e}))},openNewEntry:function(e,r){return t.call("navigateToContentEntity",n(n({},r),{entityType:"Entry",id:null,contentTypeId:e}))},openBulkEditor:function(e,r){return t.call("navigateToBulkEditor",n({entryId:e},r))},openAsset:function(e,r){return t.call("navigateToContentEntity",n(n({},r),{entityType:"Asset",id:e}))},openNewAsset:function(e){return t.call("navigateToContentEntity",n(n({},e),{entityType:"Asset",id:null}))},openPage:function(r){return t.call("navigateToPage",n({type:"app",id:e.app},r))},openAppConfig:function(){return t.call("navigateToAppConfig")},openEntriesList:function(){return t.call("navigateToSpaceEnvRoute",{route:"entries"})},openAssetsList:function(){return t.call("navigateToSpaceEnvRoute",{route:"assets"})},onSlideInNavigation:function(t){return r.attach(t)}}}var g="preInstall",w="postInstall",O=function(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)},j=function(t){return"function"==typeof t},S=function(t){return console.error(t),Promise.resolve(!1)},E=function(t,e,n){if(!j(t))return Promise.resolve(e);var r;try{r=void 0===n?t():t(n)}catch(t){return S(t)}var o,i=r;return O(o=i)&&j(o.then)||(i=Promise.resolve(i)),i.then((function(t){return t instanceof Error?Promise.reject(t):!1!==t&&(O(t)?t:e)}),S).catch(S)};function P(t){var e,n=((e={}).preInstall=null,e.postInstall=null,e),r=function(t,e){if(!j(e))throw new Error("Handler must be a function.");n[t]=e};return t.addHandler("appHook",(function(e){var r=e.stage,o=e.installationRequestId,i=e.err;return r===g?E(n[r],{}).then((function(e){return t.send("appHookResult",{stage:r,installationRequestId:o,result:e})})):r===w?E(n[r],void 0,i||null).then((function(){return t.send("appHookResult",{stage:r,installationRequestId:o})})):Promise.resolve()})),{setReady:function(){return t.call("callAppMethod","setReady")},isInstalled:function(){return t.call("callAppMethod","isInstalled")},getParameters:function(){return t.call("callAppMethod","getParameters")},getCurrentState:function(){return t.call("callAppMethod","getCurrentState")},onConfigure:function(t){r(g,t)},onConfigurationCompleted:function(t){r(w,t)}}}var I={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config",LOCATION_HOME:"home"},T=function(t){return function(e){return t.call("CMAAdapterCall",e)}};function x(t){return{makeRequest:T(t)}}var A={exports:{}};!function(t,e){var n;window,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"../node_modules/axios/index.js":function(t,e,n){t.exports=n("../node_modules/axios/lib/axios.js")},"../node_modules/axios/lib/adapters/xhr.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/core/settle.js"),i=n("../node_modules/axios/lib/helpers/cookies.js"),a=n("../node_modules/axios/lib/helpers/buildURL.js"),c=n("../node_modules/axios/lib/core/buildFullPath.js"),s=n("../node_modules/axios/lib/helpers/parseHeaders.js"),u=n("../node_modules/axios/lib/helpers/isURLSameOrigin.js"),l=n("../node_modules/axios/lib/defaults/transitional.js"),p=n("../node_modules/axios/lib/core/AxiosError.js"),f=n("../node_modules/axios/lib/cancel/CanceledError.js"),d=n("../node_modules/axios/lib/helpers/parseProtocol.js");t.exports=function(t){return new Promise((function(e,n){var y,h=t.data,m=t.headers,v=t.responseType;function b(){t.cancelToken&&t.cancelToken.unsubscribe(y),t.signal&&t.signal.removeEventListener("abort",y)}r.isFormData(h)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+O)}var j=c(t.baseURL,t.url);function S(){if(g){var r="getAllResponseHeaders"in g?s(g.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g};o((function(t){e(t),b()}),(function(t){n(t),b()}),i),g=null}}if(g.open(t.method.toUpperCase(),a(j,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(S)},g.onabort=function(){g&&(n(new p("Request aborted",p.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,t,g,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new p(e,r.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,t,g)),g=null},r.isStandardBrowserEnv()){var E=(t.withCredentials||u(j))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(m,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete m[e]:g.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),v&&"json"!==v&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(y=function(t){g&&(n(!t||t&&t.type?new f:t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(y),t.signal&&(t.signal.aborted?y():t.signal.addEventListener("abort",y))),h||(h=null);var P=d(j);P&&-1===["http","https","file"].indexOf(P)?n(new p("Unsupported protocol "+P+":",p.ERR_BAD_REQUEST,t)):g.send(h)}))}},"../node_modules/axios/lib/axios.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/helpers/bind.js"),i=n("../node_modules/axios/lib/core/Axios.js"),a=n("../node_modules/axios/lib/core/mergeConfig.js"),c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n("../node_modules/axios/lib/defaults/index.js"));c.Axios=i,c.CanceledError=n("../node_modules/axios/lib/cancel/CanceledError.js"),c.CancelToken=n("../node_modules/axios/lib/cancel/CancelToken.js"),c.isCancel=n("../node_modules/axios/lib/cancel/isCancel.js"),c.VERSION=n("../node_modules/axios/lib/env/data.js").version,c.toFormData=n("../node_modules/axios/lib/helpers/toFormData.js"),c.AxiosError=n("../node_modules/axios/lib/core/AxiosError.js"),c.Cancel=c.CanceledError,c.all=function(t){return Promise.all(t)},c.spread=n("../node_modules/axios/lib/helpers/spread.js"),c.isAxiosError=n("../node_modules/axios/lib/helpers/isAxiosError.js"),t.exports=c,t.exports.default=c},"../node_modules/axios/lib/cancel/CancelToken.js":function(t,e,n){var r=n("../node_modules/axios/lib/cancel/CanceledError.js");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 n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},"../node_modules/axios/lib/cancel/CanceledError.js":function(t,e,n){var r=n("../node_modules/axios/lib/core/AxiosError.js");function o(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}n("../node_modules/axios/lib/utils.js").inherits(o,r,{__CANCEL__:!0}),t.exports=o},"../node_modules/axios/lib/cancel/isCancel.js":function(t,e,n){t.exports=function(t){return!(!t||!t.__CANCEL__)}},"../node_modules/axios/lib/core/Axios.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/helpers/buildURL.js"),i=n("../node_modules/axios/lib/core/InterceptorManager.js"),a=n("../node_modules/axios/lib/core/dispatchRequest.js"),c=n("../node_modules/axios/lib/core/mergeConfig.js"),s=n("../node_modules/axios/lib/core/buildFullPath.js"),u=n("../node_modules/axios/lib/helpers/validator.js"),l=u.validators;function p(t){this.defaults=t,this.interceptors={request:new i,response:new i}}p.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!o){var p=[a,void 0];for(Array.prototype.unshift.apply(p,r),p=p.concat(s),i=Promise.resolve(e);p.length;)i=i.then(p.shift(),p.shift());return i}for(var f=e;r.length;){var d=r.shift(),y=r.shift();try{f=d(f)}catch(t){y(t);break}}try{i=a(f)}catch(t){return Promise.reject(t)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},p.prototype.getUri=function(t){t=c(this.defaults,t);var e=s(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){p.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(c(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}p.prototype[t]=e(),p.prototype[t+"Form"]=e(!0)})),t.exports=p},"../node_modules/axios/lib/core/AxiosError.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");function o(t,e,n,r,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){a[t]={value:t}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(t,e,n,a,c,s){var u=Object.create(i);return r.toFlatObject(t,u,(function(t){return t!==Error.prototype})),o.call(u,t.message,e,n,a,c),u.name=t.name,s&&Object.assign(u,s),u},t.exports=o},"../node_modules/axios/lib/core/InterceptorManager.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},"../node_modules/axios/lib/core/buildFullPath.js":function(t,e,n){var r=n("../node_modules/axios/lib/helpers/isAbsoluteURL.js"),o=n("../node_modules/axios/lib/helpers/combineURLs.js");t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},"../node_modules/axios/lib/core/dispatchRequest.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/core/transformData.js"),i=n("../node_modules/axios/lib/cancel/isCancel.js"),a=n("../node_modules/axios/lib/defaults/index.js"),c=n("../node_modules/axios/lib/cancel/CanceledError.js");function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"../node_modules/axios/lib/core/mergeConfig.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function s(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==s||(n[t]=o)})),n}},"../node_modules/axios/lib/core/settle.js":function(t,e,n){var r=n("../node_modules/axios/lib/core/AxiosError.js");t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},"../node_modules/axios/lib/core/transformData.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/defaults/index.js");t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},"../node_modules/axios/lib/defaults/index.js":function(t,e,n){(function(e){var r=n("../node_modules/axios/lib/utils.js"),o=n("../node_modules/axios/lib/helpers/normalizeHeaderName.js"),i=n("../node_modules/axios/lib/core/AxiosError.js"),a=n("../node_modules/axios/lib/defaults/transitional.js"),c=n("../node_modules/axios/lib/helpers/toFormData.js"),s={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,p={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(l=n("../node_modules/axios/lib/adapters/xhr.js")),l),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,i=r.isObject(t),a=e&&e["Content-Type"];if((n=r.isFileList(t))||i&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return c(n?{"files[]":t}:t,s&&new s)}return i||"application/json"===a?(u(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||p.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i.from(t,i.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n("../node_modules/axios/lib/helpers/null.js")},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){p.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){p.headers[t]=r.merge(s)})),t.exports=p}).call(this,n("../node_modules/process/browser.js"))},"../node_modules/axios/lib/defaults/transitional.js":function(t,e,n){t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},"../node_modules/axios/lib/env/data.js":function(t,e){t.exports={version:"0.27.2"}},"../node_modules/axios/lib/helpers/bind.js":function(t,e,n){t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"../node_modules/axios/lib/helpers/buildURL.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},"../node_modules/axios/lib/helpers/combineURLs.js":function(t,e,n){t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},"../node_modules/axios/lib/helpers/cookies.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"../node_modules/axios/lib/helpers/isAbsoluteURL.js":function(t,e,n){t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},"../node_modules/axios/lib/helpers/isAxiosError.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},"../node_modules/axios/lib/helpers/isURLSameOrigin.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"../node_modules/axios/lib/helpers/normalizeHeaderName.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},"../node_modules/axios/lib/helpers/null.js":function(t,e){t.exports=null},"../node_modules/axios/lib/helpers/parseHeaders.js":function(t,e,n){var r=n("../node_modules/axios/lib/utils.js"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},"../node_modules/axios/lib/helpers/parseProtocol.js":function(t,e,n){t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},"../node_modules/axios/lib/helpers/spread.js":function(t,e,n){t.exports=function(t){return function(e){return t.apply(null,e)}}},"../node_modules/axios/lib/helpers/toFormData.js":function(t,e,n){(function(e){var r=n("../node_modules/axios/lib/utils.js");t.exports=function(t,n){n=n||new FormData;var o=[];function i(t){return null===t?"":r.isDate(t)?t.toISOString():r.isArrayBuffer(t)||r.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):e.from(t):t}return function t(e,a){if(r.isPlainObject(e)||r.isArray(e)){if(-1!==o.indexOf(e))throw Error("Circular reference detected in "+a);o.push(e),r.forEach(e,(function(e,o){if(!r.isUndefined(e)){var c,s=a?a+"."+o:o;if(e&&!a&&"object"==typeof e)if(r.endsWith(o,"{}"))e=JSON.stringify(e);else if(r.endsWith(o,"[]")&&(c=r.toArray(e)))return void c.forEach((function(t){!r.isUndefined(t)&&n.append(s,i(t))}));t(e,s)}})),o.pop()}else n.append(a,i(e))}(t),n}}).call(this,n("../node_modules/node-libs-browser/node_modules/buffer/index.js").Buffer)},"../node_modules/axios/lib/helpers/validator.js":function(t,e,n){var r=n("../node_modules/axios/lib/env/data.js").version,o=n("../node_modules/axios/lib/core/AxiosError.js"),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,c){if(!1===t)throw new o(i(r," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,c)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],c=e[a];if(c){var s=t[a],u=void 0===s||c(s,a,t);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},"../node_modules/axios/lib/utils.js":function(t,e,n){var r,o=n("../node_modules/axios/lib/helpers/bind.js"),i=Object.prototype.toString,a=(r=Object.create(null),function(t){var e=i.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function c(t){return t=t.toLowerCase(),function(e){return a(e)===t}}function s(t){return Array.isArray(t)}function u(t){return void 0===t}var l=c("ArrayBuffer");function p(t){return null!==t&&"object"==typeof t}function f(t){if("object"!==a(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=c("Date"),y=c("File"),h=c("Blob"),m=c("FileList");function v(t){return"[object Function]"===i.call(t)}var b=c("URLSearchParams");function g(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var w,O=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return w&&t instanceof w});t.exports={isArray:s,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||i.call(t)===e||v(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:p,isPlainObject:f,isUndefined:u,isDate:d,isFile:y,isBlob:h,isFunction:v,isStream:function(t){return p(t)&&v(t.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:g,merge:function t(){var e={};function n(n,r){f(e[r])&&f(n)?e[r]=t(e[r],n):f(n)?e[r]=t({},n):s(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return e},extend:function(t,e,n){return g(e,(function(e,r){t[r]=n&&"function"==typeof e?o(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,o,i,a={};e=e||{};do{for(o=(r=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=r[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:c,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(u(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:O,isFileList:m}},"../node_modules/base64-js/index.js":function(t,e,n){e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],c=r[1],s=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),l=0,p=c>0?a-4:a;for(n=0;n<p;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===c&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,s[l++]=255&e),1===c&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,c=0,s=n-o;c<s;c+=a)i.push(l(t,c,c+a>s?s:c+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,s=a.length;c<s;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var o,i,a=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(255&t[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"../node_modules/call-bind/callBound.js":function(t,e,n){var r=n("../node_modules/get-intrinsic/index.js"),o=n("../node_modules/call-bind/index.js"),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},"../node_modules/call-bind/index.js":function(t,e,n){var r=n("../node_modules/function-bind/index.js"),o=n("../node_modules/get-intrinsic/index.js"),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=c(r,a,arguments);if(s&&u){var n=s(e,"length");n.configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var p=function(){return c(r,i,arguments)};u?u(t.exports,"apply",{value:p}):t.exports.apply=p},"../node_modules/contentful-sdk-core/dist/index.es-modules.js":function(t,e,n){n.r(e),function(t){n.d(e,"createHttpClient",(function(){return _})),n.d(e,"createRequestConfig",(function(){return k})),n.d(e,"enforceObjPath",(function(){return L})),n.d(e,"errorHandler",(function(){return z})),n.d(e,"freezeSys",(function(){return C})),n.d(e,"getUserAgentHeader",(function(){return M})),n.d(e,"toPlainObject",(function(){return N}));var r=n("../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js"),o=n.n(r),i=n("../node_modules/qs/lib/index.js"),a=n.n(i),c=n("../node_modules/lodash.isstring/index.js"),s=n.n(c),u=n("../node_modules/p-throttle/index.js"),l=n.n(u),p=n("../node_modules/lodash.isplainobject/index.js"),f=n.n(p);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t){return h="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},h(t)}function m(){m=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var i=new RegExp(t,r);return e.set(i,o||e.get(t)),g(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var o=r[n];if("number"==typeof o)e[n]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[n]=t[o[i]]}return e}),Object.create(null))}return b(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=e.get(this);return t[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(t,e){var n=i[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},m.apply(this,arguments)}function v(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){if(t){if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(){}var E=m(/(\d+)(%)/,{value:1});function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,n=e;if(E.test(t)){var r,o=null===(r=t.match(E))||void 0===r?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(e*i)}}return Math.min(30,Math.max(1,n))}function I(t,e){return e("info","Throttle request to ".concat(t,"/s")),l()({limit:t,interval:1e3,strict:!1})}var T=function(t){return new Promise((function(e){setTimeout(e,t)}))},x=function(t){return Math.pow(Math.SQRT2,t)},A=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function _(t,e){var n=y(y({},{insecure:!1,retryOnError:!0,logHandler:function(t,e){if("error"===t&&e){var n=[e.name,e.message].filter((function(t){return t})).join(" - ");return console.error("[error] ".concat(n)),void console.error(e)}console.log("[".concat(t,"] ").concat(e))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),e);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var i=n.insecure?"http":"https",c=n.space?"".concat(n.space,"/"):"",u=n.defaultHostname,l=n.insecure?80:443;if(n.host&&A.test(n.host)){var p=n.host.split(":");if(2===p.length){var f=w(p,2);u=f[0],l=f[1]}else u=p[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=e.baseURL||"".concat(i,"://").concat(u,":").concat(l).concat(n.basePath,"/spaces/").concat(c);n.headers.Authorization||"function"==typeof n.accessToken||(n.headers.Authorization="Bearer "+n.accessToken);var h={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:a.a.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},m=t.create(h);return m.httpClientParams=e,m.cloneWithNewParams=function(n){return _(t,y(y({},o()(e)),n))},n.onBeforeRequest&&m.interceptors.request.use(n.onBeforeRequest),"function"==typeof n.accessToken&&function(t,e){t.interceptors.request.use((function(t){return e().then((function(e){return t.headers=y(y({},t.headers),{},{Authorization:"Bearer ".concat(e)}),t}))}))}(m,n.accessToken),n.throttle&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=t.defaults.logHandler,r=void 0===n?S:n,o=s()(e)?P(e):P("auto",e),i=I(o,r),a=!1,c=t.interceptors.request.use((function(t){return i((function(){return t}))()}),(function(t){return Promise.reject(t)}));t.interceptors.response.use((function(n){if(!a&&s()(e)&&("auto"===e||E.test(e))&&n.headers&&n.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(n.headers["x-contentful-ratelimit-second-limit"]),l=P(e,u);l!==o&&(c&&t.interceptors.request.eject(c),o=l,i=I(l,r),c=t.interceptors.request.use((function(t){return i((function(){return t}))()}),(function(t){return Promise.reject(t)}))),a=!0}return n}),(function(t){return Promise.reject(t)}))}(m,n.throttle),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,o=void 0===r?S:r,i=n.requestLogger,a=void 0===i?S:i;t.interceptors.request.use((function(t){return a(t),t}),(function(t){return a(t),Promise.reject(t)})),t.interceptors.response.use((function(t){return o(t),t}),(function(n){var r=n.response,i=n.config;if(o(n),!i||!t.defaults.retryOnError)return Promise.reject(n);var a=i.attempts||1;if(a>e)return n.attempts=i.attempts,Promise.reject(n);var c=null,s=x(a);return r?r.status>=500&&r.status<600?c="Server ".concat(r.status):429===r.status&&(c="Rate limit",r.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(s=r.headers["x-contentful-ratelimit-reset"])):c="Connection",c?(s=Math.floor(1e3*s+200*Math.random()+500),t.defaults.logHandler("warning","".concat(c," error occurred. Waiting for ").concat(s," ms before retrying...")),i.attempts=a+1,delete i.httpAgent,delete i.httpsAgent,T(s).then((function(){return t(i)}))):Promise.reject(n)}))}(m,n.retryLimit),n.onError&&m.interceptors.response.use((function(t){return t}),n.onError),m}function k(t){var e=t.query,n={};return delete e.resolveLinks,n.params=o()(e),n}function L(t,e){if(!(e in t)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(e," missing from:\n\n").concat(JSON.stringify(t),"\n\n"),n}return!0}function R(t){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(Object.getOwnPropertyNames(t));try{for(n.s();!(e=n.n()).done;){var r=t[e.value];r&&"object"===h(r)&&R(r)}}catch(t){n.e(t)}finally{n.f()}return Object.freeze(t)}function C(t){return R(t.sys||{}),t}function D(){var t=window;if(!t)return null;var e=t.navigator.userAgent,n=t.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(n)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(n)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(n)?"Windows":/Android/.test(e)?"Android":/Linux/.test(n)?"Linux":null}function M(e,n,r,o){var i=[];n&&i.push("app ".concat(n)),r&&i.push("integration ".concat(r)),o&&i.push("feature "+o),i.push("sdk ".concat(e));var a=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(a=D(),i.push("platform ReactNative")):void 0===t||t.browser?(a=D(),i.push("platform browser")):(a=function(){var e=t.platform||"linux",n=t.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(n):null}(),i.push("platform node.js/".concat(t.versions&&t.versions.node?"v".concat(t.versions.node):t.version)))}catch(t){a=null}return a&&i.push("os ".concat(a)),"".concat(i.filter((function(t){return""!==t})).join("; "),";")}function N(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return o()(this)}})}function z(t){var e,n=t.config,r=t.response;if(n&&n.headers&&n.headers.Authorization){var o="...".concat(n.headers.Authorization.toString().substr(-5));n.headers.Authorization="Bearer ".concat(o)}if(!f()(r)||!f()(n))throw t;var i=null==r?void 0:r.data,a={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};f()(n)&&(a.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),i&&f()(i)&&("requestId"in i&&(a.requestId=i.requestId||"UNKNOWN"),"message"in i&&(a.message=i.message||""),"details"in i&&(a.details=i.details||{}),"sys"in i&&"id"in i.sys&&(e=i.sys.id));var c=new Error;c.name=e&&"Unknown"!==e?e:"".concat(null==r?void 0:r.status," ").concat(null==r?void 0:r.statusText);try{c.message=JSON.stringify(a,null," ")}catch(t){var s;c.message=null!==(s=null==a?void 0:a.message)&&void 0!==s?s:""}throw c}}.call(this,n("../node_modules/process/browser.js"))},"../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js":function(t,e,n){(function(e){var n;n=function(){var t=Function.prototype.toString,n=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,s=Object.prototype,u=s.hasOwnProperty,l=s.propertyIsEnumerable,p="function"==typeof a,f="function"==typeof WeakMap,d=function(){if(f)return function(){return new WeakMap};var t=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(t){return!!~this._keys.indexOf(t)},t.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},t.prototype.set=function(t,e){this._keys.push(t),this._values.push(e)},t}();return function(){return new t}}(),y=function(e,r){var o=e.__proto__||c(e);if(!o)return n(null);var i=o.constructor;if(i===r.Object)return o===r.Object.prototype?{}:n(o);if(~t.call(i).indexOf("[native code]"))try{return new i}catch(t){}return n(o)},h=function(t,e,n,r){var o=y(t,e);for(var i in r.set(t,o),t)u.call(t,i)&&(o[i]=n(t[i],r));if(p)for(var c=a(t),s=0,f=c.length,d=void 0;s<f;++s)d=c[s],l.call(t,d)&&(o[d]=n(t[d],r));return o},m=function(t,e,n,c){var s=y(t,e);c.set(t,s);for(var u=p?i(t).concat(a(t)):i(t),l=0,f=u.length,d=void 0,h=void 0;l<f;++l)if("callee"!==(d=u[l])&&"caller"!==d)if(h=o(t,d)){h.get||h.set||(h.value=n(t[d],c));try{r(s,d,h)}catch(t){s[d]=h.value}}else s[d]=n(t[d],c);return s},v=Array.isArray,b=Object.getPrototypeOf,g=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function w(t,e){var n=!(!e||!e.isStrict),r=e&&e.realm||g,o=n?m:h,i=function(t,e){if(!t||"object"!=typeof t)return t;if(e.has(t))return e.get(t);var a,c,s,u=t.__proto__||b(t),l=u&&u.constructor;if(!l||l===r.Object)return o(t,r,i,e);if(v(t)){if(n)return m(t,r,i,e);a=new l,e.set(t,a);for(var p=0,f=t.length;p<f;++p)a[p]=i(t[p],e);return a}if(t instanceof r.Date)return new l(t.getTime());if(t instanceof r.RegExp)return(a=new l(t.source,t.flags||(s="",(c=t).global&&(s+="g"),c.ignoreCase&&(s+="i"),c.multiline&&(s+="m"),c.unicode&&(s+="u"),c.sticky&&(s+="y"),s))).lastIndex=t.lastIndex,a;if(r.Map&&t instanceof r.Map)return a=new l,e.set(t,a),t.forEach((function(t,n){a.set(n,i(t,e))})),a;if(r.Set&&t instanceof r.Set)return a=new l,e.set(t,a),t.forEach((function(t){a.add(i(t,e))})),a;if(r.Blob&&t instanceof r.Blob)return t.slice(0,t.size,t.type);if(r.Buffer&&r.Buffer.isBuffer(t))return a=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(t.length):new l(t.length),e.set(t,a),t.copy(a),a;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(t))return a=new l(t.buffer.slice(0)),e.set(t,a),a;if(t instanceof r.ArrayBuffer)return a=t.slice(0),e.set(t,a),a}return"function"==typeof t.then||t instanceof Error||r.WeakMap&&t instanceof r.WeakMap||r.WeakSet&&t instanceof r.WeakSet?t:o(t,r,i,e)};return i(t,d())}return w.default=w,w.strict=function(t,e){return w(t,{isStrict:!0,realm:e?e.realm:void 0})},w},t.exports=n()}).call(this,n("../node_modules/webpack/buildin/global.js"))},"../node_modules/fast-copy/dist/umd/index.js":function(t,e,n){!function(t){var e=Function.prototype.toString,n=Object.create,r=Object.prototype.toString,o=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(t){return!!~this._keys.indexOf(t)},t.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},t.prototype.set=function(t,e){this._keys.push(t),this._values.push(e)},t}();function i(){return new o}function a(){return new WeakMap}var c="undefined"!=typeof WeakMap?a:i;function s(t){if(!t)return n(null);var r=t.constructor;if(r===Object)return t===Object.prototype?{}:n(t);if(~e.call(r).indexOf("[native code]"))try{return new r}catch(t){}return n(t)}function u(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function l(t){return t.flags}var p="g"===/test/g.flags?l:u;function f(t){var e=r.call(t);return e.substring(8,e.length-1)}function d(t){return t[Symbol.toStringTag]||f(t)}var y="undefined"!=typeof Symbol?d:f,h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,g=Object.prototype,w=g.hasOwnProperty,O=g.propertyIsEnumerable,j="function"==typeof b;function S(t){return v(t).concat(b(t))}var E=j?S:v;function P(t,e,n){for(var r=E(t),o=0,i=r.length,a=void 0,c=void 0;o<i;++o)if("callee"!==(a=r[o])&&"caller"!==a)if(c=m(t,a)){c.get||c.set||(c.value=n.copier(c.value,n));try{h(e,a,c)}catch(t){e[a]=c.value}}else e[a]=n.copier(t[a],n);return e}function I(t,e){var n=new e.Constructor;e.cache.set(t,n);for(var r=0,o=t.length;r<o;++r)n[r]=e.copier(t[r],e);return n}function T(t,e){var n=new e.Constructor;return e.cache.set(t,n),P(t,n,e)}function x(t,e){return t.slice(0)}function A(t,e){return t.slice(0,t.size,t.type)}function _(t,e){return new e.Constructor(x(t.buffer))}function k(t,e){return new e.Constructor(t.getTime())}function L(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach((function(t,r){n.set(r,e.copier(t,e))})),n}function R(t,e){return P(t,L(t,e),e)}function C(t,e){var n=s(e.prototype);for(var r in e.cache.set(t,n),t)w.call(t,r)&&(n[r]=e.copier(t[r],e));return n}function D(t,e){var n=s(e.prototype);for(var r in e.cache.set(t,n),t)w.call(t,r)&&(n[r]=e.copier(t[r],e));for(var o=b(t),i=0,a=o.length,c=void 0;i<a;++i)c=o[i],O.call(t,c)&&(n[c]=e.copier(t[c],e));return n}var M=j?D:C;function N(t,e){var n=s(e.prototype);return e.cache.set(t,n),P(t,n,e)}function z(t,e){return new e.Constructor(t.valueOf())}function F(t,e){var n=new e.Constructor(t.source,p(t));return n.lastIndex=t.lastIndex,n}function U(t,e){return t}function B(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach((function(t){n.add(e.copier(t,e))})),n}function q(t,e){return P(t,B(t,e),e)}var W=Array.isArray,G=Object.assign,H=Object.getPrototypeOf||function(t){return t.__proto__},V={array:I,arrayBuffer:x,blob:A,dataView:_,date:k,error:U,map:L,object:M,regExp:F,set:B},Y=G({},V,{array:T,map:R,object:N,set:q});function K(t){return{Arguments:t.object,Array:t.array,ArrayBuffer:t.arrayBuffer,Blob:t.blob,Boolean:z,DataView:t.dataView,Date:t.date,Error:t.error,Float32Array:t.arrayBuffer,Float64Array:t.arrayBuffer,Int8Array:t.arrayBuffer,Int16Array:t.arrayBuffer,Int32Array:t.arrayBuffer,Map:t.map,Number:z,Object:t.object,Promise:U,RegExp:t.regExp,Set:t.set,String:z,WeakMap:U,WeakSet:U,Uint8Array:t.arrayBuffer,Uint8ClampedArray:t.arrayBuffer,Uint16Array:t.arrayBuffer,Uint32Array:t.arrayBuffer,Uint64Array:t.arrayBuffer}}function X(t){var e=K(G({},V,t)),n=e.Array,r=e.Object;function o(t,o){if(o.prototype=o.Constructor=void 0,!t||"object"!=typeof t)return t;if(o.cache.has(t))return o.cache.get(t);if(o.prototype=H(t),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return r(t,o);if(W(t))return n(t,o);var i=e[y(t)];return i?i(t,o):"function"==typeof t.then?t:r(t,o)}return function(t){return o(t,{Constructor:void 0,cache:c(),copier:o,prototype:void 0})}}function $(t){return X(G({},Y,t))}var J=$({}),Q=X({});t.copyStrict=J,t.createCopier=X,t.createStrictCopier=$,t.default=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"../node_modules/function-bind/implementation.js":function(t,e,n){var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||i.call(e)!==a)throw new TypeError(r+e);for(var n,c=o.call(arguments,1),s=function(){if(this instanceof n){var r=e.apply(this,c.concat(o.call(arguments)));return Object(r)===r?r:this}return e.apply(t,c.concat(o.call(arguments)))},u=Math.max(0,e.length-c.length),l=[],p=0;p<u;p++)l.push("$"+p);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var f=function(){};f.prototype=e.prototype,n.prototype=new f,f.prototype=null}return n}},"../node_modules/function-bind/index.js":function(t,e,n){var r=n("../node_modules/function-bind/implementation.js");t.exports=Function.prototype.bind||r},"../node_modules/get-intrinsic/index.js":function(t,e,n){var r,o=SyntaxError,i=Function,a=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new a},l=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,p=n("../node_modules/has-symbols/index.js")(),f=Object.getPrototypeOf||function(t){return t.__proto__},d={},y="undefined"==typeof Uint8Array?r:f(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(t){var m=f(f(t));h["%Error.prototype%"]=m}var v=function t(e){var n;if("%AsyncFunction%"===e)n=c("async function () {}");else if("%GeneratorFunction%"===e)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=c("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return h[e]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("../node_modules/function-bind/index.js"),w=n("../node_modules/has/src/index.js"),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),S=g.call(Function.call,String.prototype.replace),E=g.call(Function.call,String.prototype.slice),P=g.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,x=function(t){var e=E(t,0,1),n=E(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return S(t,I,(function(t,e,n,o){r[r.length]=n?S(o,T,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(w(b,r)&&(r="%"+(n=b[r])[0]+"%"),w(h,r)){var i=h[r];if(i===d&&(i=v(r)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=x(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),c=i.name,u=i.value,l=!1,p=i.alias;p&&(r=p[0],j(n,O([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var y=n[f],m=E(y,0,1),v=E(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==y&&d||(l=!0),w(h,c="%"+(r+="."+y)+"%"))u=h[c];else if(null!=u){if(!(y in u)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var b=s(u,y);u=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[y]}else d=w(u,y),u=u[y];d&&!l&&(h[c]=u)}}return u}},"../node_modules/has-symbols/index.js":function(t,e,n){var r="undefined"!=typeof Symbol&&Symbol,o=n("../node_modules/has-symbols/shams.js");t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},"../node_modules/has-symbols/shams.js":function(t,e,n){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},"../node_modules/has/src/index.js":function(t,e,n){var r=n("../node_modules/function-bind/index.js");t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},"../node_modules/ieee754/index.js":function(t,e){e.read=function(t,e,n,r,o){var i,a,c=8*o-r-1,s=(1<<c)-1,u=s>>1,l=-7,p=n?o-1:0,f=n?-1:1,d=t[e+p];for(p+=f,i=d&(1<<-l)-1,d>>=-l,l+=c;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=u}return(d?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,c,s,u=8*i-o-1,l=(1<<u)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,y=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=l?(c=0,a=l):a+p>=1?(c=(e*s-1)*Math.pow(2,o),a+=p):(c=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[n+d]=255&c,d+=y,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;t[n+d]=255&a,d+=y,a/=256,u-=8);t[n+d-y]|=128*h}},"../node_modules/isarray/index.js":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"../node_modules/lodash.isplainobject/index.js":function(t,e){var n,r,o=Function.prototype,i=Object.prototype,a=o.toString,c=i.hasOwnProperty,s=a.call(Object),u=i.toString,l=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=u.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=l(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==s}},"../node_modules/lodash.isstring/index.js":function(t,e){var n=Object.prototype.toString,r=Array.isArray;t.exports=function(t){return"string"==typeof t||!r(t)&&function(t){return!!t&&"object"==typeof t}(t)&&"[object String]"==n.call(t)}},"../node_modules/node-libs-browser/node_modules/buffer/index.js":function(t,e,n){(function(t){var r=n("../node_modules/base64-js/index.js"),o=n("../node_modules/ieee754/index.js"),i=n("../node_modules/isarray/index.js");function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=f(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n),o=(t=c(t,r)).write(e,n);return o!==r&&(t=t.slice(0,o)),t}(t,e,n):function(t,e){if(s.isBuffer(e)){var n=0|d(e.length);return 0===(t=c(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?c(t,0):f(t,e);if("Buffer"===e.type&&i(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e){if(l(e),t=c(t,e<0?0:0|d(e)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=c(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function y(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function h(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return x(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,o);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,o){var i,a=1,c=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,c/=2,s/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=n;i<c;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+s>c&&(n=c-s),i=n;i>=0;i--){for(var p=!0,f=0;f<s;f++)if(u(t,i+f)!==u(e,f)){p=!1;break}if(p)return i}return-1}function g(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))return a;t[n+a]=c}return a}function w(t,e,n,r){return q(U(e,t.length-n),t,n,r)}function O(t,e,n,r){return q(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function j(t,e,n,r){return O(t,e,n,r)}function S(t,e,n,r){return q(B(e),t,n,r)}function E(t,e,n,r){return q(function(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function P(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,c,s,u=t[o],l=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&u)<<6|63&i)>127&&(l=s);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&s<1114112&&(l=s)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=T));return n}(r)}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,n){return u(null,t,e,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?c(t,e):void 0!==n?"string"==typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}(null,t,e,n)},s.allocUnsafe=function(t){return p(null,t)},s.allocUnsafeSlow=function(t){return p(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=s.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):h.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,e,n,r,o){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),c=Math.min(i,a),u=this.slice(r,o),l=t.slice(e,n),p=0;p<c;++p)if(u[p]!==l[p]){i=u[p],a=l[p];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},s.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return j(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function x(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function _(t,e,n){var r,o=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=e;a<n;++a)i+=(r=t[a])<16?"0"+r.toString(16):r.toString(16);return i}function k(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function C(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function M(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,i){return i||M(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function z(t,e,n,r,i){return i||M(t,0,n,8),o.write(t,e,n,r,52,8),n+8}s.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=s.prototype;else{var o=e-t;n=new s(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},s.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},s.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},s.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},s.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);R(this,t,e,n,o-1,-o)}var i=0,a=1,c=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);R(this,t,e,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},s.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=s.isBuffer(t)?t:U(new s(t,r).toString()),c=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%c]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n("../node_modules/webpack/buildin/global.js"))},"../node_modules/object-inspect/index.js":function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&s&&"function"==typeof s.get?s.get:null,l=c&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,j=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,P=Array.prototype.slice,I=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function C(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-I(-t):I(t);if(r!==t){var o=String(r),i=b.call(e,o.length+1);return g.call(o,n,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(e,n,"$&_")}var D=n(1),M=D.custom,N=q(M)?M:null;function z(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function F(t){return g.call(String(t),/"/g,"&quot;")}function U(t){return!("[object Array]"!==H(t)||k&&"object"==typeof t&&k in t)}function B(t){return!("[object RegExp]"!==H(t)||k&&"object"==typeof t&&k in t)}function q(t){if(_)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var c=n||{};if(G(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!G(c,"customInspect")||c.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Y(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?C(e,w):w}if("bigint"==typeof e){var j=String(e)+"n";return h?C(e,j):j}var I=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=I&&I>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var x,M=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=E.call(Array(t.indent+1)," ")}return{base:n,prev:E.call(Array(e+1),n)}}(c,r);if(void 0===o)o=[];else if(V(o,e)>=0)return"[Circular]";function W(e,n,i){if(n&&(o=P.call(o)).push(n),i){var a={depth:c.depth};return G(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,r+1,o)}return t(e,c,r+1,o)}if("function"==typeof e&&!B(e)){var K=function(t){if(t.name)return t.name;var e=v.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Z(e,W);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+E.call(tt,", ")+" }":"")}if(q(e)){var et=_?g.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(e);return"object"!=typeof e||_?et:X(et)}if((x=e)&&"object"==typeof x&&("undefined"!=typeof HTMLElement&&x instanceof HTMLElement||"string"==typeof x.nodeName&&"function"==typeof x.getAttribute)){for(var nt="<"+O.call(String(e.nodeName)),rt=e.attributes||[],ot=0;ot<rt.length;ot++)nt+=" "+rt[ot].name+"="+z(F(rt[ot].value),"double",c);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+="</"+O.call(String(e.nodeName))+">"}if(U(e)){if(0===e.length)return"[]";var it=Z(e,W);return M&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(it)?"["+Q(it,M)+"]":"[ "+E.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==H(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Z(e,W);return"cause"in Error.prototype||!("cause"in e)||L.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(at,", ")+" }":"{ ["+String(e)+"] "+E.call(S.call("[cause]: "+W(e.cause),at),", ")+" }"}if("object"==typeof e&&s){if(N&&"function"==typeof e[N]&&D)return D(e,{depth:I-r});if("symbol"!==s&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return a&&a.call(e,(function(t,n){ct.push(W(n,e,!0)+" => "+W(t,e))})),J("Map",i.call(e),ct,M)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return l&&l.call(e,(function(t){st.push(W(t,e))})),J("Set",u.call(e),st,M)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return $("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return $("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(t){}return!1}(e))return $("WeakRef");if(function(t){return!("[object Number]"!==H(t)||k&&"object"==typeof t&&k in t)}(e))return X(W(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return X(W(T.call(e)));if(function(t){return!("[object Boolean]"!==H(t)||k&&"object"==typeof t&&k in t)}(e))return X(y.call(e));if(function(t){return!("[object String]"!==H(t)||k&&"object"==typeof t&&k in t)}(e))return X(W(String(e)));if(!function(t){return!("[object Date]"!==H(t)||k&&"object"==typeof t&&k in t)}(e)&&!B(e)){var ut=Z(e,W),lt=R?R(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",ft=!lt&&k&&Object(e)===e&&k in e?b.call(H(e),8,-1):pt?"Object":"",dt=(lt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||pt?"["+E.call(S.call([],ft||[],pt||[]),": ")+"] ":"");return 0===ut.length?dt+"{}":M?dt+"{"+Q(ut,M)+"}":dt+"{ "+E.call(ut,", ")+" }"}return String(e)};var W=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return W.call(t,e)}function H(t){return h.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function Y(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(b.call(t,0,e.maxStringLength),e)+r}return z(g.call(g.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function J(t,e,n,r){return t+" ("+e+") {"+(r?Q(n,r):E.call(n,", "))+"}"}function Q(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+E.call(t,","+n)+"\n"+e.prev}function Z(t,e){var n=U(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=G(t,o)?e(t[o],t):""}var i,a="function"==typeof x?x(t):[];if(_){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var s in t)G(t,s)&&(n&&String(Number(s))===s&&s<t.length||_&&i["$"+s]instanceof Symbol||(j.call(/[^\w$]/,s)?r.push(e(s,t)+": "+e(t[s],t)):r.push(s+": "+e(t[s],t))));if("function"==typeof x)for(var u=0;u<a.length;u++)L.call(t,a[u])&&r.push("["+e(a[u])+"]: "+e(t[a[u]],t));return r}},"../node_modules/p-throttle/index.js":function(t,e,n){class r extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}t.exports=({limit:t,interval:e,strict:n})=>{if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(e))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,a=0;const c=[],s=n?function(){const n=Date.now();if(c.length<t)return c.push(n),0;const r=c.shift()+e;return n>=r?(c.push(n),0):(c.push(r),r-n)}:function(){const n=Date.now();return n-i>e?(a=1,i=n,0):(a<t?a++:(i+=e,a=1),i-n)};return t=>{const e=function(...n){if(!e.isEnabled)return(async()=>t.apply(this,n))();let r;return new Promise(((e,i)=>{r=setTimeout((()=>{e(t.apply(this,n)),o.delete(r)}),s()),o.set(r,i)}))};return e.abort=()=>{for(const t of o.keys())clearTimeout(t),o.get(t)(new r);o.clear(),c.splice(0,c.length)},e.isEnabled=!0,e}},t.exports.AbortError=r},"../node_modules/process/browser.js":function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,u=[],l=!1,p=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):p=-1,u.length&&d())}function d(){if(!l){var t=c(f);l=!0;for(var e=u.length;e;){for(s=u,u=[];++p<e;)s&&s[p].run();p=-1,e=u.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new y(t,e)),1!==u.length||l||c(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"../node_modules/qs/lib/formats.js":function(t,e,n){var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},"../node_modules/qs/lib/index.js":function(t,e,n){var r=n("../node_modules/qs/lib/stringify.js"),o=n("../node_modules/qs/lib/parse.js"),i=n("../node_modules/qs/lib/formats.js");t.exports={formats:i,parse:o,stringify:r}},"../node_modules/qs/lib/parse.js":function(t,e,n){var r=n("../node_modules/qs/lib/utils.js"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var p=0;n.depth>0&&null!==(c=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(t,e,n,r){for(var o=r?e:s(e,n),i=t.length-1;i>=0;--i){var a,c=t[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&c!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;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?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),d=-1,y=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?y="utf-8":"utf8=%26%2310003%3B"===f[n]&&(y="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var h,m,v=f[n],b=v.indexOf("]="),g=-1===b?v.indexOf("="):b+1;-1===g?(h=e.decoder(v,a.decoder,y,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,g),a.decoder,y,"key"),m=r.maybeMap(s(v.slice(g+1),e),(function(t){return e.decoder(t,a.decoder,y,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===y&&(m=c(m)),v.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(u,h)?u[h]=r.combine(u[h],m):u[h]=m}return u}(t,n):t,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d<f.length;++d){var y=f[d],h=u(y,l[y],n,"string"==typeof t);p=r.merge(p,h,n)}return!0===n.allowSparse?p:r.compact(p)}},"../node_modules/qs/lib/stringify.js":function(t,e,n){var r=n("../node_modules/side-channel/index.js"),o=n("../node_modules/qs/lib/utils.js"),i=n("../node_modules/qs/lib/formats.js"),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,u=String.prototype.split,l=Array.prototype.push,p=function(t,e){l.apply(t,s(e)?e:[e])},f=Date.prototype.toISOString,d=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},h={},m=function t(e,n,i,a,c,l,f,d,m,v,b,g,w,O,j,S){for(var E,P=e,I=S,T=0,x=!1;void 0!==(I=I.get(h))&&!x;){var A=I.get(e);if(T+=1,void 0!==A){if(A===T)throw new RangeError("Cyclic object value");x=!0}void 0===I.get(h)&&(T=0)}if("function"==typeof d?P=d(n,P):P instanceof Date?P=b(P):"comma"===i&&s(P)&&(P=o.maybeMap(P,(function(t){return t instanceof Date?b(t):t}))),null===P){if(c)return f&&!O?f(n,y.encoder,j,"key",g):n;P=""}if("string"==typeof(E=P)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(P)){if(f){var _=O?n:f(n,y.encoder,j,"key",g);if("comma"===i&&O){for(var k=u.call(String(P),","),L="",R=0;R<k.length;++R)L+=(0===R?"":",")+w(f(k[R],y.encoder,j,"value",g));return[w(_)+(a&&s(P)&&1===k.length?"[]":"")+"="+L]}return[w(_)+"="+w(f(P,y.encoder,j,"value",g))]}return[w(n)+"="+w(String(P))]}var C,D=[];if(void 0===P)return D;if("comma"===i&&s(P))C=[{value:P.length>0?P.join(",")||null:void 0}];else if(s(d))C=d;else{var M=Object.keys(P);C=m?M.sort(m):M}for(var N=a&&s(P)&&1===P.length?n+"[]":n,z=0;z<C.length;++z){var F=C[z],U="object"==typeof F&&void 0!==F.value?F.value:P[F];if(!l||null!==U){var B=s(P)?"function"==typeof i?i(N,F):N:N+(v?"."+F:"["+F+"]");S.set(e,T);var q=r();q.set(h,S),p(D,t(U,B,i,a,c,l,f,d,m,v,b,g,w,O,j,q))}}return D};t.exports=function(t,e){var n,o=t,u=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;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 n=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=y.filter;return("function"==typeof t.filter||s(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof u.filter?o=(0,u.filter)("",o):s(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof o||null===o)return"";l=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=c[l];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===d&&e&&e.commaRoundTrip;n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var v=r(),b=0;b<n.length;++b){var g=n[b];u.skipNulls&&null===o[g]||p(f,m(o[g],g,d,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,v))}var w=f.join(u.delimiter),O=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),w.length>0?O+w:""}},"../node_modules/qs/lib/utils.js":function(t,e,n){var r=n("../node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],c=Object.keys(a),s=0;s<c.length;++s){var u=c[s],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:u}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var s="",u=0;u<c.length;++u){var l=c.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?s+=c.charAt(u):l<128?s+=a[l]:l<2048?s+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?s+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(u)),s+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return s},isBuffer:function(t){return!(!t||"object"!=typeof 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(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=c(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return o.call(e,i)?e[i]=t(e[i],a,r):e[i]=a,e}),a)}}},"../node_modules/side-channel/index.js":function(t,e,n){var r=n("../node_modules/get-intrinsic/index.js"),o=n("../node_modules/call-bind/callBound.js"),i=n("../node_modules/object-inspect/index.js"),a=r("%TypeError%"),c=r("%WeakMap%",!0),s=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),h=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(s){if(e)return f(e,r)}else if(n)return function(t,e){var n=h(t,e);return n&&n.value}(n,r)},has:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(s){if(e)return y(e,r)}else if(n)return function(t,e){return!!h(t,e)}(n,r);return!1},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),l(t,r,o)):s?(e||(e=new s),d(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=h(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},"../node_modules/webpack/buildin/global.js":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},"./adapters/REST/endpoints/api-key.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return l})),n.d(e,"getMany",(function(){return p})),n.d(e,"create",(function(){return f})),n.d(e,"createWithId",(function(){return d})),n.d(e,"update",(function(){return y})),n.d(e,"del",(function(){return h}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/api_keys/").concat(e.apiKeyId))},p=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/api_keys"),{params:e.query})},f=function(t,e,n,r){return i.post(t,"/spaces/".concat(e.spaceId,"/api_keys"),n,{headers:r})},d=function(t,e,n,r){return i.put(t,"/spaces/".concat(e.spaceId,"/api_keys/").concat(e.apiKeyId),n,{headers:r})},y=function(t,e,n,r){var a,c=o()(n);return"accessToken"in c&&delete c.accessToken,"preview_api_key"in c&&delete c.preview_api_key,"policies"in c&&delete c.policies,delete c.sys,i.put(t,"/spaces/".concat(e.spaceId,"/api_keys/").concat(e.apiKeyId),c,{headers:s({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},h=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/api_keys/").concat(e.apiKeyId))}},"./adapters/REST/endpoints/app-action-call.ts":function(t,e,n){n.r(e),n.d(e,"create",(function(){return f})),n.d(e,"getCallDetails",(function(){return d})),n.d(e,"createWithResponse",(function(){return m}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./common-utils.ts");function i(t){return i="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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,a)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,a,c,s){var u=f(t[r],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==i(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function l(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,c,"next",t)}function c(t){l(i,r,o,a,c,"throw",t)}a(void 0)}))}}var f=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/app_installations/").concat(e.appDefinitionId,"/actions/").concat(e.appActionId,"/calls"),n)},d=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/actions/").concat(e.appActionId,"/calls/").concat(e.callId))};function y(t,e,n){return h.apply(this,arguments)}function h(){return h=p(u().mark((function t(e,n,r){var i,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.callId,a=1,t.abrupt("return",new Promise((function(t,r){var s=function(){var l=p(u().mark((function l(){var p,f,y,h,m;return u().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,d(e,c(c({},n),{},{callId:i}));case 3:if(null==(y=u.sent)||null===(p=y.response)||void 0===p||!p.statusCode||Object(o.isSuccessful)(null==y||null===(f=y.response)||void 0===f?void 0:f.statusCode)){u.next=9;break}h=new Error("App action not found or lambda fails"),r(h),u.next=22;break;case 9:if(!Object(o.isSuccessful)(y.statusCode)){u.next=13;break}t(y),u.next=22;break;case 13:if(!(Object(o.shouldRePoll)(y.statusCode)&&a<10)){u.next=20;break}return a++,u.next=17,Object(o.waitFor)(2e3);case 17:s(),u.next=22;break;case 20:m=new Error("The app action response is taking longer than expected to process."),r(m);case 22:u.next=33;break;case 24:if(u.prev=24,u.t0=u.catch(0),!(++a>10)){u.next=30;break}return r(new Error("The app action response is taking longer than expected to process.")),u.abrupt("return");case 30:return u.next=32,Object(o.waitFor)(2e3);case 32:s();case 33:case"end":return u.stop()}}),l,null,[[0,24]])})));return function(){return l.apply(this,arguments)}}();s()})));case 5:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)}var m=function(){var t=p(u().mark((function t(e,n,o){var i,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.post(e,"/spaces/".concat(n.spaceId,"/environments/").concat(n.environmentId,"/app_installations/").concat(n.appDefinitionId,"/actions/").concat(n.appActionId,"/calls"),o);case 2:return i=t.sent,a=i.sys.id,t.abrupt("return",y(e,n,{callId:a}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},"./adapters/REST/endpoints/app-action.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"getMany",(function(){return s})),n.d(e,"getManyForEnvironment",(function(){return u})),n.d(e,"del",(function(){return l})),n.d(e,"create",(function(){return p})),n.d(e,"update",(function(){return f}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./adapters/REST/endpoints/utils.ts"),i=function(t){return"/organizations/".concat(t.organizationId,"/app_definitions/").concat(t.appDefinitionId,"/actions")},a=function(t){return"".concat(i(t),"/").concat(t.appActionId)},c=function(t,e){return r.get(t,a(e))},s=function(t,e){return r.get(t,i(e),{params:Object(o.normalizeSelect)(e.query)})},u=function(t,e){return r.get(t,function(t){return t.environmentId?"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/actions"):"/spaces/".concat(t.spaceId,"/actions")}(e),{params:Object(o.normalizeSelect)(e.query)})},l=function(t,e){return r.del(t,a(e))},p=function(t,e,n){return r.post(t,i(e),n)},f=function(t,e,n){return r.put(t,a(e),n)}},"./adapters/REST/endpoints/app-bundle.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"getMany",(function(){return s})),n.d(e,"del",(function(){return u})),n.d(e,"create",(function(){return l}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./adapters/REST/endpoints/utils.ts"),i=function(t){return"/organizations/".concat(t.organizationId,"/app_definitions/").concat(t.appDefinitionId,"/app_bundles")},a=function(t){return"".concat(i(t),"/").concat(t.appBundleId)},c=function(t,e){return r.get(t,a(e))},s=function(t,e){return r.get(t,i(e),{params:Object(o.normalizeSelect)(e.query)})},u=function(t,e){return r.del(t,a(e))},l=function(t,e,n){var o={upload:{sys:{type:"Link",linkType:"AppUpload",id:n.appUploadId}},comment:n.comment,actions:n.actions};return r.post(t,i(e),o)}},"./adapters/REST/endpoints/app-definition.ts":function(t,e,n){n.r(e),n.d(e,"getAppDefinitionUrl",(function(){return f})),n.d(e,"get",(function(){return d})),n.d(e,"getMany",(function(){return y})),n.d(e,"create",(function(){return h})),n.d(e,"update",(function(){return m})),n.d(e,"del",(function(){return v})),n.d(e,"getInstallationsForOrg",(function(){return b}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"/organizations/".concat(t.organizationId,"/app_definitions")},f=function(t){return p(t)+"/".concat(t.appDefinitionId)},d=function(t,e){return r.get(t,f(e),{params:Object(a.normalizeSelect)(e.query)})},y=function(t,e){return r.get(t,p(e),{params:e.query})},h=function(t,e,n){var o=i()(n);return r.post(t,p(e),o)},m=function(t,e,n,o){var a,c=i()(n);return delete c.sys,r.put(t,f(e),c,{headers:u({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},o)})},v=function(t,e){return r.del(t,f(e))},b=function(t,e){return r.get(t,function(t){return"/app_definitions/".concat(t.appDefinitionId,"/app_installations")}(e),{params:u(u({},Object(a.normalizeSpaceId)(Object(a.normalizeSelect)(e.query))),{},{"sys.organization.sys.id[in]":e.organizationId})})}},"./adapters/REST/endpoints/app-details.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"upsert",(function(){return i})),n.d(e,"del",(function(){return a}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/details"))},i=function(t,e,n){return r.put(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/details"),n)},a=function(t,e){return r.del(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/details"))}},"./adapters/REST/endpoints/app-installation.ts":function(t,e,n){n.r(e),n.d(e,"getAppInstallationUrl",(function(){return f})),n.d(e,"get",(function(){return d})),n.d(e,"getMany",(function(){return y})),n.d(e,"upsert",(function(){return h})),n.d(e,"del",(function(){return m})),n.d(e,"getForOrganization",(function(){return v}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./adapters/REST/endpoints/utils.ts"),i=n("../node_modules/fast-copy/dist/umd/index.js"),a=n.n(i);function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/app_installations")},f=function(t){return p(t)+"/".concat(t.appDefinitionId)},d=function(t,e){return r.get(t,f(e),{params:Object(o.normalizeSelect)(e.query)})},y=function(t,e){return r.get(t,p(e),{params:Object(o.normalizeSelect)(e.query)})},h=function(t,e,n,o){var i=a()(n);return r.put(t,f(e),i,{headers:u(u({},o),e.acceptAllTerms&&{"X-Contentful-Marketplace":"i-accept-end-user-license-agreement,i-accept-marketplace-terms-of-service,i-accept-privacy-policy"})})},m=function(t,e){return r.del(t,f(e))},v=function(t,e){return r.get(t,function(t){return"/app_definitions/".concat(t.appDefinitionId,"/app_installations")}(e),{params:u(u({},Object(o.normalizeSpaceId)(Object(o.normalizeSelect)(e.query))),{},{"sys.organization.sys.id[in]":e.organizationId})})}},"./adapters/REST/endpoints/app-signed-request.ts":function(t,e,n){n.r(e),n.d(e,"create",(function(){return o}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/app_installations/").concat(e.appDefinitionId,"/signed_requests"),n)}},"./adapters/REST/endpoints/app-signing-secret.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"upsert",(function(){return i})),n.d(e,"del",(function(){return a}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/signing_secret"))},i=function(t,e,n){return r.put(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/signing_secret"),n)},a=function(t,e){return r.del(t,"/organizations/".concat(e.organizationId,"/app_definitions/").concat(e.appDefinitionId,"/signing_secret"))}},"./adapters/REST/endpoints/app-upload.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"del",(function(){return s})),n.d(e,"create",(function(){return u}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./upload-http-client.ts"),i=function(t){return"/organizations/".concat(t.organizationId,"/app_uploads")},a=function(t){return"".concat(i(t),"/").concat(t.appUploadId)},c=function(t,e){var n=Object(o.getUploadHttpClient)(t);return r.get(n,a(e))},s=function(t,e){var n=Object(o.getUploadHttpClient)(t);return r.del(n,a(e))},u=function(t,e,n){var a=Object(o.getUploadHttpClient)(t),c=n.file;return r.post(a,i(e),c,{headers:{"Content-Type":"application/octet-stream"}})}},"./adapters/REST/endpoints/asset-key.ts":function(t,e,n){n.r(e),n.d(e,"ValidationError",(function(){return f})),n.d(e,"create",(function(){return d}));var r=n("./adapters/REST/endpoints/raw.ts");function o(t){return o="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},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,a=void 0,a=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===o(a)?a:String(a)),r)}var i,a}function a(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return s(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,t)},c(t)}function s(t,e,n){return s=u()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&l(o,n.prototype),o},s.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(f,t);var e,n,r,o,c,s=(e=f,n=u(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return a(this,t)});function f(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(n=s.call(this,'Invalid "'.concat(t,'" provided, ')+e)).name="ValidationError",n}return r=f,o&&i(r.prototype,o),c&&i(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r}(c(Error)),d=function(t,e,n){var i=n.expiresAt,a=Math.floor(Date.now()/1e3);!function(t,e,n){if(n=n||{},"number"!=typeof e)throw new f(t,'only numeric values are allowed for timestamps, provided type was "'.concat(o(e),'"'));if(n.maximum&&e>n.maximum)throw new f(t,"value (".concat(e,") cannot be further in the future than expected maximum (").concat(n.maximum,")"));if(n.now&&e<n.now)throw new f(t,"value (".concat(e,") cannot be in the past, current time was ").concat(n.now))}("expiresAt",i,{maximum:a+172800,now:a});var c={expiresAt:i};return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/asset_keys"),c)}},"./adapters/REST/endpoints/asset.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return v})),n.d(e,"getMany",(function(){return b})),n.d(e,"update",(function(){return g})),n.d(e,"del",(function(){return w})),n.d(e,"publish",(function(){return O})),n.d(e,"unpublish",(function(){return j})),n.d(e,"archive",(function(){return S})),n.d(e,"unarchive",(function(){return E})),n.d(e,"create",(function(){return P})),n.d(e,"createWithId",(function(){return I})),n.d(e,"createFromFiles",(function(){return T})),n.d(e,"processForLocale",(function(){return A})),n.d(e,"processForAllLocales",(function(){return _}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./upload-http-client.ts"),c=n("./adapters/REST/endpoints/raw.ts"),s=n("./adapters/REST/endpoints/upload.ts"),u=n("./adapters/REST/endpoints/utils.ts"),l=["asset","locale","options"],p=["asset","options"];function f(t){return f="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},f(t)}function d(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=function(t,e,n,r){return c.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId),{params:Object(u.normalizeSelect)(e.query),headers:r?h({},r):void 0})},b=function(t,e,n,r){return c.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets"),{params:Object(u.normalizeSelect)(e.query),headers:r?h({},r):void 0})},g=function(t,e,n,r){var o,a=i()(n);return delete a.sys,c.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId),a,{headers:h({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},w=function(t,e){return c.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId))},O=function(t,e,n){var r;return c.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId,"/published"),null,{headers:{"X-Contentful-Version":null!==(r=n.sys.version)&&void 0!==r?r:0}})},j=function(t,e){return c.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId,"/published"))},S=function(t,e){return c.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId,"/archived"))},E=function(t,e){return c.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId,"/archived"))},P=function(t,e,n){var r=i()(n);return c.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets"),r)},I=function(t,e,n){var r=i()(n);return c.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/assets/").concat(e.assetId),r)},T=function(t,e,n){var o=Object(a.getUploadHttpClient)(t,{uploadTimeout:e.uploadTimeout}),i=n.fields.file;return Promise.all(Object.keys(i).map((function(t){var n=i[t],r=n.contentType,a=n.fileName;return Object(s.create)(o,e,i[t]).then((function(e){return m({},t,{contentType:r,fileName:a,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:e.sys.id}}})}))}))).then((function(r){var o=r.reduce((function(t,e){return h(h({},t),e)}),{}),i=h(h({},n),{},{fields:h(h({},n.fields),{},{file:o})});return P(t,e,i)})).catch(r.errorHandler)};function x(t,e,n){var r=n.resolve,o=n.reject,i=n.locale,a=n.processingCheckWait,c=void 0===a?3e3:a,s=n.processingCheckRetries,u=void 0===s?10:s,l=n.checkCount,p=void 0===l?0:l;return v(t,e).then((function(n){if(n.fields.file[i].url)r(n);else if(p===u){var a=new Error;a.name="AssetProcessingTimeout",a.message="Asset is taking longer then expected to process.",o(a)}else p++,setTimeout((function(){return x(t,e,{resolve:r,reject:o,locale:i,checkCount:p,processingCheckWait:c,processingCheckRetries:u})}),c)}))}var A=function(t,e){var n=e.asset,r=e.locale,o=e.options,i=void 0===o?{}:o,a=i.processingCheckRetries,s=i.processingCheckWait,u=d(e,l);return c.put(t,"/spaces/".concat(u.spaceId,"/environments/").concat(u.environmentId,"/assets/").concat(n.sys.id,"/files/").concat(r,"/process"),null,{headers:{"X-Contentful-Version":n.sys.version}}).then((function(){return new Promise((function(e,o){return x(t,{spaceId:u.spaceId,environmentId:u.environmentId,assetId:n.sys.id},{resolve:e,reject:o,locale:r,processingCheckWait:s,processingCheckRetries:a})}))}))},_=function(t,e){var n=e.asset,r=e.options,o=void 0===r?{}:r,i=d(e,p),a=Object.keys(n.fields.file||{}),c=n,s=a.map((function(e){return A(t,h(h({},i),{},{asset:n,locale:e,options:o})).then((function(t){c=t}))}));return Promise.all(s).then((function(){return c}))}},"./adapters/REST/endpoints/bulk-action.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"publish",(function(){return i})),n.d(e,"unpublish",(function(){return a})),n.d(e,"validate",(function(){return c}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/bulk_actions/actions/").concat(e.bulkActionId))},i=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/bulk_actions/publish"),n)},a=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/bulk_actions/unpublish"),n)},c=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/bulk_actions/validate"),n)}},"./adapters/REST/endpoints/comment.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return b})),n.d(e,"getMany",(function(){return g})),n.d(e,"create",(function(){return w})),n.d(e,"update",(function(){return O})),n.d(e,"del",(function(){return j})),n.d(e,"getAll",(function(){return S}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts"),c=["version"];function s(t){return s="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},s(t)}function u(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d="x-contentful-comment-body-format",y=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId)},h=function(t){return"".concat(y(t),"/entries/").concat(t.entryId,"/comments")},m=function(t){return"".concat(h(t),"/").concat(t.commentId)},v=function(t){if("entryId"in t)return h(t);var e=t.parentEntityId,n="Workflow"===t.parentEntityType?"workflows":"entries",r="parentEntityVersion"in t?"/versions/".concat(t.parentEntityVersion):"";return"".concat(y(t),"/").concat(n,"/").concat(e).concat(r,"/comments")},b=function(t,e){return i.get(t,m(e),{headers:"rich-text"===e.bodyFormat?f({},d,e.bodyFormat):{}})},g=function(t,e){return i.get(t,v(e),{params:Object(a.normalizeSelect)(e.query),headers:"rich-text"===e.bodyFormat?f({},d,e.bodyFormat):{}})},w=function(t,e,n){var r=o()(n);return i.post(t,v(e),r,{headers:"string"!=typeof n.body?f({},d,"rich-text"):{}})},O=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,m(e),c,{headers:p(p({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},"string"!=typeof n.body?f({},d,"rich-text"):{}),r)})},j=function(t,e){var n=e.version,r=u(e,c);return i.del(t,m(r),{headers:{"X-Contentful-Version":n}})},S=g},"./adapters/REST/endpoints/content-type.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return d})),n.d(e,"getMany",(function(){return y})),n.d(e,"create",(function(){return h})),n.d(e,"createWithId",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b})),n.d(e,"publish",(function(){return g})),n.d(e,"unpublish",(function(){return w}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/content_types")},f=function(t){return p(t)+"/".concat(t.contentTypeId)},d=function(t,e,n){return i.get(t,f(e),{params:Object(a.normalizeSelect)(e.query),headers:n})},y=function(t,e,n){return i.get(t,p(e),{params:e.query,headers:n})},h=function(t,e,n,r){var a=o()(n);return i.post(t,p(e),a,{headers:r})},m=function(t,e,n,r){var a=o()(n);return i.put(t,f(e),a,{headers:r})},v=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,f(e),c,{headers:u({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},b=function(t,e,n){return i.del(t,f(e),{headers:n})},g=function(t,e,n,r){return i.put(t,f(e)+"/published",null,{headers:u({"X-Contentful-Version":n.sys.version},r)})},w=function(t,e,n){return i.del(t,f(e)+"/published",{headers:n})}},"./adapters/REST/endpoints/editor-interface.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return p})),n.d(e,"getMany",(function(){return f})),n.d(e,"update",(function(){return d}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/content_types/").concat(t.contentTypeId,"/editor_interface")},p=function(t,e){return i.get(t,l(e))},f=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/editor_interfaces"))},d=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,l(e),c,{headers:s({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})}},"./adapters/REST/endpoints/entry.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return p})),n.d(e,"getPublished",(function(){return f})),n.d(e,"getMany",(function(){return d})),n.d(e,"patch",(function(){return y})),n.d(e,"update",(function(){return h})),n.d(e,"del",(function(){return m})),n.d(e,"publish",(function(){return v})),n.d(e,"unpublish",(function(){return b})),n.d(e,"archive",(function(){return g})),n.d(e,"unarchive",(function(){return w})),n.d(e,"create",(function(){return O})),n.d(e,"createWithId",(function(){return j})),n.d(e,"references",(function(){return S}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e,n,r){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId),{params:Object(a.normalizeSelect)(e.query),headers:u({},r)})},f=function(t,e,n,r){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/public/entries"),{params:Object(a.normalizeSelect)(e.query),headers:u({},r)})},d=function(t,e,n,r){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries"),{params:Object(a.normalizeSelect)(e.query),headers:u({},r)})},y=function(t,e,n,r){return i.patch(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId),n,{headers:u({"X-Contentful-Version":e.version,"Content-Type":"application/json-patch+json"},r)})},h=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId),c,{headers:u({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},m=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId))},v=function(t,e,n){return i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId,"/published"),null,{headers:{"X-Contentful-Version":n.sys.version}})},b=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId,"/published"))},g=function(t,e){return i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId,"/archived"))},w=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId,"/archived"))},O=function(t,e,n){var r=o()(n);return i.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries"),r,{headers:{"X-Contentful-Content-Type":e.contentTypeId}})},j=function(t,e,n){var r=o()(n);return i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/entries/").concat(e.entryId),r,{headers:{"X-Contentful-Content-Type":e.contentTypeId}})},S=function(t,e){var n=e.spaceId,r=e.environmentId,o=e.entryId,a=e.include||2;return i.get(t,"/spaces/".concat(n,"/environments/").concat(r,"/entries/").concat(o,"/references?include=").concat(a))}},"./adapters/REST/endpoints/environment-alias.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return f})),n.d(e,"getMany",(function(){return d})),n.d(e,"createWithId",(function(){return y})),n.d(e,"update",(function(){return h})),n.d(e,"del",(function(){return m}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){return"/spaces/".concat(t.spaceId,"/environment_aliases")},p=function(t){return l(t)+"/".concat(t.environmentAliasId)},f=function(t,e){return i.get(t,p(e))},d=function(t,e){return i.get(t,l(e),{params:e.query})},y=function(t,e,n,r){var a=o()(n);return i.put(t,p(e),a,{headers:r})},h=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,p(e),c,{headers:s(s({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},m=function(t,e){return i.del(t,p(e))}},"./adapters/REST/endpoints/environment-template-installation.ts":function(t,e,n){n.r(e),n.d(e,"getMany",(function(){return p})),n.d(e,"getForEnvironment",(function(){return f}));var r=n("./adapters/REST/endpoints/raw.ts");function o(t){return o="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},o(t)}var i=["organizationId","environmentTemplateId","spaceId","environmentId"],a=["spaceId","environmentId","environmentTemplateId","installationId"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var p=function(t,e){var n=e.organizationId,o=e.environmentTemplateId,a=e.spaceId,c=e.environmentId,u=l(e,i);return r.get(t,function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"/organizations/".concat(t,"/environment_templates/")+n.join("/")}(n,o,"template_installations"),{params:s(s(s({},u),c&&{"environment.sys.id":c}),a&&{"space.sys.id":a})})},f=function(t,e){var n=e.spaceId,o=e.environmentId,i=e.environmentTemplateId,c=e.installationId,u=l(e,a);return r.get(t,"/spaces/".concat(n,"/environments/").concat(o,"/template_installations/").concat(i),{params:s(s({},c&&{"sys.id":c}),u)})}},"./adapters/REST/endpoints/environment-template.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"getMany",(function(){return s})),n.d(e,"create",(function(){return u})),n.d(e,"update",(function(){return l})),n.d(e,"versionUpdate",(function(){return p})),n.d(e,"del",(function(){return f})),n.d(e,"versions",(function(){return d})),n.d(e,"validate",(function(){return y})),n.d(e,"install",(function(){return h})),n.d(e,"disconnect",(function(){return m}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"/organizations/".concat(t,"/environment_templates/")+n.join("/")},c=function(t,e){var n=e.organizationId,r=e.environmentTemplateId,o=e.version;return o?i.get(t,a(n,r,"versions",o)):i.get(t,a(n,r))},s=function(t,e){var n=e.organizationId,r=e.query,o=void 0===r?{}:r;return i.get(t,a(n),{params:o})},u=function(t,e,n){var r=e.organizationId;return i.post(t,a(r),n)},l=function(t,e,n){var r,c=e.organizationId,s=e.environmentTemplateId,u=o()(n);return delete u.sys,i.put(t,a(c,s),u,{headers:{"X-Contentful-Version":null!==(r=n.sys.version)&&void 0!==r?r:0}})},p=function(t,e,n){var r=e.organizationId,o=e.version,c=e.environmentTemplateId;return i.patch(t,a(r,c,"versions",o),n)},f=function(t,e){var n=e.organizationId,r=e.environmentTemplateId;return i.del(t,a(n,r))},d=function(t,e){var n=e.organizationId,r=e.environmentTemplateId,o=e.query,c=void 0===o?{}:o;return i.get(t,a(n,r,"versions"),{params:c})},y=function(t,e,n){var r=e.spaceId,o=e.environmentId,a=e.environmentTemplateId,c=e.version;return i.put(t,c?"/spaces/".concat(r,"/environments/").concat(o,"/template_installations/").concat(a,"/versions/").concat(c,"/validated"):"/spaces/".concat(r,"/environments/").concat(o,"/template_installations/").concat(a,"/validated"),n)},h=function(t,e,n){var r=e.spaceId,o=e.environmentId,a=e.environmentTemplateId;return i.post(t,"/spaces/".concat(r,"/environments/").concat(o,"/template_installations/").concat(a,"/versions"),n)},m=function(t,e){var n=e.spaceId,r=e.environmentId,o=e.environmentTemplateId;return i.del(t,"/spaces/".concat(n,"/environments/").concat(r,"/template_installations/").concat(o))}},"./adapters/REST/endpoints/environment.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return l})),n.d(e,"getMany",(function(){return p})),n.d(e,"update",(function(){return f})),n.d(e,"del",(function(){return d})),n.d(e,"create",(function(){return y})),n.d(e,"createWithId",(function(){return h}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId))},p=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/environments"),{params:e.query})},f=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId),c,{headers:s(s({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},d=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId))},y=function(t,e,n,r){var a=o()(n);return i.post(t,"/spaces/".concat(e.spaceId,"/environments"),a,{headers:r})},h=function(t,e,n,r){var a=o()(n);return i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId),a,{headers:s(s({},r),e.sourceEnvironmentId?{"X-Contentful-Source-Environment":e.sourceEnvironmentId}:{})})}},"./adapters/REST/endpoints/extension.ts":function(t,e,n){n.r(e),n.d(e,"getExtensionUrl",(function(){return y})),n.d(e,"get",(function(){return h})),n.d(e,"getMany",(function(){return m})),n.d(e,"create",(function(){return v})),n.d(e,"createWithId",(function(){return b})),n.d(e,"update",(function(){return g})),n.d(e,"del",(function(){return w}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,s){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==c(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}var d=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/extensions")},y=function(t){return d(t)+"/".concat(t.extensionId)},h=function(t,e){return i.get(t,y(e),{params:Object(a.normalizeSelect)(e.query)})},m=function(t,e){return i.get(t,d(e),{params:Object(a.normalizeSelect)(e.query)})},v=function(t,e,n,r){return i.post(t,d(e),n,{headers:r})},b=function(t,e,n,r){var a=o()(n);return i.put(t,y(e),a,{headers:r})},g=function(){var t,e=(t=s().mark((function t(e,n,r,a){var c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(u=o()(r)).sys,t.abrupt("return",i.put(e,y(n),u,{headers:l({"X-Contentful-Version":null!==(c=r.sys.version)&&void 0!==c?c:0},a)}));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,c,"next",t)}function c(t){f(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,n,r,o){return e.apply(this,arguments)}}(),w=function(t,e){return i.del(t,y(e))}},"./adapters/REST/endpoints/http.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"post",(function(){return i})),n.d(e,"put",(function(){return a})),n.d(e,"patch",(function(){return c})),n.d(e,"del",(function(){return s})),n.d(e,"request",(function(){return u}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){var n=e.url,o=e.config;return r.get(t,n,o)},i=function(t,e,n){var o=e.url,i=e.config;return r.post(t,o,n,i)},a=function(t,e,n){var o=e.url,i=e.config;return r.put(t,o,n,i)},c=function(t,e,n){var o=e.url,i=e.config;return r.patch(t,o,n,i)},s=function(t,e){var n=e.url,o=e.config;return r.del(t,n,o)},u=function(t,e){var n=e.url,o=e.config;return r.http(t,n,o)}},"./adapters/REST/endpoints/index.ts":function(t,e,n){n.r(e);var r=n("./adapters/REST/endpoints/api-key.ts"),o=n("./adapters/REST/endpoints/app-action.ts"),i=n("./adapters/REST/endpoints/app-action-call.ts"),a=n("./adapters/REST/endpoints/app-bundle.ts"),c=n("./adapters/REST/endpoints/app-definition.ts"),s=n("./adapters/REST/endpoints/app-details.ts"),u=n("./adapters/REST/endpoints/app-installation.ts"),l=n("./adapters/REST/endpoints/app-signed-request.ts"),p=n("./adapters/REST/endpoints/app-signing-secret.ts"),f=n("./adapters/REST/endpoints/app-upload.ts"),d=n("./adapters/REST/endpoints/asset.ts"),y=n("./adapters/REST/endpoints/asset-key.ts"),h=n("./adapters/REST/endpoints/bulk-action.ts"),m=n("./adapters/REST/endpoints/comment.ts"),v=n("./adapters/REST/endpoints/content-type.ts"),b=n("./adapters/REST/endpoints/editor-interface.ts"),g=n("./adapters/REST/endpoints/entry.ts"),w=n("./adapters/REST/endpoints/environment.ts"),O=n("./adapters/REST/endpoints/environment-alias.ts"),j=n("./adapters/REST/endpoints/environment-template.ts"),S=n("./adapters/REST/endpoints/environment-template-installation.ts"),E=n("./adapters/REST/endpoints/extension.ts"),P=n("./adapters/REST/endpoints/http.ts"),I=n("./adapters/REST/endpoints/locale.ts"),T=n("./adapters/REST/endpoints/organization.ts"),x=n("./adapters/REST/endpoints/organization-invitation.ts"),A=n("./adapters/REST/endpoints/organization-membership.ts"),_=n("./adapters/REST/endpoints/personal-access-token.ts"),k=n("./adapters/REST/endpoints/preview-api-key.ts"),L=n("./adapters/REST/endpoints/release.ts"),R=n("./adapters/REST/endpoints/release-action.ts"),C=n("./adapters/REST/endpoints/role.ts"),D=n("./adapters/REST/endpoints/scheduled-action.ts"),M=n("./adapters/REST/endpoints/snapshot.ts"),N=n("./adapters/REST/endpoints/space.ts"),z=n("./adapters/REST/endpoints/space-member.ts"),F=n("./adapters/REST/endpoints/space-membership.ts"),U=n("./adapters/REST/endpoints/tag.ts"),B=n("./adapters/REST/endpoints/task.ts"),q=n("./adapters/REST/endpoints/team.ts"),W=n("./adapters/REST/endpoints/team-membership.ts"),G=n("./adapters/REST/endpoints/team-space-membership.ts"),H=n("./adapters/REST/endpoints/ui-config.ts"),V=n("./adapters/REST/endpoints/upload.ts"),Y=n("./adapters/REST/endpoints/usage.ts"),K=n("./adapters/REST/endpoints/user.ts"),X=n("./adapters/REST/endpoints/user-ui-config.ts"),$=n("./adapters/REST/endpoints/webhook.ts"),J=n("./adapters/REST/endpoints/workflow.ts"),Q=n("./adapters/REST/endpoints/workflow-definition.ts"),Z=n("./adapters/REST/endpoints/workflows-changelog.ts");e.default={ApiKey:r,AppAction:o,AppActionCall:i,AppBundle:a,AppDefinition:c,AppInstallation:u,AppUpload:f,AppSignedRequest:l,AppSigningSecret:p,AppDetails:s,Asset:d,AssetKey:y,BulkAction:h,Comment:m,ContentType:v,EditorInterface:b,Entry:g,Environment:w,EnvironmentAlias:O,EnvironmentTemplate:j,EnvironmentTemplateInstallation:S,Extension:E,Http:P,Locale:I,Organization:T,OrganizationInvitation:x,OrganizationMembership:A,PersonalAccessToken:_,PreviewApiKey:k,Release:L,ReleaseAction:R,Role:C,ScheduledAction:D,Snapshot:M,Space:N,SpaceMember:z,SpaceMembership:F,Tag:U,Task:B,Team:q,TeamMembership:W,TeamSpaceMembership:G,UIConfig:H,Upload:V,Usage:Y,User:K,UserUIConfig:X,Webhook:$,WorkflowDefinition:Q,Workflow:J,WorkflowsChangelog:Z}},"./adapters/REST/endpoints/locale.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return p})),n.d(e,"getMany",(function(){return f})),n.d(e,"create",(function(){return d})),n.d(e,"update",(function(){return y})),n.d(e,"del",(function(){return h}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/locales/").concat(e.localeId))},f=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/locales"),{params:Object(a.normalizeSelect)(e.query)})},d=function(t,e,n,r){return i.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/locales"),n,{headers:r})},y=function(t,e,n,r){var a,c=o()(n);return delete c.sys,delete c.default,i.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/locales/").concat(e.localeId),c,{headers:u(u({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},h=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/locales/").concat(e.localeId))}},"./adapters/REST/endpoints/organization-invitation.ts":function(t,e,n){n.r(e),n.d(e,"create",(function(){return l})),n.d(e,"get",(function(){return p}));var r=n("./adapters/REST/endpoints/raw.ts");function o(t){return o="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},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={"x-contentful-enable-alpha-feature":"organization-user-management-api"},u={"x-contentful-enable-alpha-feature":"pending-org-membership"},l=function(t,e,n,o){return r.post(t,"/organizations/".concat(e.organizationId,"/invitations"),n,{headers:a(a({},u),o)})},p=function(t,e,n){return r.get(t,"/organizations/".concat(e.organizationId,"/invitations/").concat(e.invitationId),{headers:a(a({},s),n)})}},"./adapters/REST/endpoints/organization-membership.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return f})),n.d(e,"getMany",(function(){return d})),n.d(e,"update",(function(){return y})),n.d(e,"del",(function(){return h}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){return"/organizations/".concat(t.organizationId,"/organization_memberships")},p=function(t){return"".concat(l(t),"/").concat(t.organizationMembershipId)},f=function(t,e){return i.get(t,p(e))},d=function(t,e){return i.get(t,l(e),{params:e.query})},y=function(t,e,n,r){var a,c=o()(n);delete c.sys;var u=c.role;return i.put(t,p(e),{role:u},{headers:s(s({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},h=function(t,e){return i.del(t,p(e))}},"./adapters/REST/endpoints/organization.ts":function(t,e,n){n.r(e),n.d(e,"getMany",(function(){return o})),n.d(e,"get",(function(){return i}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/organizations",{params:null==e?void 0:e.query})},i=function(t,e){return o(t,{query:{limit:100}}).then((function(t){var n=t.items.find((function(t){return t.sys.id===e.organizationId}));if(!n){var r=new Error("No organization was found with the ID ".concat(e.organizationId," instead got ").concat(JSON.stringify(t)));return r.status=404,r.statusText="Not Found",Promise.reject(r)}return n}))}},"./adapters/REST/endpoints/personal-access-token.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"getMany",(function(){return i})),n.d(e,"create",(function(){return a})),n.d(e,"revoke",(function(){return c}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/users/me/access_tokens/".concat(e.tokenId))},i=function(t,e){return r.get(t,"/users/me/access_tokens",{params:e.query})},a=function(t,e,n,o){return r.post(t,"/users/me/access_tokens",n,{headers:o})},c=function(t,e){return r.put(t,"/users/me/access_tokens/".concat(e.tokenId,"/revoked"),null)}},"./adapters/REST/endpoints/preview-api-key.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"getMany",(function(){return i}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/preview_api_keys/").concat(e.previewApiKeyId))},i=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/preview_api_keys"),{params:e.query})}},"./adapters/REST/endpoints/raw.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return u})),n.d(e,"patch",(function(){return l})),n.d(e,"post",(function(){return p})),n.d(e,"put",(function(){return f})),n.d(e,"del",(function(){return d})),n.d(e,"http",(function(){return y}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js");function o(t){return o="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},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e;return null===(e=t.defaults.baseURL)||void 0===e?void 0:e.split("/spaces")[0]}function u(t,e,n){return t.get(e,a({baseURL:s(t)},n)).then((function(t){return t.data}),r.errorHandler)}function l(t,e,n,o){return t.patch(e,n,a({baseURL:s(t)},o)).then((function(t){return t.data}),r.errorHandler)}function p(t,e,n,o){return t.post(e,n,a({baseURL:s(t)},o)).then((function(t){return t.data}),r.errorHandler)}function f(t,e,n,o){return t.put(e,n,a({baseURL:s(t)},o)).then((function(t){return t.data}),r.errorHandler)}function d(t,e,n){return t.delete(e,a({baseURL:s(t)},n)).then((function(t){return t.data}),r.errorHandler)}function y(t,e,n){return t(e,a({baseURL:s(t)},n)).then((function(t){return t.data}),r.errorHandler)}},"./adapters/REST/endpoints/release-action.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return s})),n.d(e,"getMany",(function(){return u})),n.d(e,"queryForRelease",(function(){return l}));var r=n("./adapters/REST/endpoints/raw.ts");function o(t){return o="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},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/actions/").concat(e.actionId))},u=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/release_actions"),{params:e.query})},l=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/release_actions"),{params:a({"sys.release.sys.id[in]":e.releaseId},e.query)})}},"./adapters/REST/endpoints/release.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return s})),n.d(e,"query",(function(){return u})),n.d(e,"create",(function(){return l})),n.d(e,"update",(function(){return p})),n.d(e,"del",(function(){return f})),n.d(e,"publish",(function(){return d})),n.d(e,"unpublish",(function(){return y})),n.d(e,"validate",(function(){return h})),n.d(e,"archive",(function(){return m})),n.d(e,"unarchive",(function(){return v}));var r=n("./adapters/REST/endpoints/raw.ts");function o(t){return o="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},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId))},u=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases"),{params:e.query})},l=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases"),n)},p=function(t,e,n,o){return r.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId),n,{headers:a({"X-Contentful-Version":e.version},o)})},f=function(t,e){return r.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId))},d=function(t,e,n){return r.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/published"),null,{headers:a({"X-Contentful-Version":e.version},n)})},y=function(t,e,n){return r.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/published"),{headers:a({"X-Contentful-Version":e.version},n)})},h=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/validate"),n)},m=function(t,e){return r.put(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/archived"),null,{headers:{"X-Contentful-Version":e.version}})},v=function(t,e){return r.del(t,"/spaces/".concat(e.spaceId,"/environments/").concat(e.environmentId,"/releases/").concat(e.releaseId,"/archived"),{headers:{"X-Contentful-Version":e.version}})}},"./adapters/REST/endpoints/role.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return p})),n.d(e,"getMany",(function(){return f})),n.d(e,"create",(function(){return d})),n.d(e,"createWithId",(function(){return y})),n.d(e,"update",(function(){return h})),n.d(e,"del",(function(){return m}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/roles/").concat(e.roleId))},f=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/roles"),{params:Object(a.normalizeSelect)(e.query)})},d=function(t,e,n,r){return i.post(t,"/spaces/".concat(e.spaceId,"/roles"),n,{headers:r})},y=function(t,e,n,r){return i.put(t,"/spaces/".concat(e.spaceId,"/roles/").concat(e.roleId),n,{headers:r})},h=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,"/spaces/".concat(e.spaceId,"/roles/").concat(e.roleId),c,{headers:u(u({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},m=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId,"/roles/").concat(e.roleId))}},"./adapters/REST/endpoints/scheduled-action.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return i})),n.d(e,"getMany",(function(){return a})),n.d(e,"create",(function(){return c})),n.d(e,"del",(function(){return s})),n.d(e,"update",(function(){return u}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./adapters/REST/endpoints/utils.ts"),i=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/scheduled_actions/").concat(e.scheduledActionId),{params:{"environment.sys.id":e.environmentId}})},a=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/scheduled_actions"),{params:Object(o.normalizeSelect)(e.query)})},c=function(t,e,n){return r.post(t,"/spaces/".concat(e.spaceId,"/scheduled_actions"),n)},s=function(t,e){return r.del(t,"/spaces/".concat(e.spaceId,"/scheduled_actions/").concat(e.scheduledActionId),{params:{"environment.sys.id":e.environmentId}})},u=function(t,e,n){var o;return r.put(t,"/spaces/".concat(e.spaceId,"/scheduled_actions/").concat(e.scheduledActionId),n,{params:{"environment.sys.id":null===(o=n.environment)||void 0===o?void 0:o.sys.id},headers:{"X-Contentful-Version":e.version}})}},"./adapters/REST/endpoints/snapshot.ts":function(t,e,n){n.r(e),n.d(e,"getManyForEntry",(function(){return a})),n.d(e,"getForEntry",(function(){return c})),n.d(e,"getManyForContentType",(function(){return u})),n.d(e,"getForContentType",(function(){return l}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("./adapters/REST/endpoints/utils.ts"),i=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/entries/").concat(t.entryId,"/snapshots")},a=function(t,e){return r.get(t,i(e),{params:Object(o.normalizeSelect)(e.query)})},c=function(t,e){return r.get(t,function(t){return i(t)+"/".concat(t.snapshotId)}(e))},s=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/content_types/").concat(t.contentTypeId,"/snapshots")},u=function(t,e){return r.get(t,s(e),{params:Object(o.normalizeSelect)(e.query)})},l=function(t,e){return r.get(t,function(t){return s(t)+"/".concat(t.snapshotId)}(e))}},"./adapters/REST/endpoints/space-member.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return o})),n.d(e,"getMany",(function(){return i}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/space_members/").concat(e.spaceMemberId))},i=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/space_members"),{params:e.query})}},"./adapters/REST/endpoints/space-membership.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return d})),n.d(e,"getMany",(function(){return y})),n.d(e,"getForOrganization",(function(){return h})),n.d(e,"getManyForOrganization",(function(){return m})),n.d(e,"create",(function(){return v})),n.d(e,"createWithId",(function(){return b})),n.d(e,"update",(function(){return g})),n.d(e,"del",(function(){return w}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(){console.warn("The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)")}var p=function(t){return"/spaces/".concat(t.spaceId,"/space_memberships")},f=function(t){return"".concat(p(t),"/").concat(t.spaceMembershipId)},d=function(t,e){return l(),i.get(t,f(e))},y=function(t,e){return l(),i.get(t,p(e),{params:e.query})},h=function(t,e){return i.get(t,"/organizations/".concat(e.organizationId,"/space_memberships/").concat(e.spaceMembershipId))},m=function(t,e){return i.get(t,"/organizations/".concat(e.organizationId,"/space_memberships"),{params:e.query})},v=function(t,e,n,r){return l(),i.post(t,p(e),n,{headers:r})},b=function(t,e,n,r){return l(),i.put(t,f(e),n,{headers:r})},g=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,f(e),c,{headers:s(s({},r),{},{"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0})})},w=function(t,e){return i.del(t,f(e))}},"./adapters/REST/endpoints/space.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return l})),n.d(e,"getMany",(function(){return p})),n.d(e,"create",(function(){return f})),n.d(e,"update",(function(){return d})),n.d(e,"del",(function(){return y}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId))},p=function(t,e){return i.get(t,"/spaces",{params:e.query})},f=function(t,e,n,r){return i.post(t,"/spaces",n,{headers:e.organizationId?s(s({},r),{},{"X-Contentful-Organization":e.organizationId}):r})},d=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,"/spaces/".concat(e.spaceId),c,{headers:s({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},y=function(t,e){return i.del(t,"/spaces/".concat(e.spaceId))}},"./adapters/REST/endpoints/tag.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return y})),n.d(e,"getMany",(function(){return h})),n.d(e,"createWithId",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=["version"];function c(t){return c="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},c(t)}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/tags")},d=function(t){return f(t)+"/".concat(t.tagId)},y=function(t,e){return i.get(t,d(e))},h=function(t,e){return i.get(t,f(e),{params:e.query})},m=function(t,e,n){var r,a=o()(n);return i.put(t,d(e),a,{headers:{"X-Contentful-Tag-Visibility":null!==(r=n.sys.visibility)&&void 0!==r?r:"private"}})},v=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,d(e),c,{headers:l({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},b=function(t,e){var n=e.version,r=s(e,a);return i.del(t,d(r),{headers:{"X-Contentful-Version":n}})}},"./adapters/REST/endpoints/task.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return h})),n.d(e,"getMany",(function(){return m})),n.d(e,"getAll",(function(){return v})),n.d(e,"create",(function(){return b})),n.d(e,"update",(function(){return g})),n.d(e,"del",(function(){return w}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts"),c=["version"];function s(t){return s="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},s(t)}function u(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/entries/").concat(t.entryId,"/tasks")},y=function(t){return"".concat(d(t),"/").concat(t.taskId)},h=function(t,e){return i.get(t,y(e))},m=function(t,e){return i.get(t,d(e),{params:Object(a.normalizeSelect)(e.query)})},v=m,b=function(t,e,n){var r=o()(n);return i.post(t,d(e),r)},g=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,y(e),c,{headers:p({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},w=function(t,e){var n=e.version,r=u(e,c);return i.del(t,y(r),{headers:{"X-Contentful-Version":n}})}},"./adapters/REST/endpoints/team-membership.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return d})),n.d(e,"getManyForOrganization",(function(){return y})),n.d(e,"getManyForTeam",(function(){return h})),n.d(e,"create",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"/organizations/".concat(t.organizationId,"/teams/").concat(t.teamId,"/team_memberships")},f=function(t){return"/organizations/".concat(t.organizationId,"/teams/").concat(t.teamId,"/team_memberships/").concat(t.teamMembershipId)},d=function(t,e){return i.get(t,f(e))},y=function(t,e){return i.get(t,"/organizations/".concat(e.organizationId,"/team_memberships"),{params:Object(a.normalizeSelect)(e.query)})},h=function(t,e){return i.get(t,p(e),{params:Object(a.normalizeSelect)(e.query)})},m=function(t,e,n,r){return i.post(t,p(e),n,{headers:r})},v=function(t,e,n,r){var a=o()(n);return delete a.sys,i.put(t,f(e),a,{headers:u({"X-Contentful-Version":n.sys.version||0},r)})},b=function(t,e){return i.del(t,f(e))}},"./adapters/REST/endpoints/team-space-membership.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return f})),n.d(e,"getMany",(function(){return d})),n.d(e,"getForOrganization",(function(){return y})),n.d(e,"getManyForOrganization",(function(){return h})),n.d(e,"create",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts");function a(t){return a="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},a(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=function(t){return"/spaces/".concat(t.spaceId,"/team_space_memberships")},p=function(t){return"".concat(l(t),"/").concat(t.teamSpaceMembershipId)},f=function(t,e){return i.get(t,p(e))},d=function(t,e){return i.get(t,l(e),{params:e.query})},y=function(t,e){return i.get(t,"/organizations/".concat(e.organizationId,"/team_space_memberships/").concat(e.teamSpaceMembershipId))},h=function(t,e){var n=e.query||{};return e.teamId&&(n["sys.team.sys.id"]=e.teamId),i.get(t,"/organizations/".concat(e.organizationId,"/team_space_memberships"),{params:e.query})},m=function(t,e,n,r){return i.post(t,l(e),n,{headers:s({"x-contentful-team":e.teamId},r)})},v=function(t,e,n,r){var a=o()(n);return delete a.sys,i.put(t,p(e),a,{headers:s({"X-Contentful-Version":n.sys.version||0,"x-contentful-team":n.sys.team.sys.id},r)})},b=function(t,e){return i.del(t,p(e))}},"./adapters/REST/endpoints/team.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return d})),n.d(e,"getMany",(function(){return y})),n.d(e,"getManyForSpace",(function(){return h})),n.d(e,"create",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"/organizations/".concat(t.organizationId,"/teams")},f=function(t){return"".concat(p(t),"/").concat(t.teamId)},d=function(t,e){return i.get(t,f(e))},y=function(t,e){return i.get(t,p(e),{params:Object(a.normalizeSelect)(e.query)})},h=function(t,e){return i.get(t,"/spaces/".concat(e.spaceId,"/teams"),{params:Object(a.normalizeSelect)(e.query)})},m=function(t,e,n,r){return i.post(t,p(e),n,{headers:r})},v=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,f(e),c,{headers:u({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},b=function(t,e){return i.del(t,f(e))}},"./adapters/REST/endpoints/ui-config.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"update",(function(){return s}));var r=n("./adapters/REST/endpoints/raw.ts"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/ui_config")},c=function(t,e){return r.get(t,a(e))},s=function(t,e,n){var o,c=i()(n);return delete c.sys,r.put(t,a(e),c,{headers:{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0}})}},"./adapters/REST/endpoints/upload.ts":function(t,e,n){n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"del",(function(){return a})),n.d(e,"get",(function(){return c}));var r=n("./upload-http-client.ts"),o=n("./adapters/REST/endpoints/raw.ts"),i=function(t,e,n){var i=Object(r.getUploadHttpClient)(t),a=n.file;return a?o.post(i,"/spaces/".concat(e.spaceId,"/uploads"),a,{headers:{"Content-Type":"application/octet-stream"}}):Promise.reject(new Error("Unable to locate a file to upload."))},a=function(t,e){var n=Object(r.getUploadHttpClient)(t);return o.del(n,"/spaces/".concat(e.spaceId,"/uploads/").concat(e.uploadId))},c=function(t,e){var n=Object(r.getUploadHttpClient)(t);return o.get(n,"/spaces/".concat(e.spaceId,"/uploads/").concat(e.uploadId))}},"./adapters/REST/endpoints/usage.ts":function(t,e,n){n.r(e),n.d(e,"getManyForSpace",(function(){return o})),n.d(e,"getManyForOrganization",(function(){return i}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/space_periodic_usages"),{params:e.query})},i=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/organization_periodic_usages"),{params:e.query})}},"./adapters/REST/endpoints/user-ui-config.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return c})),n.d(e,"update",(function(){return s}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/ui_config/me")},c=function(t,e){return i.get(t,a(e))},s=function(t,e,n){var r,c=o()(n);return delete c.sys,i.put(t,a(e),c,{headers:{"X-Contentful-Version":null!==(r=n.sys.version)&&void 0!==r?r:0}})}},"./adapters/REST/endpoints/user.ts":function(t,e,n){n.r(e),n.d(e,"getForSpace",(function(){return o})),n.d(e,"getCurrent",(function(){return i})),n.d(e,"getManyForSpace",(function(){return a})),n.d(e,"getForOrganization",(function(){return c})),n.d(e,"getManyForOrganization",(function(){return s}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/users/").concat(e.userId))},i=function(t,e){return r.get(t,"/users/me",{params:null==e?void 0:e.query})},a=function(t,e){return r.get(t,"/spaces/".concat(e.spaceId,"/users"),{params:e.query})},c=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/users/").concat(e.userId))},s=function(t,e){return r.get(t,"/organizations/".concat(e.organizationId,"/users"),{params:e.query})}},"./adapters/REST/endpoints/utils.ts":function(t,e,n){n.r(e),n.d(e,"normalizeSelect",(function(){return u})),n.d(e,"normalizeSpaceId",(function(){return l}));var r=["spaceId"];function o(t){return o="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},o(t)}function i(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return t&&t.select&&!/sys/i.test(t.select)?c(c({},t),{},{select:t.select+",sys"}):t}function l(t){if(t&&t.spaceId){var e=t.spaceId;return c(c({},i(t,r)),{},{"sys.space.sys.id[in]":e})}return t}},"./adapters/REST/endpoints/webhook.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return m})),n.d(e,"getManyCallDetails",(function(){return v})),n.d(e,"getCallDetails",(function(){return b})),n.d(e,"getHealthStatus",(function(){return g})),n.d(e,"getMany",(function(){return w})),n.d(e,"create",(function(){return O})),n.d(e,"createWithId",(function(){return j})),n.d(e,"update",(function(){return S})),n.d(e,"del",(function(){return E}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=n("./adapters/REST/endpoints/utils.ts");function c(t){return c="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},c(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,s){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==c(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}var d=function(t){return"/spaces/".concat(t.spaceId,"/webhook_definitions")},y=function(t){return"/spaces/".concat(t.spaceId,"/webhooks")},h=function(t){return"".concat(d(t),"/").concat(t.webhookDefinitionId)},m=function(t,e){return i.get(t,h(e))},v=function(t,e){return i.get(t,function(t){return"".concat(y(t),"/").concat(t.webhookDefinitionId,"/calls")}(e),{params:Object(a.normalizeSelect)(e.query)})},b=function(t,e){return i.get(t,function(t){return"".concat(y(t),"/").concat(t.webhookDefinitionId,"/calls/").concat(t.callId)}(e))},g=function(t,e){return i.get(t,function(t){return"".concat(y(t),"/").concat(t.webhookDefinitionId,"/health")}(e))},w=function(t,e){return i.get(t,d(e),{params:Object(a.normalizeSelect)(e.query)})},O=function(t,e,n,r){var a=o()(n);return i.post(t,d(e),a,{headers:r})},j=function(t,e,n,r){var a=o()(n);return i.put(t,h(e),a,{headers:r})},S=function(){var t,e=(t=s().mark((function t(e,n,r,a){var c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(u=o()(r)).sys,t.abrupt("return",i.put(e,h(n),u,{headers:l({"X-Contentful-Version":null!==(c=r.sys.version)&&void 0!==c?c:0},a)}));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,c,"next",t)}function c(t){f(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,n,r,o){return e.apply(this,arguments)}}(),E=function(t,e){return i.del(t,h(e))}},"./adapters/REST/endpoints/workflow-definition.ts":function(t,e,n){n.r(e),n.d(e,"get",(function(){return y})),n.d(e,"getMany",(function(){return h})),n.d(e,"create",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=["version"];function c(t){return c="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},c(t)}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/workflow_definitions")},d=function(t){return"".concat(f(t),"/").concat(t.workflowDefinitionId)},y=function(t,e,n){return i.get(t,d(e),{headers:n})},h=function(t,e,n){return i.get(t,f(e),{headers:n,params:e.query})},m=function(t,e,n,r){var a=o()(n);return i.post(t,f(e),a,{headers:r})},v=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,d(e),c,{headers:l({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},b=function(t,e,n){var r=e.version,o=s(e,a);return i.del(t,d(o),{headers:l({"X-Contentful-Version":r},n)})}},"./adapters/REST/endpoints/workflow.ts":function(t,e,n){n.r(e),n.d(e,"getMany",(function(){return h})),n.d(e,"create",(function(){return m})),n.d(e,"update",(function(){return v})),n.d(e,"del",(function(){return b})),n.d(e,"complete",(function(){return g}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("./adapters/REST/endpoints/raw.ts"),a=["version"],c=["version"];function s(t){return s="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},s(t)}function u(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/workflows")},y=function(t){return"".concat(d(t),"/").concat(t.workflowId)},h=function(t,e,n){return i.get(t,d(e),{headers:n,params:e.query})},m=function(t,e,n,r){var a=o()(n);return i.post(t,d(e),a,{headers:r})},v=function(t,e,n,r){var a,c=o()(n);return delete c.sys,i.put(t,y(e),c,{headers:p({"X-Contentful-Version":null!==(a=n.sys.version)&&void 0!==a?a:0},r)})},b=function(t,e,n){var r=e.version,o=u(e,a);return i.del(t,y(o),{headers:p({"X-Contentful-Version":r},n)})},g=function(t,e,n){var r=e.version,o=u(e,c);return i.put(t,function(t){return"".concat(y(t),"/complete")}(o),null,{headers:p({"X-Contentful-Version":r},n)})}},"./adapters/REST/endpoints/workflows-changelog.ts":function(t,e,n){n.r(e),n.d(e,"getMany",(function(){return o}));var r=n("./adapters/REST/endpoints/raw.ts"),o=function(t,e,n){return r.get(t,function(t){return"/spaces/".concat(t.spaceId,"/environments/").concat(t.environmentId,"/workflows_changelog")}(e),{headers:n,params:e.query})}},"./adapters/REST/rest-adapter.ts":function(t,e,n){n.r(e),n.d(e,"RestAdapter",(function(){return b}));var r=n("../node_modules/axios/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("../node_modules/fast-copy/dist/umd/index.js"),c=n.n(a),s=n("./adapters/REST/endpoints/index.ts");function u(t){return u="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},u(t)}function l(){l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};s(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var s=f(t[r],t,i);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==u(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function h(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}var v={defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"},b=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,"params",void 0),!e.accessToken)throw new TypeError("Expected parameter accessToken");this.params=d(d({},v),c()(e))}var e,n,r,a,u;return e=t,n=[{key:"makeRequest",value:(a=l().mark((function t(e){var n,r,a,c,u,p,f,y,h,m,v;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.entityType,a=e.action,c=e.params,u=e.payload,p=e.headers,f=e.userAgent,y="delete"===a?"del":a,void 0!==(h=null===(n=s.default[r])||void 0===n?void 0:n[y])){t.next=5;break}throw new Error("Unknown endpoint");case 5:return m={"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":f},v=Object(i.createHttpClient)(o.a,d(d({},this.params),{},{headers:d(d({},m),this.params.headers)})),t.next=9,h(v,c,u,p);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})),u=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=a.apply(t,e);function i(t){p(o,n,r,i,c,"next",t)}function c(t){p(o,n,r,i,c,"throw",t)}i(void 0)}))},function(t){return u.apply(this,arguments)})}],n&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./common-types.ts":function(t,e,n){n.r(e),n.d(e,"ScheduledActionReferenceFilters",(function(){return r}));var r=function(t){return t.contentTypeAnnotationNotIn="sys.contentType.metadata.annotations.ContentType[nin]",t}({})},"./common-utils.ts":function(t,e,n){n.r(e),n.d(e,"wrapCollection",(function(){return l})),n.d(e,"wrapCursorPaginatedCollection",(function(){return p})),n.d(e,"isSuccessful",(function(){return f})),n.d(e,"shouldRePoll",(function(){return d})),n.d(e,"waitFor",(function(){return y}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o);function a(t){return a="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},a(t)}function c(){c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,c,s){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==a(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function s(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){s(i,r,o,a,c,"next",t)}function c(t){s(i,r,o,a,c,"throw",t)}a(void 0)}))}}var l=function(t){return function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c<o;c++)a[c-2]=arguments[c];var s=Object(r.toPlainObject)(i()(n));return s.items=s.items.map((function(n){return t.apply(void 0,[e,n].concat(a))})),s}},p=function(t){return function(e,n){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c<o;c++)a[c-2]=arguments[c];var s=Object(r.toPlainObject)(i()(n));return s.items=s.items.map((function(n){return t.apply(void 0,[e,n].concat(a))})),s}};function f(t){return t<300}function d(t){return[404,422,429,400].includes(t)}function y(){return h.apply(this,arguments)}function h(){return h=u(c().mark((function t(){var e,n=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:1e3,t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 2:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)}},"./constants/editor-interface-defaults/controls-defaults.ts":function(t,e,n){n.r(e),n.d(e,"FIELD_TYPES",(function(){return l})),n.d(e,"toInternalFieldType",(function(){return p})),n.d(e,"DEFAULTS_WIDGET",(function(){return f})),n.d(e,"DEFAULTS_SETTINGS",(function(){return d})),n.d(e,"toApiFieldType",(function(){return y})),n.d(e,"default",(function(){return h}));var r=n("./constants/editor-interface-defaults/types.ts");function o(t){return o="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},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=["Text","Symbol","Integer","Number","Boolean"],u={Symbol:{type:"Symbol"},Text:{type:"Text"},RichText:{type:"RichText"},Integer:{type:"Integer"},Number:{type:"Number"},Boolean:{type:"Boolean"},Date:{type:"Date"},Location:{type:"Location"},Object:{type:"Object"},File:{type:"File"},Entry:{type:"Link",linkType:"Entry"},Asset:{type:"Link",linkType:"Asset"},Resource:{type:"ResourceLink"},Symbols:{type:"Array",items:{type:"Symbol"}},Entries:{type:"Array",items:{type:"Link",linkType:"Entry"}},Assets:{type:"Array",items:{type:"Link",linkType:"Asset"}},Resources:{type:"Array",items:{type:"ResourceLink"}}},l=Object.keys(u);function p(t){return l.find((function(e){var n=u[e],r={type:t.type,linkType:t.linkType,items:t.items};return r.items&&(r.items={type:r.items.type,linkType:r.items.linkType}),"Link"===n.type?n.linkType===r.linkType:"Array"===n.type&&n.items&&r.items?"Link"===n.items.type?n.items.linkType===r.items.linkType:n.items.type===r.items.type:n.type===r.type}))}var f={Text:{widgetId:"markdown"},Symbol:{widgetId:"singleLine"},Integer:{widgetId:"numberEditor"},Number:{widgetId:"numberEditor"},Boolean:{widgetId:"boolean"},Date:{widgetId:"datePicker"},Location:{widgetId:"locationEditor"},Object:{widgetId:"objectEditor"},RichText:{widgetId:"richTextEditor"},Entry:{widgetId:"entryLinkEditor"},Asset:{widgetId:"assetLinkEditor"},Symbols:{widgetId:"tagEditor"},Entries:{widgetId:"entryLinksEditor"},Assets:{widgetId:"assetLinksEditor"},File:{widgetId:"fileEditor"},Resource:{widgetId:"resourceLinkEditor"},Resources:{widgetId:"resourceLinksEditor"}},d={Boolean:{falseLabel:"No",helpText:null,trueLabel:"Yes"},Date:{helpText:null,ampm:"24",format:"timeZ"},Entry:{helpText:null,showCreateEntityAction:!0,showLinkEntityAction:!0},Asset:{helpText:null,showCreateEntityAction:!0,showLinkEntityAction:!0},Entries:{helpText:null,bulkEditing:!1,showCreateEntityAction:!0,showLinkEntityAction:!0},Assets:{helpText:null,showCreateEntityAction:!0,showLinkEntityAction:!0}};function y(t){return u[t]}function h(t){var e=p(t);if(!e)throw new Error("Invalid field type");return(t.validations||[]).find((function(t){return"in"in t}))&&s.includes(e)?{widgetId:"dropdown",fieldId:t.id,widgetNameSpace:"builtin"}:function(t,e){var n=a(a({},f[t]),{},{settings:{helpText:null},widgetNamespace:"builtin",fieldId:e});return Object(r.in_)(t,d)&&(n.settings=a(a({},n.settings),d[t])),n}(e,t.id)}},"./constants/editor-interface-defaults/editors-defaults.ts":function(t,e,n){n.r(e),n.d(e,"EntryEditorWidgetTypes",(function(){return o})),n.d(e,"EntryConfiguration",(function(){return i}));var r=n("./constants/editor-interface-defaults/types.ts"),o={DEFAULT_EDITOR:{name:"Editor",id:r.DEFAULT_EDITOR_ID,icon:"Entry"},REFERENCE_TREE:{name:"References",id:"reference-tree",icon:"References"},TAGS_EDITOR:{name:"Tags",id:"tags-editor",icon:"Tags"}},i=[{widgetId:o.DEFAULT_EDITOR.id,widgetNamespace:r.WidgetNamespace.EDITOR_BUILTIN,name:o.DEFAULT_EDITOR.name},{widgetId:o.REFERENCE_TREE.id,widgetNamespace:r.WidgetNamespace.EDITOR_BUILTIN,name:o.REFERENCE_TREE.name},{widgetId:o.TAGS_EDITOR.id,widgetNamespace:r.WidgetNamespace.EDITOR_BUILTIN,name:o.TAGS_EDITOR.name}]},"./constants/editor-interface-defaults/index.ts":function(t,e,n){n.r(e);var r=n("./constants/editor-interface-defaults/sidebar-defaults.ts"),o=n("./constants/editor-interface-defaults/editors-defaults.ts"),i=n("./constants/editor-interface-defaults/controls-defaults.ts");e.default={SidebarEntryConfiguration:r.SidebarEntryConfiguration,SidebarAssetConfiguration:r.SidebarAssetConfiguration,EntryConfiguration:o.EntryConfiguration,getDefaultControlOfField:i.default}},"./constants/editor-interface-defaults/sidebar-defaults.ts":function(t,e,n){n.r(e),n.d(e,"SidebarEntryConfiguration",(function(){return v})),n.d(e,"SidebarAssetConfiguration",(function(){return b}));var r=n("./constants/editor-interface-defaults/types.ts"),o="users-widget",i="content-preview-widget",a="translation-widget",c="incoming-links-widget",s="releases-widget",u="versions-widget",l={widgetId:"publication-widget",widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Publish & Status",description:"Built-in - View entry status, publish, etc."},p={widgetId:s,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Release",description:"Built-in - View release, add to it, etc."},f={widgetId:i,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Preview",description:"Built-in - Displays preview functionality."},d={widgetId:c,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Links",description:"Built-in - Shows where an entry is linked."},y={widgetId:a,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Translation",description:"Built-in - Manage which translations are visible."},h={widgetId:u,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Versions",description:"Built-in - View previously published versions. Available only for master environment."},m={widgetId:o,widgetNamespace:r.WidgetNamespace.SIDEBAR_BUILTIN,name:"Users",description:"Built-in - Displays users on the same entry."},v=[l,p,f,d,y,h,m],b=[l,p,d,y,m]},"./constants/editor-interface-defaults/types.ts":function(t,e,n){n.r(e),n.d(e,"WidgetNamespace",(function(){return r})),n.d(e,"DEFAULT_EDITOR_ID",(function(){return o})),n.d(e,"in_",(function(){return i}));var r=function(t){return t.BUILTIN="builtin",t.EXTENSION="extension",t.SIDEBAR_BUILTIN="sidebar-builtin",t.APP="app",t.EDITOR_BUILTIN="editor-builtin",t}({}),o="default-editor",i=function(t,e){return t in e}},"./contentful-management.ts":function(t,e,n){n.r(e),n.d(e,"createClient",(function(){return m}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./create-adapter.ts"),i=n("./create-contentful-api.ts"),a=n("./plain/plain-client.ts"),c=n("./constants/editor-interface-defaults/index.ts");n.d(e,"editorInterfaceDefaults",(function(){return c}));var s=n("./plain/as-iterator.ts");n.d(e,"asIterator",(function(){return s.asIterator}));var u=n("./plain/checks.ts");n.d(e,"isDraft",(function(){return u.isDraft})),n.d(e,"isPublished",(function(){return u.isPublished})),n.d(e,"isUpdated",(function(){return u.isUpdated}));var l=n("./adapters/REST/rest-adapter.ts");n.d(e,"RestAdapter",(function(){return l.RestAdapter}));var p=n("./export-types.ts");function f(t){return f="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},f(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="plain"===e.type?"contentful-management-plain.js":"contentful-management.js",c=Object(r.getUserAgentHeader)("".concat(n,"/").concat("0.0.0-determined-by-semantic-release"),t.application,t.integration,t.feature),s=Object(o.createAdapter)(t),u=function(t){return s.makeRequest(y(y({},t),{},{userAgent:c}))};return"plain"===e.type?Object(a.createPlainClient)(u,e.defaults):Object(i.default)(u)}n.d(e,"ScheduledActionReferenceFilters",(function(){return p.ScheduledActionReferenceFilters}))},"./create-adapter.ts":function(t,e,n){n.r(e),n.d(e,"createAdapter",(function(){return o}));var r=n("./adapters/REST/rest-adapter.ts");function o(t){return"apiAdapter"in t?t.apiAdapter:new r.RestAdapter(t)}},"./create-app-definition-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return i}));var r=n("./entities/index.ts"),o=n("./entities/app-definition.ts");function i(t){var e=r.default.appBundle,n=e.wrapAppBundle,i=e.wrapAppBundleCollection,a=function(t){return{appDefinitionId:t.sys.id,organizationId:t.sys.organization.sys.id}};return{update:function(){var e=this.toPlainObject();return t({entityType:"AppDefinition",action:"update",params:a(e),headers:{},payload:e}).then((function(e){return Object(o.wrapAppDefinition)(t,e)}))},delete:function(){var e=this.toPlainObject();return t({entityType:"AppDefinition",action:"delete",params:a(e)})},getAppBundle:function(e){var r=this.toPlainObject();return t({entityType:"AppBundle",action:"get",params:{appBundleId:e,appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id}}).then((function(e){return n(t,e)}))},getAppBundles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppBundle",action:"getMany",params:{organizationId:n.sys.organization.sys.id,appDefinitionId:n.sys.id,query:e}}).then((function(e){return i(t,e)}))},createAppBundle:function(e){var r=this.toPlainObject();return t({entityType:"AppBundle",action:"create",params:{appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id},payload:e}).then((function(e){return n(t,e)}))},getInstallationsForOrg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppDefinition",action:"getInstallationsForOrg",params:{appDefinitionId:n.sys.id,organizationId:n.sys.organization.sys.id,query:e}})}}}},"./create-contentful-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return c}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./entities/index.ts"),i=["url"];function a(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function c(t){var e=o.default.space,n=e.wrapSpace,c=e.wrapSpaceCollection,s=o.default.user.wrapUser,u=o.default.personalAccessToken,l=u.wrapPersonalAccessToken,p=u.wrapPersonalAccessTokenCollection,f=o.default.organization,d=f.wrapOrganization,y=f.wrapOrganizationCollection,h=o.default.usage.wrapUsageCollection,m=o.default.appDefinition.wrapAppDefinition,v=o.default.environmentTemplate,b=v.wrapEnvironmentTemplate,g=v.wrapEnvironmentTemplateCollection;return{getEnvironmentTemplates:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t({entityType:"EnvironmentTemplate",action:"getMany",params:{organizationId:e,query:Object(r.createRequestConfig)({query:n}).params}}).then((function(n){return g(t,n,e)}))},getEnvironmentTemplate:function(e){var n=e.organizationId,r=e.environmentTemplateId,o=e.version;return t({entityType:"EnvironmentTemplate",action:"get",params:{organizationId:n,environmentTemplateId:r,version:o}}).then((function(e){return b(t,e,n)}))},createEnvironmentTemplate:function(e,n){return t({entityType:"EnvironmentTemplate",action:"create",params:{organizationId:e},payload:n}).then((function(n){return b(t,n,e)}))},getSpaces:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t({entityType:"Space",action:"getMany",params:{query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return c(t,e)}))},getSpace:function(e){return t({entityType:"Space",action:"get",params:{spaceId:e}}).then((function(e){return n(t,e)}))},createSpace:function(e,r){return t({entityType:"Space",action:"create",params:{organizationId:r},payload:e}).then((function(e){return n(t,e)}))},getOrganization:function(e){return t({entityType:"Organization",action:"get",params:{organizationId:e}}).then((function(e){return d(t,e)}))},getOrganizations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t({entityType:"Organization",action:"getMany",params:{query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return y(t,e)}))},getCurrentUser:function(e){return t({entityType:"User",action:"getCurrent",params:e}).then((function(e){return s(t,e)}))},getAppDefinition:function(e){return t({entityType:"AppDefinition",action:"get",params:e}).then((function(e){return m(t,e)}))},createPersonalAccessToken:function(e){return t({entityType:"PersonalAccessToken",action:"create",params:{},payload:e}).then((function(e){return l(t,e)}))},getPersonalAccessToken:function(e){return t({entityType:"PersonalAccessToken",action:"get",params:{tokenId:e}}).then((function(e){return l(t,e)}))},getPersonalAccessTokens:function(){return t({entityType:"PersonalAccessToken",action:"getMany",params:{}}).then((function(e){return p(t,e)}))},getOrganizationUsage:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t({entityType:"Usage",action:"getManyForOrganization",params:{organizationId:e,query:n}}).then((function(e){return h(t,e)}))},getSpaceUsage:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t({entityType:"Usage",action:"getManyForSpace",params:{organizationId:e,query:n}}).then((function(e){return h(t,e)}))},rawRequest:function(e){var n=e.url,r=a(e,i);return t({entityType:"Http",action:"request",params:{url:n,config:r}})}}}},"./create-entry-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return u}));var r=n("./plain/checks.ts"),o=n("./entities/index.ts");function i(t){return i="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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=o.default.entry,n=e.wrapEntry,i=e.wrapEntryCollection,a=o.default.snapshot,s=a.wrapSnapshot,u=a.wrapSnapshotCollection,l=o.default.task,p=l.wrapTask,f=l.wrapTaskCollection,d=o.default.comment,y=d.wrapComment,h=d.wrapCommentCollection,m=function(t){var e=t.toPlainObject();return{params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,entryId:e.sys.id},raw:e}};return{update:function(){var e=m(this),r=e.raw,o=e.params;return t({entityType:"Entry",action:"update",params:o,payload:r}).then((function(e){return n(t,e)}))},patch:function(e){var r=m(this),o=r.raw,i=r.params;return t({entityType:"Entry",action:"patch",params:c(c({},i),{},{version:o.sys.version}),payload:e}).then((function(e){return n(t,e)}))},delete:function(){var e=m(this).params;return t({entityType:"Entry",action:"delete",params:e})},publish:function(){var e=m(this),r=e.raw,o=e.params;return t({entityType:"Entry",action:"publish",params:o,payload:r}).then((function(e){return n(t,e)}))},unpublish:function(){var e=m(this).params;return t({entityType:"Entry",action:"unpublish",params:e}).then((function(e){return n(t,e)}))},archive:function(){var e=m(this).params;return t({entityType:"Entry",action:"archive",params:e}).then((function(e){return n(t,e)}))},unarchive:function(){var e=m(this).params;return t({entityType:"Entry",action:"unarchive",params:e}).then((function(e){return n(t,e)}))},getSnapshots:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=m(this),r=n.params;return t({entityType:"Snapshot",action:"getManyForEntry",params:c(c({},r),{},{query:e})}).then((function(e){return u(t,e)}))},getSnapshot:function(e){var n=m(this).params;return t({entityType:"Snapshot",action:"getForEntry",params:c(c({},n),{},{snapshotId:e})}).then((function(e){return s(t,e)}))},createComment:function(e){var n=m(this).params;return t({entityType:"Comment",action:"create",params:{spaceId:n.spaceId,environmentId:n.environmentId,parentEntityId:n.entryId,parentEntityType:"Entry"},payload:e}).then((function(e){return y(t,e)}))},getComments:function(){var e=m(this).params;return t({entityType:"Comment",action:"getMany",params:e}).then((function(e){return h(t,e)}))},getComment:function(e){var n=m(this).params;return t({entityType:"Comment",action:"get",params:c(c({},n),{},{commentId:e})}).then((function(e){return y(t,e)}))},createTask:function(e){var n=m(this).params;return t({entityType:"Task",action:"create",params:n,payload:e}).then((function(e){return p(t,e)}))},getTasks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=m(this),r=n.params;return t({entityType:"Task",action:"getMany",params:c(c({},r),{},{query:e})}).then((function(e){return f(t,e)}))},getTask:function(e){var n=m(this).params;return t({entityType:"Task",action:"get",params:c(c({},n),{},{taskId:e})}).then((function(e){return p(t,e)}))},isPublished:function(){var t=this.toPlainObject();return r.isPublished(t)},isUpdated:function(){var t=this.toPlainObject();return r.isUpdated(t)},isDraft:function(){var t=this.toPlainObject();return r.isDraft(t)},isArchived:function(){var t=this.toPlainObject();return r.isArchived(t)},references:function(e){var n=this.toPlainObject();return t({entityType:"Entry",action:"references",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.environment.sys.id,entryId:n.sys.id,include:null==e?void 0:e.include}}).then((function(e){return i(t,e)}))}}}},"./create-environment-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return w}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./entities/index.ts"),i=n("./entities/release-action.ts"),a=n("./entities/release.ts"),c=n("./entities/tag.ts"),s=n("./entities/ui-config.ts"),u=n("./entities/user-ui-config.ts"),l=n("./entities/environment-template-installation.ts");function p(t){return p="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},p(t)}var f=["installationId"];function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===p(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function v(){v=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function d(){}function y(){}function h(){}var m={};s(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(m=g);var w=h.prototype=d.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var s=l(t[r],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==p(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=h,r(w,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:y,configurable:!0}),y.displayName=s(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function b(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){b(i,r,o,a,c,"next",t)}function c(t){b(i,r,o,a,c,"throw",t)}a(void 0)}))}}function w(t){var e=o.default.environment.wrapEnvironment,n=o.default.contentType,p=n.wrapContentType,d=n.wrapContentTypeCollection,h=o.default.entry,b=h.wrapEntry,w=h.wrapEntryCollection,O=o.default.asset,j=O.wrapAsset,S=O.wrapAssetCollection,E=o.default.assetKey.wrapAssetKey,P=o.default.locale,I=P.wrapLocale,T=P.wrapLocaleCollection,x=o.default.snapshot.wrapSnapshotCollection,A=o.default.editorInterface,_=A.wrapEditorInterface,k=A.wrapEditorInterfaceCollection,L=o.default.upload.wrapUpload,R=o.default.extension,C=R.wrapExtension,D=R.wrapExtensionCollection,M=o.default.appInstallation,N=M.wrapAppInstallation,z=M.wrapAppInstallationCollection,F=o.default.appSignedRequest.wrapAppSignedRequest,U=o.default.appActionCall.wrapAppActionCall,B=o.default.bulkAction.wrapBulkAction;return{delete:function(){var e=this.toPlainObject();return t({entityType:"Environment",action:"delete",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(){}))},update:function(){var n=this.toPlainObject();return t({entityType:"Environment",action:"update",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:n}).then((function(n){return e(t,n)}))},getEntryFromData:function(e){return b(t,e)},getAssetFromData:function(e){return j(t,e)},getBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,bulkActionId:e}}).then((function(e){return B(t,e)}))},createPublishBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"publish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return B(t,e)}))},createValidateBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"validate",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return B(t,e)}))},createUnpublishBulkAction:function(e){var n=this.toPlainObject();return t({entityType:"BulkAction",action:"unpublish",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return B(t,e)}))},getContentType:function(e){var n=this.toPlainObject();return t({entityType:"ContentType",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:e}}).then((function(e){return p(t,e)}))},getContentTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"ContentType",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return d(t,e)}))},createContentType:function(e){var n=this.toPlainObject();return t({entityType:"ContentType",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return p(t,e)}))},createContentTypeWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"ContentType",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:e},payload:n}).then((function(e){return p(t,e)}))},getEditorInterfaceForContentType:function(e){var n=this.toPlainObject();return t({entityType:"EditorInterface",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:e}}).then((function(e){return _(t,e)}))},getEditorInterfaces:function(){var e=this.toPlainObject();return t({entityType:"EditorInterface",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return k(t,e)}))},getEntry:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.toPlainObject();return t({entityType:"Entry",action:"get",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,entryId:e,query:Object(r.createRequestConfig)({query:n}).params}}).then((function(e){return b(t,e)}))},deleteEntry:function(e){var n=this.toPlainObject();return t({entityType:"Entry",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,entryId:e}}).then((function(){}))},getEntries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Entry",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return w(t,e)}))},getPublishedEntries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Entry",action:"getPublished",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return w(t,e)}))},createEntry:function(e,n){var r=this.toPlainObject();return t({entityType:"Entry",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:e},payload:n}).then((function(e){return b(t,e)}))},createEntryWithId:function(e,n,r){var o=this.toPlainObject();return t({entityType:"Entry",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,entryId:n,contentTypeId:e},payload:r}).then((function(e){return b(t,e)}))},getEntryReferences:function(e,n){var r=this.toPlainObject();return t({entityType:"Entry",action:"references",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:e,include:null==n?void 0:n.include}}).then((function(e){return w(t,e)}))},getAsset:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.toPlainObject();return t({entityType:"Asset",action:"get",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,assetId:e,query:Object(r.createRequestConfig)({query:n}).params}}).then((function(e){return j(t,e)}))},getAssets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Asset",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return S(t,e)}))},createAsset:function(e){var n=this.toPlainObject();return t({entityType:"Asset",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return j(t,e)}))},createAssetWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Asset",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,assetId:e},payload:n}).then((function(e){return j(t,e)}))},createAssetFromFiles:function(e,n){var r=this.toPlainObject();return t({entityType:"Asset",action:"createFromFiles",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,uploadTimeout:null==n?void 0:n.uploadTimeout},payload:e}).then((function(e){return j(t,e)}))},createAssetKey:function(e){var n=this.toPlainObject();return t({entityType:"AssetKey",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return E(t,e)}))},getUpload:function(e){var n=this.toPlainObject();return t({entityType:"Upload",action:"get",params:{spaceId:n.sys.space.sys.id,uploadId:e}}).then((function(e){return L(t,e)}))},createUpload:function(e){var n=this.toPlainObject();return t({entityType:"Upload",action:"create",params:{spaceId:n.sys.space.sys.id},payload:e}).then((function(e){return L(t,e)}))},getLocale:function(e){var n=this.toPlainObject();return t({entityType:"Locale",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,localeId:e}}).then((function(e){return I(t,e)}))},getLocales:function(){var e=this.toPlainObject();return t({entityType:"Locale",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return T(t,e)}))},createLocale:function(e){var n=this.toPlainObject();return t({entityType:"Locale",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return I(t,e)}))},getUiExtension:function(e){var n=this.toPlainObject();return t({entityType:"Extension",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,extensionId:e}}).then((function(e){return C(t,e)}))},getUiExtensions:function(){var e=this.toPlainObject();return t({entityType:"Extension",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return D(t,e)}))},createUiExtension:function(e){var n=this.toPlainObject();return t({entityType:"Extension",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return C(t,e)}))},createUiExtensionWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Extension",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,extensionId:e},payload:n}).then((function(e){return C(t,e)}))},createAppInstallation:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.acceptAllTerms,i=this.toPlainObject();return t({entityType:"AppInstallation",action:"upsert",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,appDefinitionId:e,acceptAllTerms:o},payload:n}).then((function(e){return N(t,e)}))},getAppInstallation:function(e){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,appDefinitionId:e}}).then((function(e){return N(t,e)}))},getAppInstallations:function(){var e=this.toPlainObject();return t({entityType:"AppInstallation",action:"getMany",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.id}}).then((function(e){return z(t,e)}))},createAppActionCall:function(e,n,r){var o=this.toPlainObject();return t({entityType:"AppActionCall",action:"create",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,appDefinitionId:e,appActionId:n},payload:r}).then((function(e){return U(t,e)}))},createAppSignedRequest:function(e,n){var r=this.toPlainObject();return t({entityType:"AppSignedRequest",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return F(t,e)}))},getEntrySnapshots:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Snapshot",action:"getManyForEntry",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:e,query:n}}).then((function(e){return x(t,e)}))},getContentTypeSnapshots:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.toPlainObject();return t({entityType:"Snapshot",action:"getManyForContentType",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:e,query:n}}).then((function(e){return x(t,e)}))},createTag:function(e,n,r){var o=this.toPlainObject();return t({entityType:"Tag",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,tagId:e},payload:{name:n,sys:{visibility:null!=r?r:"private"}}}).then((function(e){return Object(c.wrapTag)(t,e)}))},getTags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Tag",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return Object(c.wrapTagCollection)(t,e)}))},getTag:function(e){var n=this.toPlainObject();return t({entityType:"Tag",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,tagId:e}}).then((function(e){return Object(c.wrapTag)(t,e)}))},getRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:e}}).then((function(e){return Object(a.wrapRelease)(t,e)}))},getReleases:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"query",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:e}}).then((function(e){return Object(a.wrapReleaseCollection)(t,e)}))},createRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:e}).then((function(e){return Object(a.wrapRelease)(t,e)}))},updateRelease:function(e){var n=e.releaseId,r=e.payload,o=e.version,i=this.toPlainObject();return t({entityType:"Release",action:"update",params:{spaceId:i.sys.space.sys.id,environmentId:i.sys.id,releaseId:n,version:o},payload:r}).then((function(e){return Object(a.wrapRelease)(t,e)}))},deleteRelease:function(e){var n=this.toPlainObject();return t({entityType:"Release",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,releaseId:e}})},publishRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"publish",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Object(i.wrapReleaseAction)(t,e)}))},unpublishRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"unpublish",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Object(i.wrapReleaseAction)(t,e)}))},validateRelease:function(e){var n=e.releaseId,r=e.payload,o=this.toPlainObject();return t({entityType:"Release",action:"validate",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n},payload:r}).then((function(e){return Object(i.wrapReleaseAction)(t,e)}))},archiveRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"archive",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Object(a.wrapRelease)(t,e)}))},unarchiveRelease:function(e){var n=e.releaseId,r=e.version,o=this.toPlainObject();return t({entityType:"Release",action:"unarchive",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:n,version:r}}).then((function(e){return Object(a.wrapRelease)(t,e)}))},getReleaseAction:function(e){var n=e.actionId,r=e.releaseId,o=this.toPlainObject();return t({entityType:"ReleaseAction",action:"get",params:{actionId:n,spaceId:o.sys.space.sys.id,environmentId:o.sys.id,releaseId:r}}).then((function(e){return Object(i.wrapReleaseAction)(t,e)}))},getReleaseActions:function(e){var n=e.query,r=this.toPlainObject();return t({entityType:"ReleaseAction",action:"getMany",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,query:n}}).then((function(e){return Object(i.wrapReleaseActionCollection)(t,e)}))},getUIConfig:function(){var e=this;return g(v().mark((function n(){var r,o;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.toPlainObject(),n.next=3,t({entityType:"UIConfig",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id}});case 3:return o=n.sent,n.abrupt("return",Object(s.wrapUIConfig)(t,o));case 5:case"end":return n.stop()}}),n)})))()},getUserUIConfig:function(){var e=this;return g(v().mark((function n(){var r,o;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.toPlainObject(),n.next=3,t({entityType:"UserUIConfig",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id}});case 3:return o=n.sent,n.abrupt("return",Object(u.wrapUserUIConfig)(t,o));case 5:case"end":return n.stop()}}),n)})))()},getEnvironmentTemplateInstallations:function(e){var n=arguments,o=this;return g(v().mark((function i(){var a,c,s,u;return v().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=n.length>1&&void 0!==n[1]?n[1]:{},c=a.installationId,s=m(a,f),u=o.toPlainObject(),i.abrupt("return",t({entityType:"EnvironmentTemplateInstallation",action:"getForEnvironment",params:y(y({environmentTemplateId:e},c&&{installationId:c}),{},{query:y({},Object(r.createRequestConfig)({query:s}).params),spaceId:u.sys.space.sys.id,environmentId:u.sys.id})}).then((function(e){return Object(l.wrapEnvironmentTemplateInstallationCollection)(t,e)})));case 4:case"end":return i.stop()}}),i)})))()}}}},"./create-environment-template-api.ts":function(t,e,n){n.r(e),n.d(e,"createEnvironmentTemplateApi",(function(){return p}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./entities/index.ts");function i(t){return i="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},i(t)}var a=["spaceId","environmentId"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function p(t,e){var n=o.default.environmentTemplate,i=n.wrapEnvironmentTemplate,c=n.wrapEnvironmentTemplateCollection,u=o.default.environmentTemplateInstallation.wrapEnvironmentTemplateInstallationCollection;return{update:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"update",params:{organizationId:e,environmentTemplateId:n.sys.id},payload:n}).then((function(n){return i(t,n,e)}))},updateVersion:function(n){var r=n.versionName,o=n.versionDescription,a=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"versionUpdate",params:{organizationId:e,environmentTemplateId:a.sys.id,version:a.sys.version},payload:{versionName:r,versionDescription:o}}).then((function(n){return i(t,n,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"delete",params:{organizationId:e,environmentTemplateId:n.sys.id}})},getVersions:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"versions",params:{organizationId:e,environmentTemplateId:n.sys.id}}).then((function(n){return c(t,n,e)}))},getInstallations:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.spaceId,i=n.environmentId,c=l(n,a),p=this.toPlainObject();return t({entityType:"EnvironmentTemplateInstallation",action:"getMany",params:{organizationId:e,environmentTemplateId:p.sys.id,query:s({},Object(r.createRequestConfig)({query:c}).params),spaceId:o,environmentId:i}}).then((function(e){return u(t,e)}))},validate:function(e){var n=e.spaceId,r=e.environmentId,o=e.version,i=e.takeover,a=e.changeSet,c=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"validate",params:{spaceId:n,version:o,environmentId:r,environmentTemplateId:c.sys.id},payload:s(s({},i&&{takeover:i}),a&&{changeSet:a})})},install:function(e){var n=e.spaceId,r=e.environmentId,o=e.installation,i=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"install",params:{spaceId:n,environmentId:r,environmentTemplateId:i.sys.id},payload:o})},disconnect:function(e){var n=e.spaceId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"EnvironmentTemplate",action:"disconnect",params:{spaceId:n,environmentId:r,environmentTemplateId:o.sys.id}})}}}},"./create-organization-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./entities/index.ts");function i(t){return i="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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=o.default.appDefinition,n=e.wrapAppDefinition,i=e.wrapAppDefinitionCollection,a=o.default.user,s=a.wrapUser,u=a.wrapUserCollection,l=o.default.organizationMembership,p=l.wrapOrganizationMembership,f=l.wrapOrganizationMembershipCollection,d=o.default.teamMembership,y=d.wrapTeamMembership,h=d.wrapTeamMembershipCollection,m=o.default.teamSpaceMembership,v=m.wrapTeamSpaceMembership,b=m.wrapTeamSpaceMembershipCollection,g=o.default.team,w=g.wrapTeam,O=g.wrapTeamCollection,j=o.default.spaceMembership,S=j.wrapSpaceMembership,E=j.wrapSpaceMembershipCollection,P=o.default.organizationInvitation.wrapOrganizationInvitation,I=o.default.appUpload.wrapAppUpload,T=o.default.appSigningSecret.wrapAppSigningSecret,x=o.default.appDetails.wrapAppDetails,A=o.default.appAction,_=A.wrapAppAction,k=A.wrapAppActionCollection;return{getUser:function(e){var n=this.toPlainObject();return t({entityType:"User",action:"getForOrganization",params:{organizationId:n.sys.id,userId:e}}).then((function(e){return s(t,e)}))},getUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"User",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return u(t,e)}))},getOrganizationMembership:function(e){var n=this.toPlainObject().sys.id;return t({entityType:"OrganizationMembership",action:"get",params:{organizationId:n,organizationMembershipId:e}}).then((function(e){return p(t,e,n)}))},getOrganizationMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"getMany",params:c({organizationId:n.sys.id},e)}).then((function(e){return f(t,e,n.sys.id)}))},createTeam:function(e){var n=this.toPlainObject();return t({entityType:"Team",action:"create",params:{organizationId:n.sys.id},payload:e}).then((function(e){return w(t,e)}))},getTeam:function(e){var n=this.toPlainObject();return t({entityType:"Team",action:"get",params:{organizationId:n.sys.id,teamId:e}}).then((function(e){return w(t,e)}))},getTeams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Team",action:"getMany",params:{organizationId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return O(t,e)}))},createTeamMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamMembership",action:"create",params:{organizationId:r.sys.id,teamId:e},payload:n}).then((function(e){return y(t,e)}))},getTeamMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamMembership",action:"get",params:{organizationId:r.sys.id,teamId:e,teamMembershipId:n}}).then((function(e){return y(t,e)}))},getTeamMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.teamId,o=e.query,i=void 0===o?{}:o,a=this.toPlainObject();return n?t({entityType:"TeamMembership",action:"getManyForTeam",params:{organizationId:a.sys.id,teamId:n,query:Object(r.createRequestConfig)({query:i}).params}}).then((function(e){return h(t,e)})):t({entityType:"TeamMembership",action:"getManyForOrganization",params:{organizationId:a.sys.id,query:Object(r.createRequestConfig)({query:i}).params}}).then((function(e){return h(t,e)}))},getTeamSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Object(r.createRequestConfig)({query:e.query||{}}).params,teamId:e.teamId}}).then((function(e){return b(t,e)}))},getTeamSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,teamSpaceMembershipId:e}}).then((function(e){return v(t,e)}))},getOrganizationSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,spaceMembershipId:e}}).then((function(e){return S(t,e)}))},getOrganizationSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return E(t,e)}))},getOrganizationInvitation:function(e){var n=this.toPlainObject();return t({entityType:"OrganizationInvitation",action:"get",params:{organizationId:n.sys.id,invitationId:e}}).then((function(e){return P(t,e)}))},createOrganizationInvitation:function(e){var n=this.toPlainObject();return t({entityType:"OrganizationInvitation",action:"create",params:{organizationId:n.sys.id},payload:e}).then((function(e){return P(t,e)}))},createAppDefinition:function(e){var r=this.toPlainObject();return t({entityType:"AppDefinition",action:"create",params:{organizationId:r.sys.id},payload:e}).then((function(e){return n(t,e)}))},getAppDefinitions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"AppDefinition",action:"getMany",params:{organizationId:n.sys.id,query:e}}).then((function(e){return i(t,e)}))},getAppDefinition:function(e){var r=this.toPlainObject();return t({entityType:"AppDefinition",action:"get",params:{organizationId:r.sys.id,appDefinitionId:e}}).then((function(e){return n(t,e)}))},getAppUpload:function(e){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"get",params:{organizationId:n.sys.id,appUploadId:e}}).then((function(e){return I(t,e)}))},createAppUpload:function(e){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"create",params:{organizationId:n.sys.id},payload:{file:e}}).then((function(e){return I(t,e)}))},upsertAppSigningSecret:function(e,n){var r=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"upsert",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return T(t,e)}))},getAppSigningSecret:function(e){var n=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"get",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return T(t,e)}))},deleteAppSigningSecret:function(e){var n=this.toPlainObject();return t({entityType:"AppSigningSecret",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(){}))},upsertAppDetails:function(e,n){var r=this.toPlainObject();return t({entityType:"AppDetails",action:"upsert",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return x(t,e)}))},getAppDetails:function(e){var n=this.toPlainObject();return t({entityType:"AppDetails",action:"get",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return x(t,e)}))},deleteAppDetails:function(e){var n=this.toPlainObject();return t({entityType:"AppDetails",action:"delete",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(){}))},createAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"create",params:{organizationId:r.sys.id,appDefinitionId:e},payload:n}).then((function(e){return _(t,e)}))},updateAppAction:function(e,n,r){var o=this.toPlainObject();return t({entityType:"AppAction",action:"update",params:{organizationId:o.sys.id,appDefinitionId:e,appActionId:n},payload:r}).then((function(e){return _(t,e)}))},deleteAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"delete",params:{organizationId:r.sys.id,appDefinitionId:e,appActionId:n}}).then((function(t){}))},getAppAction:function(e,n){var r=this.toPlainObject();return t({entityType:"AppAction",action:"get",params:{organizationId:r.sys.id,appDefinitionId:e,appActionId:n}}).then((function(e){return _(t,e)}))},getAppActions:function(e){var n=this.toPlainObject();return t({entityType:"AppAction",action:"getMany",params:{organizationId:n.sys.id,appDefinitionId:e}}).then((function(e){return k(t,e)}))}}}},"./create-space-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return i}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("./entities/index.ts");function i(t){var e=o.default.space.wrapSpace,n=o.default.environment,i=n.wrapEnvironment,a=n.wrapEnvironmentCollection,c=o.default.webhook,s=c.wrapWebhook,u=c.wrapWebhookCollection,l=o.default.role,p=l.wrapRole,f=l.wrapRoleCollection,d=o.default.user,y=d.wrapUser,h=d.wrapUserCollection,m=o.default.spaceMember,v=m.wrapSpaceMember,b=m.wrapSpaceMemberCollection,g=o.default.spaceMembership,w=g.wrapSpaceMembership,O=g.wrapSpaceMembershipCollection,j=o.default.teamSpaceMembership,S=j.wrapTeamSpaceMembership,E=j.wrapTeamSpaceMembershipCollection,P=o.default.team.wrapTeamCollection,I=o.default.apiKey,T=I.wrapApiKey,x=I.wrapApiKeyCollection,A=o.default.environmentAlias,_=A.wrapEnvironmentAlias,k=A.wrapEnvironmentAliasCollection,L=o.default.previewApiKey,R=L.wrapPreviewApiKey,C=L.wrapPreviewApiKeyCollection,D=o.default.scheduledAction,M=D.wrapScheduledAction,N=D.wrapScheduledActionCollection;return{delete:function(){var e=this.toPlainObject();return t({entityType:"Space",action:"delete",params:{spaceId:e.sys.id}})},update:function(){var n=this.toPlainObject();return t({entityType:"Space",action:"update",params:{spaceId:n.sys.id},payload:n,headers:{}}).then((function(n){return e(t,n)}))},getEnvironment:function(e){var n=this.toPlainObject();return t({entityType:"Environment",action:"get",params:{spaceId:n.sys.id,environmentId:e}}).then((function(e){return i(t,e)}))},getEnvironments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Environment",action:"getMany",params:{spaceId:n.sys.id,query:e}}).then((function(e){return a(t,e)}))},createEnvironment:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Environment",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return i(t,e)}))},createEnvironmentWithId:function(e,n,r){var o=this.toPlainObject();return t({entityType:"Environment",action:"createWithId",params:{spaceId:o.sys.id,environmentId:e,sourceEnvironmentId:r},payload:n}).then((function(e){return i(t,e)}))},getWebhook:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"get",params:{spaceId:n.sys.id,webhookDefinitionId:e}}).then((function(e){return s(t,e)}))},getWebhooks:function(){var e=this.toPlainObject();return t({entityType:"Webhook",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return u(t,e)}))},createWebhook:function(e){var n=this.toPlainObject();return t({entityType:"Webhook",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return s(t,e)}))},createWebhookWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Webhook",action:"createWithId",params:{spaceId:r.sys.id,webhookDefinitionId:e},payload:n}).then((function(e){return s(t,e)}))},getRole:function(e){var n=this.toPlainObject();return t({entityType:"Role",action:"get",params:{spaceId:n.sys.id,roleId:e}}).then((function(e){return p(t,e)}))},getRoles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"Role",action:"getMany",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return f(t,e)}))},createRole:function(e){var n=this.toPlainObject();return t({entityType:"Role",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return p(t,e)}))},createRoleWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"Role",action:"createWithId",params:{spaceId:r.sys.id,roleId:e},payload:n}).then((function(e){return p(t,e)}))},getSpaceUser:function(e){var n=this.toPlainObject();return t({entityType:"User",action:"getForSpace",params:{spaceId:n.sys.id,userId:e}}).then((function(e){return y(t,e)}))},getSpaceUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"User",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return h(t,e)}))},getTeams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{limit:100},n=this.toPlainObject();return t({entityType:"Team",action:"getManyForSpace",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return P(t,e)}))},getSpaceMember:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMember",action:"get",params:{spaceId:n.sys.id,spaceMemberId:e}}).then((function(e){return v(t,e)}))},getSpaceMembers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMember",action:"getMany",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return b(t,e)}))},getSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"get",params:{spaceId:n.sys.id,spaceMembershipId:e}}).then((function(e){return w(t,e)}))},getSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return O(t,e)}))},createSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return w(t,e)}))},createSpaceMembershipWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"SpaceMembership",action:"createWithId",params:{spaceId:r.sys.id,spaceMembershipId:e},payload:n}).then((function(e){return w(t,e)}))},getTeamSpaceMembership:function(e){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"get",params:{spaceId:n.sys.id,teamSpaceMembershipId:e}}).then((function(e){return S(t,e)}))},getTeamSpaceMemberships:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:Object(r.createRequestConfig)({query:e}).params}}).then((function(e){return E(t,e)}))},createTeamSpaceMembership:function(e,n){var r=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"create",params:{spaceId:r.sys.id,teamId:e},payload:n}).then((function(e){return S(t,e)}))},getApiKey:function(e){var n=this.toPlainObject();return t({entityType:"ApiKey",action:"get",params:{spaceId:n.sys.id,apiKeyId:e}}).then((function(e){return T(t,e)}))},getApiKeys:function(){var e=this.toPlainObject();return t({entityType:"ApiKey",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return x(t,e)}))},getPreviewApiKeys:function(){var e=this.toPlainObject();return t({entityType:"PreviewApiKey",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return C(t,e)}))},getPreviewApiKey:function(e){var n=this.toPlainObject();return t({entityType:"PreviewApiKey",action:"get",params:{spaceId:n.sys.id,previewApiKeyId:e}}).then((function(e){return R(t,e)}))},createApiKey:function(e){var n=this.toPlainObject();return t({entityType:"ApiKey",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return T(t,e)}))},createApiKeyWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"ApiKey",action:"createWithId",params:{spaceId:r.sys.id,apiKeyId:e},payload:n}).then((function(e){return T(t,e)}))},createEnvironmentAliasWithId:function(e,n){var r=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"createWithId",params:{spaceId:r.sys.id,environmentAliasId:e},payload:n}).then((function(e){return _(t,e)}))},getEnvironmentAlias:function(e){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"get",params:{spaceId:n.sys.id,environmentAliasId:e}}).then((function(e){return _(t,e)}))},getEnvironmentAliases:function(){var e=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"getMany",params:{spaceId:e.sys.id}}).then((function(e){return k(t,e)}))},getScheduledActions:function(e){var n=this.toPlainObject();return t({entityType:"ScheduledAction",action:"getMany",params:{spaceId:n.sys.id,query:e}}).then((function(e){return N(t,e)}))},getScheduledAction:function(e){var n=e.scheduledActionId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"ScheduledAction",action:"get",params:{spaceId:o.sys.id,environmentId:r,scheduledActionId:n}}).then((function(e){return M(t,e)}))},createScheduledAction:function(e){var n=this.toPlainObject();return t({entityType:"ScheduledAction",action:"create",params:{spaceId:n.sys.id},payload:e}).then((function(e){return M(t,e)}))},updateScheduledAction:function(e){var n=e.scheduledActionId,r=e.payload,o=e.version,i=this.toPlainObject();return t({entityType:"ScheduledAction",action:"update",params:{spaceId:i.sys.id,version:o,scheduledActionId:n},payload:r}).then((function(e){return M(t,e)}))},deleteScheduledAction:function(e){var n=e.scheduledActionId,r=e.environmentId,o=this.toPlainObject();return t({entityType:"ScheduledAction",action:"delete",params:{spaceId:o.sys.id,environmentId:r,scheduledActionId:n}}).then((function(e){return M(t,e)}))}}}},"./create-ui-config-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return c}));var r=n("./entities/index.ts");function o(t){return o="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},o(t)}function i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,c)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function i(r,a,c,s){var u=f(t[r],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==o(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return i("throw",t,c,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function c(t){var e,n,o=r.default.uiConfig.wrapUIConfig,c=function(t){var e=t.toPlainObject();return{params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id},raw:e}};return{update:(e=i().mark((function e(){var n,r,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c(this),r=n.raw,a=n.params,e.next=3,t({entityType:"UIConfig",action:"update",params:a,payload:r});case 3:return s=e.sent,e.abrupt("return",o(t,s));case 5:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(t){a(i,r,o,c,s,"next",t)}function s(t){a(i,r,o,c,s,"throw",t)}c(void 0)}))},function(){return n.apply(this,arguments)})}}},"./create-user-ui-config-api.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return c}));var r=n("./entities/index.ts");function o(t){return o="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},o(t)}function i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,c)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function i(r,a,c,s){var u=f(t[r],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==o(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return i("throw",t,c,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function c(t){var e,n,o=r.default.userUIConfig.wrapUserUIConfig,c=function(t){var e=t.toPlainObject();return{params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id},raw:e}};return{update:(e=i().mark((function e(){var n,r,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c(this),r=n.raw,a=n.params,e.next=3,t({entityType:"UserUIConfig",action:"update",params:a,payload:r});case 3:return s=e.sent,e.abrupt("return",o(t,s));case 5:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(t){a(i,r,o,c,s,"next",t)}function s(t){a(i,r,o,c,s,"throw",t)}c(void 0)}))},function(){return n.apply(this,arguments)})}}},"./enhance-with-methods.ts":function(t,e,n){function r(t,e){return Object.keys(e).reduce((function(t,n){return Object.defineProperty(t,n,{enumerable:!1,configurable:!0,writable:!1,value:e[n]}),t}),t)}n.r(e),n.d(e,"default",(function(){return r}))},"./entities/api-key.ts":function(t,e,n){n.r(e),n.d(e,"wrapApiKey",(function(){return s})),n.d(e,"wrapApiKeyCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){var e,n;return{spaceId:null!==(e=null===(n=t.sys.space)||void 0===n?void 0:n.sys.id)&&void 0!==e?e:"",apiKeyId:t.sys.id}};return{update:function(){return t({entityType:"ApiKey",action:"update",params:e(this),payload:this,headers:{}}).then((function(e){return s(t,e)}))},delete:function(){return t({entityType:"ApiKey",action:"delete",params:e(this)})}}}(t));return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/app-action-call.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return c})),n.d(e,"wrapAppActionCall",(function(){return s})),n.d(e,"wrapAppActionCallResponse",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts");function c(t){return{createWithResponse:function(){return t({entityType:"AppActionCall",action:"createWithResponse",params:{spaceId:"space-id",environmentId:"environment-id",appDefinitionId:"app-definiton-id",appActionId:"app-action-id"},payload:{parameters:{recipient:"Alice <alice@my-company.com>",message_body:"Hello from Bob!"}}}).then((function(e){return u(t,e)}))},getCallDetails:function(){return t({entityType:"AppActionCall",action:"getCallDetails",params:{spaceId:"space-id",environmentId:"environment-id",callId:"call-id",appActionId:"app-action-id"}}).then((function(e){return u(t,e)}))}}}function s(t,e){var n=Object(i.toPlainObject)(o()(e));return Object(a.default)(n,c(t))}function u(t,e){var n=Object(i.toPlainObject)(o()(e));return Object(a.default)(n,c(t))}},"./entities/app-action.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppAction",(function(){return s})),n.d(e,"wrapAppActionCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){return{organizationId:t.sys.organization.sys.id,appDefinitionId:t.sys.appDefinition.sys.id,appActionId:t.sys.id}};return{delete:function(){var n=this.toPlainObject();return t({entityType:"AppAction",action:"delete",params:e(n)})}}}(t));return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/app-bundle.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppBundle",(function(){return s})),n.d(e,"wrapAppBundleCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){return{organizationId:t.sys.organization.sys.id,appDefinitionId:t.sys.appDefinition.sys.id,appBundleId:t.sys.id}};return{delete:function(){var n=this.toPlainObject();return t({entityType:"AppBundle",action:"delete",params:e(n)})}}}(t));return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/app-definition.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppDefinition",(function(){return u})),n.d(e,"wrapAppDefinitionCollection",(function(){return l}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts"),s=n("./create-app-definition-api.ts");function u(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,Object(s.default)(t));return Object(i.freezeSys)(r)}var l=Object(c.wrapCollection)(u)},"./entities/app-details.ts":function(t,e,n){n.r(e),n.d(e,"IconType",(function(){return c})),n.d(e,"wrapAppDetails",(function(){return s}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=function(t){return t.Base64="base64",t}({});function s(t,e){var n=Object(i.toPlainObject)(o()(e));return Object(a.default)(n,function(t){return{delete:function(){var e;return t({entityType:"AppDetails",action:"delete",params:(e=this,{organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id})})}}}(t))}},"./entities/app-installation.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppInstallation",(function(){return s})),n.d(e,"wrapAppInstallationCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,appDefinitionId:t.sys.appDefinition.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"upsert",params:e(n),headers:{},payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"AppInstallation",action:"delete",params:e(n)})}}}(t));return Object(r.freezeSys)(o)}var u=Object(c.wrapCollection)(s)},"./entities/app-signed-request.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppSignedRequest",(function(){return a}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js");function a(t,e){return Object(i.toPlainObject)(o()(e))}},"./entities/app-signing-secret.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppSigningSecret",(function(){return c}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts");function c(t,e){var n=Object(i.toPlainObject)(o()(e));return Object(a.default)(n,function(t){return{delete:function(){var e;return t({entityType:"AppSigningSecret",action:"delete",params:(e=this,{organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id})})}}}(t))}},"./entities/app-upload.ts":function(t,e,n){n.r(e),n.d(e,"wrapAppUpload",(function(){return s})),n.d(e,"wrapAppUploadCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){return{organizationId:t.sys.organization.sys.id,appUploadId:t.sys.id}};return{delete:function(){var n=this.toPlainObject();return t({entityType:"AppUpload",action:"delete",params:e(n)})}}}(t));return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/asset-key.ts":function(t,e,n){n.r(e),n.d(e,"wrapAssetKey",(function(){return a}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js");function a(t,e){return Object(i.toPlainObject)(o()(e))}},"./entities/asset.ts":function(t,e,n){n.r(e),n.d(e,"wrapAsset",(function(){return d})),n.d(e,"wrapAssetCollection",(function(){return y}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts"),s=n("./plain/checks.ts");function u(t){return u="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},u(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,assetId:t.sys.id}};return{processForLocale:function(n,r){var o=this.toPlainObject();return t({entityType:"Asset",action:"processForLocale",params:p(p({},e(o)),{},{locale:n,options:r,asset:o})}).then((function(e){return d(t,e)}))},processForAllLocales:function(n){var r=this.toPlainObject();return t({entityType:"Asset",action:"processForAllLocales",params:p(p({},e(r)),{},{asset:r,options:n})}).then((function(e){return d(t,e)}))},update:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"update",params:e(n),payload:n,headers:{}}).then((function(e){return d(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"delete",params:e(n)})},publish:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"publish",params:e(n),payload:n}).then((function(e){return d(t,e)}))},unpublish:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"unpublish",params:e(n)}).then((function(e){return d(t,e)}))},archive:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"archive",params:e(n)}).then((function(e){return d(t,e)}))},unarchive:function(){var n=this.toPlainObject();return t({entityType:"Asset",action:"unarchive",params:e(n)}).then((function(e){return d(t,e)}))},isPublished:function(){var t=this.toPlainObject();return s.isPublished(t)},isUpdated:function(){var t=this.toPlainObject();return s.isUpdated(t)},isDraft:function(){var t=this.toPlainObject();return s.isDraft(t)},isArchived:function(){var t=this.toPlainObject();return s.isArchived(t)}}}(t));return Object(i.freezeSys)(r)}var y=Object(c.wrapCollection)(d)},"./entities/bulk-action.ts":function(t,e,n){n.r(e),n.d(e,"BulkActionStatus",(function(){return f})),n.d(e,"wrapBulkAction",(function(){return d}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./enhance-with-methods.ts"),c=n("./methods/action.ts");function s(t){return s="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},s(t)}function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function l(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,c,"next",t)}function c(t){l(i,r,o,a,c,"throw",t)}a(void 0)}))}}var f=function(t){return t.created="created",t.inProgress="inProgress",t.succeeded="succeeded",t.failed="failed",t}({});function d(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(a.default)(n,function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,bulkActionId:e.sys.id}};return{get:function(){var n=this;return p(u().mark((function r(){var o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"BulkAction",action:"get",params:o}).then((function(e){return d(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},waitProcessing:function(t){var e=this;return p(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(c.pollAsyncActionStatus)(p(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.get());case 1:case"end":return t.stop()}}),t)}))),t));case 1:case"end":return n.stop()}}),n)})))()}}}(t));return Object(r.freezeSys)(o)}Object.values(f)},"./entities/comment.ts":function(t,e,n){n.r(e),n.d(e,"CommentNode",(function(){return f})),n.d(e,"default",(function(){return d})),n.d(e,"wrapComment",(function(){return y})),n.d(e,"wrapCommentCollection",(function(){return h}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t){return t.Document="document",t.Paragraph="paragraph",t.Mention="mention",t}({});function d(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,entryId:t.sys.parentEntity.sys.id,commentId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Comment",action:"update",params:e(n),payload:n}).then((function(e){return y(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Comment",action:"delete",params:l(l({},e(n)),{},{version:n.sys.version})}).then((function(){}))}}}function y(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,d(t));return Object(r.freezeSys)(o)}var h=Object(a.wrapCollection)(y)},"./entities/content-type.ts":function(t,e,n){n.r(e),n.d(e,"wrapContentType",(function(){return m})),n.d(e,"wrapContentTypeCollection",(function(){return v}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts"),s=n("./plain/checks.ts"),u=n("./entities/editor-interface.ts"),l=n("./entities/snapshot.ts"),p=n("./methods/content-type.ts");function f(t){return f="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},f(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){var e=t.toPlainObject();return{raw:e,params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,contentTypeId:e.sys.id}}};return{update:function(){var n=e(this),r=n.raw,o=n.params;return t({entityType:"ContentType",action:"update",params:o,payload:r}).then((function(e){return m(t,e)}))},delete:function(){var n=e(this).params;return t({entityType:"ContentType",action:"delete",params:n}).then((function(){}))},publish:function(){var n=e(this),r=n.raw,o=n.params;return t({entityType:"ContentType",action:"publish",params:o,payload:r}).then((function(e){return m(t,e)}))},unpublish:function(){var n=e(this).params;return t({entityType:"ContentType",action:"unpublish",params:n}).then((function(e){return m(t,e)}))},getEditorInterface:function(){var n=e(this).params;return t({entityType:"EditorInterface",action:"get",params:n}).then((function(e){return Object(u.wrapEditorInterface)(t,e)}))},getSnapshots:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e(this).params;return t({entityType:"Snapshot",action:"getManyForContentType",params:y(y({},r),{},{query:n})}).then((function(e){return Object(l.wrapSnapshotCollection)(t,e)}))},getSnapshot:function(n){var r=e(this).params;return t({entityType:"Snapshot",action:"getForContentType",params:y(y({},r),{},{snapshotId:n})}).then((function(e){return Object(l.wrapSnapshot)(t,e)}))},isPublished:function(){return Object(s.isPublished)(this)},isUpdated:function(){return Object(s.isUpdated)(this)},isDraft:function(){return Object(s.isDraft)(this)},omitAndDeleteField:function(n){var r=e(this),o=r.raw,i=r.params;return Object(p.omitAndDeleteField)(t,y(y({},i),{},{fieldId:n}),o).then((function(e){return m(t,e)}))}}}(t));return Object(r.freezeSys)(o)}var v=Object(a.wrapCollection)(m)},"./entities/editor-interface.ts":function(t,e,n){n.r(e),n.d(e,"wrapEditorInterface",(function(){return s})),n.d(e,"wrapEditorInterfaceCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){return{update:function(){var e=this,n=e.toPlainObject();return t({entityType:"EditorInterface",action:"update",params:{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,contentTypeId:e.sys.contentType.sys.id},payload:n}).then((function(e){return s(t,e)}))},getControlForField:function(t){var e=(this.controls||[]).filter((function(e){return e.fieldId===t}));return e&&e.length>0?e[0]:null}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/entry.ts":function(t,e,n){n.r(e),n.d(e,"wrapEntry",(function(){return u})),n.d(e,"wrapEntryCollection",(function(){return l}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./create-entry-api.ts"),s=n("./enhance-with-methods.ts");function u(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(s.default)(n,Object(c.default)(t));return Object(r.freezeSys)(o)}var l=Object(a.wrapCollection)(u)},"./entities/environment-alias.ts":function(t,e,n){n.r(e),n.d(e,"wrapEnvironmentAlias",(function(){return s})),n.d(e,"wrapEnvironmentAliasCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentAliasId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"EnvironmentAlias",action:"delete",params:e(n)}).then((function(){}))}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/environment-template-installation.ts":function(t,e,n){n.r(e),n.d(e,"wrapEnvironmentTemplateInstallation",(function(){return c})),n.d(e,"wrapEnvironmentTemplateInstallationCollection",(function(){return s}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts");function c(t,e){var n=Object(r.toPlainObject)(i()(e));return Object(r.freezeSys)(n)}var s=Object(a.wrapCursorPaginatedCollection)(c)},"./entities/environment-template.ts":function(t,e,n){n.r(e),n.d(e,"wrapEnvironmentTemplate",(function(){return u})),n.d(e,"wrapEnvironmentTemplateCollection",(function(){return l}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./create-environment-template-api.ts"),s=n("./enhance-with-methods.ts");function u(t,e,n){var o=Object(r.toPlainObject)(i()(e)),a=Object(c.createEnvironmentTemplateApi)(t,n),u=Object(s.default)(o,a);return Object(r.freezeSys)(u)}var l=Object(a.wrapCursorPaginatedCollection)(u)},"./entities/environment.ts":function(t,e,n){n.r(e),n.d(e,"wrapEnvironment",(function(){return u})),n.d(e,"wrapEnvironmentCollection",(function(){return l}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./create-environment-api.ts"),s=n("./common-utils.ts");function u(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(c.default)(t),s=Object(a.default)(n,r);return Object(i.freezeSys)(s)}var l=Object(s.wrapCollection)(u)},"./entities/extension.ts":function(t,e,n){n.r(e),n.d(e,"wrapExtension",(function(){return s})),n.d(e,"wrapExtensionCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,extensionId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Extension",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Extension",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/index.ts":function(t,e,n){n.r(e);var r=n("./entities/api-key.ts"),o=n("./entities/app-action.ts"),i=n("./entities/app-action-call.ts"),a=n("./entities/app-bundle.ts"),c=n("./entities/app-definition.ts"),s=n("./entities/app-details.ts"),u=n("./entities/app-installation.ts"),l=n("./entities/app-signed-request.ts"),p=n("./entities/app-signing-secret.ts"),f=n("./entities/app-upload.ts"),d=n("./entities/asset.ts"),y=n("./entities/asset-key.ts"),h=n("./entities/bulk-action.ts"),m=n("./entities/comment.ts"),v=n("./entities/content-type.ts"),b=n("./entities/editor-interface.ts"),g=n("./entities/entry.ts"),w=n("./entities/environment.ts"),O=n("./entities/environment-alias.ts"),j=n("./entities/environment-template.ts"),S=n("./entities/environment-template-installation.ts"),E=n("./entities/extension.ts"),P=n("./entities/locale.ts"),I=n("./entities/organization.ts"),T=n("./entities/organization-invitation.ts"),x=n("./entities/organization-membership.ts"),A=n("./entities/personal-access-token.ts"),_=n("./entities/preview-api-key.ts"),k=n("./entities/release.ts"),L=n("./entities/release-action.ts"),R=n("./entities/role.ts"),C=n("./entities/scheduled-action.ts"),D=n("./entities/snapshot.ts"),M=n("./entities/space.ts"),N=n("./entities/space-member.ts"),z=n("./entities/space-membership.ts"),F=n("./entities/tag.ts"),U=n("./entities/task.ts"),B=n("./entities/team.ts"),q=n("./entities/team-membership.ts"),W=n("./entities/team-space-membership.ts"),G=n("./entities/ui-config.ts"),H=n("./entities/upload.ts"),V=n("./entities/usage.ts"),Y=n("./entities/user.ts"),K=n("./entities/user-ui-config.ts"),X=n("./entities/webhook.ts"),$=n("./entities/workflow-definition.ts");e.default={appAction:o,appActionCall:i,appBundle:a,apiKey:r,appDefinition:c,appInstallation:u,appUpload:f,appDetails:s,appSignedRequest:l,appSigningSecret:p,asset:d,assetKey:y,bulkAction:h,comment:m,contentType:v,editorInterface:b,entry:g,environment:w,environmentAlias:O,environmentTemplate:j,environmentTemplateInstallation:S,extension:E,locale:P,organization:I,organizationInvitation:T,organizationMembership:x,personalAccessToken:A,previewApiKey:_,release:k,releaseAction:L,role:R,scheduledAction:C,snapshot:D,space:M,spaceMember:N,spaceMembership:z,tag:F,task:U,team:B,teamMembership:q,teamSpaceMembership:W,uiConfig:G,upload:H,usage:V,user:Y,userUIConfig:K,webhook:X,workflowDefinition:$}},"./entities/locale.ts":function(t,e,n){n.r(e),n.d(e,"wrapLocale",(function(){return s})),n.d(e,"wrapLocaleCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){delete e.internal_code;var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,localeId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Locale",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Locale",action:"delete",params:e(n)}).then((function(){}))}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/organization-invitation.ts":function(t,e,n){n.r(e),n.d(e,"wrapOrganizationInvitation",(function(){return a}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o);function a(t,e){var n=Object(r.toPlainObject)(i()(e));return Object(r.freezeSys)(n)}},"./entities/organization-membership.ts":function(t,e,n){n.r(e),n.d(e,"wrapOrganizationMembership",(function(){return s})),n.d(e,"wrapOrganizationMembershipCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e,n){var r=Object(i.toPlainObject)(o()(e)),c=Object(a.default)(r,function(t,e){var n=function(t){return{organizationMembershipId:t.sys.id,organizationId:e}};return{update:function(){var r=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"update",params:n(r),payload:r}).then((function(n){return s(t,n,e)}))},delete:function(){var e=this.toPlainObject();return t({entityType:"OrganizationMembership",action:"delete",params:n(e)})}}}(t,n));return Object(i.freezeSys)(c)}var u=Object(c.wrapCollection)(s)},"./entities/organization.ts":function(t,e,n){n.r(e),n.d(e,"wrapOrganization",(function(){return u})),n.d(e,"wrapOrganizationCollection",(function(){return l}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./create-organization-api.ts"),s=n("./common-utils.ts");function u(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(c.default)(t),s=Object(a.default)(n,r);return Object(i.freezeSys)(s)}var l=Object(s.wrapCollection)(u)},"./entities/personal-access-token.ts":function(t,e,n){n.r(e),n.d(e,"wrapPersonalAccessToken",(function(){return s})),n.d(e,"wrapPersonalAccessTokenCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,{revoke:function(){return t({entityType:"PersonalAccessToken",action:"revoke",params:{tokenId:e.sys.id}}).then((function(e){return s(t,e)}))}});return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/preview-api-key.ts":function(t,e,n){n.r(e),n.d(e,"wrapPreviewApiKey",(function(){return s})),n.d(e,"wrapPreviewApiKeyCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,{});return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/release-action.ts":function(t,e,n){n.r(e),n.d(e,"wrapReleaseAction",(function(){return d})),n.d(e,"wrapReleaseActionCollection",(function(){return y}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./methods/action.ts"),s=n("./enhance-with-methods.ts");function u(t){return u="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},u(t)}function l(){l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};s(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var s=f(t[r],t,i);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==u(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function p(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){p(i,r,o,a,c,"next",t)}function c(t){p(i,r,o,a,c,"throw",t)}a(void 0)}))}}function d(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(s.default)(n,function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,releaseId:e.sys.release.sys.id,actionId:e.sys.id}};return{get:function(){var n=this;return f(l().mark((function r(){var o;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"ReleaseAction",action:"get",params:o}).then((function(e){return d(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},waitProcessing:function(t){var e=this;return f(l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(c.pollAsyncActionStatus)(f(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.get());case 1:case"end":return t.stop()}}),t)}))),t));case 1:case"end":return n.stop()}}),n)})))()}}}(t));return Object(r.freezeSys)(o)}var y=Object(a.wrapCollection)(d)},"./entities/release.ts":function(t,e,n){n.r(e),n.d(e,"ReleaseReferenceFilters",(function(){return y})),n.d(e,"wrapRelease",(function(){return h})),n.d(e,"wrapReleaseCollection",(function(){return m}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-types.ts"),c=n("./common-utils.ts"),s=n("./enhance-with-methods.ts"),u=n("./entities/release-action.ts");function l(t){return l="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},l(t)}function p(){p=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d={};function y(){}function h(){}function m(){}var v={};s(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var s=f(t[r],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==l(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,c,"next",t)}function c(t){f(i,r,o,a,c,"throw",t)}a(void 0)}))}}var y=a.ScheduledActionReferenceFilters;function h(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(s.default)(n,function(t){var e=function(t){var e=t.toPlainObject();return{spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,releaseId:e.sys.id,version:e.sys.version}};return{archive:function(){var n=this;return d(p().mark((function r(){var o;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"Release",action:"archive",params:o}).then((function(e){return h(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},unarchive:function(){var n=this;return d(p().mark((function r(){var o;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"Release",action:"unarchive",params:o}).then((function(e){return h(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},update:function(n){var r=this;return d(p().mark((function o(){var i;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"update",params:i,payload:n}).then((function(e){return h(t,e)})));case 2:case"end":return o.stop()}}),o)})))()},delete:function(){var n=this;return d(p().mark((function r(){var o;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.next=3,t({entityType:"Release",action:"delete",params:o});case 3:case"end":return r.stop()}}),r)})))()},publish:function(n){var r=this;return d(p().mark((function o(){var i;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"publish",params:i}).then((function(e){return Object(u.wrapReleaseAction)(t,e)})).then((function(t){return t.waitProcessing(n)})));case 2:case"end":return o.stop()}}),o)})))()},unpublish:function(n){var r=this;return d(p().mark((function o(){var i;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"unpublish",params:i}).then((function(e){return Object(u.wrapReleaseAction)(t,e)})).then((function(t){return t.waitProcessing(n)})));case 2:case"end":return o.stop()}}),o)})))()},validate:function(n){var r=this;return d(p().mark((function o(){var i;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=e(r),o.abrupt("return",t({entityType:"Release",action:"validate",params:i,payload:null==n?void 0:n.payload}).then((function(e){return Object(u.wrapReleaseAction)(t,e)})).then((function(t){return t.waitProcessing(null==n?void 0:n.processingOptions)})));case 2:case"end":return o.stop()}}),o)})))()}}}(t));return Object(r.freezeSys)(o)}var m=Object(c.wrapCursorPaginatedCollection)(h)},"./entities/role.ts":function(t,e,n){n.r(e),n.d(e,"wrapRole",(function(){return s})),n.d(e,"wrapRoleCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,roleId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Role",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Role",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/scheduled-action.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return y})),n.d(e,"wrapScheduledAction",(function(){return h})),n.d(e,"wrapScheduledActionCollection",(function(){return m}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}var u=["sys"];function l(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function p(){p=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function y(){}function h(){}function m(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,c){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),u(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){f(i,r,o,a,c,"next",t)}function c(t){f(i,r,o,a,c,"throw",t)}a(void 0)}))}}function y(t){var e=function(t){var e,n=t.toPlainObject();return{spaceId:n.sys.space.sys.id,environmentId:null===(e=n.environment)||void 0===e?void 0:e.sys.id,scheduledActionId:n.sys.id,version:n.sys.version}};return{delete:function(){var n=this;return d(p().mark((function r(){var o;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),r.abrupt("return",t({entityType:"ScheduledAction",action:"delete",params:o}).then((function(e){return h(t,e)})));case 2:case"end":return r.stop()}}),r)})))()},update:function(){var n=this;return d(p().mark((function r(){var o,i,a;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e(n),(i=n.toPlainObject()).sys,a=l(i,u),r.abrupt("return",t({entityType:"ScheduledAction",action:"update",params:o,payload:a}).then((function(e){return h(t,e)})));case 3:case"end":return r.stop()}}),r)})))()}}}function h(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,y(t));return Object(r.freezeSys)(o)}var m=Object(a.wrapCollection)(h)},"./entities/snapshot.ts":function(t,e,n){n.r(e),n.d(e,"wrapSnapshot",(function(){return s})),n.d(e,"wrapSnapshotCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,{});return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/space-member.ts":function(t,e,n){n.r(e),n.d(e,"wrapSpaceMember",(function(){return c})),n.d(e,"wrapSpaceMemberCollection",(function(){return s}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts");function c(t,e){var n=Object(r.toPlainObject)(i()(e));return Object(r.freezeSys)(n)}var s=Object(a.wrapCollection)(c)},"./entities/space-membership.ts":function(t,e,n){n.r(e),n.d(e,"wrapSpaceMembership",(function(){return s})),n.d(e,"wrapSpaceMembershipCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,spaceMembershipId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"SpaceMembership",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/space.ts":function(t,e,n){n.r(e),n.d(e,"wrapSpace",(function(){return u})),n.d(e,"wrapSpaceCollection",(function(){return l}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./create-space-api.ts"),s=n("./enhance-with-methods.ts");function u(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(t),a=Object(s.default)(n,o);return Object(r.freezeSys)(a)}var l=Object(a.wrapCollection)(u)},"./entities/tag.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return f})),n.d(e,"wrapTag",(function(){return d})),n.d(e,"wrapTagCollection",(function(){return y}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,tagId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Tag",action:"update",params:e(n),payload:n}).then((function(e){return d(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Tag",action:"delete",params:l(l({},e(n)),{},{version:n.sys.version})}).then((function(){}))}}}function d(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,f(t));return Object(r.freezeSys)(o)}var y=Object(a.wrapCollection)(d)},"./entities/task.ts":function(t,e,n){n.r(e),n.d(e,"default",(function(){return f})),n.d(e,"wrapTask",(function(){return d})),n.d(e,"wrapTaskCollection",(function(){return y}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,entryId:t.sys.parentEntity.sys.id,taskId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Task",action:"update",params:e(n),payload:n}).then((function(e){return d(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Task",action:"delete",params:l(l({},e(n)),{},{version:n.sys.version})}).then((function(){}))}}}function d(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,f(t));return Object(r.freezeSys)(o)}var y=Object(a.wrapCollection)(d)},"./entities/team-membership.ts":function(t,e,n){n.r(e),n.d(e,"wrapTeamMembership",(function(){return s})),n.d(e,"wrapTeamMembershipCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{teamMembershipId:t.sys.id,teamId:t.sys.team.sys.id,organizationId:t.sys.organization.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"TeamMembership",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"TeamMembership",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/team-space-membership.ts":function(t,e,n){n.r(e),n.d(e,"wrapTeamSpaceMembership",(function(){return s})),n.d(e,"wrapTeamSpaceMembershipCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{teamSpaceMembershipId:t.sys.id,spaceId:t.sys.space.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"TeamSpaceMembership",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/team.ts":function(t,e,n){n.r(e),n.d(e,"wrapTeam",(function(){return s})),n.d(e,"wrapTeamCollection",(function(){return u}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,function(t){var e=function(t){return{teamId:t.sys.id,organizationId:t.sys.organization.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Team",action:"update",params:e(n),payload:n}).then((function(e){return s(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Team",action:"delete",params:e(n)})}}}(t));return Object(i.freezeSys)(r)}var u=Object(c.wrapCollection)(s)},"./entities/ui-config.ts":function(t,e,n){n.r(e),n.d(e,"wrapUIConfig",(function(){return s}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./create-ui-config-api.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,Object(a.default)(t));return Object(r.freezeSys)(o)}},"./entities/upload.ts":function(t,e,n){n.r(e),n.d(e,"wrapUpload",(function(){return p}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r),i=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),a=n("./enhance-with-methods.ts");function c(t){return c="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},c(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,i,a,s){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==c(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,s)}))}s(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function u(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function l(t){return{delete:(e=s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.toPlainObject(),e.next=3,t({entityType:"Upload",action:"delete",params:{spaceId:n.sys.space.sys.id,uploadId:n.sys.id}});case 3:case"end":return e.stop()}}),e,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){u(i,r,o,a,c,"next",t)}function c(t){u(i,r,o,a,c,"throw",t)}a(void 0)}))},function(){return n.apply(this,arguments)})};var e,n}function p(t,e){var n=Object(i.toPlainObject)(o()(e)),r=Object(a.default)(n,l(t));return Object(i.freezeSys)(r)}},"./entities/usage.ts":function(t,e,n){n.r(e),n.d(e,"wrapUsage",(function(){return s})),n.d(e,"wrapUsageCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,{});return Object(r.freezeSys)(o)}var u=Object(a.wrapCollection)(s)},"./entities/user-ui-config.ts":function(t,e,n){n.r(e),n.d(e,"wrapUserUIConfig",(function(){return s}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./create-user-ui-config-api.ts"),c=n("./enhance-with-methods.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,Object(a.default)(t));return Object(r.freezeSys)(o)}},"./entities/user.ts":function(t,e,n){n.r(e),n.d(e,"wrapUser",(function(){return s})),n.d(e,"wrapUserCollection",(function(){return u}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./enhance-with-methods.ts"),c=n("./common-utils.ts");function s(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(a.default)(n,{});return Object(r.freezeSys)(o)}var u=Object(c.wrapCollection)(s)},"./entities/webhook.ts":function(t,e,n){n.r(e),n.d(e,"wrapWebhook",(function(){return f})),n.d(e,"wrapWebhookCollection",(function(){return d}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,function(t){var e=function(t){return{spaceId:t.sys.space.sys.id,webhookDefinitionId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"Webhook",action:"update",params:e(n),payload:n}).then((function(e){return f(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"Webhook",action:"delete",params:e(n)})},getCalls:function(){var n=this.toPlainObject();return t({entityType:"Webhook",action:"getManyCallDetails",params:e(n)})},getCall:function(n){var r=this.toPlainObject();return t({entityType:"Webhook",action:"getCallDetails",params:l(l({},e(r)),{},{callId:n})})},getHealth:function(){var n=this.toPlainObject();return t({entityType:"Webhook",action:"getHealthStatus",params:e(n)})}}}(t));return Object(r.freezeSys)(o)}var d=Object(a.wrapCollection)(f)},"./entities/workflow-definition.ts":function(t,e,n){n.r(e),n.d(e,"WorkflowStepPermissionType",(function(){return f})),n.d(e,"WorkflowStepPermissionAction",(function(){return d})),n.d(e,"WorkflowStepPermissionEffect",(function(){return y})),n.d(e,"WorkflowStepActionType",(function(){return h})),n.d(e,"default",(function(){return m})),n.d(e,"wrapWorkflowDefinition",(function(){return v})),n.d(e,"wrapWorkflowDefinitionCollection",(function(){return b}));var r=n("../node_modules/contentful-sdk-core/dist/index.es-modules.js"),o=n("../node_modules/fast-copy/dist/umd/index.js"),i=n.n(o),a=n("./common-utils.ts"),c=n("./enhance-with-methods.ts");function s(t){return s="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},s(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t){return t.EntityPermission="entity_permission",t.WorkflowPermission="workflow_permission",t}({}),d=function(t){return t.Edit="edit",t.Publish="publish",t}({}),y=function(t){return t.Allow="allow",t.Deny="deny",t}({}),h=function(t){return t.App="app",t.Email="email",t.Task="task",t}({});function m(t){var e=function(t){return{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,workflowDefinitionId:t.sys.id}};return{update:function(){var n=this.toPlainObject();return t({entityType:"WorkflowDefinition",action:"update",params:e(n),payload:n}).then((function(e){return v(t,e)}))},delete:function(){var n=this.toPlainObject();return t({entityType:"WorkflowDefinition",action:"delete",params:l(l({},e(n)),{},{version:n.sys.version})}).then((function(){}))}}}function v(t,e){var n=Object(r.toPlainObject)(i()(e)),o=Object(c.default)(n,m(t));return Object(r.freezeSys)(o)}var b=Object(a.wrapCollection)(v)},"./export-types.ts":function(t,e,n){n.r(e);var r=n("./common-types.ts");n.d(e,"ScheduledActionReferenceFilters",(function(){return r.ScheduledActionReferenceFilters})),n("./plain/common-types.ts")},"./methods/action.ts":function(t,e,n){n.r(e),n.d(e,"AsyncActionProcessingError",(function(){return O})),n.d(e,"AsyncActionFailedError",(function(){return j})),n.d(e,"pollAsyncActionStatus",(function(){return S}));var r=n("./methods/utils.ts");function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,c)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,a,c,s){var u=f(t[r],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==i(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function i(t){return i="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},i(t)}function a(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,s,"next",t)}function s(t){a(i,r,o,c,s,"throw",t)}c(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}function f(t){var e=v();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return m(t,arguments,g(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),b(r,t)},h(t)}function m(t,e,n){return m=v()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&b(o,n.prototype),o},m.apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function w(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}var O=function(t){p(n,t);var e=f(n);function n(t,r){var o,i,a,c;return l(this,n),o=e.call(this,t),i=y(o),c=void 0,(a=w(a="action"))in i?Object.defineProperty(i,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[a]=c,o.action=r,o.name=o.constructor.name,o}return u(n)}(h(Error)),j=function(t){p(n,t);var e=f(n);function n(){return l(this,n),e.apply(this,arguments)}return u(n)}(O);function S(t,e){return E.apply(this,arguments)}function E(){return(E=c(o().mark((function t(e,n){var i,a,c,s,u,l,p,f,d,y,h,m;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=0,p=!1,d=null!==(i=null==n?void 0:n.retryCount)&&void 0!==i?i:30,y=null!==(a=null==n?void 0:n.retryIntervalMs)&&void 0!==a?a:2e3,h=null!==(c=null==n?void 0:n.initialDelayMs)&&void 0!==c?c:1e3,m=null===(s=null==n?void 0:n.throwOnFailedExecution)||void 0===s||s,t.next=8,Object(r.sleep)(h);case 8:if(!(l<d)||p){t.next=22;break}return t.next=11,e();case 11:if(!(f=t.sent)||!["succeeded","failed"].includes(f.sys.status)){t.next=17;break}if(p=!0,"failed"!==f.sys.status||!m){t.next=16;break}throw new j("".concat(f.sys.type," failed to execute."),f);case 16:return t.abrupt("return",f);case 17:return t.next=19,Object(r.sleep)(y);case 19:l+=1,t.next=8;break;case 22:throw new O("".concat(null===(u=f)||void 0===u?void 0:u.sys.type," didn't finish processing within the expected timeframe."),f);case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},"./methods/content-type.ts":function(t,e,n){n.r(e),n.d(e,"omitAndDeleteField",(function(){return a}));var r=["fieldId"];function o(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var i=function(t,e,n){var r=t.fields.find((function(t){return t.id===e}));return r?(r[n]=!0,Promise.resolve(t)):Promise.reject(new Error("Tried to omitAndDeleteField on a nonexistent field, ".concat(e,", on the content type ").concat(t.name,".")))},a=function(t,e,n){var a=e.fieldId,c=o(e,r);return i(n,a,"omitted").then((function(e){return t({entityType:"ContentType",action:"update",params:c,payload:e})})).then((function(t){return i(t,a,"deleted")})).then((function(e){return t({entityType:"ContentType",action:"update",params:c,payload:e})}))}},"./methods/utils.ts":function(t,e,n){function r(t){return new Promise((function(e){return setTimeout(e,t)}))}n.r(e),n.d(e,"sleep",(function(){return r}))},"./plain/as-iterator.ts":function(t,e,n){n.r(e),n.d(e,"asIterator",(function(){return p}));var r=n("../node_modules/fast-copy/dist/umd/index.js"),o=n.n(r);function i(t){return i="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},i(t)}function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new T(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var d={};function y(){}function h(){}function m(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(x([])));g&&g!==e&&n.call(g,c)&&(v=g);var w=m.prototype=y.prototype=Object.create(v);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function o(r,a,c,s){var u=f(t[r],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==i(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,r(w,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}var p=function(t,e){return u({},Symbol.asyncIterator,(function(){var n=o()(e),r=function(){return t(o()(n))},i=r();return{current:0,next:function(){var t=this;return function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,c,"next",t)}function c(t){l(i,r,o,a,c,"throw",t)}a(void 0)}))}}(a().mark((function e(){var o,c,u,l,p,f,d,y,h,m,v,b;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i;case 2:if(o=e.sent,c=o.total,u=void 0===c?0:c,l=o.items,p=void 0===l?[]:l,f=o.skip,d=void 0===f?0:f,y=o.limit,h=void 0===y?100:y,u!==t.current){e.next=13;break}return e.abrupt("return",{done:!0,value:null});case 13:return m=p[t.current++-d],v=t.current%h==0,b=t.current===u,v&&!b&&(n=s(s({},n),{},{query:s(s({},n.query),{},{skip:d+h})}),i=r()),e.abrupt("return",{done:!1,value:m});case 18:case"end":return e.stop()}}),e)})))()}}}))}},"./plain/checks.ts":function(t,e,n){n.r(e),n.d(e,"isPublished",(function(){return r})),n.d(e,"isUpdated",(function(){return o})),n.d(e,"isDraft",(function(){return i})),n.d(e,"isArchived",(function(){return a}));var r=function(t){return!!t.sys.publishedVersion},o=function(t){return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},i=function(t){return!t.sys.publishedVersion},a=function(t){return!!t.sys.archivedVersion}},"./plain/common-types.ts":function(t,e,n){n.r(e)},"./plain/plain-client.ts":function(t,e,n){n.r(e),n.d(e,"createPlainClient",(function(){return u}));var r=n("./methods/content-type.ts"),o=n("./plain/wrappers/wrap.ts");function i(t){return i="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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t,e){var n={makeRequest:t,defaults:e};return{raw:{getDefaultParams:function(){return e},get:function(e,n){return t({entityType:"Http",action:"get",params:{url:e,config:n}})},patch:function(e,n,r){return t({entityType:"Http",action:"patch",params:{url:e,config:r},payload:n})},post:function(e,n,r){return t({entityType:"Http",action:"post",params:{url:e,config:r},payload:n})},put:function(e,n,r){return t({entityType:"Http",action:"put",params:{url:e,config:r},payload:n})},delete:function(e,n){return t({entityType:"Http",action:"delete",params:{url:e,config:n}})},http:function(e,n){return t({entityType:"Http",action:"request",params:{url:e,config:n}})}},appAction:{get:Object(o.wrap)(n,"AppAction","get"),getMany:Object(o.wrap)(n,"AppAction","getMany"),getManyForEnvironment:Object(o.wrap)(n,"AppAction","getManyForEnvironment"),delete:Object(o.wrap)(n,"AppAction","delete"),create:Object(o.wrap)(n,"AppAction","create"),update:Object(o.wrap)(n,"AppAction","update")},appActionCall:{create:Object(o.wrap)(n,"AppActionCall","create"),getCallDetails:Object(o.wrap)(n,"AppActionCall","getCallDetails"),createWithResponse:Object(o.wrap)(n,"AppActionCall","createWithResponse")},appBundle:{get:Object(o.wrap)(n,"AppBundle","get"),getMany:Object(o.wrap)(n,"AppBundle","getMany"),delete:Object(o.wrap)(n,"AppBundle","delete"),create:Object(o.wrap)(n,"AppBundle","create")},appDetails:{upsert:Object(o.wrap)(n,"AppDetails","upsert"),get:Object(o.wrap)(n,"AppDetails","get"),delete:Object(o.wrap)(n,"AppDetails","delete")},appSignedRequest:{create:Object(o.wrap)(n,"AppSignedRequest","create")},appSigningSecret:{upsert:Object(o.wrap)(n,"AppSigningSecret","upsert"),get:Object(o.wrap)(n,"AppSigningSecret","get"),delete:Object(o.wrap)(n,"AppSigningSecret","delete")},editorInterface:{get:Object(o.wrap)(n,"EditorInterface","get"),getMany:Object(o.wrap)(n,"EditorInterface","getMany"),update:Object(o.wrap)(n,"EditorInterface","update")},space:{get:Object(o.wrap)(n,"Space","get"),getMany:Object(o.wrap)(n,"Space","getMany"),update:Object(o.wrap)(n,"Space","update"),delete:Object(o.wrap)(n,"Space","delete"),create:Object(o.wrap)(n,"Space","create")},environment:{get:Object(o.wrap)(n,"Environment","get"),getMany:Object(o.wrap)(n,"Environment","getMany"),create:Object(o.wrap)(n,"Environment","create"),createWithId:Object(o.wrap)(n,"Environment","createWithId"),update:Object(o.wrap)(n,"Environment","update"),delete:Object(o.wrap)(n,"Environment","delete")},environmentAlias:{get:Object(o.wrap)(n,"EnvironmentAlias","get"),getMany:Object(o.wrap)(n,"EnvironmentAlias","getMany"),createWithId:Object(o.wrap)(n,"EnvironmentAlias","createWithId"),update:Object(o.wrap)(n,"EnvironmentAlias","update"),delete:Object(o.wrap)(n,"EnvironmentAlias","delete")},environmentTemplate:{get:Object(o.wrap)(n,"EnvironmentTemplate","get"),getMany:Object(o.wrap)(n,"EnvironmentTemplate","getMany"),create:Object(o.wrap)(n,"EnvironmentTemplate","create"),versionUpdate:Object(o.wrap)(n,"EnvironmentTemplate","versionUpdate"),update:Object(o.wrap)(n,"EnvironmentTemplate","update"),install:Object(o.wrap)(n,"EnvironmentTemplate","install"),versions:Object(o.wrap)(n,"EnvironmentTemplate","versions"),validate:Object(o.wrap)(n,"EnvironmentTemplate","validate"),disconnect:Object(o.wrap)(n,"EnvironmentTemplate","disconnect"),delete:Object(o.wrap)(n,"EnvironmentTemplate","delete")},environmentTemplateInstallation:{getMany:Object(o.wrap)(n,"EnvironmentTemplateInstallation","getMany"),getForEnvironment:Object(o.wrap)(n,"EnvironmentTemplateInstallation","getForEnvironment")},bulkAction:{get:Object(o.wrap)(n,"BulkAction","get"),publish:Object(o.wrap)(n,"BulkAction","publish"),unpublish:Object(o.wrap)(n,"BulkAction","unpublish"),validate:Object(o.wrap)(n,"BulkAction","validate")},comment:{get:Object(o.wrap)(n,"Comment","get"),getMany:Object(o.wrap)(n,"Comment","getMany"),create:Object(o.wrap)(n,"Comment","create"),update:Object(o.wrap)(n,"Comment","update"),delete:Object(o.wrap)(n,"Comment","delete")},contentType:{get:Object(o.wrap)(n,"ContentType","get"),getMany:Object(o.wrap)(n,"ContentType","getMany"),update:Object(o.wrap)(n,"ContentType","update"),delete:Object(o.wrap)(n,"ContentType","delete"),publish:Object(o.wrap)(n,"ContentType","publish"),unpublish:Object(o.wrap)(n,"ContentType","unpublish"),create:Object(o.wrap)(n,"ContentType","create"),createWithId:Object(o.wrap)(n,"ContentType","createWithId"),omitAndDeleteField:function(n,o,i){return Object(r.omitAndDeleteField)(t,c(c({},c(c({},e),n)),{},{fieldId:i}),o)}},user:{getManyForSpace:Object(o.wrap)(n,"User","getManyForSpace"),getForSpace:Object(o.wrap)(n,"User","getForSpace"),getCurrent:Object(o.wrap)(n,"User","getCurrent"),getForOrganization:Object(o.wrap)(n,"User","getForOrganization"),getManyForOrganization:Object(o.wrap)(n,"User","getManyForOrganization")},task:{get:Object(o.wrap)(n,"Task","get"),getMany:Object(o.wrap)(n,"Task","getMany"),create:Object(o.wrap)(n,"Task","create"),update:Object(o.wrap)(n,"Task","update"),delete:Object(o.wrap)(n,"Task","delete")},entry:{getPublished:Object(o.wrap)(n,"Entry","getPublished"),getMany:Object(o.wrap)(n,"Entry","getMany"),get:Object(o.wrap)(n,"Entry","get"),update:Object(o.wrap)(n,"Entry","update"),patch:Object(o.wrap)(n,"Entry","patch"),delete:Object(o.wrap)(n,"Entry","delete"),publish:Object(o.wrap)(n,"Entry","publish"),unpublish:Object(o.wrap)(n,"Entry","unpublish"),archive:Object(o.wrap)(n,"Entry","archive"),unarchive:Object(o.wrap)(n,"Entry","unarchive"),create:Object(o.wrap)(n,"Entry","create"),createWithId:Object(o.wrap)(n,"Entry","createWithId"),references:Object(o.wrap)(n,"Entry","references")},asset:{getMany:Object(o.wrap)(n,"Asset","getMany"),get:Object(o.wrap)(n,"Asset","get"),update:Object(o.wrap)(n,"Asset","update"),delete:Object(o.wrap)(n,"Asset","delete"),publish:Object(o.wrap)(n,"Asset","publish"),unpublish:Object(o.wrap)(n,"Asset","unpublish"),archive:Object(o.wrap)(n,"Asset","archive"),unarchive:Object(o.wrap)(n,"Asset","unarchive"),create:Object(o.wrap)(n,"Asset","create"),createWithId:Object(o.wrap)(n,"Asset","createWithId"),createFromFiles:Object(o.wrap)(n,"Asset","createFromFiles"),processForAllLocales:function(n,r,o){return t({entityType:"Asset",action:"processForAllLocales",params:c(c({},c(c({},e),n)),{},{options:o,asset:r})})},processForLocale:function(n,r,o,i){return t({entityType:"Asset",action:"processForLocale",params:c(c({},c(c({},e),n)),{},{locale:o,asset:r,options:i})})}},appUpload:{get:Object(o.wrap)(n,"AppUpload","get"),delete:Object(o.wrap)(n,"AppUpload","delete"),create:Object(o.wrap)(n,"AppUpload","create")},assetKey:{create:Object(o.wrap)(n,"AssetKey","create")},upload:{get:Object(o.wrap)(n,"Upload","get"),create:Object(o.wrap)(n,"Upload","create"),delete:Object(o.wrap)(n,"Upload","delete")},locale:{get:Object(o.wrap)(n,"Locale","get"),getMany:Object(o.wrap)(n,"Locale","getMany"),delete:Object(o.wrap)(n,"Locale","delete"),update:Object(o.wrap)(n,"Locale","update"),create:Object(o.wrap)(n,"Locale","create")},personalAccessToken:{get:Object(o.wrap)(n,"PersonalAccessToken","get"),getMany:Object(o.wrap)(n,"PersonalAccessToken","getMany"),create:function(e,n){return t({entityType:"PersonalAccessToken",action:"create",params:{},headers:n,payload:e})},revoke:Object(o.wrap)(n,"PersonalAccessToken","revoke")},usage:{getManyForSpace:Object(o.wrap)(n,"Usage","getManyForSpace"),getManyForOrganization:Object(o.wrap)(n,"Usage","getManyForOrganization")},release:{archive:Object(o.wrap)(n,"Release","archive"),get:Object(o.wrap)(n,"Release","get"),query:Object(o.wrap)(n,"Release","query"),create:Object(o.wrap)(n,"Release","create"),update:Object(o.wrap)(n,"Release","update"),delete:Object(o.wrap)(n,"Release","delete"),publish:Object(o.wrap)(n,"Release","publish"),unarchive:Object(o.wrap)(n,"Release","unarchive"),unpublish:Object(o.wrap)(n,"Release","unpublish"),validate:Object(o.wrap)(n,"Release","validate")},releaseAction:{get:Object(o.wrap)(n,"ReleaseAction","get"),getMany:Object(o.wrap)(n,"ReleaseAction","getMany"),queryForRelease:Object(o.wrap)(n,"ReleaseAction","queryForRelease")},role:{get:Object(o.wrap)(n,"Role","get"),getMany:Object(o.wrap)(n,"Role","getMany"),create:Object(o.wrap)(n,"Role","create"),createWithId:Object(o.wrap)(n,"Role","createWithId"),update:Object(o.wrap)(n,"Role","update"),delete:Object(o.wrap)(n,"Role","delete")},scheduledActions:{get:Object(o.wrap)(n,"ScheduledAction","get"),getMany:Object(o.wrap)(n,"ScheduledAction","getMany"),create:Object(o.wrap)(n,"ScheduledAction","create"),delete:Object(o.wrap)(n,"ScheduledAction","delete"),update:Object(o.wrap)(n,"ScheduledAction","update")},previewApiKey:{get:Object(o.wrap)(n,"PreviewApiKey","get"),getMany:Object(o.wrap)(n,"PreviewApiKey","getMany")},apiKey:{get:Object(o.wrap)(n,"ApiKey","get"),getMany:Object(o.wrap)(n,"ApiKey","getMany"),create:Object(o.wrap)(n,"ApiKey","create"),createWithId:Object(o.wrap)(n,"ApiKey","createWithId"),update:Object(o.wrap)(n,"ApiKey","update"),delete:Object(o.wrap)(n,"ApiKey","delete")},appDefinition:{get:Object(o.wrap)(n,"AppDefinition","get"),getMany:Object(o.wrap)(n,"AppDefinition","getMany"),create:Object(o.wrap)(n,"AppDefinition","create"),update:Object(o.wrap)(n,"AppDefinition","update"),delete:Object(o.wrap)(n,"AppDefinition","delete"),getInstallationsForOrg:Object(o.wrap)(n,"AppDefinition","getInstallationsForOrg")},appInstallation:{get:Object(o.wrap)(n,"AppInstallation","get"),getMany:Object(o.wrap)(n,"AppInstallation","getMany"),getForOrganization:Object(o.wrap)(n,"AppInstallation","getForOrganization"),upsert:Object(o.wrap)(n,"AppInstallation","upsert"),delete:Object(o.wrap)(n,"AppInstallation","delete")},extension:{get:Object(o.wrap)(n,"Extension","get"),getMany:Object(o.wrap)(n,"Extension","getMany"),create:Object(o.wrap)(n,"Extension","create"),createWithId:Object(o.wrap)(n,"Extension","createWithId"),update:Object(o.wrap)(n,"Extension","update"),delete:Object(o.wrap)(n,"Extension","delete")},webhook:{get:Object(o.wrap)(n,"Webhook","get"),getMany:Object(o.wrap)(n,"Webhook","getMany"),getHealthStatus:Object(o.wrap)(n,"Webhook","getHealthStatus"),getCallDetails:Object(o.wrap)(n,"Webhook","getCallDetails"),getManyCallDetails:Object(o.wrap)(n,"Webhook","getManyCallDetails"),create:Object(o.wrap)(n,"Webhook","create"),update:Object(o.wrap)(n,"Webhook","update"),delete:Object(o.wrap)(n,"Webhook","delete")},snapshot:{getManyForEntry:Object(o.wrap)(n,"Snapshot","getManyForEntry"),getForEntry:Object(o.wrap)(n,"Snapshot","getForEntry"),getManyForContentType:Object(o.wrap)(n,"Snapshot","getManyForContentType"),getForContentType:Object(o.wrap)(n,"Snapshot","getForContentType")},tag:{get:Object(o.wrap)(n,"Tag","get"),getMany:Object(o.wrap)(n,"Tag","getMany"),createWithId:Object(o.wrap)(n,"Tag","createWithId"),update:Object(o.wrap)(n,"Tag","update"),delete:Object(o.wrap)(n,"Tag","delete")},organization:{getAll:Object(o.wrap)(n,"Organization","getMany"),get:Object(o.wrap)(n,"Organization","get")},organizationInvitation:{get:Object(o.wrap)(n,"OrganizationInvitation","get"),create:Object(o.wrap)(n,"OrganizationInvitation","create")},organizationMembership:{get:Object(o.wrap)(n,"OrganizationMembership","get"),getMany:Object(o.wrap)(n,"OrganizationMembership","getMany"),update:Object(o.wrap)(n,"OrganizationMembership","update"),delete:Object(o.wrap)(n,"OrganizationMembership","delete")},spaceMember:{get:Object(o.wrap)(n,"SpaceMember","get"),getMany:Object(o.wrap)(n,"SpaceMember","getMany")},spaceMembership:{get:Object(o.wrap)(n,"SpaceMembership","get"),getMany:Object(o.wrap)(n,"SpaceMembership","getMany"),getForOrganization:Object(o.wrap)(n,"SpaceMembership","getForOrganization"),getManyForOrganization:Object(o.wrap)(n,"SpaceMembership","getManyForOrganization"),create:Object(o.wrap)(n,"SpaceMembership","create"),createWithId:Object(o.wrap)(n,"SpaceMembership","createWithId"),update:Object(o.wrap)(n,"SpaceMembership","update"),delete:Object(o.wrap)(n,"SpaceMembership","delete")},team:{get:Object(o.wrap)(n,"Team","get"),getMany:Object(o.wrap)(n,"Team","getMany"),getManyForSpace:Object(o.wrap)(n,"Team","getManyForSpace"),create:Object(o.wrap)(n,"Team","create"),update:Object(o.wrap)(n,"Team","update"),delete:Object(o.wrap)(n,"Team","delete")},teamMembership:{get:Object(o.wrap)(n,"TeamMembership","get"),getManyForOrganization:Object(o.wrap)(n,"TeamMembership","getManyForOrganization"),getManyForTeam:Object(o.wrap)(n,"TeamMembership","getManyForTeam"),create:Object(o.wrap)(n,"TeamMembership","create"),update:Object(o.wrap)(n,"TeamMembership","update"),delete:Object(o.wrap)(n,"TeamMembership","delete")},teamSpaceMembership:{get:Object(o.wrap)(n,"TeamSpaceMembership","get"),getMany:Object(o.wrap)(n,"TeamSpaceMembership","getMany"),getForOrganization:Object(o.wrap)(n,"TeamSpaceMembership","getForOrganization"),getManyForOrganization:Object(o.wrap)(n,"TeamSpaceMembership","getManyForOrganization"),create:Object(o.wrap)(n,"TeamSpaceMembership","create"),update:Object(o.wrap)(n,"TeamSpaceMembership","update"),delete:Object(o.wrap)(n,"TeamSpaceMembership","delete")},uiConfig:{get:Object(o.wrap)(n,"UIConfig","get"),update:Object(o.wrap)(n,"UIConfig","update")},userUIConfig:{get:Object(o.wrap)(n,"UserUIConfig","get"),update:Object(o.wrap)(n,"UserUIConfig","update")},workflowDefinition:{get:Object(o.wrap)(n,"WorkflowDefinition","get"),getMany:Object(o.wrap)(n,"WorkflowDefinition","getMany"),create:Object(o.wrap)(n,"WorkflowDefinition","create"),update:Object(o.wrap)(n,"WorkflowDefinition","update"),delete:Object(o.wrap)(n,"WorkflowDefinition","delete")},workflow:{getMany:Object(o.wrap)(n,"Workflow","getMany"),create:Object(o.wrap)(n,"Workflow","create"),update:Object(o.wrap)(n,"Workflow","update"),delete:Object(o.wrap)(n,"Workflow","delete"),complete:Object(o.wrap)(n,"Workflow","complete")},workflowsChangelog:{getMany:Object(o.wrap)(n,"WorkflowsChangelog","getMany")}}}},"./plain/wrappers/wrap.ts":function(t,e,n){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},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,"wrap",(function(){return c}));var c=function(t,e,n){var r=t.makeRequest,o=t.defaults;return function(t,a,c){return r({entityType:e,action:n,params:i(i({},o),t),payload:a,headers:c})}}},"./upload-http-client.ts":function(t,e,n){function r(t,e){var n,r=t.httpClientParams,o=r.hostUpload,i=r.defaultHostnameUpload,a=r.timeout;return t.cloneWithNewParams({host:o||i,timeout:null!==(n=null!=a?a:null==e?void 0:e.uploadTimeout)&&void 0!==n?n:3e5})}n.r(e),n.d(e,"getUploadHttpClient",(function(){return r}))},0:function(t,e,n){t.exports=n("./contentful-management.ts")},1:function(t,e){}})},t.exports=n()}(A);var _,k=A.exports;function L(t,e){var n;return k.createClient({apiAdapter:x(e)},{type:"plain",defaults:{environmentId:null!==(n=t.environmentAlias)&&void 0!==n?n:t.environment,spaceId:t.space,organizationId:t.organization}})}var R=[D,z,function(t,e){var n=e.field;if(!n)throw new Error('FieldAPI called for location without "field" property defined.');return{field:new l(t,n)}},N,M],C=((_={})[I.LOCATION_ENTRY_FIELD]=R,_[I.LOCATION_ENTRY_FIELD_SIDEBAR]=R,_[I.LOCATION_ENTRY_SIDEBAR]=[D,z,N,M],_[I.LOCATION_ENTRY_EDITOR]=[D,z,N],_[I.LOCATION_DIALOG]=[D,function(t){return{close:function(e){return t.send("closeDialog",e)}}},M],_[I.LOCATION_PAGE]=[D],_[I.LOCATION_HOME]=[D],_[I.LOCATION_APP_CONFIG]=[D,function(t){return{app:P(t)}}],_);function D(t,e){var n=e.user,r=e.parameters,o=e.locales,i=e.ids,a=e.location||I.LOCATION_ENTRY_FIELD;return{cma:L(i,t),cmaAdapter:x(t),location:{current:a,is:function(t){return a===t}},user:n,parameters:r,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks,optional:o.optional,direction:o.direction},dialogs:m(t,i),navigator:b(t,i),notifier:{success:function(e){return t.send("notify",{type:"success",message:e})},error:function(e){return t.send("notify",{type:"error",message:e})},warning:function(e){return t.send("notify",{type:"warning",message:e})}},ids:i,access:{can:function(e,n,r){return t.call("checkAccess",e,n,r)},canEditAppConfig:function(){return t.call("checkAppConfigAccess")}}}}function M(t,e,n){return{window:f(n,t)}}function N(t,e){return{editor:v(t,e.editorInterface,e.editor)}}function z(t,e){var n=e.locales,r=e.contentType,o=e.entry,i=e.fieldInfo;return{contentType:r,entry:y(t,o,i,(function(e){return new p(t,e,n.default)}))}}var F=function(t,e){if(void 0===t.window||void 0===t.document)return function(){};var n,r,o=((n={promise:null,resolve:null,isFulfilled:!1}).promise=new Promise((function(t){n.resolve=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.isFulfilled=!0,t.apply(void 0,e)}})),n);return o.promise.then((function(e){var n=e[0],r=t.document;r.addEventListener("focus",(function(){return n.send("setActive",!0)}),!0),r.addEventListener("blur",(function(){return n.send("setActive",!1)}),!0)})),function(t,e){!function(t,e){function n(r){var o=r.data;"connect"===o.method&&(t.removeEventListener("message",n),e.apply(void 0,o.params))}t.addEventListener("message",n)}(t,(function(n,r){var o=new s(n.id,t);e(o,n,r)}))}(t,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.resolve(t)})),function(n,i){var a=void 0===i?{supressIframeWarning:!1}:i,c=a.makeCustomApi;a.supressIframeWarning||function(t){t.self===t.top&&console.error("Cannot use App SDK outside of Contenful:\n\nIn order for the App SDK to function correctly, your app needs to be run in an iframe in the Contentful Web App, Compose or Launch.\n\nLearn more about local development with the App SDK here:\nhttps://www.contentful.com/developers/docs/extensibility/ui-extensions/faq/#how-can-i-develop-with-the-ui-extension-sdk-locally")}(t),r||(r=o.promise.then((function(n){var r,o=n[0],i=n[1],a=n[2],s=e(o,i,t);return"function"==typeof c&&(r=c(o,i)),a.forEach((function(t){o._handleMessage(t)})),[s,r]})),o.isFulfilled||function(t){var e=u.getMessageId();t.parent.postMessage({id:e,method:"init",params:[]},"*")}(t)),r.then((function(t){var e=t[0],r=t[1];return n(e,r)}))}}(globalThis,(function(t,e,r){return(C[e.location]||R).reduce((function(o,i){return n(n({},o),i(t,e,r))}),{})}));t.init=F,t.locations=I,Object.defineProperty(t,"__esModule",{value:!0})})),globalThis.contentfulApp=globalThis.contentfulExtension;