@haus-storefront-react/vendure-plugin-configs 1.0.4-next.2 → 1.0.4-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ "use strict";const rr=require("./index-CgxqXyHf.js");require("./compiler-runtime-oPPev21o.js");const _t=require("react"),Le=require("@tanstack/react-query"),nr="debug",C=()=>{try{if(typeof window>"u"||typeof localStorage>"u")return!1;const e=localStorage.getItem(nr);return e==="true"||e==="1"}catch{return!1}},or=()=>{const e=(t,r,n=[])=>r?typeof t=="string"?[`<${r}> ${t}`,...n]:[`<${r}>`,t,...n]:Array.isArray(t)?[...t,...n]:[t,...n];return{log:(t,r,...n)=>{C()&&console.log(...e(t,r,n))},info:(t,r,...n)=>{C()&&console.info(...e(t,r,n))},warn:(t,r,...n)=>{C()&&console.warn(...e(t,r,n))},error:(t,r,...n)=>{C()&&console.error(...e(t,r,n))},debug:(t,r,...n)=>{C()&&console.debug(...e(t,r,n))},group:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.group(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupCollapsed:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.groupCollapsed(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupEnd:()=>{C()&&console.groupEnd()},table:(t,r,n)=>{C()&&(r&&console.log(`<${r}>`),console.table(t,n))},time:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.time(r?n?`<${r}> ${n}`:`<${r}>`:n)}},timeEnd:(t,r)=>{if(C()){const n=typeof t=="string"?t:void 0;console.timeEnd(r?n?`<${r}> ${n}`:`<${r}>`:n)}}}},sr=or();function ir(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}let J;try{J=require("@react-native-async-storage/async-storage").default}catch{J=null}let je=null;try{const{AsyncLocalStorage:e}=require("node:async_hooks");je=new e}catch{je=null}const V=typeof window<"u"&&typeof window.localStorage<"u",Q=!!J,fe={},Ce={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}},qe=()=>{try{return je?.getStore?.()??null}catch{return null}},Ne={getItem:async e=>{const t=!V&&!Q?qe():null;return t?t.getItem(e):Q?J.getItem(e):V?new Promise(r=>{Promise.resolve().then(()=>{const n=window.localStorage.getItem(e),o=fe[e];n!==o&&(fe[e]=n||""),r(n)})}):Ce.getItem(e)},setItem:async(e,t)=>{const r=!V&&!Q?qe():null;return r?r.setItem(e,t):Q?J.setItem(e,t):V?new Promise((n,o)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(e,t);const s=window.localStorage.getItem(e);s===t?(fe[e]=t,n()):o(new Error(`Failed to set localStorage item: expected "${t}", got "${s}"`))}catch(s){o(s)}})}):Ce.setItem(e,t)},removeItem:async e=>{const t=!V&&!Q?qe():null;return t?t.removeItem(e):Q?J.removeItem(e):V?new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(e);const o=window.localStorage.getItem(e);o===null?(delete fe[e],r()):n(new Error(`Failed to remove localStorage item: key "${e}" still exists with value "${o}"`))}catch(o){n(o)}})}):Ce.removeItem(e)}},Ye=50,M={get:async()=>{try{const e=await Ne.getItem("eventHistory");return e?JSON.parse(e):[]}catch(e){return console.error("Error getting event history",e),[]}},set:async e=>{try{await Ne.setItem("eventHistory",JSON.stringify(e.slice(-Ye)))}catch(t){console.error("Error setting event history",t)}},clear:async()=>{try{await Ne.removeItem("eventHistory")}catch(e){console.error("Error clearing event history",e)}},push:async e=>{const t=await M.get();await M.set([{...e,timestamp:Date.now()},...t].slice(-Ye))},find:async e=>(await M.get()).find(r=>r.key===e.key&&r.identifier===e.identifier),filter:async(e,t)=>{const r=await M.get();return t?r.filter(t):r.filter(({key:n,identifier:o})=>(!n||e.key===n)&&(!o||e.identifier===o))}};function ar(){const e=globalThis;return e.__HAUS_EVENT_EMITTER__||=ir(),e.__HAUS_EVENT_EMITTER__}function $(e){const t=ar(),r=((...c)=>console.error(...c));M.get().then(c=>{const f=rr.lodashExports.first(c)?.timestamp;f&&f<Date.now()-1e3*60*60&&(sr.info("Clearing event history since it is older than 1 hour:","eventBus",f),M.clear())});const n=(c,l,f)=>{const p=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:b,data:d}=m;(!b||b===f)&&l(d)}else l(m)}catch(b){r(b)}};return t.on(c,p),()=>{o(c,l,f)}},o=(c,l,f)=>{const p=m=>{if(typeof m=="object"&&m!==null){const{identifier:b}=m;(!b||b===f)&&t.off(c,l)}};t.off(c,p)};return{on:n,off:o,once:(c,l,f)=>{const p=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:b,data:d}=m;(!b||b===f)&&l(d)}else l(m)}finally{o(c,p,f)}};t.on(c,p)},emit:(c,l,...f)=>{const p={identifier:l,data:f.length===1?f[0]:f};M.push({key:c,identifier:l,payload:p.data}),t.emit(c,p)},getEventHistory:(c,l)=>M.filter({key:c,identifier:l})}}$();$();$();$();$();$();$();const cr=globalThis.__STORE_SDK_CONTEXT__||=_t.createContext(void 0);function xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:ur}=Object.prototype,{getPrototypeOf:ke}=Object,{iterator:Ee,toStringTag:Ct}=Symbol,Oe=(e=>t=>{const r=ur.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>Oe(t)===e),Te=e=>t=>typeof t===e,{isArray:X}=Array,G=Te("undefined");function re(e){return e!==null&&!G(e)&&e.constructor!==null&&!G(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qt=N("ArrayBuffer");function lr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qt(e.buffer),t}const fr=Te("string"),T=Te("function"),Nt=Te("number"),ne=e=>e!==null&&typeof e=="object",dr=e=>e===!0||e===!1,be=e=>{if(Oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ct in e)&&!(Ee in e)},pr=e=>{if(!ne(e)||re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hr=N("Date"),yr=N("File"),mr=N("Blob"),gr=N("FileList"),br=e=>ne(e)&&T(e.pipe),wr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=Oe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},Ar=N("URLSearchParams"),[Sr,Er,Or,Tr]=["ReadableStream","Request","Response","Headers"].map(N),vr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),X(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function Dt(e,t){if(re(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pt=e=>!G(e)&&e!==I;function Me(){const{caseless:e,skipUndefined:t}=Pt(this)&&this||{},r={},n=(o,s)=>{const i=e&&Dt(r,s)||s;be(r[i])&&be(o)?r[i]=Me(r[i],o):be(o)?r[i]=Me({},o):X(o)?r[i]=o.slice():(!t||!G(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&oe(arguments[o],n);return r}const Rr=(e,t,r,{allOwnKeys:n}={})=>(oe(t,(o,s)=>{r&&T(o)?e[s]=xt(o,r):e[s]=o},{allOwnKeys:n}),e),_r=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xr=(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)},Cr=(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&ke(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Nr=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!Nt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Dr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),Pr=(e,t)=>{const n=(e&&e[Ee]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Fr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},jr=N("HTMLFormElement"),Mr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ze=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ur=N("RegExp"),Ft=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};oe(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Br=e=>{Ft(e,(t,r)=>{if(T(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(T(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ir=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return X(e)?n(e):n(String(e).split(t)),r},Lr=()=>{},kr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $r(e){return!!(e&&T(e.append)&&e[Ct]==="FormData"&&e[Ee])}const Hr=e=>{const t=new Array(10),r=(n,o)=>{if(ne(n)){if(t.indexOf(n)>=0)return;if(re(n))return n;if(!("toJSON"in n)){t[o]=n;const s=X(n)?[]:{};return oe(n,(i,a)=>{const c=r(i,o+1);!G(c)&&(s[a]=c)}),t[o]=void 0,s}}return n};return r(e,0)},Vr=N("AsyncFunction"),Qr=e=>e&&(ne(e)||T(e))&&T(e.then)&&T(e.catch),jt=((e,t)=>e?setImmediate:t?((r,n)=>(I.addEventListener("message",({source:o,data:s})=>{o===I&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),I.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",T(I.postMessage)),Wr=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||jt,Kr=e=>e!=null&&T(e[Ee]),u={isArray:X,isArrayBuffer:qt,isBuffer:re,isFormData:wr,isArrayBufferView:lr,isString:fr,isNumber:Nt,isBoolean:dr,isObject:ne,isPlainObject:be,isEmptyObject:pr,isReadableStream:Sr,isRequest:Er,isResponse:Or,isHeaders:Tr,isUndefined:G,isDate:hr,isFile:yr,isBlob:mr,isRegExp:Ur,isFunction:T,isStream:br,isURLSearchParams:Ar,isTypedArray:Dr,isFileList:gr,forEach:oe,merge:Me,extend:Rr,trim:vr,stripBOM:_r,inherits:xr,toFlatObject:Cr,kindOf:Oe,kindOfTest:N,endsWith:qr,toArray:Nr,forEachEntry:Pr,matchAll:Fr,isHTMLForm:jr,hasOwnProperty:Ze,hasOwnProp:Ze,reduceDescriptors:Ft,freezeMethods:Br,toObjectSet:Ir,toCamelCase:Mr,noop:Lr,toFiniteNumber:kr,findKey:Dt,global:I,isContextDefined:Pt,isSpecCompliantForm:$r,toJSONObject:Hr,isAsyncFn:Vr,isThenable:Qr,setImmediate:jt,asap:Wr,isIterable:Kr};function g(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)}u.inherits(g,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Mt=g.prototype,Ut={};["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=>{Ut[e]={value:e}});Object.defineProperties(g,Ut);Object.defineProperty(Mt,"isAxiosError",{value:!0});g.from=(e,t,r,n,o,s)=>{const i=Object.create(Mt);u.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return g.call(i,a,c,r,n,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};const zr=null;function Ue(e){return u.isPlainObject(e)||u.isArray(e)}function Bt(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,r){return e?e.concat(t).map(function(o,s){return o=Bt(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function Jr(e){return u.isArray(e)&&!e.some(Ue)}const Gr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ve(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!u.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||f,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(o))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(u.isDate(d))return d.toISOString();if(u.isBoolean(d))return d.toString();if(!c&&u.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(d)||u.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,y,h){let A=d;if(d&&!h&&typeof d=="object"){if(u.endsWith(y,"{}"))y=n?y:y.slice(0,-2),d=JSON.stringify(d);else if(u.isArray(d)&&Jr(d)||(u.isFileList(d)||u.endsWith(y,"[]"))&&(A=u.toArray(d)))return y=Bt(y),A.forEach(function(S,O){!(u.isUndefined(S)||S===null)&&t.append(i===!0?et([y],O,s):i===null?y:y+"[]",l(S))}),!1}return Ue(d)?!0:(t.append(et(h,y,s),l(d)),!1)}const p=[],m=Object.assign(Gr,{defaultVisitor:f,convertValue:l,isVisitable:Ue});function b(d,y){if(!u.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(d),u.forEach(d,function(A,R){(!(u.isUndefined(A)||A===null)&&o.call(t,A,u.isString(R)?R.trim():R,y,m))===!0&&b(A,y?y.concat(R):[R])}),p.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function $e(e,t){this._pairs=[],e&&ve(e,this,t)}const It=$e.prototype;It.append=function(t,r){this._pairs.push([t,r])};It.toString=function(t){const r=t?function(n){return t.call(this,n,tt)}:tt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Lt(e,t,r){if(!t)return e;const n=r&&r.encode||Xr;u.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=u.isURLSearchParams(t)?t.toString():new $e(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yr=typeof URLSearchParams<"u"?URLSearchParams:$e,Zr=typeof FormData<"u"?FormData:null,en=typeof Blob<"u"?Blob:null,tn={isBrowser:!0,classes:{URLSearchParams:Yr,FormData:Zr,Blob:en},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",Be=typeof navigator=="object"&&navigator||void 0,rn=He&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),nn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",on=He&&window.location.href||"http://localhost",sn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:rn,hasStandardBrowserWebWorkerEnv:nn,navigator:Be,origin:on},Symbol.toStringTag,{value:"Module"})),E={...sn,...tn};function an(e,t){return ve(e,new E.classes.URLSearchParams,{visitor:function(r,n,o,s){return E.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function cn(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function un(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function $t(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=r.length;return i=!i&&u.isArray(o)?o.length:i,c?(u.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!u.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&u.isArray(o[i])&&(o[i]=un(o[i])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,o)=>{t(cn(n),o,r,0)}),r}return null}function ln(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const se={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=u.isObject(t);if(s&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return o?JSON.stringify($t(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return an(t,this.formSerializer).toString();if((a=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ve(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),ln(t)):t}],transformResponse:[function(t){const r=this.transitional||se.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:E.classes.FormData,Blob:E.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{se.headers[e]={}});const fn=u.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"]),dn=e=>{const t={};let r,n,o;return e&&e.split(`
2
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&fn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},nt=Symbol("internals");function ee(e){return e&&String(e).trim().toLowerCase()}function we(e){return e===!1||e==null?e:u.isArray(e)?e.map(we):String(e)}function pn(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}const hn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function De(e,t,r,n,o){if(u.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function yn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function mn(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let v=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(a,c,l){const f=ee(c);if(!f)throw new Error("header name must be a non-empty string");const p=u.findKey(o,f);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||c]=we(a))}const i=(a,c)=>u.forEach(a,(l,f)=>s(l,f,c));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(u.isString(t)&&(t=t.trim())&&!hn(t))i(dn(t),r);else if(u.isObject(t)&&u.isIterable(t)){let a={},c,l;for(const f of t){if(!u.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[l=f[0]]=(c=a[l])?u.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}i(a,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ee(t),t){const n=u.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return pn(o);if(u.isFunction(r))return r.call(this,o,n);if(u.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ee(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||De(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=ee(i),i){const a=u.findKey(n,i);a&&(!r||De(n,n[a],a,r))&&(delete n[a],o=!0)}}return u.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||De(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return u.forEach(this,(o,s)=>{const i=u.findKey(n,s);if(i){r[i]=we(o),delete r[s];return}const a=t?yn(s):String(s).trim();a!==s&&delete r[s],r[a]=we(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[nt]=this[nt]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=ee(i);n[a]||(mn(o,i),n[a]=!0)}return u.isArray(t)?t.forEach(s):s(t),this}};v.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(v.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});u.freezeMethods(v);function Pe(e,t){const r=this||se,n=t||r,o=v.from(n.headers);let s=n.data;return u.forEach(e,function(a){s=a.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ht(e){return!!(e&&e.__CANCEL__)}function Y(e,t,r){g.call(this,e??"canceled",g.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(Y,g,{__CANCEL__:!0});function Vt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function gn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),f=n[s];i||(i=l),r[o]=c,n[o]=l;let p=s,m=0;for(;p!==o;)m+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const b=f&&l-f;return b?Math.round(m*1e3/b):void 0}}function wn(e,t){let r=0,n=1e3/t,o,s;const i=(l,f=Date.now())=>{r=f,o=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const f=Date.now(),p=f-r;p>=n?i(l,f):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},n-p)))},()=>o&&i(o)]}const Se=(e,t,r=3)=>{let n=0;const o=bn(50,250);return wn(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,l=o(c),f=i<=a;n=i;const p={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&f?(a-i)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},ot=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},st=e=>(...t)=>u.asap(()=>e(...t)),An=E.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,E.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(E.origin),E.navigator&&/(msie|trident)/i.test(E.navigator.userAgent)):()=>!0,Sn=E.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];u.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),u.isString(n)&&a.push(`path=${n}`),u.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),u.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function En(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function On(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qt(e,t,r){let n=!En(t);return e&&(n||r==!1)?On(e,t):t}const it=e=>e instanceof v?{...e}:e;function k(e,t){t=t||{};const r={};function n(l,f,p,m){return u.isPlainObject(l)&&u.isPlainObject(f)?u.merge.call({caseless:m},l,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function o(l,f,p,m){if(u.isUndefined(f)){if(!u.isUndefined(l))return n(void 0,l,p,m)}else return n(l,f,p,m)}function s(l,f){if(!u.isUndefined(f))return n(void 0,f)}function i(l,f){if(u.isUndefined(f)){if(!u.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function a(l,f,p){if(p in t)return n(l,f);if(p in e)return n(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,f,p)=>o(it(l),it(f),p,!0)};return u.forEach(Object.keys({...e,...t}),function(f){const p=c[f]||o,m=p(e[f],t[f],f);u.isUndefined(m)&&p!==a||(r[f]=m)}),r}const Wt=e=>{const t=k({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=v.from(i),t.url=Lt(Qt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),u.isFormData(r)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(u.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([f,p])=>{l.includes(f.toLowerCase())&&i.set(f,p)})}}if(E.hasStandardBrowserEnv&&(n&&u.isFunction(n)&&(n=n(t)),n||n!==!1&&An(t.url))){const c=o&&s&&Sn.read(s);c&&i.set(o,c)}return t},Tn=typeof XMLHttpRequest<"u",vn=Tn&&function(e){return new Promise(function(r,n){const o=Wt(e);let s=o.data;const i=v.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,f,p,m,b,d;function y(){b&&b(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function A(){if(!h)return;const S=v.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Vt(function(_){r(_),y()},function(_){n(_),y()},x),h=null}"onloadend"in h?h.onloadend=A:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(A)},h.onabort=function(){h&&(n(new g("Request aborted",g.ECONNABORTED,e,h)),h=null)},h.onerror=function(O){const x=O&&O.message?O.message:"Network Error",U=new g(x,g.ERR_NETWORK,e,h);U.event=O||null,n(U),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||kt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new g(O,x.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&u.forEach(i.toJSON(),function(O,x){h.setRequestHeader(x,O)}),u.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),l&&([m,d]=Se(l,!0),h.addEventListener("progress",m)),c&&h.upload&&([p,b]=Se(c),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(f=S=>{h&&(n(!S||S.type?new Y(null,e,h):S),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const R=gn(o.url);if(R&&E.protocols.indexOf(R)===-1){n(new g("Unsupported protocol "+R+":",g.ERR_BAD_REQUEST,e));return}h.send(s||null)})},Rn=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(l){if(!o){o=!0,a();const f=l instanceof Error?l:this.reason;n.abort(f instanceof g?f:new Y(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=()=>u.asap(a),c}},_n=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},xn=async function*(e,t){for await(const r of Cn(e))yield*_n(r,t)},Cn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},at=(e,t,r,n)=>{const o=xn(e,t);let s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:f}=await o.next();if(l){a(),c.close();return}let p=f.byteLength;if(r){let m=s+=p;r(m)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ct=64*1024,{isFunction:de}=u,qn=(({Request:e,Response:t})=>({Request:e,Response:t}))(u.global),{ReadableStream:ut,TextEncoder:lt}=u.global,ft=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nn=e=>{e=u.merge.call({skipUndefined:!0},qn,e);const{fetch:t,Request:r,Response:n}=e,o=t?de(t):typeof fetch=="function",s=de(r),i=de(n);if(!o)return!1;const a=o&&de(ut),c=o&&(typeof lt=="function"?(d=>y=>d.encode(y))(new lt):async d=>new Uint8Array(await new r(d).arrayBuffer())),l=s&&a&&ft(()=>{let d=!1;const y=new r(E.origin,{body:new ut,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!y}),f=i&&a&&ft(()=>u.isReadableStream(new n("").body)),p={stream:f&&(d=>d.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(y,h)=>{let A=y&&y[d];if(A)return A.call(y);throw new g(`Response type '${d}' is not supported`,g.ERR_NOT_SUPPORT,h)})});const m=async d=>{if(d==null)return 0;if(u.isBlob(d))return d.size;if(u.isSpecCompliantForm(d))return(await new r(E.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(u.isArrayBufferView(d)||u.isArrayBuffer(d))return d.byteLength;if(u.isURLSearchParams(d)&&(d=d+""),u.isString(d))return(await c(d)).byteLength},b=async(d,y)=>{const h=u.toFiniteNumber(d.getContentLength());return h??m(y)};return async d=>{let{url:y,method:h,data:A,signal:R,cancelToken:S,timeout:O,onDownloadProgress:x,onUploadProgress:U,responseType:_,headers:_e,withCredentials:ce="same-origin",fetchOptions:We}=Wt(d),Ke=t||fetch;_=_?(_+"").toLowerCase():"text";let ue=Rn([R,S&&S.toAbortSignal()],O),Z=null;const B=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let ze;try{if(U&&l&&h!=="get"&&h!=="head"&&(ze=await b(_e,A))!==0){let j=new r(y,{method:"POST",body:A,duplex:"half"}),H;if(u.isFormData(A)&&(H=j.headers.get("content-type"))&&_e.setContentType(H),j.body){const[xe,le]=ot(ze,Se(st(U)));A=at(j.body,ct,xe,le)}}u.isString(ce)||(ce=ce?"include":"omit");const D=s&&"credentials"in r.prototype,Je={...We,signal:ue,method:h.toUpperCase(),headers:_e.normalize().toJSON(),body:A,duplex:"half",credentials:D?ce:void 0};Z=s&&new r(y,Je);let F=await(s?Ke(Z,We):Ke(y,Je));const Ge=f&&(_==="stream"||_==="response");if(f&&(x||Ge&&B)){const j={};["status","statusText","headers"].forEach(Xe=>{j[Xe]=F[Xe]});const H=u.toFiniteNumber(F.headers.get("content-length")),[xe,le]=x&&ot(H,Se(st(x),!0))||[];F=new n(at(F.body,ct,xe,()=>{le&&le(),B&&B()}),j)}_=_||"text";let tr=await p[u.findKey(p,_)||"text"](F,d);return!Ge&&B&&B(),await new Promise((j,H)=>{Vt(j,H,{data:tr,headers:v.from(F.headers),status:F.status,statusText:F.statusText,config:d,request:Z})})}catch(D){throw B&&B(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,d,Z),{cause:D.cause||D}):g.from(D,D&&D.code,d,Z)}}},Dn=new Map,Kt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i=s.length,a=i,c,l,f=Dn;for(;a--;)c=s[a],l=f.get(c),l===void 0&&f.set(c,l=a?new Map:Nn(t)),f=l;return l};Kt();const Ve={http:zr,xhr:vn,fetch:{get:Kt}};u.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>`- ${e}`,Pn=e=>u.isFunction(e)||e===null||e===!1;function Fn(e,t){e=u.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!Pn(n)&&(o=Ve[(a=String(n)).toLowerCase()],o===void 0))throw new g(`Unknown adapter '${a}'`);if(o&&(u.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
4
+ `+i.map(dt).join(`
5
+ `):" "+dt(i[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const zt={getAdapter:Fn,adapters:Ve};function Fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Y(null,e)}function pt(e){return Fe(e),e.headers=v.from(e.headers),e.data=Pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zt.getAdapter(e.adapter||se.adapter,e)(e).then(function(n){return Fe(e),n.data=Pe.call(e,e.transformResponse,n),n.headers=v.from(n.headers),n},function(n){return Ht(n)||(Fe(e),n&&n.response&&(n.response.data=Pe.call(e,e.transformResponse,n.response),n.response.headers=v.from(n.response.headers))),Promise.reject(n)})}const Jt="1.13.2",Re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Re[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ht={};Re.transitional=function(t,r,n){function o(s,i){return"[Axios v"+Jt+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,a)=>{if(t===!1)throw new g(o(i," has been removed"+(r?" in "+r:"")),g.ERR_DEPRECATED);return r&&!ht[i]&&(ht[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,a):!0}};Re.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function jn(e,t,r){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new g("option "+s+" must be "+c,g.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Ae={assertOptions:jn,validators:Re},P=Ae.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rt,response:new rt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=k(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Ae.assertOptions(n,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),o!=null&&(u.isFunction(o)?r.paramsSerializer={serialize:o}:Ae.assertOptions(o,{encode:P.function,serialize:P.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ae.assertOptions(r,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[r.method]);s&&u.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=v.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let f,p=0,m;if(!c){const d=[pt.bind(this),void 0];for(d.unshift(...a),d.push(...l),m=d.length,f=Promise.resolve(r);p<m;)f=f.then(d[p++],d[p++]);return f}m=a.length;let b=r;for(;p<m;){const d=a[p++],y=a[p++];try{b=d(b)}catch(h){y.call(this,h);break}}try{f=pt.call(this,b)}catch(d){return Promise.reject(d)}for(p=0,m=l.length;p<m;)f=f.then(l[p++],l[p++]);return f}getUri(t){t=k(this.defaults,t);const r=Qt(t.baseURL,t.url,t.allowAbsoluteUrls);return Lt(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){L.prototype[t]=function(r,n){return this.request(k(n||{},{method:t,url:r,data:(n||{}).data}))}});u.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,a){return this.request(k(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}L.prototype[t]=r(),L.prototype[t+"Form"]=r(!0)});let Mn=class Gt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,a){n.reason||(n.reason=new Y(s,i,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Gt(function(o){t=o}),cancel:t}}};function Un(e){return function(r){return e.apply(null,r)}}function Bn(e){return u.isObject(e)&&e.isAxiosError===!0}const Ie={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ie).forEach(([e,t])=>{Ie[t]=e});function Xt(e){const t=new L(e),r=xt(L.prototype.request,t);return u.extend(r,L.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Xt(k(e,o))},r}const w=Xt(se);w.Axios=L;w.CanceledError=Y;w.CancelToken=Mn;w.isCancel=Ht;w.VERSION=Jt;w.toFormData=ve;w.AxiosError=g;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Un;w.isAxiosError=Bn;w.mergeConfig=k;w.AxiosHeaders=v;w.formToJSON=e=>$t(u.isHTMLForm(e)?new FormData(e):e);w.getAdapter=zt.getAdapter;w.HttpStatusCode=Ie;w.default=w;const{Axios:eo,AxiosError:to,CanceledError:ro,isCancel:no,CancelToken:oo,VERSION:so,all:io,Cancel:ao,isAxiosError:co,spread:uo,toFormData:lo,AxiosHeaders:fo,HttpStatusCode:po,formToJSON:ho,getAdapter:yo,mergeConfig:mo}=w,yt=typeof window<"u";class In{constructor(t={}){this.requestStrategy=async(r,n)=>{await n(r)},this.responseStrategy=async(r,n)=>{await n(r)},this.defaultBaseUrl=t.defaultBaseUrl,this.useGlobalSingletons=t.useGlobalSingletons??!1,this.globalQueryClientKey=t.globalQueryClientKey||"__STORE_QUERY_CLIENT__",this.globalAxiosKey=t.globalAxiosKey||"__STORE_API_CLIENT__",this.createQueryClientImpl=t.createQueryClient||(()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),this.createAxiosImpl=t.createAxios||(r=>{const n=w.create({baseURL:r||this.defaultBaseUrl,withCredentials:!0});return this.configureAxios(n)})}getQueryClient(t){if(yt){if(t?.client)return t.client;if(this.useGlobalSingletons){const r=globalThis,n=r[this.globalQueryClientKey];if(n)return n;const o=this.createQueryClientImpl();return r[this.globalQueryClientKey]=o,o}return this.queryClientSingleton||(this.queryClientSingleton=this.createQueryClientImpl()),this.queryClientSingleton}return this.createQueryClientImpl()}getAxiosInstance(){if(yt){if(this.useGlobalSingletons){const t=globalThis,r=t[this.globalAxiosKey];if(r)return r;const n=this.configureAxios(this.createAxiosImpl());return t[this.globalAxiosKey]=n,n}return this.axiosSingleton||(this.axiosSingleton=this.configureAxios(this.createAxiosImpl())),this.axiosSingleton}return this.configureAxios(this.createAxiosImpl())}setDefaultApiBaseUrl(t){this.defaultBaseUrl=t}async setApiUrl(t){const r=this.getAxiosInstance();r.defaults.baseURL=t}setRequestInterceptorStrategy(t){this.requestStrategy=t,this.axiosSingleton&&(this.axiosSingleton=this.configureAxios(this.axiosSingleton))}setResponseInterceptorStrategy(t){this.responseStrategy=t,this.axiosSingleton&&(this.axiosSingleton=this.configureAxios(this.axiosSingleton))}getAxiosProxy(){return new Proxy({},{get:(t,r)=>{const n=this.getAxiosInstance(),o=Reflect.get(n,r);return typeof o=="function"?o.bind(n):o},set:(t,r,n)=>Reflect.set(this.getAxiosInstance(),r,n)})}getQueryClientProxy(){return new Proxy({},{get:(t,r)=>{const n=this.getQueryClient(),o=Reflect.get(n,r);return typeof o=="function"?o.bind(n):o},set:(t,r,n)=>Reflect.set(this.getQueryClient(),r,n)})}configureAxios(t){return t.interceptors.request.clear(),t.interceptors.response.clear(),t.interceptors.request.use(async r=>{const n=async o=>{};return await this.requestStrategy(r,n),r}),t.interceptors.response.use(async r=>{const n=async o=>{};return await this.responseStrategy(r,n),r}),t}}const mt="__HAUS_NAMED_HTTP_CLIENTS__",Ln=typeof window<"u",Yt="default";function Qe(){if(Ln){const t=globalThis,r=t[mt];if(r)return r;const n={};return t[mt]=n,n}const e=Qe;return e._ssr||(e._ssr={}),e._ssr}function Zt(e={}){return new In({createQueryClient:e.createQueryClient||(()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})),createAxios:e.createAxios||(t=>w.create({baseURL:t??e.defaultBaseUrl,withCredentials:!0})),defaultBaseUrl:e.defaultBaseUrl,useGlobalSingletons:e.useGlobalSingletons,globalQueryClientKey:e.globalQueryClientKey,globalAxiosKey:e.globalAxiosKey})}function kn(e,t={},r={}){const n=Qe();if(n[e]&&!r.overwrite)return n[e];const o=Zt(t);return n[e]=o,o}function $n(e,t={}){const r=Qe();return r[e]||(r[e]=Zt(t)),r[e]}kn(Yt,{useGlobalSingletons:!0,globalQueryClientKey:"__STORE_QUERY_CLIENT__",globalAxiosKey:"__STORE_API_CLIENT__"},{overwrite:!1});const er=$n(Yt,{createQueryClient:()=>new Le.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}}),createAxios:e=>w.create({baseURL:e,withCredentials:!0})});er.getAxiosProxy();er.getQueryClientProxy();var q={},pe={},he={},ye={},gt;function ie(){if(gt)return ye;gt=1,Object.defineProperty(ye,"__esModule",{value:!0});var e;return(function(t){t.Mutation="mutation",t.Query="query",t.Subscription="subscription"})(e||(e={})),ye.default=e,ye}var W={},te={},bt;function Hn(){if(bt)return te;bt=1,Object.defineProperty(te,"__esModule",{value:!0}),te.isNestedField=void 0;function e(t){return typeof t=="object"&&t.hasOwnProperty("operation")&&t.hasOwnProperty("variables")&&t.hasOwnProperty("fields")||typeof t=="object"&&t.hasOwnProperty("operation")&&t.hasOwnProperty("fragment")&&t.hasOwnProperty("fields")}return te.isNestedField=e,te}var wt;function ae(){if(wt)return W;wt=1;var e=W&&W.__assign||function(){return e=Object.assign||function(n){for(var o,s=1,i=arguments.length;s<i;s++){o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n},e.apply(this,arguments)};Object.defineProperty(W,"__esModule",{value:!0});var t=Hn(),r=(function(){function n(){}return n.resolveVariables=function(o){for(var s={},i=0,a=o;i<a.length;i++){var c=a[i],l=c.variables,f=c.fields;s=e(e(e({},s),l),f&&n.getNestedVariables(f)||{})}return s},n.queryDataNameAndArgumentMap=function(o){return o&&Object.keys(o).length?"(".concat(Object.entries(o).reduce(function(s,i,a){var c=i[0],l=i[1];return"".concat(s).concat(a!==0?", ":"").concat(l&&l.name?l.name:c,": $").concat(c)},""),")"):""},n.queryFieldsMap=function(o){var s=this;return o?o.map(function(i){if((0,t.isNestedField)(i))return n.queryNestedFieldMap(i);if(typeof i=="object"){var a="";return Object.entries(i).forEach(function(c,l,f){var p=c[0],m=c[1];a+="".concat(p," ").concat(m.length>0?"{ "+s.queryFieldsMap(m)+" }":""),l<f.length-1&&(a+=", ")}),a}else return"".concat(i)}).join(", "):""},n.operationOrAlias=function(o){return typeof o=="string"?o:"".concat(o.alias,": ").concat(o.name)},n.isFragment=function(o){var s;return(s=o?.fragment===!0)!==null&&s!==void 0?s:!1},n.operationOrFragment=function(o){return n.isFragment(o)?o.operation:n.operationOrAlias(o.operation)},n.getFragment=function(o){return n.isFragment(o)?"... on ":""},n.queryNestedFieldMap=function(o){return"".concat(n.getFragment(o)).concat(n.operationOrFragment(o)," ").concat(this.isFragment(o)?"":this.queryDataNameAndArgumentMap(o.variables)," ").concat(o.fields.length>0?"{ "+this.queryFieldsMap(o.fields)+" }":"")},n.queryVariablesMap=function(o,s){var i={},a=function(c){c&&Object.keys(c).map(function(l){i[l]=typeof c[l]=="object"?c[l].value:c[l]})};return a(o),s&&typeof s=="object"&&a(n.getNestedVariables(s)),i},n.getNestedVariables=function(o){var s={};function i(a){return a?.forEach(function(c){if((0,t.isNestedField)(c))s=e(e(e({},c.variables),s),c.fields&&i(c.fields));else if(typeof c=="object")for(var l=0,f=Object.entries(c);l<f.length;l++){var p=f[l],m=p[1];i(m)}}),s}return i(o),s},n.queryDataType=function(o){var s="String",i=typeof o=="object"?o.value:o;if(o?.type!=null)s=o.type;else{var a=Array.isArray(i)?i[0]:i;switch(typeof a){case"object":s="Object";break;case"boolean":s="Boolean";break;case"number":s=a%1===0?"Int":"Float";break}}return typeof o=="object"&&(o.list===!0?s="[".concat(s,"]"):Array.isArray(o.list)&&(s="[".concat(s).concat(o.list[0]?"!":"","]")),o.required&&(s+="!")),s},n})();return W.default=r,W}var At;function Vn(){if(At)return he;At=1,Object.defineProperty(he,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields,this.operation=o.operation)}return n.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(this.variables,this.operationTemplate(this.operation))},n.prototype.mutationsBuilder=function(o){var s=this,i=o.map(function(a){return s.operation=a.operation,s.variables=a.variables,s.fields=a.fields,s.operationTemplate(a.operation)});return this.operationWrapperTemplate(t.default.resolveVariables(o),i.join(`
7
+ `))},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(o){return Object.keys(o).length?"(".concat(Object.keys(o).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(t.default.queryDataType(o[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o,s){var i=typeof this.operation=="string"?this.operation:this.operation.name;return{query:"".concat(e.default.Mutation," ").concat(i.charAt(0).toUpperCase()+i.slice(1)," ").concat(this.queryDataArgumentAndTypeMap(o),` {
8
+ `).concat(s,`
9
+ }`),variables:t.default.queryVariablesMap(o)}},n.prototype.operationTemplate=function(o){var s=typeof o=="string"?o:"".concat(o.alias,": ").concat(o.name);return"".concat(s," ").concat(this.queryDataNameAndArgumentMap(),` {
10
+ `).concat(this.queryFieldsMap(this.fields),`
11
+ }`)},n.prototype.queryFieldsMap=function(o){var s=this;return Array.isArray(o)?o.map(function(i){return typeof i=="object"?"".concat(Object.keys(i)[0]," { ").concat(s.queryFieldsMap(Object.values(i)[0])," }"):"".concat(i)}).join(", "):""},n})();return he.default=r,he}var me={},St;function Qn(){if(St)return me;St=1,Object.defineProperty(me,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){this.queryDataType=function(s){var i="String",a=typeof s=="object"?s.value:s;if(s.type!==void 0)i=s.type;else switch(typeof a){case"object":i="Object";break;case"boolean":i="Boolean";break;case"number":i=a%1===0?"Int":"Float";break}return typeof s=="object"&&s.required&&(i+="!"),i},Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields||[],this.operation=o.operation)}return n.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate())},n.prototype.queriesBuilder=function(o){var s=this,i=function(){var a=[];return o.forEach(function(c){c&&(s.operation=c.operation,s.fields=c.fields,s.variables=c.variables,a.push(s.operationTemplate()))}),a.join(" ")};return this.operationWrapperTemplate(i())},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(){var o=this;return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(o.queryDataType(o.variables[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o){var s=typeof this.operation=="string"?this.operation:this.operation.name;return{query:"".concat(e.default.Query," ").concat(s.charAt(0).toUpperCase()).concat(s.slice(1)," ").concat(this.queryDataArgumentAndTypeMap()," { ").concat(o," }"),variables:t.default.queryVariablesMap(this.variables)}},n.prototype.operationTemplate=function(){var o=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(o," ").concat(this.queryDataNameAndArgumentMap()," { nodes { ").concat(t.default.queryFieldsMap(this.fields)," } }")},n})();return me.default=r,me}var Et;function Wn(){if(Et)return pe;Et=1,Object.defineProperty(pe,"__esModule",{value:!0});var e=Vn(),t=Qn();return pe.default={DefaultAppSyncQueryAdapter:t.default,DefaultAppSyncMutationAdapter:e.default},pe}var K={},Ot;function Kn(){if(Ot)return K;Ot=1;var e=K&&K.__assign||function(){return e=Object.assign||function(o){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])}return o},e.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});var t=ie(),r=ae(),n=(function(){function o(s,i){var a=this;Array.isArray(s)?this.variables=r.default.resolveVariables(s):(this.variables=s.variables,this.fields=s.fields,this.operation=s.operation),this.config={operationName:""},i&&Object.entries(i).forEach(function(c){var l=c[0],f=c[1];a.config[l]=f})}return o.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(t.default.Mutation,this.variables,this.operationTemplate(this.operation))},o.prototype.mutationsBuilder=function(s){var i=this,a=s.map(function(c){return i.operation=c.operation,i.variables=c.variables,i.fields=c.fields,i.operationTemplate(c.operation)});return this.operationWrapperTemplate(t.default.Mutation,r.default.resolveVariables(s),a.join(`
12
+ `))},o.prototype.queryDataArgumentAndTypeMap=function(s){return this.fields&&typeof this.fields=="object"&&(s=e(e({},r.default.getNestedVariables(this.fields)),s)),s&&Object.keys(s).length>0?"(".concat(Object.keys(s).reduce(function(i,a,c){return"".concat(i).concat(c!==0?", ":"","$").concat(a,": ").concat(r.default.queryDataType(s[a]))},""),")"):""},o.prototype.operationWrapperTemplate=function(s,i,a){var c="".concat(s," ").concat(this.queryDataArgumentAndTypeMap(i),` {
13
+ `).concat(a,`
14
+ }`);return this.config.operationName&&(c=c.replace("mutation","mutation ".concat(this.config.operationName))),{query:c,variables:r.default.queryVariablesMap(i,this.fields)}},o.prototype.operationTemplate=function(s){var i=typeof s=="string"?s:"".concat(s.alias,": ").concat(s.name);return"".concat(i," ").concat(r.default.queryDataNameAndArgumentMap(this.variables)," ").concat(this.fields&&this.fields.length>0?`{
15
+ `.concat(r.default.queryFieldsMap(this.fields),`
16
+ }`):"")},o})();return K.default=n,K}var z={},Tt;function zn(){if(Tt)return z;Tt=1;var e=z&&z.__assign||function(){return e=Object.assign||function(o){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(o[c]=s[c])}return o},e.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0});var t=ie(),r=ae(),n=(function(){function o(s,i){var a=this;this.config={operationName:""},i&&Object.entries(i).forEach(function(c){var l=c[0],f=c[1];a.config[l]=f}),Array.isArray(s)?this.variables=r.default.resolveVariables(s):(this.variables=s.variables,this.fields=s.fields||[],this.operation=s.operation)}return o.prototype.queryBuilder=function(){return this.operationWrapperTemplate(this.operationTemplate(this.variables))},o.prototype.queriesBuilder=function(s){var i=this,a=function(){var c=[];return s.forEach(function(l){l&&(i.operation=l.operation,i.fields=l.fields,c.push(i.operationTemplate(l.variables)))}),c.join(" ")};return this.operationWrapperTemplate(a())},o.prototype.queryDataArgumentAndTypeMap=function(){var s=this.variables;return this.fields&&typeof this.fields=="object"&&(s=e(e({},r.default.getNestedVariables(this.fields)),s)),s&&Object.keys(s).length>0?"(".concat(Object.keys(s).reduce(function(i,a,c){return"".concat(i).concat(c!==0?", ":"","$").concat(a,": ").concat(r.default.queryDataType(s[a]))},""),")"):""},o.prototype.operationWrapperTemplate=function(s){var i="".concat(t.default.Query," ").concat(this.queryDataArgumentAndTypeMap()," { ").concat(s," }");return i=i.replace("query","query".concat(this.config.operationName!==""?" "+this.config.operationName:"")),{query:i,variables:r.default.queryVariablesMap(this.variables,this.fields)}},o.prototype.operationTemplate=function(s){var i=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(i," ").concat(s?r.default.queryDataNameAndArgumentMap(s):""," ").concat(this.fields&&this.fields.length>0?"{ "+r.default.queryFieldsMap(this.fields)+" }":"")},o})();return z.default=n,z}var ge={},vt;function Jn(){if(vt)return ge;vt=1,Object.defineProperty(ge,"__esModule",{value:!0});var e=ie(),t=ae(),r=(function(){function n(o){Array.isArray(o)?this.variables=t.default.resolveVariables(o):(this.variables=o.variables,this.fields=o.fields,this.operation=o.operation)}return n.prototype.subscriptionBuilder=function(){return this.operationWrapperTemplate(e.default.Subscription,this.variables,this.operationTemplate(this.operation))},n.prototype.subscriptionsBuilder=function(o){var s=this,i=o.map(function(a){return s.operation=a.operation,s.variables=a.variables,s.fields=a.fields,s.operationTemplate(a.operation)});return this.operationWrapperTemplate(e.default.Subscription,t.default.resolveVariables(o),i.join(`
17
+ `))},n.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(o,s,i){return"".concat(o).concat(i!==0?", ":"").concat(s,": $").concat(s)},""),")"):""},n.prototype.queryDataArgumentAndTypeMap=function(o){return Object.keys(o).length?"(".concat(Object.keys(o).reduce(function(s,i,a){return"".concat(s).concat(a!==0?", ":"","$").concat(i,": ").concat(t.default.queryDataType(o[i]))},""),")"):""},n.prototype.operationWrapperTemplate=function(o,s,i){return{query:"".concat(o," ").concat(this.queryDataArgumentAndTypeMap(s),` {
18
+ `).concat(i,`
19
+ }`),variables:t.default.queryVariablesMap(s)}},n.prototype.operationTemplate=function(o){var s=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(s," ").concat(this.queryDataNameAndArgumentMap(),` {
20
+ `).concat(this.queryFieldsMap(this.fields),`
21
+ }`)},n.prototype.queryFieldsMap=function(o){var s=this;return o?o.map(function(i){return typeof i=="object"?"".concat(Object.keys(i)[0]," { ").concat(s.queryFieldsMap(Object.values(i)[0])," }"):"".concat(i)}).join(", "):""},n})();return ge.default=r,ge}var Rt;function Gn(){if(Rt)return q;Rt=1,Object.defineProperty(q,"__esModule",{value:!0}),q.adapters=q.query=q.mutation=q.subscription=void 0;var e=Wn();q.adapters=e.default;var t=Kn(),r=zn(),n=Jn();function o(a,c,l){var f;if(Array.isArray(a)){if(c){var p=new c(a,l);return p.queriesBuilder(a)}return f=new r.default(a,l),f.queriesBuilder(a)}if(c){var p=new c(a,l);return p.queryBuilder()}return f=new r.default(a,l),f.queryBuilder()}q.query=o;function s(a,c,l){var f,p;return Array.isArray(a)?c?(f=new c(a,l),f.mutationsBuilder(a)):(p=new t.default(a,l),p.mutationsBuilder(a)):c?(f=new c(a,l),f.mutationBuilder()):(p=new t.default(a,l),p.mutationBuilder())}q.mutation=s;function i(a,c){var l,f;return Array.isArray(a)?c?(l=new c(a),l.subscriptionsBuilder(a)):(f=new n.default(a),f.subscriptionsBuilder(a)):c?(l=new c(a),l.subscriptionBuilder()):(f=new n.default(a),f.subscriptionBuilder())}return q.subscription=i,q}Gn();const Xn=()=>{const t=_t.useContext(cr)?.sdk;return t||console.error("You must wrap your component in a <DataProvider>"),t?.sdkType==="dummy"||t?.sdkType==="vendure",t};exports.useSdk=Xn;
package/index-DgRzu7XX.js DELETED
@@ -1,10 +0,0 @@
1
- "use strict";require("./index-CgxqXyHf.js");const P=require("react");var v={exports:{}},_={};var U;function ie(){if(U)return _;U=1;var t=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(l,s,c){var m=null;if(c!==void 0&&(m=""+c),s.key!==void 0&&(m=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:l,key:m,ref:s!==void 0?s:null,props:c}}return _.Fragment=u,_.jsx=i,_.jsxs=i,_}var R={};var $;function se(){return $||($=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case V:return"Portal";case Q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case h:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function u(e){return""+e}function i(e){try{u(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,o=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),u(e)}}function l(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===h)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function m(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function n(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function J(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,r,n,o,E,S){var a=n.ref;return e={$$typeof:w,type:e,key:r,props:n,_owner:o},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:J}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,n,o,E,S){var a=r.children;if(a!==void 0)if(o)if(ae(a)){for(o=0;o<a.length;o++)y(a[o]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(a);if(j.call(r,"key")){a=t(e);var f=Object.keys(r).filter(function(ue){return ue!=="key"});o=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",M[a+o]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,o,a,f,a),M[a+o]=!0)}if(a=null,n!==void 0&&(i(n),a=""+n),m(r)&&(i(r.key),a=""+r.key),"key"in r){n={};for(var A in r)A!=="key"&&(n[A]=r[A])}else n=r;return a&&d(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,a,n,s(),E,S)}function y(e){C(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===h&&(e._payload.status==="fulfilled"?C(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function C(e){return typeof e=="object"&&e!==null&&e.$$typeof===w}var p=P,w=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,ae=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(e){return e()}};var Y,I={},D=p.react_stack_bottom_frame.bind(p,c)(),F=k(l(c)),M={};R.Fragment=T,R.jsx=function(e,r,n){var o=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,n,!1,o?Error("react-stack-top-frame"):D,o?k(l(e)):F)},R.jsxs=function(e,r,n){var o=1e4>O.recentlyCreatedOwnerStacks++;return g(e,r,n,!0,o?Error("react-stack-top-frame"):D,o?k(l(e)):F)}})()),R}var q;function ce(){return q||(q=1,process.env.NODE_ENV==="production"?v.exports=ie():v.exports=se()),v.exports}var le=ce(),b={exports:{}},N={};var L;function fe(){if(L)return N;L=1;var t=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return N.c=function(u){return t.H.useMemoCache(u)},N}var x={};var W;function me(){return W||(W=1,process.env.NODE_ENV!=="production"&&(function(){var t=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;x.c=function(u){var i=t.H;return i===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
7
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
8
- 2. You might be breaking the Rules of Hooks
9
- 3. You might have more than one copy of React in the same app
10
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),i.useMemoCache(u)}})()),x}var G;function de(){return G||(G=1,process.env.NODE_ENV==="production"?b.exports=fe():b.exports=me()),b.exports}var _e=de();const H=t=>t==null?0:typeof t=="number"?t:"value"in t?t.value:"min"in t?t.min:0,Re=t=>{const u=t.map(s=>H(s.price)),i=Math.min(...u),l=Math.max(...u);return i===void 0||l===void 0?{value:0}:i===l?{value:i}:{min:i,max:l}},pe=(t,u)=>typeof t=="function"?t(u):t;exports.compilerRuntimeExports=_e;exports.getPrice=H;exports.getProductPriceFromVariants=Re;exports.jsxRuntimeExports=le;exports.renderChildren=pe;