1import{d as E,p as S,s as m}from"./DWVhVzpR.js";var q=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,A=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function $(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){N(r);return}return t}function N(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function U(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const s=r.trim();if(s.length<=9)switch(s.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!_.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(q.test(r)||A.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,$)}return JSON.parse(r)}catch(a){if(t.strict)throw a;return r}}var j=class extends Error{constructor(r,t){super(r,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}};function C(r){const t=r.error?.message||r.error?.toString()||"",s=r.request?.method||r.options?.method||"GET",a=r.request?.url||String(r.request)||"/",u=`${`[${s}] ${JSON.stringify(a)}`}: ${r.response?`${r.response.status} ${r.response.statusText}`:"<no response>"}${t?` ${t}`:""}`,n=new j(u,r.error?{cause:r.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(n,p,{get(){return r[p]}});for(const[p,o]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(n,p,{get(){return r.response&&r.response[o]}});return n}var L=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function w(r="GET"){return L.has(r.toUpperCase())}function F(r){if(r===void 0)return!1;const t=typeof r;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(r)?!0:r.buffer||r instanceof FormData||r instanceof URLSearchParams?!1:r.constructor&&r.constructor.name==="Object"||typeof r.toJSON=="function"}var P=new Set(["image/svg","application/xml","application/xhtml","application/html"]),I=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function O(r=""){if(!r)return"json";const t=r.split(";").shift()||"";return I.test(t)?"json":t==="text/event-stream"?"stream":P.has(t)||t.startsWith("text/")?"text":"blob"}function D(r,t,s,a){const u=v(t?.headers??r?.headers,s?.headers,a);let n;return(s?.query||s?.params||t?.params||t?.query)&&(n={...s?.params,...s?.query,...t?.params,...t?.query}),{...s,...t,query:n,params:n,headers:u}}function v(r,t,s){if(!t)return new s(r);const a=new s(t);if(r)for(const[u,n]of Symbol.iterator in r||Array.isArray(r)?r:new s(r))a.set(u,n);return a}async function y(r,t){if(t)if(Array.isArray(t))for(const s of t)await s(r);else await t(r)}var J=new Set([408,409,425,429,500,502,503,504]),H=new Set([101,204,205,304]);function g(r={}){const{fetch:t=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:a=globalThis.AbortController}=r;async function u(o){const f=o.error&&o.error.name==="AbortError"&&!o.options.timeout||!1;if(o.options.retry!==!1&&!f){let e;typeof o.options.retry=="number"?e=o.options.retry:e=w(o.options.method)?0:1;const l=o.response&&o.response.status||500;if(e>0&&(Array.isArray(o.options.retryStatusCodes)?o.options.retryStatusCodes.includes(l):J.has(l))){const i=typeof o.options.retryDelay=="function"?o.options.retryDelay(o):o.options.retryDelay||0;return i>0&&await new Promise(c=>setTimeout(c,i)),n(o.request,{...o.options,retry:e-1})}}const d=C(o);throw Error.captureStackTrace&&Error.captureStackTrace(d,n),d}const n=async function(f,d={}){const e={request:f,options:D(f,d,r.defaults,s),response:void 0,error:void 0};if(e.options.method&&(e.options.method=e.options.method.toUpperCase()),e.options.onRequest&&(await y(e,e.options.onRequest),e.options.headers instanceof s||(e.options.headers=new s(e.options.headers||{}))),typeof e.request=="string"&&(e.options.baseURL&&(e.request=E(e.request,e.options.baseURL)),e.options.query&&(e.request=S(e.request,e.options.query),delete e.options.query),"query"in e.options&&delete e.options.query,"params"in e.options&&delete e.options.params),e.options.body&&w(e.options.method))if(F(e.options.body)){const i=e.options.headers.get("content-type");
1typeof e.options.body!="string"&&(e.options.body=i==="application/x-www-form-urlencoded"?new URLSearchParams(e.options.body).toString():JSON.stringify(e.options.body)),i||e.options.headers.set("content-type","application/json"),e.options.headers.has("accept")||e.options.headers.set("accept","application/json")}else("pipeTo"in e.options.body&&typeof e.options.body.pipeTo=="function"||typeof e.options.body.pipe=="function")&&("duplex"in e.options||(e.options.duplex="half"));let l;if(!e.options.signal&&e.options.timeout){const i=new a;l=setTimeout(()=>{const c=new Error("[TimeoutError]: The operation was aborted due to timeout");c.name="TimeoutError",c.code=23,i.abort(c)},e.options.timeout),e.options.signal=i.signal}try{e.response=await t(e.request,e.options)}catch(i){return e.error=i,e.options.onRequestError&&await y(e,e.options.onRequestError),await u(e)}finally{l&&clearTimeout(l)}if((e.response.body||e.response._bodyInit)&&!H.has(e.response.status)&&e.options.method!=="HEAD"){const i=(e.options.parseResponse?"json":e.options.responseType)||O(e.response.headers.get("content-type")||"");switch(i){case"json":{const c=await e.response.text(),R=e.options.parseResponse||U;e.response._data=R(c);break}case"stream":e.response._data=e.response.body||e.response._bodyInit;break;default:e.response._data=await e.response[i]()}}return e.options.onResponse&&await y(e,e.options.onResponse),!e.options.ignoreResponseError&&e.response.status>=400&&e.response.status<600?(e.options.onResponseError&&await y(e,e.options.onResponseError),await u(e)):e.response},p=async function(f,d){return(await n(f,d))._data};return p.raw=n,p.native=(...o)=>t(...o),p.create=(o={},f={})=>g({...r,...f,defaults:{...r.defaults,...f.defaults,...o}}),p}var h=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),k=h.fetch?(...r)=>h.fetch(...r):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),M=h.Headers,B=h.AbortController,z=g({fetch:k,Headers:M,AbortController:B}),G=z,K=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,b=()=>K().app,V=()=>b().baseURL,Y=()=>b().buildAssetsDir,Q=(...r)=>m(T(),Y(),...r),T=(...r)=>{const t=b(),s=t.cdnURL||t.baseURL;return r.length?m(s,...r):s};globalThis.__buildAssetsURL=Q;globalThis.__publicAssetsURL=T;globalThis.$fetch||(globalThis.$fetch=G.create({baseURL:V()}));var X=globalThis.$fetch;
1export{Q as n,X as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.