UNPKG

@contentstack/management

Version:

The Content Management API is used to manage the content of your Contentstack account

2 lines 516 kB
/*! For license information please see contentstack-management.js.LICENSE.txt */ (()=>{var e={83:(e,t,n)=>{e.exports={parallel:n(1804),serial:n(3851),serialOrdered:n(110)}},110:(e,t,n)=>{var r=n(1477),a=n(8326),o=n(3742);function i(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,i){var s=a(e,n);return r(e,t,s,function n(a,o){a?i(a,o):(s.index++,s.index<(s.keyedList||e).length?r(e,t,s,n):i(null,s.results))}),o.bind(s,i)},e.exports.ascending=i,e.exports.descending=function(e,t){return-1*i(e,t)}},123:(e,t,n)=>{"use strict";var r=n(4682),a=n(132),o=n(1103);e.exports={formats:o,parse:a,stringify:r}},132:(e,t,n)=>{"use strict";var r=n(3446),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),p=u?i.slice(0,u.index):i,l=[];if(p){if(!n.plainObjects&&a.call(Object.prototype,p)&&!n.allowPrototypes)return;l.push(p)}for(var f=0;n.depth>0&&null!==(u=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&a.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+i.slice(u.index)+"]")}return function(e,t,n,a){var o=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");o=Array.isArray(t)&&t[i]?t[i].length:0}for(var s=a?t:c(t,n,o),u=e.length-1;u>=0;--u){var p,l=e[u];if("[]"===l&&n.parseArrays)p=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{p=n.plainObjects?{__proto__:null}:{};var f="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,d=n.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(d,10);n.parseArrays||""!==d?!isNaN(m)&&l!==d&&String(m)===d&&m>=0&&n.parseArrays&&m<=n.arrayLimit?(p=[])[m]=s:"__proto__"!==d&&(p[d]=s):p={0:s}}s=p}return s}(l,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var p="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,t.throwOnLimitExceeded?p+1:p);if(t.throwOnLimitExceeded&&l.length>p)throw new RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var f,d=-1,m=t.charset;if(t.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?m="utf-8":"utf8=%26%2310003%3B"===l[f]&&(m="iso-8859-1"),d=f,f=l.length);for(f=0;f<l.length;++f)if(f!==d){var h,v,b=l[f],y=b.indexOf("]="),x=-1===y?b.indexOf("="):y+1;-1===x?(h=t.decoder(b,i.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,x),i.decoder,m,"key"),v=r.maybeMap(c(b.slice(x+1),t,o(n[h])?n[h].length:0),function(e){return t.decoder(e,i.decoder,m,"value")})),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=s(String(v))),b.indexOf("[]=")>-1&&(v=o(v)?[v]:v);var g=a.call(n,h);g&&"combine"===t.duplicates?n[h]=r.combine(n[h],v):g&&"last"!==t.duplicates||(n[h]=v)}return n}(e,n):e,l=n.plainObjects?{__proto__:null}:{},f=Object.keys(p),d=0;d<f.length;++d){var m=f[d],h=u(m,p[m],n,"string"==typeof e);l=r.merge(l,h,n)}return!0===n.allowSparse?l:r.compact(l)}},167:(e,t)=>{"use strict";var n;function r(e){return{text:e["#text"],itemUid:e["data-sys-entry-uid"]||e["data-sys-asset-uid"],itemType:e.type,styleType:e["sys-style-type"],attributes:e,contentTypeUid:e["data-sys-content-type-uid"]}}!function(e){e.BLOCK="block",e.INLINE="inline",e.LINK="link",e.DISPLAY="display",e.DOWNLOAD="download"}(n||(n={}));var a=n,o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};function c(e){for(var t={},n=0;n<e.attributes.length;n++)t[e.attributes.item(n).name]=e.attributes.item(n).value;return e.childNodes.forEach(function(e){var n=e;t=s(s({},t),function(e){var t={};return 3===e.nodeType?t["#text"]=e.textContent:1===e.nodeType&&(t[e.nodeName.toLowerCase()]=c(e)),t}(n))}),t}"function"==typeof SuppressedError&&SuppressedError;var u,p="documentfragmentcontainer";function l(e,t,n){return void 0===t&&(t=["p","a","strong","em","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","u","table","thead","tbody","tr","th","td","span","fragment","sup","strike","br","img","colgroup","col","div"]),void 0===n&&(n=["href","title","target","alt","src","class","id","style","colspan","rowspan","content-type-uid","data-sys-asset-uid","sys-style-type","data-type","data-width","data-rows","data-cols","data-mtec"]),(e=e.replace(/\n/g,"<br />")).replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(e,n){return t.includes(n.toLowerCase())?e:""}).replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(e,r){return t.includes(r.toLowerCase())?e.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(e,t){return n.includes(t.toLowerCase())?e:""}):e})}String.prototype.forEachEmbeddedItem=function(e){var t="<".concat(p,">").concat(this.toString(),"</").concat(p,">"),n=(new DOMParser).parseFromString(t,"text/html");n.querySelectorAll(".embedded-entry").forEach(function(t){e(t.outerHTML,r(c(t)))}),n.querySelectorAll(".embedded-asset").forEach(function(t){e(t.outerHTML,r(c(t)))})};var f;(u={})[a.BLOCK]=function(e){var t=l(e.title||e.uid),n=l(e._content_type_uid||(e.system?e.system.content_type_uid:""));return"<div><p>".concat(t,"</p><p>Content type: <span>").concat(n,"</span></p></div>")},u[a.INLINE]=function(e){var t=l(e.title||e.uid);return"<span>".concat(t,"</span>")},u[a.LINK]=function(e,t){var n=e.url?encodeURI(l(e.url)):null,r=l(t.text||e.title||e.uid||(e.system?e.system.uid:"")),a=n?' href="'.concat(n,'"'):"";return"<a".concat(a,">").concat(r,"</a>")},u[a.DISPLAY]=function(e,t){var n=e.url?encodeURI(l(e.url)):null,r=l(t.attributes.alt||e.title||e.filename||e.uid||(e.system?e.system.uid:"")),a=n?' src="'.concat(n,'"'):"";return"<img".concat(a,' alt="').concat(r,'" />')},u[a.DOWNLOAD]=function(e,t){var n=e.url?encodeURI(l(e.url)):null,r=l(t.text||e.title||e.uid||(e.system?e.system.content_type_uid:"")),a=n?' href="'.concat(n,'"'):"";return"<a".concat(a,">").concat(r,"</a>")};!function(e){e.DOCUMENT="doc",e.PARAGRAPH="p",e.LINK="a",e.IMAGE="img",e.EMBED="embed",e.HEADING_1="h1",e.HEADING_2="h2",e.HEADING_3="h3",e.HEADING_4="h4",e.HEADING_5="h5",e.HEADING_6="h6",e.ORDER_LIST="ol",e.UNORDER_LIST="ul",e.LIST_ITEM="li",e.FRAGMENT="fragment",e.HR="hr",e.TABLE="table",e.TABLE_HEADER="thead",e.TABLE_BODY="tbody",e.TABLE_FOOTER="tfoot",e.TABLE_ROW="tr",e.TABLE_HEAD="th",e.TABLE_DATA="td",e.COL_GROUP="colgroup",e.COL="col",e.BLOCK_QUOTE="blockquote",e.CODE="code",e.TEXT="text",e.REFERENCE="reference"}(f||(f={}));var d,m=f;!function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CLASSNAME_OR_ID="classnameOrId",e.STRIKE_THROUGH="strikethrough",e.INLINE_CODE="inlineCode",e.SUBSCRIPT="subscript",e.SUPERSCRIPT="superscript",e.BREAK="break"}(d||(d={}));var h,v=d,b=function(){};(function(e){function t(){var t=e.call(this)||this;return t.type=m.DOCUMENT,t}i(t,e)})(b),function(e){function t(t){var n=e.call(this)||this;return n.text=t,n}i(t,e)}(b);function y(e,t){var n;return null===(n=e.attrs)||void 0===n?void 0:n[t]}function x(e,t){var n,r=null===(n=e.attrs)||void 0===n?void 0:n[t];return"string"==typeof r?r:void 0}function g(e){if(!e.attrs)return"";var t=[];return e.attrs.style&&t.push(' style="'.concat(e.attrs.style,'"')),e.attrs["class-name"]&&t.push(' class="'.concat(e.attrs["class-name"],'"')),e.attrs.id&&t.push(' id="'.concat(e.attrs.id,'"')),t.join("")}(h={})[m.DOCUMENT]=function(){return""},h[m.PARAGRAPH]=function(e,t){return"<p".concat(g(e),">").concat(l(t(e.children)),"</p>")},h[m.LINK]=function(e,t){var n=l(x(e,"href")||x(e,"url")||""),r=x(e,"target"),a=r?' target="'.concat(r,'"'):"";return"<a".concat(g(e)).concat(n?' href="'.concat(n,'"'):"").concat(a,">").concat(l(t(e.children)),"</a>")},h[m.IMAGE]=function(e,t){var n=x(e,"src")||x(e,"url"),r=n?encodeURI(l(n)):"";return"<img".concat(g(e)).concat(r?' src="'.concat(r,'"'):""," />").concat(l(t(e.children)))},h[m.EMBED]=function(e,t){var n=x(e,"src")||x(e,"url"),r=n?encodeURI(l(n)):"";return"<iframe".concat(g(e)).concat(r?' src="'.concat(r,'"'):"",">").concat(l(t(e.children)),"</iframe>")},h[m.HEADING_1]=function(e,t){return"<h1".concat(g(e),">").concat(l(t(e.children)),"</h1>")},h[m.HEADING_2]=function(e,t){return"<h2".concat(g(e),">").concat(l(t(e.children)),"</h2>")},h[m.HEADING_3]=function(e,t){return"<h3".concat(g(e),">").concat(l(t(e.children)),"</h3>")},h[m.HEADING_4]=function(e,t){return"<h4".concat(g(e),">").concat(l(t(e.children)),"</h4>")},h[m.HEADING_5]=function(e,t){return"<h5".concat(g(e),">").concat(l(t(e.children)),"</h5>")},h[m.HEADING_6]=function(e,t){return"<h6".concat(g(e),">").concat(l(t(e.children)),"</h6>")},h[m.ORDER_LIST]=function(e,t){return"<ol".concat(g(e),">").concat(l(t(e.children)),"</ol>")},h[m.FRAGMENT]=function(e,t){return"<fragment>".concat(l(t(e.children)),"</fragment>")},h[m.UNORDER_LIST]=function(e,t){return"<ul".concat(g(e),">").concat(l(t(e.children)),"</ul>")},h[m.LIST_ITEM]=function(e,t){return"<li".concat(g(e),">").concat(l(t(e.children)),"</li>")},h[m.HR]=function(){return"<hr>"},h[m.TABLE]=function(e,t){var n="",r=y(e,"colWidths");if(r&&Array.isArray(r)){var a=r.reduce(function(e,t){return e+t},0);n="<".concat(m.COL_GROUP,' data-width="').concat(a,'">'),r.forEach(function(e){var t=e/a*100;n+="<".concat(m.COL,' style="width:').concat(t.toFixed(2),'%"/>')}),n+="</".concat(m.COL_GROUP,">")}return"<table".concat(g(e),">").concat(n).concat(l(t(e.children)),"</table>")},h[m.TABLE_HEADER]=function(e,t){return"<thead".concat(g(e),">").concat(l(t(e.children)),"</thead>")},h[m.TABLE_BODY]=function(e,t){return"<tbody".concat(g(e),">").concat(l(t(e.children)),"</tbody>")},h[m.TABLE_FOOTER]=function(e,t){return"<tfoot".concat(g(e),">").concat(l(t(e.children)),"</tfoot>")},h[m.TABLE_ROW]=function(e,t){return"<tr".concat(g(e),">").concat(l(t(e.children)),"</tr>")},h[m.TABLE_HEAD]=function(e,t){if(y(e,"void"))return"";var n=y(e,"rowSpan"),r=y(e,"colSpan"),a=n?' rowspan="'.concat(n,'"'):"",o=r?' colspan="'.concat(r,'"'):"";return"<th".concat(a).concat(o).concat(g(e),">").concat(l(t(e.children)),"</th>")},h[m.TABLE_DATA]=function(e,t){if(y(e,"void"))return"";var n=y(e,"rowSpan"),r=y(e,"colSpan"),a=n?' rowspan="'.concat(n,'"'):"",o=r?' colspan="'.concat(r,'"'):"";return"<td".concat(a).concat(o).concat(g(e),">").concat(l(t(e.children)),"</td>")},h[m.BLOCK_QUOTE]=function(e,t){return"<blockquote".concat(g(e),">").concat(l(t(e.children)),"</blockquote>")},h[m.CODE]=function(e,t){return"<code".concat(g(e),">").concat(l(t(e.children)),"</code>")},h.reference=function(e,t){var n=y(e,"type"),r=y(e,"display-type");if(("entry"===n||"asset"===n)&&"link"===r){var a=x(e,"href")||x(e,"url")||"",o=x(e,"target"),i=x(e,"asset-uid"),s=g(e);return a&&(s+=' href="'.concat(a,'"')),o&&(s+=' target="'.concat(o,'"')),"asset"===n&&(s+=' type="asset" content-type-uid="sys_assets"',i&&(s+=' data-sys-asset-uid="'.concat(i,'"')),s+=' sys-style-type="download"'),"<a".concat(s,">").concat(l(t(e.children)),"</a>")}if("asset"===n){var c=x(e,"asset-link"),u=c?encodeURI(c):"",p=y(e,"redactor-attributes"),f=null==p?void 0:p.alt,d=x(e,"link"),m=(o=x(e,"target")||"",(null==p?void 0:p["asset-caption"])||x(e,"asset-caption")||""),h=x(e,"style"),v=(i=x(e,"asset-uid"),x(e,"class-name")),b=i?' asset_uid="'.concat(i,'"'):"",w=v?' class="'.concat(l(v),'"'):"",k=u?' src="'.concat(l(u),'"'):"",O=f?' alt="'.concat(f,'"'):"",j="_blank"===o?' target="_blank"':"",_=h?' style="'.concat(h,'"'):"",S="<img".concat(b).concat(w).concat(k).concat(O).concat(j).concat(_," />"),P=h?' style="'.concat(h,'"'):"";return"<figure".concat(P,">")+(d?'<a href="'.concat(d,'" target="').concat(o||"",'">'):"")+S+(d?"</a>":"")+(m?"<figcaption>".concat(m,"</figcaption>"):"")+"</figure>"}return""},h.default=function(e,t){return l(t(e.children))},h[v.BOLD]=function(e){return"<strong>".concat(l(e),"</strong>")},h[v.ITALIC]=function(e){return"<em>".concat(l(e),"</em>")},h[v.UNDERLINE]=function(e){return"<u>".concat(l(e),"</u>")},h[v.STRIKE_THROUGH]=function(e){return"<strike>".concat(l(e),"</strike>")},h[v.INLINE_CODE]=function(e){return"<span data-type='inlineCode'>".concat(l(e),"</span>")},h[v.SUBSCRIPT]=function(e){return"<sub>".concat(l(e),"</sub>")},h[v.SUPERSCRIPT]=function(e){return"<sup>".concat(l(e),"</sup>")},h[v.BREAK]=function(e){return/^\n+$/.test(e)?l(e):"<br />".concat(l(e))},h[v.CLASSNAME_OR_ID]=function(e,t,n){return"<span".concat(t?' class="'.concat(t,'"'):"").concat(n?' id="'.concat(n,'"'):"",">").concat(l(e),"</span>")};var w={regions:[{id:"na",name:"AWS North America",cloudProvider:"AWS",location:"North America",alias:["na","us","aws-na","aws_na","NA","US","AWS-NA","AWS_NA"],isDefault:!0,endpoints:{application:"https://app.contentstack.com",contentDelivery:"https://cdn.contentstack.io",contentManagement:"https://api.contentstack.io",auth:"https://auth-api.contentstack.com",graphqlDelivery:"https://graphql.contentstack.com",preview:"https://rest-preview.contentstack.com",graphqlPreview:"https://graphql-preview.contentstack.com",images:"https://images.contentstack.io",assets:"https://assets.contentstack.io",automate:"https://automations-api.contentstack.com",launch:"https://launch-api.contentstack.com",developerHub:"https://developerhub-api.contentstack.com",brandKit:"https://brand-kits-api.contentstack.com",genAI:"https://ai.contentstack.com/brand-kits",personalizeManagement:"https://personalize-api.contentstack.com",personalizeEdge:"https://personalize-edge.contentstack.com"}},{id:"eu",name:"AWS Europe",cloudProvider:"AWS",location:"Europe",alias:["eu","aws-eu","aws_eu","EU","AWS-EU","AWS_EU"],isDefault:!1,endpoints:{application:"https://eu-app.contentstack.com",contentDelivery:"https://eu-cdn.contentstack.com",contentManagement:"https://eu-api.contentstack.com",auth:"https://eu-auth-api.contentstack.com",graphqlDelivery:"https://eu-graphql.contentstack.com",preview:"https://eu-rest-preview.contentstack.com",graphqlPreview:"https://eu-graphql-preview.contentstack.com",images:"https://eu-images.contentstack.com",assets:"https://eu-assets.contentstack.com",automate:"https://eu-prod-automations-api.contentstack.com",launch:"https://eu-launch-api.contentstack.com",developerHub:"https://eu-developerhub-api.contentstack.com",brandKit:"https://eu-brand-kits-api.contentstack.com",genAI:"https://eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://eu-personalize-api.contentstack.com",personalizeEdge:"https://eu-personalize-edge.contentstack.com"}},{id:"au",name:"AWS Australia",cloudProvider:"AWS",location:"Australia",alias:["au","aws-au","aws_au","AU","AWS-AU","AWS_AU"],isDefault:!1,endpoints:{application:"https://au-app.contentstack.com",contentDelivery:"https://au-cdn.contentstack.com",contentManagement:"https://au-api.contentstack.com",auth:"https://au-auth-api.contentstack.com",graphqlDelivery:"https://au-graphql.contentstack.com",preview:"https://au-rest-preview.contentstack.com",graphqlPreview:"https://au-graphql-preview.contentstack.com",images:"https://au-images.contentstack.com",assets:"https://au-assets.contentstack.com",automate:"https://au-prod-automations-api.contentstack.com",launch:"https://au-launch-api.contentstack.com",developerHub:"https://au-developerhub-api.contentstack.com",brandKit:"https://au-brand-kits-api.contentstack.com",genAI:"https://au-ai.contentstack.com/brand-kits",personalizeManagement:"https://au-personalize-api.contentstack.com",personalizeEdge:"https://au-personalize-edge.contentstack.com"}},{id:"azure-na",name:"Azure North America",cloudProvider:"Azure",location:"North America",alias:["azure-na","azure_na","AZURE-NA","AZURE_NA"],isDefault:!1,endpoints:{application:"https://azure-na-app.contentstack.com",contentDelivery:"https://azure-na-cdn.contentstack.com",contentManagement:"https://azure-na-api.contentstack.com",auth:"https://azure-na-auth-api.contentstack.com",graphqlDelivery:"https://azure-na-graphql.contentstack.com",preview:"https://azure-na-rest-preview.contentstack.com",graphqlPreview:"https://azure-na-graphql-preview.contentstack.com",images:"https://azure-na-images.contentstack.com",assets:"https://azure-na-assets.contentstack.com",automate:"https://azure-na-automations-api.contentstack.com",launch:"https://azure-na-launch-api.contentstack.com",developerHub:"https://azure-na-developerhub-api.contentstack.com",brandKit:"https://azure-na-brand-kits-api.contentstack.com",genAI:"https://azure-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-na-personalize-api.contentstack.com",personalizeEdge:"https://azure-na-personalize-edge.contentstack.com"}},{id:"azure-eu",name:"Azure Europe",cloudProvider:"Azure",location:"Europe",alias:["azure-eu","azure_eu","AZURE-EU","AZURE_EU"],isDefault:!1,endpoints:{application:"https://azure-eu-app.contentstack.com",contentDelivery:"https://azure-eu-cdn.contentstack.com",contentManagement:"https://azure-eu-api.contentstack.com",auth:"https://azure-eu-auth-api.contentstack.com",graphqlDelivery:"https://azure-eu-graphql.contentstack.com",preview:"https://azure-eu-rest-preview.contentstack.com",graphqlPreview:"https://azure-eu-graphql-preview.contentstack.com",images:"https://azure-eu-images.contentstack.com",assets:"https://azure-eu-assets.contentstack.com",automate:"https://azure-eu-automations-api.contentstack.com",launch:"https://azure-eu-launch-api.contentstack.com",developerHub:"https://azure-eu-developerhub-api.contentstack.com",brandKit:"https://azure-eu-brand-kits-api.contentstack.com",genAI:"https://azure-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-eu-personalize-api.contentstack.com",personalizeEdge:"https://azure-eu-personalize-edge.contentstack.com"}},{id:"gcp-na",name:"GCP North America",cloudProvider:"GCP",location:"North America",alias:["gcp-na","gcp_na","GCP-NA","GCP_NA"],isDefault:!1,endpoints:{application:"https://gcp-na-app.contentstack.com",contentDelivery:"https://gcp-na-cdn.contentstack.com",contentManagement:"https://gcp-na-api.contentstack.com",auth:"https://gcp-na-auth-api.contentstack.com",graphqlDelivery:"https://gcp-na-graphql.contentstack.com",preview:"https://gcp-na-rest-preview.contentstack.com",graphqlPreview:"https://gcp-na-graphql-preview.contentstack.com",images:"https://gcp-na-images.contentstack.com",assets:"https://gcp-na-assets.contentstack.com",automate:"https://gcp-na-automations-api.contentstack.com",launch:"https://gcp-na-launch-api.contentstack.com",developerHub:"https://gcp-na-developerhub-api.contentstack.com",brandKit:"https://gcp-na-brand-kits-api.contentstack.com",genAI:"https://gcp-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-na-personalize-api.contentstack.com",personalizeEdge:"https://gcp-na-personalize-edge.contentstack.com"}},{id:"gcp-eu",name:"GCP Europe",cloudProvider:"GCP",location:"Europe",alias:["gcp-eu","gcp_eu","GCP-EU","GCP_EU"],isDefault:!1,endpoints:{application:"https://gcp-eu-app.contentstack.com",contentDelivery:"https://gcp-eu-cdn.contentstack.com",contentManagement:"https://gcp-eu-api.contentstack.com",auth:"https://gcp-eu-auth-api.contentstack.com",graphqlDelivery:"https://gcp-eu-graphql.contentstack.com",preview:"https://gcp-eu-rest-preview.contentstack.com",graphqlPreview:"https://gcp-eu-graphql-preview.contentstack.com",images:"https://gcp-eu-images.contentstack.com",assets:"https://gcp-eu-assets.contentstack.com",automate:"https://gcp-eu-automations-api.contentstack.com",launch:"https://gcp-eu-launch-api.contentstack.com",developerHub:"https://gcp-eu-developerhub-api.contentstack.com",brandKit:"https://gcp-eu-brand-kits-api.contentstack.com",genAI:"https://gcp-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-eu-personalize-api.contentstack.com",personalizeEdge:"https://gcp-eu-personalize-edge.contentstack.com"}}]};function k(e){if("string"==typeof e)return e.replace(/^https?:\/\//,"");var t={};for(var n in e)t[n]=k(e[n]);return t}t.bx=function(e,t,n){if(void 0===e&&(e="us"),void 0===t&&(t=""),void 0===n&&(n=!1),""===e)throw new Error("Empty region provided. Please put valid region.");var r=w,a=e.toLowerCase().trim()||"us";if(!Array.isArray(r.regions))throw new Error("Invalid Regions file. Please install the SDK again to fix this issue.");var o=function(e,t){var n=e.find(function(e){return e.id===t});return n||((n=e.find(function(e){return e.alias.some(function(e){return e.toLowerCase()===t.toLowerCase()})}))||null)}(r.regions,a);if(!o)throw new Error("Invalid region: ".concat(e));if(t){var i=o.endpoints[t];if(!i)throw new Error('Service "'.concat(t,'" not found for region "').concat(o.id,'"'));return n?k(i):i}return n?k(o.endpoints):o.endpoints}},218:e=>{"use strict";e.exports=SyntaxError},343:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},363:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},385:(e,t,n)=>{var r=n(9529)(Object.getPrototypeOf,Object);e.exports=r},386:e=>{"use strict";e.exports=Math.pow},565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6277),a=n(9359),o=n(9793),i=new o.HOTP({createDigest:r.createDigest}),s=new o.TOTP({createDigest:r.createDigest}),c=new o.Authenticator({createDigest:r.createDigest,createRandomBytes:r.createRandomBytes,keyDecoder:a.keyDecoder,keyEncoder:a.keyEncoder});t.authenticator=c,t.hotp=i,t.totp=s},663:(e,t,n)=>{var r=n(5201),a=n(3583);e.exports=function(e,t,n,o,i){return new a(r().w(e,t,n,o),i||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},677:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},703:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var a=n(6871),o=n(9023),i=n(6928),s=n(8611),c=n(5692),u=n(7016).parse,p=n(4383),l=n(2203).Stream,f=n(6982),d=n(972),m=n(83),h=n(1287),v=n(3999),b=n(5688);function y(e){if(!(this instanceof y))return new y(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],a.call(this),e=e||{})this[t]=e[t]}o.inherits(y,a),y.LINE_BREAK="\r\n",y.DEFAULT_CONTENT_TYPE="application/octet-stream",y.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var r=a.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),i=this._multiPartFooter();r(o),r(t),r(i),this._trackLength(o,t,n)}},y.prototype._trackLength=function(e,t,n){var r=0;null!=n.knownLength?r+=Number(n.knownLength):Buffer.isBuffer(t)?r=t.length:"string"==typeof t&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+y.LINE_BREAK.length,t&&(t.path||t.readable&&v(t,"httpVersion")||t instanceof l)&&(n.knownLength||this._valuesToMeasure.push(t))},y.prototype._lengthRetriever=function(e,t){v(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):p.stat(e.path,function(n,r){if(n)t(n);else{var a=r.size-(e.start?e.start:0);t(null,a)}}):v(e,"httpVersion")?t(null,Number(e.headers["content-length"])):v(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},y.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,o=this._getContentDisposition(t,n),i=this._getContentType(t,n),s="",c={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var u in"object"===r(n.header)&&b(c,n.header),c)if(v(c,u)){if(null==(a=c[u]))continue;Array.isArray(a)||(a=[a]),a.length&&(s+=u+": "+a.join("; ")+y.LINE_BREAK)}return"--"+this.getBoundary()+y.LINE_BREAK+s+y.LINE_BREAK},y.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=i.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=i.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&v(e,"httpVersion")&&(n=i.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},y.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&v(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=d.lookup(t.filepath||t.filename)),!n&&e&&"object"===r(e)&&(n=y.DEFAULT_CONTENT_TYPE),n},y.prototype._multiPartFooter=function(){return function(e){var t=y.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},y.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+y.LINE_BREAK},y.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)v(e,t)&&(n[t.toLowerCase()]=e[t]);return n},y.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},y.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},y.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(y.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},y.prototype._generateBoundary=function(){this._boundary="--------------------------"+f.randomBytes(12).toString("hex")},y.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},y.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},y.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?m.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){n?e(n):(r.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},y.prototype.submit=function(e,t){var n,r,a={method:"post"};return"string"==typeof e?(e=u(e),r=b({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(r=b(e,a)).port||(r.port="https:"===r.protocol?443:80),r.headers=this.getHeaders(e.headers),n="https:"===r.protocol?c.request(r):s.request(r),this.getLength(function(e,r){if(e&&"Unknown stream"!==e)this._error(e);else if(r&&n.setHeader("Content-Length",r),this.pipe(n),t){var a,o=function(e,r){return n.removeListener("error",o),n.removeListener("response",a),t.call(this,e,r)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n},y.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},y.prototype.toString=function(){return"[object FormData]"},h(y.prototype,"FormData"),e.exports=y},704:(e,t,n)=>{var r=n(7209),a=n(9874);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},755:(e,t,n)=>{var r=n(5514).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},897:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var a="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=a&&o&&"function"==typeof o.get?o.get:null,s=a&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&u&&"function"==typeof u.get?u.get:null,l=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,y=String.prototype.match,x=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,k=String.prototype.toLowerCase,O=RegExp.prototype.test,j=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"===r(Symbol.iterator),C="function"==typeof Symbol&&Symbol.toStringTag&&(r(Symbol.toStringTag),1)?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,H=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-P(-e):P(e);if(r!==e){var a=String(r),o=x.call(t,a.length+1);return g.call(a,n,"$&_")+"."+g.call(g.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}var I=n(5499),U=I.custom,L=K(U)?U:null,F={__proto__:null,double:'"',single:"'"},N={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function q(e,t,n){var r=n.quoteStyle||t,a=F[r];return a+e+a}function B(e){return g.call(String(e),/"/g,"&quot;")}function M(e){return!C||!("object"===r(e)&&(C in e||void 0!==e[C]))}function G(e){return"[object Array]"===J(e)&&M(e)}function W(e){return"[object RegExp]"===J(e)&&M(e)}function K(e){if(R)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,a,o){var c=n||{};if($(c,"quoteStyle")&&!$(F,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!$(c,"customInspect")||c.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return X(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return v?z(t,w):w}if("bigint"==typeof t){var O=String(t)+"n";return v?z(t,O):O}var P=void 0===c.depth?5:c.depth;if(void 0===a&&(a=0),a>=P&&P>0&&"object"===r(t))return G(t)?"[Array]":"[Object]";var A,U=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(c,a);if(void 0===o)o=[];else if(Q(o,t)>=0)return"[Circular]";function N(t,n,r){if(n&&(o=S.call(o)).push(n),r){var i={depth:c.depth};return $(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,a+1,o)}return e(t,c,a+1,o)}if("function"==typeof t&&!W(t)){var V=function(e){if(e.name)return e.name;var t=y.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Y=re(t,N);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(Y.length>0?" { "+_.call(Y,", ")+" }":"")}if(K(t)){var ae=R?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==r(t)||R?ae:Z(ae)}if((A=t)&&"object"===r(A)&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var oe="<"+k.call(String(t.nodeName)),ie=t.attributes||[],se=0;se<ie.length;se++)oe+=" "+ie[se].name+"="+q(B(ie[se].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+k.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var ce=re(t,N);return U&&!function(e){for(var t=0;t<e.length;t++)if(Q(e[t],"\n")>=0)return!1;return!0}(ce)?"["+ne(ce,U)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===J(e)&&M(e)}(t)){var ue=re(t,N);return"cause"in Error.prototype||!("cause"in t)||D.call(t,"cause")?0===ue.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ue,", ")+" }":"{ ["+String(t)+"] "+_.call(j.call("[cause]: "+N(t.cause),ue),", ")+" }"}if("object"===r(t)&&u){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:P-a});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==r(e))return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var pe=[];return s&&s.call(t,function(e,n){pe.push(N(n,t,!0)+" => "+N(e,t))}),te("Map",i.call(t),pe,U)}if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return l&&l.call(t,function(e){le.push(N(e,t))}),te("Set",p.call(t),le,U)}if(function(e){if(!f||!e||"object"!==r(e))return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return ee("WeakMap");if(function(e){if(!d||!e||"object"!==r(e))return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return ee("WeakSet");if(function(e){if(!m||!e||"object"!==r(e))return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return ee("WeakRef");if(function(e){return"[object Number]"===J(e)&&M(e)}(t))return Z(N(Number(t)));if(function(e){if(!e||"object"!==r(e)||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Z(N(E.call(t)));if(function(e){return"[object Boolean]"===J(e)&&M(e)}(t))return Z(h.call(t));if(function(e){return"[object String]"===J(e)&&M(e)}(t))return Z(N(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===J(e)&&M(e)}(t)&&!W(t)){var fe=re(t,N),de=H?H(t)===Object.prototype:t instanceof Object||t.constructor===Object,me=t instanceof Object?"":"null prototype",he=!de&&C&&Object(t)===t&&C in t?x.call(J(t),8,-1):me?"Object":"",ve=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||me?"["+_.call(j.call([],he||[],me||[]),": ")+"] ":"");return 0===fe.length?ve+"{}":U?ve+"{"+ne(fe,U)+"}":ve+"{ "+_.call(fe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return V.call(e,t)}function J(e){return v.call(e)}function Q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function X(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return X(x.call(e,0,t.maxStringLength),t)+r}var a=N[t.quoteStyle||"single"];return a.lastIndex=0,q(g.call(g.call(e,a,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function ee(e){return e+" { ? }"}function te(e,t,n,r){return e+" ("+t+") {"+(r?ne(n,r):_.call(n,", "))+"}"}function ne(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function re(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=$(e,a)?t(e[a],e):""}var o,i="function"==typeof A?A(e):[];if(R){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var c in e)$(e,c)&&(n&&String(Number(c))===c&&c<e.length||R&&o["$"+c]instanceof Symbol||(O.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<i.length;u++)D.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}},901:(e,t,n)=>{var r=n(5514).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},925:e=>{e.exports=function(){return!1}},972:(e,t,n)=>{"use strict";var r,a,o,i=n(3105),s=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,u=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&i[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!u.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),r=n&&t.extensions[n[1].toLowerCase()];return!(!r||!r.length)&&r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),r=t.extensions,a=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(i).forEach(function(e){var t=i[e],n=t.extensions;if(n&&n.length){r[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(a[c]){var u=o.indexOf(i[a[c]].source),p=o.indexOf(t.source);if("application/octet-stream"!==a[c]&&(u>p||u===p&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}})},1007:(e,t)=>{"use strict";var n=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];t.encode=function(e){Buffer.isBuffer(e)||(e=new Buffer(e));for(var t,n,r=0,a=0,o=0,i=0,s=new Buffer(8*(t=e,n=Math.floor(t.length/5),t.length%5==0?n:n+1));r<e.length;){var c=e[r];o>3?(i=(i=c&255>>o)<<(o=(o+5)%8)|(r+1<e.length?e[r+1]:0)>>8-o,r++):(i=c>>8-(o+5)&31,0==(o=(o+5)%8)&&r++),s[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(i),a++}for(r=a;r<s.length;r++)s[r]=61;return s},t.decode=function(e){var t,r=0,a=0,o=0;Buffer.isBuffer(e)||(e=new Buffer(e));for(var i=new Buffer(Math.ceil(5*e.length/8)),s=0;s<e.length&&61!==e[s];s++){var c=e[s]-48;if(!(c<n.length))throw new Error("Invalid input - it is not base32 encoded string");a=n[c],r<=3?0==(r=(r+5)%8)?(t|=a,i[o]=t,o++,t=0):t|=255&a<<8-r:(t|=255&a>>>(r=(r+5)%8),i[o]=t,o++,t=255&a<<8-r)}return i.slice(0,o)}},1008:(e,t,n)=>{var r=n(1765),a=n(2054),o=n(7560);e.exports=function(e){return r(e,o,a)}},1020:(e,t,n)=>{var r=n(704)(Object,"create");e.exports=r},1031:(e,t,n)=>{"use strict";var r=n(1225);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},1059:(e,t,n)=>{var r=n(1937),a=n(3906),o=n(4708),i=n(8951),s=n(4011),c=n(2707);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,e.exports=u},1103:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},1225:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},1258:(e,t,n)=>{"use strict";var r=n(9561),a=n(6796),o=n(3102),i=n(8581);e.exports=i||r.call(o,a)},1287:(e,t,n)=>{"use strict";var r=n(3163)("%Object.defineProperty%",!0),a=n(7138)(),o=n(3999),i=n(8241),s=a?Symbol.toStringTag:null;e.exports=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new i("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!s||!n&&o(e,s)||(r?r(e,s,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[s]=t)}},1297:(e,t,n)=>{var r=n(7282),a=n(385),o=n(2054),i=n(2567),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=a(e);return t}:i;e.exports=s},1339:(e,t,n)=>{var r=n(2177);e.exports=function(e){return r(this,e).get(e)}},1357:e=>{function t(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(a,o){var i=e.apply(n,r);function s(e){t(i,a,o,s,c,"next",e)}function c(e){t(i,a,o,s,c,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},1380:(e,t,n)=>{var r=n(9529)(Object.keys,Object);e.exports=r},1477:(e,t,n)=>{var r=n(3867),a=n(7389);e.exports=function(e,t,n,o){var i=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[i]=function(e,t,n,a){return 2==e.length?e(n,r(a)):e(n,t,r(a))}(t,i,e[i],function(e,t){i in n.jobs&&(delete n.jobs[i],e?a(n):n.results[i]=t,o(e,n.results))})}},1530:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},1547:(e,t,n)=>{var r=n(2203).Stream,a=n(9023);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,a.inherits(o,r),o.create=function(e,t){var n=new this;for(var r in t=t||{})n[r]=t[r];n.source=e;var a=e.emit;return e.emit=function(){return n._handleEmit(arguments),a.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},1564:(e,t,n)=>{var r=n(4868),a=n(2156);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},1573:(e,t,n)=>{var r=n(3361),a=n(2054);e.exports=function(e,t){return r(e,a(e),t)}},1587:(e,t,n)=>{var r=n(4530);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},1671:(e,t,n)=>{var r=n(2018),a=n(9023);t.init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return process.stderr.write(a.formatWithOptions.apply(a,[t.inspectOpts].concat(n))+"\n")},t.formatArgs=function(n){var r=this.namespace;if(this.useColors){var a=this.color,o="[3"+(a<8?a:"8;5;"+a),i=" ".concat(o,";1m").concat(r," ");n[0]=i+n[0].split("\n").join("\n"+i),n.push(o+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=a.deprecate(function(){},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{var o=n(3753);o&&(o.stderr||o).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n(7030)(t);var i=e.exports.formatters;i.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},1750:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){retu