!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.contentful=t():e.contentful=t()}(window,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=34)}([function(e,t,r){var n=r(51);e.exports=function(e){return n(e,5)}},function(e,t,r){"use strict";function n(e){return"[object Array]"===c.call(e)}function o(e){return null!==e&&"object"==typeof e}function i(e){return"[object Function]"===c.call(e)}function a(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),n(e))for(var r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var s=r(11),u=r(36),c=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:function(e){return"[object ArrayBuffer]"===c.call(e)},isBuffer:u,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:o,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===c.call(e)},isFile:function(e){return"[object File]"===c.call(e)},isBlob:function(e){return"[object Blob]"===c.call(e)},isFunction:i,isStream:function(e){return o(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,n){r[n]="object"==typeof r[n]&&"object"==typeof t?e(r[n],t):t}for(var r={},n=0,o=arguments.length;n<o;n++)a(arguments[n],t);return r},deepMerge:function e(){function t(t,n){r[n]="object"==typeof r[n]&&"object"==typeof t?e(r[n],t):"object"==typeof t?e({},t):t}for(var r={},n=0,o=arguments.length;n<o;n++)a(arguments[n],t);return r},extend:function(e,t,r){return a(t,function(t,n){e[n]=r&&"function"==typeof t?s(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,r){"use strict";(function(e){function n(){return void 0!==e&&!e.browser}function o(){return e.versions.node?"v".concat(e.versions.node):e.version}r.d(t,"b",function(){return n}),r.d(t,"a",function(){return o})}).call(this,r(15))},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(53),i=r(54),a=r(55),s=r(56),u=r(57);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=s,n.prototype.set=u,e.exports=n},function(e,t,r){var n=r(20);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(8)(Object,"create");e.exports=n},function(e,t,r){var n=r(74);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t,r){var n=r(23),o=r(24);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,u=t.length;++s<u;){var c=t[s],f=i?i(r[c],e[c],c,r,e):void 0;void 0===f&&(f=e[c]),a?o(r,c,f):n(r,c,f)}return r}},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},function(){},function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";function n(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=r(1);e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];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)),a.push(n(t)+"="+n(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";(function(t){function n(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=r(1),i=r(41),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?e=r(16):"undefined"!=typeof XMLHttpRequest&&(e=r(16)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(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)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(n(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){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(a)}),e.exports=s}).call(this,r(15))},function(e){function t(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(u===setTimeout)return setTimeout(e,0);if((u===t||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(){d&&l&&(d=!1,l.length?p=l.concat(p):h=-1,p.length&&i())}function i(){if(!d){var e=n(o);d=!0;for(var t=p.length;t;){for(l=p,p=[];++h<t;)l&&l[h].run();h=-1,t=p.length}l=null,d=!1,function(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}(e)}}function a(e,t){this.fun=e,this.array=t}function s(){}var u,c,f=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:t}catch(e){u=t}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(e){c=r}}();var l,p=[],d=!1,h=-1;f.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new a(e,t)),1!==p.length||d||n(i)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(){return[]},f.binding=function(){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(1),o=r(42),i=r(12),a=r(44),s=r(45),u=r(17);e.exports=function(e){return new Promise(function(t,c){var f=e.data,l=e.headers;n.isFormData(f)&&delete l["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+h)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,c,n),p=null}},p.onabort=function(){p&&(c(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var y=r(46),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;v&&(l[e.xsrfHeaderName]=v)}if("setRequestHeader"in p&&n.forEach(l,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),c(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,r){"use strict";var n=r(43);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(r[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(o){n.isObject(t[o])?r[o]=n.deepMerge(e[o],t[o]):void 0===t[o]?n.isObject(e[o])?r[o]=n.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o]):r[o]=t[o]}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0===t[n]?void 0!==e[n]&&(r[n]=e[n]):r[n]=t[n]}),r}},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){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(8)(r(22),"Map");e.exports=n},function(e,t,r){var n=r(63),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){var n=r(24),o=r(20),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(79);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t,r){var n=r(9)(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(9)(Object.getPrototypeOf,Object);e.exports=n},function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),n=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:n,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:u}),r.push(c))}return function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(Array.isArray(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(e,t,n){if(0===e.length)return e;var o="string"==typeof e?e:e+"";if("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 i,a="",s=0;s<o.length;++s)45===(i=o.charCodeAt(s))||46===i||95===i||126===i||48<=i&&57>=i||65<=i&&90>=i||97<=i&&122>=i?a+=o.charAt(s):128>i?a+=r[i]:2048>i?a+=r[192|i>>6]+r[128|63&i]:55296>i||57344<=i?a+=r[224|i>>12]+r[128|63&i>>6]+r[128|63&i]:(s+=1,i=65536+((1023&i)<<10|1023&o.charCodeAt(s)),a+=r[240|i>>18]+r[128|63&i>>12]+r[128|63&i>>6]+r[128|63&i]);return a},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(r,o,i){if(!o)return r;if("object"!=typeof o){if(Array.isArray(r))r.push(o);else{if("object"!=typeof r)return[r,o];(i&&(i.plainObjects||i.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if("object"!=typeof r)return[r].concat(o);var a=r;return Array.isArray(r)&&!Array.isArray(o)&&(a=n(r,i)),Array.isArray(r)&&Array.isArray(o)?(o.forEach(function(n,o){t.call(r,o)?r[o]&&"object"==typeof r[o]?r[o]=e(r[o],n,i):r.push(n):r[o]=n}),r):Object.keys(o).reduce(function(r,n){var a=o[n];return r[n]=t.call(r,n)?e(r[n],a,i):a,r},a)}}},function(e){"use strict";var t=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){e.exports=r(35)},function(e,t,r){"use strict";var n=r(102),o=r(103),i=r(29);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){var n=r(104),o=r(27),i=r(105),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==f}},function(e,t){function r(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(o,i){if(0<r.length){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return null==e?i:e.call(this,o,i)}}(e.exports=function(e,t,n,o){return JSON.stringify(e,r(t,o),n)}).getSerialize=r},function(e,t,r){e.exports=r(106)},function(e,t,r){"use strict";function n(e){var t=new a(e),r=i(a.prototype.request,t);return o.extend(r,a.prototype,t),o.extend(r,t),r}var o=r(1),i=r(11),a=r(37),s=r(18),u=n(r(14));u.Axios=a,u.create=function(e){return n(s(u.defaults,e))},u.Cancel=r(19),u.CancelToken=r(49),u.isCancel=r(13),u.all=function(e){return Promise.all(e)},u.spread=r(50),e.exports=u,e.exports.default=u},function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";function n(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var o=r(1),i=r(12),a=r(38),s=r(39),u=r(18);n.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=u(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[s,void 0],r=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;)r=r.then(t.shift(),t.shift());return r},n.prototype.getUri=function(e){return e=u(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(e){n.prototype[e]=function(t,r){return this.request(o.merge(r||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){n.prototype[e]=function(t,r,n){return this.request(o.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=n},function(e,t,r){"use strict";function n(){this.handlers=[]}var o=r(1);n.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},function(e,t,r){"use strict";function n(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=r(1),i=r(40),a=r(13),s=r(14),u=r(47),c=r(48);e.exports=function(e){return n(e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(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||s.adapter)(e).then(function(t){return n(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(n(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(17);e.exports=function(e,t,r){var o=r.config.validateStatus;!o||o(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,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,r){"use strict";var n=r(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,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&0<=o.indexOf(t))return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(1);e.exports=n.isStandardBrowserEnv()?function(){function e(e){var t=e;return r&&(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,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(r){var o=n.isString(r)?e(r):r;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(1);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new o(e),t(r.reason))})}var o=r(19);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){var n=r(52),o=r(78),i=r(23),a=r(80),s=r(81),u=r(83),c=r(85),f=r(86),l=r(88),p=r(90),d=r(91),h=r(92),y=r(93),v=r(94),m=r(95),g=r(98),b=r(99),x=r(100),w=r(26),j=r(101),O=r(25),_=1,A=2,E=4,P="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",k="[object Object]",L={};L[P]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[k]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[T]=L["[object WeakMap]"]=!1,e.exports=function e(t,r,C,U,R,N){var B,z=r&_,D=r&A;if(C&&(B=R?C(t,U,R,N):C(t)),void 0!==B)return B;if(!w(t))return t;var q=g(t);if(q){if(B=y(t),!z)return c(t,B)}else{var F=h(t),H=F==T||F==S;if(b(t))return u(t,z);if(F==k||F==P||H&&!R){if(B=D||H?{}:m(t),!z)return D?l(t,s(B,t)):f(t,a(B,t))}else{if(!L[F])return R?t:{};B=v(t,F,z)}}N||(N=new n);var M=N.get(t);if(M)return M;if(N.set(t,B),j(t))return t.forEach(function(n){B.add(e(n,r,C,n,t,N))}),B;if(x(t))return t.forEach(function(n,o){B.set(o,e(n,r,C,o,t,N))}),B;var I=r&E?D?d:p:D?keysIn:O,W=q?void 0:I(t);return o(W||t,function(n,o){W&&(n=t[o=n]),i(B,o,e(n,r,C,o,t,N))}),B}},function(e,t,r){function n(e){var t=this.__data__=new o(e);this.size=t.size}var o=r(3),i=r(58),a=r(59),s=r(60),u=r(61),c=r(62);n.prototype.clear=i,n.prototype.delete=a,n.prototype.get=s,n.prototype.has=u,n.prototype.set=c,e.exports=n},function(e){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(4),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(0>r)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(4);e.exports=function(e){var t=this.__data__,r=n(t,e);return 0>r?void 0:t[r][1]}},function(e,t,r){var n=r(4);e.exports=function(e){return-1<n(this.__data__,e)}},function(e,t,r){var n=r(4);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return 0>o?(++this.size,r.push([e,t])):r[o][1]=t,this}},function(e,t,r){var n=r(3);e.exports=function(){this.__data__=new n,this.size=0}},function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},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,r){var n=r(3),o=r(21),i=r(65);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(64))},function(e){var t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(66),i=r(73),a=r(75),s=r(76),u=r(77);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=s,n.prototype.set=u,e.exports=n},function(e,t,r){var n=r(67),o=r(3),i=r(21);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(e,t,r){function n(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var o=r(68),i=r(69),a=r(70),s=r(71),u=r(72);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=s,n.prototype.set=u,e.exports=n},function(e,t,r){var n=r(5);e.exports=function(){this.__data__=n?n(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,r){var n=r(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},function(e,t,r){var n=r(5);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(6);e.exports=function(e){var t=n(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,r){var n=r(6);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(6);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(6);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(8),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,r){var n=r(7),o=r(25);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e,t,r){var n=r(7),o=r(82);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){(function(e){var n=r(22),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(84)(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 r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){var n=r(7),o=r(87);e.exports=function(e,t){return n(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,r){var n=r(7),o=r(89);e.exports=function(e,t){return n(e,o(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,r){var n=r(9)(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);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 r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e){e.exports=function(e){return e}},function(e,t,r){var n=r(96),o=r(27),i=r(97);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},function(e,t,r){var n=r(26),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},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,r){"use strict";var n=r(28),o=r(29),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,o,i,a,s,c,l,p,d,h,y,v){var m=t;if("function"==typeof c?m=c(r,m):m instanceof Date&&(m=d(m)),null===m){if(i)return s&&!y?s(r,f.encoder,v):r;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||n.isBuffer(m))return s?[h(y?r:s(r,f.encoder,v))+"="+h(s(m,f.encoder,v))]:[h(r)+"="+h(m+"")];var g,b=[];if(void 0===m)return b;if(Array.isArray(c))g=c;else{var x=Object.keys(m);g=l?x.sort(l):x}for(var w,j=0;j<g.length;++j)w=g[j],(!a||null!==m[w])&&(Array.isArray(m)?u(b,e(m[w],o(r,w),o,i,a,s,c,l,p,d,h,y,v)):u(b,e(m[w],r+(p?"."+w:"["+w+"]"),o,i,a,s,c,l,p,d,h,y,v)));return b};e.exports=function(e,t){var r=e,a=t?n.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var s=void 0===a.delimiter?f.delimiter:a.delimiter,c="boolean"==typeof a.strictNullHandling?a.strictNullHandling:f.strictNullHandling,p="boolean"==typeof a.skipNulls?a.skipNulls:f.skipNulls,d="boolean"==typeof a.encode?a.encode:f.encode,h="function"==typeof a.encoder?a.encoder:f.encoder,y="function"==typeof a.sort?a.sort:null,v=void 0===a.allowDots?f.allowDots:!!a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:f.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:f.encodeValuesOnly,b=a.charset||f.charset;if(void 0!==a.charset&&"utf-8"!==a.charset&&"iso-8859-1"!==a.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var x,w,j=o.formatters[a.format];"function"==typeof a.filter?r=(w=a.filter)("",r):Array.isArray(a.filter)&&(x=w=a.filter);var O=[];if("object"!=typeof r||null===r)return"";var _=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices",A=i[_];x||(x=Object.keys(r)),y&&x.sort(y);for(var E,P=0;P<x.length;++P)E=x[P],(!p||null!==r[E])&&u(O,l(r[E],E,A,c,p,d?h:null,w,y,v,m,j,g,b));var T=O.join(s),S=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&(S+="iso-8859-1"===b?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),0<T.length?S+T:""}},function(e,t,r){"use strict";var n=r(28),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:n.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))})},s=function(e,t){var r,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,c),l=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?p="utf-8":"utf8=%26%2310003%3B"===f[r]&&(p="iso-8859-1"),l=r,r=f.length);for(r=0;r<f.length;++r)if(r!==l){var d,h,y=f[r],v=y.indexOf("]="),m=-1===v?y.indexOf("="):v+1;-1===m?(d=t.decoder(y,i.decoder,p),h=t.strictNullHandling?null:""):(d=t.decoder(y.slice(0,m),i.decoder,p),h=t.decoder(y.slice(m+1),i.decoder,p)),h&&t.interpretNumericEntities&&"iso-8859-1"===p&&(h=a(h)),s[d]=o.call(s,d)?n.combine(s[d],h):h}return s},u=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,u=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}for(var c=0;null!==(a=i.exec(n))&&c<r.depth;){if(c+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+n.slice(a.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;0<=o;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);r.parseArrays||""!==s?!isNaN(u)&&a!==s&&u+""===s&&0<=u&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[s]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots=void 0===r.allowDots?i.allowDots:!!r.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,void 0!==r.charset&&"utf-8"!==r.charset&&"iso-8859-1"!==r.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===r.charset&&(r.charset=i.charset),""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?s(e,r):e,a=r.plainObjects?Object.create(null):{},c=Object.keys(o),f=0;f<c.length;++f){var l=c[f],p=u(l,o[l],r);a=n.merge(a,p,r)}return n.compact(a)}},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,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){for(var t=1;t<arguments.length;t++){var r=null==arguments[t]?{}:arguments[t],n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=o({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var r=[t.name,t.message].filter(function(e){return e}).join(" - ");return console.error("[error] ".concat(r)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1},t);if(!r.accessToken){var i=new TypeError("Expected parameter accessToken");throw r.logHandler("error",i),i}var s=r.insecure?"http":"https",u=r.space?"".concat(r.space,"/"):"",c=r.defaultHostname,f=r.insecure?80:443;if(M.test(r.host)){var l=r.host.split(":");if(2===l.length){var p=n(l,2);c=p[0],f=p[1]}else c=l[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(s,"://").concat(c,":").concat(f).concat(r.basePath,"/spaces/").concat(u);r.headers.Authorization||(r.headers.Authorization="Bearer "+r.accessToken),Object(H.b)()&&(r.headers["user-agent"]="node.js/"+Object(H.a)(),r.headers["Accept-Encoding"]="gzip");var h={baseURL:d,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:z.a.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},y=e.create(h);return y.httpClientParams=t,y.cloneWithNewParams=function(r){return a(e,o({},N()(t),r))},function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5;q.set(e,t);var n=q.get(e),o=n.responseLogger,i=void 0===o?function(){}:o,a=n.requestLogger,s=void 0===a?function(){}:a;e.interceptors.request.use(function(e){return s(e),e},function(e){return Promise.reject(e)}),e.interceptors.response.use(function(e){return i(e),e},function(t){var o=Math.pow,i=t.response,a=t.config;if(!a||!n.retryOnError)return Promise.reject(t);var s=null,u=0;if(i)F=0;else{if(s="Connection",++F>r)return t.attempts=F,Promise.reject(t);u=o(Math.SQRT2,F),i={}}if(500<=i.status&&600>i.status){s="Server ".concat(i.status);var c=(i.headers||{})["x-contentful-request-id"]||null;if(D[c]=D[c]||0,D[c]++,D[c]>r||!c)return t.attempts=D[c],Promise.reject(t);u=o(Math.SQRT2,D[c])}else 429===i.status&&(s="Rate limit",i.headers&&t.response.headers["x-contentful-ratelimit-reset"]&&(u=i.headers["x-contentful-ratelimit-reset"]));return s?(u=Math.floor(1e3*u+200*Math.random()+500),n.logHandler("warning","".concat(s," error occurred. Waiting for ").concat(u," ms before retrying...")),function(e){return new Promise(function(t){setTimeout(t,e)})}(u).then(function(){return e(a)})):Promise.reject(t)})}(y,h),y}function s(e){var t=e.query,r={};return delete t.resolveLinks,r.params=N()(t),r}function u(e){return function e(t){return Object.keys(t).forEach(function(r){var n=t[r];W()(n)&&e(n)}),Object.freeze(t)}(e.sys||{}),e}function c(){if(!window)return null;var e=window.navigator.userAgent,t=window.navigator.platform,r=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)?r="Android":/Linux/.test(t)&&(r="Linux"):r="Windows":r="iOS":r="macOS",r}function f(e,t,r,n){var o=[];t&&o.push("app ".concat(t)),r&&o.push("integration ".concat(r)),n&&o.push("feature "+n),o.push("sdk ".concat(e));var i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=c(),o.push("platform ReactNative")):Object(H.b)()?(i=function(){var e=Object(V.platform)()||"linux",t=Object(V.release)()||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}(),o.push("platform node.js/".concat(Object(H.a)()))):(i=c(),o.push("platform browser"))}catch(t){i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(e){return""!==e}).join("; "),";")}function l(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return N()(this)}})}function p(e){return u(l(e))}function d(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return X()(this,e,t,function(e,t){return{sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}}})}})}function h(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function y(e){return u(l(N()(e)))}function v(e,t){var r=t.resolveLinks,n=t.removeUnresolved,o=d(l(N()(e)));return r&&(o.items=Z(o,{removeUnresolved:n,itemEntryPoints:["fields"]})),u(o)}function m(e){return u(l(N()(e)))}function g(e){return u(l(N()(e)))}function b(e){return u(l(N()(e)))}function x(e){return u(l(N()(e)))}function w(e){return u(l(N()(e)))}function j(e){return u(l(N()(e)))}function O(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t&&t.content_type&&!t.type)t.type="Entry";else if(t&&t.content_type&&t.type&&"Entry"!==t.type)throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");var n=te({},{resolveLinks:!0,removeUnresolved:!1,paginate:!0},r),o=n.resolveLinks,i=n.removeUnresolved;return function e(t,r,n,o){var i=o.paginate;return n.nextSyncToken&&(n.sync_token=n.nextSyncToken,delete n.nextSyncToken),n.nextPageToken&&(n.sync_token=n.nextPageToken,delete n.nextPageToken),n.sync_token&&(delete n.initial,delete n.type,delete n.content_type),t.get("sync",s({query:n})).then(function(o){var a=o.data;return r=r.concat(a.items),a.nextPageUrl?i?(delete n.initial,n.sync_token=_(a.nextPageUrl),e(t,r,n,{paginate:i})):{items:r,nextPageToken:_(a.nextPageUrl)}:a.nextSyncUrl?{items:r,nextSyncToken:_(a.nextSyncUrl)}:void 0})}(e,[],t,{paginate:n.paginate}).then(function(e){o&&(e.items=Z(e,{removeUnresolved:i,itemEntryPoints:["fields"]}));var t=function(e){var t=function(e){return function(t,r){return r.sys.type===e&&t.push(l(r)),t}};return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}(e.items);return e.nextSyncToken&&(t.nextSyncToken=e.nextSyncToken),e.nextPageToken&&(t.nextPageToken=e.nextPageToken),u(d(l(t)))},function(e){throw e})}function _(e){var t=e.split("?");return 0<t.length?t[1].replace("sync_token=",""):""}function A(e){function t(e){if(e.data)throw e.data;throw e}function r(e){e.select&&!/sys/i.test(e.select)&&(e.select+=",sys")}function n(e){e.defaults.baseURL=i().environmentBaseUrl}var o=e.http,i=e.getGlobalOptions,a=ee.space.wrapSpace,u=ee.contentType,c=u.wrapContentType,f=u.wrapContentTypeCollection,l=ee.entry,p=l.wrapEntry,d=l.wrapEntryCollection,h=ee.asset,y=h.wrapAsset,v=h.wrapAssetCollection,m=ee.locale.wrapLocaleCollection;return{getSpace:function(){return o.defaults.baseURL=i().spaceBaseUrl,o.get("").then(function(e){return a(e.data)},t)},getContentType:function(e){return n(o),o.get("content_types/"+e).then(function(e){return c(e.data)},t)},getContentTypes:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(o),o.get("content_types",s({query:e})).then(function(e){return f(e.data)},t)},getEntry:function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.getEntries(re({"sys.id":e},r)).then(function(t){if(0<t.items.length)return p(t.items[0]);throw function(e){var t=new Error("The resource could not be found.");return t.sys={type:"Error",id:"NotFound"},t.details={type:"Entry",id:e,environment:i().environment,space:i().space},t}(e)},t)},getEntries:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};n(o);var a=i(e),u=a.resolveLinks,c=a.removeUnresolved;return r(e),o.get("entries",s({query:e})).then(function(e){return d(e.data,{resolveLinks:u,removeUnresolved:c})},t)},getAsset:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n(o),r(i),o.get("assets/"+e,s({query:i})).then(function(e){return y(e.data)},t)},getAssets:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(o),r(e),o.get("assets",s({query:e})).then(function(e){return v(e.data)},t)},getLocales:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(o),o.get("locales",s({query:e})).then(function(e){return m(e.data)},t)},parseEntries:function(e){var t=i({}),r=t.resolveLinks,n=t.removeUnresolved;return d(e,{resolveLinks:r,removeUnresolved:n})},sync:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{paginate:!0},r=i(e),a=r.resolveLinks,s=r.removeUnresolved;return n(o),O(o,e,re({resolveLinks:a,removeUnresolved:s},t))}}}function E(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");var t=ne({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"},e),r=f("contentful.js/0.0.0-determined-by-semantic-release",t.application,t.integration);t.headers=ne({},t.headers,{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});var n=a(U.a,t),o=function(e){return function(t){return Object.assign({},e,t)}}({resolveLinks:t.resolveLinks,environment:t.environment,removeUnresolved:t.removeUnresolved,spaceBaseUrl:n.defaults.baseURL,environmentBaseUrl:n.defaults.baseURL+"environments/"+t.environment});return n.defaults.baseURL=o().environmentBaseUrl,A({http:n,getGlobalOptions:o})}r.r(t);var P={};r.r(P),r.d(P,"wrapSpace",function(){return p});var T={};r.r(T),r.d(T,"wrapEntry",function(){return y}),r.d(T,"wrapEntryCollection",function(){return v});var S={};r.r(S),r.d(S,"wrapAsset",function(){return m}),r.d(S,"wrapAssetCollection",function(){return g});var k={};r.r(k),r.d(k,"wrapContentType",function(){return b}),r.d(k,"wrapContentTypeCollection",function(){return x});var L={};r.r(L),r.d(L,"wrapLocale",function(){return w}),r.d(L,"wrapLocaleCollection",function(){return j});var C=r(30),U=r.n(C),R=r(0),N=r.n(R),B=r(31),z=r.n(B),D={},q=new Map,F=0,H=r(2),M=/^(?!\w+:\/\/)([^\s:]+\.[^\s:]+)(?::(\d+))?(?!:)$/,I=r(32),W=r.n(I),V=r(10),Q=r(33),X=r.n(Q),$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J={},G=function(e){return e&&e.sys&&"Link"===e.sys.type},K=function(e,t){var r=t.sys,n=r.linkType,o=r.id;return function(e,t){for(var r=0,n=e.length;r<n;r++)if(t(e[r]))return e[r];return J}(e,function(e){var t=e.sys;return t.type===n&&t.id===o})},Y=function e(t,r,n,o){if(r(t))return n(t);if(t&&"object"===(void 0===t?"undefined":$(t))){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=function(e){if(Array.isArray(e))return e.filter(function(e){return e!==J});for(var t in e)e[t]===J&&delete e[t];return e}(t))}return t},Z=function(e,t){if(t=t||{},!e.items)return[];var r=N()(e),n=Object.keys(r.includes||{}).reduce(function(t,r){return[].concat(h(t),h(e.includes[r]))},[]),o=[].concat(h(r.items),h(n));return o.forEach(function(e){var r=function(e,t){return Array.isArray(t)?Object.keys(e).filter(function(e){return-1!==t.indexOf(e)}).reduce(function(t,r){return t[r]=e[r],t},{}):e}(e,t.itemEntryPoints);Object.assign(e,Y(r,G,function(e){return function(e,t,r){var n=K(e,t);return n===J?r?n:t:n}(o,e,t.removeUnresolved)},t.removeUnresolved))}),r.items},ee={space:P,entry:T,asset:S,contentType:k,locale:L},te=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},re=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};r.d(t,"createClient",function(){return E});var ne=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}])});