import{g as e,h as t,e as r}from"./vendor-d03f97b3.js";import{d as n,g as o}from"./isPlainObject-bf45ffc7.js";function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,c=(u=Object.create(null),e=>{const t=a.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,y=f("undefined");const d=l("ArrayBuffer");const h=f("string"),m=f("function"),g=f("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=l("Date"),O=l("File"),S=l("Blob"),A=l("FileList"),E=l("URLSearchParams"),[j,x,R,P]=["ReadableStream","Request","Response","Headers"].map(l);function T(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),p(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!y(e)&&e!==L;const U=(C="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>C&&e instanceof C);var C;const N=l("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),F=l("RegExp"),B=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};T(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const D=l("AsyncFunction"),M=($="function"==typeof setImmediate,q=m(L.postMessage),$?setImmediate:q?(W=`axios@${Math.random()}`,z=[],L.addEventListener("message",(({source:e,data:t})=>{e===L&&t===W&&z.length&&z.shift()()}),!1),e=>{z.push(e),L.postMessage(W,"*")}):e=>setTimeout(e));var $,q,W,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!=typeof process&&process.nextTick||M,K={isArray:p,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=c(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:j,isRequest:x,isResponse:R,isHeaders:P,isUndefined:y,isDate:v,isFile:O,isBlob:S,isRegExp:F,isFunction:m,isStream:e=>b(e)&&m(e.pipe),isURLSearchParams:E,isTypedArray:U,isFileList:A,forEach:T,merge:function e(){const{caseless:t}=_(this)&&this||{},r={},n=(n,o)=>{const i=t&&k(r,o)||o;w(r[i])&&w(n)?r[i]=e(r[i],n):w(n)?r[i]=e({},n):p(n)?r[i]=n.slice():r[i]=n};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&T(arguments[o],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(T(t,((t,n)=>{r&&m(t)?e[n]=i(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&s(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:N,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:B,freezeMethods:e=>{B(e,((t,r)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];m(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return p(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:L,isContextDefined:_,isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=p(e)?[]:{};return T(e,((e,t)=>{const i=r(e,n+1);!y(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(b(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:M,asap:H};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}K.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const V=J.prototype,G={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{G[e]={value:e}})),Object.defineProperties(J,G),Object.defineProperty(V,"isAxiosError",{value:!0}),J.from=(e,t,r,n,o,i)=>{const a=Object.create(V);return K.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),J.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Q(e){return K.isPlainObject(e)||K.isArray(e)}function X(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Y=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ee(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!s&&K.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(K.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(Q)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(s=K.toArray(e)))return r=X(r),s.forEach((function(e,n){!K.isUndefined(e)&&null!==e&&t.append(!0===a?Z([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!Q(e)||(t.append(Z(o,r,i),c(e)),!1)}const l=[],f=Object.assign(Y,{defaultVisitor:u,convertValue:c,isVisitable:Q});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!K.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),K.forEach(r,(function(r,i){!0===(!(K.isUndefined(r)||null===r)&&o.call(t,r,K.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&ee(e,this,t)}const ne=re.prototype;function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,r){if(!t)return e;const n=r&&r.encode||oe;K.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):K.isURLSearchParams(t)?t.toString():new re(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ne.append=function(e,t){this._pairs.push([e,t])},ne.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ue="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,fe=ue&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ye=ue&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserEnv:fe,hasStandardBrowserWebWorkerEnv:pe,navigator:le,origin:ye},Symbol.toStringTag,{value:"Module"})),...ce};function he(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&K.isArray(n)?n.length:i,s)return K.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&K.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&K.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a}if(K.isFormData(e)&&K.isFunction(e.entries)){const r={};return K.forEachEntry(e,((e,n)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));if(K.isFormData(e))return n?JSON.stringify(he(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new de.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return de.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw J.from(o,J.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));const ge=me,be=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function ve(e){return e&&String(e).trim().toLowerCase()}function Oe(e){return!1===e||null==e?e:K.isArray(e)?e.map(Oe):String(e)}function Se(e,t,r,n,o){return K.isFunction(n)?n.call(this,t,r):(o&&(t=r),K.isString(t)?K.isString(n)?-1!==t.indexOf(n):K.isRegExp(n)?n.test(t):void 0:void 0)}class Ae{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ve(t);if(!o)throw new Error("header name must be a non-empty string");const i=K.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Oe(e))}const i=(e,t)=>K.forEach(e,((e,r)=>o(e,r,t)));if(K.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(K.isHeaders(e))for(const[a,s]of e.entries())o(s,a,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=ve(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ve(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!Se(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ve(e)){const o=K.findKey(r,e);!o||t&&!Se(0,r[o],o,t)||(delete r[o],n=!0)}}return K.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Se(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return K.forEach(this,((n,o)=>{const i=K.findKey(r,o);if(i)return t[i]=Oe(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Oe(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&K.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ve(e);t[n]||(!function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return K.isArray(e)?e.forEach(n):n(e),this}}Ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Ae.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),K.freezeMethods(Ae);const Ee=Ae;function je(e,t){const r=this||ge,n=t||r,o=Ee.from(n.headers);let i=n.data;return K.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function xe(e){return!(!e||!e.__CANCEL__)}function Re(e,t,r){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,r),this.name="CanceledError"}function Pe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}K.inherits(Re,J,{__CANCEL__:!0});const Te=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout((()=>{n=null,a(r)}),i-s)))},()=>r&&a(r)]}((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),r)},ke=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Le=e=>(...t)=>K.asap((()=>e(...t))),_e=de.hasStandardBrowserEnv?(Ue=new URL(de.origin),Ce=de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent),e=>(e=new URL(e,de.origin),Ue.protocol===e.protocol&&Ue.host===e.host&&(Ce||Ue.port===e.port))):()=>!0;var Ue,Ce;const Ne=de.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];K.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),K.isString(n)&&a.push("path="+n),K.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ie(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Ee?{...e}:e;function Be(e,t){t=t||{};const r={};function n(e,t,r,n){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:n},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function o(e,t,r,o){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!K.isUndefined(t))return n(void 0,t)}function a(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Fe(e),Fe(t),0,!0)};return K.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);K.isUndefined(a)&&i!==s||(r[n]=a)})),r}const De=e=>{const t=Be({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Ee.from(s),t.url=ie(Ie(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),K.isFormData(n))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(de.hasStandardBrowserEnv&&(o&&K.isFunction(o)&&(o=o(t)),o||!1!==o&&_e(t.url))){const e=i&&a&&Ne.read(a);e&&s.set(i,e)}return t},Me="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=De(e);let o=n.data;const i=Ee.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:y}=n;function d(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=Ee.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Pe((function(e){t(e),d()}),(function(e){r(e),d()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new J("Request aborted",J.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||se;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new J(t,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&K.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),K.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),y&&([c,l]=Te(y,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Te(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Re(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===de.protocols.indexOf(g)?r(new J("Unsupported protocol "+g+":",J.ERR_BAD_REQUEST,e)):h.send(o||null)}))},$e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof J?t:new Re(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>K.asap(a),s}},qe=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ze=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of We(e))yield*qe(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ke=He&&"function"==typeof ReadableStream,Je=He&&("function"==typeof TextEncoder?(Ve=new TextEncoder,e=>Ve.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ve;const Ge=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Qe=Ke&&Ge((()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Xe=Ke&&Ge((()=>K.isReadableStream(new Response("").body))),Ze={stream:Xe&&(e=>e.body)};var Ye;He&&(Ye=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ze[e]&&(Ze[e]=K.isFunction(Ye[e])?t=>t[e]():(t,r)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})})));const et=async(e,t)=>{const r=K.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new Request(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await Je(e)).byteLength:void 0)})(t):r},tt=He&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=De(e);u=u?(u+"").toLowerCase():"text";let y,d=$e([o,i&&i.toAbortSignal()],a);const h=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(c&&Qe&&"get"!==r&&"head"!==r&&0!==(m=await et(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(K.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=ke(m,Te(Le(c)));n=ze(r.body,65536,e,t)}}K.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;y=new Request(t,{...p,signal:d,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(y);const a=Xe&&("stream"===u||"response"===u);if(Xe&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=K.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&ke(t,Te(Le(s),!0))||[];i=new Response(ze(i.body,65536,r,(()=>{n&&n(),h&&h()})),e)}u=u||"text";let g=await Ze[K.findKey(Ze,u)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,r)=>{Pe(t,r,{data:g,headers:Ee.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:y})}))}catch(g){if(h&&h(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,y),{cause:g.cause||g});throw J.from(g,g&&g.code,e,y)}}),rt={http:null,xhr:Me,fetch:tt};K.forEach(rt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const nt=e=>`- ${e}`,ot=e=>K.isFunction(e)||null===e||!1===e,it=e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!ot(r)&&(n=rt[(t=String(r)).toLowerCase()],void 0===n))throw new J(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function st(e){at(e),e.headers=Ee.from(e.headers),e.data=je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return it(e.adapter||ge.adapter)(e).then((function(t){return at(e),t.data=je.call(e,e.transformResponse,t),t.headers=Ee.from(t.headers),t}),(function(t){return xe(t)||(at(e),t&&t.response&&(t.response.data=je.call(e,e.transformResponse,t.response),t.response.headers=Ee.from(t.response.headers))),Promise.reject(t)}))}const ct="1.8.4",ut={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ut[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const lt={};ut.transitional=function(e,t,r){function n(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new J(n(o," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!lt[o]&&(lt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},ut.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const ft={assertOptions:function(e,t,r){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ut},pt=ft.validators;class yt{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&ft.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),null!=n&&(K.isFunction(n)?t.paramsSerializer={serialize:n}:ft.assertOptions(n,{encode:pt.function,serialize:pt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ft.assertOptions(t,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&K.merge(o.common,o[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ee.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!s){const e=[st.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let p=t;for(f=0;f<l;){const e=a[f++],t=a[f++];try{p=e(p)}catch(y){t.call(this,y);break}}try{u=st.call(this,p)}catch(y){return Promise.reject(y)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return ie(Ie((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(e){yt.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}})),K.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}yt.prototype[e]=t(),yt.prototype[e+"Form"]=t(!0)}));const dt=yt;class ht{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Re(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht((function(t){e=t})),cancel:e}}}const mt=ht;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach((([e,t])=>{gt[t]=e}));const bt=gt;const wt=function e(t){const r=new dt(t),n=i(dt.prototype.request,r);return K.extend(n,dt.prototype,r,{allOwnKeys:!0}),K.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Be(t,r))},n}(ge);wt.Axios=dt,wt.CanceledError=Re,wt.CancelToken=mt,wt.isCancel=xe,wt.VERSION=ct,wt.toFormData=ee,wt.AxiosError=J,wt.Cancel=wt.CanceledError,wt.all=function(e){return Promise.all(e)},wt.spread=function(e){return function(t){return e.apply(null,t)}},wt.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},wt.mergeConfig=Be,wt.AxiosHeaders=Ee,wt.formToJSON=e=>he(K.isHTMLForm(e)?new FormData(e):e),wt.getAdapter=it,wt.HttpStatusCode=bt,wt.default=wt;const vt=wt;var Ot=Function.prototype.toString,St=Object.create,At=Object.prototype.toString,Et=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();var jt="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Et};function xt(e){if(!e)return St(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:St(e);if(t&&~Ot.call(t).indexOf("[native code]"))try{return new t}catch(r){}return St(e)}var Rt="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Pt(e){var t=At.call(e);return t.substring(8,t.length-1)}var Tt="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Pt(e)}:Pt,kt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,_t=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,Ct=Object.prototype,Nt=Ct.hasOwnProperty,It=Ct.propertyIsEnumerable,Ft="function"==typeof Ut;var Bt=Ft?function(e){return _t(e).concat(Ut(e))}:_t;function Dt(e,t,r){for(var n=Bt(e),o=0,i=n.length,a=void 0,s=void 0;o<i;++o)if("callee"!==(a=n[o])&&"caller"!==a)if(s=Lt(e,a)){s.get||s.set||(s.value=r.copier(s.value,r));try{kt(t,a,s)}catch(c){t[a]=s.value}}else t[a]=r.copier(e[a],r);return t}function Mt(e,t){return e.slice(0)}function $t(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e,n){r.set(n,t.copier(e,t))})),r}var qt=Ft?function(e,t){var r=xt(t.prototype);for(var n in t.cache.set(e,r),e)Nt.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=Ut(e),i=0,a=o.length,s=void 0;i<a;++i)s=o[i],It.call(e,s)&&(r[s]=t.copier(e[s],t));return r}:function(e,t){var r=xt(t.prototype);for(var n in t.cache.set(e,r),e)Nt.call(e,n)&&(r[n]=t.copier(e[n],t));return r};function Wt(e,t){return new t.Constructor(e.valueOf())}function zt(e,t){return e}function Ht(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach((function(e){r.add(t.copier(e,t))})),r}var Kt=Array.isArray,Jt=Object.assign,Vt=Object.getPrototypeOf||function(e){return e.__proto__},Gt={array:function(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,o=e.length;n<o;++n)r[n]=t.copier(e[n],t);return r},arrayBuffer:Mt,blob:function(e,t){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(Mt(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:zt,map:$t,object:qt,regExp:function(e,t){var r=new t.Constructor(e.source,Rt(e));return r.lastIndex=e.lastIndex,r},set:Ht},Qt=Jt({},Gt,{array:function(e,t){var r=new t.Constructor;return t.cache.set(e,r),Dt(e,r,t)},map:function(e,t){return Dt(e,$t(e,t),t)},object:function(e,t){var r=xt(t.prototype);return t.cache.set(e,r),Dt(e,r,t)},set:function(e,t){return Dt(e,Ht(e,t),t)}});function Xt(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:Wt,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:Wt,Object:e.object,Promise:zt,RegExp:e.regExp,Set:e.set,String:Wt,WeakMap:zt,WeakSet:zt,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(Jt({},Gt,e)),r=t.Array,n=t.Object;function o(e,o){if(o.prototype=o.Constructor=void 0,!e||"object"!=typeof e)return e;if(o.cache.has(e))return o.cache.get(e);if(o.prototype=Vt(e),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return n(e,o);if(Kt(e))return r(e,o);var i=t[Tt(e)];return i?i(e,o):"function"==typeof e.then?e:n(e,o)}return function(e){return o(e,{Constructor:void 0,cache:jt(),copier:o,prototype:void 0})}}Xt(Jt({},Qt,{}));var Zt=Xt({});var Yt,er,tr={exports:{}},rr=tr.exports={};function nr(){throw new Error("setTimeout has not been defined")}function or(){throw new Error("clearTimeout has not been defined")}function ir(e){if(Yt===setTimeout)return setTimeout(e,0);if((Yt===nr||!Yt)&&setTimeout)return Yt=setTimeout,setTimeout(e,0);try{return Yt(e,0)}catch(t){try{return Yt.call(null,e,0)}catch(r){return Yt.call(this,e,0)}}}!function(){try{Yt="function"==typeof setTimeout?setTimeout:nr}catch(e){Yt=nr}try{er="function"==typeof clearTimeout?clearTimeout:or}catch(e){er=or}}();var ar,sr=[],cr=!1,ur=-1;function lr(){cr&&ar&&(cr=!1,ar.length?sr=ar.concat(sr):ur=-1,sr.length&&fr())}function fr(){if(!cr){var e=ir(lr);cr=!0;for(var t=sr.length;t;){for(ar=sr,sr=[];++ur<t;)ar&&ar[ur].run();ur=-1,t=sr.length}ar=null,cr=!1,function(e){if(er===clearTimeout)return clearTimeout(e);if((er===or||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(e);try{return er(e)}catch(t){try{return er.call(null,e)}catch(r){return er.call(this,e)}}}(e)}}function pr(e,t){this.fun=e,this.array=t}function yr(){}rr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];sr.push(new pr(e,t)),1!==sr.length||cr||ir(fr)},pr.prototype.run=function(){this.fun.apply(null,this.array)},rr.title="browser",rr.browser=!0,rr.env={},rr.argv=[],rr.version="",rr.versions={},rr.on=yr,rr.addListener=yr,rr.once=yr,rr.off=yr,rr.removeListener=yr,rr.removeAllListeners=yr,rr.emit=yr,rr.prependListener=yr,rr.prependOnceListener=yr,rr.listeners=function(e){return[]},rr.binding=function(e){throw new Error("process.binding is not supported")},rr.cwd=function(){return"/"},rr.chdir=function(e){throw new Error("process.chdir is not supported")},rr.umask=function(){return 0};const dr=e(tr.exports);function hr(){}function mr(e,t=5){const{responseLogger:r=hr,requestLogger:n=hr}=e.defaults;e.interceptors.request.use((function(e){return n(e),e}),(function(e){return n(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return r(e),e}),(async function(n){const{response:o}=n,{config:i}=n;if(r(n),!i||!e.defaults.retryOnError)return Promise.reject(n);const a=i.attempts||1;if(a>t)return n.attempts=i.attempts,Promise.reject(n);let s=null,c=(u=a,Math.pow(Math.SQRT2,u));var u,l;return o?o.status>=500&&o.status<600?s=`Server ${o.status}`:429===o.status&&(s="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(c=o.headers["x-contentful-ratelimit-reset"])):s="Connection",s?(c=Math.floor(1e3*c+200*Math.random()+500),e.defaults.logHandler("warning",`${s} error occurred. Waiting for ${c} ms before retrying...`),i.attempts=a+1,delete i.httpAgent,delete i.httpsAgent,(l=c,new Promise((e=>{setTimeout(e,l)}))).then((()=>e(i)))):Promise.reject(n)}))}class gr extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const br=/(?<value>\d+)(%)/;function wr(e,t=7){var r;let n=t;if(br.test(e)){const o=null==(r=e.match(br))?void 0:r.groups;if(o&&o.value){const e=parseInt(o.value)/100;n=Math.round(t*e)}}return Math.min(30,Math.max(1,n))}function vr(e,t){return t("info",`Throttle request to ${e}/s`),function({limit:e,interval:t,strict:r,onDelay:n}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,a=0;const s=[],c=r?function(){const r=Date.now();if(s.length>0&&r-s.at(-1)>t&&(s.length=0),s.length<e)return s.push(r),0;const n=s[0]+t;return s.shift(),s.push(n),Math.max(0,n-r)}:function(){const r=Date.now();return r-i>t?(a=1,i=r,0):(a<e?a++:(i+=t,a=1),i-r)};return e=>{const t=function(...r){if(!t.isEnabled)return(async()=>e.apply(this,r))();let i;return new Promise(((t,a)=>{const s=()=>{t(e.apply(this,r)),o.delete(i)},u=c();u>0?(i=setTimeout(s,u),o.set(i,a),null==n||n(...r)):s()}))};return t.abort=()=>{for(const e of o.keys())clearTimeout(e),o.get(e)(new gr);o.clear(),s.splice(0,s.length)},t.isEnabled=!0,Object.defineProperty(t,"queueSize",{get:()=>o.size}),t}}({limit:e,interval:1e3,strict:!1})}var Or=TypeError;const Sr=t(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ar="function"==typeof Map&&Map.prototype,Er=Object.getOwnPropertyDescriptor&&Ar?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,jr=Ar&&Er&&"function"==typeof Er.get?Er.get:null,xr=Ar&&Map.prototype.forEach,Rr="function"==typeof Set&&Set.prototype,Pr=Object.getOwnPropertyDescriptor&&Rr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tr=Rr&&Pr&&"function"==typeof Pr.get?Pr.get:null,kr=Rr&&Set.prototype.forEach,Lr="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,_r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Ur="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Cr=Boolean.prototype.valueOf,Nr=Object.prototype.toString,Ir=Function.prototype.toString,Fr=String.prototype.match,Br=String.prototype.slice,Dr=String.prototype.replace,Mr=String.prototype.toUpperCase,$r=String.prototype.toLowerCase,qr=RegExp.prototype.test,Wr=Array.prototype.concat,zr=Array.prototype.join,Hr=Array.prototype.slice,Kr=Math.floor,Jr="function"==typeof BigInt?BigInt.prototype.valueOf:null,Vr=Object.getOwnPropertySymbols,Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Qr="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Xr="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qr||"symbol")?Symbol.toStringTag:null,Zr=Object.prototype.propertyIsEnumerable,Yr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function en(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||qr.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Kr(-e):Kr(e);if(n!==e){var o=String(n),i=Br.call(t,o.length+1);return Dr.call(o,r,"$&_")+"."+Dr.call(Dr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Dr.call(t,r,"$&_")}var tn=Sr,rn=tn.custom,nn=yn(rn)?rn:null,on={__proto__:null,double:'"',single:"'"},an={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},sn=function e(t,n,o,i){var a=n||{};if(hn(a,"quoteStyle")&&!hn(on,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hn(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!hn(a,"customInspect")||a.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hn(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hn(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.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 bn(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var u=String(t);return c?en(t,u):u}if("bigint"==typeof t){var l=String(t)+"n";return c?en(t,l):l}var f=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=f&&f>0&&"object"==typeof t)return fn(t)?"[Array]":"[Object]";var p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=zr.call(Array(e.indent+1)," ")}return{base:r,prev:zr.call(Array(t+1),r)}}(a,o);if(void 0===i)i=[];else if(gn(i,t)>=0)return"[Circular]";function y(t,r,n){if(r&&(i=Hr.call(i)).push(r),n){var s={depth:a.depth};return hn(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,i)}return e(t,a,o+1,i)}if("function"==typeof t&&!pn(t)){var d=function(e){if(e.name)return e.name;var t=Fr.call(Ir.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=En(t,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+zr.call(h,", ")+" }":"")}if(yn(t)){var m=Qr?Dr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gr.call(t);return"object"!=typeof t||Qr?m:vn(m)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+$r.call(String(t.nodeName)),b=t.attributes||[],w=0;w<b.length;w++)g+=" "+b[w].name+"="+cn(un(b[w].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+$r.call(String(t.nodeName))+">"}if(fn(t)){if(0===t.length)return"[]";var v=En(t,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(gn(e[t],"\n")>=0)return!1;return!0}(v)?"["+An(v,p)+"]":"[ "+zr.call(v,", ")+" ]"}if(function(e){return"[object Error]"===mn(e)&&ln(e)}(t)){var O=En(t,y);return"cause"in Error.prototype||!("cause"in t)||Zr.call(t,"cause")?0===O.length?"["+String(t)+"]":"{ ["+String(t)+"] "+zr.call(O,", ")+" }":"{ ["+String(t)+"] "+zr.call(Wr.call("[cause]: "+y(t.cause),O),", ")+" }"}if("object"==typeof t&&s){if(nn&&"function"==typeof t[nn]&&tn)return tn(t,{depth:f-o});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!jr||!e||"object"!=typeof e)return!1;try{jr.call(e);try{Tr.call(e)}catch(g){return!0}return e instanceof Map}catch(t){}return!1}(t)){var S=[];return xr&&xr.call(t,(function(e,r){S.push(y(r,t,!0)+" => "+y(e,t))})),Sn("Map",jr.call(t),S,p)}if(function(e){if(!Tr||!e||"object"!=typeof e)return!1;try{Tr.call(e);try{jr.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var A=[];return kr&&kr.call(t,(function(e){A.push(y(e,t))})),Sn("Set",Tr.call(t),A,p)}if(function(e){if(!Lr||!e||"object"!=typeof e)return!1;try{Lr.call(e,Lr);try{_r.call(e,_r)}catch(g){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return On("WeakMap");if(function(e){if(!_r||!e||"object"!=typeof e)return!1;try{_r.call(e,_r);try{Lr.call(e,Lr)}catch(g){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return On("WeakSet");if(function(e){if(!Ur||!e||"object"!=typeof e)return!1;try{return Ur.call(e),!0}catch(t){}return!1}(t))return On("WeakRef");if(function(e){return"[object Number]"===mn(e)&&ln(e)}(t))return vn(y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Jr)return!1;try{return Jr.call(e),!0}catch(t){}return!1}(t))return vn(y(Jr.call(t)));if(function(e){return"[object Boolean]"===mn(e)&&ln(e)}(t))return vn(Cr.call(t));if(function(e){return"[object String]"===mn(e)&&ln(e)}(t))return vn(y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r&&t===r)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===mn(e)&&ln(e)}(t)&&!pn(t)){var E=En(t,y),j=Yr?Yr(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",R=!j&&Xr&&Object(t)===t&&Xr in t?Br.call(mn(t),8,-1):x?"Object":"",P=(j||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(R||x?"["+zr.call(Wr.call([],R||[],x||[]),": ")+"] ":"");return 0===E.length?P+"{}":p?P+"{"+An(E,p)+"}":P+"{ "+zr.call(E,", ")+" }"}return String(t)};function cn(e,t,r){var n=r.quoteStyle||t,o=on[n];return o+e+o}function un(e){return Dr.call(String(e),/"/g,"&quot;")}function ln(e){return!Xr||!("object"==typeof e&&(Xr in e||void 0!==e[Xr]))}function fn(e){return"[object Array]"===mn(e)&&ln(e)}function pn(e){return"[object RegExp]"===mn(e)&&ln(e)}function yn(e){if(Qr)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Gr)return!1;try{return Gr.call(e),!0}catch(t){}return!1}var dn=Object.prototype.hasOwnProperty||function(e){return e in this};function hn(e,t){return dn.call(e,t)}function mn(e){return Nr.call(e)}function gn(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function bn(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return bn(Br.call(e,0,t.maxStringLength),t)+n}var o=an[t.quoteStyle||"single"];return o.lastIndex=0,cn(Dr.call(Dr.call(e,o,"\\$1"),/[\x00-\x1f]/g,wn),"single",t)}function wn(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Mr.call(t.toString(16))}function vn(e){return"Object("+e+")"}function On(e){return e+" { ? }"}function Sn(e,t,r,n){return e+" ("+t+") {"+(n?An(r,n):zr.call(r,", "))+"}"}function An(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+zr.call(e,","+r)+"\n"+t.prev}function En(e,t){var r=fn(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=hn(e,o)?t(e[o],e):""}var i,a="function"==typeof Vr?Vr(e):[];if(Qr){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)hn(e,c)&&(r&&String(Number(c))===c&&c<e.length||Qr&&i["$"+c]instanceof Symbol||(qr.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Vr)for(var u=0;u<a.length;u++)Zr.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var jn=sn,xn=Or,Rn=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},Pn=Object,Tn=Error,kn=EvalError,Ln=RangeError,_n=ReferenceError,Un=SyntaxError,Cn=URIError,Nn=Math.abs,In=Math.floor,Fn=Math.max,Bn=Math.min,Dn=Math.pow,Mn=Math.round,$n=Number.isNaN||function(e){return e!=e},qn=Object.getOwnPropertyDescriptor;if(qn)try{qn([],"length")}catch(Vs){qn=null}var Wn=qn,zn=Object.defineProperty||!1;if(zn)try{zn({},"a",{value:1})}catch(Vs){zn=!1}var Hn,Kn,Jn,Vn,Gn,Qn,Xn,Zn,Yn,eo,to,ro,no,oo,io,ao,so=zn;function co(){return Qn?Gn:(Qn=1,Gn="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function uo(){return Zn?Xn:(Zn=1,Xn=Pn.getPrototypeOf||null)}function lo(){if(ro)return to;ro=1;var e=function(){if(eo)return Yn;eo=1;var e=Object.prototype.toString,t=Math.max,r=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};return Yn=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1||0,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=t(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,r(a,arguments));return Object(e)===e?e:this}return o.apply(n,r(a,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Yn}();return to=Function.prototype.bind||e}function fo(){return oo?no:(oo=1,no=Function.prototype.call)}function po(){return ao?io:(ao=1,io=Function.prototype.apply)}var yo,ho,mo,go,bo,wo,vo,Oo="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,So=lo(),Ao=po(),Eo=fo(),jo=Oo||So.call(Eo,Ao),xo=lo(),Ro=Or,Po=fo(),To=jo,ko=function(e){if(e.length<1||"function"!=typeof e[0])throw new Ro("a function is required");return To(xo,Po,e)};var Lo=Pn,_o=Tn,Uo=kn,Co=Ln,No=_n,Io=Un,Fo=Or,Bo=Cn,Do=Nn,Mo=In,$o=Fn,qo=Bn,Wo=Dn,zo=Mn,Ho=function(e){return $n(e)||0===e?e:e<0?-1:1},Ko=Function,Jo=function(e){try{return Ko('"use strict"; return ('+e+").constructor;")()}catch(Vs){}},Vo=Wn,Go=so,Qo=function(){throw new Fo},Xo=Vo?function(){try{return Qo}catch(e){try{return Vo(arguments,"callee").get}catch(t){return Qo}}}():Qo,Zo=function(){if(Vn)return Jn;Vn=1;var e="undefined"!=typeof Symbol&&Symbol,t=Kn?Hn:(Kn=1,Hn=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return Jn=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Yo=function(){if(go)return mo;go=1;var e=co(),t=uo(),r=function(){if(ho)return yo;ho=1;var e,t=ko,r=Wn;try{e=[].__proto__===Array.prototype}catch(Vs){if(!Vs||"object"!=typeof Vs||!("code"in Vs)||"ERR_PROTO_ACCESS"!==Vs.code)throw Vs}var n=!!e&&r&&r(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return yo=n&&"function"==typeof n.get?t([n.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return mo=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:r?function(e){return r(e)}:null}(),ei=uo(),ti=co(),ri=po(),ni=fo(),oi={},ii="undefined"!=typeof Uint8Array&&Yo?Yo(Uint8Array):vo,ai={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?vo:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?vo:ArrayBuffer,"%ArrayIteratorPrototype%":Zo&&Yo?Yo([][Symbol.iterator]()):vo,"%AsyncFromSyncIteratorPrototype%":vo,"%AsyncFunction%":oi,"%AsyncGenerator%":oi,"%AsyncGeneratorFunction%":oi,"%AsyncIteratorPrototype%":oi,"%Atomics%":"undefined"==typeof Atomics?vo:Atomics,"%BigInt%":"undefined"==typeof BigInt?vo:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?vo:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?vo:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?vo:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_o,"%eval%":eval,"%EvalError%":Uo,"%Float16Array%":"undefined"==typeof Float16Array?vo:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?vo:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?vo:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?vo:FinalizationRegistry,"%Function%":Ko,"%GeneratorFunction%":oi,"%Int8Array%":"undefined"==typeof Int8Array?vo:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?vo:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?vo:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Zo&&Yo?Yo(Yo([][Symbol.iterator]())):vo,"%JSON%":"object"==typeof JSON?JSON:vo,"%Map%":"undefined"==typeof Map?vo:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Zo&&Yo?Yo((new Map)[Symbol.iterator]()):vo,"%Math%":Math,"%Number%":Number,"%Object%":Lo,"%Object.getOwnPropertyDescriptor%":Vo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?vo:Promise,"%Proxy%":"undefined"==typeof Proxy?vo:Proxy,"%RangeError%":Co,"%ReferenceError%":No,"%Reflect%":"undefined"==typeof Reflect?vo:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?vo:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Zo&&Yo?Yo((new Set)[Symbol.iterator]()):vo,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?vo:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Zo&&Yo?Yo(""[Symbol.iterator]()):vo,"%Symbol%":Zo?Symbol:vo,"%SyntaxError%":Io,"%ThrowTypeError%":Xo,"%TypedArray%":ii,"%TypeError%":Fo,"%Uint8Array%":"undefined"==typeof Uint8Array?vo:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?vo:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?vo:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?vo:Uint32Array,"%URIError%":Bo,"%WeakMap%":"undefined"==typeof WeakMap?vo:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?vo:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?vo:WeakSet,"%Function.prototype.call%":ni,"%Function.prototype.apply%":ri,"%Object.defineProperty%":Go,"%Object.getPrototypeOf%":ei,"%Math.abs%":Do,"%Math.floor%":Mo,"%Math.max%":$o,"%Math.min%":qo,"%Math.pow%":Wo,"%Math.round%":zo,"%Math.sign%":Ho,"%Reflect.getPrototypeOf%":ti};if(Yo)try{null.error}catch(Vs){var si=Yo(Yo(Vs));ai["%Error.prototype%"]=si}var ci=function e(t){var r;if("%AsyncFunction%"===t)r=Jo("async function () {}");else if("%GeneratorFunction%"===t)r=Jo("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Jo("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Yo&&(r=Yo(o.prototype))}return ai[t]=r,r},ui={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},li=lo(),fi=function(){if(wo)return bo;wo=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=lo();return bo=r.call(e,t)}(),pi=li.call(ni,Array.prototype.concat),yi=li.call(ri,Array.prototype.splice),di=li.call(ni,String.prototype.replace),hi=li.call(ni,String.prototype.slice),mi=li.call(ni,RegExp.prototype.exec),gi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bi=/\\(\\)?/g,wi=function(e,t){var r,n=e;if(fi(ui,n)&&(n="%"+(r=ui[n])[0]+"%"),fi(ai,n)){var o=ai[n];if(o===oi&&(o=ci(n)),void 0===o&&!t)throw new Fo("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Io("intrinsic "+e+" does not exist!")},vi=function(e,t){if("string"!=typeof e||0===e.length)throw new Fo("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Fo('"allowMissing" argument must be a boolean');if(null===mi(/^%?[^%]*%?$/,e))throw new Io("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=hi(e,0,1),r=hi(e,-1);if("%"===t&&"%"!==r)throw new Io("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Io("invalid intrinsic syntax, expected opening `%`");var n=[];return di(e,gi,(function(e,t,r,o){n[n.length]=r?di(o,bi,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=wi("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],yi(r,pi([0,1],c)));for(var u=1,l=!0;u<r.length;u+=1){var f=r[u],p=hi(f,0,1),y=hi(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new Io("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),fi(ai,i="%"+(n+="."+f)+"%"))a=ai[i];else if(null!=a){if(!(f in a)){if(!t)throw new Fo("base intrinsic for "+e+" exists, but the property is not available.");return}if(Vo&&u+1>=r.length){var d=Vo(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=fi(a,f),a=a[f];l&&!s&&(ai[i]=a)}}return a},Oi=vi,Si=ko,Ai=Si([Oi("%String.prototype.indexOf%")]),Ei=function(e,t){var r=Oi(e,!!t);return"function"==typeof r&&Ai(e,".prototype.")>-1?Si([r]):r},ji=Ei,xi=sn,Ri=Or,Pi=vi("%Map%",!0),Ti=ji("Map.prototype.get",!0),ki=ji("Map.prototype.set",!0),Li=ji("Map.prototype.has",!0),_i=ji("Map.prototype.delete",!0),Ui=ji("Map.prototype.size",!0),Ci=!!Pi&&function(){var e,t={assert:function(e){if(!t.has(e))throw new Ri("Side channel does not contain "+xi(e))},delete:function(t){if(e){var r=_i(e,t);return 0===Ui(e)&&(e=void 0),r}return!1},get:function(t){if(e)return Ti(e,t)},has:function(t){return!!e&&Li(e,t)},set:function(t,r){e||(e=new Pi),ki(e,t,r)}};return t},Ni=Ei,Ii=sn,Fi=Ci,Bi=Or,Di=vi("%WeakMap%",!0),Mi=Ni("WeakMap.prototype.get",!0),$i=Ni("WeakMap.prototype.set",!0),qi=Ni("WeakMap.prototype.has",!0),Wi=Ni("WeakMap.prototype.delete",!0),zi=Or,Hi=sn,Ki=(Di?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new Bi("Side channel does not contain "+Ii(e))},delete:function(r){if(Di&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Wi(e,r)}else if(Fi&&t)return t.delete(r);return!1},get:function(r){return Di&&r&&("object"==typeof r||"function"==typeof r)&&e?Mi(e,r):t&&t.get(r)},has:function(r){return Di&&r&&("object"==typeof r||"function"==typeof r)&&e?qi(e,r):!!t&&t.has(r)},set:function(r,n){Di&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Di),$i(e,r,n)):Fi&&(t||(t=Fi()),t.set(r,n))}};return r}:Fi)||Ci||function(){var e,t={assert:function(e){if(!t.has(e))throw new xn("Side channel does not contain "+jn(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return Rn(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=Rn(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!Rn(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=Rn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t},Ji=String.prototype.replace,Vi=/%20/g,Gi="RFC3986",Qi={default:Gi,formatters:{RFC1738:function(e){return Ji.call(e,Vi,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Gi},Xi=Qi,Zi=Object.prototype.hasOwnProperty,Yi=Array.isArray,ea=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ta=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},ra=1024,na={arrayToObject:ta,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Yi(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(Vs){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;s+=ra){for(var c=i.length>=ra?i.slice(s,s+ra):i,u=[],l=0;l<c.length;++l){var f=c.charCodeAt(l);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===Xi.RFC1738&&(40===f||41===f)?u[u.length]=c.charAt(l):f<128?u[u.length]=ea[f]:f<2048?u[u.length]=ea[192|f>>6]+ea[128|63&f]:f<55296||f>=57344?u[u.length]=ea[224|f>>12]+ea[128|f>>6&63]+ea[128|63&f]:(l+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(l)),u[u.length]=ea[240|f>>18]+ea[128|f>>12&63]+ea[128|f>>6&63]+ea[128|63&f])}a+=u.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Yi(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(Yi(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Zi.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return Yi(t)&&!Yi(r)&&(o=ta(t,n)),Yi(t)&&Yi(r)?(r.forEach((function(r,o){if(Zi.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return Zi.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},oa=function(){var e,t={assert:function(e){if(!t.has(e))throw new zi("Side channel does not contain "+Hi(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=Ki()),e.set(t,r)}};return t},ia=na,aa=Qi,sa=Object.prototype.hasOwnProperty,ca={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ua=Array.isArray,la=Array.prototype.push,fa=function(e,t){la.apply(e,ua(t)?t:[t])},pa=Date.prototype.toISOString,ya=aa.default,da={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ia.encode,encodeValuesOnly:!1,filter:void 0,format:ya,formatter:aa.formatters[ya],indices:!1,serializeDate:function(e){return pa.call(e)},skipNulls:!1,strictNullHandling:!1},ha={},ma=function e(t,r,n,o,i,a,s,c,u,l,f,p,y,d,h,m,g,b){for(var w,v=t,O=b,S=0,A=!1;void 0!==(O=O.get(ha))&&!A;){var E=O.get(t);if(S+=1,void 0!==E){if(E===S)throw new RangeError("Cyclic object value");A=!0}void 0===O.get(ha)&&(S=0)}if("function"==typeof l?v=l(r,v):v instanceof Date?v=y(v):"comma"===n&&ua(v)&&(v=ia.maybeMap(v,(function(e){return e instanceof Date?y(e):e}))),null===v){if(a)return u&&!m?u(r,da.encoder,g,"key",d):r;v=""}if("string"==typeof(w=v)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||ia.isBuffer(v))return u?[h(m?r:u(r,da.encoder,g,"key",d))+"="+h(u(v,da.encoder,g,"value",d))]:[h(r)+"="+h(String(v))];var j,x=[];if(void 0===v)return x;if("comma"===n&&ua(v))m&&u&&(v=ia.maybeMap(v,u)),j=[{value:v.length>0?v.join(",")||null:void 0}];else if(ua(l))j=l;else{var R=Object.keys(v);j=f?R.sort(f):R}var P=c?String(r).replace(/\./g,"%2E"):String(r),T=o&&ua(v)&&1===v.length?P+"[]":P;if(i&&ua(v)&&0===v.length)return T+"[]";for(var k=0;k<j.length;++k){var L=j[k],_="object"==typeof L&&L&&void 0!==L.value?L.value:v[L];if(!s||null!==_){var U=p&&c?String(L).replace(/\./g,"%2E"):String(L),C=ua(v)?"function"==typeof n?n(T,U):T:T+(p?"."+U:"["+U+"]");b.set(t,S);var N=oa();N.set(ha,b),fa(x,e(_,C,n,o,i,a,s,c,"comma"===n&&m&&ua(v)?null:u,l,f,p,y,d,h,m,g,N))}}return x},ga=na,ba=Object.prototype.hasOwnProperty,wa=Array.isArray,va={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ga.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},Oa=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Sa=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},Aa=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,c=[];if(s){if(!r.plainObjects&&ba.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;r.depth>0&&null!==(a=i.exec(o))&&u<r.depth;){if(u+=1,!r.plainObjects&&ba.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}if(a){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");c.push("["+o.slice(a.index)+"]")}return function(e,t,r,n){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 a=n?t:Sa(t,r,o),s=e.length-1;s>=0;--s){var c,u=e[s];if("[]"===u&&r.parseArrays)c=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:ga.combine([],a);else{c=r.plainObjects?{__proto__:null}:{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(f,10);r.parseArrays||""!==f?!isNaN(p)&&u!==f&&String(p)===f&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(c=[])[p]=a:"__proto__"!==f&&(c[f]=a):c={0:a}}a=c}return a}(c,t,r,n)}},Ea=function(e,t){var r,n=e,o=function(e){if(!e)return da;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.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||da.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=aa.default;if(void 0!==e.format){if(!sa.call(aa.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=aa.formatters[r],i=da.filter;if(("function"==typeof e.filter||ua(e.filter))&&(i=e.filter),n=e.arrayFormat in ca?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":da.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||da.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:da.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:da.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:da.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?da.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:da.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:da.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:da.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:da.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:da.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:da.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:da.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):ua(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=ca[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=oa(),u=0;u<r.length;++u){var l=r[u],f=n[l];o.skipNulls&&null===f||fa(i,ma(f,l,a,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=i.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),p.length>0?y+p:""},ja=function(e,t){var r=function(e){if(!e)return va;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?va.charset:e.charset,r=void 0===e.duplicates?va.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||va.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:va.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:va.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:va.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:va.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:va.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:va.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:va.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:va.decoder,delimiter:"string"==typeof e.delimiter||ga.isRegExp(e.delimiter)?e.delimiter:va.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:va.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:va.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:va.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:va.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:va.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:va.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?function(e,t){var r={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=n.split(t.delimiter,t.throwOnLimitExceeded?o+1:o);if(t.throwOnLimitExceeded&&i.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(1===o?"":"s")+" allowed.");var a,s=-1,c=t.charset;if(t.charsetSentinel)for(a=0;a<i.length;++a)0===i[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===i[a]?c="utf-8":"utf8=%26%2310003%3B"===i[a]&&(c="iso-8859-1"),s=a,a=i.length);for(a=0;a<i.length;++a)if(a!==s){var u,l,f=i[a],p=f.indexOf("]="),y=-1===p?f.indexOf("="):p+1;-1===y?(u=t.decoder(f,va.decoder,c,"key"),l=t.strictNullHandling?null:""):(u=t.decoder(f.slice(0,y),va.decoder,c,"key"),l=ga.maybeMap(Sa(f.slice(y+1),t,wa(r[u])?r[u].length:0),(function(e){return t.decoder(e,va.decoder,c,"value")}))),l&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=Oa(String(l))),f.indexOf("[]=")>-1&&(l=wa(l)?[l]:l);var d=ba.call(r,u);d&&"combine"===t.duplicates?r[u]=ga.combine(r[u],l):d&&"last"!==t.duplicates||(r[u]=l)}return r}(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Aa(s,n[s],r,"string"==typeof e);o=ga.merge(o,c,r)}return!0===r.allowSparse?o:ga.compact(o)};const xa=e({formats:Qi,parse:ja,stringify:Ea}),Ra=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Pa(e){const t=Zt(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}function Ta(e,t){const r=function(e){const t={insecure:!1,retryOnError:!0,logHandler:(e,t)=>{if("error"===e&&t){const e=[t.name,t.message].filter((e=>e)).join(" - ");return console.error(`[error] ${e}`),void console.error(t)}console.log(`[${e}] ${t}`)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824,...e};if(!t.accessToken){const e=new TypeError("Expected parameter accessToken");throw t.logHandler("error",e),e}const r=t.insecure?"http":"https",n=t.space?`${t.space}/`:"";let o=t.defaultHostname,i=t.insecure?80:443;if(t.host&&Ra.test(t.host)){const e=t.host.split(":");2===e.length?[o,i]=e:o=e[0]}t.basePath&&(t.basePath=`/${t.basePath.split("/").filter(Boolean).join("/")}`);const a=e.baseURL||`${r}://${o}:${i}${t.basePath}/spaces/${n}`;return t.headers.Authorization||"function"==typeof t.accessToken||(t.headers.Authorization="Bearer "+t.accessToken),{baseURL:a,headers:t.headers,httpAgent:t.httpAgent,httpsAgent:t.httpsAgent,proxy:t.proxy,timeout:t.timeout,adapter:t.adapter,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:e=>xa.stringify(e)},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}(t),o=e.create(r);return o.httpClientParams=t,o.cloneWithNewParams=function(r){return Ta(e,{...Pa(t),...r})},t.onBeforeRequest&&o.interceptors.request.use(t.onBeforeRequest),"function"==typeof t.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)))}))}(o,t.accessToken),t.throttle&&((e,t="auto")=>{const{logHandler:r=hr}=e.defaults;let o=n(t)?wr(t):wr("auto",t),i=vr(o,r),a=!1,s=e.interceptors.request.use((e=>i((()=>e))()),(function(e){return Promise.reject(e)}));const c=e.interceptors.response.use((c=>{if(!a&&n(t)&&("auto"===t||br.test(t))&&c.headers&&c.headers["x-contentful-ratelimit-second-limit"]){const n=parseInt(c.headers["x-contentful-ratelimit-second-limit"]),u=wr(t,n);u!==o&&(s&&e.interceptors.request.eject(s),o=u,i=vr(u,r),s=e.interceptors.request.use((e=>i((()=>e))()),(function(e){return Promise.reject(e)}))),a=!0}return c}),(function(e){return Promise.reject(e)}))})(o,t.throttle),mr(o,t.retryLimit),t.onError&&o.interceptors.response.use((e=>e),t.onError),o}function ka({query:e}){const t={};return delete e.resolveLinks,t.params=Zt(e),t}function La(e){const t=Object.getOwnPropertyNames(e);for(const r of t){const t=e[r];t&&"object"==typeof t&&La(t)}return Object.freeze(e)}function _a(e){return La(e.sys||{}),e}function Ua(){const e=window;if(!e)return null;const t=e.navigator.userAgent,r=e.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(r)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(r)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(r)?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function Ca(e,t,r,n){const o=[];t&&o.push(`app ${t}`),r&&o.push(`integration ${r}`),n&&o.push("feature "+n),o.push(`sdk ${e}`);let i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=Ua(),o.push("platform ReactNative")):void 0===dr||dr.browser?(i=Ua(),o.push("platform browser")):(i=function(){const e=dr.platform||"linux",t=dr.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?`${r[e]||"Linux"}/${t}`:null}(),o.push(`platform node.js/${dr.versions&&dr.versions.node?`v${dr.versions.node}`:dr.version}`))}catch(Vs){i=null}return i&&o.push(`os ${i}`),`${o.filter((e=>""!==e)).join("; ")};`}function Na(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Zt(this)}})}function Ia(e){var t;const{config:r,response:n}=e;let i;if(function(e){var t,r;if(null==(t=null==e?void 0:e.headers)?void 0:t.Authorization){const t=`...${e.headers.Authorization.toString().substr(-5)}`;e.headers.Authorization=`Bearer ${t}`}if(null==(r=null==e?void 0:e.headers)?void 0:r["X-Contentful-Resource-Resolution"]){const t=`...${e.headers["X-Contentful-Resource-Resolution"].toString().substr(-5)}`;e.headers["X-Contentful-Resource-Resolution"]=t}}(r),!o(n)||!o(r))throw e;const a=null==n?void 0:n.data,s={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};r&&o(r)&&(s.request={url:r.url,headers:r.headers,method:r.method,payloadData:r.data}),a&&"object"==typeof a&&("requestId"in a&&(s.requestId=a.requestId||"UNKNOWN"),"message"in a&&(s.message=a.message||""),"details"in a&&(s.details=a.details||{}),i=null==(t=a.sys)?void 0:t.id);const c=new Error;c.name=i&&"Unknown"!==i?i:`${null==n?void 0:n.status} ${null==n?void 0:n.statusText}`;try{c.message=JSON.stringify(s,null,"  ")}catch{c.message=(null==s?void 0:s.message)??""}throw c}var Fa,Ba,Da,Ma,$a={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},qa={0:8203,1:8204,2:8205,3:65279},Wa=new Array(4).fill(String.fromCodePoint(qa[0])).join("");function za(e,t,r="auto"){return!0===r||"auto"===r&&(function(e){return!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)||!Date.parse(e))}(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch(t){return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e);return`${Wa}${Array.from(t).map((e=>{let r=e.charCodeAt(0);if(r>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${e} (${r})`);return Array.from(r.toString(4).padStart(4,"0")).map((e=>String.fromCodePoint(qa[e]))).join("")})).join("")}`}(t)}`}function Ha(e,t){return za(e,t)}Object.fromEntries(Object.entries(qa).map((e=>e.reverse()))),Object.fromEntries(Object.entries($a).map((e=>e.reverse()))),Object.values($a).map((e=>`\\u{${e.toString(16)}}`)).join("");var Ka=function(){if(Ma)return Da;Ma=1;var e=function(){if(Ba)return Fa;Ba=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return Fa=function(r,n,o){if("[object Function]"!==t.call(n))throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,r[a],a,r);else for(var s in r)e.call(r,s)&&n.call(o,r[s],s,r)}}();function t(e,r,n){if(3===arguments.length)return t.set(e,r,n);if(2===arguments.length)return t.get(e,r);var o=t.bind(t,e);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i].bind(o,e));return o}return Da=t,t.get=function(e,r){for(var n=Array.isArray(r)?r:t.parse(r),o=0;o<n.length;++o){var i=n[o];if("object"!=typeof e||!(i in e))throw new Error("Invalid reference token: "+i);e=e[i]}return e},t.set=function(e,r,n){var o=Array.isArray(r)?r:t.parse(r),i=o[0];if(0===o.length)throw Error("Can not set the root object");for(var a=0;a<o.length-1;++a){var s=o[a];"string"!=typeof s&&"number"!=typeof s&&(s=String(s)),"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),i=o[a+1],s in e||(i.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===i&&Array.isArray(e)&&(i=e.length),e[i]=n,this},t.remove=function(e,r){var n=Array.isArray(r)?r:t.parse(r),o=n[n.length-1];if(void 0===o)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var i=t.get(e,n.slice(0,-1));if(Array.isArray(i)){var a=+o;if(""===o&&isNaN(a))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(i,a,1)}else delete i[o]},t.dict=function(e,r){var n={};return t.walk(e,(function(e,t){n[t]=e}),r),n},t.walk=function(r,n,o){var i=[];o=o||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function r(a){e(a,(function(e,a){i.push(String(a)),o(e)?r(e):n(e,t.compile(i)),i.pop()}))}(r)},t.has=function(e,r){try{t.get(e,r)}catch(n){return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},Da}();const Ja=(e,t="")=>{const r=[],n=Ka.get(e,t);if(n.content)for(let o=0;o<n.content.length;o++)"text"===n.content[o].nodeType?r.push(`${t}/content/${o}/value`):r.push(...Ja(e,`${t}/content/${o}`));return r},Va=({entityId:e,entityType:t,space:r,environment:n,field:o,locale:i,editorInterface:a,fieldType:s,targetOrigin:c,platform:u})=>{const l={origin:"contentful.com",href:`${c||"https://app.contentful.com"}/spaces/${r}/environments/${n}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${o}&focusedLocale=${i}&source=vercel-content-link`,contentful:{editorInterface:a,fieldType:s}};return"vercel"===u&&delete l.contentful,l},Ga=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),Qa=e=>Xa.includes(e);const Xa=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function Za(e,t,r,n,o,i,a){const s=a?t[a]:t;switch(e){case"Symbol":{const e=Ha(s,r);Ka.set(n,o,e);break}case"Text":{const e=Ha(s,r);Ka.set(n,o,e);break}case"RichText":(({pointer:e,mappings:t,data:r,hiddenStrings:n})=>{const o=t[e];if(o){delete t[e];const i=Ja(r,e);for(const e of i){t[e]=o;const i=Ha(Ka.get(r,e),n);Ka.set(r,e,i)}}else{const t=Ja(r,e);for(const e of t){const t=Ha(Ka.get(r,e),n);Ka.set(r,e,t)}}})({pointer:"",mappings:i,data:s,hiddenStrings:r});break;case"Array":{const e=s.map((e=>"string"==typeof e?Ha(e,r):e));Ka.set(n,o,e);break}}}const Ya=(e,t,r,n,o)=>{if(!e.fields)return;const{contentSourceMaps:i}=e.sys;if(!i)return;const{mappings:a}=i;for(const s in a){const{source:i}=a[s],c=e.sys.space.sys.id,u=e.sys.environment.sys.id,l=e.sys.id,f=e.sys.type,p=t[i.fieldType],y=r[i.editorInterface];if(Ga(y.widgetNamespace)&&!Qa(y.widgetId))continue;const d=s.startsWith("/")?s:`/${s}`;if(Ka.has(e,d)){const t=Ka.get(e,d);if(null===t)return;const r=d.split("/").pop();if(!r)return void console.error("Field name could not be extracted from the pointer",d);const i=e.sys.locale;if(i){const s=Va({entityId:l,entityType:f,space:c,environment:u,field:r,locale:i,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});Za(p,t,s,e,d,a)}else Object.keys(t).forEach((i=>{const s=Va({entityId:l,entityType:f,space:c,environment:u,field:r,locale:i,editorInterface:y,fieldType:p,targetOrigin:n,platform:o});Za(p,t,s,e,`${d}/${i}`,a,i)}))}}},es=(e,t,r)=>{var n;const o=function(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}(e);if(o.sys&&"items"in o){const e=o;if(null==(n=e.sys)||!n.contentSourceMapsLookup)return e;const{contentSourceMapsLookup:{fieldTypes:i,editorInterfaces:a}}=e.sys,{items:s,includes:c}=e;s.forEach((e=>Ya(e,i,a,t,r))),c&&c.Entry&&c.Entry.forEach((e=>Ya(e,i,a,t,r))),c&&c.Asset&&c.Asset.forEach((e=>Ya(e,i,a,t,r)))}else{const e=o;if(!e.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),e;Ya(e,e.sys.contentSourceMapsLookup.fieldTypes,e.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o};var ts=Function.prototype.toString,rs=Object.create,ns=Object.defineProperty,os=Object.getOwnPropertyDescriptor,is=Object.getOwnPropertyNames,as=Object.getOwnPropertySymbols,ss=Object.getPrototypeOf,cs=Object.prototype,us=cs.hasOwnProperty,ls=cs.propertyIsEnumerable,fs="function"==typeof as,ps="function"==typeof WeakMap,ys=function(){if(ps)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),ds=function(e,t){var r=e.__proto__||ss(e);if(!r)return rs(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:rs(r);if(~ts.call(n).indexOf("[native code]"))try{return new n}catch(o){}return rs(r)},hs=function(e,t,r,n){var o=ds(e,t);for(var i in n.set(e,o),e)us.call(e,i)&&(o[i]=r(e[i],n));if(fs)for(var a=as(e),s=0,c=a.length,u=void 0;s<c;++s)u=a[s],ls.call(e,u)&&(o[u]=r(e[u],n));return o},ms=function(e,t,r,n){var o=ds(e,t);n.set(e,o);for(var i=fs?is(e).concat(as(e)):is(e),a=0,s=i.length,c=void 0,u=void 0;a<s;++a)if("callee"!==(c=i[a])&&"caller"!==c)if(u=os(e,c)){u.get||u.set||(u.value=r(e[c],n));try{ns(o,c,u)}catch(l){o[c]=u.value}}else o[c]=r(e[c],n);return o},gs=Array.isArray,bs=Object.getPrototypeOf,ws=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function vs(e,t){var r=!(!t||!t.isStrict),n=t&&t.realm||ws,o=r?ms:hs,i=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var a,s,c,u=e.__proto__||bs(e),l=u&&u.constructor;if(!l||l===n.Object)return o(e,n,i,t);if(gs(e)){if(r)return ms(e,n,i,t);a=new l,t.set(e,a);for(var f=0,p=e.length;f<p;++f)a[f]=i(e[f],t);return a}if(e instanceof n.Date)return new l(e.getTime());if(e instanceof n.RegExp)return(a=new l(e.source,e.flags||(c="",(s=e).global&&(c+="g"),s.ignoreCase&&(c+="i"),s.multiline&&(c+="m"),s.unicode&&(c+="u"),s.sticky&&(c+="y"),c))).lastIndex=e.lastIndex,a;if(n.Map&&e instanceof n.Map)return a=new l,t.set(e,a),e.forEach((function(e,r){a.set(r,i(e,t))})),a;if(n.Set&&e instanceof n.Set)return a=new l,t.set(e,a),e.forEach((function(e){a.add(i(e,t))})),a;if(n.Blob&&e instanceof n.Blob)return e.slice(0,e.size,e.type);if(n.Buffer&&n.Buffer.isBuffer(e))return a=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(e.length):new l(e.length),t.set(e,a),e.copy(a),a;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(e))return a=new l(e.buffer.slice(0)),t.set(e,a),a;if(e instanceof n.ArrayBuffer)return a=e.slice(0),t.set(e,a),a}return"function"==typeof e.then||e instanceof Error||n.WeakMap&&e instanceof n.WeakMap||n.WeakSet&&e instanceof n.WeakSet?e:o(e,n,i,t)};return i(e,ys())}vs.default=vs,vs.strict=function(e,t){return vs(e,{isStrict:!0,realm:t?t.realm:void 0})};var Os="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},Ss=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function As(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var Es={},js=function(e,t){var r=t.entryId,n=t.linkType,o=t.spaceId,i=t.environmentId;return o&&i?e.get(o+"!"+i+"!"+n+"!"+r):e.get(n+"!"+r)},xs=function(e,t){var r=t.sys,n=r.type,o=r.linkType;if("ResourceLink"===n){if(!o.startsWith("Contentful:"))return t;var i=function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var r=e.match(t),n=Ss(r,4);n[0];var o=n[1],i=n[2];return{spaceId:o,environmentId:void 0===i?"master":i,entryId:n[3]}}}(t.sys.urn),a=i.spaceId,s=i.environmentId,c=i.entryId,u=o.split(":")[1];return js(e,{linkType:u,entryId:c,spaceId:a,environmentId:s})||Es}var l=t.sys.id;return js(e,{linkType:o,entryId:l})||Es},Rs=function e(t,r,n,o){if(r(t))return n(t);if(t&&"object"===(void 0===t?"undefined":Os(t))){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=function(e){if(Array.isArray(e))return e.filter((function(e){return e!==Es}));for(var t in e)e[t]===Es&&delete e[t];return e}(t))}return t},Ps=function(e,t){if(t=t||{},!e.items)return[];var r=vs(e),n=Object.keys(r.includes||{}).reduce((function(t,r){return[].concat(As(t),As(e.includes[r]))}),[]),o=[].concat(As(r.items),As(n)).filter((function(e){return Boolean(e.sys)})),i=new Map(o.reduce((function(e,t){var r,n=(r=t.sys,r.space&&r.environment?[r.type+"!"+r.id,r.space.sys.id+"!"+r.environment.sys.id+"!"+r.type+"!"+r.id]:[r.type+"!"+r.id]).map((function(e){return[e,t]}));return e.push.apply(e,As(n)),e}),[]));return o.forEach((function(e){var r=function(e,t){return Array.isArray(t)?Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,r){return t[r]=e[r],t}),{}):e}(e,t.itemEntryPoints);Object.assign(e,Rs(r,(function(e){return(t=e)&&t.sys&&"Link"===t.sys.type||function(e){return e&&e.sys&&"ResourceLink"===e.sys.type}(e);var t}),(function(e){return function(e,t,r){var n=xs(e,t);return n===Es?r?n:t:n}(i,e,t.removeUnresolved)}),t.removeUnresolved))})),r.items},Ts={exports:{}};!function(){function e(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return null==e?i:e.call(this,o,i)}}(Ts.exports=function(t,r,n,o){return JSON.stringify(t,e(r,o),n)}).getSerialize=e}();const ks=e(Ts.exports);function Ls(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,t=""){return ks(this,e,t,((e,t)=>({sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}})))}})}async function _s(e,t,r){if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t.content_type&&!t.type)t.type="Entry";else if(t.content_type&&t.type&&"Entry"!==t.type)throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const{withoutLinkResolution:n,withoutUnresolvableLinks:o,paginate:i}=Object.assign(Object.assign({},{withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0}),r),a=await Us(e,[],t,{paginate:i});n||(a.items=Ps(a,{removeUnresolved:o,itemEntryPoints:["fields"]}));const s=function(e){const t=e=>(t,r)=>(r.sys.type===e&&t.push(Na(r)),t);return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}(a.items);return a.nextSyncToken&&(s.nextSyncToken=a.nextSyncToken),a.nextPageToken&&(s.nextPageToken=a.nextPageToken),_a(Ls(Na(s)))}async function Us(e,t,r,{paginate:n}){const o=(i=r).nextPageToken?{sync_token:i.nextPageToken}:i.nextSyncToken?{sync_token:i.nextSyncToken}:i.sync_token?{sync_token:i.sync_token}:i;var i;const a=(await e.get("sync",ka({query:o}))).data||{};return t=t.concat(a.items||[]),a.nextPageUrl?n?(delete o.initial,o.sync_token=Cs(a.nextPageUrl),Us(e,t,o,{paginate:n})):{items:t,nextPageToken:Cs(a.nextPageUrl)}:a.nextSyncUrl?{items:t,nextSyncToken:Cs(a.nextSyncUrl)}:{items:[]}}function Cs(e){const t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function Ns(e){const t={};let r=!1;for(const n in e)Array.isArray(e[n])&&(t[n]=e[n].join(","),r=!0);return r?Object.assign(Object.assign({},e),t):e}function Is(e){if(!e.select)return new Set;const t=Array.isArray(e.select)?e.select:e.select.split(",").map((e=>e.trim()));return new Set(t)}function Fs(e){if(!e.select)return e;const t=Is(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:[...t].join(",")}))}function Bs(e,{resolveLinks:t,removeUnresolved:r}){const n=Ls(e);return t&&(n.items=Ps(n,{removeUnresolved:r,itemEntryPoints:["fields"]})),n}class Ds extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name="ValidationError"}}function Ms(e,t){t?function(e){if(e.locale)throw new Ds("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new Ds("locale","The use of locale='*' is no longer supported.To fetch an entry in all existing locales,\n      use client.withAllLocales instead of the locale='*' parameter.")}(e)}function $s(e){if("resolveLinks"in e)throw new Ds("resolveLinks","The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved.\n      If you do not want to resolve links, use client.withoutLinkResolution.")}function qs(e){if("removeUnresolved"in e)throw new Ds("removeUnresolved","The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects.\n      If you do not want to include unresolved links, use client.withoutUnresolvableLinks.")}function Ws(e){for(const t in e){const r=e[t];if("object"==typeof r&&null!==r&&!Array.isArray(r))throw new Error(`Objects are not supported as value for the "${t}" query parameter.`)}}class zs extends Error{constructor(e,t,r){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:e,environment:t,space:r}}}function Hs({http:e,getGlobalOptions:t},r){const n=(e="unknown")=>new zs(e,t().environment,t().space),o=e=>{let r="space"===e?t().spaceBaseUrl:t().environmentBaseUrl;if(!r)throw new Error("Please define baseUrl for "+e);return r.endsWith("/")||(r+="/"),r};function i(t={}){var r,n;const o=e.httpClientParams,i=null!==(r=null==o?void 0:o.includeContentSourceMaps)&&void 0!==r?r:null===(n=null==o?void 0:o.alphaFeatures)||void 0===n?void 0:n.includeContentSourceMaps,a=function(e,t){if(void 0===t)return!1;if("boolean"!=typeof t)throw new Ds("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");if(t&&"preview.contentful.com"!==e)throw new Ds("includeContentSourceMaps","The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' to include Content Source Maps.\n      ");return t}(null==o?void 0:o.host,i);if(a&&(t.includeContentSourceMaps=!0,t.select)){const e=Is(t);e.add("sys"),t.select=Array.from(e).join(",")}return t}async function a({context:t,path:r,config:n}){const i=o(t);try{return function(e,t){var r;return(null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.includeContentSourceMaps)?es(e):e}((await e.get(i+r,n)).data,n)}catch(a){Ia(a)}}async function s(e,t){const{withoutLinkResolution:r,withoutUnresolvableLinks:n}=t;try{return Bs(await a({context:"environment",path:"entries",config:ka({query:i(Ns(Fs(e)))})}),{resolveLinks:!r,removeUnresolved:null!=n&&n})}catch(o){Ia(o)}}return{version:"11.5.10",getSpace:async function(){return a({context:"space",path:""})},getContentType:async function(e){return a({context:"environment",path:`content_types/${e}`})},getContentTypes:async function(e={}){return a({context:"environment",path:"content_types",config:ka({query:e})})},getAsset:async function(e,t={}){return async function(e,t,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:n}=r;Ms(t,n),Ws(t);const o=n?Object.assign(Object.assign({},t),{locale:"*"}):t;return async function(e,t){try{return a({context:"environment",path:`assets/${e}`,config:ka({query:i(Fs(t))})})}catch(r){Ia(r)}}(e,o)}(e,t,r)},getAssets:async function(e={}){return async function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:r}=t;Ms(e,r),Ws(e);const n=r?Object.assign(Object.assign({},e),{locale:"*"}):e;return async function(e){try{return a({context:"environment",path:"assets",config:ka({query:i(Ns(Fs(e)))})})}catch(t){Ia(t)}}(n)}(e,r)},getTag:async function(e){return a({context:"environment",path:`tags/${e}`})},getTags:async function(e={}){return Ws(e),a({context:"environment",path:"tags",config:ka({query:Ns(Fs(e))})})},getLocales:async function(e={}){return Ws(e),a({context:"environment",path:"locales",config:ka({query:Fs(e)})})},parseEntries:function(e){return function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){return function(e,t){const{withoutLinkResolution:r,withoutUnresolvableLinks:n}=t;return Bs(e,{resolveLinks:!r,removeUnresolved:null!=n&&n})}(e,t)}(e,r)},sync:async function(n,o={paginate:!0}){return async function(r,n,o={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){$s(r),qs(r);const i=Object.assign(Object.assign({},n),o);return function(e){e.defaults.baseURL=t().environmentBaseUrl}(e),_s(e,r,i)}(n,o,r)},getEntry:async function(e,t={}){return async function(e,t,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:o}=r;return Ms(t,o),$s(t),qs(t),Ws(t),async function(e,t,r){if(!e)throw n(e);try{const o=await s(Object.assign({"sys.id":e},i(t)),r);if(o.items.length>0)return o.items[0];throw n(e)}catch(o){Ia(o)}}(e,o?Object.assign(Object.assign({},t),{locale:"*"}):t,r)}(e,t,r)},getEntries:async function(e={}){return async function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:r}=t;return Ms(e,r),$s(e),qs(e),Ws(e),s(r?Object.assign(Object.assign({},e),{locale:"*"}):e,t)}(e,r)},getConceptScheme:function(e,t={}){return async function(e,t={}){try{return a({context:"environment",path:`taxonomy/concept-schemes/${e}`,config:ka({query:Ns(Fs(t))})})}catch(r){Ia(r)}}(e,t)},getConceptSchemes:function(e={}){return async function(e={}){try{return a({context:"environment",path:"taxonomy/concept-schemes",config:ka({query:Ns(Fs(e))})})}catch(t){Ia(t)}}(e)},getConcept:function(e,t={}){return async function(e,t={}){try{return a({context:"environment",path:`taxonomy/concepts/${e}`,config:ka({query:Ns(Fs(t))})})}catch(r){Ia(r)}}(e,t)},getConcepts:function(e={}){return async function(e={}){try{return a({context:"environment",path:"taxonomy/concepts",config:ka({query:Ns(Fs(e))})})}catch(t){Ia(t)}}(e)},createAssetKey:async function(t){try{const e=Math.floor(Date.now()/1e3);!function(e,t,r){if(r=r||{},"number"!=typeof t)throw new Ds(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(r.maximum&&t>r.maximum)throw new Ds(e,`value (${t}) cannot be further in the future than expected maximum (${r.maximum})`);if(r.now&&t<r.now)throw new Ds(e,`value (${t}) cannot be in the past, current time was ${r.now}`)}("expiresAt",t,{maximum:e+172800,now:e})}catch(r){Ia(r)}return async function({context:t,path:n,data:i,config:a}){const s=o(t);try{return(await e.post(s+n,i,a)).data}catch(r){Ia(r)}}({context:"environment",path:"asset_keys",data:{expiresAt:t}})}}}const Ks=({http:e,getGlobalOptions:t})=>{function r(n){return function({http:e,getGlobalOptions:t},r,n){const o=Hs({http:e,getGlobalOptions:t},r),i=o||{};return Object.defineProperty(i,"withAllLocales",{get:()=>n(Object.assign(Object.assign({},r),{withAllLocales:!0}))}),Object.defineProperty(i,"withoutLinkResolution",{get:()=>n(Object.assign(Object.assign({},r),{withoutLinkResolution:!0}))}),Object.defineProperty(i,"withoutUnresolvableLinks",{get:()=>n(Object.assign(Object.assign({},r),{withoutUnresolvableLinks:!0}))}),Object.create(i)}({http:e,getGlobalOptions:t},n,r)}const n=Hs({http:e,getGlobalOptions:t},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},n),{get withAllLocales(){return r({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return r({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return r({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})};function Js(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");$s(e),qs(e);const t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),r=Ca("contentful.js/11.5.10",t.application,t.integration);t.headers=Object.assign(Object.assign({},t.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});const n=Ta(vt,t);if(!n.defaults.baseURL)throw new Error("Please define a baseURL");const o=(i={space:t.space,environment:t.environment,spaceBaseUrl:n.defaults.baseURL,environmentBaseUrl:`${n.defaults.baseURL}environments/${t.environment}`},function(e){return Object.assign({},i,e)});var i;return n.defaults.baseURL=o({}).environmentBaseUrl,Ks({http:n,getGlobalOptions:o})}export{Js as c};
//# sourceMappingURL=contentful-9d731e8d.js.map