1!function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],p=0,f=[];p<s.length;p++)a=s[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(l&&l(e);f.length;)f.shift()();return i.push.apply(i,u||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],r=!0,s=1;s<n.length;s++){var c=n[s];0!==o[c]&&(r=!1)}r&&(i.splice(e--,1),t=a(a.s=n[0]))}return t}var r={},o={0:0},i=[];function a(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=t,a.c=r,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="";var s=window.webpackJsonp=window.webpackJsonp||[],c=s.push.bind(s);s.push=e,s=s.slice();for(var u=0;u<s.length;u++)e(s[u]);var l=c;i.push([180,1]),n()}({1:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(11),i=/^[^#.]+/,a=/([#.][^#.]+)/g;function s(t){return"string"==typeof t}t.exports=function(t,e,n){var c="object"===r(e)&&!Array.isArray(e);n||c||(n=e,e=void 0);if(n&&!Array.isArray(n))throw new Error("Element children have to be an array or undefined.");e=e||{};var u=function(t){if(!s(t))return{tagOrComponent:t,id:null,classes:[]};var e=(t=t.trim()).match(i),n=t.match(a)||[],r={tagOrComponent:"div",id:null,classes:[]};Array.isArray(e)&&e[0]&&(r.tagOrComponent=e[0]);return n.reduce((function(t,e){return"#"===e.charAt(0)?t.id=e.trim().substr(1):"."===e.charAt(0)&&t.classes.push(e.trim().substr(1)),t}),r)}(t),l=u.tagOrComponent,p=u.id,f=u.classes;p&&(e.id=p);if(f.length>0){var d,h=[e.class,e.className,f];e.className=(d=[]).concat.apply(d,h).filter(s).join(" ")}var g=[l,e].concat(n);return o.createElement.apply(o,g)}},114:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(151).withConverter({write:encodeURIComponent,read:decodeURIComponent}),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return Math.floor(t.getTime()/1e3)};function s(){var t=i.get("ajs_user_id");try{var e=JSON.parse(t);return"string"==typeof e&&e.length>6?e:null}catch(t){return null}}function c(t,e,n){i.get(t)||i.set(t,e,{expires:n,secure:l()})}function u(t){return(window.location.search.slice(1).split("&")||[]).reduce((function(e,n){if(e)return e;var o=r(n.split("="),2),i=o[0],a=o[1];return i===t?a:null}),null)}function l(){return"https:"===window.location.protocol}t.exports={init:function(){var t=function(){var t={referer:(n=[window.location,document.referrer],r=n[0],o=n[1],i="".concat(r.protocol,"//").concat(r.host),a=!o.startsWith(i)&&o.length>5,a?o:null),url:document.location.href,time:new Date},e=u("utm_campaign");var n,r,o,i,a;e&&(t.campaign_name=e,t.campaign_medium=u("utm_medium"),t.campaign_source=u("utm_source"),t.campaign_content=u("utm_content"),t.campaign_term=u("utm_term"));return t}();c("cf_first_visit",t,3650),c("cf_last_visit",t),window._simulateUserIdCookie=function(t){t=void 0===t?"46JHc8ru6cDDm0CtthS0Kw":t,t=JSON.stringify(t),i.set("ajs_user_id",t,{expires:3650,secure:l()})}},getUserId:s,getUserIdWithUrlFallback:function(){var t=s();if(null===t){var e=u("message");if(null!==e&&e.match(/^\w{22}$/))return e}return t},getFirstVisitTimestamp:function(){try{var t=i.get("cf_first_visit"),e=JSON.parse(t).time,n=a(new Date(e));return 10==="".concat(n).length?n:a()}catch(t){return a()}}}},117:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(1),a=n(12),s=n(62).isIndex,c=n(51);function u(t){if(t[0].subCategory){var e=t.reduce((function(t,e){var n=e.subCategory;if(!n)throw new Error("Expected propery subCategory for ".concat(e.path));return t[n]?t[n].push(e):t[n]=[e],t}),{});return Object.keys(e).map((function(t){return i("ul",[i("h4",{style:{"margin-bottom":"8px","margin-top":"8px","font-weight":"600","margin-left":"-20px"}},[t]),i("li",[[e[t].map((function(t){return i(a,{to:t.path},[t.title])}))]])])}))}return i("ul",t.map((function(t){return i("li",[i(a,{to:t.path},[t.title])])})))}t.exports=function(t){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"index";if("current"===e)return t[t.length-1];if("parent"===e)return t[t.length-2];if("index"===e)return r(t).reverse().find((function(t){return s(t.type)}));throw new Error("Could not find a root for the ToC")}(t.breadcrumbs,t.rootForToC),n=(e&&e.children||[]).filter(c.contentVisible);return n.length<1?null:i("ul",[i("li",[i(a,{to:e.path},[i("strong",[e.title])]),u(n)])])}},118:function(t,e,n){"use strict";var r=n(5),o=n(14),i=n(1),a=n(415),s=n(164),c=n(165),u=r({displayName:"HighlightedCodeBlock",componentDidMount:function(){this.onUpdate()},componentDidUpdate:function(){this.onUpdate()},onUpdate:function(){if(this.code){s.highlightBlock(this.code);var t=this.props,e=t.copyable,n=t.onCopy;e&&c(this.code,n)}},shouldComponentUpdate:function(t){return t.children!==this.props.children||t.lang!==this.props.lang||t.copyable!==this.props.copyable},render:function(){var t=this,e=this.props,n=e.lang,r=e.children;return i("pre",[i("code.".concat(n),{ref:function(e){return t.code=e}},[r])])}});u.propTypes={lang:o.oneOf(s.listLanguages()).isRequired,copyable:o.bool,onCopy:o.func,children:o.string.isRequired},u.defaultProps={copyable:!1};var l=r({displayName:"HighlightedJSON",shouldComponentUpdate:function(t){return t.json!==this.props.json},render:function(){return i(u,{lang:"json"},[a(this.props.json,2)])}});l.propTypes={json:o.oneOfType([o.array,o.object,o.string]).isRequired},t.exports={HighlightedJSON:l,HighlightedCodeBlock:u}},119:function(t,e,n){"use strict";var r=n(425);t.exports=function(t){return r(t,{remove:/[^\w\s$_+~.()!\-:@]/g,lower:!0})}},12:function(t,e,n){"use strict";var r=n(110).NavLink,o=n(52).withNavigationContext,i=n(1);function a(t){var e=t.to,n=t.className,o=t.children,a=t.navigationContext,s=t.activeForChildren;return a.isPathInternal(e)?i(r,{to:e,className:n,activeClassName:"-active",exact:!0!==s,onMouseOver:function(){return a.prefetch(e)}},[o]):i("a",{href:e,className:n},[o])}t.exports=o(a),t.exports.unwrapped=a},150:function(t,e,n){"use strict";var r=function(t){return"".concat("doc-app",".").concat(t)};function o(){try{var t="tmp";return window.localStorage.setItem(r(t),t),window.localStorage.removeItem(r(t)),!0}catch(t){return!1}}t.exports={get:function(t){if(o())return window.localStorage.getItem(r(t))},set:function(t,e){if(o())return window.localStorage.setItem(r(t),e)},remove:function(t){if(o())return window.localStorage.removeItem(r(t))}}},152:function(t,e,n){"use strict";
1t.exports={getDisplayName:function(t){return t.displayName||t.name||"Component"}}},153:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(11).Fragment,a=n(5),s=n(360),c=n(1),u=n(42),l=n(52).withNavigationContext,p=n(380),f=n(77),d=function(t){return t.length>=3},h=s("VPI6YY251B","d0f035a0e3f578310cf26f3ba0ab29c0"),g=a({displayName:"Search",getInitialState:function(){return{input:"",cursor:-1,results:[{hits:[]}]}},handleKeyDown:function(t){var e=this.state,n=e.cursor,o=r(e.results,1)[0].hits;if(27===t.keyCode)this.close();else if(13===t.keyCode&&n>=0){var i=o[n];this.onResultClick(i),this.props.navigationContext.navigate(i.url)}else 38===t.keyCode&&n>0?this.setState((function(t){return{cursor:t.cursor-1}})):40===t.keyCode&&n<o.length-1&&this.setState((function(t){return{cursor:t.cursor+1}}))},componentDidMount:function(){this.input&&this.input.focus()},render:function(){return c(i,[this.overlay(),this.searchBox()])},overlay:function(){return!this.isSelfContained()||this.state.results[0].hits.length>0?c(".search-overlay",{className:this.props.modifier,onClick:this.close}):null},isSelfContained:function(){return"function"!=typeof this.props.onClose},searchBox:function(){var t=this,e=this.state,n=e.input,r=e.results,o=e.cursor;return c(".search-box",{className:this.props.modifier},[c("input",{ref:function(e){return t.input=e},type:"text",placeholder:"Type to search",maxLength:30,value:n,onChange:function(e){return t.onInput(e.target.value)},onKeyDown:this.handleKeyDown}),c(f,{className:"search-icon",name:"search",size:20}),c("button.close-btn",{onClick:this.close},["Ã"]),c(p,{input:n,inputLongEnough:d(n),results:r,cursor:o,onResultClick:this.onResultClick})])},onInput:function(t){this.clearTimeout(),this.setState({input:t},this.performSearch)},performSearch:function(){var t=this,e=this.state.input;if(!e.trim())return this.setState(this.getInitialState());h.search(function(t){return[{indexName:"contentful-staging",query:t,params:{filters:"categoryTag:Docs",highlightPreTag:'<strong class="search-highlight">',highlightPostTag:"</strong>",hitsPerPage:10,analyticsTags:["doc-app","doc-app-docs"]}},{indexName:"help-center",query:t,params:{highlightPreTag:'<strong class="search-highlight">',highlightPostTag:"</strong>",attributesToSnippet:["content:30"],snippetEllipsisText:"â¦",hitsPerPage:10,analyticsTags:["doc-app","doc-app-help-center"]}}]}(e),(function(e,n){var o=r(n.results,2),i=o[0].hits,a=o[1].hits,s=i.concat(a.map(m));t.setState({results:[{hits:s}]},t.setupTimeout)}))},setupTimeout:function(){var t=this;d(this.state.input)&&(this.timeout=setTimeout((function(){t.track("result_render")}),1e3))},clearTimeout:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){this.timeout&&clearTimeout(this.timeout)})),onResultClick:function(t){this.track("result_click",{results_click_path:t.url,results_click_title:t.title,results_click_index:this.state.results.indexOf(t)}),this.cleanup()},close:function(){this.track("close"),this.cleanup()},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({context_path:this.isSelfContained()?"home":window.location.pathname,search_term:this.state.input,results_length:this.state.results[0].hits.length},e);u.searchAction(t,n)},cleanup:function(){this.clearTimeout(),this.setState({input:"",results:[{hits:[]}]}),this.isSelfContained()||this.props.onClose()}});function m(t){var e=function(t,e){return t+(e&&" - ".concat(e))};return{title:e(t.h1,t.h2),url:"https://www.contentful.com"+t.url,categoryTag:t._tags[0],_highlightResult:{title:{value:e(t._highlightResult.h1.value,t._highlightResult.h2.value)},teaser:t._snippetResult.content}}}t.exports=l(g)},159:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1),s=n(12),c=n(77);function u(t){var e=t.to,n=void 0===e?"/developers/docs/tutorials/general/get-started/":e,r=t.text;return a(s,{className:"btn",to:n},[void 0===r?"Get started":r])}t.exports=function(t){var e=t.currentRoute,n=(void 0===e?{}:e).cta||{};return a(".handy-links",[a("a",{className:"support-link",href:"/support/",target:"_blank",rel:"noopener"},[a(c,{name:"support"}),a("span",["Support"])]),a(u,o({},n))])}},161:function(t,e,n){"use strict";(function(e){var r=n(63).getJSON,o=n(21),i={},a={},s=function(){return"undefined"==typeof document},c=function(){return s()?a:window._DOC_APP_RESOURCES},u=function(){};function l(t){var e=c();if(e[t])return Promise.resolve(e[t]);var n=i[t];if(n)return n;var a=r(o.resource(t)).then((function(n){return e[t]=n,n}),(function(n){throw delete e[t],delete i[t],n}));return i[t]=a,a}function p(t){return s()||(window.location.href=window.location.href),Promise.reject(t)}t.exports={RESOURCES_GLOBAL_STORE:"_DOC_APP_RESOURCES",create:function(t){return{getKeys:function(){return t},load:function(){return s()?Promise.resolve(this.getPreloaded()):Promise.all(t.map((function(t){return l(t)}))).catch(p)},prefetch:function(){s()||t.map((function(t){return l(t).catch(u)}))},getPreloaded:function(){return s()?t.map((function(t){return function(t){var r=n(162),i=n(162),a=r.normalize(r.join(e,"../public",o.resource(t)));return JSON.parse(i.readFileSync(a,"utf8"))}(t)})):t.map((function(t){return c()[t]}))},isFullyPreloaded:function(){return this.getPreloaded().every((function(t){return t}))}}},fetch:l}}).call(this,"/")},164:function(t,e,n){"use strict";var r=n(387);r.registerLanguage("json",n(388)),r.registerLanguage("java",n(389)),r.registerLanguage("swift",n(390)),r.registerLanguage("javascript",n(391)),r.registerLanguage("php",n(392)),r.registerLanguage("ruby",n(393)),r.registerLanguage("python",n(394)),r.registerLanguage("cs",n(395)),r.registerLanguage("bash",n(396)),r.registerLanguage("xml",n(397)),r.registerLanguage("yaml",n(398)),r.registerLanguage("graphql",(function(t){return{aliases:["gql"],keywords:{keyword:"query mutation subscription|10 type interface union scalar fragment|10 enum on ... input",literal:"true false null"},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{className:"type",begin:"[^\\w][A-Z][a-z]",end:"\\W",excludeEnd:!0},{className:"attr",begin:/[_a-zA-Z][_a-zA-Z0-9]*\s*:/,excludeEnd:!0},{className:"variable",begin:"\\$",end:"\\W",excludeEnd:!0},{className:"keyword",begin:"[.]{2}",end:"\\."},{className:"meta",begin:"@",end:"\\W",excludeEnd:!0}],illegal:/([;<']|BEGIN)/}})),t.exports=r},165:function(t,e,n){"use strict";var r=n(166),o="Copy",i="Copied";t.exports=function(t,e){r.isSupported()&&function(t,e){var n=t.parentNode,a=document.createElement("div");a.className="copy-info",a.innerText=o,new r(a,{text:function(){return t.innerText}}),a.addEventListener("click",(function(){a.innerText=i,"function"==typeof e&&e()}),!1),n.addEventListener("mouseenter",(function(){n.insertBefore(a,t)}),!1),n.addEventListener("mouseleave",(function(){a.remove(),a.innerText=o}),!1)}(t,e)}},167:function(t,e,n){"use strict";t.exports=function(t,e){if(!e.to)return e;var n=t.find((function(t){return t.path===e.to}));if(n)return n;throw new Error("Invalid link: ".concat(e.to))}},168:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=function(t){return t.length>0?t:void 0};function a(t,e){return"string"==typeof t.desc?i(t.desc):"string"==typeof e?i(e.trim()):void 0}t.exports=function(t){var e=function(t){if("string"==typeof t){var e=t.match(/^## .+$/gm);return Array.isArray(e)?e:[]}return[]}(t),n=function(t){return e[t]&&e[t].replace(/^## */,"")},o=function(t,e){return e.reduce((function(t,n,o){var i=r(t.rest.split("".concat(n,"\n"),2),2),a=i[0],s=i[1];return o===e.length-1?{result:t.result.concat([a.trim(),s.trim()])}:{result:t.result.concat([a.trim()]),rest:s}}),{result:[],rest:t}).result}(t,e).map((function(t,e){return{desc:t,name:n(e-1)}}));return{desc:a(o.shift()||{},t),groups:o}}},169:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(1),a=/\{[a-z0-9_-]+\}/gi;function s(t,e){var n=r(t.rest.split(e,2),2),o=n[0],i=n[1];return{result:t.result.concat([o,{p:e,key:e.slice(1,e.length-1)}]),rest:i||""}}t.exports=function(t){var e=t.resource,n=t.action,r=t.contrast,o=t.values,c=function(t){var e=t.match(a);if(Array.isArray(e)&&e.length>0){var n={result:[],rest:t},r=e.reduce(s,n),o=r.result,i=r.rest;return o.concat([i])}return[t]}(e.uriTemplate.pathname);return i(".action-endpoint",{className:r?"-contrast":""},[i("span.method",[n.method]),i("code.uri",c.map((function(t){return function(t,e){return"string"==typeof t?t:i("span.placeholder",[e[t.key]||t.p])}(t,o||{})})))])}},170:function(t,e,n){"use strict";var r=n(5),o=n(171),i=n(1),a=n(30).ArticleMarkdown,s=n(84),c=n(63).getJSON,u=n(119),l=n(82).scrollToHash;t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ChangelogBase",n=t.spaceId,p=t.apiKey,f="&access_token=".concat(p),d="https://cdn.contentful.com/spaces/".concat(n,"/entries?include=0&"),h=t.apiCTs,g=t.changelogCT,m=function(t){return c(d+t+f)};return r({displayName:e,getInitialState:function(){return{selectValue:"",apis:null,changes:null}},componentDidMount:function(){var t=this;Promise.all([this.fetchApis(),this.fetchChanges()]).then((function(){return l(t.contentContainer,window.location.hash)}))},fetchApis:function(){var t=this;return m("sys.contentType.sys.id[in]=".concat(h.join(","))).then((function(e){return t.setState({apis:e&&e.items})}))},fetchChanges:function(){var t=this,e=this.state.selectValue,n="string"==typeof e&&e.length>0?e:null,r=n?"&fields.affected.sys.id=".concat(n):"";return m("limit=1000&order=-fields.deployedAt&content_type=".concat(g).concat(r)).then((function(e){return t.setState({changes:e&&e.items})}))},render:function(){var t=this;return this.state.apis&&this.state.changes?i(".changelog",[i(".content",{ref:function(e){t.contentContainer=e}},[i(".wrapper",[i("h1",["Changelog"]),i("p.subscribe-rss",[i("a",{href:"https://www.contentful.com/developers/changelog.rss",rel:"noopener noreferrer"},["Subscribe via RSS"])]),i("label.api-selector",["See changes in ",i("select",{value:this.state.selectValue,onChange:function(e){return t.setState({selectValue:e.target.value},t.fetchChanges)}},[i("option",{value:""},["All APIs and Platforms"])].concat(this.state.apis.map((function(t){return i("option",{value:t.sys.id},[t.fields.name])}))))]),this.state.changes.map((function(e){var n=e.sys,r=e.fields;return i("div",{key:n.id},[i("h2",{id:u(r.summary||"")},[i("a",{href:"#".concat(u(r.summary||""))},[r.summary])]),i(o,{affected:r.affected,apis:t.state.apis}),i("span",[i(s,{date:r.deployedAt})]),i(a,{md:r.changes})])}
1))])])]):i(".loader",["Loading..."])}})}},171:function(t,e,n){"use strict";var r=n(1);function o(t){var e=t.link,n=t.apis.find((function(t){return t.sys.id===e.sys.id})),o=n?n.fields.name:null;return o?r(".api-name",[o]):null}t.exports=function(t){var e=t.breakingChange,n=void 0!==e&&e,i=t.affected,a=void 0===i?[]:i,s=t.apis;return r(".affected-apis",[!n||r(".breaking-change",{key:"breaking-change"},["Breaking Change"]),a.map((function(t){return r(o,{link:t,apis:s,key:t.sys.id})}))])}},175:function(t,e,n){"use strict";var r=n(5),o=n(14),i=n(1),a=n(61),s=r({displayName:"WistiaVideoContainer",componentDidMount:function(){var t,e=this,n=this.props,r=n.wistiaId,o=n.onWistiaVideoHandle;a("//fast.wistia.com/embed/medias/".concat(r,".jsonp")),(t=r,new Promise((function(e){window._wq.push({id:t,onReady:function(t){return e(t)}})}))).then((function(t){e.videoHandle=t,o(t)}))},componentWillUnmount:function(){this.videoHandle&&this.videoHandle.remove()},render:function(){return i(".wistia_embed.wistia_async_".concat(this.props.wistiaId,".popover=true.popoverAnimateThumbnail=true"))}});s.defaultProps={onWistiaVideoHandle:function(){}},s.propTypes={onWistiaVideoHandle:o.func,wistiaId:o.string.isRequired},t.exports={WistiaVideoContainer:s,loadWistiaScript:function(){a("https://fast.wistia.com/assets/external/E-v1.js")}}},180:function(t,e,n){"use strict";n.r(e);n(181),n(183),n(184),n(186),n(187),n(189),n(190),n(93),n(193),n(194),n(195),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(253),n(254),n(255),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(141),n(269),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316);window._wq=window._wq||[];var r=n(317);n(51).init(),n(324);var o=n(325),i=n(5),a=n(110).Router,s=n(111).createBrowserHistory,c=n(349),u=n(1),l=n(353),p=n(53).CONTENT_TREE_GLOBAL,f=n(384),d=n(385),h=f(window[p]).map(d),g=i({displayName:"ErrorBoundary",getInitialState:function(){return{hasError:!1}},componentDidCatch:function(t,e){this.setState({hasError:t}),r.captureException(t,{extra:e})},render:function(){return this.state.hasError?u(".loader",["An unexpected error has occurred.",u("br"),u("a",{href:"/developers/docs/"},["Click here to reload the page."])]):this.props.children}});c.init();var m=s();m.listen((function(){"function"==typeof window.Intercom&&window.Intercom("update")})),o.hydrate(u(g,[u(a,{history:m},[u(l,{routes:h,pageview:c.pageview})])]),document.getElementById("app"))},21:function(t,e,n){"use strict";var r=n(358),o=r.getPath,i=r.fingerprint,a="undefined"==typeof document?{}:window._DOC_APP_MANIFEST;function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=c(e),s=u(a,o(r));return s?i(r,s):r}function c(t){return"/"+t.filter((function(t){return"string"==typeof t&&t.length>0})).map((function(t){return t.replace(/^\/+/g,"")})).join("/")}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===(e=e.map((function(t){return t}))).length)return t;if(1===e.length)return t[e[0]];var n=e.shift();return u(t[n],e)}t.exports={MANIFEST_GLOBAL:"_DOC_APP_MANIFEST",setManifest:function(t){return a=t},base:s,asset:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return s.apply(null,["developers","_assets"].concat(e))},resource:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return s.apply(null,["developers","_resources"].concat(e))},isAbsolute:function(t){return["http://","https://","/"].some((function(e){return t.startsWith(e)}))}}},30:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(5),a=n(14),s=n(163),c=n(52).withNavigationContext,u=n(1),l=n(164),p=n(165),f=n(399),d={gfm:!0,tables:!0,renderer:new f},h=i({displayName:"Markdown",shouldComponentUpdate:function(t){return t.md!==this.props.md},render:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},d);this.props.baseUrl&&(t.renderer=new f(this.props.baseUrl));var e={__html:s(this.props.md,t)};return u(".md",{dangerouslySetInnerHTML:e})}});h.propTypes={md:a.string,baseUrl:a.string},h.defaultProps={md:""};var g=c(i({displayName:"ArticleMarkdown",shouldComponentUpdate:function(t){return t.md!==this.props.md},componentDidMount:function(){this.onUpdate()},componentDidUpdate:function(){this.onUpdate()},render:function(){var t=this;return u(".highlighted-md",{ref:function(e){return t.root=e}},[u(h,{md:this.props.md,baseUrl:this.props.baseUrl})])},onUpdate:function(){var t=this;this.highlight(),this.internalizeLinks(),this.props.copyable&&this.getCodeBlocks().forEach((function(e){return p(e,t.props.onCopy)}))},highlight:function(){this.getCodeBlocks().forEach((function(t){return l.highlightBlock(t)}))},internalizeLinks:function(){var t=window.location,e=this.props.navigationContext,n=e.isPathInternal,r=e.prefetch,o=e.navigate;this.getEls("a").forEach((function(e){var i=e.pathname,a="string"==typeof e.hash?e.hash:"";(function(e){return e.protocol===t.protocol&&e.host===t.host})(e)&&n(i)&&i!==t.pathname&&(e.addEventListener("mouseenter",(function(){return r(i)}),!1),e.addEventListener("click",(function(t){return o(i+a,t)}),!1))}))},getCodeBlocks:function(){return this.getEls("pre > code")},getEls:function(t){return this.root?Array.from(this.root.querySelectorAll(t)):[]}}));g.propTypes={md:a.string,baseUrl:a.string,copyable:a.bool,onCopy:a.func},g.defaultProps={md:"",copyable:!1},t.exports={MARKED_OPTS:d,Markdown:h,ArticleMarkdown:g}},317:function(t,e,n){"use strict";var r=n(318);r.setShouldSendCallback((function(){return!1})),r.config("https://[email protected]/1215153",{environment:"dev",release:"1261795e",debug:!0,ignoreUrls:[/extensions\//i,/^chrome:\/\//i]}).install(),t.exports=r},324:function(t,e,n){"use strict";var r=window,o=r.location,i=o.pathname,a=o.hash,s=/\/index\.html$/.test(i),c=/[^/]$/.test(i);function u(t){r.history&&"function"==typeof r.history.replaceState?r.history.replaceState(null,null,t+a):r.location.replace(r.location.href.replace(i,t))}s?u(i.replace(/index\.html$/,"")):c&&u("".concat(i,"/"))},349:function(t,e,n){"use strict";var r=n(114),o=n(350),i=n(42),a=n(351),s=n(352);t.exports={init:function(){r.init(),i.init(),o.init(),function(){window.analytics.load("B2aO3j6sE02xo0J7lSQy1vyMiNzbOTvN"),window.analytics.debug();window.analytics.page()}(),a.init(),s.init()},pageview:function(t){i.pageview(t),window.analytics.page()}}},350:function(t,e,n){"use strict";n(61),n(151);t.exports={init:function(){0}}},351:function(t,e,n){"use strict";var r=n(114),o=n(61);t.exports={init:function(){window.wootric_survey_immediately=!0,window.wootricSettings={account_token:"NPS-2aa0377f",created_at:r.getFirstVisitTimestamp()},o("https://disutgh7q0ncc.cloudfront.net/beacon.js",(function(){window.wootric("run")}))}}},352:function(t,e,n){"use strict";var r=n(61);t.exports={init:function(){r("https://m.servedby-buysellads.com/monetization.it.js",(function(){window._bsa.trackConv()}))}}},353:function(t,e,n){"use strict";var r=n(11).Fragment,o=n(5),i=n(354).Helmet,a=n(110),s=a.Switch,c=a.Route,u=a.withRouter,l=a.matchPath,p=n(1),f=n(357),d=n(82).scrollToHash,h=n(52).NavigationContextProvider,g=o({displayName:"RoutedApp",componentDidUpdate:function(t){var e=this.props,n=e.routes,r=e.location,o=e.pageview,i=r.pathname,a=r.hash;if(i!==t.location.pathname){var s=m(n,i);s&&s.documentTitle&&(document.title=s.documentTitle),"function"==typeof o&&o(i),"string"==typeof a&&a.length>0?d(document,a):window.scrollTo(0,0)}},render:function(){var t=this,e=m(this.props.routes,"/404.html"),n=this.props.routes.filter((function(t){return t!==e}));return p(r,[p(h,{value:{prefetch:function(e){return function(t,e){var n=m(t,e);n&&n.loader&&n.loader.prefetch()}(t.props.routes,e)},isPathInternal:function(e){return!!m(t.props.routes,e)},navigate:function(e,n){return function(t,e,n){if(n){if(navigator.platform.toUpperCase().includes("MAC")?n.metaKey:n.ctrlKey)return;n.preventDefault()}var r=t.location,o=t.history,i=t.routes,a=m(i,e);if(!a)return void(window.location.href=e);var s=m(i,r.pathname);if(a===s)return void(window.location.hash=e.split("#")[1]);o.push(e)}(t.props,e,n)}}},[p(s,n.map((function(e){return p(c,{path:e.path,render:t.applyLayout(e,n),exact:!0})}
1)).concat([p(c,{render:this.applyLayout(e,n,!0)})]))])])},applyLayout:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.noLayout?t.Component:f;return function(){return p(r,[p(i,{encodeSpecialCharacters:!1,defaultTitle:"Contentful"},[p("title",[t.documentTitle])]),p(o,{currentRoute:t,routes:e,is404:n})])}}});function m(t,e){return e=e.split("#")[0],t.reduce((function(t,n){var r=l(e,n);return!t&&r&&r.isExact?n:t}),null)}t.exports=u(g),t.exports.unwrapped=g},357:function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(21),a=n(62),s=n(42),c=n(76),u=n(12),l=n(77),p=n(359),f=n(153),d=n(382),h=n(53),g=h.DEVELOPERS_ROOT,m=h.DOCS_ROOT,v=function(t,e){return e.find((function(e){return e.path===t}))},y=function(t,e){return v(t,e).children.filter((function(t){return!t.skipInNav}))},b=r({displayName:"DocsLayout",getInitialState:function(){return{search:!1}},componentDidMount:function(){this.setupLinkTracking()},setupLinkTracking:function(){c&&document.body.addEventListener("click",(function(t){var e=t.target;"a"===e.tagName.toLowerCase()&&s.linkClick(e.href)}),!1)},render:function(){var t=this,e=this.props,n=e.currentRoute,r=e.routes,s=e.is404,c=n.Component,h=n.HeaderComponent,b=n.type,w=[v(g,r)].concat(y(g,r)),S=y(m,r);return o(".app-root",[o(".app-nav",[o(".logo",[o("a",{href:"/",title:"Back to Contentful.com",className:"link-logo","data-tooltip":"Contentful.com"},[o("img",{src:i.asset("logo.svg")})]),o(u,{to:"/developers/",className:"link-title"},["Developers"])]),o(p,{nav:w}),o(".addons",[o(u,{to:"https://www.contentful.com/sign-up/#small"},["Sign up"]),o("button.search-btn",{onClick:function(){return t.setState({search:!0})}},[o(l,{name:"search"})])])]),o(".app-container",[o(h,{currentRoute:n,is404:s,nav:S}),o(c,{currentRoute:n,routes:r,nav:S}),o(d,{short:b===a.HOME,nav:S})]),this.state.search&&o(f,{modifier:"-main",onClose:function(){return t.setState({search:!1})}})])}});t.exports=b},358:function(t,e,n){"use strict";var r=/\.\w{1,6}$/,o=/\.(\w{10})\.\w{1,6}$/,i=function(t){return!!o.test(t)};function a(t){return(t||"").split("/").filter((function(t){return"string"==typeof t&&t.length>0}))}function s(t,e){if(Array.isArray(t)&&t[e])return t[e]}t.exports={fingerprint:function(t,e){var n=s(t.match(r),0),o=a(t).pop();if(!i(t)&&n&&n!==o){var c="."+e+n;return t.replace(r,c)}return t},unfingerprint:function(t){return i(t)?t.replace(o,s(t.match(r),0)):t},hasFingerprint:i,getPath:a,getFingerprint:function(t){if(i(t))return s(t.match(o),1)}}},359:function(t,e,n){"use strict";var r=n(52).withNavigationContext,o=n(1),i=n(12),a=n(53).DEVELOPERS_ROOT;t.exports=r((function(t){var e=t.nav,n=t.navigationContext;
1return o(".topnav-items",[o(".-desktop",[o("ul",e.map((function(t){return o("li",[o(i,{to:t.path,activeForChildren:t.path!==a},[t.title])])})))]),o(".-mobile",[o("select",{value:"_sel",onChange:function(t){return n.navigate(t.target.value)}},[o("option",{value:"_sel"},["Select..."])].concat(e.map((function(t){return o("option",{value:t.path},[t.title])}))))])])}))},380:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(11).Fragment,a=n(5),s=n(1),c=n(381),u=a({displayName:"SearchResults",render:function(){return s(i,[this.status(),this.results()])},status:function(){var t=this.props,e=t.input,n=t.inputLongEnough,r=t.results;return n&&r[0].hits.length<1?s(".search-status",["There are no results for ",s("strong",[e])]):null},results:function(){var t=this.props,e=t.input,n=t.results,o=t.cursor,i=t.onResultClick;if(n[0].hits.length>0){var a=r(n,1)[0].hits,u=a.length;return s(".search-result",[s(".search-info",["Results for ",s("strong",[e])," (".concat(u,")")]),s("ul",a.map((function(t,e){return s("li",{key:e,className:o===e?"search-item-active":null},[s(c,{item:t,onResultClick:i})])})))])}return null}});t.exports=u},381:function(t,e,n){"use strict";var r=n(5),o=n(52).withNavigationContext,i=n(1),a=r({displayName:"SearchResultItem",render:function(){var t=this,e=this.props,n=e.item,r=e.navigationContext,o=n.url,a=n.categoryTag,s=n._highlightResult,c=s.title,u=s.teaser;if(!(c&&"string"==typeof c.value&&c.value.length>0))return null;var l=u&&"string"==typeof u.value&&u.value.length>0;return i("a",{href:o,onMouseOver:function(){return r.prefetch(o)},onClick:function(e){return t.onResultClick(n,e)}},[i(".search-item",[i(".search-item-content",[i(".title",{dangerouslySetInnerHTML:{__html:c.value}}),i(".description",l?{dangerouslySetInnerHTML:{__html:u.value}}:["(no description)"])]),i("span.search-item-tag",[a])])])},onResultClick:function(t,e){this.props.navigationContext.navigate(t.url,e),this.props.onResultClick(t)}});t.exports=o(a)},382:function(t,e,n){"use strict";var r=n(11).Fragment,o=n(1),i=n(12),a=n(77),s=n(159),c=n(383),u=n(51);function l(t){var e=t.url,n=t.children;return o(r,[o("a",{target:"_blank",href:e,rel:"noopener"},[n]),o(a,{name:"link",size:15})])}t.exports=function(t){var e=t.short,n=t.nav;return o(".docs-footer",[!e&&o(".app-section-header",[o("h1",["All topics"]),o(".side-content",["Learn more at ",o("a",{href:"/"},["Contentful.com"])])]),!e&&o(".footer-links",n.map((function(t){return o(".section",[o("h3",[o(i,{to:t.path},[t.title])]),o("ul",t.children.filter(u.contentVisible).map((function(t){return o("li",[o(i,{to:t.path},[t.title])])})))])}))),o(".app-section-header",[o("h1",["Learn more"]),o(".side-content",[o(s)])]),o(".footer-links",[o(".section",[o("h3",["Web app"]),o("ul",[o("li",[o(l,{url:"/r/knowledgebase/contentful-101/"},["Contentful overview"])]),o("li",[o(l,{url:"/r/knowledgebase/content-modelling-basics/"},["Modelling basics"])]),o("li",[o(l,{url:"/blog/2015/09/10/creating-a-digital-lookbook/"},["Creating a digital lookbook"])]),o("li",[o(l,{url:"/r/knowledgebase/localization/"},["Localization"])]),o("li",[o(l,{url:"/faq/versioning/"},["Versioning"])]),o("li",[o(l,{url:"/r/knowledgebase/roles-and-permissions/"},["Roles and permissions"])])])]),o(".section",[o("h3",["Advanced"]),o("ul",[o("li",[o(l,{url:"/faq/webhooks/"},["Webhooks"])]),o("li",[o(l,{url:"/r/knowledgebase/cms-as-code/"},["CMS as code"])]),o("li",[o(l,{url:"/r/knowledgebase/headless-and-decoupled-cms/"},["Headless & Decoupled CMS"])])])]),o(".section",[o("h3",["More"]),o("ul",[o("li",[o(i,{to:"/developers/changelog/"},["Changelog"])]),o("li",[o(i,{to:"/developers/api-changes/"},["API Changes"])]),o("li",[o(i,{to:"/developers/docs/technical-limits/"},["Technical limits"])]),o("li",[o(l,{url:"/support/"},["Support"])]),o("li",[o(l,{url:"http://stackoverflow.com/questions/tagged/contentful?sort=newest"},["Stack Overflow"])])])])]),o(".footer-last-section",[o(c)])])}},383:function(t,e,n){"use strict";
1var r=n(11).Fragment,o=n(5),i=n(63).getJSON,a=n(1),s=["none","minor","major","critical"],c=o({displayName:"StatusPage",getInitialState:function(){return{status:null}},componentDidMount:function(){var t=this;i("https://4bv17htq00cz.statuspage.io/api/v2/status.json").then((function(e){return t.setState({status:e.status})}))},render:function(){var t=this.state.status;return a("a",{className:"status-page ".concat(u(t)),target:"_blank",rel:"noopener",href:"https://www.contentfulstatus.com/"},[t?a(r,[a("span.point",["â¢"])," ",t.description]):"Fetching status"])}});function u(t){return t&&s.includes(t.indicator)?"-".concat(t.indicator):""}t.exports=c},384:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(62),s=n(53).DOCS_ROOT;function c(t,e){return e.filter((function(e){return e===t||!e.skipPathSegment})).map((function(t){return t.seg})).filter(p).reduce((function(t,e,n,r){var o=n===r.length-1,i=".html"===e.substr(e.length-5);return"".concat(t).concat(e).concat(o&&i?"":"/")}),"/")}function u(t,e){return e.reduce((function(t,e){var n=e.seg;return t.concat([n])}),["pages"]).concat(t.isIndex?["index"]:[]).filter(p).join("/")}function l(t){return t.children.map(l).reduce((function(t,e){return t.concat(e)}),[t])}function p(t){return"string"==typeof t&&t.length>0}t.exports=function(t){return l(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r="string"==typeof(e=o({},e)).title&&e.title.length>0,i="string"==typeof e.metaDescription&&e.metaDescription.length>0,l="string"==typeof e.canonicalUrl&&e.canonicalUrl.length>0;e.documentTitle=r?"".concat(e.title," | Contentful"):"Contentful",e.metaDescription=i?e.metaDescription:null,e.canonicalUrl=l?e.canonicalUrl:null,n=[].concat(n).concat([e]),e.path=e.type===a.REF?e.to:c(e,n),a.isMarkdown(e.type)&&(e.resources=[u(e,n)]);return e.breadcrumbs=n.filter((function(t){return t.path.startsWith(s)})),e.children=(e.children||[]).map((function(e){return t(e,n)})),Object.freeze(e)}(t)).filter((function(t){return t.type!==a.REF}))}},385:function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(1),a=n(161),s=n(152).getDisplayName,c=n(62),u=n(53).DOCS_ROOT,l=(o(r={},c.HOME,n(386)),o(r,c.TOP_LEVEL_INDEX,n(404)),o(r,c.TUTORIALS_INDEX,n(405)),o(r,c.SECTION_INDEX,n(406)),o(r,c.APIB,n(407)),o(r,c.ARTICLE,n(422)),o(r,c.GUIDE,n(424)),o(r,c.CHANGELOG,n(426)),o(r,c.ALPHA_CHANGELOG,n(440)),o(r,c.API_CHANGES,n(441)),o(r,c.OAUTH,n(442)),o(r,c.PORTAL,n(443)),o(r,c.VIDEO_PAGE,n(444)),o(r,c.VIDEO_PORTAL,n(446)),o(r,c.LIST_CHILDREN,n(447)),o(r,c.TEA_MOBILE,n(448)),r);function p(t){return t.path.startsWith(u)?n(456):n(459)}t.exports=function(t){var e=l[t.type];if(!e)throw new Error('Unknown route type "'.concat(t.type,'" for ').concat(t.path));var n=(t.resources||[]).map((function(t){return"".concat(t,".json")})),r=a.create(n);function o(t){return i(e,Object.assign({loader:r},t))}o.displayName="DecoratedComponent(".concat(s(e),")");var c=Object.assign({},t,{loader:r,Component:o,HeaderComponent:p(t)});return Object.freeze(c)}},386:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(14),a=n(1),s=n(21),c=n(12),u=n(30).Markdown,l=n(153),p=n(83);function f(t){var e=t.title,n=t.path,r=t.desc,o=t.children;return a(".tile",[a("header.tile-header",[a("h2",[a(c,{to:n},[e])])]),a(".tile-content",[a(".tile-paragraph",[a(u,{md:r})]),a("ul.tile-list.-separated",o.map((function(t){return a("li.tile-light-bg",[a(c,{to:t.path},[t.title])])})))]),a(c,{className:"tile-footer",to:n},["More",a("img",{src:s.asset("icons/arrow.svg"),role:"presentation",alt:""})])])}f.propTypes={path:i.string.isRequired,title:i.string.isRequired,desc:i.string.isRequired,children:i.arrayOf(i.shape({path:i.string.isRequired,title:i.string.isRequired}))},f.defaultProps={children:[]},t.exports=function(t){var e=t.nav,n=t.loader;return a(".docs-home",[a(".hero",[a(".home-search",[a("h2",["What are you looking for?"]),a(l)])]),a(".grid",e.map((function(t){var e=t.title,n=t.path,r=t.desc,o=t.children;return a(f,{title:e,path:n,desc:r},o)})).concat([a(p,{loader:n,render:function(t){return r(t,1)[0].map((function(t){var e=t.fields,n=e.desc,r=e.title,o=e.slug,i=e.videos,s="/developers/videos/".concat(o,"/");return a(f,{desc:n,path:s,title:"".concat(r," (video)")},i.map((function(t){var e=t.fields;return{path:"".concat(s,"#").concat(e.slug),title:e.title}})))}))}})]))])}},399:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(163).Renderer,p=n(21);function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.startsWith("#{ASSETS}/")?p.asset(e.replace("#{ASSETS}/","")):t&&!p.isAbsolute(e)?n(400).resolve(t,e):e}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.startsWith("//")?"https:".concat(t):t}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(l,t);var e,n,r,c=s(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this)).baseUrl=t,e}return e=l,(n=[{key:"image",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=i(u(l.prototype),"image",this)).call.apply(e,[this,d(f(this.baseUrl,t))].concat(r))}},{key:"link",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=i(u(l.prototype),"link",this)).call.apply(e,[this,d(f(this.baseUrl,t))].concat(r))}}])&&o(e.prototype,n),r&&o(e,r),l}(l);t.exports=h},404:function(t,e,n){"use strict";var r=n(1),o=n(21),i=n(62),a=n(51),s=n(12),c=n(30).Markdown,u={platforms:function(t){return r(".items",[r(".grid",t.map((function(t){return r(".tile",[r(s,{to:t.path,className:"-with-icon"},[r("img",{src:o.asset("platforms/".concat(t.seg,".svg"))}),r("span",[t.title])])])})).concat([r(".tile.-empty")]))])},references:function(t){return r(".items",[r(".grid.-col-2",t.filter((function(t){return t.type===i.APIB})).map((function(t){return r(".tile",[r(s,{to:t.path},[t.title," ",r("span",[t.desc])])])}))),r(".grid.-col-2",t.filter((function(t){return t.type!==i.APIB})).map((function(t){return r(".tile",[r(s,{to:t.path},[t.title])])})))])},tools:l,concepts:l,extensibility:l};function l(t){return r(".items",[r(".grid.-col-2",t.map((function(t){return r(".tile",[r(s,{to:t.path},[t.title])])})))])}t.exports=function(t){var e=t.currentRoute,n=e.title,o=e.heading,i=e.desc,s=e.seg,l=e.children,p=u[s];if("function"!=typeof p)throw new Error('No content function for top level "'.concat(s,'"'));return r(".top-level-index",[r(".section",[r(".heading",[r("h1",[o||n]),r(".desc",[r(c,{md:i})])]),p(l.filter(a.contentVisible))])])}},405:function(t,e,n){"use strict";var r=n(1),o=n(21),i=n(12),a=n(51),s=n(167);t.exports=function(t){var e=t.currentRoute,n=t.routes,c=e.children.map((function(t){return{original:t,resolved:s(n,t)}})).filter((function(t){return t.resolved.children.length>0}));return r(".top-level-index",c.map((function(t,e){var n=t.original,s=t.resolved,c=s.
1children.filter(a.contentVisible);return r(".section.tutorials",[r(".heading",[e>0&&r("img",{src:o.asset("platforms/".concat(n.seg,".svg"))}),r("h1",[n.title+" tutorials"]),s.desc&&r("p",[s.desc])]),r(".items",[r(".grid.-col-1",[r(".tile",[r(".tile-content",[r("ul.tile-list.-separated",c.map((function(t){return r("li.tile-light-bg",[r(i,{to:t.path},[t.title])])})))])])])])])})))}},406:function(t,e,n){"use strict";var r=n(1),o=n(12),i=n(117),a=n(64);t.exports=function(t){var e=t.currentRoute,n=e.title,s=e.children,c=e.breadcrumbs;return r(".article",[r(".article-toc",[r(i,{breadcrumbs:c})]),r(".content",[r(".wrapper",[r(a,{breadcrumbs:c}),r("h1",[n]),r("ul",s.map((function(t){return r("li",[r(o,{to:t.path},[t.title])])})))])])])}},407:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(5),a=n(408).Waypoint,s=n(410).throttle,c=n(1),u=n(411),l=n(53),p=l.API_BETA_PREFIXES,f=l.API_ALPHA_PREFIXES,d=n(412),h=n(30).ArticleMarkdown,g=n(413),m=n(64),v=n(82).scrollToHash,y=function(){},b=function(t){return f.some((function(e){return t.startsWith(e)}))},w=function(t){return p.some((function(e){return t.startsWith(e)}))},S=["ast","activeAnchor","action"],O=i({displayName:"ApiDoc",getInitialState:function(){return this.prepareState(this.props.loader.getPreloaded())},componentDidMount:function(){var t=this;this.state.ast?this.astReady():this.props.loader.load().then((function(e){return t.setState(t.prepareState(e),(function(){return t.astReady()}))}))},prepareState:function(t){var e=r(t,1)[0];return{ast:e=u(e),anchors:e?[""].concat(e.orderedAnchors).map((function(t){return[t,!1]})):[]}},astReady:function(){var t,e,n,r,o=this,i=(t=window.location.hash.replace(/^#/,"").split("/").filter((function(t){return!!t})),e=t[t.length-1],n=t[t.length-2],r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"/"+t.slice(0,t.length-e).join("/")},"console"===e?{initialHash:r(2),actionAnchor:r(1)}:"console"===n?{initialHash:r(3),initialSdkId:e,actionAnchor:r(2)}:{initialHash:r()}),a=i.initialHash,s=i.initialSdkId,c=i.actionAnchor,u=this.state.ast.anchorToAction[c],l=function(){return v(o.contentContainer,"#"+a)};u?this.openAction(u,s,l):l()},shouldComponentUpdate:function(t,e){var n=this;return S.some((function(t){return n.state[t]!==e[t]}))},componentDidUpdate:s(50,(function(){var t,e;this.state.action||A((t=this.state.activeAnchor,e=window.location.pathname,"string"==typeof t&&t.length>0?e+"#"+t:e))}),!1),render:function(){var t=this;return this.state.ast?c(".api-doc",[c(d,{ast:this.state.ast,activeAnchor:this.state.activeAnchor,isAlpha:b,isBeta:w}),c(".content",{ref:function(e){return t.contentContainer=e}},[c(".wrapper",[c(m,{breadcrumbs:this.props.currentRoute.breadcrumbs}),c("h1.-api",[this.state.ast.name]),this.waypoint({anchor:""}),this.level(this.state.ast.sections)])]),this.state.action&&c(g,this.getActionProps()),this.state.action&&c(".action-overlay",{onClick:function(){return t.closeAction()}})]):c(".loader",["Loading..."])},openAction:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;this.closeAction((function(){return n.setState({action:t,initialSdkId:e},r)}))},closeAction:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;this.setState({action:null,initialSdkId:null},t)},getActionProps:function(){var t=this;return{close:function(){return t.closeAction()},action:this.state.action,isWriteApi:this.state.ast.isWriteApi,initialSdkId:this.state.initialSdkId,replaceState:A}},level:function(t){var e=this;return c(".level",t.map((function(t){return c(".item",[e.header(t),e.waypoint(t),e.desc(t),t.apiInfo&&e.apiInfo(),t.children?e.level(t.children):null,t.actions?e.actions(t):null])})))},header:function(t){var e=t.anchor,n=t.name,r={section:"h1.-sec",group:"h2",resource:"h3"}[t.type]||"h2",o=b(e)?"Alpha":w(e)?"Beta":void 0;return c(r,{id:e},[o&&c("span.beta",[o]),o&&" ",n])},apiInfo:function(){return c(".level",[c("h2",["Basic API information"]),c(".api-info",[c(".host",["API Base URL ",c("code",[this.state.ast.host])]),c(".readonly",["This is a ".concat(this.state.ast.isWriteApi?"read/write":"read-only"," API")])])])},actions:function(t){var e=this;return c(".actions",t.actions.map((function(t){return c(".action",[c(".trigger",{className:t===e.state.action?"-active":"",onClick:function(){return e.openAction(t)}}
1,[c("h2",[t.name])]),e.desc(t)])})))},waypoint:function(t){var e=this,n=t.anchor;return c(".waypoint",[c(a,{onEnter:function(){return e.handleWaypoint(n,!0)},onLeave:function(){return e.handleWaypoint(n,!1)}})])},handleWaypoint:function(t,e){this.setState((function(n){var r=n.anchors.map((function(n){return[n[0],n[0]===t?e:n[1]]})),o=r.filter((function(t){return t[1]})),i=o.length>0&&o[0][0];return{anchors:r,activeAnchor:"string"==typeof i?i:n.activeAnchor}}))},desc:function(t){var e=t.desc;return e?c(".desc",[c(h,{md:e,copyable:!0})]):null}});function A(t){window.history&&"function"==typeof window.history.replaceState?window.history.replaceState(null,null,t):window.location.replace(t)}t.exports=O},411:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(168),s="Reference",c="Introduction";function u(t){return t.toLowerCase().replace(/[ /]/g,"-")}t.exports=function(t){if(!t)return t;var e,n={host:t.host,isWriteApi:t.isWriteApi,name:t.name,orderedAnchors:[],sections:[],anchorToAction:{}},r={host:t.host,subdomain:t.subdomain,abbr:t.abbr},i=(e=n.orderedAnchors,function(t){var n="/"+t.map(u).join("/");return e.includes(n)||e.push(n),n}),l=a(t.desc);return n.sections.push({type:"section",name:c,anchor:i([c]),desc:l.desc,apiInfo:!0,children:l.groups.map((function(t){var e=t.name;return{type:"group",name:e,desc:t.desc,anchor:i([c,e])}}))}),n.sections.push({type:"section",name:s,anchor:i([s]),children:t.groups.map((function(t){var e=t.name,a=t.desc,c=t.resources;return{type:"group",name:e,desc:a,anchor:i([s,e]),children:c.map((function(t){var a=Object.assign(o({},t),{api:r,type:"resource",anchor:i([s,e,t.name])});return a.actions=t.actions&&t.actions.map((function(c){var l=["snippets",r.abbr,e,t.name,c.name],p=i([s,e,t.name,c.name]);return n.anchorToAction[p]=Object.assign(o({},c),{type:"action",resource:a,snippetsResourceKey:"".concat(l.map(u).join("/"),".json"),anchor:p,api:r})})),a}))}}))}),n}},412:function(t,e,n){"use strict";var r=n(5),o=n(1),i=r({displayName:"ApiToc",render:function(){return o(".toc",[this.level(this.props.ast.sections)])},level:function(t){var e=this;return o("ul",t.map((function(t){return o("li",[e.link(t),t.children?e.level(t.children):null])})))},link:function(t){var e=t.name,n=t.anchor,r=this.props.isAlpha(n),i=this.props.isBeta(n),a=this.props.activeAnchor===n,s=r||i,c=r?"Alpha":i?"Beta":void 0;return o("a",{href:"#".concat(n),className:a?"-active":""},[s&&o("span.beta",[c]),s&&" ",e])}});t.exports=i},413:function(t,e,n){"use strict";var r=n(5),o=n(414),i=n(1),a=n(118).HighlightedJSON,s=n(30).Markdown,c=n(169),u=n(416),l=n(421),p=n(42),f=r({displayName:"ApiAction",getInitialState:function(){return{client:!1}},UNSAFE_componentWillMount:function(){this.props.replaceState(window.location.pathname+"#"+this.props.action.anchor+"/console")},componentDidMount:function(){document.body.style.overflow="hidden";var t=this.props.action;p.consoleOpened(t.resource,t)},componentWillUnmount:function(){document.body.style.overflow=""},render:function(){var t,e,n=this.props,r=n.action,s=n.close,p=n.isWriteApi,f=n.initialSdkId,g=n.replaceState,m=r.resource,v=m.params,y=Array.isArray(v)&&v.length>0,b=!!r.response,w=this.state.client&&!p;return i(".api-action",[i("button.close",{onClick:s}),i(".header",[i("h2",[m.name," / ",i("strong",[r.name])]),i(c,{resource:m,action:r,contrast:!0})]),i(u,{resource:m,action:r,initialSdkId:f,replaceState:g}),y&&d(v),w&&i(l,{resource:m,action:r,toggle:this.toggleClient}),!w&&i(".sample-reqres",[h(r,!p&&this.toggleClient),b?(t=r.response,e=t.code||200,i(".response",[i("h2",["Response",i("span.code",["".concat(e," ").concat(o.getStatusText(e))])]),i(".reqres-body",[t.body?i(a,{json:t.body}):i("pre",["(no body)"])])])):null])])},toggleClient:function(t){t.preventDefault(),this.setState((function(t){return{client:!t.client}}))}});function d(t){return i(".action-params",[i("h2",["Parameters"]),i("ul.params-list",t.map((function(t){return i("li",[i("code.name",["{"+"".concat(t.name)+"}"]),i("code.type",[t.type]),i("span.required",["".concat(t.required?" Required":"")]),i("div.desc",[t.desc?i(s,{md:t.desc}):null,t.example?i(".example",[i("strong",["Example"]),i("code",[t.example])]):null])])})))])}function h(t,e){var n=t.resource,r=!!t.request,o=r&&t.request.headers.length>0,s=(n.params||[]).reduce((function(t,e){return t[e.name]=e.example,t}),{});return i(".request",[i("h2",["Request"]),e?i("a.toggle-client.edit",{href:"",onClick:e},["Edit this request"]):null,i(c,{resource:n,action:t,contrast:!1,values:s}),r&&i(".reqres-body",[o&&i("pre",[t.request.headers.reduce((function(t,e){return t+"".concat(e.name,": ").concat(e.value,"\n")}),"")]),t.request.body&&i(a,{json:t.request.body})])])}t.exports=f},415:function(t,e,n){"use strict";
1t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"==typeof t?t:JSON.stringify(t,null,e).replace(/<\/(script)/gi,"<\\/$1").replace(/<!--/g,"<\\!--").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},416:function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(417),a=i.Snippet,s=i.SnippetVersion,c=n(420),u=n(150),l=n(42),p=n(76),f="preferred-platform",d=r({displayName:"CodeSample",getInitialState:function(){return{sdkId:this.props.initialSdkId||u.get(f)||""}},UNSAFE_componentWillMount:function(){this.state.sdkId&&(this.track("view",this.state.sdkId),this.updateHash("/console/".concat(this.state.sdkId)))},componentDidUpdate:function(){this.updateHash(this.state.sdkId?"/console/".concat(this.state.sdkId):"/console")},updateHash:function(t){p&&this.props.replaceState(window.location.href.replace(/\/console.*$/,t))},render:function(){var t=this,e=this.props.action,n=c.byId[this.state.sdkId];return o(".code-sample",[o("h2",["Code sample"]),o(".snippet-selector",[o("select",{value:n?n.id:"",onChange:this.pick},[o("option",{value:""},["Select platform"])].concat(c.list.map((function(t){return o("option",{value:t.id},[t.name])}))))]),n&&o(a,{sdk:n,action:e,onCopy:function(){return t.track("copy",n.id)}}),n&&o(".snippet-footer",[o("button.hide-btn",{onClick:this.hide},["Hide code sample"]),o(s,{sdk:n.id,api:e.api.abbr})])])},pick:function(t){var e=t.target.value;e?(this.setState({sdkId:e}),u.set(f,e),this.track("view",e)):this.hide()},hide:function(t){t&&t.preventDefault(),this.track("collapse",this.state.sdkId),this.setState({sdkId:""}),u.remove(f)},track:function(t,e){var n=this.props,r=n.resource,o=n.action;l.sdkInteraction(r,o,t,e)}});t.exports=d},417:function(t,e,n){"use strict";var r=n(5),o=n(14),i=n(1),a=n(118).HighlightedCodeBlock,s=n(161).fetch,c=n(418).generateCurlSnippet,u=r({displayName:"Snippet",getInitialState:function(){return{snippets:null,err:null}},componentDidMount:function(){var t=this;s(this.props.action.snippetsResourceKey).then((function(e){return e.curl=c(t.props.action),e})).then((function(e){return t.setState({snippets:e})}),(function(e){return t.setState({err:e})}))},render:function(){return i(".snippet",[this.getChild()])},getChild:function(){return this.state.err?i(".err",["There was an error while fetching snippets. Please try again."]):this.state.snippets?this.getSnippetNode():i(".in-progress",["Loading..."])},getSnippetNode:function(){var t=this.state.snippets[this.props.sdk.id];return t?this.getMdNode(t):i(".err",["No snippet for this SDK."])},getMdNode:function(t){return i(a,{lang:this.props.sdk.lang,copyable:!0,onCopy:this.props.onCopy},[t])}});u.propTypes={sdk:o.shape({id:o.string.isRequired,lang:o.string.isRequired}).isRequired};var l=r({displayName:"SnippetVersion",getInitialState:function(){return{sdks:null}},componentDidMount:function(){var t=this;s("snippets/sdks.json").then((function(e){return t.setState({sdks:e})}))},render:function(){var t=this.state.sdks,e=this.props,n=e.api,r=e.sdk;if(!t||!(r in t[n]))return null;var o=t[n][r],a=o.link,s=o.version;return i("a.label",{href:a,target:"_blank",rel:"noopener"},[s])}});l.propTypes={api:o.oneOf(["cda","cma","cpa","images"]).isRequired,sdk:o.string},t.exports={Snippet:u,SnippetVersion:l}},418:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(419);function a(t){return i([t])}t.exports={generateCurlSnippet:function(t){var e=["curl --include"],n=["--request ".concat(a(t.method||"GET"))];if(t.request&&t.request.headers){var o=t.request.headers.map((function(t){var e=t.name,n=t.value;return["--header ".concat(a("".concat(e,": ").concat(n)))]}));n.push.apply(n,r(o))}if(t.request&&t.request.body){var i=t.request.body.split("\n").join("\n ");n.push("--data-binary ".concat(a(i)))}var s=t.resource.uriTemplate.full,c=s.startsWith("https://api.")&&s.includes("/spaces/{space_id}/uploads");return n.push(c?s.replace("https://api.","https://upload."):s),e.concat.apply(e,r(n.map((function(t){return" ".concat(t)})))).join(" \\\n")}}},42:function(t,e,n){"use strict";var r=n(114).getUserIdWithUrlFallback,o=(n(61),{});function i(){return{appId:"docs-".concat("dev"),platform:"web",bufferSize:1,discoverRootDomain:!0,contexts:{gaCookies:!0}}}function a(){return window.sp||(window.GlobalSnowplowNamespace=["sp"],window.sp=function(){window.sp.q=window.sp.q||[];for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];window.sp.q.push(e)},window.sp.q=window.sp.q||[]),window.sp}function s(t){if(t!==o.currentPathname){var e=a();e("trackPageView"),o.currentPathname=t,f("Logged pageview",{pathname:t,t
1itle:document.title}),c(e)}}function c(t){var e=r();e&&e!==o.userId&&(t("setUserId",e),o.userId=e,f("User identified",e))}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=a(),i=l(t,n);e.executing_user_id=o.userId||null;var s={schema:i,data:e};r("trackSelfDescribingEvent",s),f("Event sent.",s)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"docs_";return"iglu:com.contentful/".concat(e).concat(t,"/jsonschema/1-0-0")}function p(t,e){return{endpoint:"".concat(e.method," ").concat(t.uriTemplate.pathname),api:t.api.abbr}}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.log.apply(console,["[Snowplow]"].concat(e))}t.exports={init:function(){var t=a();t("newTracker","defaultTracker","false",i()),t((function(){return f("Integration initialized")})),c(t),s(window.location.pathname),!1},pageview:s,linkClick:function(t){a()("trackLinkClick",t),f("Link click tracked.",t)},consoleOpened:function(t,e){u("console_open",p(t,e))},actionCalled:function(t,e,n){var r=p(t,e);r.params_changed=n,u("console_call",r)},sdkInteraction:function(t,e,n,r){var o=p(t,e);o.platform=r,o.action=n,u("console_sdk",o)},searchAction:function(t,e){!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a(),i={schema:l("".concat(t,"_").concat(e)),data:{}};n.action=e,n.executing_user_id=o.userId||null;var s={schema:l(t),data:n};r("trackSelfDescribingEvent",i,[s]),f("Event with context sent.",i,s)}("search",t,e)},feedback:function(t,e){u("article_feedback",e,"")}}},420:function(t,e,n){"use strict";var r=[{id:"curl",name:"curl",lang:"bash"},{id:"android",name:"Android",lang:"java"},{id:"java",name:"Java",lang:"java"},{id:"kotlin",name:"Kotlin",lang:"kotlin"},{id:"swift",name:"Swift",lang:"swift"},{id:"js",name:"JavaScript",lang:"javascript"},{id:"php",name:"PHP",lang:"php"},{id:"ruby",name:"Ruby",lang:"ruby"},{id:"python",name:"Python",lang:"python"},{id:"dot-net",name:".NET",lang:"cs"}];t.exports={list:r,byId:r.reduce((function(t,e){return t[e.id]=e,t}),{})}},421:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(5),s=n(160),c=n(1),u=n(169),l=n(118).HighlightedJSON,p=n(42),f=a({displayName:"HttpClient",getInitialState:function(){return{err:null,res:null,responseBody:null,busy:!0,values:this.props.resource.params.reduce((function(t,e){return t[e.name]=e.example,t}),{}),paramsChanged:!1}},componentDidMount:function(){this.call()},render:function(){var t=this;return c(".http-client",[c(".request",[c("h2",["Request"]),c("a.toggle-client.cancel",{href:"",onClick:this.props.toggle},["Cancel editing"]),c(u,{resource:this.props.resource,action:this.props.action,values:this.state.values}),c("ul.param-inputs",this.props.resource.params.map((function(e){return c("li",[c(".name",[c("pre",["{"+e.name+"}"])]),c(".value",[c("input",t.inputProps(e.name))])])}))),c("a.call",{onClick:this.call},["Call endpoint"])]),this.state.err?c(".unknown-err",["We couldn't complete this request. Please check the provided parameters."]):this.response()])},response:function(){if(this.state.busy)return c(".in-progress",["Request in progress..."]);
1var t=this.props.resource.uriTemplate.full.includes("images");return c(".response",[c("h2",["Response",c("span.code",["".concat(this.state.res.status),this.state.res.statusText?" ".concat(this.state.res.statusText):""])]),c(".res-body",[t&&c("img",{src:this.state.url}),!t&&c(l,{json:this.state.responseBody})])])},inputProps:function(t){var e=this;return{value:this.state.values[t],onChange:this.changeOf(t),onKeyPress:function(t){return"Enter"===t.key&&e.call()}}},changeOf:function(t){var e=this;return function(n){var r=n.target.value;e.setState((function(e){return{values:Object.assign({},e.values,i({},t,r)),paramsChanged:!0}}))}},call:function(){var t=this,e=Object.entries(this.state.values).reduce((function(t,e){var n=r(e,2),o=n[0],i=n[1];return t.replace("{".concat(o,"}"),i)}),this.props.resource.uriTemplate.full);this.setState({url:e,err:null,busy:!0}),p.actionCalled(this.props.resource,this.props.action,this.state.paramsChanged),s(e,{mode:"cors",redirect:"follow"}).then(d).then((function(e){var n=r(e,2),o=n[0],i=n[1];t.setState({err:null,res:o,responseBody:i,busy:!1})}),(function(e){t.setState({err:e,res:null,responseBody:null,busy:!1})}))}});function d(t){var e=t.headers.get("content-type").includes("json"),n=e?t.json():Promise.resolve();return Promise.all([t,e?n:null])}t.exports=f},422:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(11).Fragment,a=n(5),s=n(14),c=n(1),u=n(30).ArticleMarkdown,l=n(12),p=n(117),f=n(64),d=n(423),h=a({displayName:"Article",getInitialState:function(){return{article:r(this.props.loader.getPreloaded(),1)[0]}},componentDidMount:function(){this.state.article||this.load()},load:function(){var t=this;this.props.loader.load().then((function(e){var n=r(e,1)[0];return t.setState({article:n})}))},render:function(){if(this.state.article){var t=this.props.currentRoute,e=t.breadcrumbs,n=t.hideSectionToC,r=t.rootForToC,o=this.attr("heading")||this.attr("title"),i=n?{margin:"0 auto"}:{};return c(".article",[!n&&c(".article-toc",[c(p,{breadcrumbs:e,rootForToC:r})]),c(".content",{style:i},[c(".wrapper",[c(f,{breadcrumbs:e}),c(d),c("h1",[o]),c(u,{md:this.state.article.body,copyable:!0}),c(g,{steps:this.attr("nextSteps")})])])])}return c(".loader",["Loading..."])},attr:function(t){var e=this.state.article;return e&&e.attributes&&e.attributes[t]}});function g(t){var e=t.steps;return e.length>0?c(i,[c("h2",["Next steps"]),c("ul",e.map((function(t){return c("li",[c(l,{to:t.link},[t.text])])}))),c("p",["Not what youâre looking for? ",c(l,{to:"/faq/"},["Try our FAQ"]),"."])]):null}g.defaultProps={steps:[]},g.propTypes={steps:s.arrayOf(s.shape({link:s.string.isRequired,text:s.string.isRequired}))},t.exports=h},423:function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(42);function a(){return o("svg",{version:"1.1",style:{overflow:"hidden"}},[o("defs",[o("filter#a",{width:"111.4%",height:"132.9%",x:"-5.7%",y:"-9.9%",filterUnits:"objectBoundingBox"},[o("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),o("feComposite",{in:"shadowBlurOuter1",in2:"SourceAlpha",operator:"out",result:"shadowBlurOuter1"}),o("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102912454 0"}),o("feMerge",[o("feMergeNode",{in:"shadowMatrixOuter1"}),o("feMergeNode",{in:"SourceGraphic"}
1)])])]),o("svg#star",{viewBox:"0 0 28 28",filter:"url(#a)"},[o("title",["Star Rating"]),o("path.star",{d:"M13.996,22.501 L22.649,27.997 L20.352,17.637 L27.996,10.667 L17.930,9.768 L13.996,-0.003 L10.063,9.768 L-0.003,10.667 L7.641,17.637 L5.345,27.997 L13.996,22.501 Z"})])])}function s(t){var e=t.rating,n=t.onClick;return Array.from({length:5},(function(t,r){return o("span",{key:r},[o("input#star".concat(5-r,".rating-checkbox"),{type:"checkbox",value:5-r,defaultChecked:e>=5-r,name:"star",onChange:n}),o("label.full",{title:"docs feedback",htmlFor:"star".concat(5-r)},[o(a)])])}))}function c(t){var e=t.onToggleState,n=t.rating,r=t.onClick;return o("div.rating",[o("button.close",{onClick:function(){return e("feedback")}},[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12"},[o("defs",[o("filter#a",{width:"111.4%",height:"132.9%",x:"-5.7%",y:"-9.9%",filterUnits:"objectBoundingBox"},[o("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),o("feComposite",{in:"shadowBlurOuter1",in2:"SourceAlpha",operator:"out",result:"shadowBlurOuter1"}),o("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102912454 0"}),o("feMerge",[o("feMergeNode",{in:"shadowMatrixOuter1"}),o("feMergeNode",{in:"SourceGraphic"})])])]),o("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(-199 -10)"},[o("path",{fill:"#536171",fillRule:"nonzero",d:"M209.1 11.7l-.8-.8-3.3 3.3-3.3-3.3-.8.8 3.3 3.3-3.3 3.3.8.8 3.3-3.3 3.3 3.3.8-.8-3.3-3.3z"}),o("path",{d:"M198 8h14v14h-14z"})])])]),o("p.question",["Was this page helpful?"]),o("fieldset.rating-fieldset",[o(s,{rating:n,onClick:r})])])}function u(t){var e=t.onToggleState;return o("div.rating.feedback",[o("button.feedback-btn",{onClick:function(){return e("rating")}},[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},[o("defs",[o("filter#a",{width:"117.2%",height:"162.5%",x:"-8.6%",y:"-18.8%",filterUnits:"objectBoundingBox"},[o("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),o("feComposite",{in:"shadowBlurOuter1",in2:"SourceAlpha",operator:"out",result:"shadowBlurOuter1"}),o("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102912454 0"}),o("feMerge",[o("feMergeNode",{in:"shadowMatrixOuter1"}),o("feMergeNode",{in:"SourceGraphic"})])])]),o("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(-8 -9)"},[o("path",{fill:"#4A90E2",fillRule:"nonzero",d:"M28 10H12a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2z"}),o("path",{d:"M8 8h24v24H8z"})])]),"Give feedback"])])}function l(t){var e=t.onToggleState;return o("div.rating",[o("button.close",{onClick:function(){return e("feedback")}},[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12"},[o("defs",[o("filter#a",{width:"111.4%",height:"132.9%",x:"-5.7%",y:"-9.9%",filterUnits:"objectBoundingBox"},[o("feOffset",{dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),o("feComposite",{in:"shadowBlurOuter1",in2:"SourceAlpha",operator:"out",result:"shadowBlurOuter1"}),o("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.102912454 0"}),o("feMerge",[o("feMergeNode",{in:"shadowMatrixOuter1"}),o("feMergeNode",{in:"SourceGraphic"})])])]),o("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(-199 -10)"},[o("path",{fill:"#536171",fillRule:"nonzero",d:"M209.1 11.7l-.8-.8-3.3 3.3-3.3-3.3-.8.8 3.3 3.3-3.3 3.3.8.8 3.3-3.3 3.3 3.3.8-.8-3.3-3.3z"}),o("path",{d:"M198 8h14v14h-14z"})])])]),"Thanks for your feedback."])}var p=r({displayName:"Feedback",getInitialState:function(){return{rating:0,status:"rating"}},onToggleState:function(t){this.setState({status:t})},onClick:function(t){var e=parseInt(t.target.value);this.setState({rating:e,status:"thanks"});var n={full_url:window.location.href,rating:e};i.feedback("feedback",n),e<=3&&window.Intercom&&window.Intercom("show")},render:function(){switch(this.state.status){case"feedback":return o(u,{onToggleState:this.onToggleState});case"rating":return o(c,{onClick:this.onClick,onToggleState:this.onToggleState,rating:this.state.rating});case"thanks":return o(l,{onToggleState:this.onToggleState})}}});t.exports=p},424:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(5),a=n(1),s=n(21),c=n(168),u=n(119),l=n(30).ArticleMarkdown,p=n(64),f=function(t){return a(l,{md:t,copyable:!0})},d=i({displayName:"Guide",getInitialState:function(){return{article:r(this.props.loader.getPreloaded(),1)[0],alts:[]}},componentDidMount:function(){var t=this;this.state.article||this.props.loader.load().then((function(e){var n=r(e,1)[0];return t.setState({article:n})}))},render:function(){var t=this;if(!this.state.article)return a(".loader",["Loading..."]);var e=this.props.currentRoute,n=e.title,r=e.breadcrumbs,o=this.state.article,i=o.attributes,u=o.body,l=i.desc,d=i.toggles,h=function(t,e){var n=function(t){return"index-".concat(t)},r=e.reduce((function(t,e){return t[n(e.index)]=e,t}),{}),o=[],i=0;for(;t.groups.length>0;)a=void 0,s=void 0,a=function(){return Object.assign({i:i++},t.groups.shift())},s=r[n(i)],o.push(s?function(t){return{i:i,toggle:t,default:a(),alt:a()}}(s):a());var a,s;return{desc:t.desc,groups:o}}(c(u),d);return a(".guide",[a(".hero-background",[]),a(".hero",[a(p,{breadcrumbs:r}),a("h1",[n]),a("h4",[l]),a(".custom-app",[a("img.browser-window",{src:s.asset("get-started/browser-window.png")}),a("img.terminal-window",{src:s.asset("get-started/terminal-window.png")})])]),a(".body",{ref:function(e){return t.bodyEl=e}},[h.desc&&f(h.desc),a(".groups",h.groups.map((function(e){return e.toggle?t.mergedGroup(e):t.group(e)})))])])},group:function(t){return a(".group",[a("a",{id:u(t.name)}),a("h2",[t.name]),f(t.desc)])},mergedGroup:function(t){var e=this,n=t.i,r=t.toggle,o=this.state.alts,i=o.includes(n),s=i?r.defaultLabel:r.altLabel,c=i?t.alt:t.default,u="string"==typeof s&&s.length>0,l="#"+(s||"").toLowerCase().replace(/[^a-z]/g,"-");return a(".group",[a("h2",[c.name,u&&a("a",{href:l,onClick:function(t){t.preventDefault(),i?e.setState({alts:o.filter((function(t){return t!==n}))}):e.setState({alts:o.concat([n])})}},[s])]),f(c.desc)])}});t.exports=d},426:function(t,e,n){"use strict";var r=n(170);t.exports=r({spaceId:"296guvxfpn71",apiKey:"f3eb08dd7f11c613364c1ba055e38847e962b2de984d4a2a71e6d281313c1fab",apiCTs:["1VeXpTJo7qAKKiuQCceq2w","45vpL1eveUE2Im646QWk4k"],changelogCT:"1mbe7hBwXuyGokMeaogy2S"},"Changelog")},440:function(t,e,n){"use strict";var r=n(170);t.exports=r({spaceId:"5f3yvg7sjgp3",apiKey:"b16528b9f69a1dc71059f10f3e5ca46eb2efc99bc42d74f39f8192b1912b0be6",apiCTs:["api","app"],changelogCT:"changelog"},"AlphaChangelog")},441:function(t,e,n){"use strict";var r=n(5),o=n(172),i=n(171),a=n(1),s=n(30).ArticleMarkdown,c=n(84),u=n(82).scrollToHash,l=n(119),p=n(63).getJSON,f="https://cdn.contentful.com/spaces/".concat("296guvxfpn71","/entries?include=0&"),d=function(t){return p(f+t+"&access_token=f3eb08dd7f11c613364c1ba055e38847e962b2de984d4a2a71e6d281313c1fab")},h=r({displayName:"ApiChanges",getInitialState:function(){return{selectValue:"",selectBreaking:"",apis:null,changes:null}},componentDidMount:function(){var t=this;Promise.all([this.fetchApis(),this.fetchChanges()]).then((function(){return u(t.contentContainer,window.location.hash)}))},fetchApis:function(){var t=this;return d("sys.contentType.sys.id[in]=".concat("1VeXpTJo7qAKKiuQCceq2w")).then((function(e){return t.setState({apis:e&&e.items})}))},fetchChanges:function(){var t=this,e=this.state.selectValue,n="string"==typeof e&&e.length>0?e:null,r=n?"&fields.affected.sys.id=".concat(n):"",o=null===this.state.selectBreaking?"":"&fields.breakingChange=".concat(this.state.selectBreaking);return d("limit=1000&order=-fields.deployDate&content_type=".concat("upcomingChangelogEntry").concat(r).concat(o)).then((function(e){return t.setState({changes:e&&e.items})}))},render:function(){var t=this;return this.state.apis&&this.state.changes?a(".changelog",[a(".content",{ref:function(e){return t.contentContainer=e}},[a(".wrapper",[a("h1",["API Changes"]),a("label.api-selector",["See ",a("select",{value:this.state.selectBreaking,onChange:function(e){return t.setState({selectBreaking:e.target.value},t.fetchChanges)}},[a("option",{value:""},["All"]),a("option",{value:!1},["Non-breaking"]),a("option",{value:!0},["Breaking"])])," changes in ",a("select",{value:this.state.selectValue,onChange:function(e){return t.setState({selectValue:e.target.value},t.fetchChanges)}},[a("option",{value:""},["All APIs"])].concat(this.state.apis.map((function(t){return a("option",{value:t.sys.id},[t.fields.name])}))))]),this.buildChanges(this.state.changes)])])]):a(".loader",["Loa
1ding..."])},buildChanges:function(t){var e=this;if(t.length){var n=new Date;return t.map((function(t){var r=t.sys,u=t.fields;return a("div",{key:r.id},[a("h2",{id:l(u.summary)},[a("span.linked-header",[a("a",{href:"#".concat(l(u.summary))},[u.summary])])]),a("h3",["Planned for ",a(c,{date:u.deployDate})]),a(i,{breakingChange:u.breakingChange,affected:u.affected,apis:e.state.apis}),a(s,{md:u.changes}),n>new Date(u.deployDate)||a("a",{target:"_blank",href:"mailto:?Subject=".concat(encodeURIComponent("Upcoming Contentful API Changes"),"&Body=").concat(encodeURIComponent("On ".concat(o(u.deployDate,"MMM D, YYYY"),": "))).concat(encodeURIComponent("the following Contentful API changes are scheduled: ")).concat(window.location.href.split("#")[0],"#").concat(l(u.summary))},["Email this change to your team"])])}))}return a("p",["There are no changes that match these filters."])}});t.exports=h},442:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}
1var i=n(5),a=n(166),s=n(1),c=n(21),u=i({displayName:"CliOauthPage",getInitialState:function(){return{token:"Please wait...",canCopy:!1,copied:!1}},componentDidMount:function(){this.copyBtnTimer=null,this.setState({token:window.location.hash.slice(1).split("&").reduce((function(t,e){var n=e.split("="),o=r(n,2),i=o[0],a=o[1];return t[i]=a,t}),{}).access_token,canCopy:!0})},componentWillUnmount:function(){clearTimeout(this.copyBtnTimer)},render:function(){return s(".oauth-page",[s("a.logo",{href:"/"},[s("img",{src:c.asset("logo-dark.svg"),alt:"Contentful"})]),this.state.token?this.success():this.fail()])},handleCopyClick:function(t){var e=this;t.preventDefault(),clearTimeout(this.copyBtnTimer),this.setState({copied:!0,canCopy:!1}),this.copyBtnTimer=setTimeout((function(){e.setState({copied:!1,canCopy:!0})}),1500)},success:function(){var t=this.state,e=t.token,n=t.canCopy,r=t.copied;return s(".content",[s("h1",["Great! Your access token is:"]),s("input",{type:"text",readOnly:!0,value:e,onClick:function(t){return t.target&&t.target.select()}}),s("p.advice",["Keep this secure, it allows full access to all of your content."]),s("button.btn",{disabled:!n,ref:function(t){return t&&new a(t,{text:function(){return e}})},onClick:this.handleCopyClick},[r?"Copied":"Copy to clipboard"]),s("p.advice",["And paste it in the terminal."])])},fail:function(){return s(".content",[s("h1",["Something went wrong when obtaining your token"]),s("p.advice",["Please go back to the authorization page. If the problem persists, ",s("a",{href:"/support/",target:"_blank"},["please contact our support"]),"."]),s("a.btn",{href:["https://be.contentful.com/oauth/authorize","?response_type=token","&scope=content_management_manage","&client_id=".concat("9f86a1d54f3d6f85c159468f5919d6e5d27716b3ed68fd01bd534e3dea2df864"),"&redirect_uri=".concat(encodeURIComponent("https://www.contentful.com/developers/cli-oauth-page/"))].join("")},["Go back to the authorization page"])])}});t.exports=u},443:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(1),a=n(21),s=n(12),c=n(83),u=n(84);function l(t){var e=t.headline,n=t.list;return n.length?i("div",[i(".tile-headline",[i("h2",[e]),i("a.u-margin-left-auto",{href:"https://www.youtube.com/playlist?list=".concat(n[0].snippet.playlistId)},["(watch all videos)"])]),i("ul.grid",n.map((function(t){return i("li",[i(".tile.-full-height.tile-light-bg",[i("a",{href:"https://www.youtube.com/watch?v=".concat(t.snippet.resourceId.videoId,"&list=").concat(t.snippet.playlistId),rel:"nofollow noreferrer"},[i("img.tile-hero",{src:t.snippet.thumbnails.medium.url,alt:""}),i(".tile-content.-more-vertical-space",[i(u,{className:"tile-date",date:t.snippet.publishedAt}),i("h3.tile-sub-headline",[t.snippet.title])])])])])})))]):""}function p(t){var e=t.linkUrl,n=t.icon,r=t.headline,o=t.subLine;return i(".tile.tile-light-bg",[i("div",[i(s,{className:"highlighted",to:e},[i("img.logo",{src:a.asset(n)}),i("div",[r]),i("small",[o])])])])}t.exports=function(t){var e=t.loader;return i(c,{loader:e,render:function(t){var e,n,o,c=r(t,2),f=c[0],d=f.contentful,h=f.stackOverflow,g=f.youtube,m=c[1];return i(".dev-portal",[i(".hero",[i(".hero-content",["The go-to place for all developer related content and social activities."])]),i(".wrapper",[i(".grid",[p({linkUrl:"/developers/docs/",icon:"logo.svg",headline:"Documentation",subLine:"Learn more about the ecosystem"}),p({linkUrl:"/slack/",icon:"logos/slack.svg",headline:"Chat",subLine:"Talk to the community in realtime"}),p({linkUrl:"https://www.contentfulcommunity.com/",icon:"logos/discourse.svg",headline:"Forum",subLine:"Ask questions and learn from each other"})]),i(".grid -col-1",[i(".tile.tile-dark-bg",[i("a",{href:"/fast-forward/"},["Fast Forward: Our conference bringing together our most passionate digital builders"])])]),i(".grid -col-2-1",[i(".tile",[i("header.tile-header",[i("h2",["Blog posts"]),i(".tile-header-img",[i("img",{src:a.asset("icons/blogpost.svg"),role:"presentation",alt:""})])]),i(".tile-content",[i("ul.tile-list",d.blogPosts.map((function(t){return i("li",[i("a.tile-pad.tile-light-bg",{href:"/blog/".concat((n=t.fields.publishDate,new Date(n).toISOString().replace(/-/g,"/").substring(0,10)),"/").concat(t.fields.oldFileName,"/")},[i("time.tile-date",{dateTime:t.fields.publishDate},[i(u,{date:t.fields.publishDate})]),i("h3",["".concat(t.fields.title," ").concat((e=t,e.fields.authors.some((function(t){return t.fields.isCommunityAuthor}))?"(community post)":""))]),i("p",[t.fields.teaser])])]);var e,n})))]),i(s,{to:"/blog/category/developers/",className:"tile-footer"},["Read more technical content",i("img",{src:a.asset("icons/arrow.svg"),role:"presentation",alt:""})])]),i(".tile",[i("header.tile-header",[i("h2",["Developer newsletter"]),i(".tile-header-img",[i("img",{src:a.asset("icons/blogpost.svg"),role:"presentation",alt:""})])]),i(".tile-content.-vertical-centered newsletter",[i("a",{href:"/resources/dev-newsletter/"},[i("img.tile-hero",{src:a.asset("icons/contribution-program.svg"),alt:""}
1)]),i("strong.tile-pad.u-text-center",["Keep up with news, events and product updates"])]),i("a.tile-footer",{href:"/resources/dev-newsletter/"},["Sign up",i("img",{src:a.asset("icons/arrow.svg"),role:"presentation",alt:""})])])]),i(".grid -col-1",[i(".tile",[i("header.tile-header",[i("div",[i("h2",["Contentful Videos"]),i("small",["Static Sites, GraphQL and Serverless"])]),i(".tile-header-img",[i("img",{src:a.asset("icons/talk.svg"),role:"presentation",alt:""})])]),i(".tile-content.-full-height.-more-space",[(e={headline:"Tutorials",list:m},n=e.headline,o=e.list,i("div",[i(".tile-headline",[i("h2",[n]),i(s,{to:"/developers/videos/",className:"u-margin-left-auto"},["(watch all tutorials)"])]),o.length?i("ul.grid",o.map((function(t){return i("li",[i(".tile.-full-height.tile-light-bg",[i(s,{to:"/developers/videos/".concat(t.fields.slug,"/")},[i("img.tile-hero",{src:t.fields.thumbnail.fields.file.url,alt:""}),i(".tile-content.-more-vertical-space",[i(u,{className:"tile-date",date:t.fields.publishDate}),i("h3.tile-sub-headline",[t.fields.desc])])])])])}))):""])),l({headline:"Livestreams",list:g.livestreams}),l({headline:"Highlights",list:g.highlights}),l({headline:"Static Sites",list:g.staticSites})])])]),i(".grid -col-1-2",[i(".tile",[i("header.tile-header",[i("h2",["Upcoming Contentful Events"]),i(".tile-header-img",[i("img",{src:a.asset("icons/meetup.svg"),role:"presentation",alt:""})])]),d.meetups.length?i(".tile-content",[i("ul.tile-list",d.meetups.map((function(t){var e=t.fields;return i("li.tile-light-bg",[i("a.tile-pad",{href:"/events/".concat(e.slug,"/")},[i(u,{className:"tile-date",date:e.startTime}),i("h4",[e.name]),i("p",[e.summary])])])})))]):i(".tile-content.-more-vertical-space",[i("p.tile-pad",["Check back soon for more meetups."])])]),i(".tile",[i("header.tile-header",[i("div",[i("h2",["Stack Overflow"]),i("small",["Questions"])]),i(".tile-header-img",[i("img",{src:a.asset("icons/leaderboard.svg"),role:"presentation",alt:""})])]),i(".tile-content",[i("ul.tile-list",h.questions.map((function(t){return i("li.tile-light-bg",[i("a.tile-pad",{href:t.link},[i(u,{className:"tile-date",date:new Date(1e3*t.creationDate)}),i("h3",[t.title]),t.answerCount?"":i("span.btn.inline.small",{href:t.link},["Be the first to answer!"])])])})))]),i("a.tile-footer",{href:"https://stackoverflow.com/questions/tagged/contentful"},["More questions on Stack Overflow",i("img",{src:a.asset("icons/arrow.svg"),role:"presentation",alt:""})])])])])])}})}},444:function(t,e,n){"use strict";function r(t){return c(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||i()}function o(t,e){return c(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||a(t,e)||i()}function i(){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(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t){if(Array.isArray(t))return t}var u=n(1),l=n(76),p=n(21),f=n(83),d=n(12),h=n(175).loadWistiaScript,g=n(445),m=n(30).Markdown;function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";window.location.hash=t}t.exports=function(t){var e=t.currentRoute,n=t.loader,i=e.videoPageId;return u(f,{loader:n,onLoad:h,render:function(t){var e=o(t,1),n=o(e[0].filter((function(t){return t.sys.id===i})),1)[0];if(!n)return u(".bits-and-bytes",[u(".wrapper",[u("h2",["Looks like you're running in dev mode."]),"Please provide env variables CONTENTFUL_DEVREL_ACCESS_TOKEN, CONTENTFUL_MARKETING_ACCESS_TOKEN & YOUTUBE_KEY to see these videos."])]);var a,s=r((a=n)?a.fields.videos:[]),c=s[0],f=s.slice(1),h=n.fields,y=c&&c.fields.slug,b=h.title,w=h.landingPageCopy,S=h.callToAction;return u(".bits-and-bytes",[u(".wrapper",[u(".hero",[u(".header",[u("div",[u("h2",[b]),u(m,{md:w}),S?u(d,{to:S.fields.url,className:"btn"},[S.fields.text]):""]),u("div.u-text-center",[c&&u(g,{video:c.fields,showOnLoad:l&&window.location.hash==="#".concat(y),onPopOverShow:function(){return v(y)},onPopOverHide:function(){return window.location.hash==="#".concat(y)&&v()}}),c&&u("h3",[c.fields.title])])])]),u(".grid",[f.map((function(t){var e=t.fields,n=t.sys,r=e.slug;return u(g,{includeFooter:!0,video:e,key:n.id,showOnLoad:l&&window.location.hash==="#".concat(r),onPopOverShow:function(){return v(r)},onPopOverHide:function(){return window.location.hash==="#".concat(r)&&v(r)}})})),u(".tile.-blue",[u(".tile-image",[u("img",{src:p.asset("get-started/guide-terminal-window.jpg"),alt:""})]),u(d,{className:"tile-footer",to:"/developers/docs/tutorials/general/get-started/"}
1,['Try the Contentful CLI "Getting started" guide now'])])]),u(".grid -col-1",[u(".tile.tile-dark-bg",[u(d,{to:"/developers/videos/"},["Watch more video tutorials"])])])])])}})}},445:function(t,e,n){"use strict";var r=n(5),o=n(14),i=n(1),a=n(76),s=n(175).WistiaVideoContainer,c=function(){},u=r({displayName:"VideoTile",componentDidMount:function(){a&&window.location.hash==="#".concat(this.props.video.slug)&&(this.showOnLoad=!0)},videoHandleAvailable:function(t){var e=this.props,n=e.showOnLoad,r=e.onPopOverShow,o=e.onPopOverHide;t.bind("popovershow",(function(){r()})),t.bind("popoverhide",(function(){o()})),n&&t.popover.show()},render:function(){var t=this.props,e=t.video,n=t.includeFooter;return i(".tile",[i("div",[i(".tile-image",[i(s,{wistiaId:e.wistiaId,onWistiaVideoHandle:this.videoHandleAvailable})])]),n&&i(".tile-footer.no-border",[e.title])])}});u.defaultProps={includeFooter:!1,showOnLoad:!1,onPopOverShow:c,onPopOverHide:c},u.propTypes={includeFooter:o.bool,showOnLoad:o.bool,onPopOverShow:o.func,onPopOverHide:o.func,video:o.shape({wistiaId:o.string.isRequired,title:o.string.isRequired}).isRequired},t.exports=u},446:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(1),a=n(83),s=n(84),c=n(12);t.exports=function(t){var e=t.loader;return i(a,{loader:e,render:function(t){var e=r(t,1)[0];return i(".bits-and-bytes",[i(".wrapper",[i("ul.grid",e.map((function(t){return i("li",[i(".tile.-full-height.tile-light-bg",[i(c,{to:"/developers/videos/".concat(t.fields.slug,"/")},[i("img.tile-hero",{src:t.fields.thumbnail.fields.file.url,alt:""}),i(".tile-content.-more-vertical-space",[i(s,{className:"tile-date",date:t.fields.publishDate}),i("h3.tile-sub-headline",[t.fields.desc])])])])])})))])])}})}},447:function(t,e,n){"use strict";var r=n(1),o=n(51),i=n(167),a=n(117),s=n(64),c=n(12);t.exports=function(t){var e=t.currentRoute,n=t.routes,u=e.title,l=e.breadcrumbs,p=e.desc,f=e.children.map((function(t){return i(n,t)})).filter(o.contentVisible);return r(".article",[r(".article-toc",[r(a,{breadcrumbs:l})]),r(".content",[r(".wrapper",[r(s,{breadcrumbs:l}),r("h1",[u]),r("p",[p]),r("ul",f.map((function(t){var e=t.path,n=t.title;return r("li",[r(c,{to:e},[n])])})))])])])}},448:function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(21),a=n(449).mobileTEAUrl,s=n(450),c=r({displayName:"teaMobile",getInitialState:function(){return{qrUrl:null}},componentDidMount:function(){var t=(window.location.search||"?").slice(1),e=a(t);this.setState({qrUrl:e})},render:function(){var t=this.state.qrUrl;return o("div",t?[o(".app-root",[o(".app-nav",[o(".logo",[o("a",{href:"/",title:"Back to Contentful.com",className:"tea-mobile-link-logo","data-tooltip":"Contentful.com"},[o("img",{src:i.asset("logo-white.svg")})])])])]),o(".tea-mobile-container",[o(".tea-mobile-column-left",[o("div",[o("h1.tea-mobile-heading",["To connect to your space on your phone:"]),o("ol.tea-mobile-list",[o("li",["Open Contentful Reference app on your phone"]),o("li",[o("span",["Tap "]),o("strong",["Settings"]),o("span",[" on your phone and select "]),o("strong",["Scan QR code"])]),o("li",["Point your phone to this screen to capture the code"])])]),o("div.tea-mobile-download-section",[o("p.tea-mobile-text",["Get the app"]),o("a",{href:"https://itunes.apple.com/app/contentful-reference/id1333721890"},[o("img",{src:i.asset("apple-store-dark.svg"),alt:"Download from the Apple App Store"})]),o("a",{href:"https://play.google.com/store/apps/details?id=com.contentful.tea.kotlin"},[o("img",{src:i.asset("google-store-dark.svg"),alt:"Download from the Google Play Store"})])])]),o(".tea-mobile-column-right",[o(s,{value:t,size:384})])])]:["Loading..."])}});t.exports=c},449:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=["space_id","preview_token","delivery_token","editorial_features","api","courses","lessons","categories"];t.exports.extractData=function(t){if("string"==typeof t)return t.split("&").filter((function(t){return t.includes("=")})).map((function(t){return t.split("=")})).filter((function(t){var e=a(t,1)[0];return c.includes(e)})).reduce((function(t,e){var n=a(e,2),r=n[0],s=n[1];return o(o({},t),{},i({},r,s))}),{})},t.exports.mobileTEAUrl=function(e){var n=t.exports.extractData(e);if(void 0!==n){var r="the-example-app-mobile://",o=[],i=[["space_id",n.space_id],["preview_token",n.preview_token],["delivery_token",n.delivery_token],["editorial_features",n.editorial_features],["api",n.api]].concat(o).map((function(t){return t.join("=")})).join("&");return n.courses||n.lessons||n.categories?n.courses||n.lessons||!n.categories?!n.courses||n.lessons||n.categories?n.courses&&n.lessons&&!n.categories?"".concat(r,"courses/").concat(n.courses,"/lessons/").concat(n.lessons,"?").concat(i):void 0:"".concat(r,"courses/").concat(n.courses,"?").concat(i):"".concat(r,"courses/categories/").concat(n.categories,"?").concat(i):"".concat(r,"?").concat(i)}}},456:function(t,e,n){"use strict";var r=n(1),o=n(12),i=n(457);t.exports=function(t){var e=t.currentRoute,n=t.nav;return r("header",[r(".app-section-header.docs-header",n.map((function(t){return r(o,{to:t.path,className:e.breadcrumbs.includes(t)?"-active":""},[t.title])}))),r(i)])}},457:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n(5),a=n(458).documentToHtmlString,s=n(116),c=n(1),u=n(63).getJSON,l=s.stringify({content_type:"docBanner",limit:1,order:"sys.updatedAt","fields.page[in]":"Both,Dev docs",access_token:"PAic0VCq3PyZdtP8DCZQhTC8RNzo26wOiV4q-u9wlpw"});var p=i({displayName:"PromoBanner",getInitialState:function(){return{loaded:!1,title:"",icon:"",content:""}},componentDidMount:function(){var t=this;u("".concat("https://cdn.contentful.com/spaces/aeu1amk9b600/entries","?").concat(l)).then((function(e){var n,o,i=r(e.items,1)[0];i&&t.setState({loaded:!0,title:i.fields.header,icon:!!i.fields.icon&&(n=e.includes.Asset,o=i.fields.icon.sys.id,o?n.find((function(t){return t.sys.id===o})):null),content:a(i.fields.bodyText)})}))},render:function(){return this.state.loaded?c(".promo-banner",[c(".promo-banner-icon",[this.state.icon&&c("img.promo-banner-icon-img",{alt:"",src:"https:".concat(this.state.icon.fields.file.url)})]),c(".promo-banner-body",[c("h3.promo-banner-title",[this.state.title]),c(".promo-banner-content",{dangerouslySetInnerHTML:{__html:this.state.content}})])]):null}});t.exports=p},459:function(t,e,n){"use strict";var r=n(1),o=n(12),i=n(159);t.exports=function(t){var e=t.currentRoute,n=t.is404,a=e.breadcrumbs,s=a.length<2?e:a[1];return r(".app-section-header",[r("h1",[n&&e.title,!n&&r(o,{to:s.path},[s.title])]),r(".side-content",[r(i,{currentRoute:e})])])}},51:function(t,e,n){"use strict";var r=n(150);t.exports={init:function(){var t=r.get("preview");o.includes(t)||r.remove("preview");var e=new URL(window.location),n=e.searchParams.get("preview");n&&o.includes(n)&&(r.set("preview",n),e.searchParams.delete("preview"),window.history.replaceState(null,null,e.toString()))},contentVisible:function(t){return!t.previewOnly||r.get("preview")===t.previewOnly},assertValidFlag:function(t){if(t&&!o.includes(t))throw new Error('Unknown preview flag "'.concat(t,'". Please add it to "src/feature-flags.js"'))}};var o=["user-management-alpha","apps-platform","tasks-automation-with-webhooks","workflows-eap"]},52:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(11).createContext,s=n(1),c=n(152).getDisplayName,u=a({prefetch:function(){},isPathInternal:function(){return!1},navigate:function(){}}),l=u.Provider,p=u.Consumer;t.exports={NavigationContextProvider:l,withNavigationContext:function(t){function e(e){return s(p,[function(n){return s(t,o(o({},e),{},{navigationContext:n}),[e.children])}])}return e.displayName="withNavigationContext(".concat(c(t),")"),e}}},53:function(t,e,n){"use strict";t.exports={DEVELOPERS_ROOT:"/developers/",DOCS_ROOT:"/developers/docs/",API_ALPHA_PREFIXES:[],API_BETA_PREFIXES:[],CONTENT_TREE_GLOBAL:"_DOC_APP_CONTENT_TREE"}},61:function(t,e,n){"use strict";var r=new Set;t.exports=function(t,e){if(!r.has(t)){var n=document.createElement("script");n.async=!0,n.src=t,e&&"function"==typeof e&&(n.onload=e);var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o),r.add(t)}}},62:function(t,e,n){"use strict";var r={HOME:"home",TOP_LEVEL_INDEX:"top-level-index",TUTORIALS_INDEX:"tutorials-index",SECTION_INDEX:"section-index",APIB:"apib",ARTICLE:"article",GUIDE:"guide",CHANGELOG:"changelog",ALPHA_CHANGELOG:"alpha-changelog",API_CHANGES:"api-changes",OAUTH:"oauth",PORTAL:"portal",VIDEO_PAGE:"video-page",VIDEO_PORTAL:"video-portal",LIST_CHILDREN:"list-children",TEA_MOBILE:"tea-mobile",REF:"ref"},o=[r.TOP_LEVEL_INDEX,r.SECTION_INDEX,r.TUTORIALS_INDEX],i=[r.ARTICLE,r.GUIDE];t.exports=Object.assign({},r,{isValid:function(t){return Object.values(r).some((function(e){return e===t}))},isIndex:function(t){return o.includes(t)},isMarkdown:function(t){return i.includes(t)}})},63:function(t,e,n){"use strict";var r=n(160);function o(t){return t.json()}function i(t){if(!t.ok){var e=new Error(t.statusMessage);return e.response=t,t.status&&(e.code=t.status),Promise.reject(e)}return t}function a(t){return r(t).then(i)}t.exports={get:a,getBinary:function(t){return a(t).then((function(t){return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))},getJSON:function(t){return a(t).then(o)}}},64:function(t,e,n){"use strict";var r=n(1),o=n(12);t.exports=function(t){var e=t.breadcrumbs;return r(".breadcrumbs",e.map((function(t,n){return n<e.length-1?[r(o,{to:t.path},[t.title])," / "]:[t.title]})).reduce((function(t,e){return t.concat(e)}),[]))}},76:function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=r},77:function(t,e,n){"use strict";var r=n(1),o={search:["M15.18 14.24c1.172-1.408 1.91-3.218 1.91-5.195C17.09 4.62 13.47 1 9.044 1S1 4.62 1 9.045c0 4.424 3.62 8.044 8.045 8.044a7.932 7.932 0 0 0 5.195-1.91l3.62 3.62a.662.662 0 0 0 .47.2.662.662 0 0 0 .47-.2.648.648 0 0 0 0-.94l-3.62-3.62zm-6.135 1.542c-3.687 0-6.704-3.017-6.704-6.704S5.36 2.374 9.046 2.374 15.75 5.39 15.75 9.078s-3.018 6.704-6.705 6.704z"],link:["M17.615 1h-4.153v1.385h3.184L11.523 7.37l1.108 1.107 4.985-5.123v3.184H19V1z","M16.23 7.923v8.308c0 .83-.553 1.385-1.384 1.385H3.77c-.83 0-1.384-.553-1.384-1.384V5.155c0-.83.553-1.385 1.384-1.385h8.308V2.384h-8.31A2.777 2.777 0 0 0 1 5.155V16.23A2.777 2.777 0 0 0 3.77 19h11.076a2.777 2.777 0 0 0 2.77-2.77V7.924H16.23z"],support:["M17.802 10.625h.323v-1.25h-.323a.5.5 0 0 1-.016 0h-4.212a.5.5 0 1 1 0-1h3.62a7.386 7.386 0 0 0-5.57-5.57v3.62a.5.5 0 1 1-1 0v-4.21a.5.5 0 0 1 0-.016v-.324h-1.25V2.2a.5.5 0 0 1 0 .015v4.2a.5.5 0 0 1-1 0v-3.61a7.386 7.386 0 0 0-5.57 5.57h3.598a.5.5 0 0 1 0 1h-4.19a.5.5 0 0 1-.016 0h-.32v1.25h.32a.5.5 0 0 1 .016 0h4.202a.5.5 0 1 1 0 1h-3.61a7.385 7.385 0 0 0 5.57 5.57v-3.62a.5.5 0 1 1 1 0v4.212a.5.5 0 0 1 0 .016v.322h1.25v-.322a.5.5 0 0 1 0-.016v-4.212a.5.5 0 1 1 1 0v3.62a7.384 7.384 0 0 0 5.57-5.57h-3.632a.5.5 0 1 1 0-1h4.224a.5.5 0 0 1 .016 0zm.415 1a8.382 8.382 0 0 1-6.592 6.593v.407a.5.5 0 0 1-.5.5h-2.25a.5.5 0 0 1-.5-.5v-.407a8.383 8.383 0 0 1-6.593-6.593h-.407a.5.5 0 0 1-.5-.5v-2.25a.5.5 0 0 1 .5-.5h.407a8.385 8.385 0 0 1 6.593-6.592v-.408a.5.5 0 0 1 .5-.5h2.25a.5.5 0 0 1 .5.5v.408a8.384 8.384 0 0 1 6.592 6.592h.408a.5.5 0 0 1 .5.5v2.25a.5.5 0 0 1-.5.5h-.408z","M10 14.25a4.25 4.25 0 1 1 0-8.5 4.25 4.25 0 0 1 0 8.5zm0-1a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5z"]};t.exports=function(t){var e=t.size,n=void 0===e?20:e,i=t.name,a=t.className;if(!o[i])throw new Error('No "'.concat(i,'" icon.'));return r(".icon",{className:a,style:{display:"inline-block",width:"".concat(n,"px"),height:"".concat(n,"px")}},[r("svg",{style:{display:"block",fill:"currentColor"}
1,width:"".concat(n),height:"".concat(n),viewBox:"0 0 ".concat(20," ").concat(20)},o[i].map((function(t){return r("path",{d:t})})))])}},82:function(t,e,n){"use strict";t.exports={scrollToHash:function(t,e){if(t&&"string"==typeof e&&e.length>1){var n=e.split("/").join("\\/");try{t.querySelector(n).scrollIntoView()}catch(t){}}}}},83:function(t,e,n){"use strict";var r=n(5),o=n(14),i=n(1),a=r({displayName:"ExternalData",getInitialState:function(){var t=this.props.loader;return{data:t.isFullyPreloaded()?t.getPreloaded():null}},componentDidMount:function(){var t=this;this.state.data?this.handleOnLoad():this.props.loader.load().then((function(e){t.setState({data:e}),t.handleOnLoad()}))},handleOnLoad:function(){this.props.onLoad&&this.props.onLoad(this.state.data)},render:function(){var t=this.state.data;return t?this.props.render(t):i(".loader",["Loading..."])}});a.propTypes={render:o.func.isRequired,loader:o.object.isRequired,onLoad:o.func},t.exports=a},84:function(t,e,n){"use strict";var r=n(1),o=n(172);t.exports=function(t){var e=t.className,n=t.date;return r("time",{className:e,dateTime:o(n,"YYYY-MM-DD")},[o(n,"MMM D, YYYY")])}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.