UNPKG

92.9 kBJavaScriptView Raw
1module.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=39)}([function(e,t,n){var r=n(40);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";function r(e){return"[object Array]"===u.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function i(e){return"[object Function]"===u.call(e)}function a(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 c=n(24),u=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===u.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,isUndefined:o,isDate:function(e){return"[object Date]"===u.call(e)},isFile:function(e){return"[object File]"===u.call(e)},isBlob:function(e){return"[object Blob]"===u.call(e)},isFunction:i,isStream:function(e){return s(e)&&i(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:a,merge:function e(){function t(t,r){n[r]="object"==typeof n[r]&&"object"==typeof t?e(n[r],t):t}for(var n={},r=0,o=arguments.length;r<o;r++)a(arguments[r],t);return n},deepMerge:function e(){function t(t,r){n[r]="object"==typeof n[r]&&"object"==typeof t?e(n[r],t):"object"==typeof t?e({},t):t}for(var n={},r=0,o=arguments.length;r<o;r++)a(arguments[r],t);return n},extend:function(e,t,n){return a(t,(function(t,r){e[r]=n&&"function"==typeof t?c(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(92),o=n(22),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(42),s=n(43),i=n(44),a=n(45),c=n(46);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(62);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(/%40/gi,"@").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(28);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(52),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(67);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=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,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;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,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(102),o=n(103);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){u.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(!e.hostname&&(e.hostname=e.host),delete e.host),t&&this.on("response",t);var n=this;if(this._onNativeResponse=function(e){n._processResponse(e)},!e.pathname&&e.path){var r=e.path.indexOf("?");0>r?e.pathname=e.path:(e.pathname=e.path.substring(0,r),e.search=e.path.substring(r))}this._performRequest()}function o(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var i=o+":",a=n[i]=e[o],u=t[o]=Object.create(a);u.request=function(e,o){return"string"==typeof e?(e=s.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:i,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=n,c.equal(e.protocol,i,"protocol mismatch"),p("options",e),new r(e,o)},u.get=function(e,t){var n=u.request(e,t);return n.end(),n}})),t}var s=n(33),i=n(30),a=n(31),c=n(108),u=n(109).Writable,p=n(110)("follow-redirects"),l={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},f=Object.create(null);["abort","aborted","error","socket","timeout"].forEach((function(e){f[e]=function(t){this._redirectable.emit(e,t)}})),r.prototype=Object.create(u.prototype),r.prototype.write=function(e,t,n){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("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 Error("Request body larger than maxBodyLength limit")),this.abort()))},r.prototype.end=function(e,t,n){"function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null);var r=this._currentRequest;this.write(e||"",t,(function(){r.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)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].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._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=s.format(this._options),r._redirectable=this,f)o&&r.on(o,f[o]);if(this._isRedirect){var i=0,a=this._requestBodyBuffers;!function e(){if(i<a.length){var t=a[i++];r.write(t.data,t.encoding,e)}else r.end()}()}}else this.emit("error",new Error("Unsupported protocol "+e))},r.prototype._processResponse=function(e){this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:e.statusCode});var t=e.headers.location;if(t&&!1!==this._options.followRedirects&&300<=e.statusCode&&400>e.statusCode){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var n,r=this._options.headers;if(307!==e.statusCode&&!(this._options.method in l))for(n in this._options.method="GET",this._requestBodyBuffers=[],r)/^content-/i.test(n)&&delete r[n];if(!this._isRedirect)for(n in r)/^host$/i.test(n)&&delete r[n];var o=s.resolve(this._currentUrl,t);p("redirecting to",o),Object.assign(this._options,s.parse(o)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=o({http:i,https:a}),e.exports.wrap=o},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(112),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],s=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(s,(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0===t[o]?r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o]):n[o]=t[o]})),r.forEach(i,(function(r){void 0===t[r]?void 0!==e[r]&&(n[r]=e[r]):n[r]=t[r]}));var a=o.concat(s).concat(i),c=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return r.forEach(c,(function(r){void 0===t[r]?void 0!==e[r]&&(n[r]=e[r]):n[r]=t[r]})),n}},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(23);e.exports={formats:s,parse:o,stringify:r}},function(e,t,n){e.exports=n(95)},function(e,t,n){e.exports=n(122)},function(e,t,n){var r=n(41),o=n(66),s=n(18),i=n(68),a=n(69),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(21),x=n(89),O=n(20),_=1,j=2,P=4,E="[object Arguments]",A="[object Function]",S="[object GeneratorFunction]",T="[object Object]",k={};k[E]=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[T]=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[A]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,R,U,M,L){var F,q=n&_,N=n&j;if(R&&(F=M?R(t,U,M,L):R(t)),void 0!==F)return F;if(!C(t))return t;var z=v(t);if(z){if(F=m(t),!q)return u(t,F)}else{var D=h(t),I=D==A||D==S;if(b(t))return c(t,q);if(D==T||D==E||I&&!M){if(F=N||I?{}:g(t),!q)return N?l(t,a(F,t)):p(t,i(F,t))}else{if(!k[D])return M?t:{};F=y(t,D,q)}}L||(L=new r);var B=L.get(t);if(B)return B;L.set(t,F),x(t)?t.forEach((function(r){F.add(e(r,n,R,r,t,L))})):w(t)&&t.forEach((function(r,o){F.set(o,e(r,n,R,o,t,L))}));var W=n&P?N?d:f:N?keysIn:O,H=z?void 0:W(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),s(F,o,e(r,n,R,o,t,L))})),F}},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(3),s=n(47),i=n(48),a=n(49),c=n(50),u=n(51);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(53);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(54),s=n(61),i=n(63),a=n(64),c=n(65);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(55),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(56),s=n(57),i=n(58),a=n(59),c=n(60);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(70);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},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(22),s=n(85);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:r(o(e))}},function(e,t,n){var r=n(21),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(23),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 x=0;x<b.length;++x){var O=b[x],_=v[O];if(!i||null!==_){var j=a(v)?"function"==typeof o?o(n,O):n:n+(d?"."+O:"["+O+"]");u(w,e(_,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(24),i=n(96),a=n(35),c=r(n(26));c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(36),c.CancelToken=n(120),c.isCancel=n(25),c.all=function(e){return Promise.all(e)},c.spread=n(121),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(35);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(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(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(25),a=n(26);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(27),s=n(12),i=n(29),a=n(104),c=n(105),u=n(13);e.exports=function(e){return new Promise((function(t,p){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||"";f.Authorization="Basic "+btoa(h+":"+m)}var y=i(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),s(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 n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,p,r),d=null}},d.onabort=function(){d&&(p(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){p(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),p(u(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n(106),v=(e.withCredentials||c(y))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}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(t){if("json"!==e.responseType)throw t}"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(),p(e),d=null)})),void 0===l&&(l=null),d.send(l)}))}},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);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,t,n){"use strict";var r=n(1),o=n(27),s=n(29),i=n(12),a=n(30),c=n(31),u=n(32).http,p=n(32).https,l=n(33),f=n(118),d=n(119),h=n(13),m=n(28),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 x=s(e.baseURL,e.url),O=l.parse(x),_=O.protocol||"http:";if(!g&&O.auth){var j=O.auth.split(":");g=(j[0]||"")+":"+(j[1]||"")}g&&delete C.Authorization;var P=y.test(_),E=P?e.httpsAgent:e.httpAgent,A={path:i(O.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:C,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:g};e.socketPath?A.socketPath=e.socketPath:(A.hostname=O.hostname,A.port=O.port);var S=e.proxy;if(!S&&!1!==S){var T=_.slice(0,-1)+"_proxy",k=process.env[T]||process.env[T.toUpperCase()];if(k){var R=l.parse(k),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]&&O.hostname.substr(O.hostname.length-e.length)===e||O.hostname===e)}));if(M&&(S={host:R.hostname,port:R.port},R.auth)){var L=R.auth.split(":");S.auth={username:L[0],password:L[1]}}}}if(S&&(A.hostname=S.host,A.host=S.host,A.headers.host=O.hostname+(O.port?":"+O.port:""),A.port=S.port,A.path=_+"//"+O.hostname+(O.port?":"+O.port:"")+A.path,S.auth)){var F=Buffer.from(S.auth.username+":"+S.auth.password,"utf8").toString("base64");A.headers["Proxy-Authorization"]="Basic "+F}var q,N=P&&(!S||y.test(S.protocol));e.transport?q=e.transport:0===e.maxRedirects?q=N?c:a:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),q=N?p:u),e.maxContentLength&&-1<e.maxContentLength&&(A.maxBodyLength=e.maxContentLength);var z=q.request(A,(function(t){if(!z.aborted){var n=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=204===t.statusCode?n:n.pipe(f.createUnzip()),delete t.headers["content-encoding"]}var r=t.req||z,s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:r};if("stream"===e.responseType)s.data=n,o(v,b,s);else{var i=[];n.on("data",(function(t){i.push(t),-1<e.maxContentLength&&Buffer.concat(i).length>e.maxContentLength&&(n.destroy(),b(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,r)))})),n.on("error",(function(t){z.aborted||b(m(t,e,null,r))})),n.on("end",(function(){var t=Buffer.concat(i);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),s.data=t,o(v,b,s)}))}}}));z.on("error",(function(t){z.aborted||b(m(t,e,null,z))})),e.timeout&&z.setTimeout(e.timeout,(function(){z.abort(),b(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",z))})),e.cancelToken&&e.cancelToken.promise.then((function(e){z.aborted||(z.abort(),b(e))})),r.isStream(w)?w.on("error",(function(t){b(m(t,e,null,z))})).pipe(z):z.end(w)}))}},function(e){e.exports=require("assert")},function(e){e.exports=require("stream")},function(e,t,n){e.exports="undefined"==typeof process||"renderer"===process.type?n(111):n(113)},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(34)).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(114),s=n(115);(t=e.exports=n(34)).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(116);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(117),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('{"_from":"axios@^0.19.0","_id":"axios@0.19.2","_inBundle":false,"_integrity":"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.19.0","name":"axios","escapedName":"axios","rawSpec":"^0.19.0","saveSpec":null,"fetchSpec":"^0.19.0"},"_requiredBy":["/","/bundlesize"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz","_shasum":"3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27","_spec":"axios@^0.19.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"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"1.5.10"},"deprecated":false,"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","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","version":"0.19.2"}')},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(36);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&&Qe.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:He.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({},Be()(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)Ge=0;else{if(i="Connection",++Ge>t)return n.attempts=Ge,Promise.reject(n);a=r(Math.SQRT2,Ge),o={}}if(500<=o.status&&600>o.status){i="Server ".concat(o.status);var c=(o.headers||{})["x-contentful-request-id"]||null;if(Xe[c]=Xe[c]||0,Xe[c]++,Xe[c]>t||!c)return n.attempts=Xe[c],Promise.reject(n);a=r(Math.SQRT2,Xe[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=Be()(t),n}function f(e){return function e(t){return Object.keys(t).forEach((function(n){var r=t[n];$e()(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(Ke.platform)()||"linux",t=Object(Ke.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 Be()(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(!$e()(n)||!$e()(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:{}};$e()(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&$e()(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=Be()(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 x({http:e,entityPath:t}){return function(){return e.delete(t+"/"+this.sys.id).then(()=>{},y)}}function O({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 _({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 P({http:e,entityPath:t,wrapperMethod:n}){return function(){return e.delete(t+"/"+this.sys.id+"/archived").then(t=>n(e,t.data),y)}}function E(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:Ye,wrapperMethod:E}),delete:x({http:e,entityPath:Ye})}}(e)))}function A(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?A(Object(t),!0).forEach((function(n){T(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(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/ContentfulEnvironmentAPI.html#."+e,null].join("\n"))}function R(){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 U(e,t){const n=e,r=m(Be()(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){k("createUpload");const n=e.file;return n?t.post("uploads",n,{headers:{"Content-Type":"application/octet-stream"}}).then(e=>Y(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=kt.space.wrapSpace,i=kt.environment,a=i.wrapEnvironment,c=i.wrapEnvironmentCollection,u=kt.contentType,p=u.wrapContentType,f=u.wrapContentTypeCollection,d=kt.entry,h=d.wrapEntry,m=d.wrapEntryCollection,g=kt.asset,v=g.wrapAsset,b=g.wrapAssetCollection,w=kt.locale,C=w.wrapLocale,x=w.wrapLocaleCollection,O=kt.webhook,_=O.wrapWebhook,j=O.wrapWebhookCollection,P=kt.role,E=P.wrapRole,A=P.wrapRoleCollection,T=kt.user,U=T.wrapUser,M=T.wrapUserCollection,L=kt.spaceMember,F=L.wrapSpaceMember,q=L.wrapSpaceMemberCollection,N=kt.spaceMembership,z=N.wrapSpaceMembership,D=N.wrapSpaceMembershipCollection,I=kt.teamSpaceMembership,B=I.wrapTeamSpaceMembership,W=I.wrapTeamSpaceMembershipCollection,H=kt.apiKey,V=H.wrapApiKey,$=H.wrapApiKeyCollection,K=kt.previewApiKey,X=K.wrapPreviewApiKey,G=K.wrapPreviewApiKeyCollection,Q=kt.snapshot.wrapSnapshotCollection,J=kt.editorInterface.wrapEditorInterface,Y=kt.upload.wrapUpload,Z=kt.uiExtension,ee=Z.wrapUiExtension,te=Z.wrapUiExtensionCollection,ne=kt.environmentAlias,re=ne.wrapEnvironmentAlias,oe=ne.wrapEnvironmentAliasCollection;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Be()(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=>(k("getContentType"),e.get("content_types/"+t).then(t=>p(e,t.data),y)),getContentTypes:(t={})=>(k("getContentTypes"),e.get("content_types",l({query:t})).then(t=>f(e,t.data),y)),createContentType:t=>(k("createContentType"),e.post("content_types",t).then(t=>p(e,t.data),y)),createContentTypeWithId:(t,n)=>(k("createContentTypeWithId"),e.put("content_types/"+t,n).then(t=>p(e,t.data),y)),getEditorInterfaceForContentType:t=>(k("getEditorInterfaceForContentType"),e.get("content_types/"+t+"/editor_interface").then(t=>J(e,t.data),y)),getEntry:(t,n={})=>(k("getEntry"),o(n),e.get("entries/"+t,l({query:n})).then(t=>h(e,t.data),y)),getEntries:(t={})=>(k("getEntries"),o(t),e.get("entries",l({query:t})).then(t=>m(e,t.data),y)),createEntry:(t,n)=>(k("createEntry"),e.post("entries",n,{headers:{"X-Contentful-Content-Type":t}}).then(t=>h(e,t.data),y)),createEntryWithId:(t,n,r)=>(k("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={})=>(k("getAsset"),o(n),e.get("assets/"+t,l({query:n})).then(t=>v(e,t.data),y)),getAssets:(t={})=>(k("getAssets"),o(t),e.get("assets",l({query:t})).then(t=>b(e,t.data),y)),createAssetWithId:(t,n)=>(k("createAssetWithId"),e.put("assets/"+t,n).then(t=>v(e,t.data),y)),createAssetFromFiles(e){k("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)=>S(S({},e),t),{}),n(e))).catch(y)},getUpload:n=>(k("getUpload"),t.get("uploads/"+n).then(t=>Y(e,t.data)).catch(y)),getLocale:t=>(k("getLocale"),e.get("locales/"+t).then(t=>C(e,t.data),y)),getLocales:()=>(k("getLocales"),e.get("locales").then(t=>x(e,t.data),y)),createLocale:t=>(k("createLocale"),e.post("locales",t).then(t=>C(e,t.data),y)),getWebhook:t=>e.get("webhook_definitions/"+t).then(t=>_(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=>_(e,t.data),y),createWebhookWithId:(t,n)=>e.put("webhook_definitions/"+t,n).then(t=>_(e,t.data),y),getRole:t=>e.get("roles/"+t).then(t=>E(e,t.data),y),getRoles:()=>e.get("roles").then(t=>A(e,t.data),y),createRole:t=>e.post("roles",t).then(t=>E(e,t.data),y),createRoleWithId:(t,n)=>e.put("roles/"+t,n).then(t=>E(e,t.data),y),getSpaceUser:t=>e.get("users/"+t).then(t=>U(e,t.data),y),getSpaceUsers:(t={})=>e.get("users/",l({query:t})).then(t=>M(e,t.data),y),getSpaceMember:t=>e.get("space_members/"+t).then(t=>F(e,t.data),y),getSpaceMembers:(t={})=>e.get("space_members",l({query:t})).then(t=>q(e,t.data),y),getSpaceMembership:t=>(R(),e.get("space_memberships/"+t).then(t=>z(e,t.data),y)),getSpaceMemberships:(t={})=>(R(),e.get("space_memberships",l({query:t})).then(t=>D(e,t.data),y)),createSpaceMembership:t=>(R(),e.post("space_memberships",t).then(t=>z(e,t.data),y)),createSpaceMembershipWithId:(t,n)=>(R(),e.put("space_memberships/"+t,n).then(t=>z(e,t.data),y)),getTeamSpaceMembership:t=>e.get("team_space_memberships/"+t).then(t=>B(e,t.data),y),getTeamSpaceMemberships:(t={})=>e.get("team_space_memberships",l({query:t})).then(t=>W(e,t.data),y),createTeamSpaceMembership:(t,n)=>e.post("team_space_memberships",n,{headers:{"x-contentful-team":t}}).then(t=>B(e,t.data),y),getApiKey:t=>e.get("api_keys/"+t).then(t=>V(e,t.data),y),getApiKeys:()=>e.get("api_keys").then(t=>$(e,t.data),y),getPreviewApiKeys:()=>e.get("preview_api_keys").then(t=>G(e,t.data),y),getPreviewApiKey:t=>e.get("preview_api_keys/"+t).then(t=>X(e,t.data),y),createApiKey:function(t){return e.post("api_keys",t).then(t=>V(e,t.data),y)},createApiKeyWithId:(t,n)=>e.put("api_keys/"+t,n).then(t=>V(e,t.data),y),getUiExtension:t=>(k("getUiExtension"),e.get("extensions/"+t).then(t=>ee(e,t.data),y)),getUiExtensions:()=>(k("getUiExtensions"),e.get("extensions").then(t=>te(e,t.data),y)),createUiExtension:t=>(k("createUiExtension"),e.post("extensions",t).then(t=>ee(e,t.data),y)),createUiExtensionWithId:(t,n)=>(k("createUiExtensionWithId"),e.put("extensions/"+t,n).then(t=>ee(e,t.data),y)),getEntrySnapshots:(t,n={})=>(k("getEntrySnapshots"),e.get(`entries/${t}/snapshots`,l({query:n})).then(t=>Q(e,t.data),y)),getContentTypeSnapshots:(t,n={})=>(k("getContentTypeSnapshots"),e.get(`content_types/${t}/snapshots`,l({query:n})).then(t=>Q(e,t.data),y)),getEnvironmentAlias:t=>e.get("environment_aliases/"+t).then(t=>re(e,t.data),y),getEnvironmentAliases:()=>e.get("environment_aliases").then(t=>oe(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 M(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 L(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?M(Object(t),!0).forEach((function(n){F(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){const n=e,r=m(Be()(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=>x(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=kt.environment.wrapEnvironment,i=kt.contentType,a=i.wrapContentType,c=i.wrapContentTypeCollection,u=kt.entry,p=u.wrapEntry,f=u.wrapEntryCollection,d=kt.asset,h=d.wrapAsset,m=d.wrapAssetCollection,g=kt.locale,v=g.wrapLocale,b=g.wrapLocaleCollection,w=kt.snapshot.wrapSnapshotCollection,C=kt.editorInterface.wrapEditorInterface,x=kt.upload.wrapUpload,O=kt.uiExtension,_=O.wrapUiExtension,j=O.wrapUiExtensionCollection,P=kt.appInstallation,E=P.wrapAppInstallation,A=P.wrapAppInstallationCollection;return{delete:function(){return e.delete("").then(()=>{},y)},update:function(){const t=this.toPlainObject(),n=Be()(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)=>L(L({},e),t),{});return n(L(L({},e),{},{fields:L(L({},e.fields),{},{file:r})}))}).catch(y)},getUpload:n=>t.get("uploads/"+n).then(t=>x(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=>_(e,t.data),y),getUiExtensions:()=>e.get("extensions").then(t=>j(e,t.data),y),createUiExtension:t=>e.post("extensions",t).then(t=>_(e,t.data),y),createUiExtensionWithId:(t,n)=>e.put("extensions/"+t,n).then(t=>_(e,t.data),y),createAppInstallation:(t,n)=>e.put("app_installations/"+t,n).then(t=>E(e,t.data),y),getAppInstallation:t=>e.get("app_installations/"+t).then(t=>E(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)}}({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 N(e,t){return f(g(m(Be()(t)),{}))}function z(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"entries",wrapperMethod:z}),delete:x({http:e,entityPath:"entries"}),publish:O({http:e,entityPath:"entries",wrapperMethod:z}),unpublish:_({http:e,entityPath:"entries",wrapperMethod:z}),archive:j({http:e,entityPath:"entries",wrapperMethod:z}),unarchive:P({http:e,entityPath:"entries",wrapperMethod:z}),getSnapshots:function(t={}){return e.get(`entries/${this.sys.id}/snapshots`,l({query:t})).then(t=>nt(e,t.data),y)},getSnapshot:function(t){return e.get(`entries/${this.sys.id}/snapshots/${t}`).then(e=>N(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 D(e,t){return f(g(m(Be()(t)),function(e){function t({resolve:n,reject:r,id:o,locale:s,processingCheckWait:i=ot,processingCheckRetries:a=st,checkCount:c=0}){e.get("assets/"+o).then(t=>D(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:D}),delete:x({http:e,entityPath:"assets"}),publish:O({http:e,entityPath:"assets",wrapperMethod:D}),unpublish:_({http:e,entityPath:"assets",wrapperMethod:D}),archive:j({http:e,entityPath:"assets",wrapperMethod:D}),unarchive:P({http:e,entityPath:"assets",wrapperMethod:D}),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 I(e,t){return f(g(m(Be()(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject(),r=Be()(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=>I(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 B(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"content_types",wrapperMethod:B}),delete:x({http:e,entityPath:"content_types"}),publish:O({http:e,entityPath:"content_types",wrapperMethod:B}),unpublish:_({http:e,entityPath:"content_types",wrapperMethod:B}),getEditorInterface:function(){return e.get("content_types/"+this.sys.id+"/editor_interface").then(t=>I(e,t.data),y)},getSnapshots:function(t={}){return e.get(`content_types/${this.sys.id}/snapshots`,l({query:t})).then(t=>nt(e,t.data),y)},getSnapshot:function(t){return e.get(`content_types/${this.sys.id}/snapshots/${t}`).then(e=>N(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 at(this,e,"omitted",!0).then(t=>at(t,e,"deleted",!0)).catch(y)}}}(e)))}function W(e,t){delete t.internal_code;return f(g(m(Be()(t)),function(e){return{update:function(){return delete this.default,C({http:e,entityPath:"locales",wrapperMethod:W}).call(this)},delete:x({http:e,entityPath:"locales"})}}(e)))}function H(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:pt,wrapperMethod:H}),delete:x({http:e,entityPath:pt}),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 V(e,t){return f(m(Be()(t)))}function $(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"space_memberships",wrapperMethod:$}),delete:x({http:e,entityPath:"space_memberships"})}}(e)))}function K(e,t){return f(g(m(Be()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Be()(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=>K(e,t.data),y)},delete:x({http:e,entityPath:"team_space_memberships"})}}(e)))}function X(e,t){return f(g(m(Be()(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:x({http:e,entityPath:"organization_memberships"})}}(e)))}function G(e,t){return f(m(Be()(t)))}function Q(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"roles",wrapperMethod:Q}),delete:x({http:e,entityPath:"roles"})}}(e)))}function J(e,t){return f(g(m(Be()(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:J}).call(t)},delete:x({http:e,entityPath:"api_keys"})}}(e)))}function Y(e,t){return f(g(m(Be()(t)),{}))}function Z(e,t){return f(g(m(Be()(t)),function(e){return{delete:x({http:e,entityPath:"uploads"})}}(e)))}function ee(e,t){const n=m(Be()(t)),r=(e.defaults.baseURL||"").replace("/spaces/","/organizations/")+n.sys.id+"/",o=function({http:e}){const t=kt.appDefinition,n=t.wrapAppDefinition,r=t.wrapAppDefinitionCollection,o=kt.user,s=o.wrapUser,i=o.wrapUserCollection,a=kt.organizationMembership,c=a.wrapOrganizationMembership,u=a.wrapOrganizationMembershipCollection,p=kt.teamMembership,f=p.wrapTeamMembership,d=p.wrapTeamMembershipCollection,h=kt.teamSpaceMembership,m=h.wrapTeamSpaceMembership,g=h.wrapTeamSpaceMembershipCollection,v=kt.team,b=v.wrapTeam,w=v.wrapTeamCollection,C=kt.spaceMembership,x=C.wrapSpaceMembership,O=C.wrapSpaceMembershipCollection,_=kt.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=wt()(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=wt()(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=>x(e,t.data),y),getOrganizationSpaceMemberships:(t={})=>e.get("space_memberships",l({query:t})).then(t=>O(e,t.data),y),getOrganizationInvitation:t=>e.get("invitations/"+t,{headers:j}).then(t=>_(e,t.data),y),createOrganizationInvitation:t=>e.post("invitations",t,{headers:{"x-contentful-enable-alpha-feature":"pending-org-membership"}}).then(t=>_(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 te(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"extensions",wrapperMethod:te}),delete:x({http:e,entityPath:"extensions"})}}(e)))}function ne(e,t){return f(g(m(Be()(t)),function(e){return{update:function(){const t=this.toPlainObject(),n=Be()(t);return delete n.sys,e.put("app_installations/"+this.sys.appDefinition.sys.id,n).then(t=>ne(e,t.data),y)},delete:x({http:e,entityPath:"app_installations"})}}(e)))}function re(e,t){return f(g(m(Be()(t)),{}))}function oe(e,t){return f(g(m(Be()(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 se(e,t){return f(g(m(Be()(t)),{}))}function ie(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:"environment_aliases",wrapperMethod:ie})}}(e)))}function ae(e,t){return f(g(m(Be()(t)),function(e){return{update:C({http:e,entityPath:At,wrapperMethod:ae}),delete:x({http:e,entityPath:At})}}(e)))}function ce(e,t){return f(g(m(Be()(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=>ce(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 ue(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 pe(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ue(Object(t),!0).forEach((function(n){le(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e){return function({http:e}){const t=kt.space,n=t.wrapSpace,r=t.wrapSpaceCollection,o=kt.user.wrapUser,s=kt.personalAccessToken,i=s.wrapPersonalAccessToken,a=s.wrapPersonalAccessTokenCollection,c=kt.organization,u=c.wrapOrganization,p=c.wrapOrganizationCollection,f=kt.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/5.27.1",e.application,e.integration,e.feature);if(!(e=pe(pe({},{defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"}),Be()(e))).accessToken)throw new TypeError("Expected parameter accessToken");return e.headers=pe(pe({},e.headers),{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":t}),p(Ut.a,e)}(e)})}n.r(t),n.d(t,"createClient",(function(){return fe}));var de={};n.r(de),n.d(de,"wrapAppDefinition",(function(){return E})),n.d(de,"wrapAppDefinitionCollection",(function(){return Ze}));var he={};n.r(he),n.d(he,"wrapSpace",(function(){return U})),n.d(he,"wrapSpaceCollection",(function(){return et}));var me={};n.r(me),n.d(me,"wrapEnvironment",(function(){return q})),n.d(me,"wrapEnvironmentCollection",(function(){return tt}));var ye={};n.r(ye),n.d(ye,"wrapSnapshot",(function(){return N})),n.d(ye,"wrapSnapshotCollection",(function(){return nt}));var ge={};n.r(ge),n.d(ge,"wrapEntry",(function(){return z})),n.d(ge,"wrapEntryCollection",(function(){return rt}));var ve={};n.r(ve),n.d(ve,"wrapAsset",(function(){return D})),n.d(ve,"wrapAssetCollection",(function(){return it}));var be={};n.r(be),n.d(be,"wrapEditorInterface",(function(){return I}));var we={};n.r(we),n.d(we,"wrapContentType",(function(){return B})),n.d(we,"wrapContentTypeCollection",(function(){return ct}));var Ce={};n.r(Ce),n.d(Ce,"wrapLocale",(function(){return W})),n.d(Ce,"wrapLocaleCollection",(function(){return ut}));var xe={};n.r(xe),n.d(xe,"wrapWebhook",(function(){return H})),n.d(xe,"wrapWebhookCollection",(function(){return lt}));var Oe={};n.r(Oe),n.d(Oe,"wrapSpaceMember",(function(){return V})),n.d(Oe,"wrapSpaceMemberCollection",(function(){return ft}));var _e={};n.r(_e),n.d(_e,"wrapSpaceMembership",(function(){return $})),n.d(_e,"wrapSpaceMembershipCollection",(function(){return dt}));var je={};n.r(je),n.d(je,"wrapTeamSpaceMembership",(function(){return K})),n.d(je,"wrapTeamSpaceMembershipCollection",(function(){return ht}));var Pe={};n.r(Pe),n.d(Pe,"wrapOrganizationMembership",(function(){return X})),n.d(Pe,"wrapOrganizationMembershipCollection",(function(){return mt}));var Ee={};n.r(Ee),n.d(Ee,"wrapOrganizationInvitation",(function(){return G}));var Ae={};n.r(Ae),n.d(Ae,"wrapRole",(function(){return Q})),n.d(Ae,"wrapRoleCollection",(function(){return yt}));var Se={};n.r(Se),n.d(Se,"wrapApiKey",(function(){return J})),n.d(Se,"wrapApiKeyCollection",(function(){return gt}));var Te={};n.r(Te),n.d(Te,"wrapPreviewApiKey",(function(){return Y})),n.d(Te,"wrapPreviewApiKeyCollection",(function(){return vt}));var ke={};n.r(ke),n.d(ke,"wrapUpload",(function(){return Z}));var Re={};n.r(Re),n.d(Re,"wrapOrganization",(function(){return ee})),n.d(Re,"wrapOrganizationCollection",(function(){return Ct}));var Ue={};n.r(Ue),n.d(Ue,"wrapUiExtension",(function(){return te})),n.d(Ue,"wrapUiExtensionCollection",(function(){return xt}));var Me={};n.r(Me),n.d(Me,"wrapAppInstallation",(function(){return ne})),n.d(Me,"wrapAppInstallationCollection",(function(){return Ot}));var Le={};n.r(Le),n.d(Le,"wrapUser",(function(){return re})),n.d(Le,"wrapUserCollection",(function(){return _t}));var Fe={};n.r(Fe),n.d(Fe,"wrapPersonalAccessToken",(function(){return oe})),n.d(Fe,"wrapPersonalAccessTokenCollection",(function(){return jt}));var qe={};n.r(qe),n.d(qe,"wrapUsage",(function(){return se})),n.d(qe,"wrapUsageCollection",(function(){return Pt}));var Ne={};n.r(Ne),n.d(Ne,"wrapEnvironmentAlias",(function(){return ie})),n.d(Ne,"wrapEnvironmentAliasCollection",(function(){return Et}));var ze={};n.r(ze),n.d(ze,"wrapTeam",(function(){return ae})),n.d(ze,"wrapTeamCollection",(function(){return St}));var De={};n.r(De),n.d(De,"wrapTeamMembership",(function(){return ce})),n.d(De,"wrapTeamMembershipCollection",(function(){return Tt}));var Ie=n(0),Be=n.n(Ie),We=n(37),He=n.n(We),Ve=n(2),$e=n.n(Ve),Ke=n(8),Xe={},Ge=0,Qe=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;const Je=e=>(t,n)=>{const r=m(Be()(n));return r.items=r.items.map(n=>e(t,n)),r},Ye="app_definitions",Ze=Je(E),et=Je(U),tt=Je(q),nt=Je(N),rt=Je(z),ot=3e3,st=10,it=Je(D),at=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}.`))},ct=Je(B),ut=Je(W),pt="webhook_definitions",lt=Je(H),ft=Je(V),dt=Je($),ht=Je(K),mt=Je(X),yt=Je(Q),gt=Je(J),vt=Je(Y);var bt=n(14),wt=n.n(bt);const Ct=Je(ee),xt=Je(te),Ot=Je(ne),_t=Je(re),jt=Je(oe),Pt=Je(se),Et=Je(ie),At="teams",St=Je(ae),Tt=Je(ce);var kt={appDefinition:de,space:he,environment:me,entry:ge,asset:ve,contentType:we,editorInterface:be,locale:Ce,webhook:xe,spaceMember:Oe,spaceMembership:_e,teamSpaceMembership:je,organizationMembership:Pe,organizationInvitation:Ee,role:Ae,apiKey:Se,previewApiKey:Te,upload:ke,organization:Re,uiExtension:Ue,appInstallation:Me,snapshot:ye,user:Le,personalAccessToken:Fe,usage:qe,environmentAlias:Ne,team:ze,teamMembership:De},Rt=n(38),Ut=n.n(Rt)}]);
\No newline at end of file