contentful-management 6.3.1 → 6.3.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 +1 @@
1
- module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=40)}([function(e,t,n){var r=n(41);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";function r(e){return"[object Array]"===p.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function i(e){if("[object Object]"!==p.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"[object Function]"===p.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var u=n(25),p=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===p.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:i,isUndefined:o,isDate:function(e){return"[object Date]"===p.call(e)},isFile:function(e){return"[object File]"===p.call(e)},isBlob:function(e){return"[object Blob]"===p.call(e)},isFunction:a,isStream:function(e){return s(e)&&a(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){function t(t,o){n[o]=i(n[o])&&i(t)?e(n[o],t):i(t)?e({},t):r(t)?t.slice():t}for(var n={},o=0,s=arguments.length;o<s;o++)c(arguments[o],t);return n},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?u(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){var r=n(92),o=n(23),s=n(93),i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,p=c.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(43),s=n(44),i=n(45),a=n(46),c=n(47);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(15);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(9)(Object,"create");e.exports=r},function(e,t,n){var r=n(63);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(18),o=n(19);e.exports=function(e,t,n,s){var i=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var u=t[a],p=s?s(n[u],e[u],u,n,e):void 0;void 0===p&&(p=e[u]),i?o(n,u,p):r(n,u,p)}return n}},function(e){e.exports=require("os")},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],s=0;s<r.length;++s)void 0!==r[s]&&o.push(r[s]);t.obj[t.prop]=o}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var s=t[r],i=s.obj[s.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],p=i[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(t.push({obj:i,prop:u}),n.push(p))}return o(t),e},decode:function(e,t,n){var r=e.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(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=e+""),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s,i="",a=0;a<o.length;++a)45===(s=o.charCodeAt(a))||46===s||95===s||126===s||48<=s&&57>=s||65<=s&&90>=s||97<=s&&122>=s?i+=o.charAt(a):128>s?i+=r[s]:2048>s?i+=r[192|s>>6]+r[128|63&s]:55296>s||57344<=s?i+=r[224|s>>12]+r[128|63&s>>6]+r[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(a)),i+=r[240|s>>18]+r[128|63&s>>12]+r[128|63&s>>6]+r[128|63&s]);return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(r,o,i){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(i&&(i.plainObjects||i.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var a=r;return n(r)&&!n(o)&&(a=s(r,i)),n(r)&&n(o)?(o.forEach((function(n,o){if(t.call(r,o)){var s=r[o];s&&"object"==typeof s&&n&&"object"==typeof n?r[o]=e(s,n,i):r.push(n)}else r[o]=n})),r):Object.keys(o).reduce((function(n,r){var s=o[r];return n[r]=t.call(n,r)?e(n[r],s,i):s,n}),a)}}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(1);e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(o.isURLSearchParams(t))s=t.toString();else{var i=[];o.forEach(t,(function(e,t){null==e||(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))})))})),s=i.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n,o,s){var i=new Error(e);return r(i,t,n,o,s)}},function(e,t,n){var r=n(94);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(53),o="object"==typeof self&&self&&self.Object===Object&&self,s=r||o||Function("return this")();e.exports=s},function(e,t,n){var r=n(19),o=n(15),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];s.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(68);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(10)(Object.keys,Object);e.exports=r},function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(10)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,s=n(11),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=s.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e+""}}},i)},function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(1),s=n(100),i={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var e;return"undefined"==typeof XMLHttpRequest?"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=n(107)):e=n(101),e}(),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&300>e},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){a.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){a.headers[e]=o.merge(i)})),e.exports=a},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(103),o=n(104);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e){e.exports=require("http")},function(e){e.exports=require("https")},function(e,t,n){function r(e,t){m.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function o(e,t){clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.emit("timeout")}),t)}function s(){clearTimeout(this._timeout)}function i(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var s=o+":",i=n[s]=e[o],a=t[o]=Object.create(i);a.request=function(e,o,i){if("string"==typeof e){var a=e;try{e=c(new f(a))}catch(t){e=l.parse(a)}}else f&&e instanceof f?e=c(e):(i=o,o=e,e={protocol:s});return"function"==typeof o&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,y.equal(o.protocol,s,"protocol mismatch"),g("options",o),new r(o,i)},a.get=function(e,t,n){var r=a.request(e,t,n);return r.end(),r}})),t}function a(){}function c(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=+e.port),t}function u(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n}function p(e,t){function n(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}var l=n(34),f=l.URL,d=n(31),h=n(32),m=n(108).Writable,y=n(109),g=n(110),v=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach((function(e){v[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var b=p("ERR_FR_REDIRECTION_FAILURE",""),w=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),C=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),_=p("ERR_STREAM_WRITE_AFTER_END","write after end");r.prototype=Object.create(m.prototype),r.prototype.write=function(e,t,n){if(this._ending)throw new _;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");return"function"==typeof t&&(n=t,t=null),0===e.length?void(n&&n()):void(this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new C),this.abort()))},r.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,o=this._currentRequest;this.write(e,t,(function(){r._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},r.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},r.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},r.prototype.setTimeout=function(e,t){if(t&&this.once("timeout",t),this.socket)o(this,e);else{var n=this;this._currentRequest.once("socket",(function(){o(n,e)}))}return this.once("response",s),this.once("error",s),this},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){r.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(r.prototype,e,{get:function(){return this._currentRequest[e]}})})),r.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(!e.hostname&&(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");0>t?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},r.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=l.format(this._options),r._redirectable=this,v)o&&r.on(o,v[o]);if(this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;!function e(t){if(r===i._currentRequest)if(t)i.emit("error",t);else if(s<a.length){var n=a[s++];r.finished||r.write(n.data,n.encoding,e)}else i._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},r.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(n&&!1!==this._options.followRedirects&&300<=t&&400>t){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",a),this._currentRequest.abort(),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new w);(301!==t&&302!==t||"POST"!==this._options.method)&&(303!==t||/^(?:GET|HEAD)$/.test(this._options.method))||(this._options.method="GET",this._requestBodyBuffers=[],u(/^content-/i,this._options.headers));var r=u(/^host$/i,this._options.headers)||l.parse(this._currentUrl).hostname,o=l.resolve(this._currentUrl,n);g("redirecting to",o),this._isRedirect=!0;var s=l.parse(o);if(Object.assign(this._options,s),s.hostname!==r&&u(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var i={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,i)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var c=new b("Redirected request failed: "+e.message);c.cause=e,this.emit("error",c)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=i({http:d,https:h}),e.exports.wrap=i},function(e){e.exports=require("url")},function(e,t,n){function r(e){function n(){if(n.enabled){var e=n,o=+new Date,s=o-(r||o);e.diff=s,e.prev=r,e.curr=o,r=o;for(var i=Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var s=i[c];n=o.call(e,s),i.splice(c,1),c--}return n})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}var r;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var s=t.instances[n];s.enabled=t.enabled(s.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(113),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){function n(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(s[o]=n(void 0,e[o])):s[o]=n(e[o],t[o])}t=t||{};var s={},i=["url","method","data"],a=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];r.forEach(i,(function(e){r.isUndefined(t[e])||(s[e]=n(void 0,t[e]))})),r.forEach(a,o),r.forEach(c,(function(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(s[o]=n(void 0,e[o])):s[o]=n(void 0,t[o])})),r.forEach(u,(function(r){r in t?s[r]=n(e[r],t[r]):r in e&&(s[r]=n(void 0,e[r]))}));var p=i.concat(a).concat(c).concat(u),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===p.indexOf(e)}));return r.forEach(l,o),s}},function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},function(e,t,n){"use strict";var r=n(90),o=n(91),s=n(24);e.exports={formats:s,parse:o,stringify:r}},function(e,t,n){e.exports=n(95)},function(e,t,n){e.exports=n(123)},function(e,t,n){var r=n(42),o=n(67),s=n(18),i=n(69),a=n(70),c=n(71),u=n(73),p=n(74),l=n(76),f=n(78),d=n(79),h=n(80),m=n(81),y=n(82),g=n(83),v=n(86),b=n(87),w=n(88),C=n(22),_=n(89),x=n(20),O=n(21),j=1,E=2,P=4,A="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",R="[object Object]",k={};k[A]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[R]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,U,M,L,F){var q,D=n&j,N=n&E;if(U&&(q=L?U(t,M,L,F):U(t)),void 0!==q)return q;if(!C(t))return t;var z=v(t);if(z){if(q=m(t),!D)return u(t,q)}else{var I=h(t),B=I==T||I==S;if(b(t))return c(t,D);if(I==R||I==A||B&&!L){if(q=N||B?{}:g(t),!D)return N?l(t,a(q,t)):p(t,i(q,t))}else{if(!k[I])return L?t:{};q=y(t,I,D)}}F||(F=new r);var W=F.get(t);if(W)return W;F.set(t,q),_(t)?t.forEach((function(r){q.add(e(r,n,U,r,t,F))})):w(t)&&t.forEach((function(r,o){q.set(o,e(r,n,U,o,t,F))}));var H=z?void 0:(n&P?N?d:f:N?O:x)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),s(q,o,e(r,n,U,o,t,F))})),q}},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(3),s=n(48),i=n(49),a=n(50),c=n(51),u=n(52);r.prototype.clear=s,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=c,r.prototype.set=u,e.exports=r},function(e){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(4),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(0>n)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(4);e.exports=function(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}},function(e,t,n){var r=n(4);e.exports=function(e){return-1<r(this.__data__,e)}},function(e,t,n){var r=n(4);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return 0>o?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(3);e.exports=function(){this.__data__=new r,this.size=0}},function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e){e.exports=function(e){return this.__data__.get(e)}},function(e){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(3),o=n(16),s=n(54);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},function(e){var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(55),s=n(62),i=n(64),a=n(65),c=n(66);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(56),o=n(3),s=n(16);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(57),s=n(58),i=n(59),a=n(60),c=n(61);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(5);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(5);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(6);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(6);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(6);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(6);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(9),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(7),o=n(20);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(21);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){(function(e){var r=n(17),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(72)(e))},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(7),o=n(75);e.exports=function(e,t){return r(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,n){var r=n(7),o=n(77);e.exports=function(e,t){return r(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,n){var r=n(10)(Object.keys,Object);e.exports=r},function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e){e.exports=function(e){return e}},function(e,t,n){var r=n(84),o=n(23),s=n(85);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:r(o(e))}},function(e,t,n){var r=n(22),o=Object.create,s=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=s},function(e){e.exports=function(){return!1}},function(e){var t=Array.isArray;e.exports=t},function(e){e.exports=function(){return!1}},function(e){e.exports=function(){return!1}},function(e){e.exports=function(){return!1}},function(e,t,n){"use strict";var r=n(11),o=n(24),s=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},p=Date.prototype.toISOString,l=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,s,i,c,p,l,d,h,m,y,g){var v=t;if("function"==typeof p?v=p(n,v):v instanceof Date?v=h(v):"comma"===o&&a(v)&&(v=r.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(s)return c&&!y?c(n,f.encoder,g,"key"):n;v=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(v)||r.isBuffer(v))return c?[m(y?n:c(n,f.encoder,g,"key"))+"="+m(c(v,f.encoder,g,"value"))]:[m(n)+"="+m(v+"")];var b,w=[];if(void 0===v)return w;if(a(p))b=p;else{var C=Object.keys(v);b=l?C.sort(l):C}for(var _=0;_<b.length;++_){var x=b[_],O=v[x];if(!i||null!==O){var j=a(v)?"function"==typeof o?o(n,x):n:n+(d?"."+x:"["+x+"]");u(w,e(O,j,o,s,i,c,p,l,d,h,m,y,g))}}return w},h=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=f.filter;return("function"==typeof e.filter||a(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,r=e,o=h(t);"function"==typeof o.filter?r=(0,o.filter)("",r):a(o.filter)&&(n=o.filter);var s=[];if("object"!=typeof r||null===r)return"";var c=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices",p=i[c];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var l,f=0;f<n.length;++f)l=n[f],(!o.skipNulls||null!==r[l])&&u(s,d(r[l],l,p,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var m=s.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),0<m.length?y+m:""}},function(e,t,n){"use strict";var r=n(11),o=Object.prototype.hasOwnProperty,s=Array.isArray,i={allowDots:!1,allowPrototypes:!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},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e},u=function(e,t){var n,u={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=p.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var m,y,g=f[n],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),i.decoder,h,"key"),y=r.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=a(y)),-1<g.indexOf("[]=")&&(y=s(y)?[y]:y),u[m]=o.call(u,m)?r.combine(u[m],y):y}return u},p=function(e,t,n,r){for(var o=r?t:c(t,n),s=e.length-1;0<=s;--s){var i,a=e[s];if("[]"===a&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&p+""===u&&0<=p&&n.parseArrays&&p<=n.arrayLimit?(i=[])[p]=o:i[u]=o:i={0:o}}o=i}return o},l=function(e,t,n,r){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=0<n.depth&&/(\[[^[\]]*])/.exec(s),c=a?s.slice(0,a.index):s,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var l=0;0<n.depth&&null!==(a=i.exec(s))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+s.slice(a.index)+"]"),p(u,t,n,r)}},f=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?u(e,n):e,s=n.plainObjects?Object.create(null):{},i=Object.keys(o),a=0;a<i.length;++a){var c=i[a],p=l(c,o[c],n,"string"==typeof e);s=r.merge(s,p,n)}return r.compact(s)}},function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){"use strict";function r(e){var t=new i(e),n=s(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(1),s=n(25),i=n(96),a=n(36),c=r(n(27));c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(37),c.CancelToken=n(121),c.isCancel=n(26),c.all=function(e){return Promise.all(e)},c.spread=n(122),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(1),s=n(12),i=n(97),a=n(98),c=n(36);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=c(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){r.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){r.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(1);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(1),s=n(99),i=n(26),a=n(27);e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return r(e),t.data=s(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(1),o=n(28),s=n(102),i=n(12),a=n(30),c=n(105),u=n(106),p=n(13);e.exports=function(e){return new Promise((function(t,n){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+m)}var y=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,s={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,s),d=null}},d.onabort=function(){d&&(n(p("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(p("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(p(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(y))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(n){if("json"!==e.responseType)throw n}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),l||(l=null),d.send(l)}))}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),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"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&0<=o.indexOf(t))return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(1),o=n(28),s=n(30),i=n(12),a=n(31),c=n(32),u=n(33).http,p=n(33).https,l=n(34),f=n(119),d=n(120),h=n(13),m=n(29),y=/https:?/;e.exports=function(e){return new Promise((function(t,n){var g,v=function(e){t(e)},b=function(e){n(e)},w=e.data,C=e.headers;if(C["User-Agent"]||C["user-agent"]||(C["User-Agent"]="axios/"+d.version),w&&!r.isStream(w)){if(Buffer.isBuffer(w));else if(r.isArrayBuffer(w))w=Buffer.from(new Uint8Array(w));else{if(!r.isString(w))return b(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));w=Buffer.from(w,"utf-8")}C["Content-Length"]=w.length}e.auth&&(g=(e.auth.username||"")+":"+(e.auth.password||""));var _=s(e.baseURL,e.url),x=l.parse(_),O=x.protocol||"http:";if(!g&&x.auth){var j=x.auth.split(":");g=(j[0]||"")+":"+(j[1]||"")}g&&delete C.Authorization;var E=y.test(O),P=E?e.httpsAgent:e.httpAgent,A={path:i(x.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:C,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:g};e.socketPath?A.socketPath=e.socketPath:(A.hostname=x.hostname,A.port=x.port);var T=e.proxy;if(!T&&!1!==T){var S=O.slice(0,-1)+"_proxy",R=process.env[S]||process.env[S.toUpperCase()];if(R){var k=l.parse(R),U=process.env.no_proxy||process.env.NO_PROXY,M=!0;if(U)M=!U.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&x.hostname.substr(x.hostname.length-e.length)===e||x.hostname===e)}));if(M&&(T={host:k.hostname,port:k.port},k.auth)){var L=k.auth.split(":");T.auth={username:L[0],password:L[1]}}}}if(T&&(A.hostname=T.host,A.host=T.host,A.headers.host=x.hostname+(x.port?":"+x.port:""),A.port=T.port,A.path=O+"//"+x.hostname+(x.port?":"+x.port:"")+A.path,T.auth)){var F=Buffer.from(T.auth.username+":"+T.auth.password,"utf8").toString("base64");A.headers["Proxy-Authorization"]="Basic "+F}var q,D=E&&(!T||y.test(T.protocol));e.transport?q=e.transport:0===e.maxRedirects?q=D?c:a:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),q=D?p:u),-1<e.maxBodyLength&&(A.maxBodyLength=e.maxBodyLength);var N=q.request(A,(function(t){if(!N.aborted){var n=t,s=t.req||N;if(204!==t.statusCode&&"HEAD"!==s.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(f.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:s};if("stream"===e.responseType)i.data=n,o(v,b,i);else{var a=[];n.on("data",(function(t){a.push(t),-1<e.maxContentLength&&Buffer.concat(a).length>e.maxContentLength&&(n.destroy(),b(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,s)))})),n.on("error",(function(t){N.aborted||b(m(t,e,null,s))})),n.on("end",(function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),(!e.responseEncoding||"utf8"===e.responseEncoding)&&(t=r.stripBOM(t))),i.data=t,o(v,b,i)}))}}}));N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||b(m(t,e,null,N))})),e.timeout&&N.setTimeout(e.timeout,(function(){N.abort(),b(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",N))})),e.cancelToken&&e.cancelToken.promise.then((function(e){N.aborted||(N.abort(),b(e))})),r.isStream(w)?w.on("error",(function(t){b(m(t,e,null,N))})).pipe(N):N.end(w)}))}},function(e){e.exports=require("stream")},function(e){e.exports=require("assert")},function(e,t,n){var r;try{r=n(111)("follow-redirects")}catch(e){r=function(){}}e.exports=r},function(e,t,n){e.exports="undefined"==typeof process||"renderer"===process.type?n(112):n(114)},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(35)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"===e||(o++,"%c"===e&&(s=o))})),e.splice(s,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e){function t(e){if(!(100<(e+="").length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();return"years"===r||"year"===r||"yrs"===r||"yr"===r||"y"===r?n*u:"days"===r||"day"===r||"d"===r?n*c:"hours"===r||"hour"===r||"hrs"===r||"hr"===r||"h"===r?n*a:"minutes"===r||"minute"===r||"mins"===r||"min"===r||"m"===r?n*i:"seconds"===r||"second"===r||"secs"===r||"sec"===r||"s"===r?n*s:"milliseconds"===r||"millisecond"===r||"msecs"===r||"msec"===r||"ms"===r?n:void 0}}}function n(e){var t=Math.round;return e>=c?t(e/c)+"d":e>=a?t(e/a)+"h":e>=i?t(e/i)+"m":e>=s?t(e/s)+"s":e+"ms"}function r(e){return o(e,c,"day")||o(e,a,"hour")||o(e,i,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,n){return e<t?void 0:e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,i=60*s,a=60*i,c=24*a,u=365.25*c;e.exports=function(e,o){o=o||{};var s=typeof e;if("string"==s&&0<e.length)return t(e);if("number"==s&&!1===isNaN(e))return o.long?r(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(){return process.env.DEBUG}var o=n(115),s=n(116);(t=e.exports=n(35)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(s.format.apply(s,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,o="[3"+(8>r?r:"8;5;"+r),s=" "+o+";1m"+n+" ";e[0]=s+e[0].split("\n").join("\n"+s),e.push(o+"m+"+t.humanize(this.diff)+"")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=r,t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:o.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var i=n(117);i&&2<=i.level&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:+r),e[n]=r,e}),{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)},t.enable(r())},function(e){e.exports=require("tty")},function(e){e.exports=require("util")},function(e,t,n){"use strict";function r(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:2<=e,has16m:3<=e}}(function(e){if(!1===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;const t=a?1:0;if("win32"===process.platform){const e=o.release().split(".");return 8<=+process.versions.node.split(".")[0]&&10<=+e[0]&&10586<=+e[2]?14931<=+e[2]?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in i)||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return 3<=e?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e))}const o=n(8),s=n(118),i=process.env;let a;s("no-color")||s("no-colors")||s("color=false")?a=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:r,stdout:r(process.stdout),stderr:r(process.stderr)}},function(e){"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(!(-1!==o)||r<o)}},function(e){e.exports=require("zlib")},function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.0","/home/circleci/project"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_where":"/home/circleci/project","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.0"}')},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}var o=n(37);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(){return"undefined"!=typeof process&&!process.browser}function u(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function p(e,t){var n=s({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var n=[t.name,t.message].filter((function(e){return e})).join(" - ");return console.error("[error] ".concat(n)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1,maxContentLength:1073741824},{},t);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",l=n.defaultHostname,f=n.insecure?80:443;if(n.host&&st.test(n.host)){var d=n.host.split(":");if(2===d.length){var h=i(d,2);l=h[0],f=h[1]}else l=d[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var m=t.baseURL||"".concat(o,"://").concat(l,":").concat(f).concat(n.basePath,"/spaces/").concat(a);n.headers.Authorization||(n.headers.Authorization="Bearer "+n.accessToken),c()&&(n.headers["user-agent"]="node.js/"+u(),n.headers["Accept-Encoding"]="gzip");var y={baseURL:m,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Ze.a.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},g=e.create(y);return g.httpClientParams=t,g.cloneWithNewParams=function(n){return p(e,s({},Qe()(t),{},n))},function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=void 0===r?function(){}:r,s=n.requestLogger,i=void 0===s?function(){}:s;e.interceptors.request.use((function(e){return i(e),e}),(function(e){return Promise.reject(e)})),e.interceptors.response.use((function(e){return o(e),e}),(function(n){var r=Math.pow,o=n.response,s=n.config;if(!s||!e.defaults.retryOnError)return Promise.reject(n);var i=null,a=0;if(o)ot=0;else{if(i="Connection",++ot>t)return n.attempts=ot,Promise.reject(n);a=r(Math.SQRT2,ot),o={}}if(500<=o.status&&600>o.status){i="Server ".concat(o.status);var c=(o.headers||{})["x-contentful-request-id"]||null;if(rt[c]=rt[c]||0,rt[c]++,rt[c]>t||!c)return n.attempts=rt[c],Promise.reject(n);a=r(Math.SQRT2,rt[c])}else 429===o.status&&(i="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(a=o.headers["x-contentful-ratelimit-reset"]));return i?(a=Math.floor(1e3*a+200*Math.random()+500),e.defaults.logHandler("warning","".concat(i," error occurred. Waiting for ").concat(a," ms before retrying...")),delete s.httpAgent,delete s.httpsAgent,function(e){return new Promise((function(t){setTimeout(t,e)}))}(a).then((function(){return e(s)}))):Promise.reject(n)}))}(g,n.retryLimit),g}function l(e){var t=e.query,n={};return delete t.resolveLinks,n.params=Qe()(t),n}function f(e){return function e(t){return Object.keys(t).forEach((function(n){var r=t[n];tt()(r)&&e(r)})),Object.freeze(t)}(e.sys||{}),e}function d(){if(!window)return null;var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1===["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?-1===["iPhone","iPad","iPod"].indexOf(t)?-1===["Win32","Win64","Windows","WinCE"].indexOf(t)?/Android/.test(e)?n="Android":/Linux/.test(t)&&(n="Linux"):n="Windows":n="iOS":n="macOS",n}function h(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var s=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(s=d(),o.push("platform ReactNative")):c()?(s=function(){var e=Object(nt.platform)()||"linux",t=Object(nt.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}(),o.push("platform node.js/".concat(u()))):(s=d(),o.push("platform browser"))}catch(t){s=null}return s&&o.push("os ".concat(s)),"".concat(o.filter((function(e){return""!==e})).join("; "),";")}function m(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Qe()(this)}})}function y(e){const t=e.config,n=e.response;let r;if(t.headers&&t.headers.Authorization){const e="..."+t.headers.Authorization.substr(-5);t.headers.Authorization="Bearer "+e}if(!tt()(n)||!tt()(t))throw e;const o=null==n?void 0:n.data,s={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};tt()(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&tt()(o)&&("requestId"in o&&(s.requestId=o.requestId||"UNKNOWN"),"message"in o&&(s.message=o.message||""),"details"in o&&(s.details=o.details||{}),"sys"in o&&"id"in o.sys&&(r=o.sys.id));const i=new Error;throw i.name=r&&"Unknown"!==r?r:`${null==n?void 0:n.status} ${null==n?void 0:n.statusText}`,i.message=JSON.stringify(s,null," "),i}function g(e,t){return Object.keys(t).reduce((e,n)=>(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:t[n]}),e),e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?v(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C({http:e,entityPath:t,wrapperMethod:n,headers:r}){return function(){const o=this,s=o.toPlainObject(),i=Qe()(s);return delete i.sys,e.put(t+"/"+o.sys.id,i,{headers:b({"X-Contentful-Version":o.sys.version||0},r)}).then(t=>n(e,t.data),y)}}function _({http:e,entityPath:t}){return function(){return e.delete(t+"/"+this.sys.id).then(()=>{},y)}}function x({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.put(t+"/"+this.sys.id+"/published",null,{headers:{"X-Contentful-Version":this.sys.version}}).then(t=>n(e,t.data),y)}}function O({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.delete(t+"/"+this.sys.id+"/published").then(t=>n(e,t.data),y)}}function j({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.put(t+"/"+this.sys.id+"/archived").then(t=>n(e,t.data),y)}}function E({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.delete(t+"/"+this.sys.id+"/archived").then(t=>n(e,t.data),y)}}function P(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this;"accessToken"in t&&delete t.accessToken,"preview_api_key"in t&&delete t.preview_api_key,"policies"in t&&delete t.policies;return C({http:e,entityPath:"api_keys",wrapperMethod:P}).call(t)},delete:_({http:e,entityPath:"api_keys"})}}(e)))}function A(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:ut,wrapperMethod:A}),delete:_({http:e,entityPath:ut})}}(e)))}function T(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("app_installations/"+this.sys.appDefinition.sys.id,n).then(t=>T(e,t.data),y)},delete:function(){const t=this.toPlainObject();return e.delete("app_installations/"+t.sys.appDefinition.sys.id).then(()=>{},y)}}}(e)))}function S(e,t){return f(g(m(Qe()(t)),function(e){function t({resolve:n,reject:r,id:o,locale:s,processingCheckWait:i=ft,processingCheckRetries:a=dt,checkCount:c=0}){e.get("assets/"+o).then(t=>S(e,t.data),y).then(e=>{if(e.fields.file[s].url)n(e);else if(c===a){const e=new Error;e.name="AssetProcessingTimeout",e.message="Asset is taking longer then expected to process.",r(e)}else c++,setTimeout(()=>t({resolve:n,reject:r,id:o,locale:s,checkCount:c,processingCheckWait:i,processingCheckRetries:a}),i)})}function n(n,{processingCheckWait:r,processingCheckRetries:o}={}){const s=this.sys.id;return e.put("assets/"+this.sys.id+"/files/"+n+"/process",null,{headers:{"X-Contentful-Version":this.sys.version}}).then(()=>new Promise((e,i)=>t({resolve:e,reject:i,id:s,locale:n,processingCheckWait:r,processingCheckRetries:o})),y)}return{update:C({http:e,entityPath:"assets",wrapperMethod:S}),delete:_({http:e,entityPath:"assets"}),publish:x({http:e,entityPath:"assets",wrapperMethod:S}),unpublish:O({http:e,entityPath:"assets",wrapperMethod:S}),archive:j({http:e,entityPath:"assets",wrapperMethod:S}),unarchive:E({http:e,entityPath:"assets",wrapperMethod:S}),processForLocale:n,processForAllLocales:function(e={}){const t=this;let r;const o=Object.keys(this.fields.file||{}).map(o=>n.call(t,o,e).then(e=>{r=e}));return Promise.all(o).then(()=>r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}(e)))}function R(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject(),r=Qe()(n);return delete r.sys,e.put(`content_types/${t.sys.contentType.sys.id}/editor_interface`,r,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>R(e,t.data),y)},getControlForField:function(e){const t=this.controls.filter(t=>t.fieldId===e);return t&&0<t.length?t[0]:null}}}(e)))}function k(e,t){return f(g(m(Qe()(t)),{}))}function U(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"content_types",wrapperMethod:U}),delete:_({http:e,entityPath:"content_types"}),publish:x({http:e,entityPath:"content_types",wrapperMethod:U}),unpublish:O({http:e,entityPath:"content_types",wrapperMethod:U}),getEditorInterface:function(){return e.get("content_types/"+this.sys.id+"/editor_interface").then(t=>R(e,t.data),y)},getSnapshots:function(t={}){return e.get(`content_types/${this.sys.id}/snapshots`,l({query:t})).then(t=>mt(e,t.data),y)},getSnapshot:function(t){return e.get(`content_types/${this.sys.id}/snapshots/${t}`).then(e=>k(0,e.data),y)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},omitAndDeleteField:function(e){return yt(this,e,"omitted",!0).then(t=>yt(t,e,"deleted",!0)).catch(y)}}}(e)))}function M(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"entries",wrapperMethod:M}),delete:_({http:e,entityPath:"entries"}),publish:x({http:e,entityPath:"entries",wrapperMethod:M}),unpublish:O({http:e,entityPath:"entries",wrapperMethod:M}),archive:j({http:e,entityPath:"entries",wrapperMethod:M}),unarchive:E({http:e,entityPath:"entries",wrapperMethod:M}),getSnapshots:function(t={}){return e.get(`entries/${this.sys.id}/snapshots`,l({query:t})).then(t=>mt(e,t.data),y)},getSnapshot:function(t){return e.get(`entries/${this.sys.id}/snapshots/${t}`).then(e=>k(0,e.data),y)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}(e)))}function L(e){return function(){return e.delete("tags/"+this.sys.id,at(this.sys.version)).then(()=>{},y)}}function F(e){return function(){const t=this;return e.put("tags/"+t.sys.id,{name:t.name,sys:{id:t.sys.id}},at(t.sys.version)).then(t=>D(e,t.data),y)}}function q(e){return{update:F(e),delete:L(e)}}function D(e,t){return f(g(m(Qe()(t)),q(e)))}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?N(Object(t),!0).forEach((function(n){I(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){const n=e,r=m(Qe()(t)),o=n.httpClientParams,s=o.hostUpload,i=o.defaultHostnameUpload,a=function({http:e,httpUpload:t}){function n(t){return e.post("assets",t).then(t=>h(e,t.data),y)}function r(e){const n=e.file;return n?t.post("uploads",n,{headers:{"Content-Type":"application/octet-stream"}}).then(e=>_(t,e.data)).catch(y):Promise.reject(new Error("Unable to locate a file to upload."))}function o(e){e.select&&!/sys/i.test(e.select)&&(e.select+=",sys")}const s=Ht.environment.wrapEnvironment,i=Ht.contentType,a=i.wrapContentType,c=i.wrapContentTypeCollection,u=Ht.entry,p=u.wrapEntry,f=u.wrapEntryCollection,d=Ht.asset,h=d.wrapAsset,m=d.wrapAssetCollection,g=Ht.locale,v=g.wrapLocale,b=g.wrapLocaleCollection,w=Ht.snapshot.wrapSnapshotCollection,C=Ht.editorInterface.wrapEditorInterface,_=Ht.upload.wrapUpload,x=Ht.uiExtension,O=x.wrapUiExtension,j=x.wrapUiExtensionCollection,E=Ht.appInstallation,P=E.wrapAppInstallation,A=E.wrapAppInstallationCollection;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("",n,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>s(e,t.data),y)},getEntryFromData:t=>p(e,t),getAssetFromData:t=>h(e,t),getContentType:t=>e.get("content_types/"+t).then(t=>a(e,t.data),y),getContentTypes:(t={})=>e.get("content_types",l({query:t})).then(t=>c(e,t.data),y),createContentType:t=>e.post("content_types",t).then(t=>a(e,t.data),y),createContentTypeWithId:(t,n)=>e.put("content_types/"+t,n).then(t=>a(e,t.data),y),getEditorInterfaceForContentType:t=>e.get("content_types/"+t+"/editor_interface").then(t=>C(e,t.data),y),getEntry:(t,n={})=>(o(n),e.get("entries/"+t,l({query:n})).then(t=>p(e,t.data),y)),getEntries:(t={})=>(o(t),e.get("entries",l({query:t})).then(t=>f(e,t.data),y)),createEntry:(t,n)=>e.post("entries",n,{headers:{"X-Contentful-Content-Type":t}}).then(t=>p(e,t.data),y),createEntryWithId:(t,n,r)=>e.put("entries/"+n,r,{headers:{"X-Contentful-Content-Type":t}}).then(t=>p(e,t.data),y),getAsset:(t,n={})=>(o(n),e.get("assets/"+t,l({query:n})).then(t=>h(e,t.data),y)),getAssets:(t={})=>(o(t),e.get("assets",l({query:t})).then(t=>m(e,t.data),y)),createAsset:n,createAssetWithId:(t,n)=>e.put("assets/"+t,n).then(t=>h(e,t.data),y),createAssetFromFiles(e){const t=e.fields.file;return Promise.all(Object.keys(t).map(e=>{const n=t[e],o=n.contentType,s=n.fileName;return r(t[e]).then(t=>({[e]:{contentType:o,fileName:s,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}}))})).then(t=>{const r=t.reduce((e,t)=>z(z({},e),t),{});return n(z(z({},e),{},{fields:z(z({},e.fields),{},{file:r})}))}).catch(y)},getUpload:n=>t.get("uploads/"+n).then(t=>_(e,t.data)).catch(y),createUpload:r,getLocale:t=>e.get("locales/"+t).then(t=>v(e,t.data),y),getLocales:()=>e.get("locales").then(t=>b(e,t.data),y),createLocale:t=>e.post("locales",t).then(t=>v(e,t.data),y),getUiExtension:t=>e.get("extensions/"+t).then(t=>O(e,t.data),y),getUiExtensions:()=>e.get("extensions").then(t=>j(e,t.data),y),createUiExtension:t=>e.post("extensions",t).then(t=>O(e,t.data),y),createUiExtensionWithId:(t,n)=>e.put("extensions/"+t,n).then(t=>O(e,t.data),y),createAppInstallation:(t,n)=>e.put("app_installations/"+t,n).then(t=>P(e,t.data),y),getAppInstallation:t=>e.get("app_installations/"+t).then(t=>P(e,t.data),y),getAppInstallations:()=>e.get("app_installations").then(t=>A(e,t.data),y),getEntrySnapshots:(t,n={})=>e.get(`entries/${t}/snapshots`,l({query:n})).then(t=>w(e,t.data),y),getContentTypeSnapshots:(t,n={})=>e.get(`content_types/${t}/snapshots`,l({query:n})).then(t=>w(e,t.data),y),createTag:(t,n)=>e.put("tags/"+t,{name:n,sys:{type:"Tag",id:t}}).then(t=>D(e,t.data),y),getTags:(t={})=>e.get("tags",l({query:t})).then(t=>bt(e,t.data),y),getTag:t=>e.get("tags/"+t).then(t=>D(e,t.data),y)}}({http:n.cloneWithNewParams({baseURL:e.defaults.baseURL+"environments/"+r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.space.sys.id,host:s||i})});return f(g(r,a))}function W(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"environment_aliases",wrapperMethod:W}),delete:_({http:e,entityPath:"environment_aliases"})}}(e)))}function H(e,t){delete t.internal_code;return f(g(m(Qe()(t)),function(e){return{update:function(){return delete this.default,C({http:e,entityPath:"locales",wrapperMethod:H}).call(this)},delete:_({http:e,entityPath:"locales"})}}(e)))}function V(e,t){const n=m(Qe()(t)),r=(e.defaults.baseURL||"").replace("/spaces/","/organizations/")+n.sys.id+"/",o=function({http:e}){const t=Ht.appDefinition,n=t.wrapAppDefinition,r=t.wrapAppDefinitionCollection,o=Ht.user,s=o.wrapUser,i=o.wrapUserCollection,a=Ht.organizationMembership,c=a.wrapOrganizationMembership,u=a.wrapOrganizationMembershipCollection,p=Ht.teamMembership,f=p.wrapTeamMembership,d=p.wrapTeamMembershipCollection,h=Ht.teamSpaceMembership,m=h.wrapTeamSpaceMembership,g=h.wrapTeamSpaceMembershipCollection,v=Ht.team,b=v.wrapTeam,w=v.wrapTeamCollection,C=Ht.spaceMembership,_=C.wrapSpaceMembership,x=C.wrapSpaceMembershipCollection,O=Ht.organizationInvitation.wrapOrganizationInvitation,j={"x-contentful-enable-alpha-feature":"organization-user-management-api"};return{getUser:t=>e.get("users/"+t).then(t=>s(e,t.data),y),getUsers:(t={})=>e.get("users",l({query:t})).then(t=>i(e,t.data),y),getOrganizationMembership:t=>e.get("organization_memberships/"+t).then(t=>c(e,t.data),y),getOrganizationMemberships:(t={})=>e.get("organization_memberships",l({query:t})).then(t=>u(e,t.data),y),createTeam:t=>e.post("teams",t).then(t=>b(e,t.data),y),getTeam:t=>e.get("teams/"+t).then(t=>b(e,t.data),y),getTeams:(t={})=>e.get("teams",l({query:t})).then(t=>w(e,t.data),y),createTeamMembership:(t,n)=>e.post("teams/"+t+"/team_memberships",n).then(t=>f(e,t.data),y),getTeamMembership:(t,n)=>e.get("teams/"+t+"/team_memberships/"+n).then(t=>f(e,t.data),y),getTeamMemberships(t={}){const n=Ot()(t,"query",{});return t.teamId?e.get("teams/"+t.teamId+"/team_memberships",l({query:n})).then(t=>d(e,t.data),y):e.get("team_memberships",l({query:n})).then(t=>d(e,t.data),y)},getTeamSpaceMemberships(t={}){const n=Ot()(t,"query",{});return t.teamId&&(n["sys.team.sys.id"]=t.teamId),e.get("team_space_memberships",l({query:n})).then(t=>g(e,t.data),y)},getTeamSpaceMembership:t=>e.get("team_space_memberships/"+t).then(t=>m(e,t.data),y),getOrganizationSpaceMembership:t=>e.get("space_memberships/"+t).then(t=>_(e,t.data),y),getOrganizationSpaceMemberships:(t={})=>e.get("space_memberships",l({query:t})).then(t=>x(e,t.data),y),getOrganizationInvitation:t=>e.get("invitations/"+t,{headers:j}).then(t=>O(e,t.data),y),createOrganizationInvitation:t=>e.post("invitations",t,{headers:{"x-contentful-enable-alpha-feature":"pending-org-membership"}}).then(t=>O(e,t.data),y),createAppDefinition:t=>e.post("app_definitions",t).then(t=>n(e,t.data),y),getAppDefinitions:(t={})=>e.get("app_definitions",l({query:t})).then(t=>r(e,t.data),y),getAppDefinition:t=>e.get("app_definitions/"+t).then(t=>n(e,t.data),y)}}({http:e.cloneWithNewParams({baseURL:r})});return f(g(n,o))}function $(e,t){return f(m(Qe()(t)))}function X(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject().role;return e.put("organization_memberships/"+t.sys.id,{role:n},{headers:{"X-Contentful-Version":t.sys.version||0}}).then(t=>X(e,t.data),y)},delete:_({http:e,entityPath:"organization_memberships"})}}(e)))}function K(e,t){return f(g(m(Qe()(t)),function(e){return{revoke:function(){const t=(e.defaults.baseURL||"").replace("/spaces/","/users/me/access_tokens");return e.put(this.sys.id+"/revoked",null,{baseURL:t}).then(e=>e.data,y)}}}(e)))}function G(e,t){return f(g(m(Qe()(t)),{}))}function J(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"roles",wrapperMethod:J}),delete:_({http:e,entityPath:"roles"})}}(e)))}function Q(e){return function(){return e.delete("scheduled_actions/"+this.sys.id).then(t=>Z(e,t.data),y)}}function Y(e){return{delete:Q(e)}}function Z(e,t){return f(g(m(Qe()(t)),Y(e)))}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ee(Object(t),!0).forEach((function(n){ne(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){console.warn([`Deprecated: Space.${e}() will be removed in future major versions.`,null,`Please migrate your code to use Environment.${e}():`,"https://contentful.github.io/contentful-management.js/contentful-management/latest/globals.html#createenvironmentapi",null].join("\n"))}function oe(){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)")}function se(e,t){const n=e,r=m(Qe()(t)),o=n.httpClientParams,s=o.hostUpload,i=o.defaultHostnameUpload,a=function({http:e,httpUpload:t}){function n(t){return e.post("assets",t).then(t=>v(e,t.data),y)}function r(e){re("createUpload");const n=e.file;return n?t.post("uploads",n,{headers:{"Content-Type":"application/octet-stream"}}).then(e=>ae(t,e.data)).catch(y):Promise.reject(new Error("Unable to locate a file to upload."))}function o(e){e.select&&!/sys/i.test(e.select)&&(e.select+=",sys")}const s=Ht.space.wrapSpace,i=Ht.environment,a=i.wrapEnvironment,c=i.wrapEnvironmentCollection,u=Ht.contentType,p=u.wrapContentType,f=u.wrapContentTypeCollection,d=Ht.entry,h=d.wrapEntry,m=d.wrapEntryCollection,g=Ht.asset,v=g.wrapAsset,b=g.wrapAssetCollection,w=Ht.locale,C=w.wrapLocale,_=w.wrapLocaleCollection,x=Ht.webhook,O=x.wrapWebhook,j=x.wrapWebhookCollection,E=Ht.role,P=E.wrapRole,A=E.wrapRoleCollection,T=Ht.user,S=T.wrapUser,R=T.wrapUserCollection,k=Ht.spaceMember,U=k.wrapSpaceMember,M=k.wrapSpaceMemberCollection,L=Ht.spaceMembership,F=L.wrapSpaceMembership,q=L.wrapSpaceMembershipCollection,D=Ht.teamSpaceMembership,N=D.wrapTeamSpaceMembership,z=D.wrapTeamSpaceMembershipCollection,I=Ht.apiKey,B=I.wrapApiKey,W=I.wrapApiKeyCollection,H=Ht.editorInterface.wrapEditorInterface,V=Ht.environmentAlias,$=V.wrapEnvironmentAlias,X=V.wrapEnvironmentAliasCollection,K=Ht.previewApiKey,G=K.wrapPreviewApiKey,J=K.wrapPreviewApiKeyCollection,Q=Ht.scheduledAction,Y=Q.wrapScheduledAction,Z=Q.wrapScheduledActionCollection,ee=Ht.snapshot.wrapSnapshotCollection,ne=Ht.uiExtension,se=ne.wrapUiExtension,ie=ne.wrapUiExtensionCollection,ae=Ht.upload.wrapUpload;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("",n,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>s(e,t.data),y)},getEnvironment:t=>e.get("environments/"+t).then(t=>a(e,t.data),y),getEnvironments:()=>e.get("environments").then(t=>c(e,t.data),y),createEnvironment:(t={})=>e.post("environments",t).then(t=>a(e,t.data),y),createEnvironmentWithId:(t,n,r)=>e.put("environments/"+t,n,{headers:r?{"X-Contentful-Source-Environment":r}:{}}).then(t=>a(e,t.data),y),getContentType:t=>(re("getContentType"),e.get("content_types/"+t).then(t=>p(e,t.data),y)),getContentTypes:(t={})=>(re("getContentTypes"),e.get("content_types",l({query:t})).then(t=>f(e,t.data),y)),createContentType:t=>(re("createContentType"),e.post("content_types",t).then(t=>p(e,t.data),y)),createContentTypeWithId:(t,n)=>(re("createContentTypeWithId"),e.put("content_types/"+t,n).then(t=>p(e,t.data),y)),getEditorInterfaceForContentType:t=>(re("getEditorInterfaceForContentType"),e.get("content_types/"+t+"/editor_interface").then(t=>H(e,t.data),y)),getEntry:(t,n={})=>(re("getEntry"),o(n),e.get("entries/"+t,l({query:n})).then(t=>h(e,t.data),y)),getEntries:(t={})=>(re("getEntries"),o(t),e.get("entries",l({query:t})).then(t=>m(e,t.data),y)),createEntry:(t,n)=>(re("createEntry"),e.post("entries",n,{headers:{"X-Contentful-Content-Type":t}}).then(t=>h(e,t.data),y)),createEntryWithId:(t,n,r)=>(re("createEntryWithId"),e.put("entries/"+n,r,{headers:{"X-Contentful-Content-Type":t}}).then(t=>h(e,t.data),y)),createUpload:r,createAsset:n,getAsset:(t,n={})=>(re("getAsset"),o(n),e.get("assets/"+t,l({query:n})).then(t=>v(e,t.data),y)),getAssets:(t={})=>(re("getAssets"),o(t),e.get("assets",l({query:t})).then(t=>b(e,t.data),y)),createAssetWithId:(t,n)=>(re("createAssetWithId"),e.put("assets/"+t,n).then(t=>v(e,t.data),y)),createAssetFromFiles(e){re("createAssetFromFiles");const t=e.fields.file;return Promise.all(Object.keys(t).map(e=>{const n=t[e],o=n.contentType,s=n.fileName;return r(t[e]).then(t=>({[e]:{contentType:o,fileName:s,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}}))})).then(t=>(e.fields.file=t.reduce((e,t)=>te(te({},e),t),{}),n(e))).catch(y)},getUpload:n=>(re("getUpload"),t.get("uploads/"+n).then(t=>ae(e,t.data)).catch(y)),getLocale:t=>(re("getLocale"),e.get("locales/"+t).then(t=>C(e,t.data),y)),getLocales:()=>(re("getLocales"),e.get("locales").then(t=>_(e,t.data),y)),createLocale:t=>(re("createLocale"),e.post("locales",t).then(t=>C(e,t.data),y)),getWebhook:t=>e.get("webhook_definitions/"+t).then(t=>O(e,t.data),y),getWebhooks:()=>e.get("webhook_definitions").then(t=>j(e,t.data),y),createWebhook:t=>e.post("webhook_definitions",t).then(t=>O(e,t.data),y),createWebhookWithId:(t,n)=>e.put("webhook_definitions/"+t,n).then(t=>O(e,t.data),y),getRole:t=>e.get("roles/"+t).then(t=>P(e,t.data),y),getRoles:(t={})=>(o(t),e.get("roles",l({query:t})).then(t=>A(e,t.data),y)),createRole:t=>e.post("roles",t).then(t=>P(e,t.data),y),createRoleWithId:(t,n)=>e.put("roles/"+t,n).then(t=>P(e,t.data),y),getScheduledActions:t=>e.get("scheduled_actions",l({query:t})).then(t=>Z(e,t.data),y),createScheduledAction:t=>e.post("scheduled_actions",t).then(t=>Y(e,t.data),y),getSpaceUser:t=>e.get("users/"+t).then(t=>S(e,t.data),y),getSpaceUsers:(t={})=>e.get("users/",l({query:t})).then(t=>R(e,t.data),y),getSpaceMember:t=>e.get("space_members/"+t).then(t=>U(e,t.data),y),getSpaceMembers:(t={})=>e.get("space_members",l({query:t})).then(t=>M(e,t.data),y),getSpaceMembership:t=>(oe(),e.get("space_memberships/"+t).then(t=>F(e,t.data),y)),getSpaceMemberships:(t={})=>(oe(),e.get("space_memberships",l({query:t})).then(t=>q(e,t.data),y)),createSpaceMembership:t=>(oe(),e.post("space_memberships",t).then(t=>F(e,t.data),y)),createSpaceMembershipWithId:(t,n)=>(oe(),e.put("space_memberships/"+t,n).then(t=>F(e,t.data),y)),getTeamSpaceMembership:t=>e.get("team_space_memberships/"+t).then(t=>N(e,t.data),y),getTeamSpaceMemberships:(t={})=>e.get("team_space_memberships",l({query:t})).then(t=>z(e,t.data),y),createTeamSpaceMembership:(t,n)=>e.post("team_space_memberships",n,{headers:{"x-contentful-team":t}}).then(t=>N(e,t.data),y),getApiKey:t=>e.get("api_keys/"+t).then(t=>B(e,t.data),y),getApiKeys:()=>e.get("api_keys").then(t=>W(e,t.data),y),getPreviewApiKeys:()=>e.get("preview_api_keys").then(t=>J(e,t.data),y),getPreviewApiKey:t=>e.get("preview_api_keys/"+t).then(t=>G(e,t.data),y),createApiKey:function(t){return e.post("api_keys",t).then(t=>B(e,t.data),y)},createApiKeyWithId:(t,n)=>e.put("api_keys/"+t,n).then(t=>B(e,t.data),y),getUiExtension:t=>(re("getUiExtension"),e.get("extensions/"+t).then(t=>se(e,t.data),y)),getUiExtensions:()=>(re("getUiExtensions"),e.get("extensions").then(t=>ie(e,t.data),y)),createUiExtension:t=>(re("createUiExtension"),e.post("extensions",t).then(t=>se(e,t.data),y)),createUiExtensionWithId:(t,n)=>(re("createUiExtensionWithId"),e.put("extensions/"+t,n).then(t=>se(e,t.data),y)),getEntrySnapshots:(t,n={})=>(re("getEntrySnapshots"),e.get(`entries/${t}/snapshots`,l({query:n})).then(t=>ee(e,t.data),y)),getContentTypeSnapshots:(t,n={})=>(re("getContentTypeSnapshots"),e.get(`content_types/${t}/snapshots`,l({query:n})).then(t=>ee(e,t.data),y)),createEnvironmentAliasWithId:(t,n)=>e.put("environment_aliases/"+t,n).then(t=>$(e,t.data),y),getEnvironmentAlias:t=>e.get("environment_aliases/"+t).then(t=>$(e,t.data),y),getEnvironmentAliases:()=>e.get("environment_aliases").then(t=>X(e,t.data),y)}}({http:n.cloneWithNewParams({space:r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.id,host:s||i})});return f(g(r,a))}function ie(e,t){return f(m(Qe()(t)))}function ae(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"space_memberships",wrapperMethod:ae}),delete:_({http:e,entityPath:"space_memberships"})}}(e)))}function ce(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:Lt,wrapperMethod:ce}),delete:_({http:e,entityPath:Lt})}}(e)))}function ue(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=t.sys.team.sys.id;return e.put("teams/"+n+"/team_memberships/"+this.sys.id,t,{headers:{"X-Contentful-Version":this.sys.version||0}}).then(t=>ue(e,t.data),y)},delete:function(){const t=this.toPlainObject().sys.team.sys.id;return e.delete("teams/"+t+"/team_memberships/"+this.sys.id).then(()=>{},y)}}}(e)))}function pe(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("team_space_memberships/"+this.sys.id,n,{headers:{"X-Contentful-Version":this.sys.version||0,"x-contentful-team":this.sys.team.sys.id}}).then(t=>pe(e,t.data),y)},delete:_({http:e,entityPath:"team_space_memberships"})}}(e)))}function le(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"extensions",wrapperMethod:le}),delete:_({http:e,entityPath:"extensions"})}}(e)))}function fe(e,t){return f(g(m(Qe()(t)),function(e){return{delete:_({http:e,entityPath:"uploads"})}}(e)))}function de(e,t){return f(g(m(Qe()(t)),{}))}function he(e,t){return f(g(m(Qe()(t)),{}))}function me(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:Bt,wrapperMethod:me}),delete:_({http:e,entityPath:Bt}),getCalls:function(){return e.get("webhooks/"+this.sys.id+"/calls").then(e=>e.data,y)},getCall:function(t){return e.get("webhooks/"+this.sys.id+"/calls/"+t).then(e=>e.data,y)},getHealth:function(){return e.get("webhooks/"+this.sys.id+"/health").then(e=>e.data,y)}}}(e)))}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ye(Object(t),!0).forEach((function(n){ve(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){return function({http:e}){const t=Ht.space,n=t.wrapSpace,r=t.wrapSpaceCollection,o=Ht.user.wrapUser,s=Ht.personalAccessToken,i=s.wrapPersonalAccessToken,a=s.wrapPersonalAccessTokenCollection,c=Ht.organization,u=c.wrapOrganization,p=c.wrapOrganizationCollection,f=Ht.usage.wrapUsageCollection;return{getSpaces:function(t={}){return e.get("",l({query:t})).then(t=>r(e,t.data),y)},getSpace:function(t){return e.get(t).then(t=>n(e,t.data),y)},createSpace:function(t,r){return e.post("",t,{headers:r?{"X-Contentful-Organization":r}:{}}).then(t=>n(e,t.data),y)},getOrganization:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/organizations/");return e.get("",{baseURL:o}).then(n=>{const r=n.data.items.find(e=>e.sys.id===t);if(!r){const e=new Error(`No organization was found with the ID ${t} instead got ${JSON.stringify(n)}`);return e.status=404,e.statusText="Not Found",Promise.reject(e)}return u(e,r)},y)},getOrganizations:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/organizations/");return e.get("",{baseURL:r}).then(t=>p(e,t.data),y)},getCurrentUser:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/");return e.get("",{baseURL:r}).then(t=>o(e,t.data),y)},createPersonalAccessToken:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/users/me/access_tokens");return e.post("",t,{baseURL:o}).then(t=>i(e,t.data),y)},getPersonalAccessToken:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/users/me/access_tokens");return e.get(t,{baseURL:o}).then(t=>i(e,t.data),y)},getPersonalAccessTokens:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/access_tokens");return e.get("",{baseURL:r}).then(t=>a(e,t.data),y)},getOrganizationUsage:function(t,n={}){var r,o;const s=null===(r=e.defaults)||void 0===r||null===(o=r.baseURL)||void 0===o?void 0:o.replace("/spaces/",`/organizations/${t}/organization_periodic_usages`);return e.get("",{baseURL:s,params:n}).then(t=>f(e,t.data),y)},getSpaceUsage:function(t,n={}){var r,o;const s=null===(r=e.defaults)||void 0===r||null===(o=r.baseURL)||void 0===o?void 0:o.replace("/spaces/",`/organizations/${t}/space_periodic_usages`);return e.get("",{baseURL:s,params:n}).then(t=>f(e,t.data),y)},rawRequest:function(t){return e(t).then(e=>e.data,y)}}}({http:function(e){const t=h("contentful-management.js/6.3.1",e.application,e.integration,e.feature);if(!(e=ge(ge({},{defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"}),Qe()(e))).accessToken)throw new TypeError("Expected parameter accessToken");return e.headers=ge(ge({},e.headers),{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":t}),p($t.a,e)}(e)})}n.r(t),n.d(t,"createClient",(function(){return be}));var we={};n.r(we),n.d(we,"wrapApiKey",(function(){return P})),n.d(we,"wrapApiKeyCollection",(function(){return ct}));var Ce={};n.r(Ce),n.d(Ce,"wrapAppDefinition",(function(){return A})),n.d(Ce,"wrapAppDefinitionCollection",(function(){return pt}));var _e={};n.r(_e),n.d(_e,"wrapAppInstallation",(function(){return T})),n.d(_e,"wrapAppInstallationCollection",(function(){return lt}));var xe={};n.r(xe),n.d(xe,"wrapAsset",(function(){return S})),n.d(xe,"wrapAssetCollection",(function(){return ht}));var Oe={};n.r(Oe),n.d(Oe,"wrapEditorInterface",(function(){return R}));var je={};n.r(je),n.d(je,"wrapSnapshot",(function(){return k})),n.d(je,"wrapSnapshotCollection",(function(){return mt}));var Ee={};n.r(Ee),n.d(Ee,"wrapContentType",(function(){return U})),n.d(Ee,"wrapContentTypeCollection",(function(){return gt}));var Pe={};n.r(Pe),n.d(Pe,"wrapEntry",(function(){return M})),n.d(Pe,"wrapEntryCollection",(function(){return vt}));var Ae={};n.r(Ae),n.d(Ae,"createDeleteTag",(function(){return L})),n.d(Ae,"createUpdateTag",(function(){return F})),n.d(Ae,"default",(function(){return q})),n.d(Ae,"wrapTag",(function(){return D})),n.d(Ae,"wrapTagCollection",(function(){return bt}));var Te={};n.r(Te),n.d(Te,"wrapEnvironment",(function(){return B})),n.d(Te,"wrapEnvironmentCollection",(function(){return wt}));var Se={};n.r(Se),n.d(Se,"wrapEnvironmentAlias",(function(){return W})),n.d(Se,"wrapEnvironmentAliasCollection",(function(){return Ct}));var Re={};n.r(Re),n.d(Re,"wrapLocale",(function(){return H})),n.d(Re,"wrapLocaleCollection",(function(){return _t}));var ke={};n.r(ke),n.d(ke,"wrapOrganization",(function(){return V})),n.d(ke,"wrapOrganizationCollection",(function(){return jt}));var Ue={};n.r(Ue),n.d(Ue,"wrapOrganizationInvitation",(function(){return $}));var Me={};n.r(Me),n.d(Me,"wrapOrganizationMembership",(function(){return X})),n.d(Me,"wrapOrganizationMembershipCollection",(function(){return Et}));var Le={};n.r(Le),n.d(Le,"wrapPersonalAccessToken",(function(){return K})),n.d(Le,"wrapPersonalAccessTokenCollection",(function(){return Pt}));var Fe={};n.r(Fe),n.d(Fe,"wrapPreviewApiKey",(function(){return G})),n.d(Fe,"wrapPreviewApiKeyCollection",(function(){return At}));var qe={};n.r(qe),n.d(qe,"wrapRole",(function(){return J})),n.d(qe,"wrapRoleCollection",(function(){return Tt}));var De={};n.r(De),n.d(De,"createDeleteScheduledAction",(function(){return Q})),n.d(De,"default",(function(){return Y})),n.d(De,"wrapScheduledAction",(function(){return Z})),n.d(De,"wrapScheduledActionCollection",(function(){return Rt}));var Ne={};n.r(Ne),n.d(Ne,"wrapSpace",(function(){return se})),n.d(Ne,"wrapSpaceCollection",(function(){return kt}));var ze={};n.r(ze),n.d(ze,"wrapSpaceMember",(function(){return ie})),n.d(ze,"wrapSpaceMemberCollection",(function(){return Ut}));var Ie={};n.r(Ie),n.d(Ie,"wrapSpaceMembership",(function(){return ae})),n.d(Ie,"wrapSpaceMembershipCollection",(function(){return Mt}));var Be={};n.r(Be),n.d(Be,"wrapTeam",(function(){return ce})),n.d(Be,"wrapTeamCollection",(function(){return Ft}));var We={};n.r(We),n.d(We,"wrapTeamMembership",(function(){return ue})),n.d(We,"wrapTeamMembershipCollection",(function(){return qt}));var He={};n.r(He),n.d(He,"wrapTeamSpaceMembership",(function(){return pe})),n.d(He,"wrapTeamSpaceMembershipCollection",(function(){return Dt}));var Ve={};n.r(Ve),n.d(Ve,"wrapUiExtension",(function(){return le})),n.d(Ve,"wrapUiExtensionCollection",(function(){return Nt}));var $e={};n.r($e),n.d($e,"wrapUpload",(function(){return fe}));var Xe={};n.r(Xe),n.d(Xe,"wrapUsage",(function(){return de})),n.d(Xe,"wrapUsageCollection",(function(){return zt}));var Ke={};n.r(Ke),n.d(Ke,"wrapUser",(function(){return he})),n.d(Ke,"wrapUserCollection",(function(){return It}));var Ge={};n.r(Ge),n.d(Ge,"wrapWebhook",(function(){return me})),n.d(Ge,"wrapWebhookCollection",(function(){return Wt}));var Je=n(0),Qe=n.n(Je),Ye=n(38),Ze=n.n(Ye),et=n(2),tt=n.n(et),nt=n(8),rt={},ot=0,st=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;const it=e=>(t,n)=>{const r=m(Qe()(n));return r.items=r.items.map(n=>e(t,n)),r},at=e=>({headers:{"X-Contentful-Version":Number.isInteger(e)?e:0}}),ct=it(P),ut="app_definitions",pt=it(A),lt=it(T),ft=3e3,dt=10,ht=it(S),mt=it(k),yt=function(e,t,n,r){const o=e.fields.find(e=>e.id===t);return o?(o[n]=r,e.update()):Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${t}, on the content type ${e.name}.`))},gt=it(U),vt=it(M),bt=it(D),wt=it(B),Ct=it(W),_t=it(H);var xt=n(14),Ot=n.n(xt);const jt=it(V),Et=it(X),Pt=it(K),At=it(G),Tt=it(J);var St;!function(e){e.scheduled="scheduled",e.inProgress="inProgress",e.succeeded="succeeded",e.failed="failed",e.canceled="canceled"}(St||(St={}));const Rt=it(Z),kt=it(se),Ut=it(ie),Mt=it(ae),Lt="teams",Ft=it(ce),qt=it(ue),Dt=it(pe),Nt=it(le),zt=it(de),It=it(he),Bt="webhook_definitions",Wt=it(me);var Ht={apiKey:we,appDefinition:Ce,appInstallation:_e,asset:xe,contentType:Ee,editorInterface:Oe,entry:Pe,environment:Te,environmentAlias:Se,locale:Re,organization:ke,organizationInvitation:Ue,organizationMembership:Me,personalAccessToken:Le,previewApiKey:Fe,role:qe,scheduledAction:De,snapshot:je,space:Ne,spaceMember:ze,spaceMembership:Ie,tag:Ae,team:Be,teamMembership:We,teamSpaceMembership:He,uiExtension:Ve,upload:$e,usage:Xe,user:Ke,webhook:Ge},Vt=n(39),$t=n.n(Vt)}]);
1
+ module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=40)}([function(e,t,n){var r=n(41);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";function r(e){return"[object Array]"===p.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function i(e){if("[object Object]"!==p.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"[object Function]"===p.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var u=n(25),p=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===p.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:i,isUndefined:o,isDate:function(e){return"[object Date]"===p.call(e)},isFile:function(e){return"[object File]"===p.call(e)},isBlob:function(e){return"[object Blob]"===p.call(e)},isFunction:a,isStream:function(e){return s(e)&&a(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){function t(t,o){n[o]=i(n[o])&&i(t)?e(n[o],t):i(t)?e({},t):r(t)?t.slice():t}for(var n={},o=0,s=arguments.length;o<s;o++)c(arguments[o],t);return n},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?u(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){var r=n(92),o=n(23),s=n(93),i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,p=c.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(43),s=n(44),i=n(45),a=n(46),c=n(47);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(15);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(9)(Object,"create");e.exports=r},function(e,t,n){var r=n(63);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(18),o=n(19);e.exports=function(e,t,n,s){var i=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var u=t[a],p=s?s(n[u],e[u],u,n,e):void 0;void 0===p&&(p=e[u]),i?o(n,u,p):r(n,u,p)}return n}},function(e){e.exports=require("os")},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],s=0;s<r.length;++s)void 0!==r[s]&&o.push(r[s]);t.obj[t.prop]=o}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var s=t[r],i=s.obj[s.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],p=i[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(t.push({obj:i,prop:u}),n.push(p))}return o(t),e},decode:function(e,t,n){var r=e.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(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=e+""),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s,i="",a=0;a<o.length;++a)45===(s=o.charCodeAt(a))||46===s||95===s||126===s||48<=s&&57>=s||65<=s&&90>=s||97<=s&&122>=s?i+=o.charAt(a):128>s?i+=r[s]:2048>s?i+=r[192|s>>6]+r[128|63&s]:55296>s||57344<=s?i+=r[224|s>>12]+r[128|63&s>>6]+r[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(a)),i+=r[240|s>>18]+r[128|63&s>>12]+r[128|63&s>>6]+r[128|63&s]);return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(r,o,i){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(i&&(i.plainObjects||i.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var a=r;return n(r)&&!n(o)&&(a=s(r,i)),n(r)&&n(o)?(o.forEach((function(n,o){if(t.call(r,o)){var s=r[o];s&&"object"==typeof s&&n&&"object"==typeof n?r[o]=e(s,n,i):r.push(n)}else r[o]=n})),r):Object.keys(o).reduce((function(n,r){var s=o[r];return n[r]=t.call(n,r)?e(n[r],s,i):s,n}),a)}}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(1);e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(o.isURLSearchParams(t))s=t.toString();else{var i=[];o.forEach(t,(function(e,t){null==e||(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))})))})),s=i.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n,o,s){var i=new Error(e);return r(i,t,n,o,s)}},function(e,t,n){var r=n(94);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(53),o="object"==typeof self&&self&&self.Object===Object&&self,s=r||o||Function("return this")();e.exports=s},function(e,t,n){var r=n(19),o=n(15),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];s.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(68);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(10)(Object.keys,Object);e.exports=r},function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(10)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,s=n(11),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=s.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e+""}}},i)},function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(1),s=n(100),i={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var e;return"undefined"==typeof XMLHttpRequest?"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=n(107)):e=n(101),e}(),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&300>e},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){a.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){a.headers[e]=o.merge(i)})),e.exports=a},function(e,t,n){"use strict";var r=n(13);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(103),o=n(104);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e){e.exports=require("http")},function(e){e.exports=require("https")},function(e,t,n){function r(e,t){m.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function o(e,t){clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.emit("timeout")}),t)}function s(){clearTimeout(this._timeout)}function i(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var s=o+":",i=n[s]=e[o],a=t[o]=Object.create(i);a.request=function(e,o,i){if("string"==typeof e){var a=e;try{e=c(new f(a))}catch(t){e=l.parse(a)}}else f&&e instanceof f?e=c(e):(i=o,o=e,e={protocol:s});return"function"==typeof o&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,y.equal(o.protocol,s,"protocol mismatch"),g("options",o),new r(o,i)},a.get=function(e,t,n){var r=a.request(e,t,n);return r.end(),r}})),t}function a(){}function c(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=+e.port),t}function u(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n}function p(e,t){function n(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}var l=n(34),f=l.URL,d=n(31),h=n(32),m=n(108).Writable,y=n(109),g=n(110),v=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach((function(e){v[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var b=p("ERR_FR_REDIRECTION_FAILURE",""),w=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),C=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),_=p("ERR_STREAM_WRITE_AFTER_END","write after end");r.prototype=Object.create(m.prototype),r.prototype.write=function(e,t,n){if(this._ending)throw new _;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");return"function"==typeof t&&(n=t,t=null),0===e.length?void(n&&n()):void(this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new C),this.abort()))},r.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,o=this._currentRequest;this.write(e,t,(function(){r._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},r.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},r.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},r.prototype.setTimeout=function(e,t){if(t&&this.once("timeout",t),this.socket)o(this,e);else{var n=this;this._currentRequest.once("socket",(function(){o(n,e)}))}return this.once("response",s),this.once("error",s),this},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){r.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(r.prototype,e,{get:function(){return this._currentRequest[e]}})})),r.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(!e.hostname&&(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");0>t?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},r.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=l.format(this._options),r._redirectable=this,v)o&&r.on(o,v[o]);if(this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;!function e(t){if(r===i._currentRequest)if(t)i.emit("error",t);else if(s<a.length){var n=a[s++];r.finished||r.write(n.data,n.encoding,e)}else i._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},r.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(n&&!1!==this._options.followRedirects&&300<=t&&400>t){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",a),this._currentRequest.abort(),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new w);(301!==t&&302!==t||"POST"!==this._options.method)&&(303!==t||/^(?:GET|HEAD)$/.test(this._options.method))||(this._options.method="GET",this._requestBodyBuffers=[],u(/^content-/i,this._options.headers));var r=u(/^host$/i,this._options.headers)||l.parse(this._currentUrl).hostname,o=l.resolve(this._currentUrl,n);g("redirecting to",o),this._isRedirect=!0;var s=l.parse(o);if(Object.assign(this._options,s),s.hostname!==r&&u(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var i={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,i)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var c=new b("Redirected request failed: "+e.message);c.cause=e,this.emit("error",c)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=i({http:d,https:h}),e.exports.wrap=i},function(e){e.exports=require("url")},function(e,t,n){function r(e){function n(){if(n.enabled){var e=n,o=+new Date,s=o-(r||o);e.diff=s,e.prev=r,e.curr=o,r=o;for(var i=Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var s=i[c];n=o.call(e,s),i.splice(c,1),c--}return n})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}var r;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var s=t.instances[n];s.enabled=t.enabled(s.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(113),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){function n(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(s[o]=n(void 0,e[o])):s[o]=n(e[o],t[o])}t=t||{};var s={},i=["url","method","data"],a=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];r.forEach(i,(function(e){r.isUndefined(t[e])||(s[e]=n(void 0,t[e]))})),r.forEach(a,o),r.forEach(c,(function(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(s[o]=n(void 0,e[o])):s[o]=n(void 0,t[o])})),r.forEach(u,(function(r){r in t?s[r]=n(e[r],t[r]):r in e&&(s[r]=n(void 0,e[r]))}));var p=i.concat(a).concat(c).concat(u),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===p.indexOf(e)}));return r.forEach(l,o),s}},function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},function(e,t,n){"use strict";var r=n(90),o=n(91),s=n(24);e.exports={formats:s,parse:o,stringify:r}},function(e,t,n){e.exports=n(95)},function(e,t,n){e.exports=n(123)},function(e,t,n){var r=n(42),o=n(67),s=n(18),i=n(69),a=n(70),c=n(71),u=n(73),p=n(74),l=n(76),f=n(78),d=n(79),h=n(80),m=n(81),y=n(82),g=n(83),v=n(86),b=n(87),w=n(88),C=n(22),_=n(89),x=n(20),O=n(21),j=1,E=2,P=4,A="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",R="[object Object]",k={};k[A]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[R]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,U,M,L,F){var q,D=n&j,N=n&E;if(U&&(q=L?U(t,M,L,F):U(t)),void 0!==q)return q;if(!C(t))return t;var z=v(t);if(z){if(q=m(t),!D)return u(t,q)}else{var I=h(t),B=I==T||I==S;if(b(t))return c(t,D);if(I==R||I==A||B&&!L){if(q=N||B?{}:g(t),!D)return N?l(t,a(q,t)):p(t,i(q,t))}else{if(!k[I])return L?t:{};q=y(t,I,D)}}F||(F=new r);var W=F.get(t);if(W)return W;F.set(t,q),_(t)?t.forEach((function(r){q.add(e(r,n,U,r,t,F))})):w(t)&&t.forEach((function(r,o){q.set(o,e(r,n,U,o,t,F))}));var H=z?void 0:(n&P?N?d:f:N?O:x)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),s(q,o,e(r,n,U,o,t,F))})),q}},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(3),s=n(48),i=n(49),a=n(50),c=n(51),u=n(52);r.prototype.clear=s,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=c,r.prototype.set=u,e.exports=r},function(e){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(4),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(0>n)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(4);e.exports=function(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}},function(e,t,n){var r=n(4);e.exports=function(e){return-1<r(this.__data__,e)}},function(e,t,n){var r=n(4);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return 0>o?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(3);e.exports=function(){this.__data__=new r,this.size=0}},function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e){e.exports=function(e){return this.__data__.get(e)}},function(e){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(3),o=n(16),s=n(54);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(i)}return n.set(e,t),this.size=n.size,this}},function(e){var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(55),s=n(62),i=n(64),a=n(65),c=n(66);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(56),o=n(3),s=n(16);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(57),s=n(58),i=n(59),a=n(60),c=n(61);r.prototype.clear=o,r.prototype.delete=s,r.prototype.get=i,r.prototype.has=a,r.prototype.set=c,e.exports=r},function(e,t,n){var r=n(5);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(5);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(6);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(6);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(6);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(6);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(9),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(7),o=n(20);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(21);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){(function(e){var r=n(17),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(72)(e))},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(7),o=n(75);e.exports=function(e,t){return r(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,n){var r=n(7),o=n(77);e.exports=function(e,t){return r(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,n){var r=n(10)(Object.keys,Object);e.exports=r},function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e){e.exports=function(e){return e}},function(e,t,n){var r=n(84),o=n(23),s=n(85);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:r(o(e))}},function(e,t,n){var r=n(22),o=Object.create,s=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=s},function(e){e.exports=function(){return!1}},function(e){var t=Array.isArray;e.exports=t},function(e){e.exports=function(){return!1}},function(e){e.exports=function(){return!1}},function(e){e.exports=function(){return!1}},function(e,t,n){"use strict";var r=n(11),o=n(24),s=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},p=Date.prototype.toISOString,l=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,s,i,c,p,l,d,h,m,y,g){var v=t;if("function"==typeof p?v=p(n,v):v instanceof Date?v=h(v):"comma"===o&&a(v)&&(v=r.maybeMap(v,(function(e){return e instanceof Date?h(e):e})).join(",")),null===v){if(s)return c&&!y?c(n,f.encoder,g,"key"):n;v=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(v)||r.isBuffer(v))return c?[m(y?n:c(n,f.encoder,g,"key"))+"="+m(c(v,f.encoder,g,"value"))]:[m(n)+"="+m(v+"")];var b,w=[];if(void 0===v)return w;if(a(p))b=p;else{var C=Object.keys(v);b=l?C.sort(l):C}for(var _=0;_<b.length;++_){var x=b[_],O=v[x];if(!i||null!==O){var j=a(v)?"function"==typeof o?o(n,x):n:n+(d?"."+x:"["+x+"]");u(w,e(O,j,o,s,i,c,p,l,d,h,m,y,g))}}return w},h=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=f.filter;return("function"==typeof e.filter||a(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,r=e,o=h(t);"function"==typeof o.filter?r=(0,o.filter)("",r):a(o.filter)&&(n=o.filter);var s=[];if("object"!=typeof r||null===r)return"";var c=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices",p=i[c];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var l,f=0;f<n.length;++f)l=n[f],(!o.skipNulls||null!==r[l])&&u(s,d(r[l],l,p,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var m=s.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),0<m.length?y+m:""}},function(e,t,n){"use strict";var r=n(11),o=Object.prototype.hasOwnProperty,s=Array.isArray,i={allowDots:!1,allowPrototypes:!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},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e},u=function(e,t){var n,u={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=p.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var m,y,g=f[n],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),i.decoder,h,"key"),y=r.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=a(y)),-1<g.indexOf("[]=")&&(y=s(y)?[y]:y),u[m]=o.call(u,m)?r.combine(u[m],y):y}return u},p=function(e,t,n,r){for(var o=r?t:c(t,n),s=e.length-1;0<=s;--s){var i,a=e[s];if("[]"===a&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&p+""===u&&0<=p&&n.parseArrays&&p<=n.arrayLimit?(i=[])[p]=o:i[u]=o:i={0:o}}o=i}return o},l=function(e,t,n,r){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=0<n.depth&&/(\[[^[\]]*])/.exec(s),c=a?s.slice(0,a.index):s,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var l=0;0<n.depth&&null!==(a=i.exec(s))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+s.slice(a.index)+"]"),p(u,t,n,r)}},f=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?u(e,n):e,s=n.plainObjects?Object.create(null):{},i=Object.keys(o),a=0;a<i.length;++a){var c=i[a],p=l(c,o[c],n,"string"==typeof e);s=r.merge(s,p,n)}return r.compact(s)}},function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){"use strict";function r(e){var t=new i(e),n=s(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(1),s=n(25),i=n(96),a=n(36),c=r(n(27));c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(37),c.CancelToken=n(121),c.isCancel=n(26),c.all=function(e){return Promise.all(e)},c.spread=n(122),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(1),s=n(12),i=n(97),a=n(98),c=n(36);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=c(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){r.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){r.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(1);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(1),s=n(99),i=n(26),a=n(27);e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return r(e),t.data=s(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(1),o=n(28),s=n(102),i=n(12),a=n(30),c=n(105),u=n(106),p=n(13);e.exports=function(e){return new Promise((function(t,n){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+m)}var y=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,s={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,s),d=null}},d.onabort=function(){d&&(n(p("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(p("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(p(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(y))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(n){if("json"!==e.responseType)throw n}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),l||(l=null),d.send(l)}))}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),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"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&0<=o.indexOf(t))return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(1),o=n(28),s=n(30),i=n(12),a=n(31),c=n(32),u=n(33).http,p=n(33).https,l=n(34),f=n(119),d=n(120),h=n(13),m=n(29),y=/https:?/;e.exports=function(e){return new Promise((function(t,n){var g,v=function(e){t(e)},b=function(e){n(e)},w=e.data,C=e.headers;if(C["User-Agent"]||C["user-agent"]||(C["User-Agent"]="axios/"+d.version),w&&!r.isStream(w)){if(Buffer.isBuffer(w));else if(r.isArrayBuffer(w))w=Buffer.from(new Uint8Array(w));else{if(!r.isString(w))return b(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));w=Buffer.from(w,"utf-8")}C["Content-Length"]=w.length}e.auth&&(g=(e.auth.username||"")+":"+(e.auth.password||""));var _=s(e.baseURL,e.url),x=l.parse(_),O=x.protocol||"http:";if(!g&&x.auth){var j=x.auth.split(":");g=(j[0]||"")+":"+(j[1]||"")}g&&delete C.Authorization;var E=y.test(O),P=E?e.httpsAgent:e.httpAgent,A={path:i(x.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:C,agent:P,agents:{http:e.httpAgent,https:e.httpsAgent},auth:g};e.socketPath?A.socketPath=e.socketPath:(A.hostname=x.hostname,A.port=x.port);var T=e.proxy;if(!T&&!1!==T){var S=O.slice(0,-1)+"_proxy",R=process.env[S]||process.env[S.toUpperCase()];if(R){var k=l.parse(R),U=process.env.no_proxy||process.env.NO_PROXY,M=!0;if(U)M=!U.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&x.hostname.substr(x.hostname.length-e.length)===e||x.hostname===e)}));if(M&&(T={host:k.hostname,port:k.port},k.auth)){var L=k.auth.split(":");T.auth={username:L[0],password:L[1]}}}}if(T&&(A.hostname=T.host,A.host=T.host,A.headers.host=x.hostname+(x.port?":"+x.port:""),A.port=T.port,A.path=O+"//"+x.hostname+(x.port?":"+x.port:"")+A.path,T.auth)){var F=Buffer.from(T.auth.username+":"+T.auth.password,"utf8").toString("base64");A.headers["Proxy-Authorization"]="Basic "+F}var q,D=E&&(!T||y.test(T.protocol));e.transport?q=e.transport:0===e.maxRedirects?q=D?c:a:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),q=D?p:u),-1<e.maxBodyLength&&(A.maxBodyLength=e.maxBodyLength);var N=q.request(A,(function(t){if(!N.aborted){var n=t,s=t.req||N;if(204!==t.statusCode&&"HEAD"!==s.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(f.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:s};if("stream"===e.responseType)i.data=n,o(v,b,i);else{var a=[];n.on("data",(function(t){a.push(t),-1<e.maxContentLength&&Buffer.concat(a).length>e.maxContentLength&&(n.destroy(),b(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,s)))})),n.on("error",(function(t){N.aborted||b(m(t,e,null,s))})),n.on("end",(function(){var t=Buffer.concat(a);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),(!e.responseEncoding||"utf8"===e.responseEncoding)&&(t=r.stripBOM(t))),i.data=t,o(v,b,i)}))}}}));N.on("error",(function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||b(m(t,e,null,N))})),e.timeout&&N.setTimeout(e.timeout,(function(){N.abort(),b(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",N))})),e.cancelToken&&e.cancelToken.promise.then((function(e){N.aborted||(N.abort(),b(e))})),r.isStream(w)?w.on("error",(function(t){b(m(t,e,null,N))})).pipe(N):N.end(w)}))}},function(e){e.exports=require("stream")},function(e){e.exports=require("assert")},function(e,t,n){var r;try{r=n(111)("follow-redirects")}catch(e){r=function(){}}e.exports=r},function(e,t,n){e.exports="undefined"==typeof process||"renderer"===process.type?n(112):n(114)},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(35)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"===e||(o++,"%c"===e&&(s=o))})),e.splice(s,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e){function t(e){if(!(100<(e+="").length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();return"years"===r||"year"===r||"yrs"===r||"yr"===r||"y"===r?n*u:"days"===r||"day"===r||"d"===r?n*c:"hours"===r||"hour"===r||"hrs"===r||"hr"===r||"h"===r?n*a:"minutes"===r||"minute"===r||"mins"===r||"min"===r||"m"===r?n*i:"seconds"===r||"second"===r||"secs"===r||"sec"===r||"s"===r?n*s:"milliseconds"===r||"millisecond"===r||"msecs"===r||"msec"===r||"ms"===r?n:void 0}}}function n(e){var t=Math.round;return e>=c?t(e/c)+"d":e>=a?t(e/a)+"h":e>=i?t(e/i)+"m":e>=s?t(e/s)+"s":e+"ms"}function r(e){return o(e,c,"day")||o(e,a,"hour")||o(e,i,"minute")||o(e,s,"second")||e+" ms"}function o(e,t,n){return e<t?void 0:e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,i=60*s,a=60*i,c=24*a,u=365.25*c;e.exports=function(e,o){o=o||{};var s=typeof e;if("string"==s&&0<e.length)return t(e);if("number"==s&&!1===isNaN(e))return o.long?r(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(){return process.env.DEBUG}var o=n(115),s=n(116);(t=e.exports=n(35)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(s.format.apply(s,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,o="[3"+(8>r?r:"8;5;"+r),s=" "+o+";1m"+n+" ";e[0]=s+e[0].split("\n").join("\n"+s),e.push(o+"m+"+t.humanize(this.diff)+"")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=r,t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:o.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var i=n(117);i&&2<=i.level&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:+r),e[n]=r,e}),{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)},t.enable(r())},function(e){e.exports=require("tty")},function(e){e.exports=require("util")},function(e,t,n){"use strict";function r(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:2<=e,has16m:3<=e}}(function(e){if(!1===a)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;const t=a?1:0;if("win32"===process.platform){const e=o.release().split(".");return 8<=+process.versions.node.split(".")[0]&&10<=+e[0]&&10586<=+e[2]?14931<=+e[2]?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in i)||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return 3<=e?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e))}const o=n(8),s=n(118),i=process.env;let a;s("no-color")||s("no-colors")||s("color=false")?a=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:r,stdout:r(process.stdout),stderr:r(process.stderr)}},function(e){"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(!(-1!==o)||r<o)}},function(e){e.exports=require("zlib")},function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.0","/home/circleci/project"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_where":"/home/circleci/project","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.0"}')},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}var o=n(37);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw s}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(){return"undefined"!=typeof process&&!process.browser}function u(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function p(e,t){var n=s({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var n=[t.name,t.message].filter((function(e){return e})).join(" - ");return console.error("[error] ".concat(n)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1,maxContentLength:1073741824},{},t);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",l=n.defaultHostname,f=n.insecure?80:443;if(n.host&&st.test(n.host)){var d=n.host.split(":");if(2===d.length){var h=i(d,2);l=h[0],f=h[1]}else l=d[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var m=t.baseURL||"".concat(o,"://").concat(l,":").concat(f).concat(n.basePath,"/spaces/").concat(a);n.headers.Authorization||(n.headers.Authorization="Bearer "+n.accessToken),c()&&(n.headers["user-agent"]="node.js/"+u(),n.headers["Accept-Encoding"]="gzip");var y={baseURL:m,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Ze.a.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},g=e.create(y);return g.httpClientParams=t,g.cloneWithNewParams=function(n){return p(e,s({},Qe()(t),{},n))},function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=void 0===r?function(){}:r,s=n.requestLogger,i=void 0===s?function(){}:s;e.interceptors.request.use((function(e){return i(e),e}),(function(e){return Promise.reject(e)})),e.interceptors.response.use((function(e){return o(e),e}),(function(n){var r=Math.pow,o=n.response,s=n.config;if(!s||!e.defaults.retryOnError)return Promise.reject(n);var i=null,a=0;if(o)ot=0;else{if(i="Connection",++ot>t)return n.attempts=ot,Promise.reject(n);a=r(Math.SQRT2,ot),o={}}if(500<=o.status&&600>o.status){i="Server ".concat(o.status);var c=(o.headers||{})["x-contentful-request-id"]||null;if(rt[c]=rt[c]||0,rt[c]++,rt[c]>t||!c)return n.attempts=rt[c],Promise.reject(n);a=r(Math.SQRT2,rt[c])}else 429===o.status&&(i="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(a=o.headers["x-contentful-ratelimit-reset"]));return i?(a=Math.floor(1e3*a+200*Math.random()+500),e.defaults.logHandler("warning","".concat(i," error occurred. Waiting for ").concat(a," ms before retrying...")),delete s.httpAgent,delete s.httpsAgent,function(e){return new Promise((function(t){setTimeout(t,e)}))}(a).then((function(){return e(s)}))):Promise.reject(n)}))}(g,n.retryLimit),g}function l(e){var t=e.query,n={};return delete t.resolveLinks,n.params=Qe()(t),n}function f(e){return function e(t){return Object.keys(t).forEach((function(n){var r=t[n];tt()(r)&&e(r)})),Object.freeze(t)}(e.sys||{}),e}function d(){if(!window)return null;var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1===["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?-1===["iPhone","iPad","iPod"].indexOf(t)?-1===["Win32","Win64","Windows","WinCE"].indexOf(t)?/Android/.test(e)?n="Android":/Linux/.test(t)&&(n="Linux"):n="Windows":n="iOS":n="macOS",n}function h(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var s=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(s=d(),o.push("platform ReactNative")):c()?(s=function(){var e=Object(nt.platform)()||"linux",t=Object(nt.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}(),o.push("platform node.js/".concat(u()))):(s=d(),o.push("platform browser"))}catch(t){s=null}return s&&o.push("os ".concat(s)),"".concat(o.filter((function(e){return""!==e})).join("; "),";")}function m(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Qe()(this)}})}function y(e){const t=e.config,n=e.response;let r;if(t.headers&&t.headers.Authorization){const e="..."+t.headers.Authorization.substr(-5);t.headers.Authorization="Bearer "+e}if(!tt()(n)||!tt()(t))throw e;const o=null==n?void 0:n.data,s={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};tt()(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&tt()(o)&&("requestId"in o&&(s.requestId=o.requestId||"UNKNOWN"),"message"in o&&(s.message=o.message||""),"details"in o&&(s.details=o.details||{}),"sys"in o&&"id"in o.sys&&(r=o.sys.id));const i=new Error;throw i.name=r&&"Unknown"!==r?r:`${null==n?void 0:n.status} ${null==n?void 0:n.statusText}`,i.message=JSON.stringify(s,null," "),i}function g(e,t){return Object.keys(t).reduce((e,n)=>(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:t[n]}),e),e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?v(Object(t),!0).forEach((function(n){w(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C({http:e,entityPath:t,wrapperMethod:n,headers:r}){return function(){const o=this,s=o.toPlainObject(),i=Qe()(s);return delete i.sys,e.put(t+"/"+o.sys.id,i,{headers:b({"X-Contentful-Version":o.sys.version||0},r)}).then(t=>n(e,t.data),y)}}function _({http:e,entityPath:t}){return function(){return e.delete(t+"/"+this.sys.id).then(()=>{},y)}}function x({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.put(t+"/"+this.sys.id+"/published",null,{headers:{"X-Contentful-Version":this.sys.version}}).then(t=>n(e,t.data),y)}}function O({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.delete(t+"/"+this.sys.id+"/published").then(t=>n(e,t.data),y)}}function j({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.put(t+"/"+this.sys.id+"/archived").then(t=>n(e,t.data),y)}}function E({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.delete(t+"/"+this.sys.id+"/archived").then(t=>n(e,t.data),y)}}function P(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this;"accessToken"in t&&delete t.accessToken,"preview_api_key"in t&&delete t.preview_api_key,"policies"in t&&delete t.policies;return C({http:e,entityPath:"api_keys",wrapperMethod:P}).call(t)},delete:_({http:e,entityPath:"api_keys"})}}(e)))}function A(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:ut,wrapperMethod:A}),delete:_({http:e,entityPath:ut})}}(e)))}function T(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("app_installations/"+this.sys.appDefinition.sys.id,n).then(t=>T(e,t.data),y)},delete:function(){const t=this.toPlainObject();return e.delete("app_installations/"+t.sys.appDefinition.sys.id).then(()=>{},y)}}}(e)))}function S(e,t){return f(g(m(Qe()(t)),function(e){function t({resolve:n,reject:r,id:o,locale:s,processingCheckWait:i=ft,processingCheckRetries:a=dt,checkCount:c=0}){e.get("assets/"+o).then(t=>S(e,t.data),y).then(e=>{if(e.fields.file[s].url)n(e);else if(c===a){const e=new Error;e.name="AssetProcessingTimeout",e.message="Asset is taking longer then expected to process.",r(e)}else c++,setTimeout(()=>t({resolve:n,reject:r,id:o,locale:s,checkCount:c,processingCheckWait:i,processingCheckRetries:a}),i)})}function n(n,{processingCheckWait:r,processingCheckRetries:o}={}){const s=this.sys.id;return e.put("assets/"+this.sys.id+"/files/"+n+"/process",null,{headers:{"X-Contentful-Version":this.sys.version}}).then(()=>new Promise((e,i)=>t({resolve:e,reject:i,id:s,locale:n,processingCheckWait:r,processingCheckRetries:o})),y)}return{update:C({http:e,entityPath:"assets",wrapperMethod:S}),delete:_({http:e,entityPath:"assets"}),publish:x({http:e,entityPath:"assets",wrapperMethod:S}),unpublish:O({http:e,entityPath:"assets",wrapperMethod:S}),archive:j({http:e,entityPath:"assets",wrapperMethod:S}),unarchive:E({http:e,entityPath:"assets",wrapperMethod:S}),processForLocale:n,processForAllLocales:function(e={}){const t=this;let r;const o=Object.keys(this.fields.file||{}).map(o=>n.call(t,o,e).then(e=>{r=e}));return Promise.all(o).then(()=>r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}(e)))}function R(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject(),r=Qe()(n);return delete r.sys,e.put(`content_types/${t.sys.contentType.sys.id}/editor_interface`,r,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>R(e,t.data),y)},getControlForField:function(e){const t=this.controls.filter(t=>t.fieldId===e);return t&&0<t.length?t[0]:null}}}(e)))}function k(e,t){return f(g(m(Qe()(t)),{}))}function U(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"content_types",wrapperMethod:U}),delete:_({http:e,entityPath:"content_types"}),publish:x({http:e,entityPath:"content_types",wrapperMethod:U}),unpublish:O({http:e,entityPath:"content_types",wrapperMethod:U}),getEditorInterface:function(){return e.get("content_types/"+this.sys.id+"/editor_interface").then(t=>R(e,t.data),y)},getSnapshots:function(t={}){return e.get(`content_types/${this.sys.id}/snapshots`,l({query:t})).then(t=>mt(e,t.data),y)},getSnapshot:function(t){return e.get(`content_types/${this.sys.id}/snapshots/${t}`).then(e=>k(0,e.data),y)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},omitAndDeleteField:function(e){return yt(this,e,"omitted",!0).then(t=>yt(t,e,"deleted",!0)).catch(y)}}}(e)))}function M(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"entries",wrapperMethod:M}),delete:_({http:e,entityPath:"entries"}),publish:x({http:e,entityPath:"entries",wrapperMethod:M}),unpublish:O({http:e,entityPath:"entries",wrapperMethod:M}),archive:j({http:e,entityPath:"entries",wrapperMethod:M}),unarchive:E({http:e,entityPath:"entries",wrapperMethod:M}),getSnapshots:function(t={}){return e.get(`entries/${this.sys.id}/snapshots`,l({query:t})).then(t=>mt(e,t.data),y)},getSnapshot:function(t){return e.get(`entries/${this.sys.id}/snapshots/${t}`).then(e=>k(0,e.data),y)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){const e=this;return!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}(e)))}function L(e){return function(){return e.delete("tags/"+this.sys.id,at(this.sys.version)).then(()=>{},y)}}function F(e){return function(){const t=this;return e.put("tags/"+t.sys.id,{name:t.name,sys:{id:t.sys.id}},at(t.sys.version)).then(t=>D(e,t.data),y)}}function q(e){return{update:F(e),delete:L(e)}}function D(e,t){return f(g(m(Qe()(t)),q(e)))}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?N(Object(t),!0).forEach((function(n){I(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){const n=e,r=m(Qe()(t)),o=n.httpClientParams,s=o.hostUpload,i=o.defaultHostnameUpload,a=function({http:e,httpUpload:t}){function n(t){return e.post("assets",t).then(t=>h(e,t.data),y)}function r(e){const n=e.file;return n?t.post("uploads",n,{headers:{"Content-Type":"application/octet-stream"}}).then(e=>_(t,e.data)).catch(y):Promise.reject(new Error("Unable to locate a file to upload."))}function o(e){e.select&&!/sys/i.test(e.select)&&(e.select+=",sys")}const s=Ht.environment.wrapEnvironment,i=Ht.contentType,a=i.wrapContentType,c=i.wrapContentTypeCollection,u=Ht.entry,p=u.wrapEntry,f=u.wrapEntryCollection,d=Ht.asset,h=d.wrapAsset,m=d.wrapAssetCollection,g=Ht.locale,v=g.wrapLocale,b=g.wrapLocaleCollection,w=Ht.snapshot.wrapSnapshotCollection,C=Ht.editorInterface.wrapEditorInterface,_=Ht.upload.wrapUpload,x=Ht.uiExtension,O=x.wrapUiExtension,j=x.wrapUiExtensionCollection,E=Ht.appInstallation,P=E.wrapAppInstallation,A=E.wrapAppInstallationCollection;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("",n,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>s(e,t.data),y)},getEntryFromData:t=>p(e,t),getAssetFromData:t=>h(e,t),getContentType:t=>e.get("content_types/"+t).then(t=>a(e,t.data),y),getContentTypes:(t={})=>e.get("content_types",l({query:t})).then(t=>c(e,t.data),y),createContentType:t=>e.post("content_types",t).then(t=>a(e,t.data),y),createContentTypeWithId:(t,n)=>e.put("content_types/"+t,n).then(t=>a(e,t.data),y),getEditorInterfaceForContentType:t=>e.get("content_types/"+t+"/editor_interface").then(t=>C(e,t.data),y),getEntry:(t,n={})=>(o(n),e.get("entries/"+t,l({query:n})).then(t=>p(e,t.data),y)),getEntries:(t={})=>(o(t),e.get("entries",l({query:t})).then(t=>f(e,t.data),y)),createEntry:(t,n)=>e.post("entries",n,{headers:{"X-Contentful-Content-Type":t}}).then(t=>p(e,t.data),y),createEntryWithId:(t,n,r)=>e.put("entries/"+n,r,{headers:{"X-Contentful-Content-Type":t}}).then(t=>p(e,t.data),y),getAsset:(t,n={})=>(o(n),e.get("assets/"+t,l({query:n})).then(t=>h(e,t.data),y)),getAssets:(t={})=>(o(t),e.get("assets",l({query:t})).then(t=>m(e,t.data),y)),createAsset:n,createAssetWithId:(t,n)=>e.put("assets/"+t,n).then(t=>h(e,t.data),y),createAssetFromFiles(e){const t=e.fields.file;return Promise.all(Object.keys(t).map(e=>{const n=t[e],o=n.contentType,s=n.fileName;return r(t[e]).then(t=>({[e]:{contentType:o,fileName:s,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}}))})).then(t=>{const r=t.reduce((e,t)=>z(z({},e),t),{});return n(z(z({},e),{},{fields:z(z({},e.fields),{},{file:r})}))}).catch(y)},getUpload:n=>t.get("uploads/"+n).then(t=>_(e,t.data)).catch(y),createUpload:r,getLocale:t=>e.get("locales/"+t).then(t=>v(e,t.data),y),getLocales:()=>e.get("locales").then(t=>b(e,t.data),y),createLocale:t=>e.post("locales",t).then(t=>v(e,t.data),y),getUiExtension:t=>e.get("extensions/"+t).then(t=>O(e,t.data),y),getUiExtensions:()=>e.get("extensions").then(t=>j(e,t.data),y),createUiExtension:t=>e.post("extensions",t).then(t=>O(e,t.data),y),createUiExtensionWithId:(t,n)=>e.put("extensions/"+t,n).then(t=>O(e,t.data),y),createAppInstallation:(t,n)=>e.put("app_installations/"+t,n).then(t=>P(e,t.data),y),getAppInstallation:t=>e.get("app_installations/"+t).then(t=>P(e,t.data),y),getAppInstallations:()=>e.get("app_installations").then(t=>A(e,t.data),y),getEntrySnapshots:(t,n={})=>e.get(`entries/${t}/snapshots`,l({query:n})).then(t=>w(e,t.data),y),getContentTypeSnapshots:(t,n={})=>e.get(`content_types/${t}/snapshots`,l({query:n})).then(t=>w(e,t.data),y),createTag:(t,n)=>e.put("tags/"+t,{name:n,sys:{type:"Tag",id:t}}).then(t=>D(e,t.data),y),getTags:(t={})=>e.get("tags",l({query:t})).then(t=>bt(e,t.data),y),getTag:t=>e.get("tags/"+t).then(t=>D(e,t.data),y)}}({http:n.cloneWithNewParams({baseURL:e.defaults.baseURL+"environments/"+r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.space.sys.id,host:s||i})});return f(g(r,a))}function W(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"environment_aliases",wrapperMethod:W}),delete:_({http:e,entityPath:"environment_aliases"})}}(e)))}function H(e,t){delete t.internal_code;return f(g(m(Qe()(t)),function(e){return{update:function(){return delete this.default,C({http:e,entityPath:"locales",wrapperMethod:H}).call(this)},delete:_({http:e,entityPath:"locales"})}}(e)))}function V(e,t){const n=m(Qe()(t)),r=(e.defaults.baseURL||"").replace("/spaces/","/organizations/")+n.sys.id+"/",o=function({http:e}){const t=Ht.appDefinition,n=t.wrapAppDefinition,r=t.wrapAppDefinitionCollection,o=Ht.user,s=o.wrapUser,i=o.wrapUserCollection,a=Ht.organizationMembership,c=a.wrapOrganizationMembership,u=a.wrapOrganizationMembershipCollection,p=Ht.teamMembership,f=p.wrapTeamMembership,d=p.wrapTeamMembershipCollection,h=Ht.teamSpaceMembership,m=h.wrapTeamSpaceMembership,g=h.wrapTeamSpaceMembershipCollection,v=Ht.team,b=v.wrapTeam,w=v.wrapTeamCollection,C=Ht.spaceMembership,_=C.wrapSpaceMembership,x=C.wrapSpaceMembershipCollection,O=Ht.organizationInvitation.wrapOrganizationInvitation,j={"x-contentful-enable-alpha-feature":"organization-user-management-api"};return{getUser:t=>e.get("users/"+t).then(t=>s(e,t.data),y),getUsers:(t={})=>e.get("users",l({query:t})).then(t=>i(e,t.data),y),getOrganizationMembership:t=>e.get("organization_memberships/"+t).then(t=>c(e,t.data),y),getOrganizationMemberships:(t={})=>e.get("organization_memberships",l({query:t})).then(t=>u(e,t.data),y),createTeam:t=>e.post("teams",t).then(t=>b(e,t.data),y),getTeam:t=>e.get("teams/"+t).then(t=>b(e,t.data),y),getTeams:(t={})=>e.get("teams",l({query:t})).then(t=>w(e,t.data),y),createTeamMembership:(t,n)=>e.post("teams/"+t+"/team_memberships",n).then(t=>f(e,t.data),y),getTeamMembership:(t,n)=>e.get("teams/"+t+"/team_memberships/"+n).then(t=>f(e,t.data),y),getTeamMemberships(t={}){const n=Ot()(t,"query",{});return t.teamId?e.get("teams/"+t.teamId+"/team_memberships",l({query:n})).then(t=>d(e,t.data),y):e.get("team_memberships",l({query:n})).then(t=>d(e,t.data),y)},getTeamSpaceMemberships(t={}){const n=Ot()(t,"query",{});return t.teamId&&(n["sys.team.sys.id"]=t.teamId),e.get("team_space_memberships",l({query:n})).then(t=>g(e,t.data),y)},getTeamSpaceMembership:t=>e.get("team_space_memberships/"+t).then(t=>m(e,t.data),y),getOrganizationSpaceMembership:t=>e.get("space_memberships/"+t).then(t=>_(e,t.data),y),getOrganizationSpaceMemberships:(t={})=>e.get("space_memberships",l({query:t})).then(t=>x(e,t.data),y),getOrganizationInvitation:t=>e.get("invitations/"+t,{headers:j}).then(t=>O(e,t.data),y),createOrganizationInvitation:t=>e.post("invitations",t,{headers:{"x-contentful-enable-alpha-feature":"pending-org-membership"}}).then(t=>O(e,t.data),y),createAppDefinition:t=>e.post("app_definitions",t).then(t=>n(e,t.data),y),getAppDefinitions:(t={})=>e.get("app_definitions",l({query:t})).then(t=>r(e,t.data),y),getAppDefinition:t=>e.get("app_definitions/"+t).then(t=>n(e,t.data),y)}}({http:e.cloneWithNewParams({baseURL:r})});return f(g(n,o))}function $(e,t){return f(m(Qe()(t)))}function X(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject().role;return e.put("organization_memberships/"+t.sys.id,{role:n},{headers:{"X-Contentful-Version":t.sys.version||0}}).then(t=>X(e,t.data),y)},delete:_({http:e,entityPath:"organization_memberships"})}}(e)))}function K(e,t){return f(g(m(Qe()(t)),function(e){return{revoke:function(){const t=(e.defaults.baseURL||"").replace("/spaces/","/users/me/access_tokens");return e.put(this.sys.id+"/revoked",null,{baseURL:t}).then(e=>e.data,y)}}}(e)))}function G(e,t){return f(g(m(Qe()(t)),{}))}function J(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"roles",wrapperMethod:J}),delete:_({http:e,entityPath:"roles"})}}(e)))}function Q(e){return function(){return e.delete("scheduled_actions/"+this.sys.id).then(t=>Z(e,t.data),y)}}function Y(e){return{delete:Q(e)}}function Z(e,t){return f(g(m(Qe()(t)),Y(e)))}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ee(Object(t),!0).forEach((function(n){ne(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){console.warn([`Deprecated: Space.${e}() will be removed in future major versions.`,null,`Please migrate your code to use Environment.${e}():`,"https://contentful.github.io/contentful-management.js/contentful-management/latest/globals.html#createenvironmentapi",null].join("\n"))}function oe(){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)")}function se(e,t){const n=e,r=m(Qe()(t)),o=n.httpClientParams,s=o.hostUpload,i=o.defaultHostnameUpload,a=function({http:e,httpUpload:t}){function n(t){return e.post("assets",t).then(t=>v(e,t.data),y)}function r(e){re("createUpload");const n=e.file;return n?t.post("uploads",n,{headers:{"Content-Type":"application/octet-stream"}}).then(e=>ae(t,e.data)).catch(y):Promise.reject(new Error("Unable to locate a file to upload."))}function o(e){e.select&&!/sys/i.test(e.select)&&(e.select+=",sys")}const s=Ht.space.wrapSpace,i=Ht.environment,a=i.wrapEnvironment,c=i.wrapEnvironmentCollection,u=Ht.contentType,p=u.wrapContentType,f=u.wrapContentTypeCollection,d=Ht.entry,h=d.wrapEntry,m=d.wrapEntryCollection,g=Ht.asset,v=g.wrapAsset,b=g.wrapAssetCollection,w=Ht.locale,C=w.wrapLocale,_=w.wrapLocaleCollection,x=Ht.webhook,O=x.wrapWebhook,j=x.wrapWebhookCollection,E=Ht.role,P=E.wrapRole,A=E.wrapRoleCollection,T=Ht.user,S=T.wrapUser,R=T.wrapUserCollection,k=Ht.spaceMember,U=k.wrapSpaceMember,M=k.wrapSpaceMemberCollection,L=Ht.spaceMembership,F=L.wrapSpaceMembership,q=L.wrapSpaceMembershipCollection,D=Ht.teamSpaceMembership,N=D.wrapTeamSpaceMembership,z=D.wrapTeamSpaceMembershipCollection,I=Ht.apiKey,B=I.wrapApiKey,W=I.wrapApiKeyCollection,H=Ht.editorInterface.wrapEditorInterface,V=Ht.environmentAlias,$=V.wrapEnvironmentAlias,X=V.wrapEnvironmentAliasCollection,K=Ht.previewApiKey,G=K.wrapPreviewApiKey,J=K.wrapPreviewApiKeyCollection,Q=Ht.scheduledAction,Y=Q.wrapScheduledAction,Z=Q.wrapScheduledActionCollection,ee=Ht.snapshot.wrapSnapshotCollection,ne=Ht.uiExtension,se=ne.wrapUiExtension,ie=ne.wrapUiExtensionCollection,ae=Ht.upload.wrapUpload;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("",n,{headers:{"X-Contentful-Version":t.sys.version}}).then(t=>s(e,t.data),y)},getEnvironment:t=>e.get("environments/"+t).then(t=>a(e,t.data),y),getEnvironments:()=>e.get("environments").then(t=>c(e,t.data),y),createEnvironment:(t={})=>e.post("environments",t).then(t=>a(e,t.data),y),createEnvironmentWithId:(t,n,r)=>e.put("environments/"+t,n,{headers:r?{"X-Contentful-Source-Environment":r}:{}}).then(t=>a(e,t.data),y),getContentType:t=>(re("getContentType"),e.get("content_types/"+t).then(t=>p(e,t.data),y)),getContentTypes:(t={})=>(re("getContentTypes"),e.get("content_types",l({query:t})).then(t=>f(e,t.data),y)),createContentType:t=>(re("createContentType"),e.post("content_types",t).then(t=>p(e,t.data),y)),createContentTypeWithId:(t,n)=>(re("createContentTypeWithId"),e.put("content_types/"+t,n).then(t=>p(e,t.data),y)),getEditorInterfaceForContentType:t=>(re("getEditorInterfaceForContentType"),e.get("content_types/"+t+"/editor_interface").then(t=>H(e,t.data),y)),getEntry:(t,n={})=>(re("getEntry"),o(n),e.get("entries/"+t,l({query:n})).then(t=>h(e,t.data),y)),getEntries:(t={})=>(re("getEntries"),o(t),e.get("entries",l({query:t})).then(t=>m(e,t.data),y)),createEntry:(t,n)=>(re("createEntry"),e.post("entries",n,{headers:{"X-Contentful-Content-Type":t}}).then(t=>h(e,t.data),y)),createEntryWithId:(t,n,r)=>(re("createEntryWithId"),e.put("entries/"+n,r,{headers:{"X-Contentful-Content-Type":t}}).then(t=>h(e,t.data),y)),createUpload:r,createAsset:n,getAsset:(t,n={})=>(re("getAsset"),o(n),e.get("assets/"+t,l({query:n})).then(t=>v(e,t.data),y)),getAssets:(t={})=>(re("getAssets"),o(t),e.get("assets",l({query:t})).then(t=>b(e,t.data),y)),createAssetWithId:(t,n)=>(re("createAssetWithId"),e.put("assets/"+t,n).then(t=>v(e,t.data),y)),createAssetFromFiles(e){re("createAssetFromFiles");const t=e.fields.file;return Promise.all(Object.keys(t).map(e=>{const n=t[e],o=n.contentType,s=n.fileName;return r(t[e]).then(t=>({[e]:{contentType:o,fileName:s,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}}))})).then(t=>(e.fields.file=t.reduce((e,t)=>te(te({},e),t),{}),n(e))).catch(y)},getUpload:n=>(re("getUpload"),t.get("uploads/"+n).then(t=>ae(e,t.data)).catch(y)),getLocale:t=>(re("getLocale"),e.get("locales/"+t).then(t=>C(e,t.data),y)),getLocales:()=>(re("getLocales"),e.get("locales").then(t=>_(e,t.data),y)),createLocale:t=>(re("createLocale"),e.post("locales",t).then(t=>C(e,t.data),y)),getWebhook:t=>e.get("webhook_definitions/"+t).then(t=>O(e,t.data),y),getWebhooks:()=>e.get("webhook_definitions").then(t=>j(e,t.data),y),createWebhook:t=>e.post("webhook_definitions",t).then(t=>O(e,t.data),y),createWebhookWithId:(t,n)=>e.put("webhook_definitions/"+t,n).then(t=>O(e,t.data),y),getRole:t=>e.get("roles/"+t).then(t=>P(e,t.data),y),getRoles:(t={})=>(o(t),e.get("roles",l({query:t})).then(t=>A(e,t.data),y)),createRole:t=>e.post("roles",t).then(t=>P(e,t.data),y),createRoleWithId:(t,n)=>e.put("roles/"+t,n).then(t=>P(e,t.data),y),getScheduledActions:t=>e.get("scheduled_actions",l({query:t})).then(t=>Z(e,t.data),y),createScheduledAction:t=>e.post("scheduled_actions",t).then(t=>Y(e,t.data),y),getSpaceUser:t=>e.get("users/"+t).then(t=>S(e,t.data),y),getSpaceUsers:(t={})=>e.get("users/",l({query:t})).then(t=>R(e,t.data),y),getSpaceMember:t=>e.get("space_members/"+t).then(t=>U(e,t.data),y),getSpaceMembers:(t={})=>e.get("space_members",l({query:t})).then(t=>M(e,t.data),y),getSpaceMembership:t=>(oe(),e.get("space_memberships/"+t).then(t=>F(e,t.data),y)),getSpaceMemberships:(t={})=>(oe(),e.get("space_memberships",l({query:t})).then(t=>q(e,t.data),y)),createSpaceMembership:t=>(oe(),e.post("space_memberships",t).then(t=>F(e,t.data),y)),createSpaceMembershipWithId:(t,n)=>(oe(),e.put("space_memberships/"+t,n).then(t=>F(e,t.data),y)),getTeamSpaceMembership:t=>e.get("team_space_memberships/"+t).then(t=>N(e,t.data),y),getTeamSpaceMemberships:(t={})=>e.get("team_space_memberships",l({query:t})).then(t=>z(e,t.data),y),createTeamSpaceMembership:(t,n)=>e.post("team_space_memberships",n,{headers:{"x-contentful-team":t}}).then(t=>N(e,t.data),y),getApiKey:t=>e.get("api_keys/"+t).then(t=>B(e,t.data),y),getApiKeys:()=>e.get("api_keys").then(t=>W(e,t.data),y),getPreviewApiKeys:()=>e.get("preview_api_keys").then(t=>J(e,t.data),y),getPreviewApiKey:t=>e.get("preview_api_keys/"+t).then(t=>G(e,t.data),y),createApiKey:function(t){return e.post("api_keys",t).then(t=>B(e,t.data),y)},createApiKeyWithId:(t,n)=>e.put("api_keys/"+t,n).then(t=>B(e,t.data),y),getUiExtension:t=>(re("getUiExtension"),e.get("extensions/"+t).then(t=>se(e,t.data),y)),getUiExtensions:()=>(re("getUiExtensions"),e.get("extensions").then(t=>ie(e,t.data),y)),createUiExtension:t=>(re("createUiExtension"),e.post("extensions",t).then(t=>se(e,t.data),y)),createUiExtensionWithId:(t,n)=>(re("createUiExtensionWithId"),e.put("extensions/"+t,n).then(t=>se(e,t.data),y)),getEntrySnapshots:(t,n={})=>(re("getEntrySnapshots"),e.get(`entries/${t}/snapshots`,l({query:n})).then(t=>ee(e,t.data),y)),getContentTypeSnapshots:(t,n={})=>(re("getContentTypeSnapshots"),e.get(`content_types/${t}/snapshots`,l({query:n})).then(t=>ee(e,t.data),y)),createEnvironmentAliasWithId:(t,n)=>e.put("environment_aliases/"+t,n).then(t=>$(e,t.data),y),getEnvironmentAlias:t=>e.get("environment_aliases/"+t).then(t=>$(e,t.data),y),getEnvironmentAliases:()=>e.get("environment_aliases").then(t=>X(e,t.data),y)}}({http:n.cloneWithNewParams({space:r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.id,host:s||i})});return f(g(r,a))}function ie(e,t){return f(m(Qe()(t)))}function ae(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"space_memberships",wrapperMethod:ae}),delete:_({http:e,entityPath:"space_memberships"})}}(e)))}function ce(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:Lt,wrapperMethod:ce}),delete:_({http:e,entityPath:Lt})}}(e)))}function ue(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=t.sys.team.sys.id;return e.put("teams/"+n+"/team_memberships/"+this.sys.id,t,{headers:{"X-Contentful-Version":this.sys.version||0}}).then(t=>ue(e,t.data),y)},delete:function(){const t=this.toPlainObject().sys.team.sys.id;return e.delete("teams/"+t+"/team_memberships/"+this.sys.id).then(()=>{},y)}}}(e)))}function pe(e,t){return f(g(m(Qe()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Qe()(t);return delete n.sys,e.put("team_space_memberships/"+this.sys.id,n,{headers:{"X-Contentful-Version":this.sys.version||0,"x-contentful-team":this.sys.team.sys.id}}).then(t=>pe(e,t.data),y)},delete:_({http:e,entityPath:"team_space_memberships"})}}(e)))}function le(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:"extensions",wrapperMethod:le}),delete:_({http:e,entityPath:"extensions"})}}(e)))}function fe(e,t){return f(g(m(Qe()(t)),function(e){return{delete:_({http:e,entityPath:"uploads"})}}(e)))}function de(e,t){return f(g(m(Qe()(t)),{}))}function he(e,t){return f(g(m(Qe()(t)),{}))}function me(e,t){return f(g(m(Qe()(t)),function(e){return{update:C({http:e,entityPath:Bt,wrapperMethod:me}),delete:_({http:e,entityPath:Bt}),getCalls:function(){return e.get("webhooks/"+this.sys.id+"/calls").then(e=>e.data,y)},getCall:function(t){return e.get("webhooks/"+this.sys.id+"/calls/"+t).then(e=>e.data,y)},getHealth:function(){return e.get("webhooks/"+this.sys.id+"/health").then(e=>e.data,y)}}}(e)))}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ye(Object(t),!0).forEach((function(n){ve(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){return function({http:e}){const t=Ht.space,n=t.wrapSpace,r=t.wrapSpaceCollection,o=Ht.user.wrapUser,s=Ht.personalAccessToken,i=s.wrapPersonalAccessToken,a=s.wrapPersonalAccessTokenCollection,c=Ht.organization,u=c.wrapOrganization,p=c.wrapOrganizationCollection,f=Ht.usage.wrapUsageCollection;return{getSpaces:function(t={}){return e.get("",l({query:t})).then(t=>r(e,t.data),y)},getSpace:function(t){return e.get(t).then(t=>n(e,t.data),y)},createSpace:function(t,r){return e.post("",t,{headers:r?{"X-Contentful-Organization":r}:{}}).then(t=>n(e,t.data),y)},getOrganization:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/organizations/");return e.get("",{baseURL:o}).then(n=>{const r=n.data.items.find(e=>e.sys.id===t);if(!r){const e=new Error(`No organization was found with the ID ${t} instead got ${JSON.stringify(n)}`);return e.status=404,e.statusText="Not Found",Promise.reject(e)}return u(e,r)},y)},getOrganizations:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/organizations/");return e.get("",{baseURL:r}).then(t=>p(e,t.data),y)},getCurrentUser:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/");return e.get("",{baseURL:r}).then(t=>o(e,t.data),y)},createPersonalAccessToken:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/users/me/access_tokens");return e.post("",t,{baseURL:o}).then(t=>i(e,t.data),y)},getPersonalAccessToken:function(t){var n,r;const o=null===(n=e.defaults)||void 0===n||null===(r=n.baseURL)||void 0===r?void 0:r.replace("/spaces/","/users/me/access_tokens");return e.get(t,{baseURL:o}).then(t=>i(e,t.data),y)},getPersonalAccessTokens:function(){var t,n;const r=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/access_tokens");return e.get("",{baseURL:r}).then(t=>a(e,t.data),y)},getOrganizationUsage:function(t,n={}){var r,o;const s=null===(r=e.defaults)||void 0===r||null===(o=r.baseURL)||void 0===o?void 0:o.replace("/spaces/",`/organizations/${t}/organization_periodic_usages`);return e.get("",{baseURL:s,params:n}).then(t=>f(e,t.data),y)},getSpaceUsage:function(t,n={}){var r,o;const s=null===(r=e.defaults)||void 0===r||null===(o=r.baseURL)||void 0===o?void 0:o.replace("/spaces/",`/organizations/${t}/space_periodic_usages`);return e.get("",{baseURL:s,params:n}).then(t=>f(e,t.data),y)},rawRequest:function(t){return e(t).then(e=>e.data,y)}}}({http:function(e){const t=h("contentful-management.js/6.3.2",e.application,e.integration,e.feature);if(!(e=ge(ge({},{defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"}),Qe()(e))).accessToken)throw new TypeError("Expected parameter accessToken");return e.headers=ge(ge({},e.headers),{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":t}),p($t.a,e)}(e)})}n.r(t),n.d(t,"createClient",(function(){return be}));var we={};n.r(we),n.d(we,"wrapApiKey",(function(){return P})),n.d(we,"wrapApiKeyCollection",(function(){return ct}));var Ce={};n.r(Ce),n.d(Ce,"wrapAppDefinition",(function(){return A})),n.d(Ce,"wrapAppDefinitionCollection",(function(){return pt}));var _e={};n.r(_e),n.d(_e,"wrapAppInstallation",(function(){return T})),n.d(_e,"wrapAppInstallationCollection",(function(){return lt}));var xe={};n.r(xe),n.d(xe,"wrapAsset",(function(){return S})),n.d(xe,"wrapAssetCollection",(function(){return ht}));var Oe={};n.r(Oe),n.d(Oe,"wrapEditorInterface",(function(){return R}));var je={};n.r(je),n.d(je,"wrapSnapshot",(function(){return k})),n.d(je,"wrapSnapshotCollection",(function(){return mt}));var Ee={};n.r(Ee),n.d(Ee,"wrapContentType",(function(){return U})),n.d(Ee,"wrapContentTypeCollection",(function(){return gt}));var Pe={};n.r(Pe),n.d(Pe,"wrapEntry",(function(){return M})),n.d(Pe,"wrapEntryCollection",(function(){return vt}));var Ae={};n.r(Ae),n.d(Ae,"createDeleteTag",(function(){return L})),n.d(Ae,"createUpdateTag",(function(){return F})),n.d(Ae,"default",(function(){return q})),n.d(Ae,"wrapTag",(function(){return D})),n.d(Ae,"wrapTagCollection",(function(){return bt}));var Te={};n.r(Te),n.d(Te,"wrapEnvironment",(function(){return B})),n.d(Te,"wrapEnvironmentCollection",(function(){return wt}));var Se={};n.r(Se),n.d(Se,"wrapEnvironmentAlias",(function(){return W})),n.d(Se,"wrapEnvironmentAliasCollection",(function(){return Ct}));var Re={};n.r(Re),n.d(Re,"wrapLocale",(function(){return H})),n.d(Re,"wrapLocaleCollection",(function(){return _t}));var ke={};n.r(ke),n.d(ke,"wrapOrganization",(function(){return V})),n.d(ke,"wrapOrganizationCollection",(function(){return jt}));var Ue={};n.r(Ue),n.d(Ue,"wrapOrganizationInvitation",(function(){return $}));var Me={};n.r(Me),n.d(Me,"wrapOrganizationMembership",(function(){return X})),n.d(Me,"wrapOrganizationMembershipCollection",(function(){return Et}));var Le={};n.r(Le),n.d(Le,"wrapPersonalAccessToken",(function(){return K})),n.d(Le,"wrapPersonalAccessTokenCollection",(function(){return Pt}));var Fe={};n.r(Fe),n.d(Fe,"wrapPreviewApiKey",(function(){return G})),n.d(Fe,"wrapPreviewApiKeyCollection",(function(){return At}));var qe={};n.r(qe),n.d(qe,"wrapRole",(function(){return J})),n.d(qe,"wrapRoleCollection",(function(){return Tt}));var De={};n.r(De),n.d(De,"createDeleteScheduledAction",(function(){return Q})),n.d(De,"default",(function(){return Y})),n.d(De,"wrapScheduledAction",(function(){return Z})),n.d(De,"wrapScheduledActionCollection",(function(){return Rt}));var Ne={};n.r(Ne),n.d(Ne,"wrapSpace",(function(){return se})),n.d(Ne,"wrapSpaceCollection",(function(){return kt}));var ze={};n.r(ze),n.d(ze,"wrapSpaceMember",(function(){return ie})),n.d(ze,"wrapSpaceMemberCollection",(function(){return Ut}));var Ie={};n.r(Ie),n.d(Ie,"wrapSpaceMembership",(function(){return ae})),n.d(Ie,"wrapSpaceMembershipCollection",(function(){return Mt}));var Be={};n.r(Be),n.d(Be,"wrapTeam",(function(){return ce})),n.d(Be,"wrapTeamCollection",(function(){return Ft}));var We={};n.r(We),n.d(We,"wrapTeamMembership",(function(){return ue})),n.d(We,"wrapTeamMembershipCollection",(function(){return qt}));var He={};n.r(He),n.d(He,"wrapTeamSpaceMembership",(function(){return pe})),n.d(He,"wrapTeamSpaceMembershipCollection",(function(){return Dt}));var Ve={};n.r(Ve),n.d(Ve,"wrapUiExtension",(function(){return le})),n.d(Ve,"wrapUiExtensionCollection",(function(){return Nt}));var $e={};n.r($e),n.d($e,"wrapUpload",(function(){return fe}));var Xe={};n.r(Xe),n.d(Xe,"wrapUsage",(function(){return de})),n.d(Xe,"wrapUsageCollection",(function(){return zt}));var Ke={};n.r(Ke),n.d(Ke,"wrapUser",(function(){return he})),n.d(Ke,"wrapUserCollection",(function(){return It}));var Ge={};n.r(Ge),n.d(Ge,"wrapWebhook",(function(){return me})),n.d(Ge,"wrapWebhookCollection",(function(){return Wt}));var Je=n(0),Qe=n.n(Je),Ye=n(38),Ze=n.n(Ye),et=n(2),tt=n.n(et),nt=n(8),rt={},ot=0,st=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;const it=e=>(t,n)=>{const r=m(Qe()(n));return r.items=r.items.map(n=>e(t,n)),r},at=e=>({headers:{"X-Contentful-Version":Number.isInteger(e)?e:0}}),ct=it(P),ut="app_definitions",pt=it(A),lt=it(T),ft=3e3,dt=10,ht=it(S),mt=it(k),yt=function(e,t,n,r){const o=e.fields.find(e=>e.id===t);return o?(o[n]=r,e.update()):Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${t}, on the content type ${e.name}.`))},gt=it(U),vt=it(M),bt=it(D),wt=it(B),Ct=it(W),_t=it(H);var xt=n(14),Ot=n.n(xt);const jt=it(V),Et=it(X),Pt=it(K),At=it(G),Tt=it(J);var St;!function(e){e.scheduled="scheduled",e.inProgress="inProgress",e.succeeded="succeeded",e.failed="failed",e.canceled="canceled"}(St||(St={}));const Rt=it(Z),kt=it(se),Ut=it(ie),Mt=it(ae),Lt="teams",Ft=it(ce),qt=it(ue),Dt=it(pe),Nt=it(le),zt=it(de),It=it(he),Bt="webhook_definitions",Wt=it(me);var Ht={apiKey:we,appDefinition:Ce,appInstallation:_e,asset:xe,contentType:Ee,editorInterface:Oe,entry:Pe,environment:Te,environmentAlias:Se,locale:Re,organization:ke,organizationInvitation:Ue,organizationMembership:Me,personalAccessToken:Le,previewApiKey:Fe,role:qe,scheduledAction:De,snapshot:je,space:Ne,spaceMember:ze,spaceMembership:Ie,tag:Ae,team:Be,teamMembership:We,teamSpaceMembership:He,uiExtension:Ve,upload:$e,usage:Xe,user:Ke,webhook:Ge},Vt=n(39),$t=n.n(Vt)}]);
@@ -21,7 +21,7 @@ export function createCMAHttpClient(params) {
21
21
  defaultHostnameUpload: 'upload.contentful.com'
22
22
  };
23
23
  var userAgentHeader = getUserAgentHeader( // @ts-expect-error
24
- "contentful-management.js/".concat("6.3.1"), params.application, params.integration, params.feature);
24
+ "contentful-management.js/".concat("6.3.2"), params.application, params.integration, params.feature);
25
25
  var requiredHeaders = {
26
26
  'Content-Type': 'application/vnd.contentful.management.v1+json',
27
27
  'X-Contentful-User-Agent': userAgentHeader
@@ -3,11 +3,12 @@ import { MetaSysProps, DefaultElements } from '../common-types';
3
3
  export declare type ActionType = 'read' | 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'archive' | 'unarchive';
4
4
  declare type ConditionType = 'and' | 'or' | 'not' | 'equals';
5
5
  export declare type ConstraintType = {
6
- [key in ConditionType]: ConstraintType[] | any;
6
+ [key in ConditionType]?: ConstraintType[] | any;
7
7
  };
8
8
  export declare type RoleProps = {
9
9
  sys: MetaSysProps;
10
10
  name: string;
11
+ description?: string;
11
12
  /**
12
13
  * Permissions for application sections
13
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "description": "Client for Contentful's Content Management API",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6
6
  "main": "./dist/contentful-management.node.js",