@nizza/core 0.6.1-beta.2 → 0.6.2-beta.0

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.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var tu=Object.defineProperty;var nu=(t,e,n)=>e in t?tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(nu(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),ms=require("react-dom"),gs=require("@tanstack/react-query"),iu=require("react/jsx-runtime");function ru(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Z={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};let au=0;function Hn(t,e){const n=`atom${++au}`,i={toString:()=>n};return typeof t=="function"?i.read=t:(i.init=t,i.read=su,i.write=ou),i}function su(t){return t(this)}function ou(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const _i=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,Si=t=>"init"in t,Ni=t=>!!t.write,An=new WeakMap,lu=(t,e)=>{An.set(t,e),t.catch(()=>{}).finally(()=>An.delete(t))},Xr=(t,e)=>{const n=An.get(t);n&&(An.delete(t),n(e))},Zr=(t,e)=>{t.status="fulfilled",t.value=e},ea=(t,e)=>{t.status="rejected",t.reason=e},uu=t=>typeof(t==null?void 0:t.then)=="function",St=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),ta=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),Ze=t=>!!t&&"v"in t&&t.v instanceof Promise,cu=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,on=t=>{if("e"in t)throw t.e;return t.v},vs=()=>{const t=new WeakMap,e=new WeakMap,n=[],i=new WeakMap;let r,a;(Z?"production":void 0)!=="production"&&(r=new Set,a=new Set);const s=k=>t.get(k),o=(k,C)=>{C.d.forEach((R,S)=>{var E;if(!i.has(S)){const A=s(S);(E=n[n.length-1])==null||E.add(S),i.set(S,[A,new Set]),A&&o(S,A)}i.get(S)[1].add(k)})},l=(k,C)=>{var R;(Z?"production":void 0)!=="production"&&Object.freeze(C);const S=s(k);if(t.set(k,C),i.has(k)||((R=n[n.length-1])==null||R.add(k),i.set(k,[S,new Set]),o(k,C)),Ze(S)){const E="v"in C?C.v instanceof Promise?C.v:Promise.resolve(C.v):Promise.reject(C.e);S.v!==E&&Xr(S.v,E)}},u=(k,C,R,S)=>{const E=new Map(S?C.d:null);let A=!1;R.forEach((h,g)=>{!h&&_i(k,g)&&(h=C),h?(E.set(g,h),C.d.get(g)!==h&&(A=!0)):(Z?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(A||C.d.size!==E.size)&&(C.d=E)},c=(k,C,R,S)=>{const E=s(k),A={d:(E==null?void 0:E.d)||new Map,v:C};if(R&&u(k,A,R,S),St(E,A)&&E.d===A.d)return E;if(Ze(E)&&Ze(A)&&cu(E,A)){if(E.d===A.d)return E;A.v=E.v}return l(k,A),A},d=(k,C,R,S)=>{if(uu(C)){let E;const A=()=>{const g=s(k);if(!Ze(g)||g.v!==h)return;const x=c(k,h,R);e.has(k)&&g.d!==x.d&&L(k,x,g.d)},h=new Promise((g,x)=>{let D=!1;C.then(P=>{D||(D=!0,Zr(h,P),g(P),A())},P=>{D||(D=!0,ea(h,P),x(P),A())}),E=P=>{D||(D=!0,P.then(j=>Zr(h,j),j=>ea(h,j)),g(P))}});return h.orig=C,h.status="pending",lu(h,g=>{g&&E(g),S==null||S()}),c(k,h,R,!0)}return c(k,C,R)},f=(k,C,R)=>{const S=s(k),E={d:(S==null?void 0:S.d)||new Map,e:C};return R&&u(k,E,R),ta(S,E)&&S.d===E.d?S:(l(k,E),E)},v=(k,C)=>{const R=s(k);if(!C&&R&&(e.has(k)||Array.from(R.d).every(([D,P])=>{if(D===k)return!0;const j=v(D);return j===P||St(j,P)})))return R;const S=new Map;let E=!0;const A=D=>{if(_i(k,D)){const j=s(D);if(j)return S.set(D,j),on(j);if(Si(D))return S.set(D,void 0),D.init;throw new Error("no atom init")}const P=v(D);return S.set(D,P),on(P)};let h,g;const x={get signal(){return h||(h=new AbortController),h.signal},get setSelf(){return(Z?"production":void 0)!=="production"&&!Ni(k)&&console.warn("setSelf function cannot be used with read-only atom"),!g&&Ni(k)&&(g=(...D)=>{if((Z?"production":void 0)!=="production"&&E&&console.warn("setSelf function cannot be called in sync"),!E)return _(k,...D)}),g}};try{const D=k.read(A,x);return d(k,D,S,()=>h==null?void 0:h.abort())}catch(D){return f(k,D,S)}finally{E=!1}},p=k=>on(v(k)),m=k=>{const C=h=>{var g,x;const D=new Set((g=e.get(h))==null?void 0:g.t);return(x=i.get(h))==null||x[1].forEach(P=>{D.add(P)}),D},R=new Array,S=new Set,E=h=>{if(!S.has(h)){S.add(h);for(const g of C(h))h!==g&&E(g);R.push(h)}};E(k);const A=new Set([k]);for(let h=R.length-1;h>=0;--h){const g=R[h],x=s(g);if(!x)continue;let D=!1;for(const P of x.d.keys())if(P!==g&&A.has(P)){D=!0;break}if(D){const P=v(g,!0);St(x,P)||A.add(g)}}},N=(k,...C)=>{const R=A=>on(v(A)),S=(A,...h)=>{const g=n.length>0;g||n.push(new Set([A]));let x;if(_i(k,A)){if(!Si(A))throw new Error("atom not writable");const D=s(A),P=d(A,h[0]);St(D,P)||m(A)}else x=N(A,...h);if(!g){const D=$(n.pop());(Z?"production":void 0)!=="production"&&r.forEach(P=>P({type:"async-write",flushed:D}))}return x};return k.write(R,S,...C)},_=(k,...C)=>{n.push(new Set([k]));const R=N(k,...C),S=$(n.pop());return(Z?"production":void 0)!=="production"&&r.forEach(E=>E({type:"write",flushed:S})),R},I=(k,C,R)=>{var S;const E=e.get(k);if(E)return C&&E.t.add(C),E;const A=R||[];(S=s(k))==null||S.d.forEach((g,x)=>{x!==k&&I(x,k,A)}),v(k);const h={t:new Set(C&&[C]),l:new Set};if(e.set(k,h),(Z?"production":void 0)!=="production"&&a.add(k),Ni(k)&&k.onMount){const{onMount:g}=k;A.push(()=>{const x=g((...D)=>_(k,...D));x&&(h.u=x)})}return R||A.forEach(g=>g()),h},M=(k,C)=>!C.l.size&&(!C.t.size||C.t.size===1&&C.t.has(k)),T=(k,C)=>{if(!M(k,C))return;const R=C.u;R&&R(),e.delete(k),(Z?"production":void 0)!=="production"&&a.delete(k);const S=s(k);S?(Ze(S)&&Xr(S.v),S.d.forEach((E,A)=>{if(A!==k){const h=e.get(A);h&&(h.t.delete(k),T(A,h))}})):(Z?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",k)},L=(k,C,R)=>{const S=new Set(C.d.keys()),E=new Set;R==null||R.forEach((A,h)=>{if(S.has(h)){S.delete(h);return}E.add(h);const g=e.get(h);g&&g.t.delete(k)}),S.forEach(A=>{I(A,k)}),E.forEach(A=>{const h=e.get(A);h&&T(A,h)})},$=k=>{let C;(Z?"production":void 0)!=="production"&&(C=new Set);const R=[],S=E=>{var A;if(!i.has(E))return;const[h,g]=i.get(E);i.delete(E),R.push([E,h]),g.forEach(S),(A=s(E))==null||A.d.forEach((x,D)=>S(D))};if(k.forEach(S),R.forEach(([E,A])=>{const h=s(E);if(!h){(Z?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(h!==A){const g=e.get(E);g&&h.d!==(A==null?void 0:A.d)&&L(E,h,A==null?void 0:A.d),g&&!(!Ze(A)&&(St(A,h)||ta(A,h)))&&(g.l.forEach(x=>x()),(Z?"production":void 0)!=="production"&&C.add(E))}}),(Z?"production":void 0)!=="production")return C},H=(k,C)=>{const R=I(k),S=$([k]),E=R.l;return E.add(C),(Z?"production":void 0)!=="production"&&r.forEach(A=>A({type:"sub",flushed:S})),()=>{E.delete(C),T(k,R),(Z?"production":void 0)!=="production"&&r.forEach(A=>A({type:"unsub"}))}};return(Z?"production":void 0)!=="production"?{get:p,set:_,sub:H,dev_subscribe_store:k=>(r.add(k),()=>{r.delete(k)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:k=>t.get(k),dev_get_mounted:k=>e.get(k),dev_restore_atoms:k=>{n.push(new Set);for(const[R,S]of k)Si(R)&&(d(R,S),m(R));const C=$(n.pop());r.forEach(R=>R({type:"restore",flushed:C}))}}:{get:p,set:_,sub:H}};let Nt;const du=()=>(Nt||(Nt=vs(),(Z?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Nt),globalThis.__JOTAI_DEFAULT_STORE__!==Nt&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Nt),fu=vs,hu=du;var pu={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const mu=B.createContext(void 0),ks=t=>B.useContext(mu)||hu(),gu=t=>typeof(t==null?void 0:t.then)=="function",vu=B.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)});function Hi(t,e){const n=ks(),[[i,r,a],s]=B.useReducer(u=>{const c=n.get(t);return Object.is(u[0],c)&&u[1]===n&&u[2]===t?u:[c,n,t]},void 0,()=>[n.get(t),n,t]);let o=i;return(r!==n||a!==t)&&(s(),o=n.get(t)),B.useEffect(()=>{const u=n.sub(t,()=>{s()});return s(),u},[n,t,void 0]),B.useDebugValue(o),gu(o)?vu(o):o}function kr(t,e){const n=ks();return B.useCallback((...r)=>{if((pu?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...r)},[n,t])}function pn(t,e){return[Hi(t),kr(t)]}const qn=Hn(null);qn.debugLabel="accountAtom";var ku={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const{NZ_AWS_REGION:yu,NZ_BACKOFFICE_BACK_URL:bu,NZ_CORE_SERVICES_GRAPHQL_URL:_u,NZ_CORE_SERVICES_REST_URL:Su}=ku,yr={AWS:{region:yu,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:bu||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Su||"https://core-services-dev.nizza.com/api",graphql:_u||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};function ys(t,e){let n=null;const i=()=>{n||(n=e().log.createLogger(t))},r=(s,o)=>typeof s[o]=="function",a={get(s,o,l){i();const u=c=>(...d)=>{if(!n)return;const f=n[c];if(typeof f=="function")return f.apply(n,d)};return n&&r(n,o)?u(o):n?n[o]:void 0}};return new Proxy({},a)}function G(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw new Error(typeof t=="number"?"[MobX] minified error nr: "+t+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var Nu={};function br(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Nu}var bs=Object.assign,On=Object.getOwnPropertyDescriptor,_e=Object.defineProperty,Gn=Object.prototype,qi=[];Object.freeze(qi);var _s={};Object.freeze(_s);var Eu=typeof Proxy!="undefined",Au=Object.toString();function Ss(){Eu||G("Proxy not available")}function Ns(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var st=function(){};function pe(t){return typeof t=="function"}function ze(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Kn(t){return t!==null&&typeof t=="object"}function Le(t){if(!Kn(t))return!1;var e=Object.getPrototypeOf(t);if(e==null)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n.toString()===Au}function Es(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Wn(t,e,n){_e(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function As(t,e,n){_e(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Ke(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return Kn(i)&&i[n]===!0}}function mt(t){return t instanceof Map}function Jt(t){return t instanceof Set}var Os=typeof Object.getOwnPropertySymbols!="undefined";function Ou(t){var e=Object.keys(t);if(!Os)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return Gn.propertyIsEnumerable.call(t,i)})):e}var Jn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Os?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function ws(t){return t===null?null:typeof t=="object"?""+t:t}function Oe(t,e){return Gn.hasOwnProperty.call(t,e)}var wu=Object.getOwnPropertyDescriptors||function(e){var n={};return Jn(e).forEach(function(i){n[i]=On(e,i)}),n};function Tu(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ru(i.key),i)}}function _r(t,e,n){return e&&Tu(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pe(){return Pe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Pe.apply(this,arguments)}function Ts(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Gi(t,e)}function Gi(t,e){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Gi(t,e)}function Ei(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cu(t,e){if(t){if(typeof t=="string")return na(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return na(t,e)}}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ot(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Cu(t))||e){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Ru(t){var e=xu(t,"string");return typeof e=="symbol"?e:String(e)}var ve=Symbol("mobx-stored-annotations");function Se(t){function e(n,i){if(Yt(i))return t.decorate_20223_(n,i);gt(n,i,t)}return Object.assign(e,t)}function gt(t,e,n){Oe(t,ve)||Wn(t,ve,Pe({},t[ve])),Mu(n)||(t[ve][e]=n)}function Fu(t){return Oe(t,ve)||Wn(t,ve,Pe({},t[ve])),t[ve]}function Yt(t){return typeof t=="object"&&typeof t.kind=="string"}var V=Symbol("mobx administration"),Qt=function(){function t(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=K.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var e=t.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.reportObserved=function(){return Gs(this)},e.reportChanged=function(){se(),Ks(this),oe()},e.toString=function(){return this.name_},t}(),Sr=Ke("Atom",Qt);function Cs(t,e,n){e===void 0&&(e=st),n===void 0&&(n=st);var i=new Qt(t);return e!==st&&Hc(i,e),n!==st&&Zs(i,n),i}function Iu(t,e){return t===e}function Du(t,e){return wr(t,e)}function Lu(t,e){return wr(t,e,1)}function Pu(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var wn={identity:Iu,structural:Du,default:Pu,shallow:Lu};function He(t,e,n){return io(t)?t:Array.isArray(t)?X.array(t,{name:n}):Le(t)?X.object(t,void 0,{name:n}):mt(t)?X.map(t,{name:n}):Jt(t)?X.set(t,{name:n}):typeof t=="function"&&!ti(t)&&!Mt(t)?Es(t)?dt(t):Vt(n,t):t}function $u(t,e,n){if(t==null||ii(t)||ni(t)||Je(t)||vt(t))return t;if(Array.isArray(t))return X.array(t,{name:n,deep:!1});if(Le(t))return X.object(t,void 0,{name:n,deep:!1});if(mt(t))return X.map(t,{name:n,deep:!1});if(Jt(t))return X.set(t,{name:n,deep:!1})}function Yn(t){return t}function Uu(t,e){return wr(t,e)?e:t}var Vu="override";function Mu(t){return t.annotationType_===Vu}function Xt(t,e){return{annotationType_:t,options_:e,make_:ju,extend_:Bu,decorate_20223_:zu}}function ju(t,e,n,i){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(t,e,n,!1)===null?0:1;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if(ti(n.value))return 1;var a=xs(t,this,e,n,!1);return _e(i,e,a),2}function Bu(t,e,n,i){var r=xs(t,this,e,n);return t.defineProperty_(e,r,i)}function zu(t,e){var n=e.kind,i=e.name,r=e.addInitializer,a=this,s=function(u){var c,d,f,v;return $e((c=(d=a.options_)==null?void 0:d.name)!=null?c:i.toString(),u,(f=(v=a.options_)==null?void 0:v.autoAction)!=null?f:!1)};if(n=="field"){r(function(){gt(this,i,a)});return}if(n=="method"){var o;return ti(t)||(t=s(t)),(o=this.options_)!=null&&o.bound&&r(function(){var l=this,u=l[i].bind(l);u.isMobxAction=!0,l[i]=u}),t}G("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
3
- '`+a.annotationType_+"' can only be used on properties with a function value."))}function Hu(t,e,n,i){e.annotationType_,i.value}function xs(t,e,n,i,r){var a,s,o,l,u,c,d;r===void 0&&(r=O.safeDescriptors),Hu(t,e,n,i);var f=i.value;if((a=e.options_)!=null&&a.bound){var v;f=f.bind((v=t.proxy_)!=null?v:t.target_)}return{value:$e((s=(o=e.options_)==null?void 0:o.name)!=null?s:n.toString(),f,(l=(u=e.options_)==null?void 0:u.autoAction)!=null?l:!1,(c=e.options_)!=null&&c.bound?(d=t.proxy_)!=null?d:t.target_:void 0),configurable:r?t.isPlainObject_:!0,enumerable:!1,writable:!r}}function Rs(t,e){return{annotationType_:t,options_:e,make_:qu,extend_:Gu,decorate_20223_:Ku}}function qu(t,e,n,i){var r;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!Oe(t.target_,e)||!Mt(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(Mt(n.value))return 1;var a=Fs(t,this,e,n,!1,!1);return _e(i,e,a),2}function Gu(t,e,n,i){var r,a=Fs(t,this,e,n,(r=this.options_)==null?void 0:r.bound);return t.defineProperty_(e,a,i)}function Ku(t,e){var n,i=e.name,r=e.addInitializer;return Mt(t)||(t=dt(t)),(n=this.options_)!=null&&n.bound&&r(function(){var a=this,s=a[i].bind(a);s.isMobXFlow=!0,a[i]=s}),t}function Wu(t,e,n,i){e.annotationType_,i.value}function Fs(t,e,n,i,r,a){a===void 0&&(a=O.safeDescriptors),Wu(t,e,n,i);var s=i.value;if(Mt(s)||(s=dt(s)),r){var o;s=s.bind((o=t.proxy_)!=null?o:t.target_),s.isMobXFlow=!0}return{value:s,configurable:a?t.isPlainObject_:!0,enumerable:!1,writable:!a}}function Nr(t,e){return{annotationType_:t,options_:e,make_:Ju,extend_:Yu,decorate_20223_:Qu}}function Ju(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function Yu(t,e,n,i){return Xu(t,this,e,n),t.defineComputedProperty_(e,Pe({},this.options_,{get:n.get,set:n.set}),i)}function Qu(t,e){var n=this,i=e.name,r=e.addInitializer;return r(function(){var a=kt(this)[V],s=Pe({},n.options_,{get:t,context:this});s.name||(s.name="ObservableObject."+i.toString()),a.values_.set(i,new ct(s))}),function(){return this[V].getObservablePropValue_(i)}}function Xu(t,e,n,i){e.annotationType_,i.get}function Qn(t,e){return{annotationType_:t,options_:e,make_:Zu,extend_:ec,decorate_20223_:tc}}function Zu(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function ec(t,e,n,i){var r,a;return nc(t,this),t.defineObservableProperty_(e,n.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:He,i)}function tc(t,e){var n=this,i=e.kind,r=e.name,a=new WeakSet;function s(o,l){var u,c,d=kt(o)[V],f=new je(l,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:He,"ObservableObject."+r.toString(),!1);d.values_.set(r,f),a.add(o)}if(i=="accessor")return{get:function(){return a.has(this)||s(this,t.get.call(this)),this[V].getObservablePropValue_(r)},set:function(l){return a.has(this)||s(this,l),this[V].setObservablePropValue_(r,l)},init:function(l){return a.has(this)||s(this,l),l}}}function nc(t,e,n,i){e.annotationType_}var ic="true",rc=Is();function Is(t){return{annotationType_:ic,options_:t,make_:ac,extend_:sc,decorate_20223_:oc}}function ac(t,e,n,i){var r,a;if(n.get)return Fe.make_(t,e,n,i);if(n.set){var s=$e(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:O.safeDescriptors?t.isPlainObject_:!0,set:s})===null?0:2:(_e(i,e,{configurable:!0,set:s}),2)}if(i!==t.target_&&typeof n.value=="function"){var o;if(Es(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?dt.bound:dt;return u.make_(t,e,n,i)}var c=(o=this.options_)!=null&&o.autoBind?Vt.bound:Vt;return c.make_(t,e,n,i)}var d=((r=this.options_)==null?void 0:r.deep)===!1?X.ref:X;if(typeof n.value=="function"&&(a=this.options_)!=null&&a.autoBind){var f;n.value=n.value.bind((f=t.proxy_)!=null?f:t.target_)}return d.make_(t,e,n,i)}function sc(t,e,n,i){var r,a;if(n.get)return Fe.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:O.safeDescriptors?t.isPlainObject_:!0,set:$e(e.toString(),n.set)},i);if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var s;n.value=n.value.bind((s=t.proxy_)!=null?s:t.target_)}var o=((a=this.options_)==null?void 0:a.deep)===!1?X.ref:X;return o.extend_(t,e,n,i)}function oc(t,e){G("'"+this.annotationType_+"' cannot be used as a decorator")}var lc="observable",uc="observable.ref",cc="observable.shallow",dc="observable.struct",Ds={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Ds);function ln(t){return t||Ds}var Ki=Qn(lc),fc=Qn(uc,{enhancer:Yn}),hc=Qn(cc,{enhancer:$u}),pc=Qn(dc,{enhancer:Uu}),Ls=Se(Ki);function un(t){return t.deep===!0?He:t.deep===!1?Yn:gc(t.defaultDecorator)}function mc(t){var e;return t?(e=t.defaultDecorator)!=null?e:Is(t):void 0}function gc(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:He}function Ps(t,e,n){if(Yt(e))return Ki.decorate_20223_(t,e);if(ze(e)){gt(t,e,Ki);return}return io(t)?t:Le(t)?X.object(t,e,n):Array.isArray(t)?X.array(t,e):mt(t)?X.map(t,e):Jt(t)?X.set(t,e):typeof t=="object"&&t!==null?t:X.box(t,e)}bs(Ps,Ls);var vc={box:function(e,n){var i=ln(n);return new je(e,un(i),i.name,!0,i.equals)},array:function(e,n){var i=ln(n);return(O.useProxies===!1||i.proxy===!1?gd:sd)(e,un(i),i.name)},map:function(e,n){var i=ln(n);return new uo(e,un(i),i.name)},set:function(e,n){var i=ln(n);return new ho(e,un(i),i.name)},object:function(e,n,i){return Ye(function(){return Wc(O.useProxies===!1||(i==null?void 0:i.proxy)===!1?kt({},i):id({},i),e,n)})},ref:Se(fc),shallow:Se(hc),deep:Ls,struct:Se(pc)},X=bs(Ps,vc),$s="computed",kc="computed.struct",Wi=Nr($s),yc=Nr(kc,{equals:wn.structural}),Fe=function(e,n){if(Yt(n))return Wi.decorate_20223_(e,n);if(ze(n))return gt(e,n,Wi);if(Le(e))return Se(Nr($s,e));var i=Le(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new ct(i)};Object.assign(Fe,Wi);Fe.struct=Se(yc);var ia,ra,Tn=0,bc=1,_c=(ia=(ra=On(function(){},"name"))==null?void 0:ra.configurable)!=null?ia:!1,aa={value:"action",configurable:!0,writable:!1,enumerable:!1};function $e(t,e,n,i){n===void 0&&(n=!1);function r(){return Sc(t,n,e,i||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return e.toString()},_c&&(aa.value=t,_e(r,"name",aa)),r}function Sc(t,e,n,i,r){var a=Nc(t,e);try{return n.apply(i,r)}catch(s){throw a.error_=s,s}finally{Ec(a)}}function Nc(t,e,n,i){var r=!1,a=0,s=O.trackingDerivation,o=!e||!s;se();var l=O.allowStateChanges;o&&(We(),l=Xn(!0));var u=Er(!0),c={runAsAction_:o,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:r,startTime_:a,actionId_:bc++,parentActionId_:Tn};return Tn=c.actionId_,c}function Ec(t){Tn!==t.actionId_&&G(30),Tn=t.parentActionId_,t.error_!==void 0&&(O.suppressReactionErrors=!0),Zn(t.prevAllowStateChanges_),xt(t.prevAllowStateReads_),oe(),t.runAsAction_&&we(t.prevDerivation_),O.suppressReactionErrors=!1}function Ac(t,e){var n=Xn(t);try{return e()}finally{Zn(n)}}function Xn(t){var e=O.allowStateChanges;return O.allowStateChanges=t,e}function Zn(t){O.allowStateChanges=t}var Us;Us=Symbol.toPrimitive;var je=function(t){Ts(e,t);function e(i,r,a,s,o){var l;return a===void 0&&(a="ObservableValue"),o===void 0&&(o=wn.default),l=t.call(this,a)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=r,l.name_=a,l.equals=o,l.value_=r(i,void 0,a),l}var n=e.prototype;return n.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},n.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==O.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(re(this)){var a=ae(this,{object:this,type:Ne,newValue:r});if(!a)return O.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?O.UNCHANGED:r},n.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),fe(this)&&he(this,{type:Ne,object:this,newValue:r,oldValue:a})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return Zt(this,r)},n.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:Ne,newValue:this.value_,oldValue:void 0}),en(this,r)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return ws(this.get())},n[Us]=function(){return this.valueOf()},e}(Qt),Vs;Vs=Symbol.toPrimitive;var ct=function(){function t(n){this.dependenciesState_=K.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=K.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new xn(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Cn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||G(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=$e("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?wn.structural:wn.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){xc(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.get=function(){if(this.isComputing_&&G(32,this.name_,this.derivation),O.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ji(this)&&(this.warnAboutUntrackedRead_(),se(),this.value_=this.computeValue_(!1),oe());else if(Gs(this),Ji(this)){var i=O.trackingContext;this.keepAlive_&&!i&&(O.trackingContext=this),this.trackAndCompute()&&Cc(this),O.trackingContext=i}var r=this.value_;if(mn(r))throw r.cause;return r},e.set=function(i){if(this.setter_){this.isRunningSetter_&&G(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else G(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,r=this.dependenciesState_===K.NOT_TRACKING_,a=this.computeValue_(!0),s=r||mn(i)||mn(a)||!this.equals_(i,a);return s&&(this.value_=a),s},e.computeValue_=function(i){this.isComputing_=!0;var r=Xn(!1),a;if(i)a=Ms(this,this.derivation,this.scope_);else if(O.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(s){a=new xn(s)}return Zn(r),this.isComputing_=!1,a},e.suspend_=function(){this.keepAlive_||(Yi(this),this.value_=void 0)},e.observe_=function(i,r){var a=this,s=!0,o=void 0;return Xs(function(){var l=a.get();if(!s||r){var u=We();i({observableKind:"computed",debugObjectName:a.name_,type:Ne,object:a,newValue:l,oldValue:o}),we(u)}s=!1,o=l})},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return ws(this.get())},e[Vs]=function(){return this.valueOf()},t}(),ei=Ke("ComputedValue",ct),K;(function(t){t[t.NOT_TRACKING_=-1]="NOT_TRACKING_",t[t.UP_TO_DATE_=0]="UP_TO_DATE_",t[t.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",t[t.STALE_=2]="STALE_"})(K||(K={}));var Cn;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(Cn||(Cn={}));var xn=function(e){this.cause=void 0,this.cause=e};function mn(t){return t instanceof xn}function Ji(t){switch(t.dependenciesState_){case K.UP_TO_DATE_:return!1;case K.NOT_TRACKING_:case K.STALE_:return!0;case K.POSSIBLY_STALE_:{for(var e=Er(!0),n=We(),i=t.observing_,r=i.length,a=0;a<r;a++){var s=i[a];if(ei(s)){if(O.disableErrorBoundaries)s.get();else try{s.get()}catch{return we(n),xt(e),!0}if(t.dependenciesState_===K.STALE_)return we(n),xt(e),!0}}return Bs(t),we(n),xt(e),!1}}}function Ms(t,e,n){var i=Er(!0);Bs(t),t.newObserving_=new Array(t.runId_===0?100:t.observing_.length),t.unboundDepsCount_=0,t.runId_=++O.runId;var r=O.trackingDerivation;O.trackingDerivation=t,O.inBatch++;var a;if(O.disableErrorBoundaries===!0)a=e.call(n);else try{a=e.call(n)}catch(s){a=new xn(s)}return O.inBatch--,O.trackingDerivation=r,Oc(t),xt(i),a}function Oc(t){for(var e=t.observing_,n=t.observing_=t.newObserving_,i=K.UP_TO_DATE_,r=0,a=t.unboundDepsCount_,s=0;s<a;s++){var o=n[s];o.diffValue_===0&&(o.diffValue_=1,r!==s&&(n[r]=o),r++),o.dependenciesState_>i&&(i=o.dependenciesState_)}for(n.length=r,t.newObserving_=null,a=e.length;a--;){var l=e[a];l.diffValue_===0&&Hs(l,t),l.diffValue_=0}for(;r--;){var u=n[r];u.diffValue_===1&&(u.diffValue_=0,Tc(u,t))}i!==K.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function Yi(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)Hs(e[n],t);t.dependenciesState_=K.NOT_TRACKING_}function js(t){var e=We();try{return t()}finally{we(e)}}function We(){var t=O.trackingDerivation;return O.trackingDerivation=null,t}function we(t){O.trackingDerivation=t}function Er(t){var e=O.allowStateReads;return O.allowStateReads=t,e}function xt(t){O.allowStateReads=t}function Bs(t){if(t.dependenciesState_!==K.UP_TO_DATE_){t.dependenciesState_=K.UP_TO_DATE_;for(var e=t.observing_,n=e.length;n--;)e[n].lowestObserverState_=K.UP_TO_DATE_}}var gn=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},vn=!0,zs=!1,O=function(){var t=br();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(vn=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new gn().version&&(vn=!1),vn?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new gn):(setTimeout(function(){zs||G(35)},1),new gn)}();function wc(){if((O.pendingReactions.length||O.inBatch||O.isRunningReactions)&&G(36),zs=!0,vn){var t=br();--t.__mobxInstanceCount===0&&(t.__mobxGlobals=void 0),O=new gn}}function Tc(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function Hs(t,e){t.observers_.delete(e),t.observers_.size===0&&qs(t)}function qs(t){t.isPendingUnobservation_===!1&&(t.isPendingUnobservation_=!0,O.pendingUnobservations.push(t))}function se(){O.inBatch++}function oe(){if(--O.inBatch===0){Ws();for(var t=O.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof ct&&n.suspend_())}O.pendingUnobservations=[]}}function Gs(t){var e=O.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&O.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(t.observers_.size===0&&O.inBatch>0&&qs(t),!1)}function Ks(t){t.lowestObserverState_!==K.STALE_&&(t.lowestObserverState_=K.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=K.STALE_}))}function Cc(t){t.lowestObserverState_!==K.STALE_&&(t.lowestObserverState_=K.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.POSSIBLY_STALE_?e.dependenciesState_=K.STALE_:e.dependenciesState_===K.UP_TO_DATE_&&(t.lowestObserverState_=K.UP_TO_DATE_)}))}function xc(t){t.lowestObserverState_===K.UP_TO_DATE_&&(t.lowestObserverState_=K.POSSIBLY_STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.UP_TO_DATE_&&(e.dependenciesState_=K.POSSIBLY_STALE_,e.onBecomeStale_())}))}var Ut=function(){function t(n,i,r,a){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=K.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Cn.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=r,this.requiresObservable_=a}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,O.pendingReactions.push(this),Ws())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){se(),this.isScheduled_=!1;var i=O.trackingContext;if(O.trackingContext=this,Ji(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}O.trackingContext=i,oe()}},e.track=function(i){if(!this.isDisposed_){se(),this.isRunning_=!0;var r=O.trackingContext;O.trackingContext=this;var a=Ms(this,i,void 0);O.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Yi(this),mn(a)&&this.reportExceptionInDerivation_(a.cause),oe()}},e.reportExceptionInDerivation_=function(i){var r=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(O.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";O.suppressReactionErrors||console.error(a,i),O.globalReactionErrorHandlers.forEach(function(s){return s(i,r)})},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(se(),Yi(this),oe()))},e.getDisposer_=function(i){var r=this,a=function s(){r.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener==null||i.addEventListener("abort",a),a[V]=this,a},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},t}(),Rc=100,Qi=function(e){return e()};function Ws(){O.inBatch>0||O.isRunningReactions||Qi(Fc)}function Fc(){O.isRunningReactions=!0;for(var t=O.pendingReactions,e=0;t.length>0;){++e===Rc&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction_()}O.isRunningReactions=!1}var Rn=Ke("Reaction",Ut);function Ic(t){var e=Qi;Qi=function(i){return t(function(){return e(i)})}}function Rt(){return!1}function Dc(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Js="action",Lc="action.bound",Ys="autoAction",Pc="autoAction.bound",$c="<unnamed action>",Xi=Xt(Js),Uc=Xt(Lc,{bound:!0}),Zi=Xt(Ys,{autoAction:!0}),Vc=Xt(Pc,{autoAction:!0,bound:!0});function Qs(t){var e=function(i,r){if(pe(i))return $e(i.name||$c,i,t);if(pe(r))return $e(i,r,t);if(Yt(r))return(t?Zi:Xi).decorate_20223_(i,r);if(ze(r))return gt(i,r,t?Zi:Xi);if(ze(i))return Se(Xt(t?Ys:Js,{name:i,autoAction:t}))};return e}var ke=Qs(!1);Object.assign(ke,Xi);var Vt=Qs(!0);Object.assign(Vt,Zi);ke.bound=Se(Uc);Vt.bound=Se(Vc);function ti(t){return pe(t)&&t.isMobxAction===!0}function Xs(t,e){var n,i,r,a,s;e===void 0&&(e=_s);var o=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",l=!e.scheduler&&!e.delay,u;if(l)u=new Ut(o,function(){this.track(f)},e.onError,e.requiresObservable);else{var c=jc(e),d=!1;u=new Ut(o,function(){d||(d=!0,c(function(){d=!1,u.isDisposed_||u.track(f)}))},e.onError,e.requiresObservable)}function f(){t(u)}return(r=e)!=null&&(a=r.signal)!=null&&a.aborted||u.schedule_(),u.getDisposer_((s=e)==null?void 0:s.signal)}var Mc=function(e){return e()};function jc(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Mc}var Bc="onBO",zc="onBUO";function Hc(t,e,n){return eo(Bc,t,e,n)}function Zs(t,e,n){return eo(zc,t,e,n)}function eo(t,e,n,i){var r=Dn(e),a=pe(i)?i:n,s=t+"L";return r[s]?r[s].add(a):r[s]=new Set([a]),function(){var o=r[s];o&&(o.delete(a),o.size===0&&delete r[s])}}var qc="never",cn="always",Gc="observed";function Kc(t){t.isolateGlobalState===!0&&wc();var e=t.useProxies,n=t.enforceActions;if(e!==void 0&&(O.useProxies=e===cn?!0:e===qc?!1:typeof Proxy!="undefined"),e==="ifavailable"&&(O.verifyProxies=!0),n!==void 0){var i=n===cn?cn:n===Gc;O.enforceActions=i,O.allowStateChanges=!(i===!0||i===cn)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(r){r in t&&(O[r]=!!t[r])}),O.allowStateReads=!O.observableRequiresReaction,t.reactionScheduler&&Ic(t.reactionScheduler)}function Wc(t,e,n,i){var r=wu(e);return Ye(function(){var a=kt(t,i)[V];Jn(r).forEach(function(s){a.extend_(s,r[s],n&&s in n?n[s]:!0)})}),t}function Jc(t,e){return to(Dn(t,e))}function to(t){var e={name:t.name_};return t.observing_&&t.observing_.length>0&&(e.dependencies=Yc(t.observing_).map(to)),e}function Yc(t){return Array.from(new Set(t))}var Qc=0;function no(){this.message="FLOW_CANCELLED"}no.prototype=Object.create(Error.prototype);var Ai=Rs("flow"),Xc=Rs("flow.bound",{bound:!0}),dt=Object.assign(function(e,n){if(Yt(n))return Ai.decorate_20223_(e,n);if(ze(n))return gt(e,n,Ai);var i=e,r=i.name||"<unnamed flow>",a=function(){var o=this,l=arguments,u=++Qc,c=ke(r+" - runid: "+u+" - init",i).apply(o,l),d,f=void 0,v=new Promise(function(p,m){var N=0;d=m;function _(T){f=void 0;var L;try{L=ke(r+" - runid: "+u+" - yield "+N++,c.next).call(c,T)}catch($){return m($)}M(L)}function I(T){f=void 0;var L;try{L=ke(r+" - runid: "+u+" - yield "+N++,c.throw).call(c,T)}catch($){return m($)}M(L)}function M(T){if(pe(T==null?void 0:T.then)){T.then(M,m);return}return T.done?p(T.value):(f=Promise.resolve(T.value),f.then(_,I))}_(void 0)});return v.cancel=ke(r+" - runid: "+u+" - cancel",function(){try{f&&sa(f);var p=c.return(void 0),m=Promise.resolve(p.value);m.then(st,st),sa(m),d(new no)}catch(N){d(N)}}),v};return a.isMobXFlow=!0,a},Ai);dt.bound=Se(Xc);function sa(t){pe(t.cancel)&&t.cancel()}function Mt(t){return(t==null?void 0:t.isMobXFlow)===!0}function Zc(t,e){return t?ii(t)||!!t[V]||Sr(t)||Rn(t)||ei(t):!1}function io(t){return Zc(t)}function Ae(t,e){e===void 0&&(e=void 0),se();try{return t.apply(e)}finally{oe()}}function ed(t,e,n){return arguments.length===1||e&&typeof e=="object"?td(t,e):ro(t,e,{})}function ro(t,e,n){var i;if(typeof n.timeout=="number"){var r=new Error("WHEN_TIMEOUT");i=setTimeout(function(){if(!s[V].isDisposed_)if(s(),n.onError)n.onError(r);else throw r},n.timeout)}n.name="When";var a=$e("When-effect",e),s=Xs(function(o){var l=Ac(!1,t);l&&(o.dispose(),i&&clearTimeout(i),a())},n);return s}function td(t,e){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i,r,a=new Promise(function(s,o){var l,u=ro(t,s,Pe({},e,{onError:o}));i=function(){u(),o(new Error("WHEN_CANCELLED"))},r=function(){u(),o(new Error("WHEN_ABORTED"))},e==null||(l=e.signal)==null||l.addEventListener==null||l.addEventListener("abort",r)}).finally(function(){var s;return e==null||(s=e.signal)==null||s.removeEventListener==null?void 0:s.removeEventListener("abort",r)});return a.cancel=i,a}function et(t){return t[V]}var nd={has:function(e,n){return et(e).has_(n)},get:function(e,n){return et(e).get_(n)},set:function(e,n,i){var r;return ze(n)?(r=et(e).set_(n,i,!0))!=null?r:!0:!1},deleteProperty:function(e,n){var i;return ze(n)?(i=et(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var r;return(r=et(e).defineProperty_(n,i))!=null?r:!0},ownKeys:function(e){return et(e).ownKeys_()},preventExtensions:function(e){G(13)}};function id(t,e){var n,i;return Ss(),t=kt(t,e),(i=(n=t[V]).proxy_)!=null?i:n.proxy_=new Proxy(t,nd)}function re(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function Zt(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),Ns(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function ae(t,e){var n=We();try{for(var i=[].concat(t.interceptors_||[]),r=0,a=i.length;r<a&&(e=i[r](e),e&&!e.type&&G(14),!!e);r++);return e}finally{we(n)}}function fe(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function en(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),Ns(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function he(t,e){var n=We(),i=t.changeListeners_;if(i){i=i.slice();for(var r=0,a=i.length;r<a;r++)i[r](e);we(n)}}function ao(t,e,n){return Ye(function(){var i,r=kt(t,n)[V];(i=e)!=null||(e=Fu(t)),Jn(e).forEach(function(a){return r.make_(a,e[a])})}),t}var oa="splice",Ne="update",rd=1e4,ad={get:function(e,n){var i=e[V];return n===V?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):Oe(Fn,n)?Fn[n]:e[n]},set:function(e,n,i){var r=e[V];return n==="length"&&r.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:r.set_(parseInt(n),i),!0},preventExtensions:function(){G(15)}},Ar=function(){function t(n,i,r,a){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=a,this.atom_=new Qt(n),this.enhancer_=function(s,o){return i(s,o,"ObservableArray[..]")}}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},e.intercept_=function(i){return Zt(this,i)},e.observe_=function(i,r){return r===void 0&&(r=!1),r&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),en(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&G("Out of range: "+i);var r=this.values_.length;if(i!==r)if(i>r){for(var a=new Array(i-r),s=0;s<i-r;s++)a[s]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(i,r-i)},e.updateArrayLength_=function(i,r){i!==this.lastKnownLength_&&G(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&vo(i+r+1)},e.spliceWithArray_=function(i,r,a){var s=this;this.atom_;var o=this.values_.length;if(i===void 0?i=0:i>o?i=o:i<0&&(i=Math.max(0,o+i)),arguments.length===1?r=o-i:r==null?r=0:r=Math.max(0,Math.min(r,o-i)),a===void 0&&(a=qi),re(this)){var l=ae(this,{object:this.proxy_,type:oa,index:i,removedCount:r,added:a});if(!l)return qi;r=l.removedCount,a=l.added}if(a=a.length===0?a:a.map(function(d){return s.enhancer_(d,void 0)}),this.legacyMode_){var u=a.length-r;this.updateArrayLength_(o,u)}var c=this.spliceItemsIntoValues_(i,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(i,a,c),this.dehanceValues_(c)},e.spliceItemsIntoValues_=function(i,r,a){if(a.length<rd){var s;return(s=this.values_).splice.apply(s,[i,r].concat(a))}else{var o=this.values_.slice(i,i+r),l=this.values_.slice(i+r);this.values_.length+=a.length-r;for(var u=0;u<a.length;u++)this.values_[i+u]=a[u];for(var c=0;c<l.length;c++)this.values_[i+a.length+c]=l[c];return o}},e.notifyArrayChildUpdate_=function(i,r,a){var s=!this.owned_&&Rt(),o=fe(this),l=o||s?{observableKind:"array",object:this.proxy_,type:Ne,debugObjectName:this.atom_.name_,index:i,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),o&&he(this,l)},e.notifyArraySplice_=function(i,r,a){var s=!this.owned_&&Rt(),o=fe(this),l=o||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:oa,index:i,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&he(this,l)},e.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},e.set_=function(i,r){var a=this.values_;if(this.legacyMode_&&i>a.length&&G(17,i,a.length),i<a.length){this.atom_;var s=a[i];if(re(this)){var o=ae(this,{type:Ne,object:this.proxy_,index:i,newValue:r});if(!o)return;r=o.newValue}r=this.enhancer_(r,s);var l=r!==s;l&&(a[i]=r,this.notifyArrayChildUpdate_(i,r,s))}else{for(var u=new Array(i+1-a.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=r,this.spliceWithArray_(a.length,0,u)}},t}();function sd(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),Ss(),Ye(function(){var r=new Ar(n,e,i,!1);As(r.values_,V,r);var a=new Proxy(r.values_,ad);return r.proxy_=a,t&&t.length&&r.spliceWithArray_(0,0,t),a})}var Fn={clear:function(){return this.splice(0)},replace:function(e){var n=this[V];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];var s=this[V];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(e);case 2:return s.spliceWithArray_(e,n)}return s.spliceWithArray_(e,n,r)},spliceWithArray:function(e,n,i){return this[V].spliceWithArray_(e,n,i)},push:function(){for(var e=this[V],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,i),e.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[V],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(0,0,i),e.values_.length},reverse:function(){return O.trackingDerivation&&G(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){O.trackingDerivation&&G(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[V],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};W("at",ie);W("concat",ie);W("flat",ie);W("includes",ie);W("indexOf",ie);W("join",ie);W("lastIndexOf",ie);W("slice",ie);W("toString",ie);W("toLocaleString",ie);W("toSorted",ie);W("toSpliced",ie);W("with",ie);W("every",me);W("filter",me);W("find",me);W("findIndex",me);W("findLast",me);W("findLastIndex",me);W("flatMap",me);W("forEach",me);W("map",me);W("some",me);W("toReversed",me);W("reduce",so);W("reduceRight",so);function W(t,e){typeof Array.prototype[t]=="function"&&(Fn[t]=e(t))}function ie(t){return function(){var e=this[V];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function me(t){return function(e,n){var i=this,r=this[V];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[t](function(s,o){return e.call(n,s,o,i)})}}function so(t){return function(){var e=this,n=this[V];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),r=arguments[0];return arguments[0]=function(a,s,o){return r(a,s,o,e)},i[t].apply(i,arguments)}}var od=Ke("ObservableArrayAdministration",Ar);function ni(t){return Kn(t)&&od(t[V])}var oo,lo,ld={},Ie="add",In="delete";oo=Symbol.iterator;lo=Symbol.toStringTag;var uo=function(){function t(n,i,r){var a=this;i===void 0&&(i=He),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=ld,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=r,pe(Map)||G(18),Ye(function(){a.keysAtom_=Cs("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,n&&a.merge(n)})}var e=t.prototype;return e.has_=function(i){return this.data_.has(i)},e.has=function(i){var r=this;if(!O.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var s=a=new je(this.has_(i),Yn,"ObservableMap.key?",!1);this.hasMap_.set(i,s),Zs(s,function(){return r.hasMap_.delete(i)})}return a.get()},e.set=function(i,r){var a=this.has_(i);if(re(this)){var s=ae(this,{type:a?Ne:Ie,object:this,newValue:r,name:i});if(!s)return this;r=s.newValue}return a?this.updateValue_(i,r):this.addValue_(i,r),this},e.delete=function(i){var r=this;if(this.keysAtom_,re(this)){var a=ae(this,{type:In,object:this,name:i});if(!a)return!1}if(this.has_(i)){var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:In,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return Ae(function(){var u;r.keysAtom_.reportChanged(),(u=r.hasMap_.get(i))==null||u.setNewValue_(!1);var c=r.data_.get(i);c.setNewValue_(void 0),r.data_.delete(i)}),o&&he(this,l),!0}return!1},e.updateValue_=function(i,r){var a=this.data_.get(i);if(r=a.prepareNewValue_(r),r!==O.UNCHANGED){var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Ne,object:this,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&he(this,l)}},e.addValue_=function(i,r){var a=this;this.keysAtom_,Ae(function(){var u,c=new je(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(i,c),r=c.value_,(u=a.hasMap_.get(i))==null||u.setNewValue_(!0),a.keysAtom_.reportChanged()});var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Ie,object:this,name:i,newValue:r}:null;o&&he(this,l)},e.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var i=this,r=this.keys();return jt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:i.get(l)}}})},e.entries=function(){var i=this,r=this.keys();return jt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[oo]=function(){return this.entries()},e.forEach=function(i,r){for(var a=ot(this),s;!(s=a()).done;){var o=s.value,l=o[0],u=o[1];i.call(r,u,l,this)}},e.merge=function(i){var r=this;return Je(i)&&(i=new Map(i)),Ae(function(){Le(i)?Ou(i).forEach(function(a){return r.set(a,i[a])}):Array.isArray(i)?i.forEach(function(a){var s=a[0],o=a[1];return r.set(s,o)}):mt(i)?(i.constructor!==Map&&G(19,i),i.forEach(function(a,s){return r.set(s,a)})):i!=null&&G(20,i)}),this},e.clear=function(){var i=this;Ae(function(){js(function(){for(var r=ot(i.keys()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.replace=function(i){var r=this;return Ae(function(){for(var a=ud(i),s=new Map,o=!1,l=ot(r.data_.keys()),u;!(u=l()).done;){var c=u.value;if(!a.has(c)){var d=r.delete(c);if(d)o=!0;else{var f=r.data_.get(c);s.set(c,f)}}}for(var v=ot(a.entries()),p;!(p=v()).done;){var m=p.value,N=m[0],_=m[1],I=r.data_.has(N);if(r.set(N,_),r.data_.has(N)){var M=r.data_.get(N);s.set(N,M),I||(o=!0)}}if(!o)if(r.data_.size!==s.size)r.keysAtom_.reportChanged();else for(var T=r.data_.keys(),L=s.keys(),$=T.next(),H=L.next();!$.done;){if($.value!==H.value){r.keysAtom_.reportChanged();break}$=T.next(),H=L.next()}r.data_=s}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},_r(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:lo,get:function(){return"Map"}}]),t}(),Je=Ke("ObservableMap",uo);function ud(t){if(mt(t)||Je(t))return t;if(Array.isArray(t))return new Map(t);if(Le(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return G(21,t)}var co,fo,cd={};co=Symbol.iterator;fo=Symbol.toStringTag;var ho=function(){function t(n,i,r){var a=this;i===void 0&&(i=He),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[V]=cd,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,pe(Set)||G(22),this.enhancer_=function(s,o){return i(s,o,r)},Ye(function(){a.atom_=Cs(a.name_),n&&a.replace(n)})}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.clear=function(){var i=this;Ae(function(){js(function(){for(var r=ot(i.data_.values()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.forEach=function(i,r){for(var a=ot(this),s;!(s=a()).done;){var o=s.value;i.call(r,o,o,this)}},e.add=function(i){var r=this;if(this.atom_,re(this)){var a=ae(this,{type:Ie,object:this,newValue:i});if(!a)return this}if(!this.has(i)){Ae(function(){r.data_.add(r.enhancer_(i,void 0)),r.atom_.reportChanged()});var s=!1,o=fe(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:Ie,object:this,newValue:i}:null;o&&he(this,l)}return this},e.delete=function(i){var r=this;if(re(this)){var a=ae(this,{type:In,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var s=!1,o=fe(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:In,object:this,oldValue:i}:null;return Ae(function(){r.atom_.reportChanged(),r.data_.delete(i)}),o&&he(this,l),!0}return!1},e.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},e.entries=function(){var i=0,r=Array.from(this.keys()),a=Array.from(this.values());return jt({next:function(){var o=i;return i+=1,o<a.length?{value:[r[o],a[o]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var i=this,r=0,a=Array.from(this.data_.values());return jt({next:function(){return r<a.length?{value:i.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},e.replace=function(i){var r=this;return vt(i)&&(i=new Set(i)),Ae(function(){Array.isArray(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):Jt(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):i!=null&&G("Cannot initialize set from "+i)}),this},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[co]=function(){return this.values()},_r(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:fo,get:function(){return"Set"}}]),t}(),vt=Ke("ObservableSet",ho),la=Object.create(null),ua="remove",po=function(){function t(n,i,r,a){i===void 0&&(i=new Map),a===void 0&&(a=rc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new Qt("ObservableObject.keys"),this.isPlainObject_=Le(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(i){return this.values_.get(i).get()},e.setObservablePropValue_=function(i,r){var a=this.values_.get(i);if(a instanceof ct)return a.set(r),!0;if(re(this)){var s=ae(this,{type:Ne,object:this.proxy_||this.target_,name:i,newValue:r});if(!s)return null;r=s.newValue}if(r=a.prepareNewValue_(r),r!==O.UNCHANGED){var o=fe(this),l=!1,u=o||l?{type:Ne,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&he(this,u)}return!0},e.get_=function(i){return O.trackingDerivation&&!Oe(this.target_,i)&&this.has_(i),this.target_[i]},e.set_=function(i,r,a){return a===void 0&&(a=!1),Oe(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,r):a?Reflect.set(this.target_,i,r):(this.target_[i]=r,!0):this.extend_(i,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},e.has_=function(i){if(!O.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(i);return r||(r=new je(i in this.target_,Yn,"ObservableObject.key?",!1),this.pendingKeys_.set(i,r)),r.get()},e.make_=function(i,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(i in this.target_)){var a;if((a=this.target_[ve])!=null&&a[i])return;G(1,r.annotationType_,this.name_+"."+i.toString())}for(var s=this.target_;s&&s!==Gn;){var o=On(s,i);if(o){var l=r.make_(this,i,o,s);if(l===0)return;if(l===1)break}s=Object.getPrototypeOf(s)}da(this,r,i)}},e.extend_=function(i,r,a,s){if(s===void 0&&(s=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(i,r,s);var o=a.extend_(this,i,r,s);return o&&da(this,a,i),o},e.defineProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{se();var s=this.delete_(i);if(!s)return s;if(re(this)){var o=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:r.value});if(!o)return null;var l=o.newValue;r.value!==l&&(r=Pe({},r,{value:l}))}if(a){if(!Reflect.defineProperty(this.target_,i,r))return!1}else _e(this.target_,i,r);this.notifyPropertyAddition_(i,r.value)}finally{oe()}return!0},e.defineObservableProperty_=function(i,r,a,s){s===void 0&&(s=!1),this.keysAtom_;try{se();var o=this.delete_(i);if(!o)return o;if(re(this)){var l=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:r});if(!l)return null;r=l.newValue}var u=ca(i),c={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,i,c))return!1}else _e(this.target_,i,c);var d=new je(r,a,"ObservableObject.key",!1);this.values_.set(i,d),this.notifyPropertyAddition_(i,d.value_)}finally{oe()}return!0},e.defineComputedProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{se();var s=this.delete_(i);if(!s)return s;if(re(this)){var o=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=ca(i),u={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(a){if(!Reflect.defineProperty(this.target_,i,u))return!1}else _e(this.target_,i,u);this.values_.set(i,new ct(r)),this.notifyPropertyAddition_(i,void 0)}finally{oe()}return!0},e.delete_=function(i,r){if(r===void 0&&(r=!1),this.keysAtom_,!Oe(this.target_,i))return!0;if(re(this)){var a=ae(this,{object:this.proxy_||this.target_,name:i,type:ua});if(!a)return null}try{var s,o;se();var l=fe(this),u=!1,c=this.values_.get(i),d=void 0;if(!c&&(l||u)){var f;d=(f=On(this.target_,i))==null?void 0:f.value}if(r){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(c&&(this.values_.delete(i),c instanceof je&&(d=c.value_),Ks(c)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(o=s.get(i))==null||o.set(i in this.target_),l||u){var v={type:ua,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:d,name:i};l&&he(this,v)}}finally{oe()}return!0},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},e.notifyPropertyAddition_=function(i,r){var a,s,o=fe(this),l=!1;if(o||l){var u=o||l?{type:Ie,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:r}:null;o&&he(this,u)}(a=this.pendingKeys_)==null||(s=a.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Jn(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function kt(t,e){var n;if(Oe(t,V))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",r=new po(t,new Map,String(i),mc(e));return Wn(t,V,r),t}var dd=Ke("ObservableObjectAdministration",po);function ca(t){return la[t]||(la[t]={get:function(){return this[V].getObservablePropValue_(t)},set:function(n){return this[V].setObservablePropValue_(t,n)}})}function ii(t){return Kn(t)?dd(t[V]):!1}function da(t,e,n){var i;(i=t.target_[ve])==null||delete i[n]}var fd=go(0),hd=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),Oi=0,mo=function(){};function pd(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}pd(mo,Array.prototype);var Or=function(t,e,n){Ts(i,t);function i(a,s,o,l){var u;return o===void 0&&(o="ObservableArray"),l===void 0&&(l=!1),u=t.call(this)||this,Ye(function(){var c=new Ar(o,s,l,!0);c.proxy_=Ei(u),As(Ei(u),V,c),a&&a.length&&u.spliceWithArray(0,0,a),hd&&Object.defineProperty(Ei(u),"0",fd)}),u}var r=i.prototype;return r.concat=function(){this[V].atom_.reportObserved();for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),o.map(function(u){return ni(u)?u.slice():u}))},r[n]=function(){var a=this,s=0;return jt({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},_r(i,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(s){this[V].setArrayLength_(s)}},{key:e,get:function(){return"Array"}}]),i}(mo,Symbol.toStringTag,Symbol.iterator);Object.entries(Fn).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&Wn(Or.prototype,e,n)});function go(t){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(t)},set:function(n){this[V].set_(t,n)}}}function md(t){_e(Or.prototype,""+t,go(t))}function vo(t){if(t>Oi){for(var e=Oi;e<t+100;e++)md(e);Oi=t}}vo(1e3);function gd(t,e,n){return new Or(t,e,n)}function Dn(t,e){if(typeof t=="object"&&t!==null){if(ni(t))return e!==void 0&&G(23),t[V].atom_;if(vt(t))return t.atom_;if(Je(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||G(25,e,er(t)),n}if(ii(t)){if(!e)return G(26);var i=t[V].values_.get(e);return i||G(27,e,er(t)),i}if(Sr(t)||ei(t)||Rn(t))return t}else if(pe(t)&&Rn(t[V]))return t[V];G(28)}function vd(t,e){if(t||G(29),Sr(t)||ei(t)||Rn(t)||Je(t)||vt(t))return t;if(t[V])return t[V];G(24,t)}function er(t,e){var n;if(e!==void 0)n=Dn(t,e);else{if(ti(t))return t.name;ii(t)||Je(t)||vt(t)?n=vd(t):n=Dn(t)}return n.name_}function Ye(t){var e=We(),n=Xn(!0);se();try{return t()}finally{oe(),Zn(n),we(e)}}var fa=Gn.toString;function wr(t,e,n){return n===void 0&&(n=-1),tr(t,e,n)}function tr(t,e,n,i,r){if(t===e)return t!==0||1/t===1/e;if(t==null||e==null)return!1;if(t!==t)return e!==e;var a=typeof t;if(a!=="function"&&a!=="object"&&typeof e!="object")return!1;var s=fa.call(t);if(s!==fa.call(e))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:+t==0?1/+t===1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":n>=0&&n++;break}t=ha(t),e=ha(e);var o=s==="[object Array]";if(!o){if(typeof t!="object"||typeof e!="object")return!1;var l=t.constructor,u=e.constructor;if(l!==u&&!(pe(l)&&l instanceof l&&pe(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],r=r||[];for(var c=i.length;c--;)if(i[c]===t)return r[c]===e;if(i.push(t),r.push(e),o){if(c=t.length,c!==e.length)return!1;for(;c--;)if(!tr(t[c],e[c],n-1,i,r))return!1}else{var d=Object.keys(t),f;if(c=d.length,Object.keys(e).length!==c)return!1;for(;c--;)if(f=d[c],!(Oe(e,f)&&tr(t[f],e[f],n-1,i,r)))return!1}return i.pop(),r.pop(),!0}function ha(t){return ni(t)?t.slice():mt(t)||Je(t)||Jt(t)||vt(t)?Array.from(t.entries()):t}function jt(t){return t[Symbol.iterator]=kd,t}function kd(){return this}["Symbol","Map","Set"].forEach(function(t){var e=br();typeof e[t]=="undefined"&&G("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Dc,extras:{getDebugName:er},$mobx:V});class ko{constructor(e,n){w(this,"logger");w(this,"channel");w(this,"listeners",new Map);w(this,"eventQueue",new Map);this.logger=Ue.withPrefix(n,"EventBus");try{this.logger.debug(`Creating BroadcastChannel with name "${e}"`),this.channel=new BroadcastChannel(e),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel error:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(e,n){return this.logger.debug(`Subscribing to pattern "${e}"`),this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,i={}){this.logger.debug(`Emitting event "${e}" with data`,n),this.emitEvent(e,n,i)}handleMessage(e){const n=e.data,{name:i}=n;this.logger.debug(`Received message "${i}" with data`,n);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,i)&&(this.logger.debug(`Matching pattern "${r}" for event "${i}"`),a.forEach(s=>s({...n,wildcard:r})))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const r=new Error("Invalid arguments");throw this.logger.error(r),r}this.listeners.has(e)||(this.logger.debug(`Adding new pattern "${e}"`),this.listeners.set(e,new Set));const i=Array.from(this.eventQueue).filter(([r])=>{const a=this.matchWildcard(e,r);return a&&(this.eventQueue.delete(r),this.logger.debug(`Dequeued pending events for "${r}".`)),a}).flatMap(([,r])=>r);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,e)&&(this.logger.debug(`Adding listener to pattern "${r}"`),a.add(n),i.length&&(this.logger.debug(`Delivering pending events for "${e}".`),i.forEach(s=>{n({...s,wildcard:r})})))}emitEvent(e,n,i){if(typeof e!="string"){const s=new Error("Invalid arguments");throw this.logger.error(s),s}const r={name:e,data:n,attrs:i},a=Array.from(this.getMatchingListeners(e));if(a.length){this.logger.debug(`Delivering event "${e}" to listeners`);for(const[s,o]of a)o({...r,wildcard:s})}else this.logger.debug(`No listeners for event "${e}", enqueuing`),this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(r);this.logger.debug("Posting message to channel",r),this.channel.postMessage(r)}*getMatchingListeners(e){this.logger.debug(`Getting matching listeners for event "${e}"`);for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,e))for(const r of i)yield[n,r]}unsubscribeFromEvent(e,n){if(this.listeners.has(e)){this.logger.debug(`Unsubscribing from event "${e}"`);const i=this.listeners.get(e);i.delete(n),i.size===0&&(this.logger.debug(`No more listeners for event "${e}", deleting`),this.listeners.delete(e))}}matchWildcard(e,n){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*"),a=new RegExp(`^${i}$`).test(n);return this.logger.debug(`Wildcard "${e}" matches with pattern "${n}": ${a}`),a}}const yd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let bd=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=yd[n[t]&63];return e};const Tr=(t=8)=>bd(t),_d=t=>{const e=Object.entries(t).reduce((n,[i,r])=>r!==void 0?`${n}${n?"&":""}${i}=${r}`:n,"");return e?`?${e}`:""},yo=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function Sd(){const t=new Error().stack.split(`
4
- `);return t.length<3?"":t[2].trim().substring(3)}function Nd(t){return new Promise(e=>setTimeout(e,t))}var Cr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bo={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Cr,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],a={},s=null;function o(m,N){var _=m[N];if(typeof _.bind=="function")return _.bind(m);try{return Function.prototype.bind.call(_,m)}catch{return function(){return Function.prototype.apply.apply(_,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?o(console,m):console.log!==void 0?o(console,"log"):e}function c(){for(var m=this.getLevel(),N=0;N<r.length;N++){var _=r[N];this[_]=N<m?e:this.methodFactory(_,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(c.call(this),this[m].apply(this,arguments))}}function f(m,N,_){return u(m)||d.apply(this,arguments)}function v(m,N){var _=this,I,M,T,L="loglevel";typeof m=="string"?L+=":"+m:typeof m=="symbol"&&(L=void 0);function $(S){var E=(r[S]||"silent").toUpperCase();if(!(typeof window===n||!L)){try{window.localStorage[L]=E;return}catch{}try{window.document.cookie=encodeURIComponent(L)+"="+E+";"}catch{}}}function H(){var S;if(!(typeof window===n||!L)){try{S=window.localStorage[L]}catch{}if(typeof S===n)try{var E=window.document.cookie,A=encodeURIComponent(L),h=E.indexOf(A+"=");h!==-1&&(S=/^([^;]+)/.exec(E.slice(h+A.length+1))[1])}catch{}return _.levels[S]===void 0&&(S=void 0),S}}function k(){if(!(typeof window===n||!L)){try{window.localStorage.removeItem(L)}catch{}try{window.document.cookie=encodeURIComponent(L)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function C(S){var E=S;if(typeof E=="string"&&_.levels[E.toUpperCase()]!==void 0&&(E=_.levels[E.toUpperCase()]),typeof E=="number"&&E>=0&&E<=_.levels.SILENT)return E;throw new TypeError("log.setLevel() called with invalid level: "+S)}_.name=m,_.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},_.methodFactory=N||f,_.getLevel=function(){return T!=null?T:M!=null?M:I},_.setLevel=function(S,E){return T=C(S),E!==!1&&$(T),c.call(_)},_.setDefaultLevel=function(S){M=C(S),H()||_.setLevel(S,!1)},_.resetLevel=function(){T=null,k(),c.call(_)},_.enableAll=function(S){_.setLevel(_.levels.TRACE,S)},_.disableAll=function(S){_.setLevel(_.levels.SILENT,S)},_.rebuild=function(){if(s!==_&&(I=C(s.getLevel())),c.call(_),s===_)for(var S in a)a[S].rebuild()},I=C(s?s.getLevel():"WARN");var R=H();R!=null&&(T=C(R)),c.call(_)}s=new v,s.getLogger=function(N){if(typeof N!="symbol"&&typeof N!="string"||N==="")throw new TypeError("You must supply a name when creating a logger.");var _=a[N];return _||(_=a[N]=new v(N,s.methodFactory)),_};var p=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=p),s},s.getLoggers=function(){return a},s.default=s,s})})(bo);var _o=bo.exports;const wi=xr(_o);var So={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(Cr,function(e){var n=function(c){for(var d=1,f=arguments.length,v;d<f;d++)for(v in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],v)&&(c[v]=arguments[d][v]);return c},i={template:"[%t] %l:",levelFormatter:function(c){return c.toUpperCase()},nameFormatter:function(c){return c||"root"},timestampFormatter:function(c){return c.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,a={},s=function(c){if(!c||!c.getLogger)throw new TypeError("Argument is not a root logger");r=c},o=function(c,d){if(!c||!c.setLevel)throw new TypeError("Argument is not a logger");var f=c.methodFactory,v=c.name||"",p=a[v]||a[""]||i;function m(N,_,I){var M=f(N,_,I),T=a[I]||a[""],L=T.template.indexOf("%t")!==-1,$=T.template.indexOf("%l")!==-1,H=T.template.indexOf("%n")!==-1;return function(){for(var k="",C=arguments.length,R=Array(C),S=0;S<C;S++)R[S]=arguments[S];if(v||!a[I]){var E=T.timestampFormatter(new Date),A=T.levelFormatter(N),h=T.nameFormatter(I);T.format?k+=T.format(A,h,E):(k+=T.template,L&&(k=k.replace(/%t/,E)),$&&(k=k.replace(/%l/,A)),H&&(k=k.replace(/%n/,h))),R.length&&typeof R[0]=="string"?R[0]=k+" "+R[0]:R.unshift(k)}M.apply(void 0,R)}}return a[v]||(c.methodFactory=m),d=d||{},d.template&&(d.format=void 0),a[v]=n({},p,d),c.setLevel(c.getLevel()),r||c.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),c},l={reg:s,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(So);var Ed=So.exports;const pa=xr(Ed);var ut;let Ue=(ut=class{constructor(e=""){w(this,"provider",wi);w(this,"defaultLevel",_o.levels.INFO);this.namePrefix=e,this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),pa.reg(wi),pa.apply(wi,{template:"%t %l [%n]",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const n=`${this.namePrefix}${e.toLowerCase()}`,i=this.provider.getLogger(n),r=localStorage.getItem(`loglevel:${n}`);return i.setLevel(r||this.defaultLevel),i}static withPrefix(e,n){const i=/\(\w+\)/,r={get(a,s){const o=a[s];return typeof o=="function"&&ut.LOG_METHODS.includes(s)?(...l)=>(typeof l[0]=="string"&&!i.test(l[0])&&(l[0]=`(${n}) ${l[0]}`),o.apply(a,l)):o}};return new Proxy(e,r)}},w(ut,"LOG_METHODS",["trace","debug","info","warn","error","log"]),ut);const de=class de{constructor(){w(this,"instanceId",Tr());w(this,"log",new Ue("nz"));w(this,"coreLogger",this.log.createLogger("core"));w(this,"_config",null);w(this,"_account");w(this,"_accountStatus","idle");w(this,"_productDataSource");w(this,"_eventBus",new ko("nizza",this.coreLogger));this.coreLogger=Ue.withPrefix(this.coreLogger,"NizzaStore"),ao(this,{_config:X,_account:X,_productDataSource:X,config:Fe,account:Fe,accountName:Fe,accountStatus:Fe,configure:ke,setProductDataSource:ke,setAddToCartConfig:ke,setProductId:ke},{name:"NizzaStore",autoBind:!0})}static instance(){var n;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))de._instance=window.nizza.store;else{const i=new de;de._instance=i}return window.nizza||(window.nizza={},window.nz={},de._instance.coreLogger.debug("Initialized nizza window object")),window.nizza.store=de._instance,window.nz=window.nizza,de._instance}async configure(e){var n;try{const i=(n=this._config)==null?void 0:n.account;if(this._config=e,i!==e.account){this.setAccountStatus("loading");const r=await ol(e.account);this.setAccount(r),this.setAccountStatus("success")}if(e.getProductDataSource){const r=await e.getProductDataSource();this.setProductDataSource(r)}}catch(i){this.setAccountStatus("error"),this.coreLogger.error("Error running configure:",i)}}setAccount(e){this._account=e}setAccountStatus(e){this._accountStatus=e}setProductDataSource(e){this._productDataSource=e}setProductId(e){this._config&&(this._config.productId=e)}setOrderFormId(e){this._config&&(this._config.orderFormId=e)}setAddToCartConfig(e){if(!this._config)throw new Error("you cannot set addToCartConfig before running configure()");this._config.addToCartConfig=e}get version(){return de.version}get config(){return this._config}get account(){return this._account}get accountStatus(){return this._accountStatus}get accountName(){var e;return(e=this._config)==null?void 0:e.account}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};w(de,"version","5"),w(de,"_instance");let Ln=de;const Qe=t=>{const e=Ln.instance();return ed(()=>!!e.account,()=>t==null?void 0:t(e)),e};function rt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function kn(t){return function e(n){return arguments.length===0||rt(n)?e:t.apply(this,arguments)}}function Rr(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return rt(n)?e:kn(function(r){return t(n,r)});default:return rt(n)&&rt(i)?e:rt(n)?kn(function(r){return t(r,i)}):rt(i)?kn(function(r){return t(n,r)}):t(n,i)}}}const Ad=Number.isInteger||function(e){return e<<0===e};function Od(t){return Object.prototype.toString.call(t)==="[object String]"}var wd=Rr(function(e,n){var i=e<0?n.length+e:e;return Od(n)?n.charAt(i):n[i]}),Td=kn(function(e){return e==null}),Cd=Rr(function(e,n){return e.map(function(i){for(var r=n,a=0,s;a<i.length;){if(r==null)return;s=i[a],r=Ad(s)?wd(s,r):r[s],a+=1}return r})}),xd=Rr(function(e,n){return Cd([e],n)[0]});class yt extends Error{constructor(e,n,i){super(n),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class No extends yt{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class Fr extends yt{constructor(e){var n;super("APP_UNEXPECTED_ERROR",(n=e.message)!=null?n:"An unexpected error occurred.",e)}}class Eo extends yt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Ao extends yt{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
1
+ "use strict";var iu=Object.defineProperty;var ru=(t,e,n)=>e in t?iu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>(ru(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),vs=require("react-dom"),ks=require("@tanstack/react-query"),au=require("react/jsx-runtime");function su(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Z={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};let ou=0;function qn(t,e){const n=`atom${++ou}`,i={toString:()=>n};return typeof t=="function"?i.read=t:(i.init=t,i.read=lu,i.write=uu),i}function lu(t){return t(this)}function uu(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const Si=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,Ni=t=>"init"in t,Ei=t=>!!t.write,On=new WeakMap,cu=(t,e)=>{On.set(t,e),t.catch(()=>{}).finally(()=>On.delete(t))},ea=(t,e)=>{const n=On.get(t);n&&(On.delete(t),n(e))},ta=(t,e)=>{t.status="fulfilled",t.value=e},na=(t,e)=>{t.status="rejected",t.reason=e},du=t=>typeof(t==null?void 0:t.then)=="function",St=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),ia=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),Ze=t=>!!t&&"v"in t&&t.v instanceof Promise,fu=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,on=t=>{if("e"in t)throw t.e;return t.v},ys=()=>{const t=new WeakMap,e=new WeakMap,n=[],i=new WeakMap;let r,a;(Z?"production":void 0)!=="production"&&(r=new Set,a=new Set);const s=k=>t.get(k),o=(k,C)=>{C.d.forEach((R,S)=>{var E;if(!i.has(S)){const A=s(S);(E=n[n.length-1])==null||E.add(S),i.set(S,[A,new Set]),A&&o(S,A)}i.get(S)[1].add(k)})},l=(k,C)=>{var R;(Z?"production":void 0)!=="production"&&Object.freeze(C);const S=s(k);if(t.set(k,C),i.has(k)||((R=n[n.length-1])==null||R.add(k),i.set(k,[S,new Set]),o(k,C)),Ze(S)){const E="v"in C?C.v instanceof Promise?C.v:Promise.resolve(C.v):Promise.reject(C.e);S.v!==E&&ea(S.v,E)}},u=(k,C,R,S)=>{const E=new Map(S?C.d:null);let A=!1;R.forEach((h,g)=>{!h&&Si(k,g)&&(h=C),h?(E.set(g,h),C.d.get(g)!==h&&(A=!0)):(Z?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(A||C.d.size!==E.size)&&(C.d=E)},c=(k,C,R,S)=>{const E=s(k),A={d:(E==null?void 0:E.d)||new Map,v:C};if(R&&u(k,A,R,S),St(E,A)&&E.d===A.d)return E;if(Ze(E)&&Ze(A)&&fu(E,A)){if(E.d===A.d)return E;A.v=E.v}return l(k,A),A},d=(k,C,R,S)=>{if(du(C)){let E;const A=()=>{const g=s(k);if(!Ze(g)||g.v!==h)return;const x=c(k,h,R);e.has(k)&&g.d!==x.d&&L(k,x,g.d)},h=new Promise((g,x)=>{let D=!1;C.then(P=>{D||(D=!0,ta(h,P),g(P),A())},P=>{D||(D=!0,na(h,P),x(P),A())}),E=P=>{D||(D=!0,P.then(j=>ta(h,j),j=>na(h,j)),g(P))}});return h.orig=C,h.status="pending",cu(h,g=>{g&&E(g),S==null||S()}),c(k,h,R,!0)}return c(k,C,R)},f=(k,C,R)=>{const S=s(k),E={d:(S==null?void 0:S.d)||new Map,e:C};return R&&u(k,E,R),ia(S,E)&&S.d===E.d?S:(l(k,E),E)},v=(k,C)=>{const R=s(k);if(!C&&R&&(e.has(k)||Array.from(R.d).every(([D,P])=>{if(D===k)return!0;const j=v(D);return j===P||St(j,P)})))return R;const S=new Map;let E=!0;const A=D=>{if(Si(k,D)){const j=s(D);if(j)return S.set(D,j),on(j);if(Ni(D))return S.set(D,void 0),D.init;throw new Error("no atom init")}const P=v(D);return S.set(D,P),on(P)};let h,g;const x={get signal(){return h||(h=new AbortController),h.signal},get setSelf(){return(Z?"production":void 0)!=="production"&&!Ei(k)&&console.warn("setSelf function cannot be used with read-only atom"),!g&&Ei(k)&&(g=(...D)=>{if((Z?"production":void 0)!=="production"&&E&&console.warn("setSelf function cannot be called in sync"),!E)return _(k,...D)}),g}};try{const D=k.read(A,x);return d(k,D,S,()=>h==null?void 0:h.abort())}catch(D){return f(k,D,S)}finally{E=!1}},p=k=>on(v(k)),m=k=>{const C=h=>{var g,x;const D=new Set((g=e.get(h))==null?void 0:g.t);return(x=i.get(h))==null||x[1].forEach(P=>{D.add(P)}),D},R=new Array,S=new Set,E=h=>{if(!S.has(h)){S.add(h);for(const g of C(h))h!==g&&E(g);R.push(h)}};E(k);const A=new Set([k]);for(let h=R.length-1;h>=0;--h){const g=R[h],x=s(g);if(!x)continue;let D=!1;for(const P of x.d.keys())if(P!==g&&A.has(P)){D=!0;break}if(D){const P=v(g,!0);St(x,P)||A.add(g)}}},N=(k,...C)=>{const R=A=>on(v(A)),S=(A,...h)=>{const g=n.length>0;g||n.push(new Set([A]));let x;if(Si(k,A)){if(!Ni(A))throw new Error("atom not writable");const D=s(A),P=d(A,h[0]);St(D,P)||m(A)}else x=N(A,...h);if(!g){const D=$(n.pop());(Z?"production":void 0)!=="production"&&r.forEach(P=>P({type:"async-write",flushed:D}))}return x};return k.write(R,S,...C)},_=(k,...C)=>{n.push(new Set([k]));const R=N(k,...C),S=$(n.pop());return(Z?"production":void 0)!=="production"&&r.forEach(E=>E({type:"write",flushed:S})),R},I=(k,C,R)=>{var S;const E=e.get(k);if(E)return C&&E.t.add(C),E;const A=R||[];(S=s(k))==null||S.d.forEach((g,x)=>{x!==k&&I(x,k,A)}),v(k);const h={t:new Set(C&&[C]),l:new Set};if(e.set(k,h),(Z?"production":void 0)!=="production"&&a.add(k),Ei(k)&&k.onMount){const{onMount:g}=k;A.push(()=>{const x=g((...D)=>_(k,...D));x&&(h.u=x)})}return R||A.forEach(g=>g()),h},M=(k,C)=>!C.l.size&&(!C.t.size||C.t.size===1&&C.t.has(k)),T=(k,C)=>{if(!M(k,C))return;const R=C.u;R&&R(),e.delete(k),(Z?"production":void 0)!=="production"&&a.delete(k);const S=s(k);S?(Ze(S)&&ea(S.v),S.d.forEach((E,A)=>{if(A!==k){const h=e.get(A);h&&(h.t.delete(k),T(A,h))}})):(Z?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",k)},L=(k,C,R)=>{const S=new Set(C.d.keys()),E=new Set;R==null||R.forEach((A,h)=>{if(S.has(h)){S.delete(h);return}E.add(h);const g=e.get(h);g&&g.t.delete(k)}),S.forEach(A=>{I(A,k)}),E.forEach(A=>{const h=e.get(A);h&&T(A,h)})},$=k=>{let C;(Z?"production":void 0)!=="production"&&(C=new Set);const R=[],S=E=>{var A;if(!i.has(E))return;const[h,g]=i.get(E);i.delete(E),R.push([E,h]),g.forEach(S),(A=s(E))==null||A.d.forEach((x,D)=>S(D))};if(k.forEach(S),R.forEach(([E,A])=>{const h=s(E);if(!h){(Z?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(h!==A){const g=e.get(E);g&&h.d!==(A==null?void 0:A.d)&&L(E,h,A==null?void 0:A.d),g&&!(!Ze(A)&&(St(A,h)||ia(A,h)))&&(g.l.forEach(x=>x()),(Z?"production":void 0)!=="production"&&C.add(E))}}),(Z?"production":void 0)!=="production")return C},H=(k,C)=>{const R=I(k),S=$([k]),E=R.l;return E.add(C),(Z?"production":void 0)!=="production"&&r.forEach(A=>A({type:"sub",flushed:S})),()=>{E.delete(C),T(k,R),(Z?"production":void 0)!=="production"&&r.forEach(A=>A({type:"unsub"}))}};return(Z?"production":void 0)!=="production"?{get:p,set:_,sub:H,dev_subscribe_store:k=>(r.add(k),()=>{r.delete(k)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:k=>t.get(k),dev_get_mounted:k=>e.get(k),dev_restore_atoms:k=>{n.push(new Set);for(const[R,S]of k)Ni(R)&&(d(R,S),m(R));const C=$(n.pop());r.forEach(R=>R({type:"restore",flushed:C}))}}:{get:p,set:_,sub:H}};let Nt;const hu=()=>(Nt||(Nt=ys(),(Z?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Nt),globalThis.__JOTAI_DEFAULT_STORE__!==Nt&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Nt),pu=ys,mu=hu;var gu={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const vu=B.createContext(void 0),bs=t=>B.useContext(vu)||mu(),ku=t=>typeof(t==null?void 0:t.then)=="function",yu=B.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)});function qi(t,e){const n=bs(),[[i,r,a],s]=B.useReducer(u=>{const c=n.get(t);return Object.is(u[0],c)&&u[1]===n&&u[2]===t?u:[c,n,t]},void 0,()=>[n.get(t),n,t]);let o=i;return(r!==n||a!==t)&&(s(),o=n.get(t)),B.useEffect(()=>{const u=n.sub(t,()=>{s()});return s(),u},[n,t,void 0]),B.useDebugValue(o),ku(o)?yu(o):o}function yr(t,e){const n=bs();return B.useCallback((...r)=>{if((gu?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...r)},[n,t])}function mn(t,e){return[qi(t),yr(t)]}const Gn=qn(null);Gn.debugLabel="accountAtom";var bu={NZ_AWS_REGION:"us-east-1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STAGE:"dev"};const{NZ_AWS_REGION:_u,NZ_BACKOFFICE_BACK_URL:Su,NZ_CORE_SERVICES_GRAPHQL_URL:Nu,NZ_CORE_SERVICES_REST_URL:Eu}=bu,br={AWS:{region:_u,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Su||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Eu||"https://core-services-dev.nizza.com/api",graphql:Nu||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};function _s(t,e){let n=null;const i=()=>{n||(n=e().log.createLogger(t))},r=(s,o)=>typeof s[o]=="function",a={get(s,o,l){i();const u=c=>(...d)=>{if(!n)return;const f=n[c];if(typeof f=="function")return f.apply(n,d)};return n&&r(n,o)?u(o):n?n[o]:void 0}};return new Proxy({},a)}function G(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw new Error(typeof t=="number"?"[MobX] minified error nr: "+t+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var Au={};function _r(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Au}var Ss=Object.assign,wn=Object.getOwnPropertyDescriptor,_e=Object.defineProperty,Kn=Object.prototype,Gi=[];Object.freeze(Gi);var Ns={};Object.freeze(Ns);var Ou=typeof Proxy!="undefined",wu=Object.toString();function Es(){Ou||G("Proxy not available")}function As(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var st=function(){};function pe(t){return typeof t=="function"}function He(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Wn(t){return t!==null&&typeof t=="object"}function Le(t){if(!Wn(t))return!1;var e=Object.getPrototypeOf(t);if(e==null)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n.toString()===wu}function Os(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Jn(t,e,n){_e(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ws(t,e,n){_e(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function We(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return Wn(i)&&i[n]===!0}}function mt(t){return t instanceof Map}function Jt(t){return t instanceof Set}var Ts=typeof Object.getOwnPropertySymbols!="undefined";function Tu(t){var e=Object.keys(t);if(!Ts)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return Kn.propertyIsEnumerable.call(t,i)})):e}var Yn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ts?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function Cs(t){return t===null?null:typeof t=="object"?""+t:t}function Oe(t,e){return Kn.hasOwnProperty.call(t,e)}var Cu=Object.getOwnPropertyDescriptors||function(e){var n={};return Yn(e).forEach(function(i){n[i]=wn(e,i)}),n};function xu(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Iu(i.key),i)}}function Sr(t,e,n){return e&&xu(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pe(){return Pe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Pe.apply(this,arguments)}function xs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ki(t,e)}function Ki(t,e){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Ki(t,e)}function Ai(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ru(t,e){if(t){if(typeof t=="string")return ra(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ra(t,e)}}function ra(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ot(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Ru(t))||e){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fu(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Iu(t){var e=Fu(t,"string");return typeof e=="symbol"?e:String(e)}var ve=Symbol("mobx-stored-annotations");function Se(t){function e(n,i){if(Yt(i))return t.decorate_20223_(n,i);gt(n,i,t)}return Object.assign(e,t)}function gt(t,e,n){Oe(t,ve)||Jn(t,ve,Pe({},t[ve])),Bu(n)||(t[ve][e]=n)}function Du(t){return Oe(t,ve)||Jn(t,ve,Pe({},t[ve])),t[ve]}function Yt(t){return typeof t=="object"&&typeof t.kind=="string"}var V=Symbol("mobx administration"),Qt=function(){function t(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=K.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var e=t.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.reportObserved=function(){return Ws(this)},e.reportChanged=function(){se(),Js(this),oe()},e.toString=function(){return this.name_},t}(),Nr=We("Atom",Qt);function Rs(t,e,n){e===void 0&&(e=st),n===void 0&&(n=st);var i=new Qt(t);return e!==st&&Gc(i,e),n!==st&&to(i,n),i}function Lu(t,e){return t===e}function Pu(t,e){return Tr(t,e)}function $u(t,e){return Tr(t,e,1)}function Uu(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Tn={identity:Lu,structural:Pu,default:Uu,shallow:$u};function qe(t,e,n){return ao(t)?t:Array.isArray(t)?X.array(t,{name:n}):Le(t)?X.object(t,void 0,{name:n}):mt(t)?X.map(t,{name:n}):Jt(t)?X.set(t,{name:n}):typeof t=="function"&&!ni(t)&&!Mt(t)?Os(t)?dt(t):Vt(n,t):t}function Vu(t,e,n){if(t==null||ri(t)||ii(t)||Ye(t)||vt(t))return t;if(Array.isArray(t))return X.array(t,{name:n,deep:!1});if(Le(t))return X.object(t,void 0,{name:n,deep:!1});if(mt(t))return X.map(t,{name:n,deep:!1});if(Jt(t))return X.set(t,{name:n,deep:!1})}function Qn(t){return t}function Mu(t,e){return Tr(t,e)?e:t}var ju="override";function Bu(t){return t.annotationType_===ju}function Xt(t,e){return{annotationType_:t,options_:e,make_:zu,extend_:Hu,decorate_20223_:qu}}function zu(t,e,n,i){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(t,e,n,!1)===null?0:1;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if(ni(n.value))return 1;var a=Fs(t,this,e,n,!1);return _e(i,e,a),2}function Hu(t,e,n,i){var r=Fs(t,this,e,n);return t.defineProperty_(e,r,i)}function qu(t,e){var n=e.kind,i=e.name,r=e.addInitializer,a=this,s=function(u){var c,d,f,v;return $e((c=(d=a.options_)==null?void 0:d.name)!=null?c:i.toString(),u,(f=(v=a.options_)==null?void 0:v.autoAction)!=null?f:!1)};if(n=="field"){r(function(){gt(this,i,a)});return}if(n=="method"){var o;return ni(t)||(t=s(t)),(o=this.options_)!=null&&o.bound&&r(function(){var l=this,u=l[i].bind(l);u.isMobxAction=!0,l[i]=u}),t}G("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
3
+ '`+a.annotationType_+"' can only be used on properties with a function value."))}function Gu(t,e,n,i){e.annotationType_,i.value}function Fs(t,e,n,i,r){var a,s,o,l,u,c,d;r===void 0&&(r=O.safeDescriptors),Gu(t,e,n,i);var f=i.value;if((a=e.options_)!=null&&a.bound){var v;f=f.bind((v=t.proxy_)!=null?v:t.target_)}return{value:$e((s=(o=e.options_)==null?void 0:o.name)!=null?s:n.toString(),f,(l=(u=e.options_)==null?void 0:u.autoAction)!=null?l:!1,(c=e.options_)!=null&&c.bound?(d=t.proxy_)!=null?d:t.target_:void 0),configurable:r?t.isPlainObject_:!0,enumerable:!1,writable:!r}}function Is(t,e){return{annotationType_:t,options_:e,make_:Ku,extend_:Wu,decorate_20223_:Ju}}function Ku(t,e,n,i){var r;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!Oe(t.target_,e)||!Mt(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(Mt(n.value))return 1;var a=Ds(t,this,e,n,!1,!1);return _e(i,e,a),2}function Wu(t,e,n,i){var r,a=Ds(t,this,e,n,(r=this.options_)==null?void 0:r.bound);return t.defineProperty_(e,a,i)}function Ju(t,e){var n,i=e.name,r=e.addInitializer;return Mt(t)||(t=dt(t)),(n=this.options_)!=null&&n.bound&&r(function(){var a=this,s=a[i].bind(a);s.isMobXFlow=!0,a[i]=s}),t}function Yu(t,e,n,i){e.annotationType_,i.value}function Ds(t,e,n,i,r,a){a===void 0&&(a=O.safeDescriptors),Yu(t,e,n,i);var s=i.value;if(Mt(s)||(s=dt(s)),r){var o;s=s.bind((o=t.proxy_)!=null?o:t.target_),s.isMobXFlow=!0}return{value:s,configurable:a?t.isPlainObject_:!0,enumerable:!1,writable:!a}}function Er(t,e){return{annotationType_:t,options_:e,make_:Qu,extend_:Xu,decorate_20223_:Zu}}function Qu(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function Xu(t,e,n,i){return ec(t,this,e,n),t.defineComputedProperty_(e,Pe({},this.options_,{get:n.get,set:n.set}),i)}function Zu(t,e){var n=this,i=e.name,r=e.addInitializer;return r(function(){var a=kt(this)[V],s=Pe({},n.options_,{get:t,context:this});s.name||(s.name="ObservableObject."+i.toString()),a.values_.set(i,new ct(s))}),function(){return this[V].getObservablePropValue_(i)}}function ec(t,e,n,i){e.annotationType_,i.get}function Xn(t,e){return{annotationType_:t,options_:e,make_:tc,extend_:nc,decorate_20223_:ic}}function tc(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function nc(t,e,n,i){var r,a;return rc(t,this),t.defineObservableProperty_(e,n.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:qe,i)}function ic(t,e){var n=this,i=e.kind,r=e.name,a=new WeakSet;function s(o,l){var u,c,d=kt(o)[V],f=new Be(l,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:qe,"ObservableObject."+r.toString(),!1);d.values_.set(r,f),a.add(o)}if(i=="accessor")return{get:function(){return a.has(this)||s(this,t.get.call(this)),this[V].getObservablePropValue_(r)},set:function(l){return a.has(this)||s(this,l),this[V].setObservablePropValue_(r,l)},init:function(l){return a.has(this)||s(this,l),l}}}function rc(t,e,n,i){e.annotationType_}var ac="true",sc=Ls();function Ls(t){return{annotationType_:ac,options_:t,make_:oc,extend_:lc,decorate_20223_:uc}}function oc(t,e,n,i){var r,a;if(n.get)return Fe.make_(t,e,n,i);if(n.set){var s=$e(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:O.safeDescriptors?t.isPlainObject_:!0,set:s})===null?0:2:(_e(i,e,{configurable:!0,set:s}),2)}if(i!==t.target_&&typeof n.value=="function"){var o;if(Os(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?dt.bound:dt;return u.make_(t,e,n,i)}var c=(o=this.options_)!=null&&o.autoBind?Vt.bound:Vt;return c.make_(t,e,n,i)}var d=((r=this.options_)==null?void 0:r.deep)===!1?X.ref:X;if(typeof n.value=="function"&&(a=this.options_)!=null&&a.autoBind){var f;n.value=n.value.bind((f=t.proxy_)!=null?f:t.target_)}return d.make_(t,e,n,i)}function lc(t,e,n,i){var r,a;if(n.get)return Fe.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:O.safeDescriptors?t.isPlainObject_:!0,set:$e(e.toString(),n.set)},i);if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var s;n.value=n.value.bind((s=t.proxy_)!=null?s:t.target_)}var o=((a=this.options_)==null?void 0:a.deep)===!1?X.ref:X;return o.extend_(t,e,n,i)}function uc(t,e){G("'"+this.annotationType_+"' cannot be used as a decorator")}var cc="observable",dc="observable.ref",fc="observable.shallow",hc="observable.struct",Ps={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Ps);function ln(t){return t||Ps}var Wi=Xn(cc),pc=Xn(dc,{enhancer:Qn}),mc=Xn(fc,{enhancer:Vu}),gc=Xn(hc,{enhancer:Mu}),$s=Se(Wi);function un(t){return t.deep===!0?qe:t.deep===!1?Qn:kc(t.defaultDecorator)}function vc(t){var e;return t?(e=t.defaultDecorator)!=null?e:Ls(t):void 0}function kc(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:qe}function Us(t,e,n){if(Yt(e))return Wi.decorate_20223_(t,e);if(He(e)){gt(t,e,Wi);return}return ao(t)?t:Le(t)?X.object(t,e,n):Array.isArray(t)?X.array(t,e):mt(t)?X.map(t,e):Jt(t)?X.set(t,e):typeof t=="object"&&t!==null?t:X.box(t,e)}Ss(Us,$s);var yc={box:function(e,n){var i=ln(n);return new Be(e,un(i),i.name,!0,i.equals)},array:function(e,n){var i=ln(n);return(O.useProxies===!1||i.proxy===!1?kd:ld)(e,un(i),i.name)},map:function(e,n){var i=ln(n);return new fo(e,un(i),i.name)},set:function(e,n){var i=ln(n);return new mo(e,un(i),i.name)},object:function(e,n,i){return Qe(function(){return Yc(O.useProxies===!1||(i==null?void 0:i.proxy)===!1?kt({},i):ad({},i),e,n)})},ref:Se(pc),shallow:Se(mc),deep:$s,struct:Se(gc)},X=Ss(Us,yc),Vs="computed",bc="computed.struct",Ji=Er(Vs),_c=Er(bc,{equals:Tn.structural}),Fe=function(e,n){if(Yt(n))return Ji.decorate_20223_(e,n);if(He(n))return gt(e,n,Ji);if(Le(e))return Se(Er(Vs,e));var i=Le(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new ct(i)};Object.assign(Fe,Ji);Fe.struct=Se(_c);var aa,sa,Cn=0,Sc=1,Nc=(aa=(sa=wn(function(){},"name"))==null?void 0:sa.configurable)!=null?aa:!1,oa={value:"action",configurable:!0,writable:!1,enumerable:!1};function $e(t,e,n,i){n===void 0&&(n=!1);function r(){return Ec(t,n,e,i||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return e.toString()},Nc&&(oa.value=t,_e(r,"name",oa)),r}function Ec(t,e,n,i,r){var a=Ac(t,e);try{return n.apply(i,r)}catch(s){throw a.error_=s,s}finally{Oc(a)}}function Ac(t,e,n,i){var r=!1,a=0,s=O.trackingDerivation,o=!e||!s;se();var l=O.allowStateChanges;o&&(Je(),l=Zn(!0));var u=Ar(!0),c={runAsAction_:o,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:r,startTime_:a,actionId_:Sc++,parentActionId_:Cn};return Cn=c.actionId_,c}function Oc(t){Cn!==t.actionId_&&G(30),Cn=t.parentActionId_,t.error_!==void 0&&(O.suppressReactionErrors=!0),ei(t.prevAllowStateChanges_),xt(t.prevAllowStateReads_),oe(),t.runAsAction_&&we(t.prevDerivation_),O.suppressReactionErrors=!1}function wc(t,e){var n=Zn(t);try{return e()}finally{ei(n)}}function Zn(t){var e=O.allowStateChanges;return O.allowStateChanges=t,e}function ei(t){O.allowStateChanges=t}var Ms;Ms=Symbol.toPrimitive;var Be=function(t){xs(e,t);function e(i,r,a,s,o){var l;return a===void 0&&(a="ObservableValue"),o===void 0&&(o=Tn.default),l=t.call(this,a)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=r,l.name_=a,l.equals=o,l.value_=r(i,void 0,a),l}var n=e.prototype;return n.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},n.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==O.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(re(this)){var a=ae(this,{object:this,type:Ne,newValue:r});if(!a)return O.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?O.UNCHANGED:r},n.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),fe(this)&&he(this,{type:Ne,object:this,newValue:r,oldValue:a})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return Zt(this,r)},n.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:Ne,newValue:this.value_,oldValue:void 0}),en(this,r)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Cs(this.get())},n[Ms]=function(){return this.valueOf()},e}(Qt),js;js=Symbol.toPrimitive;var ct=function(){function t(n){this.dependenciesState_=K.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=K.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Rn(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=xn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||G(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=$e("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Tn.structural:Tn.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){Fc(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.get=function(){if(this.isComputing_&&G(32,this.name_,this.derivation),O.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Yi(this)&&(this.warnAboutUntrackedRead_(),se(),this.value_=this.computeValue_(!1),oe());else if(Ws(this),Yi(this)){var i=O.trackingContext;this.keepAlive_&&!i&&(O.trackingContext=this),this.trackAndCompute()&&Rc(this),O.trackingContext=i}var r=this.value_;if(gn(r))throw r.cause;return r},e.set=function(i){if(this.setter_){this.isRunningSetter_&&G(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else G(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,r=this.dependenciesState_===K.NOT_TRACKING_,a=this.computeValue_(!0),s=r||gn(i)||gn(a)||!this.equals_(i,a);return s&&(this.value_=a),s},e.computeValue_=function(i){this.isComputing_=!0;var r=Zn(!1),a;if(i)a=Bs(this,this.derivation,this.scope_);else if(O.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(s){a=new Rn(s)}return ei(r),this.isComputing_=!1,a},e.suspend_=function(){this.keepAlive_||(Qi(this),this.value_=void 0)},e.observe_=function(i,r){var a=this,s=!0,o=void 0;return eo(function(){var l=a.get();if(!s||r){var u=Je();i({observableKind:"computed",debugObjectName:a.name_,type:Ne,object:a,newValue:l,oldValue:o}),we(u)}s=!1,o=l})},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return Cs(this.get())},e[js]=function(){return this.valueOf()},t}(),ti=We("ComputedValue",ct),K;(function(t){t[t.NOT_TRACKING_=-1]="NOT_TRACKING_",t[t.UP_TO_DATE_=0]="UP_TO_DATE_",t[t.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",t[t.STALE_=2]="STALE_"})(K||(K={}));var xn;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(xn||(xn={}));var Rn=function(e){this.cause=void 0,this.cause=e};function gn(t){return t instanceof Rn}function Yi(t){switch(t.dependenciesState_){case K.UP_TO_DATE_:return!1;case K.NOT_TRACKING_:case K.STALE_:return!0;case K.POSSIBLY_STALE_:{for(var e=Ar(!0),n=Je(),i=t.observing_,r=i.length,a=0;a<r;a++){var s=i[a];if(ti(s)){if(O.disableErrorBoundaries)s.get();else try{s.get()}catch{return we(n),xt(e),!0}if(t.dependenciesState_===K.STALE_)return we(n),xt(e),!0}}return Hs(t),we(n),xt(e),!1}}}function Bs(t,e,n){var i=Ar(!0);Hs(t),t.newObserving_=new Array(t.runId_===0?100:t.observing_.length),t.unboundDepsCount_=0,t.runId_=++O.runId;var r=O.trackingDerivation;O.trackingDerivation=t,O.inBatch++;var a;if(O.disableErrorBoundaries===!0)a=e.call(n);else try{a=e.call(n)}catch(s){a=new Rn(s)}return O.inBatch--,O.trackingDerivation=r,Tc(t),xt(i),a}function Tc(t){for(var e=t.observing_,n=t.observing_=t.newObserving_,i=K.UP_TO_DATE_,r=0,a=t.unboundDepsCount_,s=0;s<a;s++){var o=n[s];o.diffValue_===0&&(o.diffValue_=1,r!==s&&(n[r]=o),r++),o.dependenciesState_>i&&(i=o.dependenciesState_)}for(n.length=r,t.newObserving_=null,a=e.length;a--;){var l=e[a];l.diffValue_===0&&Gs(l,t),l.diffValue_=0}for(;r--;){var u=n[r];u.diffValue_===1&&(u.diffValue_=0,xc(u,t))}i!==K.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function Qi(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)Gs(e[n],t);t.dependenciesState_=K.NOT_TRACKING_}function zs(t){var e=Je();try{return t()}finally{we(e)}}function Je(){var t=O.trackingDerivation;return O.trackingDerivation=null,t}function we(t){O.trackingDerivation=t}function Ar(t){var e=O.allowStateReads;return O.allowStateReads=t,e}function xt(t){O.allowStateReads=t}function Hs(t){if(t.dependenciesState_!==K.UP_TO_DATE_){t.dependenciesState_=K.UP_TO_DATE_;for(var e=t.observing_,n=e.length;n--;)e[n].lowestObserverState_=K.UP_TO_DATE_}}var vn=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},kn=!0,qs=!1,O=function(){var t=_r();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(kn=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new vn().version&&(kn=!1),kn?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new vn):(setTimeout(function(){qs||G(35)},1),new vn)}();function Cc(){if((O.pendingReactions.length||O.inBatch||O.isRunningReactions)&&G(36),qs=!0,kn){var t=_r();--t.__mobxInstanceCount===0&&(t.__mobxGlobals=void 0),O=new vn}}function xc(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function Gs(t,e){t.observers_.delete(e),t.observers_.size===0&&Ks(t)}function Ks(t){t.isPendingUnobservation_===!1&&(t.isPendingUnobservation_=!0,O.pendingUnobservations.push(t))}function se(){O.inBatch++}function oe(){if(--O.inBatch===0){Ys();for(var t=O.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof ct&&n.suspend_())}O.pendingUnobservations=[]}}function Ws(t){var e=O.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&O.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(t.observers_.size===0&&O.inBatch>0&&Ks(t),!1)}function Js(t){t.lowestObserverState_!==K.STALE_&&(t.lowestObserverState_=K.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=K.STALE_}))}function Rc(t){t.lowestObserverState_!==K.STALE_&&(t.lowestObserverState_=K.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.POSSIBLY_STALE_?e.dependenciesState_=K.STALE_:e.dependenciesState_===K.UP_TO_DATE_&&(t.lowestObserverState_=K.UP_TO_DATE_)}))}function Fc(t){t.lowestObserverState_===K.UP_TO_DATE_&&(t.lowestObserverState_=K.POSSIBLY_STALE_,t.observers_.forEach(function(e){e.dependenciesState_===K.UP_TO_DATE_&&(e.dependenciesState_=K.POSSIBLY_STALE_,e.onBecomeStale_())}))}var Ut=function(){function t(n,i,r,a){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=K.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=xn.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=r,this.requiresObservable_=a}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,O.pendingReactions.push(this),Ys())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){se(),this.isScheduled_=!1;var i=O.trackingContext;if(O.trackingContext=this,Yi(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}O.trackingContext=i,oe()}},e.track=function(i){if(!this.isDisposed_){se(),this.isRunning_=!0;var r=O.trackingContext;O.trackingContext=this;var a=Bs(this,i,void 0);O.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Qi(this),gn(a)&&this.reportExceptionInDerivation_(a.cause),oe()}},e.reportExceptionInDerivation_=function(i){var r=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(O.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";O.suppressReactionErrors||console.error(a,i),O.globalReactionErrorHandlers.forEach(function(s){return s(i,r)})},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(se(),Qi(this),oe()))},e.getDisposer_=function(i){var r=this,a=function s(){r.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener==null||i.addEventListener("abort",a),a[V]=this,a},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},t}(),Ic=100,Xi=function(e){return e()};function Ys(){O.inBatch>0||O.isRunningReactions||Xi(Dc)}function Dc(){O.isRunningReactions=!0;for(var t=O.pendingReactions,e=0;t.length>0;){++e===Ic&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction_()}O.isRunningReactions=!1}var Fn=We("Reaction",Ut);function Lc(t){var e=Xi;Xi=function(i){return t(function(){return e(i)})}}function Rt(){return!1}function Pc(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Qs="action",$c="action.bound",Xs="autoAction",Uc="autoAction.bound",Vc="<unnamed action>",Zi=Xt(Qs),Mc=Xt($c,{bound:!0}),er=Xt(Xs,{autoAction:!0}),jc=Xt(Uc,{autoAction:!0,bound:!0});function Zs(t){var e=function(i,r){if(pe(i))return $e(i.name||Vc,i,t);if(pe(r))return $e(i,r,t);if(Yt(r))return(t?er:Zi).decorate_20223_(i,r);if(He(r))return gt(i,r,t?er:Zi);if(He(i))return Se(Xt(t?Xs:Qs,{name:i,autoAction:t}))};return e}var ke=Zs(!1);Object.assign(ke,Zi);var Vt=Zs(!0);Object.assign(Vt,er);ke.bound=Se(Mc);Vt.bound=Se(jc);function ni(t){return pe(t)&&t.isMobxAction===!0}function eo(t,e){var n,i,r,a,s;e===void 0&&(e=Ns);var o=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",l=!e.scheduler&&!e.delay,u;if(l)u=new Ut(o,function(){this.track(f)},e.onError,e.requiresObservable);else{var c=zc(e),d=!1;u=new Ut(o,function(){d||(d=!0,c(function(){d=!1,u.isDisposed_||u.track(f)}))},e.onError,e.requiresObservable)}function f(){t(u)}return(r=e)!=null&&(a=r.signal)!=null&&a.aborted||u.schedule_(),u.getDisposer_((s=e)==null?void 0:s.signal)}var Bc=function(e){return e()};function zc(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Bc}var Hc="onBO",qc="onBUO";function Gc(t,e,n){return no(Hc,t,e,n)}function to(t,e,n){return no(qc,t,e,n)}function no(t,e,n,i){var r=Ln(e),a=pe(i)?i:n,s=t+"L";return r[s]?r[s].add(a):r[s]=new Set([a]),function(){var o=r[s];o&&(o.delete(a),o.size===0&&delete r[s])}}var Kc="never",cn="always",Wc="observed";function Jc(t){t.isolateGlobalState===!0&&Cc();var e=t.useProxies,n=t.enforceActions;if(e!==void 0&&(O.useProxies=e===cn?!0:e===Kc?!1:typeof Proxy!="undefined"),e==="ifavailable"&&(O.verifyProxies=!0),n!==void 0){var i=n===cn?cn:n===Wc;O.enforceActions=i,O.allowStateChanges=!(i===!0||i===cn)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(r){r in t&&(O[r]=!!t[r])}),O.allowStateReads=!O.observableRequiresReaction,t.reactionScheduler&&Lc(t.reactionScheduler)}function Yc(t,e,n,i){var r=Cu(e);return Qe(function(){var a=kt(t,i)[V];Yn(r).forEach(function(s){a.extend_(s,r[s],n&&s in n?n[s]:!0)})}),t}function Qc(t,e){return io(Ln(t,e))}function io(t){var e={name:t.name_};return t.observing_&&t.observing_.length>0&&(e.dependencies=Xc(t.observing_).map(io)),e}function Xc(t){return Array.from(new Set(t))}var Zc=0;function ro(){this.message="FLOW_CANCELLED"}ro.prototype=Object.create(Error.prototype);var Oi=Is("flow"),ed=Is("flow.bound",{bound:!0}),dt=Object.assign(function(e,n){if(Yt(n))return Oi.decorate_20223_(e,n);if(He(n))return gt(e,n,Oi);var i=e,r=i.name||"<unnamed flow>",a=function(){var o=this,l=arguments,u=++Zc,c=ke(r+" - runid: "+u+" - init",i).apply(o,l),d,f=void 0,v=new Promise(function(p,m){var N=0;d=m;function _(T){f=void 0;var L;try{L=ke(r+" - runid: "+u+" - yield "+N++,c.next).call(c,T)}catch($){return m($)}M(L)}function I(T){f=void 0;var L;try{L=ke(r+" - runid: "+u+" - yield "+N++,c.throw).call(c,T)}catch($){return m($)}M(L)}function M(T){if(pe(T==null?void 0:T.then)){T.then(M,m);return}return T.done?p(T.value):(f=Promise.resolve(T.value),f.then(_,I))}_(void 0)});return v.cancel=ke(r+" - runid: "+u+" - cancel",function(){try{f&&la(f);var p=c.return(void 0),m=Promise.resolve(p.value);m.then(st,st),la(m),d(new ro)}catch(N){d(N)}}),v};return a.isMobXFlow=!0,a},Oi);dt.bound=Se(ed);function la(t){pe(t.cancel)&&t.cancel()}function Mt(t){return(t==null?void 0:t.isMobXFlow)===!0}function td(t,e){return t?ri(t)||!!t[V]||Nr(t)||Fn(t)||ti(t):!1}function ao(t){return td(t)}function Ae(t,e){e===void 0&&(e=void 0),se();try{return t.apply(e)}finally{oe()}}function nd(t,e,n){return arguments.length===1||e&&typeof e=="object"?id(t,e):so(t,e,{})}function so(t,e,n){var i;if(typeof n.timeout=="number"){var r=new Error("WHEN_TIMEOUT");i=setTimeout(function(){if(!s[V].isDisposed_)if(s(),n.onError)n.onError(r);else throw r},n.timeout)}n.name="When";var a=$e("When-effect",e),s=eo(function(o){var l=wc(!1,t);l&&(o.dispose(),i&&clearTimeout(i),a())},n);return s}function id(t,e){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i,r,a=new Promise(function(s,o){var l,u=so(t,s,Pe({},e,{onError:o}));i=function(){u(),o(new Error("WHEN_CANCELLED"))},r=function(){u(),o(new Error("WHEN_ABORTED"))},e==null||(l=e.signal)==null||l.addEventListener==null||l.addEventListener("abort",r)}).finally(function(){var s;return e==null||(s=e.signal)==null||s.removeEventListener==null?void 0:s.removeEventListener("abort",r)});return a.cancel=i,a}function et(t){return t[V]}var rd={has:function(e,n){return et(e).has_(n)},get:function(e,n){return et(e).get_(n)},set:function(e,n,i){var r;return He(n)?(r=et(e).set_(n,i,!0))!=null?r:!0:!1},deleteProperty:function(e,n){var i;return He(n)?(i=et(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var r;return(r=et(e).defineProperty_(n,i))!=null?r:!0},ownKeys:function(e){return et(e).ownKeys_()},preventExtensions:function(e){G(13)}};function ad(t,e){var n,i;return Es(),t=kt(t,e),(i=(n=t[V]).proxy_)!=null?i:n.proxy_=new Proxy(t,rd)}function re(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function Zt(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),As(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function ae(t,e){var n=Je();try{for(var i=[].concat(t.interceptors_||[]),r=0,a=i.length;r<a&&(e=i[r](e),e&&!e.type&&G(14),!!e);r++);return e}finally{we(n)}}function fe(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function en(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),As(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function he(t,e){var n=Je(),i=t.changeListeners_;if(i){i=i.slice();for(var r=0,a=i.length;r<a;r++)i[r](e);we(n)}}function oo(t,e,n){return Qe(function(){var i,r=kt(t,n)[V];(i=e)!=null||(e=Du(t)),Yn(e).forEach(function(a){return r.make_(a,e[a])})}),t}var ua="splice",Ne="update",sd=1e4,od={get:function(e,n){var i=e[V];return n===V?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):Oe(In,n)?In[n]:e[n]},set:function(e,n,i){var r=e[V];return n==="length"&&r.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:r.set_(parseInt(n),i),!0},preventExtensions:function(){G(15)}},Or=function(){function t(n,i,r,a){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=a,this.atom_=new Qt(n),this.enhancer_=function(s,o){return i(s,o,"ObservableArray[..]")}}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},e.intercept_=function(i){return Zt(this,i)},e.observe_=function(i,r){return r===void 0&&(r=!1),r&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),en(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&G("Out of range: "+i);var r=this.values_.length;if(i!==r)if(i>r){for(var a=new Array(i-r),s=0;s<i-r;s++)a[s]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(i,r-i)},e.updateArrayLength_=function(i,r){i!==this.lastKnownLength_&&G(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&yo(i+r+1)},e.spliceWithArray_=function(i,r,a){var s=this;this.atom_;var o=this.values_.length;if(i===void 0?i=0:i>o?i=o:i<0&&(i=Math.max(0,o+i)),arguments.length===1?r=o-i:r==null?r=0:r=Math.max(0,Math.min(r,o-i)),a===void 0&&(a=Gi),re(this)){var l=ae(this,{object:this.proxy_,type:ua,index:i,removedCount:r,added:a});if(!l)return Gi;r=l.removedCount,a=l.added}if(a=a.length===0?a:a.map(function(d){return s.enhancer_(d,void 0)}),this.legacyMode_){var u=a.length-r;this.updateArrayLength_(o,u)}var c=this.spliceItemsIntoValues_(i,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(i,a,c),this.dehanceValues_(c)},e.spliceItemsIntoValues_=function(i,r,a){if(a.length<sd){var s;return(s=this.values_).splice.apply(s,[i,r].concat(a))}else{var o=this.values_.slice(i,i+r),l=this.values_.slice(i+r);this.values_.length+=a.length-r;for(var u=0;u<a.length;u++)this.values_[i+u]=a[u];for(var c=0;c<l.length;c++)this.values_[i+a.length+c]=l[c];return o}},e.notifyArrayChildUpdate_=function(i,r,a){var s=!this.owned_&&Rt(),o=fe(this),l=o||s?{observableKind:"array",object:this.proxy_,type:Ne,debugObjectName:this.atom_.name_,index:i,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),o&&he(this,l)},e.notifyArraySplice_=function(i,r,a){var s=!this.owned_&&Rt(),o=fe(this),l=o||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:ua,index:i,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&he(this,l)},e.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},e.set_=function(i,r){var a=this.values_;if(this.legacyMode_&&i>a.length&&G(17,i,a.length),i<a.length){this.atom_;var s=a[i];if(re(this)){var o=ae(this,{type:Ne,object:this.proxy_,index:i,newValue:r});if(!o)return;r=o.newValue}r=this.enhancer_(r,s);var l=r!==s;l&&(a[i]=r,this.notifyArrayChildUpdate_(i,r,s))}else{for(var u=new Array(i+1-a.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=r,this.spliceWithArray_(a.length,0,u)}},t}();function ld(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),Es(),Qe(function(){var r=new Or(n,e,i,!1);ws(r.values_,V,r);var a=new Proxy(r.values_,od);return r.proxy_=a,t&&t.length&&r.spliceWithArray_(0,0,t),a})}var In={clear:function(){return this.splice(0)},replace:function(e){var n=this[V];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];var s=this[V];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(e);case 2:return s.spliceWithArray_(e,n)}return s.spliceWithArray_(e,n,r)},spliceWithArray:function(e,n,i){return this[V].spliceWithArray_(e,n,i)},push:function(){for(var e=this[V],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,i),e.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[V],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(0,0,i),e.values_.length},reverse:function(){return O.trackingDerivation&&G(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){O.trackingDerivation&&G(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[V],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};W("at",ie);W("concat",ie);W("flat",ie);W("includes",ie);W("indexOf",ie);W("join",ie);W("lastIndexOf",ie);W("slice",ie);W("toString",ie);W("toLocaleString",ie);W("toSorted",ie);W("toSpliced",ie);W("with",ie);W("every",me);W("filter",me);W("find",me);W("findIndex",me);W("findLast",me);W("findLastIndex",me);W("flatMap",me);W("forEach",me);W("map",me);W("some",me);W("toReversed",me);W("reduce",lo);W("reduceRight",lo);function W(t,e){typeof Array.prototype[t]=="function"&&(In[t]=e(t))}function ie(t){return function(){var e=this[V];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function me(t){return function(e,n){var i=this,r=this[V];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[t](function(s,o){return e.call(n,s,o,i)})}}function lo(t){return function(){var e=this,n=this[V];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),r=arguments[0];return arguments[0]=function(a,s,o){return r(a,s,o,e)},i[t].apply(i,arguments)}}var ud=We("ObservableArrayAdministration",Or);function ii(t){return Wn(t)&&ud(t[V])}var uo,co,cd={},Ie="add",Dn="delete";uo=Symbol.iterator;co=Symbol.toStringTag;var fo=function(){function t(n,i,r){var a=this;i===void 0&&(i=qe),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=cd,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=r,pe(Map)||G(18),Qe(function(){a.keysAtom_=Rs("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,n&&a.merge(n)})}var e=t.prototype;return e.has_=function(i){return this.data_.has(i)},e.has=function(i){var r=this;if(!O.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var s=a=new Be(this.has_(i),Qn,"ObservableMap.key?",!1);this.hasMap_.set(i,s),to(s,function(){return r.hasMap_.delete(i)})}return a.get()},e.set=function(i,r){var a=this.has_(i);if(re(this)){var s=ae(this,{type:a?Ne:Ie,object:this,newValue:r,name:i});if(!s)return this;r=s.newValue}return a?this.updateValue_(i,r):this.addValue_(i,r),this},e.delete=function(i){var r=this;if(this.keysAtom_,re(this)){var a=ae(this,{type:Dn,object:this,name:i});if(!a)return!1}if(this.has_(i)){var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Dn,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return Ae(function(){var u;r.keysAtom_.reportChanged(),(u=r.hasMap_.get(i))==null||u.setNewValue_(!1);var c=r.data_.get(i);c.setNewValue_(void 0),r.data_.delete(i)}),o&&he(this,l),!0}return!1},e.updateValue_=function(i,r){var a=this.data_.get(i);if(r=a.prepareNewValue_(r),r!==O.UNCHANGED){var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Ne,object:this,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&he(this,l)}},e.addValue_=function(i,r){var a=this;this.keysAtom_,Ae(function(){var u,c=new Be(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(i,c),r=c.value_,(u=a.hasMap_.get(i))==null||u.setNewValue_(!0),a.keysAtom_.reportChanged()});var s=Rt(),o=fe(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Ie,object:this,name:i,newValue:r}:null;o&&he(this,l)},e.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var i=this,r=this.keys();return jt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:i.get(l)}}})},e.entries=function(){var i=this,r=this.keys();return jt({next:function(){var s=r.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[uo]=function(){return this.entries()},e.forEach=function(i,r){for(var a=ot(this),s;!(s=a()).done;){var o=s.value,l=o[0],u=o[1];i.call(r,u,l,this)}},e.merge=function(i){var r=this;return Ye(i)&&(i=new Map(i)),Ae(function(){Le(i)?Tu(i).forEach(function(a){return r.set(a,i[a])}):Array.isArray(i)?i.forEach(function(a){var s=a[0],o=a[1];return r.set(s,o)}):mt(i)?(i.constructor!==Map&&G(19,i),i.forEach(function(a,s){return r.set(s,a)})):i!=null&&G(20,i)}),this},e.clear=function(){var i=this;Ae(function(){zs(function(){for(var r=ot(i.keys()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.replace=function(i){var r=this;return Ae(function(){for(var a=dd(i),s=new Map,o=!1,l=ot(r.data_.keys()),u;!(u=l()).done;){var c=u.value;if(!a.has(c)){var d=r.delete(c);if(d)o=!0;else{var f=r.data_.get(c);s.set(c,f)}}}for(var v=ot(a.entries()),p;!(p=v()).done;){var m=p.value,N=m[0],_=m[1],I=r.data_.has(N);if(r.set(N,_),r.data_.has(N)){var M=r.data_.get(N);s.set(N,M),I||(o=!0)}}if(!o)if(r.data_.size!==s.size)r.keysAtom_.reportChanged();else for(var T=r.data_.keys(),L=s.keys(),$=T.next(),H=L.next();!$.done;){if($.value!==H.value){r.keysAtom_.reportChanged();break}$=T.next(),H=L.next()}r.data_=s}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},Sr(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:co,get:function(){return"Map"}}]),t}(),Ye=We("ObservableMap",fo);function dd(t){if(mt(t)||Ye(t))return t;if(Array.isArray(t))return new Map(t);if(Le(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return G(21,t)}var ho,po,fd={};ho=Symbol.iterator;po=Symbol.toStringTag;var mo=function(){function t(n,i,r){var a=this;i===void 0&&(i=qe),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[V]=fd,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,pe(Set)||G(22),this.enhancer_=function(s,o){return i(s,o,r)},Qe(function(){a.atom_=Rs(a.name_),n&&a.replace(n)})}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.clear=function(){var i=this;Ae(function(){zs(function(){for(var r=ot(i.data_.values()),a;!(a=r()).done;){var s=a.value;i.delete(s)}})})},e.forEach=function(i,r){for(var a=ot(this),s;!(s=a()).done;){var o=s.value;i.call(r,o,o,this)}},e.add=function(i){var r=this;if(this.atom_,re(this)){var a=ae(this,{type:Ie,object:this,newValue:i});if(!a)return this}if(!this.has(i)){Ae(function(){r.data_.add(r.enhancer_(i,void 0)),r.atom_.reportChanged()});var s=!1,o=fe(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:Ie,object:this,newValue:i}:null;o&&he(this,l)}return this},e.delete=function(i){var r=this;if(re(this)){var a=ae(this,{type:Dn,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var s=!1,o=fe(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:Dn,object:this,oldValue:i}:null;return Ae(function(){r.atom_.reportChanged(),r.data_.delete(i)}),o&&he(this,l),!0}return!1},e.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},e.entries=function(){var i=0,r=Array.from(this.keys()),a=Array.from(this.values());return jt({next:function(){var o=i;return i+=1,o<a.length?{value:[r[o],a[o]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var i=this,r=0,a=Array.from(this.data_.values());return jt({next:function(){return r<a.length?{value:i.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},e.replace=function(i){var r=this;return vt(i)&&(i=new Set(i)),Ae(function(){Array.isArray(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):Jt(i)?(r.clear(),i.forEach(function(a){return r.add(a)})):i!=null&&G("Cannot initialize set from "+i)}),this},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[ho]=function(){return this.values()},Sr(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:po,get:function(){return"Set"}}]),t}(),vt=We("ObservableSet",mo),ca=Object.create(null),da="remove",go=function(){function t(n,i,r,a){i===void 0&&(i=new Map),a===void 0&&(a=sc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new Qt("ObservableObject.keys"),this.isPlainObject_=Le(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(i){return this.values_.get(i).get()},e.setObservablePropValue_=function(i,r){var a=this.values_.get(i);if(a instanceof ct)return a.set(r),!0;if(re(this)){var s=ae(this,{type:Ne,object:this.proxy_||this.target_,name:i,newValue:r});if(!s)return null;r=s.newValue}if(r=a.prepareNewValue_(r),r!==O.UNCHANGED){var o=fe(this),l=!1,u=o||l?{type:Ne,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:i,newValue:r}:null;a.setNewValue_(r),o&&he(this,u)}return!0},e.get_=function(i){return O.trackingDerivation&&!Oe(this.target_,i)&&this.has_(i),this.target_[i]},e.set_=function(i,r,a){return a===void 0&&(a=!1),Oe(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,r):a?Reflect.set(this.target_,i,r):(this.target_[i]=r,!0):this.extend_(i,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},e.has_=function(i){if(!O.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(i);return r||(r=new Be(i in this.target_,Qn,"ObservableObject.key?",!1),this.pendingKeys_.set(i,r)),r.get()},e.make_=function(i,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(i in this.target_)){var a;if((a=this.target_[ve])!=null&&a[i])return;G(1,r.annotationType_,this.name_+"."+i.toString())}for(var s=this.target_;s&&s!==Kn;){var o=wn(s,i);if(o){var l=r.make_(this,i,o,s);if(l===0)return;if(l===1)break}s=Object.getPrototypeOf(s)}ha(this,r,i)}},e.extend_=function(i,r,a,s){if(s===void 0&&(s=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(i,r,s);var o=a.extend_(this,i,r,s);return o&&ha(this,a,i),o},e.defineProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{se();var s=this.delete_(i);if(!s)return s;if(re(this)){var o=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:r.value});if(!o)return null;var l=o.newValue;r.value!==l&&(r=Pe({},r,{value:l}))}if(a){if(!Reflect.defineProperty(this.target_,i,r))return!1}else _e(this.target_,i,r);this.notifyPropertyAddition_(i,r.value)}finally{oe()}return!0},e.defineObservableProperty_=function(i,r,a,s){s===void 0&&(s=!1),this.keysAtom_;try{se();var o=this.delete_(i);if(!o)return o;if(re(this)){var l=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:r});if(!l)return null;r=l.newValue}var u=fa(i),c={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,i,c))return!1}else _e(this.target_,i,c);var d=new Be(r,a,"ObservableObject.key",!1);this.values_.set(i,d),this.notifyPropertyAddition_(i,d.value_)}finally{oe()}return!0},e.defineComputedProperty_=function(i,r,a){a===void 0&&(a=!1),this.keysAtom_;try{se();var s=this.delete_(i);if(!s)return s;if(re(this)){var o=ae(this,{object:this.proxy_||this.target_,name:i,type:Ie,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=fa(i),u={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(a){if(!Reflect.defineProperty(this.target_,i,u))return!1}else _e(this.target_,i,u);this.values_.set(i,new ct(r)),this.notifyPropertyAddition_(i,void 0)}finally{oe()}return!0},e.delete_=function(i,r){if(r===void 0&&(r=!1),this.keysAtom_,!Oe(this.target_,i))return!0;if(re(this)){var a=ae(this,{object:this.proxy_||this.target_,name:i,type:da});if(!a)return null}try{var s,o;se();var l=fe(this),u=!1,c=this.values_.get(i),d=void 0;if(!c&&(l||u)){var f;d=(f=wn(this.target_,i))==null?void 0:f.value}if(r){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(c&&(this.values_.delete(i),c instanceof Be&&(d=c.value_),Js(c)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(o=s.get(i))==null||o.set(i in this.target_),l||u){var v={type:da,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:d,name:i};l&&he(this,v)}}finally{oe()}return!0},e.observe_=function(i,r){return en(this,i)},e.intercept_=function(i){return Zt(this,i)},e.notifyPropertyAddition_=function(i,r){var a,s,o=fe(this),l=!1;if(o||l){var u=o||l?{type:Ie,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:r}:null;o&&he(this,u)}(a=this.pendingKeys_)==null||(s=a.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Yn(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function kt(t,e){var n;if(Oe(t,V))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",r=new go(t,new Map,String(i),vc(e));return Jn(t,V,r),t}var hd=We("ObservableObjectAdministration",go);function fa(t){return ca[t]||(ca[t]={get:function(){return this[V].getObservablePropValue_(t)},set:function(n){return this[V].setObservablePropValue_(t,n)}})}function ri(t){return Wn(t)?hd(t[V]):!1}function ha(t,e,n){var i;(i=t.target_[ve])==null||delete i[n]}var pd=ko(0),md=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),wi=0,vo=function(){};function gd(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}gd(vo,Array.prototype);var wr=function(t,e,n){xs(i,t);function i(a,s,o,l){var u;return o===void 0&&(o="ObservableArray"),l===void 0&&(l=!1),u=t.call(this)||this,Qe(function(){var c=new Or(o,s,l,!0);c.proxy_=Ai(u),ws(Ai(u),V,c),a&&a.length&&u.spliceWithArray(0,0,a),md&&Object.defineProperty(Ai(u),"0",pd)}),u}var r=i.prototype;return r.concat=function(){this[V].atom_.reportObserved();for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),o.map(function(u){return ii(u)?u.slice():u}))},r[n]=function(){var a=this,s=0;return jt({next:function(){return s<a.length?{value:a[s++],done:!1}:{done:!0,value:void 0}}})},Sr(i,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(s){this[V].setArrayLength_(s)}},{key:e,get:function(){return"Array"}}]),i}(vo,Symbol.toStringTag,Symbol.iterator);Object.entries(In).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&Jn(wr.prototype,e,n)});function ko(t){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(t)},set:function(n){this[V].set_(t,n)}}}function vd(t){_e(wr.prototype,""+t,ko(t))}function yo(t){if(t>wi){for(var e=wi;e<t+100;e++)vd(e);wi=t}}yo(1e3);function kd(t,e,n){return new wr(t,e,n)}function Ln(t,e){if(typeof t=="object"&&t!==null){if(ii(t))return e!==void 0&&G(23),t[V].atom_;if(vt(t))return t.atom_;if(Ye(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||G(25,e,tr(t)),n}if(ri(t)){if(!e)return G(26);var i=t[V].values_.get(e);return i||G(27,e,tr(t)),i}if(Nr(t)||ti(t)||Fn(t))return t}else if(pe(t)&&Fn(t[V]))return t[V];G(28)}function yd(t,e){if(t||G(29),Nr(t)||ti(t)||Fn(t)||Ye(t)||vt(t))return t;if(t[V])return t[V];G(24,t)}function tr(t,e){var n;if(e!==void 0)n=Ln(t,e);else{if(ni(t))return t.name;ri(t)||Ye(t)||vt(t)?n=yd(t):n=Ln(t)}return n.name_}function Qe(t){var e=Je(),n=Zn(!0);se();try{return t()}finally{oe(),ei(n),we(e)}}var pa=Kn.toString;function Tr(t,e,n){return n===void 0&&(n=-1),nr(t,e,n)}function nr(t,e,n,i,r){if(t===e)return t!==0||1/t===1/e;if(t==null||e==null)return!1;if(t!==t)return e!==e;var a=typeof t;if(a!=="function"&&a!=="object"&&typeof e!="object")return!1;var s=pa.call(t);if(s!==pa.call(e))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:+t==0?1/+t===1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":n>=0&&n++;break}t=ma(t),e=ma(e);var o=s==="[object Array]";if(!o){if(typeof t!="object"||typeof e!="object")return!1;var l=t.constructor,u=e.constructor;if(l!==u&&!(pe(l)&&l instanceof l&&pe(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],r=r||[];for(var c=i.length;c--;)if(i[c]===t)return r[c]===e;if(i.push(t),r.push(e),o){if(c=t.length,c!==e.length)return!1;for(;c--;)if(!nr(t[c],e[c],n-1,i,r))return!1}else{var d=Object.keys(t),f;if(c=d.length,Object.keys(e).length!==c)return!1;for(;c--;)if(f=d[c],!(Oe(e,f)&&nr(t[f],e[f],n-1,i,r)))return!1}return i.pop(),r.pop(),!0}function ma(t){return ii(t)?t.slice():mt(t)||Ye(t)||Jt(t)||vt(t)?Array.from(t.entries()):t}function jt(t){return t[Symbol.iterator]=bd,t}function bd(){return this}["Symbol","Map","Set"].forEach(function(t){var e=_r();typeof e[t]=="undefined"&&G("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Pc,extras:{getDebugName:tr},$mobx:V});class bo{constructor(e,n){w(this,"logger");w(this,"channel");w(this,"listeners",new Map);w(this,"eventQueue",new Map);this.logger=Ue.withPrefix(n,"EventBus");try{this.logger.debug(`Creating BroadcastChannel with name "${e}"`),this.channel=new BroadcastChannel(e),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel error:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(e,n){return this.logger.debug(`Subscribing to pattern "${e}"`),this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,i={}){this.logger.debug(`Emitting event "${e}" with data`,n),this.emitEvent(e,n,i)}handleMessage(e){const n=e.data,{name:i}=n;this.logger.debug(`Received message "${i}" with data`,n);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,i)&&(this.logger.debug(`Matching pattern "${r}" for event "${i}"`),a.forEach(s=>s({...n,wildcard:r})))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const r=new Error("Invalid arguments");throw this.logger.error(r),r}this.listeners.has(e)||(this.logger.debug(`Adding new pattern "${e}"`),this.listeners.set(e,new Set));const i=Array.from(this.eventQueue).filter(([r])=>{const a=this.matchWildcard(e,r);return a&&(this.eventQueue.delete(r),this.logger.debug(`Dequeued pending events for "${r}".`)),a}).flatMap(([,r])=>r);for(const[r,a]of this.listeners.entries())this.matchWildcard(r,e)&&(this.logger.debug(`Adding listener to pattern "${r}"`),a.add(n),i.length&&(this.logger.debug(`Delivering pending events for "${e}".`),i.forEach(s=>{n({...s,wildcard:r})})))}emitEvent(e,n,i){if(typeof e!="string"){const s=new Error("Invalid arguments");throw this.logger.error(s),s}const r={name:e,data:n,attrs:i},a=Array.from(this.getMatchingListeners(e));if(a.length){this.logger.debug(`Delivering event "${e}" to listeners`);for(const[s,o]of a)o({...r,wildcard:s})}else this.logger.debug(`No listeners for event "${e}", enqueuing`),this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(r);this.logger.debug("Posting message to channel",r),this.channel.postMessage(r)}*getMatchingListeners(e){this.logger.debug(`Getting matching listeners for event "${e}"`);for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,e))for(const r of i)yield[n,r]}unsubscribeFromEvent(e,n){if(this.listeners.has(e)){this.logger.debug(`Unsubscribing from event "${e}"`);const i=this.listeners.get(e);i.delete(n),i.size===0&&(this.logger.debug(`No more listeners for event "${e}", deleting`),this.listeners.delete(e))}}matchWildcard(e,n){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*"),a=new RegExp(`^${i}$`).test(n);return this.logger.debug(`Wildcard "${e}" matches with pattern "${n}": ${a}`),a}}const _d="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Sd=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=_d[n[t]&63];return e};const Cr=(t=8)=>Sd(t),Nd=t=>{const e=Object.entries(t).reduce((n,[i,r])=>r!==void 0?`${n}${n?"&":""}${i}=${r}`:n,"");return e?`?${e}`:""},_o=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function Ed(){const t=new Error().stack.split(`
4
+ `);return t.length<3?"":t[2].trim().substring(3)}function Ad(t){return new Promise(e=>setTimeout(e,t))}var xr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var So={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(xr,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],a={},s=null;function o(m,N){var _=m[N];if(typeof _.bind=="function")return _.bind(m);try{return Function.prototype.bind.call(_,m)}catch{return function(){return Function.prototype.apply.apply(_,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?o(console,m):console.log!==void 0?o(console,"log"):e}function c(){for(var m=this.getLevel(),N=0;N<r.length;N++){var _=r[N];this[_]=N<m?e:this.methodFactory(_,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(c.call(this),this[m].apply(this,arguments))}}function f(m,N,_){return u(m)||d.apply(this,arguments)}function v(m,N){var _=this,I,M,T,L="loglevel";typeof m=="string"?L+=":"+m:typeof m=="symbol"&&(L=void 0);function $(S){var E=(r[S]||"silent").toUpperCase();if(!(typeof window===n||!L)){try{window.localStorage[L]=E;return}catch{}try{window.document.cookie=encodeURIComponent(L)+"="+E+";"}catch{}}}function H(){var S;if(!(typeof window===n||!L)){try{S=window.localStorage[L]}catch{}if(typeof S===n)try{var E=window.document.cookie,A=encodeURIComponent(L),h=E.indexOf(A+"=");h!==-1&&(S=/^([^;]+)/.exec(E.slice(h+A.length+1))[1])}catch{}return _.levels[S]===void 0&&(S=void 0),S}}function k(){if(!(typeof window===n||!L)){try{window.localStorage.removeItem(L)}catch{}try{window.document.cookie=encodeURIComponent(L)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function C(S){var E=S;if(typeof E=="string"&&_.levels[E.toUpperCase()]!==void 0&&(E=_.levels[E.toUpperCase()]),typeof E=="number"&&E>=0&&E<=_.levels.SILENT)return E;throw new TypeError("log.setLevel() called with invalid level: "+S)}_.name=m,_.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},_.methodFactory=N||f,_.getLevel=function(){return T!=null?T:M!=null?M:I},_.setLevel=function(S,E){return T=C(S),E!==!1&&$(T),c.call(_)},_.setDefaultLevel=function(S){M=C(S),H()||_.setLevel(S,!1)},_.resetLevel=function(){T=null,k(),c.call(_)},_.enableAll=function(S){_.setLevel(_.levels.TRACE,S)},_.disableAll=function(S){_.setLevel(_.levels.SILENT,S)},_.rebuild=function(){if(s!==_&&(I=C(s.getLevel())),c.call(_),s===_)for(var S in a)a[S].rebuild()},I=C(s?s.getLevel():"WARN");var R=H();R!=null&&(T=C(R)),c.call(_)}s=new v,s.getLogger=function(N){if(typeof N!="symbol"&&typeof N!="string"||N==="")throw new TypeError("You must supply a name when creating a logger.");var _=a[N];return _||(_=a[N]=new v(N,s.methodFactory)),_};var p=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=p),s},s.getLoggers=function(){return a},s.default=s,s})})(So);var No=So.exports;const Ti=Rr(No);var Eo={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(xr,function(e){var n=function(c){for(var d=1,f=arguments.length,v;d<f;d++)for(v in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],v)&&(c[v]=arguments[d][v]);return c},i={template:"[%t] %l:",levelFormatter:function(c){return c.toUpperCase()},nameFormatter:function(c){return c||"root"},timestampFormatter:function(c){return c.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,a={},s=function(c){if(!c||!c.getLogger)throw new TypeError("Argument is not a root logger");r=c},o=function(c,d){if(!c||!c.setLevel)throw new TypeError("Argument is not a logger");var f=c.methodFactory,v=c.name||"",p=a[v]||a[""]||i;function m(N,_,I){var M=f(N,_,I),T=a[I]||a[""],L=T.template.indexOf("%t")!==-1,$=T.template.indexOf("%l")!==-1,H=T.template.indexOf("%n")!==-1;return function(){for(var k="",C=arguments.length,R=Array(C),S=0;S<C;S++)R[S]=arguments[S];if(v||!a[I]){var E=T.timestampFormatter(new Date),A=T.levelFormatter(N),h=T.nameFormatter(I);T.format?k+=T.format(A,h,E):(k+=T.template,L&&(k=k.replace(/%t/,E)),$&&(k=k.replace(/%l/,A)),H&&(k=k.replace(/%n/,h))),R.length&&typeof R[0]=="string"?R[0]=k+" "+R[0]:R.unshift(k)}M.apply(void 0,R)}}return a[v]||(c.methodFactory=m),d=d||{},d.template&&(d.format=void 0),a[v]=n({},p,d),c.setLevel(c.getLevel()),r||c.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),c},l={reg:s,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(Eo);var Od=Eo.exports;const ga=Rr(Od);var ut;let Ue=(ut=class{constructor(e=""){w(this,"provider",Ti);w(this,"defaultLevel",No.levels.INFO);this.namePrefix=e,this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),ga.reg(Ti),ga.apply(Ti,{template:"%t %l [%n]",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const n=`${this.namePrefix}${e.toLowerCase()}`,i=this.provider.getLogger(n),r=localStorage.getItem(`loglevel:${n}`);return i.setLevel(r||this.defaultLevel),i}static withPrefix(e,n){const i=/\(\w+\)/,r={get(a,s){const o=a[s];return typeof o=="function"&&ut.LOG_METHODS.includes(s)?(...l)=>(typeof l[0]=="string"&&!i.test(l[0])&&(l[0]=`(${n}) ${l[0]}`),o.apply(a,l)):o}};return new Proxy(e,r)}},w(ut,"LOG_METHODS",["trace","debug","info","warn","error","log"]),ut);const de=class de{constructor(){w(this,"instanceId",Cr());w(this,"log",new Ue("nz"));w(this,"coreLogger",this.log.createLogger("core"));w(this,"_config",null);w(this,"_account");w(this,"_accountStatus","idle");w(this,"_productDataSource");w(this,"_eventBus",new bo("nizza",this.coreLogger));this.coreLogger=Ue.withPrefix(this.coreLogger,"NizzaStore"),oo(this,{_config:X,_account:X,_productDataSource:X,config:Fe,account:Fe,accountName:Fe,accountStatus:Fe,configure:ke,setProductDataSource:ke,setAddToCartConfig:ke,setProductId:ke},{name:"NizzaStore",autoBind:!0})}static instance(){var n;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))de._instance=window.nizza.store;else{const i=new de;de._instance=i}return window.nizza||(window.nizza={},window.nz={},de._instance.coreLogger.debug("Initialized nizza window object")),window.nizza.store=de._instance,window.nz=window.nizza,de._instance}async configure(e){var n;try{const i=(n=this._config)==null?void 0:n.account;if(this._config=e,i!==e.account){this.setAccountStatus("loading");const r=await ul(e.account);this.setAccount(r),this.setAccountStatus("success")}if(e.getProductDataSource){const r=await e.getProductDataSource();this.setProductDataSource(r)}}catch(i){this.setAccountStatus("error"),this.coreLogger.error("Error running configure:",i)}}setAccount(e){this._account=e}setAccountStatus(e){this._accountStatus=e}setProductDataSource(e){this._productDataSource=e}setProductId(e){this._config&&(this._config.productId=e)}setOrderFormId(e){this._config&&(this._config.orderFormId=e)}setAddToCartConfig(e){if(!this._config)throw new Error("you cannot set addToCartConfig before running configure()");this._config.addToCartConfig=e}get version(){return de.version}get config(){return this._config}get account(){return this._account}get accountStatus(){return this._accountStatus}get accountName(){var e;return(e=this._config)==null?void 0:e.account}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};w(de,"version","5"),w(de,"_instance");let Pn=de;const Xe=t=>{const e=Pn.instance();return nd(()=>!!e.account,()=>t==null?void 0:t(e)),e};function rt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function yn(t){return function e(n){return arguments.length===0||rt(n)?e:t.apply(this,arguments)}}function Fr(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return rt(n)?e:yn(function(r){return t(n,r)});default:return rt(n)&&rt(i)?e:rt(n)?yn(function(r){return t(r,i)}):rt(i)?yn(function(r){return t(n,r)}):t(n,i)}}}const wd=Number.isInteger||function(e){return e<<0===e};function Td(t){return Object.prototype.toString.call(t)==="[object String]"}var Cd=Fr(function(e,n){var i=e<0?n.length+e:e;return Td(n)?n.charAt(i):n[i]}),xd=yn(function(e){return e==null}),Rd=Fr(function(e,n){return e.map(function(i){for(var r=n,a=0,s;a<i.length;){if(r==null)return;s=i[a],r=wd(s)?Cd(s,r):r[s],a+=1}return r})}),Fd=Fr(function(e,n){return Rd([e],n)[0]});class yt extends Error{constructor(e,n,i){super(n),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class Ao extends yt{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class Ir extends yt{constructor(e){var n;super("APP_UNEXPECTED_ERROR",(n=e.message)!=null?n:"An unexpected error occurred.",e)}}class Oo extends yt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class wo extends yt{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
5
5
  Configuration property invalid: "${e}".
6
6
 
7
7
  It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
@@ -23,60 +23,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  account: env.account,
24
24
  ...
25
25
  });
26
- `)}}function Rd(t,e){e.forEach(n=>{if(Td(xd(n.split("."),t)))throw new Ao(n)})}if(!B.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!ao)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Fd(t){t()}function Id(t){t||(t=Fd),Kc({reactionScheduler:t})}function Dd(t){return Jc(t)}var Ld=1e4,Pd=1e4,$d=function(){function t(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=Ld),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var r=Date.now();n.registrations.forEach(function(a,s){r-a.registeredAt>=i&&(n.finalize(a.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(t.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(t.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(t.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Pd))}}),t}(),Ud=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:$d,nr=new Ud(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),ma=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,a=[],s;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a};function ga(t){return"observer".concat(t)}var Vd=function(){function t(){}return t}();function Md(){return new Vd}function jd(t,e){e===void 0&&(e="observed");var n=ma(B.useState(Md),1),i=n[0],r=ma(B.useState(),2),a=r[1],s=function(){return a([])},o=B.useRef(null);o.current||(o.current={reaction:null,mounted:!1,changedBeforeMount:!1});var l=o.current;l.reaction||(l.reaction=new Ut(ga(e),function(){l.mounted?s():l.changedBeforeMount=!0}),nr.register(i,l,l)),B.useDebugValue(l.reaction,Dd),B.useEffect(function(){return nr.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,s()):(l.reaction=new Ut(ga(e),function(){s()}),s()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}},[]);var u,c;if(l.reaction.track(function(){try{u=t()}catch(d){c=d}}),c)throw c;return u}var Oo=typeof Symbol=="function"&&Symbol.for;Oo?Symbol.for("react.forward_ref"):typeof B.forwardRef=="function"&&B.forwardRef(function(t){return null}).$$typeof;Oo?Symbol.for("react.memo"):typeof B.memo=="function"&&B.memo(function(t){return null}).$$typeof;var Ti;Id(ms.unstable_batchedUpdates);Ti=nr.finalizeAllImmediately;function Bd(t,e){return e===void 0&&(e="observed"),jd(t,e)}function wo(){return B.useMemo(Qe,[])}function Ir(t){const e=wo();return Bd(()=>t(e))}const{coreLogger:zd}=Qe(),Hd=Ue.withPrefix(zd,"CustomFetch");async function Dr(t){const{url:e,method:n="GET",body:i,raw:r=!1,contentTypeJson:a=!0,timeout:s,...o}=t,l=a&&!t.headers?new Headers({"content-type":"application/json"}):t.headers;try{const u=new AbortController,{signal:c}=u;let d;const f=fetch(e,{method:n,headers:l,body:i,signal:c,...o});s&&(d=setTimeout(()=>{u.abort()},s));const v=await f;if(r)return v;const p=await v.json();if(clearTimeout(d),!v.ok){const m=p?JSON.stringify(p):v.statusText;throw new Error(m)}return p}catch(u){throw Hd.error(u),u}}const qd=t=>Dr({...t,contentTypeJson:!1,raw:!1});function Gd(t,e,n){fetch(e).then(i=>i.blob()).then(i=>To(i,`${t}.${n}`))}const To=(t,e,n)=>{const i=[t],r=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,e);const a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),s=document.createElement("a");return s.style.display="none",s.href=a,s.setAttribute("download",e),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(()=>{document.body.removeChild(s),window.URL.revokeObjectURL(a)},200)},{coreLogger:Kd}=Qe(),Wd=Ue.withPrefix(Kd,"getClientTimeZone");function Jd(){var i,r,a;let t=null,e=null,n=null;try{t=(a=(r=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:r.timeZone)!=null?a:null;const s=-new Date().getTimezoneOffset();n=s;const o=s>=0?"+":"-",l=String(Math.floor(Math.abs(s)/60)).padStart(2,"0"),u=String(Math.abs(s)%60).padStart(2,"0");e=`${o}${l}:${u}`}catch{Wd.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}class Co{constructor(e){w(this,"aggregate");w(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,i]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Lr(t){return new Co(t)}class Yd{constructor(e){w(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var ne=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(ne||{});function xo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Qd}=Object.prototype,{getPrototypeOf:Pr}=Object,ri=(t=>e=>{const n=Qd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ee=t=>(t=t.toLowerCase(),e=>ri(e)===t),ai=t=>e=>typeof e===t,{isArray:bt}=Array,Bt=ai("undefined");function Xd(t){return t!==null&&!Bt(t)&&t.constructor!==null&&!Bt(t.constructor)&&le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ro=Ee("ArrayBuffer");function Zd(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ro(t.buffer),e}const ef=ai("string"),le=ai("function"),Fo=ai("number"),si=t=>t!==null&&typeof t=="object",tf=t=>t===!0||t===!1,yn=t=>{if(ri(t)!=="object")return!1;const e=Pr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},nf=Ee("Date"),rf=Ee("File"),af=Ee("Blob"),sf=Ee("FileList"),of=t=>si(t)&&le(t.pipe),lf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||le(t.append)&&((e=ri(t))==="formdata"||e==="object"&&le(t.toString)&&t.toString()==="[object FormData]"))},uf=Ee("URLSearchParams"),cf=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),bt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let o;for(i=0;i<s;i++)o=a[i],e.call(null,t[o],o,t)}}function Io(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Do=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Lo=t=>!Bt(t)&&t!==Do;function ir(){const{caseless:t}=Lo(this)&&this||{},e={},n=(i,r)=>{const a=t&&Io(e,r)||r;yn(e[a])&&yn(i)?e[a]=ir(e[a],i):yn(i)?e[a]=ir({},i):bt(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&tn(arguments[i],n);return e}const df=(t,e,n,{allOwnKeys:i}={})=>(tn(e,(r,a)=>{n&&le(r)?t[a]=xo(r,n):t[a]=r},{allOwnKeys:i}),t),ff=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),hf=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},pf=(t,e,n,i)=>{let r,a,s;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)s=r[a],(!i||i(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=n!==!1&&Pr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},mf=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},gf=t=>{if(!t)return null;if(bt(t))return t;let e=t.length;if(!Fo(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},vf=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Pr(Uint8Array)),kf=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const a=r.value;e.call(t,a[0],a[1])}},yf=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},bf=Ee("HTMLFormElement"),_f=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),va=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Sf=Ee("RegExp"),Po=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};tn(n,(r,a)=>{let s;(s=e(r,a,t))!==!1&&(i[a]=s||r)}),Object.defineProperties(t,i)},Nf=t=>{Po(t,(e,n)=>{if(le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(le(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ef=(t,e)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return bt(t)?i(t):i(String(t).split(e)),n},Af=()=>{},Of=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ci="abcdefghijklmnopqrstuvwxyz",ka="0123456789",$o={DIGIT:ka,ALPHA:Ci,ALPHA_DIGIT:Ci+Ci.toUpperCase()+ka},wf=(t=16,e=$o.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Tf(t){return!!(t&&le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Cf=t=>{const e=new Array(10),n=(i,r)=>{if(si(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=bt(i)?[]:{};return tn(i,(s,o)=>{const l=n(s,r+1);!Bt(l)&&(a[o]=l)}),e[r]=void 0,a}}return i};return n(t,0)},xf=Ee("AsyncFunction"),Rf=t=>t&&(si(t)||le(t))&&le(t.then)&&le(t.catch),y={isArray:bt,isArrayBuffer:Ro,isBuffer:Xd,isFormData:lf,isArrayBufferView:Zd,isString:ef,isNumber:Fo,isBoolean:tf,isObject:si,isPlainObject:yn,isUndefined:Bt,isDate:nf,isFile:rf,isBlob:af,isRegExp:Sf,isFunction:le,isStream:of,isURLSearchParams:uf,isTypedArray:vf,isFileList:sf,forEach:tn,merge:ir,extend:df,trim:cf,stripBOM:ff,inherits:hf,toFlatObject:pf,kindOf:ri,kindOfTest:Ee,endsWith:mf,toArray:gf,forEachEntry:kf,matchAll:yf,isHTMLForm:bf,hasOwnProperty:va,hasOwnProp:va,reduceDescriptors:Po,freezeMethods:Nf,toObjectSet:Ef,toCamelCase:_f,noop:Af,toFiniteNumber:Of,findKey:Io,global:Do,isContextDefined:Lo,ALPHABET:$o,generateString:wf,isSpecCompliantForm:Tf,toJSONObject:Cf,isAsyncFn:xf,isThenable:Rf};function q(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}y.inherits(q,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uo=q.prototype,Vo={};["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(t=>{Vo[t]={value:t}});Object.defineProperties(q,Vo);Object.defineProperty(Uo,"isAxiosError",{value:!0});q.from=(t,e,n,i,r,a)=>{const s=Object.create(Uo);return y.toFlatObject(t,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),q.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const Ff=null;function rr(t){return y.isPlainObject(t)||y.isArray(t)}function Mo(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function ya(t,e,n){return t?t.concat(e).map(function(r,a){return r=Mo(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function If(t){return y.isArray(t)&&!t.some(rr)}const Df=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function oi(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,N){return!y.isUndefined(N[m])});const i=n.metaTokens,r=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(y.isDate(p))return p.toISOString();if(!l&&y.isBlob(p))throw new q("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(p)||y.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,N){let _=p;if(p&&!N&&typeof p=="object"){if(y.endsWith(m,"{}"))m=i?m:m.slice(0,-2),p=JSON.stringify(p);else if(y.isArray(p)&&If(p)||(y.isFileList(p)||y.endsWith(m,"[]"))&&(_=y.toArray(p)))return m=Mo(m),_.forEach(function(M,T){!(y.isUndefined(M)||M===null)&&e.append(s===!0?ya([m],T,a):s===null?m:m+"[]",u(M))}),!1}return rr(p)?!0:(e.append(ya(N,m,a),u(p)),!1)}const d=[],f=Object.assign(Df,{defaultVisitor:c,convertValue:u,isVisitable:rr});function v(p,m){if(!y.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),y.forEach(p,function(_,I){(!(y.isUndefined(_)||_===null)&&r.call(e,_,y.isString(I)?I.trim():I,m,f))===!0&&v(_,m?m.concat(I):[I])}),d.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return v(t),e}function ba(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function $r(t,e){this._pairs=[],t&&oi(t,this,e)}const jo=$r.prototype;jo.append=function(e,n){this._pairs.push([e,n])};jo.toString=function(e){const n=e?function(i){return e.call(this,i,ba)}:ba;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Lf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(t,e,n){if(!e)return t;const i=n&&n.encode||Lf,r=n&&n.serialize;let a;if(r?a=r(e,n):a=y.isURLSearchParams(e)?e.toString():new $r(e,n).toString(i),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class _a{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(i){i!==null&&e(i)})}}const zo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pf=typeof URLSearchParams!="undefined"?URLSearchParams:$r,$f=typeof FormData!="undefined"?FormData:null,Uf=typeof Blob!="undefined"?Blob:null,Vf={isBrowser:!0,classes:{URLSearchParams:Pf,FormData:$f,Blob:Uf},protocols:["http","https","file","blob","url","data"]},Ho=typeof window!="undefined"&&typeof document!="undefined",Mf=(t=>Ho&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator!="undefined"&&navigator.product),jf=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ho,hasStandardBrowserEnv:Mf,hasStandardBrowserWebWorkerEnv:jf},Symbol.toStringTag,{value:"Module"})),ye={...Bf,...Vf};function zf(t,e){return oi(t,new ye.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return ye.isNode&&y.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Hf(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function qf(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function qo(t){function e(n,i,r,a){let s=n[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=a>=n.length;return s=!s&&y.isArray(r)?r.length:s,l?(y.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!o):((!r[s]||!y.isObject(r[s]))&&(r[s]=[]),e(n,i,r[s],a)&&y.isArray(r[s])&&(r[s]=qf(r[s])),!o)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(i,r)=>{e(Hf(i),r,n,0)}),n}return null}function Gf(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const nn={transitional:zo,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=y.isObject(e);if(a&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return r?JSON.stringify(qo(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return zf(e,this.formSerializer).toString();if((o=y.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oi(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),Gf(e)):e}],transformResponse:[function(e){const n=this.transitional||nn.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&y.isString(e)&&(i&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{nn.headers[t]={}});const Kf=y.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"]),Wf=t=>{const e={};let n,i,r;return t&&t.split(`
27
- `).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&Kf[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},Sa=Symbol("internals");function Et(t){return t&&String(t).trim().toLowerCase()}function bn(t){return t===!1||t==null?t:y.isArray(t)?t.map(bn):String(t)}function Jf(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Yf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function xi(t,e,n,i,r){if(y.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!y.isString(e)){if(y.isString(i))return e.indexOf(i)!==-1;if(y.isRegExp(i))return i.test(e)}}function Qf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Xf(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,a,s){return this[i].call(this,e,r,a,s)},configurable:!0})})}class ue{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function a(o,l,u){const c=Et(l);if(!c)throw new Error("header name must be a non-empty string");const d=y.findKey(r,c);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||l]=bn(o))}const s=(o,l)=>y.forEach(o,(u,c)=>a(u,c,l));return y.isPlainObject(e)||e instanceof this.constructor?s(e,n):y.isString(e)&&(e=e.trim())&&!Yf(e)?s(Wf(e),n):e!=null&&a(n,e,i),this}get(e,n){if(e=Et(e),e){const i=y.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Jf(r);if(y.isFunction(n))return n.call(this,r,i);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Et(e),e){const i=y.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||xi(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function a(s){if(s=Et(s),s){const o=y.findKey(i,s);o&&(!n||xi(i,i[o],o,n))&&(delete i[o],r=!0)}}return y.isArray(e)?e.forEach(a):a(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!e||xi(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const n=this,i={};return y.forEach(this,(r,a)=>{const s=y.findKey(i,a);if(s){n[s]=bn(r),delete n[a];return}const o=e?Qf(a):String(a).trim();o!==a&&delete n[a],n[o]=bn(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&y.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
28
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[Sa]=this[Sa]={accessors:{}}).accessors,r=this.prototype;function a(s){const o=Et(s);i[o]||(Xf(r,s),i[o]=!0)}return y.isArray(e)?e.forEach(a):a(e),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ue.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});y.freezeMethods(ue);function Ri(t,e){const n=this||nn,i=e||n,r=ue.from(i.headers);let a=i.data;return y.forEach(t,function(o){a=o.call(n,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function Go(t){return!!(t&&t.__CANCEL__)}function rn(t,e,n){q.call(this,t==null?"canceled":t,q.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(rn,q,{__CANCEL__:!0});function Zf(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const eh=ye.hasStandardBrowserEnv?{write(t,e,n,i,r,a){const s=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),y.isString(i)&&s.push("path="+i),y.isString(r)&&s.push("domain="+r),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function th(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function nh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ko(t,e){return t&&!th(e)?nh(t,e):e}const ih=ye.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(a){let s=a;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(s){const o=y.isString(s)?r(s):s;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}();function rh(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ah(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,a=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[a];s||(s=u),n[r]=l,i[r]=u;let d=a,f=0;for(;d!==r;)f+=n[d++],d=d%t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),u-s<e)return;const v=c&&u-c;return v?Math.round(f*1e3/v):void 0}}function Na(t,e){let n=0;const i=ah(50,250);return r=>{const a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-n,l=i(o),u=a<=s;n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:r};c[e?"download":"upload"]=!0,t(c)}}const sh=typeof XMLHttpRequest!="undefined",oh=sh&&function(t){return new Promise(function(n,i){let r=t.data;const a=ue.from(t.headers).normalize();let{responseType:s,withXSRFToken:o}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;if(y.isFormData(r)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((c=a.getContentType())!==!1){const[m,...N]=c?c.split(";").map(_=>_.trim()).filter(Boolean):[];a.setContentType([m||"multipart/form-data",...N].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",N=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+N))}const f=Ko(t.baseURL,t.url);d.open(t.method.toUpperCase(),Bo(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function v(){if(!d)return;const m=ue.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:t,request:d};Zf(function(M){n(M),u()},function(M){i(M),u()},_),d=null}if("onloadend"in d?d.onloadend=v:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(v)},d.onabort=function(){d&&(i(new q("Request aborted",q.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new q("Network Error",q.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let N=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const _=t.transitional||zo;t.timeoutErrorMessage&&(N=t.timeoutErrorMessage),i(new q(N,_.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,t,d)),d=null},ye.hasStandardBrowserEnv&&(o&&y.isFunction(o)&&(o=o(t)),o||o!==!1&&ih(f))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&eh.read(t.xsrfCookieName);m&&a.set(t.xsrfHeaderName,m)}r===void 0&&a.setContentType(null),"setRequestHeader"in d&&y.forEach(a.toJSON(),function(N,_){d.setRequestHeader(_,N)}),y.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",Na(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Na(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{d&&(i(!m||m.type?new rn(null,t,d):m),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=rh(f);if(p&&ye.protocols.indexOf(p)===-1){i(new q("Unsupported protocol "+p+":",q.ERR_BAD_REQUEST,t));return}d.send(r||null)})},ar={http:Ff,xhr:oh};y.forEach(ar,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ea=t=>`- ${t}`,lh=t=>y.isFunction(t)||t===null||t===!1,Wo={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){n=t[a];let s;if(i=n,!lh(n)&&(i=ar[(s=String(n)).toLowerCase()],i===void 0))throw new q(`Unknown adapter '${s}'`);if(i)break;r[s||"#"+a]=i}if(!i){const a=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?a.length>1?`since :
29
- `+a.map(Ea).join(`
30
- `):" "+Ea(a[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:ar};function Fi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rn(null,t)}function Aa(t){return Fi(t),t.headers=ue.from(t.headers),t.data=Ri.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Wo.getAdapter(t.adapter||nn.adapter)(t).then(function(i){return Fi(t),i.data=Ri.call(t,t.transformResponse,i),i.headers=ue.from(i.headers),i},function(i){return Go(i)||(Fi(t),i&&i.response&&(i.response.data=Ri.call(t,t.transformResponse,i.response),i.response.headers=ue.from(i.response.headers))),Promise.reject(i)})}const Oa=t=>t instanceof ue?{...t}:t;function ft(t,e){e=e||{};const n={};function i(u,c,d){return y.isPlainObject(u)&&y.isPlainObject(c)?y.merge.call({caseless:d},u,c):y.isPlainObject(c)?y.merge({},c):y.isArray(c)?c.slice():c}function r(u,c,d){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u,d)}else return i(u,c,d)}function a(u,c){if(!y.isUndefined(c))return i(void 0,c)}function s(u,c){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,d){if(d in e)return i(u,c);if(d in t)return i(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,c)=>r(Oa(u),Oa(c),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||r,f=d(t[c],e[c],c);y.isUndefined(f)&&d!==o||(n[c]=f)}),n}const Jo="1.6.8",Ur={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ur[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const wa={};Ur.transitional=function(e,n,i){function r(a,s){return"[Axios v"+Jo+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,o)=>{if(e===!1)throw new q(r(s," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!wa[s]&&(wa[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,s,o):!0}};function uh(t,e,n){if(typeof t!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const a=i[r],s=e[a];if(s){const o=t[a],l=o===void 0||s(o,a,t);if(l!==!0)throw new q("option "+a+" must be "+l,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+a,q.ERR_BAD_OPTION)}}const sr={assertOptions:uh,validators:Ur},Ce=sr.validators;class Be{constructor(e){this.defaults=e,this.interceptors={request:new _a,response:new _a}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
31
- `+a):i.stack=a}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ft(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&sr.assertOptions(i,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:sr.assertOptions(r,{encode:Ce.function,serialize:Ce.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&y.merge(a.common,a[n.method]);a&&y.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=ue.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const p=[Aa.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=o.length;let v=n;for(d=0;d<f;){const p=o[d++],m=o[d++];try{v=p(v)}catch(N){m.call(this,N);break}}try{c=Aa.call(this,v)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(e){e=ft(this.defaults,e);const n=Ko(e.baseURL,e.url);return Bo(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){Be.prototype[e]=function(n,i){return this.request(ft(i||{},{method:e,url:n,data:(i||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(i){return function(a,s,o){return this.request(ft(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Be.prototype[e]=n(),Be.prototype[e+"Form"]=n(!0)});class Vr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const s=new Promise(o=>{i.subscribe(o),a=o}).then(r);return s.cancel=function(){i.unsubscribe(a)},s},e(function(a,s,o){i.reason||(i.reason=new rn(a,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Vr(function(r){e=r}),cancel:e}}}function ch(t){return function(n){return t.apply(null,n)}}function dh(t){return y.isObject(t)&&t.isAxiosError===!0}const or={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(or).forEach(([t,e])=>{or[e]=t});function Yo(t){const e=new Be(t),n=xo(Be.prototype.request,e);return y.extend(n,Be.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Yo(ft(t,r))},n}const J=Yo(nn);J.Axios=Be;J.CanceledError=rn;J.CancelToken=Vr;J.isCancel=Go;J.VERSION=Jo;J.toFormData=oi;J.AxiosError=q;J.Cancel=J.CanceledError;J.all=function(e){return Promise.all(e)};J.spread=ch;J.isAxiosError=dh;J.mergeConfig=ft;J.AxiosHeaders=ue;J.formToJSON=t=>qo(y.isHTMLForm(t)?new FormData(t):t);J.getAdapter=Wo.getAdapter;J.HttpStatusCode=or;J.default=J;class fh{constructor(e){w(this,"logger");w(this,"axiosInstance");this.logger=e.logger,this.axiosInstance=J.create({baseURL:e.baseUrl,headers:e.accessToken?{Authorization:`Bearer ${e.accessToken}`}:{}})}async get(e){try{return(await this.axiosInstance.get(e)).data}catch(n){throw this.handleError(n)}}async post(e,n){var a;const{data:i={},ignoreError:r=!1}=n;try{return(await this.axiosInstance.post(e,i)).data}catch(s){if(r&&J.isAxiosError(s))return(a=s.response)==null?void 0:a.data;throw this.handleError(s)}}async put(e,n){var a;const{data:i={},ignoreError:r=!1}=n;try{return(await this.axiosInstance.put(e,i)).data}catch(s){if(r&&J.isAxiosError(s))return(a=s.response)==null?void 0:a.data;throw this.handleError(s)}}async delete(e){try{return(await this.axiosInstance.delete(e)).data}catch(n){throw this.handleError(n)}}handleError(e){var r;let n=ne.GENERAL_ERROR;if(J.isAxiosError(e))if(e.response)switch(e.response.status){case 400:n=ne.BAD_REQUEST;break;case 401:n=ne.UNAUTHORIZED;break;case 403:n=ne.FORBIDDEN;break;case 404:n=ne.NOT_FOUND;break;case 409:n=ne.CONFLICT;break;case 410:n=ne.GONE;break;case 415:n=ne.UNSUPPORTED_MEDIA_TYPE;break;case 429:n=ne.TOO_MANY_REQUESTS;break;case 500:n=ne.INTERNAL_SERVER_ERROR;break;case 503:n=ne.SERVICE_UNAVAILABLE;break;default:n=ne.SERVER_ERROR}else e.request?n=ne.NETWORK_ERROR:n=ne.CONFIG_ERROR;const i=Zo(n);return this.logger.error("Error Code:",n,"Message:",i),this.logger.error("Result Data:",(r=e.response)==null?void 0:r.data),new Error(i)}}const hh={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Pn{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||hh,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Pn(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Pn(this.logger,e)}}var be=new Pn;class li{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o.apply(o,[e,...i])})}}function At(){let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n}function Ta(t){return t==null?"":""+t}function ph(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}const mh=/###/g;function Ft(t,e,n){function i(o){return o&&o.indexOf("###")>-1?o.replace(mh,"."):o}function r(){return!t||typeof t=="string"}const a=typeof e!="string"?e:e.split(".");let s=0;for(;s<a.length-1;){if(r())return{};const o=i(a[s]);!t[o]&&n&&(t[o]=new n),Object.prototype.hasOwnProperty.call(t,o)?t=t[o]:t={},++s}return r()?{}:{obj:t,k:i(a[s])}}function Ca(t,e,n){const{obj:i,k:r}=Ft(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=Ft(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=Ft(t,s,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]!="undefined"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function gh(t,e,n,i){const{obj:r,k:a}=Ft(t,e,Object);r[a]=r[a]||[],r[a].push(n)}function $n(t,e){const{obj:n,k:i}=Ft(t,e);if(n)return n[i]}function vh(t,e,n){const i=$n(t,n);return i!==void 0?i:$n(e,n)}function Qo(t,e,n){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?typeof t[i]=="string"||t[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?n&&(t[i]=e[i]):Qo(t[i],e[i],n):t[i]=e[i]);return t}function tt(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var kh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function yh(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>kh[e]):t}class bh{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const _h=[" ",",","?","!",";"],Sh=new bh(20);function Nh(t,e,n){e=e||"",n=n||"";const i=_h.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=Sh.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a}function lr(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,o="";for(let l=a;l<i.length;++l)if(l!==a&&(o+=n),o+=i[l],s=r[o],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}r=s}return r}function Un(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class xa extends li{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):typeof i=="string"&&a?o.push(...i.split(a)):o.push(i)));const l=$n(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||typeof i!="string"?l:lr(this.data&&this.data[e]&&this.data[e][n],i,a)}addResource(e,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),Ca(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in i)(typeof i[a]=="string"||Object.prototype.toString.apply(i[a])==="[object Array]")&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=$n(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?Qo(l,i,a):l={...l,...i},Ca(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var Xo={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,i,r))}),e}};const Ra={};class Vn extends li{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ph(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=be.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,n);return i&&i.res!==void 0}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Nh(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:a};const u=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(r)}return typeof a=="string"&&(a=[a]),{key:e,namespaces:a}}translate(e,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],n),l=o[o.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const T=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${T}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${T}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let f=d&&d.res;const v=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),N=["[object Number]","[object Function]","[object RegExp]"],_=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject;if(I&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&N.indexOf(m)<0&&!(typeof _=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...n,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=T,d.usedParams=this.getUsedParamsDetails(n),d):T}if(a){const T=m==="[object Array]",L=T?[]:{},$=T?p:v;for(const H in f)if(Object.prototype.hasOwnProperty.call(f,H)){const k=`${$}${a}${H}`;L[H]=this.translate(k,{...n,joinArrays:!1,ns:o}),L[H]===k&&(L[H]=f[H])}f=L}}else if(I&&typeof _=="string"&&m==="[object Array]")f=f.join(_),f&&(f=this.extendTranslation(f,e,n,i));else{let T=!1,L=!1;const $=n.count!==void 0&&typeof n.count!="string",H=Vn.hasDefaultValue(n),k=$?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",R=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),S=R&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(f)&&H&&(T=!0,f=S),this.isValidLookup(f)||(L=!0,f=s);const A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:f,h=H&&S!==f&&this.options.updateMissing;if(L||T||h){if(this.logger.log(h?"updateKey":"missingKey",u,l,s,h?S:f),a){const P=this.resolve(s,{...n,keySeparator:!1});P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let g=[];const x=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&x&&x[0])for(let P=0;P<x.length;P++)g.push(x[P]);else this.options.saveMissingTo==="all"?g=this.languageUtils.toResolveHierarchy(n.lng||this.language):g.push(n.lng||this.language);const D=(P,j,ge)=>{const Te=H&&ge!==f?ge:A;this.options.missingKeyHandler?this.options.missingKeyHandler(P,l,j,Te,h,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(P,l,j,Te,h,n),this.emit("missingKey",P,l,j,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?g.forEach(P=>{const j=this.pluralResolver.getSuffixes(P,n);R&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(ge=>{D([P],s+ge,n[`defaultValue${ge}`]||S)})}):D(g,s,S))}f=this.extendTranslation(f,e,n,d,i),L&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(L||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,T?f:void 0):f=this.options.parseMissingKeyHandler(f))}return r?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const u=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,i.lng||this.language,i),u){const f=e.match(this.interpolator.nestingRegexp),v=f&&f.length;c<v&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var f=arguments.length,v=new Array(f),p=0;p<f;p++)v[p]=arguments[p];return a&&a[0]===v[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):s.translate(...v,n)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,l=typeof o=="string"?[o]:o;return e!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(e=Xo.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,o;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const u=this.extractFromKey(l,n),c=u.key;r=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",v=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(N=>{this.isValidLookup(i)||(o=N,!Ra[`${m[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Ra[`${m[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(_=>{if(this.isValidLookup(i))return;s=_;const I=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,c,_,N,n);else{let T;f&&(T=this.pluralResolver.getSuffix(_,n.count,n));const L=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(I.push(c+T),n.ordinal&&T.indexOf($)===0&&I.push(c+T.replace($,this.options.pluralSeparator)),v&&I.push(c+L)),p){const H=`${c}${this.options.contextSeparator}${n.context}`;I.push(H),f&&(I.push(H+T),n.ordinal&&T.indexOf($)===0&&I.push(H+T.replace($,this.options.pluralSeparator)),v&&I.push(H+L))}}let M;for(;M=I.pop();)this.isValidLookup(i)||(a=M,i=this.getResource(_,N,M,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let r=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}function Ii(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Fa{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=be.create("languageUtils")}getScriptPartFromCode(e){if(e=Un(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Un(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ii(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ii(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ii(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}let Eh=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ah={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const Oh=["v1","v2","v3"],wh=["v4"],Ia={zero:0,one:1,two:2,few:3,many:4,other:5};function Th(){const t={};return Eh.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:Ah[e.fc]}})}),t}class Ch{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=be.create("pluralResolver"),(!this.options.compatibilityJSON||wh.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Th()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Un(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>Ia[r]-Ia[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const a=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Oh.includes(this.options.compatibilityJSON)}}function Da(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=vh(t,e,n);return!a&&r&&typeof n=="string"&&(a=lr(t,n,i),a===void 0&&(a=lr(e,n,i))),a}class xh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=be.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const n=e.interpolation;this.escape=n.escape!==void 0?n.escape:yh,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?tt(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?tt(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?tt(n.nestingPrefix):n.nestingPrefixEscaped||tt("$t("),this.nestingSuffix=n.nestingSuffix?tt(n.nestingSuffix):n.nestingSuffixEscaped||tt(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const I=Da(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,i,{...r,...n,interpolationkey:p}):I}const m=p.split(this.formatSeparator),N=m.shift().trim(),_=m.join(this.formatSeparator).trim();return this.format(Da(n,l,N,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...r,...n,interpolationkey:N})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(o=0;a=p.regex.exec(e);){const m=a[1].trim();if(s=c(m),s===void 0)if(typeof d=="function"){const _=d(e,a,r);s=typeof _=="string"?_:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Ta(s));const N=p.safeValue(s);if(e=e.replace(a[0],N),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s;function o(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),p=f.match(/"/g);(v&&v.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=c.shift(),l=c,u=!0}if(a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&typeof a!="string")return a;typeof a!="string"&&(a=Ta(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),u&&(a=l.reduce((c,d)=>this.format(c,d,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}function Rh(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(!s)return;const[o,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=u),u==="false"&&(n[o.trim()]=!1),u==="true"&&(n[o.trim()]=!0),isNaN(u)||(n[o.trim()]=parseInt(u,10))})}return{formatName:e,formatOptions:n}}function nt(t){const e={};return function(i,r,a){const s=r+JSON.stringify(a);let o=e[s];return o||(o=t(Un(r),a),e[s]=o),o(i)}}class Fh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=be.create("formatter"),this.options=e,this.formats={number:nt((n,i)=>{const r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:nt((n,i)=>{const r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:nt((n,i)=>{const r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:nt((n,i)=>{const r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:nt((n,i)=>{const r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=nt(n)}format(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((o,l)=>{const{formatName:u,formatOptions:c}=Rh(l);if(this.formats[u]){let d=o;try{const f=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},v=f.locale||f.lng||r.locale||r.lng||i;d=this.formats[u](o,v,{...c,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}function Ih(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class Dh extends li{constructor(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=be.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(e,n,i,r){const a={},s={},o={},l={};return e.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!i.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),a[f]===void 0&&(a[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(o[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const o={};this.queue.forEach(l=>{gh(l.loaded,[a],s),Ih(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{o[u][d]===void 0&&(o[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(u,c)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,n,o)}prepareLoading(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,i,r,l):c=u(e,n,i,r),c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}else u(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}function La(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Pa(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function dn(){}function Lh(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class zt extends li{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Pa(e),this.services={},this.logger=be,this.modules={external:[]},Lh(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=La();this.options={...r,...this.options,...Pa(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?be.init(a(this.modules.logger),this.options):be.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=Fh);const d=new Fa(this.options);this.store=new xa(this.options.resources,this.options);const f=this.services;f.logger=be,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Ch(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=a(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new xh(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Dh(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var p=arguments.length,m=new Array(p>1?p-1:0),N=1;N<p;N++)m[N-1]=arguments[N];e.emit(v,...m)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Vn(this.services,this.options),this.translator.on("*",function(v){for(var p=arguments.length,m=new Array(p>1?p-1:0),N=1;N<p;N++)m[N-1]=arguments[N];e.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,i||(i=dn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=At(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),i(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dn;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=At();return e||(e=this.languages),n||(n=this.options.ns),i||(i=dn),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Xo.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,n){var i=this;this.isLanguageChangingTo=e;const r=At();this.emit("languageChanging",e);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,i){var r=this;const a=function(s,o){let l;if(typeof o!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,o].concat(c))}else l={...o};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix=l.keyPrefix||i||a.keyPrefix;const f=r.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(p=>`${l.keyPrefix}${f}${p}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,r.t(v,l)};return typeof e=="string"?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=At();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=At();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Fa(La());return n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new zt(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dn;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new zt(r);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new xa(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Vn(a.services,r),a.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];a.emit(o,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const te=zt.createInstance();te.createInstance=zt.createInstance;te.createInstance;te.dir;te.init;te.loadResources;te.reloadResources;te.use;te.changeLanguage;te.getFixedT;const $a=te.t;te.exists;te.setDefaultNamespace;te.hasLoadedNamespace;te.loadNamespaces;te.loadLanguages;const Zo=t=>$a(t?`errorCodes.${t}`:"errorCodes.DEFAULT");var Mr=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(Mr||{}),el=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(el||{}),jr=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(jr||{}),tl=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(tl||{}),nl=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(nl||{}),il=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(il||{});class ui{constructor(e){w(this,"root",Lr(this));w(this,"id");w(this,"account");w(this,"accountType",Mr.UNKNOWN);w(this,"username");w(this,"currencyConfig");w(this,"contractType");w(this,"nextDateMetricRecord");w(this,"spendedMinutes",0);w(this,"unlimitedService",!1);w(this,"hoursAvailable",0);w(this,"contractStatus",jr.ACTIVE);w(this,"createdAt");w(this,"installationDateApp");w(this,"cxAccount");w(this,"freeService",!1);w(this,"subscriptionType",null);w(this,"minutesAvailable",0);w(this,"globalPage");w(this,"stripe");w(this,"descriptionPlan");w(this,"planType");w(this,"selectFreeTrial");w(this,"exceededFeatures");w(this,"host",null);w(this,"variationThumbnailName");w(this,"variationsConfig");this.root.setProps(e)}static toDomain(e){const{createdAt:n,username:i,...r}=e,a={...r,username:i!=null?i:r.account,createdAt:new Date(Number(n))};return new ui(a)}toPrimitives(){const{root:e,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const Ph=`${yr.apiUrls.restV1}/accounts/v2`;class rl{async get(e){const n=`${Ph}/${e}`,{data:i}=await Dr({url:n});return i?ui.toDomain(i):null}}class al{constructor(e){this.accountRepository=e}async get(e){try{const n=await this.accountRepository.get(e);if(!n)throw new No(e);return n}catch(n){throw new Fr(n)}}}const $h=new rl,Br=new al($h),Uh=()=>["account"],Vh=()=>{const t=Ir(r=>r.accountName),[e,n]=pn(qn),i=gs.useQuery(Uh(),()=>Br.get(t),{enabled:!!t&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return B.useEffect(()=>{const r=i.data;!i.isSuccess||!r||n(r)},[i.status]),{findQuery:i,account:e}},sl=fu();async function ol(t){const e=await Br.get(t);return sl.set(qn,e),e}var ll=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(ll||{});const Mh={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},ul={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var cl=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(cl||{}),dl=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(dl||{}),fl=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(fl||{});const jh=4;var hl=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(hl||{}),pl=(t=>(t.Add="add",t.Remove="remove",t))(pl||{}),ml=(t=>(t.Active="active",t.Inactive="inactive",t))(ml||{});const Bh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},zh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Hh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},qh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Gh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Kh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Wh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Jh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Yh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Qh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Xh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Zh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ep={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},gl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},tp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},np={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ip={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},rp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ap={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},sp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AddToCartSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},op={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},lp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},up={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},cp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},dp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},fp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},hp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},pp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},mp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},gp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},vp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},kp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},yp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},bp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},_p=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Bh,AppendProductsToSnackVideoDocument:lp,BlockUserDocument:Qh,ChangeAccountUsernameDocument:Xh,CreatePlayListDocument:up,CreateSnackVideoBatchDocument:cp,DeleteAllCustomizationDocument:ip,DeleteChatMessageDocument:Zh,DeleteCollectionDocument:zh,DeleteRelationshipWithSnackVideoDocument:dp,DeleteSnackVideoDocument:fp,EventStatus:hl,FindByProductSnackVideoDocument:yp,FindCollectionDocument:Hh,FindManySnackVideosDocument:hp,FindMinimalEventDocument:Jh,GetAllChatMessageDocument:ep,GetAllCollectionsDocument:qh,GetAllCustomizationDocument:rp,GetAllSnackVideosDocument:pp,GetChatRoomTokenDocument:gl,GetPlayListDocument:bp,GetPlayListsDocument:mp,GetSnackVideoRelationshipsDocument:gp,GetTimeLineDocument:op,HighlightProductDocument:np,ManageCollectionProductDocument:Gh,Methods:pl,PinChatMessageDocument:tp,SearchCollectionsDocument:Kh,SearchMinimalEventsDocument:Yh,SearchSnackVideosDocument:vp,SendAddToCartDocument:sp,Status:ml,UpdateCollectionDocument:Wh,UpdateCustomizationDocument:ap,UpdatePlayListDocument:kp},Symbol.toStringTag,{value:"Module"}));var ci=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(ci||{});function Sp(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var Xe=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.External="external",t))(Xe||{}),zr=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(zr||{});const{coreLogger:Np}=Qe(),ur=Ue.withPrefix(Np,"addToCartHooks"),Di="addToCartHooks.notification.error",cr={errorAddingToCart:Di,errorOpeningVariationSelector:Di,errorOpeningNewTab:Di,successAddingToCart:"addToCartHooks.notification.success"};async function Ep(t){const e={...t,action:{type:ci.ADD_TO_CART,exec:()=>ur.error("action no implemented in validate hook")}};try{const n=await Ap(e),i=await Op(n);await wp(i)}catch(n){ur.error("error unhandled",n)}}async function Ap(t){var a,s;const{context:e,userAddToCartConfig:n}=t,i=(a=n==null?void 0:n.hooks)==null?void 0:a.transform;let r=t.product;if(i)try{r=await i({product:{...r},data:(s=e.data)!=null?s:{}})}catch(o){Mn("transform",o)}return{...t,product:r}}async function Op(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,a=vl(t),s=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let o=n.validate({...t,actionFactory:a});if(s)try{o=await s({product:{...r},defaultAction:{...o},action:a,data:(u=e.data)!=null?u:{}})}catch(c){Mn("validate",c)}return{...t,action:o,actionFactory:a}}async function wp(t){var N;const{eventBus:e}=Qe(),{product:n,userAddToCartConfig:i,notifyFactory:r,action:a,actionFactory:s}=t,{isVariationSelectorOpen:o,data:l={}}=t.context,u=(N=i==null?void 0:i.hooks)==null?void 0:N.end,c=a.type===ci.ADD_TO_CART;let d=null,f=!1;const v=()=>{!c||!o||s.openVariationSelector(!1).exec()},p=()=>{!c||f||(d?r.error(cr.errorAddingToCart):r.success(cr.successAddingToCart))},m=()=>{const _={product:n,actionType:a.type,success:!d,error:d};e.emit(ul.ATCH_ACTION_EXECUTED,_)};try{if(!a.type||!a.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await a.exec()}catch(_){Mn("end",_),d=_}if(u)try{f=!!await u({data:l,error:d,notify:r,actionExecuted:a})}catch(_){Mn("end",_)}v(),p(),m()}function vl(t){const{actionFactory:e,userAddToCartConfig:n}=t,i=r=>Object.entries(r!=null?r:{}).reduce((a,[s,o])=>({...a,[s]:l=>({type:s,exec:()=>o(l)})}),{});return{...i(e),...i(n==null?void 0:n.actionFactory)}}function Mn(t,e){ur.error(`addToCartHooks error running ${t}: `,e)}function kl(t){const e=Object.values(t);return Object.assign({},...e)}function yl(t){return Object.entries(t).reduce((e,[n,i])=>{const r=kl(i);return{...e,[n]:r}},{})}function bl(t,e){const n=yl(e);Object.entries(n).forEach(([i,r])=>{t.addResourceBundle(i,"translation",r,!0)})}function Tp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Cp(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Ht(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function xp(t){var e=Cp(t,"string");return Ht(e)=="symbol"?e:e+""}function Rp(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,xp(i.key),i)}}function Fp(t,e,n){return e&&Rp(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var _l=[],Ip=_l.forEach,Dp=_l.slice;function Lp(t){return Ip.call(Dp.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Ua=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Pp=function(e,n,i){var r=i||{};r.path=r.path||"/";var a=encodeURIComponent(n),s="".concat(e,"=").concat(a);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!Ua.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(r.domain)}if(r.path){if(!Ua.test(r.path))throw new TypeError("option path is invalid");s+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},Va={create:function(e,n,i,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),r&&(a.domain=r),document.cookie=Pp(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),r=0;r<i.length;r++){for(var a=i[r];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},$p={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document!="undefined"){var i=Va.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document!="undefined"&&Va.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Up={name:"querystring",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=i.substring(1),a=r.split("&"),s=0;s<a.length;s++){var o=a[s].indexOf("=");if(o>0){var l=a[s].substring(0,o);l===e.lookupQuerystring&&(n=a[s].substring(o+1))}}}return n}},Ot=null,Ma=function(){if(Ot!==null)return Ot;try{Ot=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ot=!1}return Ot},Vp={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Ma()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Ma()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},wt=null,ja=function(){if(wt!==null)return wt;try{wt=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{wt=!1}return wt},Mp={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&ja()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&ja()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},jp={name:"navigator",lookup:function(e){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Bp={name:"htmlTag",lookup:function(e){var n,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},zp={name:"path",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;n=i[e.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},Hp={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function qp(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var Sl=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tp(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Fp(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Lp(i,this.options||{},qp()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector($p),this.addDetector(Up),this.addDetector(Vp),this.addDetector(Mp),this.addDetector(jp),this.addDetector(Bp),this.addDetector(zp),this.addDetector(Hp)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var r=[];return n.forEach(function(a){if(i.detectors[a]){var s=i.detectors[a].lookup(i.options);s&&typeof s=="string"&&(s=[s]),s&&(r=r.concat(s))}}),r=r.map(function(a){return i.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var r=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(a){r.detectors[a]&&r.detectors[a].cacheUserLanguage(n,r.options)}))}}]),t}();Sl.type="languageDetector";function Nl(t,e){t.use(e).use(Sl).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,i,r)=>{if(i){const[a,...s]=i.split(",").map(o=>o.trim());if(a==="number")return new Intl.NumberFormat(r).format(n);if(a==="date")return new Intl.DateTimeFormat(r).format(n);if(a==="currency")return new Intl.NumberFormat(r,{style:"currency",currency:s[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}})}const Gp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Kp={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Wp=t=>Kp[t],Jp=t=>t.replace(Gp,Wp);let Ba={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Jp};function Yp(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ba={...Ba,...t}}const Qp={type:"3rdParty",init(t){Yp(t.options.react)}};Nl(te,Qp);const Xp=t=>bl(te,t);/**
26
+ `)}}function Id(t,e){e.forEach(n=>{if(xd(Fd(n.split("."),t)))throw new wo(n)})}if(!B.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!oo)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Dd(t){t()}function Ld(t){t||(t=Dd),Jc({reactionScheduler:t})}function Pd(t){return Qc(t)}var $d=1e4,Ud=1e4,Vd=function(){function t(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=$d),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var r=Date.now();n.registrations.forEach(function(a,s){r-a.registeredAt>=i&&(n.finalize(a.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(t.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(t.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(t.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Ud))}}),t}(),Md=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:Vd,ir=new Md(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),va=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,a=[],s;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a};function ka(t){return"observer".concat(t)}var jd=function(){function t(){}return t}();function Bd(){return new jd}function zd(t,e){e===void 0&&(e="observed");var n=va(B.useState(Bd),1),i=n[0],r=va(B.useState(),2),a=r[1],s=function(){return a([])},o=B.useRef(null);o.current||(o.current={reaction:null,mounted:!1,changedBeforeMount:!1});var l=o.current;l.reaction||(l.reaction=new Ut(ka(e),function(){l.mounted?s():l.changedBeforeMount=!0}),ir.register(i,l,l)),B.useDebugValue(l.reaction,Pd),B.useEffect(function(){return ir.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,s()):(l.reaction=new Ut(ka(e),function(){s()}),s()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}},[]);var u,c;if(l.reaction.track(function(){try{u=t()}catch(d){c=d}}),c)throw c;return u}var To=typeof Symbol=="function"&&Symbol.for;To?Symbol.for("react.forward_ref"):typeof B.forwardRef=="function"&&B.forwardRef(function(t){return null}).$$typeof;To?Symbol.for("react.memo"):typeof B.memo=="function"&&B.memo(function(t){return null}).$$typeof;var Ci;Ld(vs.unstable_batchedUpdates);Ci=ir.finalizeAllImmediately;function Hd(t,e){return e===void 0&&(e="observed"),zd(t,e)}function Co(){return B.useMemo(Xe,[])}function Dr(t){const e=Co();return Hd(()=>t(e))}const{coreLogger:qd}=Xe(),Gd=Ue.withPrefix(qd,"CustomFetch");async function Lr(t){const{url:e,method:n="GET",body:i,raw:r=!1,contentTypeJson:a=!0,timeout:s,...o}=t,l=a&&!t.headers?new Headers({"content-type":"application/json"}):t.headers;try{const u=new AbortController,{signal:c}=u;let d;const f=fetch(e,{method:n,headers:l,body:i,signal:c,...o});s&&(d=setTimeout(()=>{u.abort()},s));const v=await f;if(r)return v;const p=await v.json();if(clearTimeout(d),!v.ok){const m=p?JSON.stringify(p):v.statusText;throw new Error(m)}return p}catch(u){throw Gd.error(u),u}}const Kd=t=>Lr({...t,contentTypeJson:!1,raw:!1});function Wd(t,e,n){fetch(e).then(i=>i.blob()).then(i=>xo(i,`${t}.${n}`))}const xo=(t,e,n)=>{const i=[t],r=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,e);const a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),s=document.createElement("a");return s.style.display="none",s.href=a,s.setAttribute("download",e),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(()=>{document.body.removeChild(s),window.URL.revokeObjectURL(a)},200)},{coreLogger:Jd}=Xe(),Yd=Ue.withPrefix(Jd,"getClientTimeZone");function Qd(){var i,r,a;let t=null,e=null,n=null;try{t=(a=(r=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:r.timeZone)!=null?a:null;const s=-new Date().getTimezoneOffset();n=s;const o=s>=0?"+":"-",l=String(Math.floor(Math.abs(s)/60)).padStart(2,"0"),u=String(Math.abs(s)%60).padStart(2,"0");e=`${o}${l}:${u}`}catch{Yd.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}class Ro{constructor(e){w(this,"aggregate");w(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,i]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Pr(t){return new Ro(t)}class Xd{constructor(e){w(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var ne=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(ne||{});function Fo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Zd}=Object.prototype,{getPrototypeOf:$r}=Object,ai=(t=>e=>{const n=Zd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ee=t=>(t=t.toLowerCase(),e=>ai(e)===t),si=t=>e=>typeof e===t,{isArray:bt}=Array,Bt=si("undefined");function ef(t){return t!==null&&!Bt(t)&&t.constructor!==null&&!Bt(t.constructor)&&le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Io=Ee("ArrayBuffer");function tf(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Io(t.buffer),e}const nf=si("string"),le=si("function"),Do=si("number"),oi=t=>t!==null&&typeof t=="object",rf=t=>t===!0||t===!1,bn=t=>{if(ai(t)!=="object")return!1;const e=$r(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},af=Ee("Date"),sf=Ee("File"),of=Ee("Blob"),lf=Ee("FileList"),uf=t=>oi(t)&&le(t.pipe),cf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||le(t.append)&&((e=ai(t))==="formdata"||e==="object"&&le(t.toString)&&t.toString()==="[object FormData]"))},df=Ee("URLSearchParams"),ff=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),bt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;let o;for(i=0;i<s;i++)o=a[i],e.call(null,t[o],o,t)}}function Lo(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Po=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,$o=t=>!Bt(t)&&t!==Po;function rr(){const{caseless:t}=$o(this)&&this||{},e={},n=(i,r)=>{const a=t&&Lo(e,r)||r;bn(e[a])&&bn(i)?e[a]=rr(e[a],i):bn(i)?e[a]=rr({},i):bt(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&tn(arguments[i],n);return e}const hf=(t,e,n,{allOwnKeys:i}={})=>(tn(e,(r,a)=>{n&&le(r)?t[a]=Fo(r,n):t[a]=r},{allOwnKeys:i}),t),pf=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mf=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},gf=(t,e,n,i)=>{let r,a,s;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)s=r[a],(!i||i(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=n!==!1&&$r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},vf=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},kf=t=>{if(!t)return null;if(bt(t))return t;let e=t.length;if(!Do(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},yf=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&$r(Uint8Array)),bf=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const a=r.value;e.call(t,a[0],a[1])}},_f=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Sf=Ee("HTMLFormElement"),Nf=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),ya=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ef=Ee("RegExp"),Uo=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};tn(n,(r,a)=>{let s;(s=e(r,a,t))!==!1&&(i[a]=s||r)}),Object.defineProperties(t,i)},Af=t=>{Uo(t,(e,n)=>{if(le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(le(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Of=(t,e)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return bt(t)?i(t):i(String(t).split(e)),n},wf=()=>{},Tf=(t,e)=>(t=+t,Number.isFinite(t)?t:e),xi="abcdefghijklmnopqrstuvwxyz",ba="0123456789",Vo={DIGIT:ba,ALPHA:xi,ALPHA_DIGIT:xi+xi.toUpperCase()+ba},Cf=(t=16,e=Vo.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xf(t){return!!(t&&le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rf=t=>{const e=new Array(10),n=(i,r)=>{if(oi(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=bt(i)?[]:{};return tn(i,(s,o)=>{const l=n(s,r+1);!Bt(l)&&(a[o]=l)}),e[r]=void 0,a}}return i};return n(t,0)},Ff=Ee("AsyncFunction"),If=t=>t&&(oi(t)||le(t))&&le(t.then)&&le(t.catch),y={isArray:bt,isArrayBuffer:Io,isBuffer:ef,isFormData:cf,isArrayBufferView:tf,isString:nf,isNumber:Do,isBoolean:rf,isObject:oi,isPlainObject:bn,isUndefined:Bt,isDate:af,isFile:sf,isBlob:of,isRegExp:Ef,isFunction:le,isStream:uf,isURLSearchParams:df,isTypedArray:yf,isFileList:lf,forEach:tn,merge:rr,extend:hf,trim:ff,stripBOM:pf,inherits:mf,toFlatObject:gf,kindOf:ai,kindOfTest:Ee,endsWith:vf,toArray:kf,forEachEntry:bf,matchAll:_f,isHTMLForm:Sf,hasOwnProperty:ya,hasOwnProp:ya,reduceDescriptors:Uo,freezeMethods:Af,toObjectSet:Of,toCamelCase:Nf,noop:wf,toFiniteNumber:Tf,findKey:Lo,global:Po,isContextDefined:$o,ALPHABET:Vo,generateString:Cf,isSpecCompliantForm:xf,toJSONObject:Rf,isAsyncFn:Ff,isThenable:If};function q(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}y.inherits(q,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Mo=q.prototype,jo={};["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(t=>{jo[t]={value:t}});Object.defineProperties(q,jo);Object.defineProperty(Mo,"isAxiosError",{value:!0});q.from=(t,e,n,i,r,a)=>{const s=Object.create(Mo);return y.toFlatObject(t,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),q.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,a&&Object.assign(s,a),s};const Df=null;function ar(t){return y.isPlainObject(t)||y.isArray(t)}function Bo(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function _a(t,e,n){return t?t.concat(e).map(function(r,a){return r=Bo(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function Lf(t){return y.isArray(t)&&!t.some(ar)}const Pf=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function li(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,N){return!y.isUndefined(N[m])});const i=n.metaTokens,r=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(y.isDate(p))return p.toISOString();if(!l&&y.isBlob(p))throw new q("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(p)||y.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,N){let _=p;if(p&&!N&&typeof p=="object"){if(y.endsWith(m,"{}"))m=i?m:m.slice(0,-2),p=JSON.stringify(p);else if(y.isArray(p)&&Lf(p)||(y.isFileList(p)||y.endsWith(m,"[]"))&&(_=y.toArray(p)))return m=Bo(m),_.forEach(function(M,T){!(y.isUndefined(M)||M===null)&&e.append(s===!0?_a([m],T,a):s===null?m:m+"[]",u(M))}),!1}return ar(p)?!0:(e.append(_a(N,m,a),u(p)),!1)}const d=[],f=Object.assign(Pf,{defaultVisitor:c,convertValue:u,isVisitable:ar});function v(p,m){if(!y.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),y.forEach(p,function(_,I){(!(y.isUndefined(_)||_===null)&&r.call(e,_,y.isString(I)?I.trim():I,m,f))===!0&&v(_,m?m.concat(I):[I])}),d.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return v(t),e}function Sa(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Ur(t,e){this._pairs=[],t&&li(t,this,e)}const zo=Ur.prototype;zo.append=function(e,n){this._pairs.push([e,n])};zo.toString=function(e){const n=e?function(i){return e.call(this,i,Sa)}:Sa;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function $f(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ho(t,e,n){if(!e)return t;const i=n&&n.encode||$f,r=n&&n.serialize;let a;if(r?a=r(e,n):a=y.isURLSearchParams(e)?e.toString():new Ur(e,n).toString(i),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Na{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(i){i!==null&&e(i)})}}const qo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uf=typeof URLSearchParams!="undefined"?URLSearchParams:Ur,Vf=typeof FormData!="undefined"?FormData:null,Mf=typeof Blob!="undefined"?Blob:null,jf={isBrowser:!0,classes:{URLSearchParams:Uf,FormData:Vf,Blob:Mf},protocols:["http","https","file","blob","url","data"]},Go=typeof window!="undefined"&&typeof document!="undefined",Bf=(t=>Go&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator!="undefined"&&navigator.product),zf=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Go,hasStandardBrowserEnv:Bf,hasStandardBrowserWebWorkerEnv:zf},Symbol.toStringTag,{value:"Module"})),ye={...Hf,...jf};function qf(t,e){return li(t,new ye.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return ye.isNode&&y.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Gf(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Kf(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function Ko(t){function e(n,i,r,a){let s=n[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=a>=n.length;return s=!s&&y.isArray(r)?r.length:s,l?(y.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!o):((!r[s]||!y.isObject(r[s]))&&(r[s]=[]),e(n,i,r[s],a)&&y.isArray(r[s])&&(r[s]=Kf(r[s])),!o)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(i,r)=>{e(Gf(i),r,n,0)}),n}return null}function Wf(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const nn={transitional:qo,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=y.isObject(e);if(a&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return r?JSON.stringify(Ko(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return qf(e,this.formSerializer).toString();if((o=y.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return li(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),Wf(e)):e}],transformResponse:[function(e){const n=this.transitional||nn.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&y.isString(e)&&(i&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{nn.headers[t]={}});const Jf=y.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"]),Yf=t=>{const e={};let n,i,r;return t&&t.split(`
27
+ `).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&Jf[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},Ea=Symbol("internals");function Et(t){return t&&String(t).trim().toLowerCase()}function _n(t){return t===!1||t==null?t:y.isArray(t)?t.map(_n):String(t)}function Qf(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Xf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ri(t,e,n,i,r){if(y.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!y.isString(e)){if(y.isString(i))return e.indexOf(i)!==-1;if(y.isRegExp(i))return i.test(e)}}function Zf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function eh(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,a,s){return this[i].call(this,e,r,a,s)},configurable:!0})})}class ue{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function a(o,l,u){const c=Et(l);if(!c)throw new Error("header name must be a non-empty string");const d=y.findKey(r,c);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||l]=_n(o))}const s=(o,l)=>y.forEach(o,(u,c)=>a(u,c,l));return y.isPlainObject(e)||e instanceof this.constructor?s(e,n):y.isString(e)&&(e=e.trim())&&!Xf(e)?s(Yf(e),n):e!=null&&a(n,e,i),this}get(e,n){if(e=Et(e),e){const i=y.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Qf(r);if(y.isFunction(n))return n.call(this,r,i);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Et(e),e){const i=y.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Ri(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function a(s){if(s=Et(s),s){const o=y.findKey(i,s);o&&(!n||Ri(i,i[o],o,n))&&(delete i[o],r=!0)}}return y.isArray(e)?e.forEach(a):a(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!e||Ri(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const n=this,i={};return y.forEach(this,(r,a)=>{const s=y.findKey(i,a);if(s){n[s]=_n(r),delete n[a];return}const o=e?Zf(a):String(a).trim();o!==a&&delete n[a],n[o]=_n(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&y.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
28
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[Ea]=this[Ea]={accessors:{}}).accessors,r=this.prototype;function a(s){const o=Et(s);i[o]||(eh(r,s),i[o]=!0)}return y.isArray(e)?e.forEach(a):a(e),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ue.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});y.freezeMethods(ue);function Fi(t,e){const n=this||nn,i=e||n,r=ue.from(i.headers);let a=i.data;return y.forEach(t,function(o){a=o.call(n,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function Wo(t){return!!(t&&t.__CANCEL__)}function rn(t,e,n){q.call(this,t==null?"canceled":t,q.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(rn,q,{__CANCEL__:!0});function th(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const nh=ye.hasStandardBrowserEnv?{write(t,e,n,i,r,a){const s=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),y.isString(i)&&s.push("path="+i),y.isString(r)&&s.push("domain="+r),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ih(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function rh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Jo(t,e){return t&&!ih(e)?rh(t,e):e}const ah=ye.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(a){let s=a;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(s){const o=y.isString(s)?r(s):s;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}();function sh(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function oh(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,a=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[a];s||(s=u),n[r]=l,i[r]=u;let d=a,f=0;for(;d!==r;)f+=n[d++],d=d%t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),u-s<e)return;const v=c&&u-c;return v?Math.round(f*1e3/v):void 0}}function Aa(t,e){let n=0;const i=oh(50,250);return r=>{const a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-n,l=i(o),u=a<=s;n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:r};c[e?"download":"upload"]=!0,t(c)}}const lh=typeof XMLHttpRequest!="undefined",uh=lh&&function(t){return new Promise(function(n,i){let r=t.data;const a=ue.from(t.headers).normalize();let{responseType:s,withXSRFToken:o}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;if(y.isFormData(r)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((c=a.getContentType())!==!1){const[m,...N]=c?c.split(";").map(_=>_.trim()).filter(Boolean):[];a.setContentType([m||"multipart/form-data",...N].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",N=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+N))}const f=Jo(t.baseURL,t.url);d.open(t.method.toUpperCase(),Ho(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function v(){if(!d)return;const m=ue.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:t,request:d};th(function(M){n(M),u()},function(M){i(M),u()},_),d=null}if("onloadend"in d?d.onloadend=v:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(v)},d.onabort=function(){d&&(i(new q("Request aborted",q.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new q("Network Error",q.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let N=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const _=t.transitional||qo;t.timeoutErrorMessage&&(N=t.timeoutErrorMessage),i(new q(N,_.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,t,d)),d=null},ye.hasStandardBrowserEnv&&(o&&y.isFunction(o)&&(o=o(t)),o||o!==!1&&ah(f))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&nh.read(t.xsrfCookieName);m&&a.set(t.xsrfHeaderName,m)}r===void 0&&a.setContentType(null),"setRequestHeader"in d&&y.forEach(a.toJSON(),function(N,_){d.setRequestHeader(_,N)}),y.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",Aa(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Aa(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{d&&(i(!m||m.type?new rn(null,t,d):m),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=sh(f);if(p&&ye.protocols.indexOf(p)===-1){i(new q("Unsupported protocol "+p+":",q.ERR_BAD_REQUEST,t));return}d.send(r||null)})},sr={http:Df,xhr:uh};y.forEach(sr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Oa=t=>`- ${t}`,ch=t=>y.isFunction(t)||t===null||t===!1,Yo={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){n=t[a];let s;if(i=n,!ch(n)&&(i=sr[(s=String(n)).toLowerCase()],i===void 0))throw new q(`Unknown adapter '${s}'`);if(i)break;r[s||"#"+a]=i}if(!i){const a=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?a.length>1?`since :
29
+ `+a.map(Oa).join(`
30
+ `):" "+Oa(a[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:sr};function Ii(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rn(null,t)}function wa(t){return Ii(t),t.headers=ue.from(t.headers),t.data=Fi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Yo.getAdapter(t.adapter||nn.adapter)(t).then(function(i){return Ii(t),i.data=Fi.call(t,t.transformResponse,i),i.headers=ue.from(i.headers),i},function(i){return Wo(i)||(Ii(t),i&&i.response&&(i.response.data=Fi.call(t,t.transformResponse,i.response),i.response.headers=ue.from(i.response.headers))),Promise.reject(i)})}const Ta=t=>t instanceof ue?{...t}:t;function ft(t,e){e=e||{};const n={};function i(u,c,d){return y.isPlainObject(u)&&y.isPlainObject(c)?y.merge.call({caseless:d},u,c):y.isPlainObject(c)?y.merge({},c):y.isArray(c)?c.slice():c}function r(u,c,d){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u,d)}else return i(u,c,d)}function a(u,c){if(!y.isUndefined(c))return i(void 0,c)}function s(u,c){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,d){if(d in e)return i(u,c);if(d in t)return i(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,c)=>r(Ta(u),Ta(c),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||r,f=d(t[c],e[c],c);y.isUndefined(f)&&d!==o||(n[c]=f)}),n}const Qo="1.6.8",Vr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vr[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Ca={};Vr.transitional=function(e,n,i){function r(a,s){return"[Axios v"+Qo+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,o)=>{if(e===!1)throw new q(r(s," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!Ca[s]&&(Ca[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,s,o):!0}};function dh(t,e,n){if(typeof t!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const a=i[r],s=e[a];if(s){const o=t[a],l=o===void 0||s(o,a,t);if(l!==!0)throw new q("option "+a+" must be "+l,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+a,q.ERR_BAD_OPTION)}}const or={assertOptions:dh,validators:Vr},Ce=or.validators;class ze{constructor(e){this.defaults=e,this.interceptors={request:new Na,response:new Na}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
31
+ `+a):i.stack=a}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ft(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&or.assertOptions(i,{silentJSONParsing:Ce.transitional(Ce.boolean),forcedJSONParsing:Ce.transitional(Ce.boolean),clarifyTimeoutError:Ce.transitional(Ce.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:or.assertOptions(r,{encode:Ce.function,serialize:Ce.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&y.merge(a.common,a[n.method]);a&&y.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=ue.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const p=[wa.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=o.length;let v=n;for(d=0;d<f;){const p=o[d++],m=o[d++];try{v=p(v)}catch(N){m.call(this,N);break}}try{c=wa.call(this,v)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(e){e=ft(this.defaults,e);const n=Jo(e.baseURL,e.url);return Ho(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){ze.prototype[e]=function(n,i){return this.request(ft(i||{},{method:e,url:n,data:(i||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(i){return function(a,s,o){return this.request(ft(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}ze.prototype[e]=n(),ze.prototype[e+"Form"]=n(!0)});class Mr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const s=new Promise(o=>{i.subscribe(o),a=o}).then(r);return s.cancel=function(){i.unsubscribe(a)},s},e(function(a,s,o){i.reason||(i.reason=new rn(a,s,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Mr(function(r){e=r}),cancel:e}}}function fh(t){return function(n){return t.apply(null,n)}}function hh(t){return y.isObject(t)&&t.isAxiosError===!0}const lr={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(lr).forEach(([t,e])=>{lr[e]=t});function Xo(t){const e=new ze(t),n=Fo(ze.prototype.request,e);return y.extend(n,ze.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Xo(ft(t,r))},n}const J=Xo(nn);J.Axios=ze;J.CanceledError=rn;J.CancelToken=Mr;J.isCancel=Wo;J.VERSION=Qo;J.toFormData=li;J.AxiosError=q;J.Cancel=J.CanceledError;J.all=function(e){return Promise.all(e)};J.spread=fh;J.isAxiosError=hh;J.mergeConfig=ft;J.AxiosHeaders=ue;J.formToJSON=t=>Ko(y.isHTMLForm(t)?new FormData(t):t);J.getAdapter=Yo.getAdapter;J.HttpStatusCode=lr;J.default=J;class ph{constructor(e){w(this,"logger");w(this,"axiosInstance");this.logger=e.logger,this.axiosInstance=J.create({baseURL:e.baseUrl,headers:e.accessToken?{Authorization:`Bearer ${e.accessToken}`}:{}})}async get(e){try{return(await this.axiosInstance.get(e)).data}catch(n){throw this.handleError(n)}}async post(e,n){var a;const{data:i={},ignoreError:r=!1}=n;try{return(await this.axiosInstance.post(e,i)).data}catch(s){if(r&&J.isAxiosError(s))return(a=s.response)==null?void 0:a.data;throw this.handleError(s)}}async put(e,n){var a;const{data:i={},ignoreError:r=!1}=n;try{return(await this.axiosInstance.put(e,i)).data}catch(s){if(r&&J.isAxiosError(s))return(a=s.response)==null?void 0:a.data;throw this.handleError(s)}}async delete(e){try{return(await this.axiosInstance.delete(e)).data}catch(n){throw this.handleError(n)}}handleError(e){var r;let n=ne.GENERAL_ERROR;if(J.isAxiosError(e))if(e.response)switch(e.response.status){case 400:n=ne.BAD_REQUEST;break;case 401:n=ne.UNAUTHORIZED;break;case 403:n=ne.FORBIDDEN;break;case 404:n=ne.NOT_FOUND;break;case 409:n=ne.CONFLICT;break;case 410:n=ne.GONE;break;case 415:n=ne.UNSUPPORTED_MEDIA_TYPE;break;case 429:n=ne.TOO_MANY_REQUESTS;break;case 500:n=ne.INTERNAL_SERVER_ERROR;break;case 503:n=ne.SERVICE_UNAVAILABLE;break;default:n=ne.SERVER_ERROR}else e.request?n=ne.NETWORK_ERROR:n=ne.CONFIG_ERROR;const i=tl(n);return this.logger.error("Error Code:",n,"Message:",i),this.logger.error("Result Data:",(r=e.response)==null?void 0:r.data),new Error(i)}}const mh={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class $n{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||mh,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new $n(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new $n(this.logger,e)}}var be=new $n;class ui{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[o,l]=s;for(let u=0;u<l;u++)o.apply(o,[e,...i])})}}function At(){let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n}function xa(t){return t==null?"":""+t}function gh(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}const vh=/###/g;function Ft(t,e,n){function i(o){return o&&o.indexOf("###")>-1?o.replace(vh,"."):o}function r(){return!t||typeof t=="string"}const a=typeof e!="string"?e:e.split(".");let s=0;for(;s<a.length-1;){if(r())return{};const o=i(a[s]);!t[o]&&n&&(t[o]=new n),Object.prototype.hasOwnProperty.call(t,o)?t=t[o]:t={},++s}return r()?{}:{obj:t,k:i(a[s])}}function Ra(t,e,n){const{obj:i,k:r}=Ft(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=Ft(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=Ft(t,s,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]!="undefined"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function kh(t,e,n,i){const{obj:r,k:a}=Ft(t,e,Object);r[a]=r[a]||[],r[a].push(n)}function Un(t,e){const{obj:n,k:i}=Ft(t,e);if(n)return n[i]}function yh(t,e,n){const i=Un(t,n);return i!==void 0?i:Un(e,n)}function Zo(t,e,n){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?typeof t[i]=="string"||t[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?n&&(t[i]=e[i]):Zo(t[i],e[i],n):t[i]=e[i]);return t}function tt(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var bh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function _h(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>bh[e]):t}class Sh{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const Nh=[" ",",","?","!",";"],Eh=new Sh(20);function Ah(t,e,n){e=e||"",n=n||"";const i=Nh.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=Eh.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a}function ur(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,o="";for(let l=a;l<i.length;++l)if(l!==a&&(o+=n),o+=i[l],s=r[o],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}r=s}return r}function Vn(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Fa extends ui{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):typeof i=="string"&&a?o.push(...i.split(a)):o.push(i)));const l=Un(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||typeof i!="string"?l:ur(this.data&&this.data[e]&&this.data[e][n],i,a)}addResource(e,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),Ra(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in i)(typeof i[a]=="string"||Object.prototype.toString.apply(i[a])==="[object Array]")&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=Un(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?Zo(l,i,a):l={...l,...i},Ra(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var el={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,i,r))}),e}};const Ia={};class Mn extends ui{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),gh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=be.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,n);return i&&i.res!==void 0}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ah(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:a};const u=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(r)}return typeof a=="string"&&(a=[a]),{key:e,namespaces:a}}translate(e,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],n),l=o[o.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const T=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${T}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${T}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let f=d&&d.res;const v=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),N=["[object Number]","[object Function]","[object RegExp]"],_=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject;if(I&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&N.indexOf(m)<0&&!(typeof _=="string"&&m==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...n,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=T,d.usedParams=this.getUsedParamsDetails(n),d):T}if(a){const T=m==="[object Array]",L=T?[]:{},$=T?p:v;for(const H in f)if(Object.prototype.hasOwnProperty.call(f,H)){const k=`${$}${a}${H}`;L[H]=this.translate(k,{...n,joinArrays:!1,ns:o}),L[H]===k&&(L[H]=f[H])}f=L}}else if(I&&typeof _=="string"&&m==="[object Array]")f=f.join(_),f&&(f=this.extendTranslation(f,e,n,i));else{let T=!1,L=!1;const $=n.count!==void 0&&typeof n.count!="string",H=Mn.hasDefaultValue(n),k=$?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",R=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),S=R&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(f)&&H&&(T=!0,f=S),this.isValidLookup(f)||(L=!0,f=s);const A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:f,h=H&&S!==f&&this.options.updateMissing;if(L||T||h){if(this.logger.log(h?"updateKey":"missingKey",u,l,s,h?S:f),a){const P=this.resolve(s,{...n,keySeparator:!1});P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let g=[];const x=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&x&&x[0])for(let P=0;P<x.length;P++)g.push(x[P]);else this.options.saveMissingTo==="all"?g=this.languageUtils.toResolveHierarchy(n.lng||this.language):g.push(n.lng||this.language);const D=(P,j,ge)=>{const Te=H&&ge!==f?ge:A;this.options.missingKeyHandler?this.options.missingKeyHandler(P,l,j,Te,h,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(P,l,j,Te,h,n),this.emit("missingKey",P,l,j,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?g.forEach(P=>{const j=this.pluralResolver.getSuffixes(P,n);R&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(ge=>{D([P],s+ge,n[`defaultValue${ge}`]||S)})}):D(g,s,S))}f=this.extendTranslation(f,e,n,d,i),L&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(L||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,T?f:void 0):f=this.options.parseMissingKeyHandler(f))}return r?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const u=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,i.lng||this.language,i),u){const f=e.match(this.interpolator.nestingRegexp),v=f&&f.length;c<v&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var f=arguments.length,v=new Array(f),p=0;p<f;p++)v[p]=arguments[p];return a&&a[0]===v[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):s.translate(...v,n)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,l=typeof o=="string"?[o]:o;return e!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(e=el.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,o;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const u=this.extractFromKey(l,n),c=u.key;r=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",v=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(N=>{this.isValidLookup(i)||(o=N,!Ia[`${m[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Ia[`${m[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(_=>{if(this.isValidLookup(i))return;s=_;const I=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,c,_,N,n);else{let T;f&&(T=this.pluralResolver.getSuffix(_,n.count,n));const L=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(I.push(c+T),n.ordinal&&T.indexOf($)===0&&I.push(c+T.replace($,this.options.pluralSeparator)),v&&I.push(c+L)),p){const H=`${c}${this.options.contextSeparator}${n.context}`;I.push(H),f&&(I.push(H+T),n.ordinal&&T.indexOf($)===0&&I.push(H+T.replace($,this.options.pluralSeparator)),v&&I.push(H+L))}}let M;for(;M=I.pop();)this.isValidLookup(i)||(a=M,i=this.getResource(_,N,M,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let r=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}function Di(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Da{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=be.create("languageUtils")}getScriptPartFromCode(e){if(e=Vn(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Vn(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Di(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Di(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Di(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}let Oh=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wh={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const Th=["v1","v2","v3"],Ch=["v4"],La={zero:0,one:1,two:2,few:3,many:4,other:5};function xh(){const t={};return Oh.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:wh[e.fc]}})}),t}class Rh{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=be.create("pluralResolver"),(!this.options.compatibilityJSON||Ch.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=xh()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Vn(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>La[r]-La[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const a=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Th.includes(this.options.compatibilityJSON)}}function Pa(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=yh(t,e,n);return!a&&r&&typeof n=="string"&&(a=ur(t,n,i),a===void 0&&(a=ur(e,n,i))),a}class Fh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=be.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const n=e.interpolation;this.escape=n.escape!==void 0?n.escape:_h,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?tt(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?tt(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?tt(n.nestingPrefix):n.nestingPrefixEscaped||tt("$t("),this.nestingSuffix=n.nestingSuffix?tt(n.nestingSuffix):n.nestingSuffixEscaped||tt(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const I=Pa(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,i,{...r,...n,interpolationkey:p}):I}const m=p.split(this.formatSeparator),N=m.shift().trim(),_=m.join(this.formatSeparator).trim();return this.format(Pa(n,l,N,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...r,...n,interpolationkey:N})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(o=0;a=p.regex.exec(e);){const m=a[1].trim();if(s=c(m),s===void 0)if(typeof d=="function"){const _=d(e,a,r);s=typeof _=="string"?_:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=xa(s));const N=p.safeValue(s);if(e=e.replace(a[0],N),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s;function o(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),p=f.match(/"/g);(v&&v.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=c.shift(),l=c,u=!0}if(a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&typeof a!="string")return a;typeof a!="string"&&(a=xa(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),u&&(a=l.reduce((c,d)=>this.format(c,d,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}function Ih(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(!s)return;const[o,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=u),u==="false"&&(n[o.trim()]=!1),u==="true"&&(n[o.trim()]=!0),isNaN(u)||(n[o.trim()]=parseInt(u,10))})}return{formatName:e,formatOptions:n}}function nt(t){const e={};return function(i,r,a){const s=r+JSON.stringify(a);let o=e[s];return o||(o=t(Vn(r),a),e[s]=o),o(i)}}class Dh{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=be.create("formatter"),this.options=e,this.formats={number:nt((n,i)=>{const r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:nt((n,i)=>{const r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:nt((n,i)=>{const r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:nt((n,i)=>{const r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:nt((n,i)=>{const r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=nt(n)}format(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((o,l)=>{const{formatName:u,formatOptions:c}=Ih(l);if(this.formats[u]){let d=o;try{const f=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},v=f.locale||f.lng||r.locale||r.lng||i;d=this.formats[u](o,v,{...c,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}function Lh(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class Ph extends ui{constructor(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=be.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(e,n,i,r){const a={},s={},o={},l={};return e.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!i.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),a[f]===void 0&&(a[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(o[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const o={};this.queue.forEach(l=>{kh(l.loaded,[a],s),Lh(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{o[u][d]===void 0&&(o[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(u,c)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,n,o)}prepareLoading(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,i,r,l):c=u(e,n,i,r),c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}else u(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}function $a(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Ua(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function dn(){}function $h(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class zt extends ui{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ua(e),this.services={},this.logger=be,this.modules={external:[]},$h(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=$a();this.options={...r,...this.options,...Ua(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?be.init(a(this.modules.logger),this.options):be.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=Dh);const d=new Da(this.options);this.store=new Fa(this.options.resources,this.options);const f=this.services;f.logger=be,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Rh(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=a(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Fh(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Ph(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var p=arguments.length,m=new Array(p>1?p-1:0),N=1;N<p;N++)m[N-1]=arguments[N];e.emit(v,...m)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Mn(this.services,this.options),this.translator.on("*",function(v){for(var p=arguments.length,m=new Array(p>1?p-1:0),N=1;N<p;N++)m[N-1]=arguments[N];e.emit(v,...m)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,i||(i=dn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=At(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),i(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dn;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=At();return e||(e=this.languages),n||(n=this.options.ns),i||(i=dn),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&el.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,n){var i=this;this.isLanguageChangingTo=e;const r=At();this.emit("languageChanging",e);const a=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,i){var r=this;const a=function(s,o){let l;if(typeof o!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,o].concat(c))}else l={...o};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix=l.keyPrefix||i||a.keyPrefix;const f=r.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(s)?v=s.map(p=>`${l.keyPrefix}${f}${p}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,r.t(v,l)};return typeof e=="string"?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=At();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=At();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Da($a());return n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new zt(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dn;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new zt(r);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Fa(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Mn(a.services,r),a.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];a.emit(o,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const te=zt.createInstance();te.createInstance=zt.createInstance;te.createInstance;te.dir;te.init;te.loadResources;te.reloadResources;te.use;te.changeLanguage;te.getFixedT;const Va=te.t;te.exists;te.setDefaultNamespace;te.hasLoadedNamespace;te.loadNamespaces;te.loadLanguages;const tl=t=>Va(t?`errorCodes.${t}`:"errorCodes.DEFAULT");var jr=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(jr||{}),nl=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(nl||{}),Br=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Br||{}),il=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(il||{}),rl=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(rl||{}),al=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(al||{});class ci{constructor(e){w(this,"root",Pr(this));w(this,"id");w(this,"account");w(this,"accountType",jr.UNKNOWN);w(this,"username");w(this,"currencyConfig");w(this,"contractType");w(this,"nextDateMetricRecord");w(this,"spendedMinutes",0);w(this,"unlimitedService",!1);w(this,"hoursAvailable",0);w(this,"contractStatus",Br.ACTIVE);w(this,"createdAt");w(this,"installationDateApp");w(this,"cxAccount");w(this,"freeService",!1);w(this,"subscriptionType",null);w(this,"minutesAvailable",0);w(this,"globalPage");w(this,"stripe");w(this,"descriptionPlan");w(this,"planType");w(this,"selectFreeTrial");w(this,"exceededFeatures");w(this,"host",null);w(this,"variationThumbnailName");w(this,"variationsConfig");this.root.setProps(e)}static toDomain(e){const{createdAt:n,username:i,...r}=e,a={...r,username:i!=null?i:r.account,createdAt:new Date(Number(n))};return new ci(a)}toPrimitives(){const{root:e,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const Uh=`${br.apiUrls.restV1}/accounts/v2`;class sl{async get(e){const n=`${Uh}/${e}`,{data:i}=await Lr({url:n});return i?ci.toDomain(i):null}}class ol{constructor(e){this.accountRepository=e}async get(e){try{const n=await this.accountRepository.get(e);if(!n)throw new Ao(e);return n}catch(n){throw new Ir(n)}}}const Vh=new sl,zr=new ol(Vh),Mh=()=>["account"],jh=()=>{const t=Dr(r=>r.accountName),[e,n]=mn(Gn),i=ks.useQuery(Mh(),()=>zr.get(t),{enabled:!!t&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return B.useEffect(()=>{const r=i.data;!i.isSuccess||!r||n(r)},[i.status]),{findQuery:i,account:e}},ll=pu();async function ul(t){const e=await zr.get(t);return ll.set(Gn,e),e}var cl=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(cl||{});const Bh={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},dl={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var fl=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(fl||{}),hl=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(hl||{}),pl=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(pl||{});const zh=4;var ml=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(ml||{}),gl=(t=>(t.Add="add",t.Remove="remove",t))(gl||{}),vl=(t=>(t.Active="active",t.Inactive="inactive",t))(vl||{});const Hh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},qh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Gh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Kh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Wh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Jh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Yh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Qh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Xh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Zh={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ep={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},tp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},np={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},kl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ip={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},rp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ap={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},sp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},op={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},lp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AddToCartSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},up={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},cp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},dp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},fp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},hp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},pp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},mp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},gp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},vp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},kp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},yp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},bp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},_p={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Sp={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Np=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Hh,AppendProductsToSnackVideoDocument:cp,BlockUserDocument:Zh,ChangeAccountUsernameDocument:ep,CreatePlayListDocument:dp,CreateSnackVideoBatchDocument:fp,DeleteAllCustomizationDocument:ap,DeleteChatMessageDocument:tp,DeleteCollectionDocument:qh,DeleteRelationshipWithSnackVideoDocument:hp,DeleteSnackVideoDocument:pp,EventStatus:ml,FindByProductSnackVideoDocument:_p,FindCollectionDocument:Gh,FindManySnackVideosDocument:mp,FindMinimalEventDocument:Qh,GetAllChatMessageDocument:np,GetAllCollectionsDocument:Kh,GetAllCustomizationDocument:sp,GetAllSnackVideosDocument:gp,GetChatRoomTokenDocument:kl,GetPlayListDocument:Sp,GetPlayListsDocument:vp,GetSnackVideoRelationshipsDocument:kp,GetTimeLineDocument:up,HighlightProductDocument:rp,ManageCollectionProductDocument:Wh,Methods:gl,PinChatMessageDocument:ip,SearchCollectionsDocument:Jh,SearchMinimalEventsDocument:Xh,SearchSnackVideosDocument:yp,SendAddToCartDocument:lp,Status:vl,UpdateCollectionDocument:Yh,UpdateCustomizationDocument:op,UpdatePlayListDocument:bp},Symbol.toStringTag,{value:"Module"}));var di=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(di||{});function Ep(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var Ve=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.VtexFastStore="faststore",t.External="external",t))(Ve||{}),Hr=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(Hr||{});const{coreLogger:Ap}=Xe(),cr=Ue.withPrefix(Ap,"addToCartHooks"),Li="addToCartHooks.notification.error",dr={errorAddingToCart:Li,errorOpeningVariationSelector:Li,errorOpeningNewTab:Li,successAddingToCart:"addToCartHooks.notification.success"};async function Op(t){const e={...t,action:{type:di.ADD_TO_CART,exec:()=>cr.error("action no implemented in validate hook")}};try{const n=await wp(e),i=await Tp(n);await Cp(i)}catch(n){cr.error("error unhandled",n)}}async function wp(t){var a,s;const{context:e,userAddToCartConfig:n}=t,i=(a=n==null?void 0:n.hooks)==null?void 0:a.transform;let r=t.product;if(i)try{r=await i({product:{...r},data:(s=e.data)!=null?s:{}})}catch(o){jn("transform",o)}return{...t,product:r}}async function Tp(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,a=yl(t),s=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let o=n.validate({...t,actionFactory:a});if(s)try{o=await s({product:{...r},defaultAction:{...o},action:a,data:(u=e.data)!=null?u:{}})}catch(c){jn("validate",c)}return{...t,action:o,actionFactory:a}}async function Cp(t){var N;const{eventBus:e}=Xe(),{product:n,userAddToCartConfig:i,notifyFactory:r,action:a,actionFactory:s}=t,{isVariationSelectorOpen:o,data:l={}}=t.context,u=(N=i==null?void 0:i.hooks)==null?void 0:N.end,c=a.type===di.ADD_TO_CART;let d=null,f=!1;const v=()=>{!c||!o||s.openVariationSelector(!1).exec()},p=()=>{!c||f||(d?r.error(dr.errorAddingToCart):r.success(dr.successAddingToCart))},m=()=>{const _={product:n,actionType:a.type,success:!d,error:d};e.emit(dl.ATCH_ACTION_EXECUTED,_)};try{if(!a.type||!a.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await a.exec()}catch(_){jn("end",_),d=_}if(u)try{f=!!await u({data:l,error:d,notify:r,actionExecuted:a})}catch(_){jn("end",_)}v(),p(),m()}function yl(t){const{actionFactory:e,userAddToCartConfig:n}=t,i=r=>Object.entries(r!=null?r:{}).reduce((a,[s,o])=>({...a,[s]:l=>({type:s,exec:()=>o(l)})}),{});return{...i(e),...i(n==null?void 0:n.actionFactory)}}function jn(t,e){cr.error(`addToCartHooks error running ${t}: `,e)}function bl(t){const e=Object.values(t);return Object.assign({},...e)}function _l(t){return Object.entries(t).reduce((e,[n,i])=>{const r=bl(i);return{...e,[n]:r}},{})}function Sl(t,e){const n=_l(e);Object.entries(n).forEach(([i,r])=>{t.addResourceBundle(i,"translation",r,!0)})}function xp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Rp(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Ht(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Fp(t){var e=Rp(t,"string");return Ht(e)=="symbol"?e:e+""}function Ip(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Fp(i.key),i)}}function Dp(t,e,n){return e&&Ip(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Nl=[],Lp=Nl.forEach,Pp=Nl.slice;function $p(t){return Lp.call(Pp.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Ma=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Up=function(e,n,i){var r=i||{};r.path=r.path||"/";var a=encodeURIComponent(n),s="".concat(e,"=").concat(a);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!Ma.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(r.domain)}if(r.path){if(!Ma.test(r.path))throw new TypeError("option path is invalid");s+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},ja={create:function(e,n,i,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),r&&(a.domain=r),document.cookie=Up(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),r=0;r<i.length;r++){for(var a=i[r];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},Vp={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document!="undefined"){var i=ja.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document!="undefined"&&ja.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Mp={name:"querystring",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=i.substring(1),a=r.split("&"),s=0;s<a.length;s++){var o=a[s].indexOf("=");if(o>0){var l=a[s].substring(0,o);l===e.lookupQuerystring&&(n=a[s].substring(o+1))}}}return n}},Ot=null,Ba=function(){if(Ot!==null)return Ot;try{Ot=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ot=!1}return Ot},jp={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Ba()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Ba()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},wt=null,za=function(){if(wt!==null)return wt;try{wt=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{wt=!1}return wt},Bp={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&za()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&za()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},zp={name:"navigator",lookup:function(e){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},Hp={name:"htmlTag",lookup:function(e){var n,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},qp={name:"path",lookup:function(e){var n;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;n=i[e.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},Gp={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function Kp(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var El=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xp(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Dp(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=$p(i,this.options||{},Kp()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Vp),this.addDetector(Mp),this.addDetector(jp),this.addDetector(Bp),this.addDetector(zp),this.addDetector(Hp),this.addDetector(qp),this.addDetector(Gp)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var r=[];return n.forEach(function(a){if(i.detectors[a]){var s=i.detectors[a].lookup(i.options);s&&typeof s=="string"&&(s=[s]),s&&(r=r.concat(s))}}),r=r.map(function(a){return i.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var r=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(a){r.detectors[a]&&r.detectors[a].cacheUserLanguage(n,r.options)}))}}]),t}();El.type="languageDetector";function Al(t,e){t.use(e).use(El).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,i,r)=>{if(i){const[a,...s]=i.split(",").map(o=>o.trim());if(a==="number")return new Intl.NumberFormat(r).format(n);if(a==="date")return new Intl.DateTimeFormat(r).format(n);if(a==="currency")return new Intl.NumberFormat(r,{style:"currency",currency:s[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}})}const Wp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Jp={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Yp=t=>Jp[t],Qp=t=>t.replace(Wp,Yp);let Ha={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Qp};function Xp(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ha={...Ha,...t}}const Zp={type:"3rdParty",init(t){Xp(t.options.react)}};Al(te,Zp);const em=t=>Sl(te,t);/**
32
32
  * @license
33
33
  * Copyright 2019 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const _n=globalThis,Hr=_n.ShadowRoot&&(_n.ShadyCSS===void 0||_n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qr=Symbol(),za=new WeakMap;let El=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==qr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(Hr&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=za.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&za.set(n,e))}return e}toString(){return this.cssText}};const Zp=t=>new El(typeof t=="string"?t:t+"",void 0,qr),em=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((i,r,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[a+1],t[0]);return new El(n,t,qr)},tm=(t,e)=>{if(Hr)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const i=document.createElement("style"),r=_n.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},Ha=Hr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return Zp(n)})(t):t;/**
35
+ */const Sn=globalThis,qr=Sn.ShadowRoot&&(Sn.ShadyCSS===void 0||Sn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gr=Symbol(),qa=new WeakMap;let Ol=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==Gr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(qr&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=qa.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&qa.set(n,e))}return e}toString(){return this.cssText}};const tm=t=>new Ol(typeof t=="string"?t:t+"",void 0,Gr),nm=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((i,r,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[a+1],t[0]);return new Ol(n,t,Gr)},im=(t,e)=>{if(qr)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const i=document.createElement("style"),r=Sn.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},Ga=qr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return tm(n)})(t):t;/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const{is:nm,defineProperty:im,getOwnPropertyDescriptor:rm,getOwnPropertyNames:am,getOwnPropertySymbols:sm,getPrototypeOf:om}=Object,De=globalThis,qa=De.trustedTypes,lm=qa?qa.emptyScript:"",Li=De.reactiveElementPolyfillSupport,It=(t,e)=>t,dr={toAttribute(t,e){switch(e){case Boolean:t=t?lm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},Al=(t,e)=>!nm(t,e),Ga={attribute:!0,type:String,converter:dr,reflect:!1,hasChanged:Al};var us,cs;(us=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(cs=De.litPropertyMetadata)!=null||(De.litPropertyMetadata=new WeakMap);class at extends HTMLElement{static addInitializer(e){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Ga){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,n);r!==void 0&&im(this.prototype,e,r)}}static getPropertyDescriptor(e,n,i){var s;const{get:r,set:a}=(s=rm(this.prototype,e))!=null?s:{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const l=r==null?void 0:r.call(this);a.call(this,o),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var n;return(n=this.elementProperties.get(e))!=null?n:Ga}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;const e=om(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){const n=this.properties,i=[...am(n),...sm(n)];for(const r of i)this.createProperty(r,n[r])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)n.unshift(Ha(r))}else e!==void 0&&n.push(Ha(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n,i;((n=this._$EO)!=null?n:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var n;const e=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return tm(e,this.constructor.elementStyles),e}connectedCallback(){var e,n;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$EC(e,n){var a;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const s=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:dr).toAttribute(n,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,n){var a;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const s=i.getPropertyOptions(r),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:dr;this._$Em=r,this[r]=o.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(e,n,i){var r;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((r=i.hasChanged)!=null?r:Al)(this[e],n))return;this.P(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,i){var r;this._$AL.has(e)||this._$AL.set(e,n),i.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,o]of a)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}}var ds;at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[It("elementProperties")]=new Map,at[It("finalized")]=new Map,Li==null||Li({ReactiveElement:at}),((ds=De.reactiveElementVersions)!=null?ds:De.reactiveElementVersions=[]).push("2.0.4");/**
39
+ */const{is:rm,defineProperty:am,getOwnPropertyDescriptor:sm,getOwnPropertyNames:om,getOwnPropertySymbols:lm,getPrototypeOf:um}=Object,De=globalThis,Ka=De.trustedTypes,cm=Ka?Ka.emptyScript:"",Pi=De.reactiveElementPolyfillSupport,It=(t,e)=>t,fr={toAttribute(t,e){switch(e){case Boolean:t=t?cm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},wl=(t,e)=>!rm(t,e),Wa={attribute:!0,type:String,converter:fr,reflect:!1,hasChanged:wl};var ds,fs;(ds=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(fs=De.litPropertyMetadata)!=null||(De.litPropertyMetadata=new WeakMap);class at extends HTMLElement{static addInitializer(e){var n;this._$Ei(),((n=this.l)!=null?n:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Wa){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,n);r!==void 0&&am(this.prototype,e,r)}}static getPropertyDescriptor(e,n,i){var s;const{get:r,set:a}=(s=sm(this.prototype,e))!=null?s:{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const l=r==null?void 0:r.call(this);a.call(this,o),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var n;return(n=this.elementProperties.get(e))!=null?n:Wa}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;const e=um(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){const n=this.properties,i=[...om(n),...lm(n)];for(const r of i)this.createProperty(r,n[r])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)n.unshift(Ga(r))}else e!==void 0&&n.push(Ga(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n,i;((n=this._$EO)!=null?n:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var n;const e=(n=this.shadowRoot)!=null?n:this.attachShadow(this.constructor.shadowRootOptions);return im(e,this.constructor.elementStyles),e}connectedCallback(){var e,n;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$EC(e,n){var a;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const s=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:fr).toAttribute(n,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,n){var a;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const s=i.getPropertyOptions(r),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:fr;this._$Em=r,this[r]=o.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(e,n,i){var r;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((r=i.hasChanged)!=null?r:wl)(this[e],n))return;this.P(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,i){var r;this._$AL.has(e)||this._$AL.set(e,n),i.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,o]of a)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}}var hs;at.elementStyles=[],at.shadowRootOptions={mode:"open"},at[It("elementProperties")]=new Map,at[It("finalized")]=new Map,Pi==null||Pi({ReactiveElement:at}),((hs=De.reactiveElementVersions)!=null?hs:De.reactiveElementVersions=[]).push("2.0.4");/**
40
40
  * @license
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const Dt=globalThis,jn=Dt.trustedTypes,Ka=jn?jn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ol="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,wl="?"+Re,um=`<${wl}>`,qe=document,qt=()=>qe.createComment(""),Gt=t=>t===null||typeof t!="object"&&typeof t!="function",Tl=Array.isArray,cm=t=>Tl(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Pi=`[
44
- \f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wa=/-->/g,Ja=/>/g,Ve=RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
45
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ya=/'/g,Qa=/"/g,Cl=/^(?:script|style|textarea|title)$/i,dm=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),fm=dm(1),ht=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Xa=new WeakMap,Me=qe.createTreeWalker(qe,129);function xl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ka!==void 0?Ka.createHTML(e):e}const hm=(t,e)=>{const n=t.length-1,i=[];let r,a=e===2?"<svg>":"",s=Tt;for(let o=0;o<n;o++){const l=t[o];let u,c,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,c=s.exec(l),c!==null);)f=s.lastIndex,s===Tt?c[1]==="!--"?s=Wa:c[1]!==void 0?s=Ja:c[2]!==void 0?(Cl.test(c[2])&&(r=RegExp("</"+c[2],"g")),s=Ve):c[3]!==void 0&&(s=Ve):s===Ve?c[0]===">"?(s=r!=null?r:Tt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ve:c[3]==='"'?Qa:Ya):s===Qa||s===Ya?s=Ve:s===Wa||s===Ja?s=Tt:(s=Ve,r=void 0);const v=s===Ve&&t[o+1].startsWith("/>")?" ":"";a+=s===Tt?l+um:d>=0?(i.push(u),l.slice(0,d)+Ol+l.slice(d)+Re+v):l+Re+(d===-2?o:v)}return[xl(t,a+(t[n]||"<?>")+(e===2?"</svg>":"")),i]};class Kt{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let a=0,s=0;const o=e.length-1,l=this.parts,[u,c]=hm(e,n);if(this.el=Kt.createElement(u,i),Me.currentNode=this.el.content,n===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=Me.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(Ol)){const f=c[s++],v=r.getAttribute(d).split(Re),p=/([.?@])?(.*)/.exec(f);l.push({type:1,index:a,name:p[2],strings:v,ctor:p[1]==="."?mm:p[1]==="?"?gm:p[1]==="@"?vm:di}),r.removeAttribute(d)}else d.startsWith(Re)&&(l.push({type:6,index:a}),r.removeAttribute(d));if(Cl.test(r.tagName)){const d=r.textContent.split(Re),f=d.length-1;if(f>0){r.textContent=jn?jn.emptyScript:"";for(let v=0;v<f;v++)r.append(d[v],qt()),Me.nextNode(),l.push({type:2,index:++a});r.append(d[f],qt())}}}else if(r.nodeType===8)if(r.data===wl)l.push({type:2,index:a});else{let d=-1;for(;(d=r.data.indexOf(Re,d+1))!==-1;)l.push({type:7,index:a}),d+=Re.length-1}a++}}static createElement(e,n){const i=qe.createElement("template");return i.innerHTML=e,i}}function pt(t,e,n=t,i){var s,o,l;if(e===ht)return e;let r=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const a=Gt(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((o=r==null?void 0:r._$AO)==null||o.call(r,!1),a===void 0?r=void 0:(r=new a(t),r._$AT(t,n,i)),i!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[i]=r:n._$Cl=r),r!==void 0&&(e=pt(t,r._$AS(t,e.values),r,i)),e}class pm{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:n},parts:i}=this._$AD,r=((u=e==null?void 0:e.creationScope)!=null?u:qe).importNode(n,!0);Me.currentNode=r;let a=Me.nextNode(),s=0,o=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new an(a,a.nextSibling,this,e):l.type===1?c=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(c=new km(a,this,e)),this._$AV.push(c),l=i[++o]}s!==(l==null?void 0:l.index)&&(a=Me.nextNode(),s++)}return Me.currentNode=qe,r}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}class an{get _$AU(){var e,n;return(n=(e=this._$AM)==null?void 0:e._$AU)!=null?n:this._$Cv}constructor(e,n,i,r){var a;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=pt(this,e,n),Gt(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==ht&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):cm(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Q&&Gt(this._$AH)?this._$AA.nextSibling.data=e:this.T(qe.createTextNode(e)),this._$AH=e}$(e){var a;const{values:n,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Kt.createElement(xl(i.h,i.h[0]),this.options)),i);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(n);else{const s=new pm(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=Xa.get(e.strings);return n===void 0&&Xa.set(e.strings,n=new Kt(e)),n}k(e){Tl(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const a of e)r===n.length?n.push(i=new an(this.S(qt()),this.S(qt()),this,this.options)):i=n[r],i._$AI(a),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(e=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class di{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,r,a){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,n=this,i,r){const a=this.strings;let s=!1;if(a===void 0)e=pt(this,e,n,0),s=!Gt(e)||e!==this._$AH&&e!==ht,s&&(this._$AH=e);else{const o=e;let l,u;for(e=a[0],l=0;l<a.length-1;l++)u=pt(this,o[i+l],n,l),u===ht&&(u=this._$AH[l]),s||(s=!Gt(u)||u!==this._$AH[l]),u===Q?e=Q:e!==Q&&(e+=(u!=null?u:"")+a[l+1]),this._$AH[l]=u}s&&!r&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class mm extends di{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}class gm extends di{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}}class vm extends di{constructor(e,n,i,r,a){super(e,n,i,r,a),this.type=5}_$AI(e,n=this){var s;if((e=(s=pt(this,e,n,0))!=null?s:Q)===ht)return;const i=this._$AH,r=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Q&&(i===Q||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,i;typeof this._$AH=="function"?this._$AH.call((i=(n=this.options)==null?void 0:n.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class km{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pt(this,e)}}const $i=Dt.litHtmlPolyfillSupport;var fs;$i==null||$i(Kt,an),((fs=Dt.litHtmlVersions)!=null?fs:Dt.litHtmlVersions=[]).push("3.1.3");const ym=(t,e,n)=>{var a,s;const i=(a=n==null?void 0:n.renderBefore)!=null?a:e;let r=i._$litPart$;if(r===void 0){const o=(s=n==null?void 0:n.renderBefore)!=null?s:null;i._$litPart$=r=new an(e.insertBefore(qt(),o),o,void 0,n!=null?n:{})}return r._$AI(t),r};/**
43
+ */const Dt=globalThis,Bn=Dt.trustedTypes,Ja=Bn?Bn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Tl="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,Cl="?"+Re,dm=`<${Cl}>`,Ge=document,qt=()=>Ge.createComment(""),Gt=t=>t===null||typeof t!="object"&&typeof t!="function",xl=Array.isArray,fm=t=>xl(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",$i=`[
44
+ \f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ya=/-->/g,Qa=/>/g,Me=RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
45
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Xa=/'/g,Za=/"/g,Rl=/^(?:script|style|textarea|title)$/i,hm=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),pm=hm(1),ht=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),es=new WeakMap,je=Ge.createTreeWalker(Ge,129);function Fl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ja!==void 0?Ja.createHTML(e):e}const mm=(t,e)=>{const n=t.length-1,i=[];let r,a=e===2?"<svg>":"",s=Tt;for(let o=0;o<n;o++){const l=t[o];let u,c,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,c=s.exec(l),c!==null);)f=s.lastIndex,s===Tt?c[1]==="!--"?s=Ya:c[1]!==void 0?s=Qa:c[2]!==void 0?(Rl.test(c[2])&&(r=RegExp("</"+c[2],"g")),s=Me):c[3]!==void 0&&(s=Me):s===Me?c[0]===">"?(s=r!=null?r:Tt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Me:c[3]==='"'?Za:Xa):s===Za||s===Xa?s=Me:s===Ya||s===Qa?s=Tt:(s=Me,r=void 0);const v=s===Me&&t[o+1].startsWith("/>")?" ":"";a+=s===Tt?l+dm:d>=0?(i.push(u),l.slice(0,d)+Tl+l.slice(d)+Re+v):l+Re+(d===-2?o:v)}return[Fl(t,a+(t[n]||"<?>")+(e===2?"</svg>":"")),i]};class Kt{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let a=0,s=0;const o=e.length-1,l=this.parts,[u,c]=mm(e,n);if(this.el=Kt.createElement(u,i),je.currentNode=this.el.content,n===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=je.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(Tl)){const f=c[s++],v=r.getAttribute(d).split(Re),p=/([.?@])?(.*)/.exec(f);l.push({type:1,index:a,name:p[2],strings:v,ctor:p[1]==="."?vm:p[1]==="?"?km:p[1]==="@"?ym:fi}),r.removeAttribute(d)}else d.startsWith(Re)&&(l.push({type:6,index:a}),r.removeAttribute(d));if(Rl.test(r.tagName)){const d=r.textContent.split(Re),f=d.length-1;if(f>0){r.textContent=Bn?Bn.emptyScript:"";for(let v=0;v<f;v++)r.append(d[v],qt()),je.nextNode(),l.push({type:2,index:++a});r.append(d[f],qt())}}}else if(r.nodeType===8)if(r.data===Cl)l.push({type:2,index:a});else{let d=-1;for(;(d=r.data.indexOf(Re,d+1))!==-1;)l.push({type:7,index:a}),d+=Re.length-1}a++}}static createElement(e,n){const i=Ge.createElement("template");return i.innerHTML=e,i}}function pt(t,e,n=t,i){var s,o,l;if(e===ht)return e;let r=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const a=Gt(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((o=r==null?void 0:r._$AO)==null||o.call(r,!1),a===void 0?r=void 0:(r=new a(t),r._$AT(t,n,i)),i!==void 0?((l=n._$Co)!=null?l:n._$Co=[])[i]=r:n._$Cl=r),r!==void 0&&(e=pt(t,r._$AS(t,e.values),r,i)),e}class gm{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:n},parts:i}=this._$AD,r=((u=e==null?void 0:e.creationScope)!=null?u:Ge).importNode(n,!0);je.currentNode=r;let a=je.nextNode(),s=0,o=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new an(a,a.nextSibling,this,e):l.type===1?c=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(c=new bm(a,this,e)),this._$AV.push(c),l=i[++o]}s!==(l==null?void 0:l.index)&&(a=je.nextNode(),s++)}return je.currentNode=Ge,r}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}class an{get _$AU(){var e,n;return(n=(e=this._$AM)==null?void 0:e._$AU)!=null?n:this._$Cv}constructor(e,n,i,r){var a;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=pt(this,e,n),Gt(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==ht&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fm(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Q&&Gt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ge.createTextNode(e)),this._$AH=e}$(e){var a;const{values:n,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Kt.createElement(Fl(i.h,i.h[0]),this.options)),i);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(n);else{const s=new gm(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=es.get(e.strings);return n===void 0&&es.set(e.strings,n=new Kt(e)),n}k(e){xl(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const a of e)r===n.length?n.push(i=new an(this.S(qt()),this.S(qt()),this,this.options)):i=n[r],i._$AI(a),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(e=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,r,a){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,n=this,i,r){const a=this.strings;let s=!1;if(a===void 0)e=pt(this,e,n,0),s=!Gt(e)||e!==this._$AH&&e!==ht,s&&(this._$AH=e);else{const o=e;let l,u;for(e=a[0],l=0;l<a.length-1;l++)u=pt(this,o[i+l],n,l),u===ht&&(u=this._$AH[l]),s||(s=!Gt(u)||u!==this._$AH[l]),u===Q?e=Q:e!==Q&&(e+=(u!=null?u:"")+a[l+1]),this._$AH[l]=u}s&&!r&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class vm extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}class km extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}}class ym extends fi{constructor(e,n,i,r,a){super(e,n,i,r,a),this.type=5}_$AI(e,n=this){var s;if((e=(s=pt(this,e,n,0))!=null?s:Q)===ht)return;const i=this._$AH,r=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Q&&(i===Q||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,i;typeof this._$AH=="function"?this._$AH.call((i=(n=this.options)==null?void 0:n.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class bm{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pt(this,e)}}const Ui=Dt.litHtmlPolyfillSupport;var ps;Ui==null||Ui(Kt,an),((ps=Dt.litHtmlVersions)!=null?ps:Dt.litHtmlVersions=[]).push("3.1.3");const _m=(t,e,n)=>{var a,s;const i=(a=n==null?void 0:n.renderBefore)!=null?a:e;let r=i._$litPart$;if(r===void 0){const o=(s=n==null?void 0:n.renderBefore)!=null?s:null;i._$litPart$=r=new an(e.insertBefore(qt(),o),o,void 0,n!=null?n:{})}return r._$AI(t),r};/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */let Lt=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,i;const e=super.createRenderRoot();return(i=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ym(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ht}};var hs;Lt._$litElement$=!0,Lt.finalized=!0,(hs=globalThis.litElementHydrateSupport)==null||hs.call(globalThis,{LitElement:Lt});const Ui=globalThis.litElementPolyfillSupport;Ui==null||Ui({LitElement:Lt});var ps;((ps=globalThis.litElementVersions)!=null?ps:globalThis.litElementVersions=[]).push("4.0.5");/**
49
+ */let Lt=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,i;const e=super.createRenderRoot();return(i=(n=this.renderOptions).renderBefore)!=null||(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=_m(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ht}};var ms;Lt._$litElement$=!0,Lt.finalized=!0,(ms=globalThis.litElementHydrateSupport)==null||ms.call(globalThis,{LitElement:Lt});const Vi=globalThis.litElementPolyfillSupport;Vi==null||Vi({LitElement:Lt});var gs;((gs=globalThis.litElementVersions)!=null?gs:globalThis.litElementVersions=[]).push("4.0.5");/**
50
50
  * @license
51
51
  * Copyright 2020 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */const bm=t=>t.strings===void 0;/**
53
+ */const Sm=t=>t.strings===void 0;/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const _m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sm=t=>(...e)=>({_$litDirective$:t,values:e});class Nm{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,i){this._$Ct=e,this._$AM=n,this._$Ci=i}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}}/**
57
+ */const Nm={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Em=t=>(...e)=>({_$litDirective$:t,values:e});class Am{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,i){this._$Ct=e,this._$AM=n,this._$Ci=i}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}}/**
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const Pt=(t,e)=>{var i;const n=t._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,e,!1),Pt(r,e);return!0},Bn=t=>{let e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n==null?void 0:n.size)===0)},Rl=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Om(e)}};function Em(t){this._$AN!==void 0?(Bn(this),this._$AM=t,Rl(this)):this._$AM=t}function Am(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(i))for(let a=n;a<i.length;a++)Pt(i[a],!1),Bn(i[a]);else i!=null&&(Pt(i,!1),Bn(i));else Pt(this,t)}const Om=t=>{var e,n;t.type==_m.CHILD&&((e=t._$AP)!=null||(t._$AP=Am),(n=t._$AQ)!=null||(t._$AQ=Em))};class wm extends Nm{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,n,i){super._$AT(e,n,i),Rl(this),this.isConnected=e._$AU}_$AO(e,n=!0){var i,r;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(Pt(this,e),Bn(this))}setValue(e){if(bm(this._$Ct))this._$Ct._$AI(e,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=e,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}/**
61
+ */const Pt=(t,e)=>{var i;const n=t._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,e,!1),Pt(r,e);return!0},zn=t=>{let e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n==null?void 0:n.size)===0)},Il=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Tm(e)}};function Om(t){this._$AN!==void 0?(zn(this),this._$AM=t,Il(this)):this._$AM=t}function wm(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(i))for(let a=n;a<i.length;a++)Pt(i[a],!1),zn(i[a]);else i!=null&&(Pt(i,!1),zn(i));else Pt(this,t)}const Tm=t=>{var e,n;t.type==Nm.CHILD&&((e=t._$AP)!=null||(t._$AP=wm),(n=t._$AQ)!=null||(t._$AQ=Om))};class Cm extends Am{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,n,i){super._$AT(e,n,i),Il(this),this.isConnected=e._$AU}_$AO(e,n=!0){var i,r;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(Pt(this,e),zn(this))}setValue(e){if(Sm(this._$Ct))this._$Ct._$AI(e,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=e,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}/**
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const Tm=()=>new Cm;class Cm{}const Vi=new WeakMap,xm=Sm(class extends wm{render(t){return Q}update(t,[e]){var i;const n=e!==this.Y;return n&&this.Y!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=(i=t.options)==null?void 0:i.host,this.rt(this.ct=t.element)),Q}rt(t){var e;if(typeof this.Y=="function"){const n=(e=this.ht)!=null?e:globalThis;let i=Vi.get(n);i===void 0&&(i=new WeakMap,Vi.set(n,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,e,n;return typeof this.Y=="function"?(e=Vi.get((t=this.ht)!=null?t:globalThis))==null?void 0:e.get(this.Y):(n=this.Y)==null?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Fl,Za=ms;Fl=Za.createRoot,Za.hydrateRoot;class Il extends Lt{constructor(){super(...arguments);w(this,"rootRef",Tm());w(this,"rootInstance")}render(){return fm`<div ${xm(this.rootRef)}></div>`}updated(){this.updateReactComponent()}updateReactComponent(){if(!this.rootRef.value)return;this.rootInstance||(this.rootInstance=Fl(this.rootRef.value));const n=B.createElement(this.getReactComponent(),this.getReactProps(),B.createElement("slot"));this.rootInstance.render(n)}handleHMR(n){}injectStyles(n){const i=r=>r.replace("./","");for(const[r,a]of Object.entries(n)){const s=i(r),o=document.createElement("style");o.setAttribute("type","text/css"),o.setAttribute("id",s),o.innerHTML=a,setTimeout(()=>{var l;return(l=this.shadowRoot)==null?void 0:l.appendChild(o)})}}setupHMRListener(){}}w(Il,"baseStyles",em`
65
+ */const xm=()=>new Rm;class Rm{}const Mi=new WeakMap,Fm=Em(class extends Cm{render(t){return Q}update(t,[e]){var i;const n=e!==this.Y;return n&&this.Y!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=(i=t.options)==null?void 0:i.host,this.rt(this.ct=t.element)),Q}rt(t){var e;if(typeof this.Y=="function"){const n=(e=this.ht)!=null?e:globalThis;let i=Mi.get(n);i===void 0&&(i=new WeakMap,Mi.set(n,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){var t,e,n;return typeof this.Y=="function"?(e=Mi.get((t=this.ht)!=null?t:globalThis))==null?void 0:e.get(this.Y):(n=this.Y)==null?void 0:n.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Dl,ts=vs;Dl=ts.createRoot,ts.hydrateRoot;class Ll extends Lt{constructor(){super(...arguments);w(this,"rootRef",xm());w(this,"rootInstance")}render(){return pm`<div ${Fm(this.rootRef)}></div>`}updated(){this.updateReactComponent()}updateReactComponent(){if(!this.rootRef.value)return;this.rootInstance||(this.rootInstance=Dl(this.rootRef.value));const n=B.createElement(this.getReactComponent(),this.getReactProps(),B.createElement("slot"));this.rootInstance.render(n)}handleHMR(n){}injectStyles(n){const i=r=>r.replace("./","");for(const[r,a]of Object.entries(n)){const s=i(r),o=document.createElement("style");o.setAttribute("type","text/css"),o.setAttribute("id",s),o.innerHTML=a,setTimeout(()=>{var l;return(l=this.shadowRoot)==null?void 0:l.appendChild(o)})}}setupHMRListener(){}}w(Ll,"baseStyles",nm`
66
66
  :host {
67
67
  width: 100%;
68
68
  }
69
- `);let Gr=new Map;const fr=B.createContext(Gr),Rm=({children:t,stores:e})=>{const n=B.useContext(fr),i=B.useMemo(()=>{const r=new Map;return e.forEach(a=>r.set(a.class,a.value)),Gr=new Map([...n,...r])},[]);return iu.jsx(fr.Provider,{value:i,children:t})};function Fm(t){return B.useContext(fr).get(t)}function Im(t){return Gr.get(t)}class Dl{constructor(e,n,i){w(this,"renderFn");w(this,"logger");w(this,"rootId");w(this,"element",null);w(this,"unmount");w(this,"updateProps");this.rootId=e,this.renderFn=n,this.logger=i}async render(e={}){var n;if(this.element)this.updateProps(e);else{const i=await this.renderFn(this.rootId,e);this.element=(n=i==null?void 0:i.element)!=null?n:null,this.updateProps=r=>i==null?void 0:i.updateProps(r),this.unmount=()=>{i==null||i.unmount(),this.element=null}}}}class fi{constructor(e){this.config=e}static isApplicable(e){return zr.LOCAL===e.bundler.stage}async execute(){var n;const{runtime:e}=this.config;if(!((n=e.env)!=null&&n.account)){e.logger.error("missing account in local environment");return}await e.configureStore(e.env)}}w(fi,"type",Xe.Local);const fn=window==null?void 0:window.__RUNTIME__;class hi{constructor(e){this.config=e;const n={vtexio:fn};this.config.runtime.updateMeta(n)}static isApplicable(){return!!fn}async execute(){const{runtime:e}=this.config;if(!fn.account){e.logger.error("missing the account in window.__RUNTIME__");return}await e.configureStore({account:fn.account})}}w(hi,"type",Xe.VtexIO);const es=window==null?void 0:window.vtexjs;class pi{constructor(e){this.config=e;const n={vtexjs:es};this.config.runtime.updateMeta(n)}static isApplicable(){return!!es}async execute(){const{runtime:e}=this.config;let n={};const i=`${e.componentId.value}-script`,r=yo(i);if(n=Object.fromEntries(r.entries()),!n.account){e.logger.error(`missing the account in the search params of the script #${i}`);return}await e.configureStore({account:n.account})}}w(pi,"type",Xe.VtexLegacy);class Kr{constructor(e){this.config=e}static isApplicable(e){return!fi.isApplicable(e)&&!pi.isApplicable()&&!hi.isApplicable()}async execute(){}}w(Kr,"type",Xe.External);const Ll=[fi,pi,hi,Kr];class Dm{constructor(e){w(this,"globalId");w(this,"metadata");w(this,"customConfigList");w(this,"env");w(this,"bundler");w(this,"logger");w(this,"componentId");w(this,"renderHandler");w(this,"store");this.globalId=e.globalId,this.store=e.getStore(),this.logger=Ue.withPrefix(e.logger,"Runtime"),this.env=e.env,this.bundler=e.bundler,this.customConfigList=new Map,this.metadata={type:Xe.External},this.initializeGlobals()}config(e,n,i){typeof n=="function"&&(i=n,n={});const{skipBaseBehavior:r=!1}=n;return this.customConfigList.set(e,{callback:i,skipBaseBehavior:r}),this}registerComponent(e,n){const i=this.toCamel(e);if(window[this.globalId][i])return this.logger.debug(`Component "${i}" is already registered.`),this;this.componentId={value:e,formatted:i},this.renderHandler=n;const r={render:this.renderHandler};return window[this.globalId][this.componentId.formatted]=r,this.logger.debug(`Component "${i}" registered.`),this}async execute(e){for(const n of Ll)if(n.isApplicable(this)){const i=new n({runtime:this}),r=this.customConfigList.get(n.type);this.updateMeta({type:n.type}),r!=null&&r.skipBaseBehavior||await i.execute(),r&&await r.callback({runtime:this,component:new Dl(this.componentId.value,this.renderHandler,this.logger)});break}await(e==null?void 0:e())}updateMeta(e){this.metadata={...this.metadata,...e}}async configureStore(e){await this.store.configure(e)}get meta(){return this.metadata}initializeGlobals(){var i;if(window[this.globalId]||(window[this.globalId]={},this.logger.debug(`Initialized "${this.globalId}" window object`)),(i=window[this.globalId])!=null&&i.runtime){this.logger.debug(`Runtime for "${this.globalId}" are already initialized.`);return}const e=()=>Object.freeze({...this.metadata}),n=()=>Object.freeze({isProd:this.bundler.isProd,get meta(){return e()}});Object.defineProperty(window[this.globalId],"runtime",{get:()=>n()}),this.logger.debug(`Initialized runtime for "${this.globalId}".`)}toCamel(e){return e.replace(/^[a-z]{2}-/,"").replace(/-./g,n=>n[1].toUpperCase())}}const Wr=JSON,Lm=t=>t.toUpperCase(),Pm=t=>{const e={};return t.forEach((n,i)=>{e[i]=n}),e},$m=(t,e,n)=>t.document?t:{document:t,variables:e,requestHeaders:n,signal:void 0},Um=(t,e,n)=>t.query?t:{query:t,variables:e,requestHeaders:n,signal:void 0},Vm=(t,e)=>t.documents?t:{documents:t,requestHeaders:e,signal:void 0};function Sn(t,e){if(!!!t)throw new Error(e)}function Mm(t){return typeof t=="object"&&t!==null}function jm(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const Bm=/\r\n|[\n\r]/g;function hr(t,e){let n=0,i=1;for(const r of t.body.matchAll(Bm)){if(typeof r.index=="number"||jm(!1),r.index>=e)break;n=r.index+r[0].length,i+=1}return{line:i,column:e+1-n}}function zm(t){return Pl(t.source,hr(t.source,t.start))}function Pl(t,e){const n=t.locationOffset.column-1,i="".padStart(n)+t.body,r=e.line-1,a=t.locationOffset.line-1,s=e.line+a,o=e.line===1?n:0,l=e.column+o,u=`${t.name}:${s}:${l}
70
- `,c=i.split(/\r\n|[\n\r]/g),d=c[r];if(d.length>120){const f=Math.floor(l/80),v=l%80,p=[];for(let m=0;m<d.length;m+=80)p.push(d.slice(m,m+80));return u+ts([[`${s} |`,p[0]],...p.slice(1,f+1).map(m=>["|",m]),["|","^".padStart(v)],["|",p[f+1]]])}return u+ts([[`${s-1} |`,c[r-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[r+1]]])}function ts(t){const e=t.filter(([i,r])=>r!==void 0),n=Math.max(...e.map(([i])=>i.length));return e.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
71
- `)}function Hm(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Jr extends Error{constructor(e,...n){var i,r,a;const{nodes:s,source:o,positions:l,path:u,originalError:c,extensions:d}=Hm(n);super(e),this.name="GraphQLError",this.path=u!=null?u:void 0,this.originalError=c!=null?c:void 0,this.nodes=ns(Array.isArray(s)?s:s?[s]:void 0);const f=ns((i=this.nodes)===null||i===void 0?void 0:i.map(p=>p.loc).filter(p=>p!=null));this.source=o!=null?o:f==null||(r=f[0])===null||r===void 0?void 0:r.source,this.positions=l!=null?l:f==null?void 0:f.map(p=>p.start),this.locations=l&&o?l.map(p=>hr(o,p)):f==null?void 0:f.map(p=>hr(p.source,p.start));const v=Mm(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(a=d!=null?d:v)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Jr):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`
69
+ `);let Kr=new Map;const hr=B.createContext(Kr),Im=({children:t,stores:e})=>{const n=B.useContext(hr),i=B.useMemo(()=>{const r=new Map;return e.forEach(a=>r.set(a.class,a.value)),Kr=new Map([...n,...r])},[]);return au.jsx(hr.Provider,{value:i,children:t})};function Dm(t){return B.useContext(hr).get(t)}function Lm(t){return Kr.get(t)}class Pl{constructor(e,n,i){w(this,"renderFn");w(this,"logger");w(this,"rootId");w(this,"element",null);w(this,"unmount");w(this,"updateProps");this.rootId=e,this.renderFn=n,this.logger=i}async render(e={}){var n;if(this.element)this.updateProps(e);else{const i=await this.renderFn(this.rootId,e);this.element=(n=i==null?void 0:i.element)!=null?n:null,this.updateProps=r=>i==null?void 0:i.updateProps(r),this.unmount=()=>{i==null||i.unmount(),this.element=null}}}}class hi{constructor(e){this.config=e}static isApplicable(e){return Hr.LOCAL===e.bundler.stage}async execute(){var n;const{runtime:e}=this.config;if(!((n=e.env)!=null&&n.account)){e.logger.error("missing account in local environment");return}await e.configureStore(e.env)}}w(hi,"type",Ve.Local);const fn=window==null?void 0:window.__RUNTIME__;class pi{constructor(e){this.config=e;const n={vtexio:fn};this.config.runtime.updateMeta(n)}static isApplicable(){return!!fn}async execute(){const{runtime:e}=this.config;if(!fn.account){e.logger.error("missing the account in window.__RUNTIME__");return}await e.configureStore({account:fn.account})}}w(pi,"type",Ve.VtexIO);const ns=window==null?void 0:window.vtexjs;class mi{constructor(e){this.config=e;const n={vtexjs:ns};this.config.runtime.updateMeta(n)}static isApplicable(){return!!ns}async execute(){const{runtime:e}=this.config;let n={};const i=`${e.componentId.value}-script`,r=_o(i);if(n=Object.fromEntries(r.entries()),!n.account){e.logger.error(`missing the account in the search params of the script #${i}`);return}await e.configureStore({account:n.account})}}w(mi,"type",Ve.VtexLegacy);const hn=window==null?void 0:window.faststore_sdk_stores;class Wr{constructor(e){this.config=e;const n={vtexfaststore:hn};this.config.runtime.updateMeta(n)}static isApplicable(){return!!hn}async execute(){const{runtime:e}=this.config;if(!hn.account){e.logger.error("missing the account in window.faststore_sdk_stores");return}await e.configureStore({account:hn.account})}}w(Wr,"type",Ve.VtexFastStore);class Jr{constructor(e){this.config=e}static isApplicable(e){return!hi.isApplicable(e)&&!mi.isApplicable()&&!pi.isApplicable()&&!Wr.isApplicable()}async execute(){}}w(Jr,"type",Ve.External);const $l=[hi,mi,pi,Jr,Wr];class Pm{constructor(e){w(this,"globalId");w(this,"metadata");w(this,"customConfigList");w(this,"env");w(this,"bundler");w(this,"logger");w(this,"componentId");w(this,"renderHandler");w(this,"store");this.globalId=e.globalId,this.store=e.getStore(),this.logger=Ue.withPrefix(e.logger,"Runtime"),this.env=e.env,this.bundler=e.bundler,this.customConfigList=new Map,this.metadata={type:Ve.External},this.initializeGlobals()}config(e,n,i){typeof n=="function"&&(i=n,n={});const{skipBaseBehavior:r=!1}=n;return this.customConfigList.set(e,{callback:i,skipBaseBehavior:r}),this}registerComponent(e,n){const i=this.toCamel(e);if(window[this.globalId][i])return this.logger.debug(`Component "${i}" is already registered.`),this;this.componentId={value:e,formatted:i},this.renderHandler=n;const r={render:this.renderHandler};return window[this.globalId][this.componentId.formatted]=r,this.logger.debug(`Component "${i}" registered.`),this}async execute(e){for(const n of $l)if(n.isApplicable(this)){const i=new n({runtime:this}),r=this.customConfigList.get(n.type);this.updateMeta({type:n.type}),r!=null&&r.skipBaseBehavior||await i.execute(),r&&await r.callback({runtime:this,component:new Pl(this.componentId.value,this.renderHandler,this.logger)});break}await(e==null?void 0:e())}updateMeta(e){this.metadata={...this.metadata,...e}}async configureStore(e){await this.store.configure(e)}get meta(){return this.metadata}initializeGlobals(){var i;if(window[this.globalId]||(window[this.globalId]={},this.logger.debug(`Initialized "${this.globalId}" window object`)),(i=window[this.globalId])!=null&&i.runtime){this.logger.debug(`Runtime for "${this.globalId}" are already initialized.`);return}const e=()=>Object.freeze({...this.metadata}),n=()=>Object.freeze({isProd:this.bundler.isProd,get meta(){return e()}});Object.defineProperty(window[this.globalId],"runtime",{get:()=>n()}),this.logger.debug(`Initialized runtime for "${this.globalId}".`)}toCamel(e){return e.replace(/^[a-z]{2}-/,"").replace(/-./g,n=>n[1].toUpperCase())}}const Yr=JSON,$m=t=>t.toUpperCase(),Um=t=>{const e={};return t.forEach((n,i)=>{e[i]=n}),e},Vm=(t,e,n)=>t.document?t:{document:t,variables:e,requestHeaders:n,signal:void 0},Mm=(t,e,n)=>t.query?t:{query:t,variables:e,requestHeaders:n,signal:void 0},jm=(t,e)=>t.documents?t:{documents:t,requestHeaders:e,signal:void 0};function Nn(t,e){if(!!!t)throw new Error(e)}function Bm(t){return typeof t=="object"&&t!==null}function zm(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const Hm=/\r\n|[\n\r]/g;function pr(t,e){let n=0,i=1;for(const r of t.body.matchAll(Hm)){if(typeof r.index=="number"||zm(!1),r.index>=e)break;n=r.index+r[0].length,i+=1}return{line:i,column:e+1-n}}function qm(t){return Ul(t.source,pr(t.source,t.start))}function Ul(t,e){const n=t.locationOffset.column-1,i="".padStart(n)+t.body,r=e.line-1,a=t.locationOffset.line-1,s=e.line+a,o=e.line===1?n:0,l=e.column+o,u=`${t.name}:${s}:${l}
70
+ `,c=i.split(/\r\n|[\n\r]/g),d=c[r];if(d.length>120){const f=Math.floor(l/80),v=l%80,p=[];for(let m=0;m<d.length;m+=80)p.push(d.slice(m,m+80));return u+is([[`${s} |`,p[0]],...p.slice(1,f+1).map(m=>["|",m]),["|","^".padStart(v)],["|",p[f+1]]])}return u+is([[`${s-1} |`,c[r-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[r+1]]])}function is(t){const e=t.filter(([i,r])=>r!==void 0),n=Math.max(...e.map(([i])=>i.length));return e.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
71
+ `)}function Gm(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Qr extends Error{constructor(e,...n){var i,r,a;const{nodes:s,source:o,positions:l,path:u,originalError:c,extensions:d}=Gm(n);super(e),this.name="GraphQLError",this.path=u!=null?u:void 0,this.originalError=c!=null?c:void 0,this.nodes=rs(Array.isArray(s)?s:s?[s]:void 0);const f=rs((i=this.nodes)===null||i===void 0?void 0:i.map(p=>p.loc).filter(p=>p!=null));this.source=o!=null?o:f==null||(r=f[0])===null||r===void 0?void 0:r.source,this.positions=l!=null?l:f==null?void 0:f.map(p=>p.start),this.locations=l&&o?l.map(p=>pr(o,p)):f==null?void 0:f.map(p=>pr(p.source,p.start));const v=Bm(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(a=d!=null?d:v)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Qr):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`
72
72
 
73
- `+zm(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=`
73
+ `+qm(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=`
74
74
 
75
- `+Pl(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function ns(t){return t===void 0||t.length===0?void 0:t}function ee(t,e,n){return new Jr(`Syntax Error: ${n}`,{source:t,positions:[e]})}class qm{constructor(e,n,i){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class $l{constructor(e,n,i,r,a,s){this.kind=e,this.start=n,this.end=i,this.line=r,this.column=a,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ul={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Gm=new Set(Object.keys(Ul));function is(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&Gm.has(e)}var lt;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(lt||(lt={}));var pr;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(pr||(pr={}));var U;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(U||(U={}));function mr(t){return t===9||t===32}function Wt(t){return t>=48&&t<=57}function Vl(t){return t>=97&&t<=122||t>=65&&t<=90}function Ml(t){return Vl(t)||t===95}function Km(t){return Vl(t)||Wt(t)||t===95}function Wm(t){var e;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let s=0;s<t.length;++s){var a;const o=t[s],l=Jm(o);l!==o.length&&(i=(a=i)!==null&&a!==void 0?a:s,r=s,s!==0&&l<n&&(n=l))}return t.map((s,o)=>o===0?s:s.slice(n)).slice((e=i)!==null&&e!==void 0?e:0,r+1)}function Jm(t){let e=0;for(;e<t.length&&mr(t.charCodeAt(e));)++e;return e}function Ym(t,e){const n=t.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,a=i.length>1&&i.slice(1).every(v=>v.length===0||mr(v.charCodeAt(0))),s=n.endsWith('\\"""'),o=t.endsWith('"')&&!s,l=t.endsWith("\\"),u=o||l,c=!r||t.length>70||u||a||s;let d="";const f=r&&mr(t.charCodeAt(0));return(c&&!f||a)&&(d+=`
75
+ `+Ul(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function rs(t){return t===void 0||t.length===0?void 0:t}function ee(t,e,n){return new Qr(`Syntax Error: ${n}`,{source:t,positions:[e]})}class Km{constructor(e,n,i){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Vl{constructor(e,n,i,r,a,s){this.kind=e,this.start=n,this.end=i,this.line=r,this.column=a,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ml={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Wm=new Set(Object.keys(Ml));function as(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&Wm.has(e)}var lt;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(lt||(lt={}));var mr;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(mr||(mr={}));var U;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(U||(U={}));function gr(t){return t===9||t===32}function Wt(t){return t>=48&&t<=57}function jl(t){return t>=97&&t<=122||t>=65&&t<=90}function Bl(t){return jl(t)||t===95}function Jm(t){return jl(t)||Wt(t)||t===95}function Ym(t){var e;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let s=0;s<t.length;++s){var a;const o=t[s],l=Qm(o);l!==o.length&&(i=(a=i)!==null&&a!==void 0?a:s,r=s,s!==0&&l<n&&(n=l))}return t.map((s,o)=>o===0?s:s.slice(n)).slice((e=i)!==null&&e!==void 0?e:0,r+1)}function Qm(t){let e=0;for(;e<t.length&&gr(t.charCodeAt(e));)++e;return e}function Xm(t,e){const n=t.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,a=i.length>1&&i.slice(1).every(v=>v.length===0||gr(v.charCodeAt(0))),s=n.endsWith('\\"""'),o=t.endsWith('"')&&!s,l=t.endsWith("\\"),u=o||l,c=!r||t.length>70||u||a||s;let d="";const f=r&&gr(t.charCodeAt(0));return(c&&!f||a)&&(d+=`
76
76
  `),d+=n,(c||u)&&(d+=`
77
- `),'"""'+d+'"""'}var b;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(b||(b={}));class Qm{constructor(e){const n=new $l(b.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==b.EOF)do if(e.next)e=e.next;else{const n=Zm(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===b.COMMENT);return e}}function Xm(t){return t===b.BANG||t===b.DOLLAR||t===b.AMP||t===b.PAREN_L||t===b.PAREN_R||t===b.SPREAD||t===b.COLON||t===b.EQUALS||t===b.AT||t===b.BRACKET_L||t===b.BRACKET_R||t===b.BRACE_L||t===b.PIPE||t===b.BRACE_R}function _t(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function mi(t,e){return jl(t.charCodeAt(e))&&Bl(t.charCodeAt(e+1))}function jl(t){return t>=55296&&t<=56319}function Bl(t){return t>=56320&&t<=57343}function Ge(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return b.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Y(t,e,n,i,r){const a=t.line,s=1+n-t.lineStart;return new $l(e,n,i,a,s,r)}function Zm(t,e){const n=t.source.body,i=n.length;let r=e;for(;r<i;){const a=n.charCodeAt(r);switch(a){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++t.line,t.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++t.line,t.lineStart=r;continue;case 35:return eg(t,r);case 33:return Y(t,b.BANG,r,r+1);case 36:return Y(t,b.DOLLAR,r,r+1);case 38:return Y(t,b.AMP,r,r+1);case 40:return Y(t,b.PAREN_L,r,r+1);case 41:return Y(t,b.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Y(t,b.SPREAD,r,r+3);break;case 58:return Y(t,b.COLON,r,r+1);case 61:return Y(t,b.EQUALS,r,r+1);case 64:return Y(t,b.AT,r,r+1);case 91:return Y(t,b.BRACKET_L,r,r+1);case 93:return Y(t,b.BRACKET_R,r,r+1);case 123:return Y(t,b.BRACE_L,r,r+1);case 124:return Y(t,b.PIPE,r,r+1);case 125:return Y(t,b.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?sg(t,r):ng(t,r)}if(Wt(a)||a===45)return tg(t,r,a);if(Ml(a))return og(t,r);throw ee(t.source,r,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:_t(a)||mi(n,r)?`Unexpected character: ${Ge(t,r)}.`:`Invalid character: ${Ge(t,r)}.`)}return Y(t,b.EOF,i,i)}function eg(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const a=n.charCodeAt(r);if(a===10||a===13)break;if(_t(a))++r;else if(mi(n,r))r+=2;else break}return Y(t,b.COMMENT,e,r,n.slice(e+1,r))}function tg(t,e,n){const i=t.source.body;let r=e,a=n,s=!1;if(a===45&&(a=i.charCodeAt(++r)),a===48){if(a=i.charCodeAt(++r),Wt(a))throw ee(t.source,r,`Invalid number, unexpected digit after 0: ${Ge(t,r)}.`)}else r=Mi(t,r,a),a=i.charCodeAt(r);if(a===46&&(s=!0,a=i.charCodeAt(++r),r=Mi(t,r,a),a=i.charCodeAt(r)),(a===69||a===101)&&(s=!0,a=i.charCodeAt(++r),(a===43||a===45)&&(a=i.charCodeAt(++r)),r=Mi(t,r,a),a=i.charCodeAt(r)),a===46||Ml(a))throw ee(t.source,r,`Invalid number, expected digit but got: ${Ge(t,r)}.`);return Y(t,s?b.FLOAT:b.INT,e,r,i.slice(e,r))}function Mi(t,e,n){if(!Wt(n))throw ee(t.source,e,`Invalid number, expected digit but got: ${Ge(t,e)}.`);const i=t.source.body;let r=e+1;for(;Wt(i.charCodeAt(r));)++r;return r}function ng(t,e){const n=t.source.body,i=n.length;let r=e+1,a=r,s="";for(;r<i;){const o=n.charCodeAt(r);if(o===34)return s+=n.slice(a,r),Y(t,b.STRING,e,r+1,s);if(o===92){s+=n.slice(a,r);const l=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?ig(t,r):rg(t,r):ag(t,r);s+=l.value,r+=l.size,a=r;continue}if(o===10||o===13)break;if(_t(o))++r;else if(mi(n,r))r+=2;else throw ee(t.source,r,`Invalid character within String: ${Ge(t,r)}.`)}throw ee(t.source,r,"Unterminated string.")}function ig(t,e){const n=t.source.body;let i=0,r=3;for(;r<12;){const a=n.charCodeAt(e+r++);if(a===125){if(r<5||!_t(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Ct(a),i<0)break}throw ee(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+r)}".`)}function rg(t,e){const n=t.source.body,i=rs(n,e+2);if(_t(i))return{value:String.fromCodePoint(i),size:6};if(jl(i)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const r=rs(n,e+8);if(Bl(r))return{value:String.fromCodePoint(i,r),size:12}}throw ee(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function rs(t,e){return Ct(t.charCodeAt(e))<<12|Ct(t.charCodeAt(e+1))<<8|Ct(t.charCodeAt(e+2))<<4|Ct(t.charCodeAt(e+3))}function Ct(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function ag(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
78
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw ee(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function sg(t,e){const n=t.source.body,i=n.length;let r=t.lineStart,a=e+3,s=a,o="";const l=[];for(;a<i;){const u=n.charCodeAt(a);if(u===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){o+=n.slice(s,a),l.push(o);const c=Y(t,b.BLOCK_STRING,e,a+3,Wm(l).join(`
79
- `));return t.line+=l.length-1,t.lineStart=r,c}if(u===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){o+=n.slice(s,a),s=a+1,a+=4;continue}if(u===10||u===13){o+=n.slice(s,a),l.push(o),u===13&&n.charCodeAt(a+1)===10?a+=2:++a,o="",s=a,r=a;continue}if(_t(u))++a;else if(mi(n,a))a+=2;else throw ee(t.source,a,`Invalid character within String: ${Ge(t,a)}.`)}throw ee(t.source,a,"Unterminated string.")}function og(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const a=n.charCodeAt(r);if(Km(a))++r;else break}return Y(t,b.NAME,e,r,n.slice(e,r))}const lg=10,zl=2;function Yr(t){return gi(t,[])}function gi(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return ug(t,e);default:return String(t)}}function ug(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(cg(t)){const i=t.toJSON();if(i!==t)return typeof i=="string"?i:gi(i,n)}else if(Array.isArray(t))return fg(t,n);return dg(t,n)}function cg(t){return typeof t.toJSON=="function"}function dg(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>zl?"["+hg(t)+"]":"{ "+n.map(([r,a])=>r+": "+gi(a,e)).join(", ")+" }"}function fg(t,e){if(t.length===0)return"[]";if(e.length>zl)return"[Array]";const n=Math.min(lg,t.length),i=t.length-n,r=[];for(let a=0;a<n;++a)r.push(gi(t[a],e));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function hg(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const pg=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var i;const r=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(i=e.constructor)===null||i===void 0?void 0:i.name;if(r===a){const s=Yr(e);throw new Error(`Cannot use ${r} "${s}" from another module or realm.
77
+ `),'"""'+d+'"""'}var b;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(b||(b={}));class Zm{constructor(e){const n=new Vl(b.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==b.EOF)do if(e.next)e=e.next;else{const n=tg(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===b.COMMENT);return e}}function eg(t){return t===b.BANG||t===b.DOLLAR||t===b.AMP||t===b.PAREN_L||t===b.PAREN_R||t===b.SPREAD||t===b.COLON||t===b.EQUALS||t===b.AT||t===b.BRACKET_L||t===b.BRACKET_R||t===b.BRACE_L||t===b.PIPE||t===b.BRACE_R}function _t(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function gi(t,e){return zl(t.charCodeAt(e))&&Hl(t.charCodeAt(e+1))}function zl(t){return t>=55296&&t<=56319}function Hl(t){return t>=56320&&t<=57343}function Ke(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return b.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Y(t,e,n,i,r){const a=t.line,s=1+n-t.lineStart;return new Vl(e,n,i,a,s,r)}function tg(t,e){const n=t.source.body,i=n.length;let r=e;for(;r<i;){const a=n.charCodeAt(r);switch(a){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++t.line,t.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++t.line,t.lineStart=r;continue;case 35:return ng(t,r);case 33:return Y(t,b.BANG,r,r+1);case 36:return Y(t,b.DOLLAR,r,r+1);case 38:return Y(t,b.AMP,r,r+1);case 40:return Y(t,b.PAREN_L,r,r+1);case 41:return Y(t,b.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Y(t,b.SPREAD,r,r+3);break;case 58:return Y(t,b.COLON,r,r+1);case 61:return Y(t,b.EQUALS,r,r+1);case 64:return Y(t,b.AT,r,r+1);case 91:return Y(t,b.BRACKET_L,r,r+1);case 93:return Y(t,b.BRACKET_R,r,r+1);case 123:return Y(t,b.BRACE_L,r,r+1);case 124:return Y(t,b.PIPE,r,r+1);case 125:return Y(t,b.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?lg(t,r):rg(t,r)}if(Wt(a)||a===45)return ig(t,r,a);if(Bl(a))return ug(t,r);throw ee(t.source,r,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:_t(a)||gi(n,r)?`Unexpected character: ${Ke(t,r)}.`:`Invalid character: ${Ke(t,r)}.`)}return Y(t,b.EOF,i,i)}function ng(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const a=n.charCodeAt(r);if(a===10||a===13)break;if(_t(a))++r;else if(gi(n,r))r+=2;else break}return Y(t,b.COMMENT,e,r,n.slice(e+1,r))}function ig(t,e,n){const i=t.source.body;let r=e,a=n,s=!1;if(a===45&&(a=i.charCodeAt(++r)),a===48){if(a=i.charCodeAt(++r),Wt(a))throw ee(t.source,r,`Invalid number, unexpected digit after 0: ${Ke(t,r)}.`)}else r=ji(t,r,a),a=i.charCodeAt(r);if(a===46&&(s=!0,a=i.charCodeAt(++r),r=ji(t,r,a),a=i.charCodeAt(r)),(a===69||a===101)&&(s=!0,a=i.charCodeAt(++r),(a===43||a===45)&&(a=i.charCodeAt(++r)),r=ji(t,r,a),a=i.charCodeAt(r)),a===46||Bl(a))throw ee(t.source,r,`Invalid number, expected digit but got: ${Ke(t,r)}.`);return Y(t,s?b.FLOAT:b.INT,e,r,i.slice(e,r))}function ji(t,e,n){if(!Wt(n))throw ee(t.source,e,`Invalid number, expected digit but got: ${Ke(t,e)}.`);const i=t.source.body;let r=e+1;for(;Wt(i.charCodeAt(r));)++r;return r}function rg(t,e){const n=t.source.body,i=n.length;let r=e+1,a=r,s="";for(;r<i;){const o=n.charCodeAt(r);if(o===34)return s+=n.slice(a,r),Y(t,b.STRING,e,r+1,s);if(o===92){s+=n.slice(a,r);const l=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?ag(t,r):sg(t,r):og(t,r);s+=l.value,r+=l.size,a=r;continue}if(o===10||o===13)break;if(_t(o))++r;else if(gi(n,r))r+=2;else throw ee(t.source,r,`Invalid character within String: ${Ke(t,r)}.`)}throw ee(t.source,r,"Unterminated string.")}function ag(t,e){const n=t.source.body;let i=0,r=3;for(;r<12;){const a=n.charCodeAt(e+r++);if(a===125){if(r<5||!_t(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Ct(a),i<0)break}throw ee(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+r)}".`)}function sg(t,e){const n=t.source.body,i=ss(n,e+2);if(_t(i))return{value:String.fromCodePoint(i),size:6};if(zl(i)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const r=ss(n,e+8);if(Hl(r))return{value:String.fromCodePoint(i,r),size:12}}throw ee(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function ss(t,e){return Ct(t.charCodeAt(e))<<12|Ct(t.charCodeAt(e+1))<<8|Ct(t.charCodeAt(e+2))<<4|Ct(t.charCodeAt(e+3))}function Ct(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function og(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
78
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw ee(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function lg(t,e){const n=t.source.body,i=n.length;let r=t.lineStart,a=e+3,s=a,o="";const l=[];for(;a<i;){const u=n.charCodeAt(a);if(u===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){o+=n.slice(s,a),l.push(o);const c=Y(t,b.BLOCK_STRING,e,a+3,Ym(l).join(`
79
+ `));return t.line+=l.length-1,t.lineStart=r,c}if(u===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){o+=n.slice(s,a),s=a+1,a+=4;continue}if(u===10||u===13){o+=n.slice(s,a),l.push(o),u===13&&n.charCodeAt(a+1)===10?a+=2:++a,o="",s=a,r=a;continue}if(_t(u))++a;else if(gi(n,a))a+=2;else throw ee(t.source,a,`Invalid character within String: ${Ke(t,a)}.`)}throw ee(t.source,a,"Unterminated string.")}function ug(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const a=n.charCodeAt(r);if(Jm(a))++r;else break}return Y(t,b.NAME,e,r,n.slice(e,r))}const cg=10,ql=2;function Xr(t){return vi(t,[])}function vi(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return dg(t,e);default:return String(t)}}function dg(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(fg(t)){const i=t.toJSON();if(i!==t)return typeof i=="string"?i:vi(i,n)}else if(Array.isArray(t))return pg(t,n);return hg(t,n)}function fg(t){return typeof t.toJSON=="function"}function hg(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>ql?"["+mg(t)+"]":"{ "+n.map(([r,a])=>r+": "+vi(a,e)).join(", ")+" }"}function pg(t,e){if(t.length===0)return"[]";if(e.length>ql)return"[Array]";const n=Math.min(cg,t.length),i=t.length-n,r=[];for(let a=0;a<n;++a)r.push(vi(t[a],e));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function mg(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const gg=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var i;const r=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(i=e.constructor)===null||i===void 0?void 0:i.name;if(r===a){const s=Xr(e);throw new Error(`Cannot use ${r} "${s}" from another module or realm.
80
80
 
81
81
  Ensure that there is only one instance of "graphql" in the node_modules
82
82
  directory. If different versions of "graphql" are the dependencies of other
@@ -87,17 +87,17 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
87
87
  Duplicate "graphql" modules cannot be used at the same time since different
88
88
  versions may have different capabilities and behavior. The data from one
89
89
  version used in the function from another could produce confusing and
90
- spurious results.`)}}return!1};class Hl{constructor(e,n="GraphQL request",i={line:1,column:1}){typeof e=="string"||Sn(!1,`Body must be a string. Received: ${Yr(e)}.`),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||Sn(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Sn(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function mg(t){return pg(t,Hl)}function gg(t,e){return new vg(t,e).parseDocument()}class vg{constructor(e,n={}){const i=mg(e)?e:new Hl(e);this._lexer=new Qm(i),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(b.NAME);return this.node(e,{kind:U.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:U.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF)})}parseDefinition(){if(this.peek(b.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===b.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw ee(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(b.BRACE_L))return this.node(e,{kind:U.OPERATION_DEFINITION,operation:lt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(b.NAME)&&(i=this.parseName()),this.node(e,{kind:U.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(b.NAME);switch(e.value){case"query":return lt.QUERY;case"mutation":return lt.MUTATION;case"subscription":return lt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:U.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(b.DOLLAR),this.node(e,{kind:U.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:U.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R)})}parseSelection(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(b.COLON)?(i=n,r=this.parseName()):r=n,this.node(e,{kind:U.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,n,b.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:U.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(b.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(b.NAME)?this.node(e,{kind:U.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:U.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:U.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:U.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case b.BRACKET_L:return this.parseList(e);case b.BRACE_L:return this.parseObject(e);case b.INT:return this.advanceLexer(),this.node(n,{kind:U.INT,value:n.value});case b.FLOAT:return this.advanceLexer(),this.node(n,{kind:U.FLOAT,value:n.value});case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:U.BOOLEAN,value:!0});case"false":return this.node(n,{kind:U.BOOLEAN,value:!1});case"null":return this.node(n,{kind:U.NULL});default:return this.node(n,{kind:U.ENUM,value:n.value})}case b.DOLLAR:if(e)if(this.expectToken(b.DOLLAR),this._lexer.token.kind===b.NAME){const i=this._lexer.token.value;throw ee(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:U.STRING,value:e.value,block:e.kind===b.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:U.LIST,values:this.any(b.BRACKET_L,n,b.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:U.OBJECT,fields:this.any(b.BRACE_L,n,b.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,i=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:U.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(b.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(b.AT),this.node(n,{kind:U.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(b.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(b.BRACKET_R),n=this.node(e,{kind:U.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(b.BANG)?this.node(e,{kind:U.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:U.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return this.node(e,{kind:U.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(b.COLON);const i=this.parseNamedType();return this.node(e,{kind:U.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:U.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:U.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:a,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(b.COLON);const a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:U.FIELD_DEFINITION,description:n,name:i,arguments:r,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(b.COLON);const r=this.parseTypeReference();let a;this.expectOptionalToken(b.EQUALS)&&(a=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:U.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:a,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:U.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:a,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:U.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:U.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:a})}parseEnumValuesDefinition(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:U.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ee(this._lexer.source,this._lexer.token.start,`${hn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:U.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:U.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:U.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:U.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:U.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);const i=this.parseName(),r=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:U.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(pr,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new qm(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw ee(this._lexer.source,n.start,`Expected ${ql(e)}, found ${hn(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===b.NAME&&n.value===e)this.advanceLexer();else throw ee(this._lexer.source,n.start,`Expected "${e}", found ${hn(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===b.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e!=null?e:this._lexer.token;return ee(this._lexer.source,n.start,`Unexpected ${hn(n)}.`)}any(e,n,i){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(e,n,i){if(this.expectOptionalToken(e)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(e,n,i){this.expectToken(e);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,n){this.expectOptionalToken(e);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==b.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ee(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function hn(t){const e=t.value;return ql(t.kind)+(e!=null?` "${e}"`:"")}function ql(t){return Xm(t)?`"${t}"`:t}function kg(t){return`"${t.replace(yg,bg)}"`}const yg=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function bg(t){return _g[t.charCodeAt(0)]}const _g=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Sg=Object.freeze({});function Ng(t,e,n=Ul){const i=new Map;for(const _ of Object.values(U))i.set(_,Eg(e,_));let r,a=Array.isArray(t),s=[t],o=-1,l=[],u=t,c,d;const f=[],v=[];do{o++;const _=o===s.length,I=_&&l.length!==0;if(_){if(c=v.length===0?void 0:f[f.length-1],u=d,d=v.pop(),I)if(a){u=u.slice();let T=0;for(const[L,$]of l){const H=L-T;$===null?(u.splice(H,1),T++):u[H]=$}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,L]of l)u[T]=L}o=r.index,s=r.keys,l=r.edits,a=r.inArray,r=r.prev}else if(d){if(c=a?o:s[o],u=d[c],u==null)continue;f.push(c)}let M;if(!Array.isArray(u)){var p,m;is(u)||Sn(!1,`Invalid AST Node: ${Yr(u)}.`);const T=_?(p=i.get(u.kind))===null||p===void 0?void 0:p.leave:(m=i.get(u.kind))===null||m===void 0?void 0:m.enter;if(M=T==null?void 0:T.call(e,u,c,d,f,v),M===Sg)break;if(M===!1){if(!_){f.pop();continue}}else if(M!==void 0&&(l.push([c,M]),!_))if(is(M))u=M;else{f.pop();continue}}if(M===void 0&&I&&l.push([c,u]),_)f.pop();else{var N;r={inArray:a,index:o,keys:s,edits:l,prev:r},a=Array.isArray(u),s=a?u:(N=n[u.kind])!==null&&N!==void 0?N:[],o=-1,l=[],d&&v.push(d),d=u}}while(r!==void 0);return l.length!==0?l[l.length-1][1]:t}function Eg(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Ag(t){return Ng(t,wg)}const Og=80,wg={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>F(t.definitions,`
90
+ spurious results.`)}}return!1};class Gl{constructor(e,n="GraphQL request",i={line:1,column:1}){typeof e=="string"||Nn(!1,`Body must be a string. Received: ${Xr(e)}.`),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||Nn(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Nn(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function vg(t){return gg(t,Gl)}function kg(t,e){return new yg(t,e).parseDocument()}class yg{constructor(e,n={}){const i=vg(e)?e:new Gl(e);this._lexer=new Zm(i),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(b.NAME);return this.node(e,{kind:U.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:U.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF)})}parseDefinition(){if(this.peek(b.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===b.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw ee(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(b.BRACE_L))return this.node(e,{kind:U.OPERATION_DEFINITION,operation:lt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(b.NAME)&&(i=this.parseName()),this.node(e,{kind:U.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(b.NAME);switch(e.value){case"query":return lt.QUERY;case"mutation":return lt.MUTATION;case"subscription":return lt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:U.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(b.DOLLAR),this.node(e,{kind:U.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:U.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R)})}parseSelection(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(b.COLON)?(i=n,r=this.parseName()):r=n,this.node(e,{kind:U.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,n,b.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:U.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(b.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(b.NAME)?this.node(e,{kind:U.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:U.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:U.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:U.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case b.BRACKET_L:return this.parseList(e);case b.BRACE_L:return this.parseObject(e);case b.INT:return this.advanceLexer(),this.node(n,{kind:U.INT,value:n.value});case b.FLOAT:return this.advanceLexer(),this.node(n,{kind:U.FLOAT,value:n.value});case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:U.BOOLEAN,value:!0});case"false":return this.node(n,{kind:U.BOOLEAN,value:!1});case"null":return this.node(n,{kind:U.NULL});default:return this.node(n,{kind:U.ENUM,value:n.value})}case b.DOLLAR:if(e)if(this.expectToken(b.DOLLAR),this._lexer.token.kind===b.NAME){const i=this._lexer.token.value;throw ee(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:U.STRING,value:e.value,block:e.kind===b.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:U.LIST,values:this.any(b.BRACKET_L,n,b.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:U.OBJECT,fields:this.any(b.BRACE_L,n,b.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,i=this.parseName();return this.expectToken(b.COLON),this.node(n,{kind:U.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(b.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(b.AT),this.node(n,{kind:U.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(b.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(b.BRACKET_R),n=this.node(e,{kind:U.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(b.BANG)?this.node(e,{kind:U.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:U.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return this.node(e,{kind:U.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(b.COLON);const i=this.parseNamedType();return this.node(e,{kind:U.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:U.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:U.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:a,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(b.COLON);const a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:U.FIELD_DEFINITION,description:n,name:i,arguments:r,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(b.COLON);const r=this.parseTypeReference();let a;this.expectOptionalToken(b.EQUALS)&&(a=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:U.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:a,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:U.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:a,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:U.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:U.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:a})}parseEnumValuesDefinition(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:U.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ee(this._lexer.source,this._lexer.token.start,`${pn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:U.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:U.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:U.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:U.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:U.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:U.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);const i=this.parseName(),r=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:U.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(mr,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new Km(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw ee(this._lexer.source,n.start,`Expected ${Kl(e)}, found ${pn(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===b.NAME&&n.value===e)this.advanceLexer();else throw ee(this._lexer.source,n.start,`Expected "${e}", found ${pn(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===b.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e!=null?e:this._lexer.token;return ee(this._lexer.source,n.start,`Unexpected ${pn(n)}.`)}any(e,n,i){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(e,n,i){if(this.expectOptionalToken(e)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(e,n,i){this.expectToken(e);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,n){this.expectOptionalToken(e);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==b.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ee(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function pn(t){const e=t.value;return Kl(t.kind)+(e!=null?` "${e}"`:"")}function Kl(t){return eg(t)?`"${t}"`:t}function bg(t){return`"${t.replace(_g,Sg)}"`}const _g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Sg(t){return Ng[t.charCodeAt(0)]}const Ng=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Eg=Object.freeze({});function Ag(t,e,n=Ml){const i=new Map;for(const _ of Object.values(U))i.set(_,Og(e,_));let r,a=Array.isArray(t),s=[t],o=-1,l=[],u=t,c,d;const f=[],v=[];do{o++;const _=o===s.length,I=_&&l.length!==0;if(_){if(c=v.length===0?void 0:f[f.length-1],u=d,d=v.pop(),I)if(a){u=u.slice();let T=0;for(const[L,$]of l){const H=L-T;$===null?(u.splice(H,1),T++):u[H]=$}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,L]of l)u[T]=L}o=r.index,s=r.keys,l=r.edits,a=r.inArray,r=r.prev}else if(d){if(c=a?o:s[o],u=d[c],u==null)continue;f.push(c)}let M;if(!Array.isArray(u)){var p,m;as(u)||Nn(!1,`Invalid AST Node: ${Xr(u)}.`);const T=_?(p=i.get(u.kind))===null||p===void 0?void 0:p.leave:(m=i.get(u.kind))===null||m===void 0?void 0:m.enter;if(M=T==null?void 0:T.call(e,u,c,d,f,v),M===Eg)break;if(M===!1){if(!_){f.pop();continue}}else if(M!==void 0&&(l.push([c,M]),!_))if(as(M))u=M;else{f.pop();continue}}if(M===void 0&&I&&l.push([c,u]),_)f.pop();else{var N;r={inArray:a,index:o,keys:s,edits:l,prev:r},a=Array.isArray(u),s=a?u:(N=n[u.kind])!==null&&N!==void 0?N:[],o=-1,l=[],d&&v.push(d),d=u}}while(r!==void 0);return l.length!==0?l[l.length-1][1]:t}function Og(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function wg(t){return Ag(t,Cg)}const Tg=80,Cg={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>F(t.definitions,`
91
91
 
92
- `)},OperationDefinition:{leave(t){const e=z("(",F(t.variableDefinitions,", "),")"),n=F([t.operation,F([t.name,e]),F(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:i})=>t+": "+e+z(" = ",n)+z(" ",F(i," "))},SelectionSet:{leave:({selections:t})=>ce(t)},Field:{leave({alias:t,name:e,arguments:n,directives:i,selectionSet:r}){const a=z("",t,": ")+e;let s=a+z("(",F(n,", "),")");return s.length>Og&&(s=a+z(`(
93
- `,Nn(F(n,`
92
+ `)},OperationDefinition:{leave(t){const e=z("(",F(t.variableDefinitions,", "),")"),n=F([t.operation,F([t.name,e]),F(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:i})=>t+": "+e+z(" = ",n)+z(" ",F(i," "))},SelectionSet:{leave:({selections:t})=>ce(t)},Field:{leave({alias:t,name:e,arguments:n,directives:i,selectionSet:r}){const a=z("",t,": ")+e;let s=a+z("(",F(n,", "),")");return s.length>Tg&&(s=a+z(`(
93
+ `,En(F(n,`
94
94
  `)),`
95
- )`)),F([s,F(i," "),r]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+z(" ",F(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>F(["...",z("on ",t),F(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${t}${z("(",F(n,", "),")")} on ${e} ${z("",F(i," ")," ")}`+r},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Ym(t):kg(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+F(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+F(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+z("(",F(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>z("",t,`
95
+ )`)),F([s,F(i," "),r]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+z(" ",F(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>F(["...",z("on ",t),F(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${t}${z("(",F(n,", "),")")} on ${e} ${z("",F(i," ")," ")}`+r},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Xm(t):bg(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+F(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+F(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+z("(",F(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>z("",t,`
96
96
  `)+F(["schema",F(e," "),ce(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>z("",t,`
97
97
  `)+F(["scalar",e,F(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:i,fields:r})=>z("",t,`
98
98
  `)+F(["type",e,z("implements ",F(n," & ")),F(i," "),ce(r)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:i,directives:r})=>z("",t,`
99
- `)+e+(as(n)?z(`(
100
- `,Nn(F(n,`
99
+ `)+e+(os(n)?z(`(
100
+ `,En(F(n,`
101
101
  `)),`
102
102
  )`):z("(",F(n,", "),")"))+": "+i+z(" ",F(r," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:i,directives:r})=>z("",t,`
103
103
  `)+F([e+": "+n,z("= ",i),F(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:i,fields:r})=>z("",t,`
@@ -106,13 +106,13 @@ spurious results.`)}}return!1};class Hl{constructor(e,n="GraphQL request",i={lin
106
106
  `)+F(["enum",e,F(n," "),ce(i)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>z("",t,`
107
107
  `)+F([e,F(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:i})=>z("",t,`
108
108
  `)+F(["input",e,F(n," "),ce(i)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:i,locations:r})=>z("",t,`
109
- `)+"directive @"+e+(as(n)?z(`(
110
- `,Nn(F(n,`
109
+ `)+"directive @"+e+(os(n)?z(`(
110
+ `,En(F(n,`
111
111
  `)),`
112
112
  )`):z("(",F(n,", "),")"))+(i?" repeatable":"")+" on "+F(r," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>F(["extend schema",F(t," "),ce(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>F(["extend scalar",t,F(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:i})=>F(["extend type",t,z("implements ",F(e," & ")),F(n," "),ce(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:i})=>F(["extend interface",t,z("implements ",F(e," & ")),F(n," "),ce(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>F(["extend union",t,F(e," "),z("= ",F(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>F(["extend enum",t,F(e," "),ce(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>F(["extend input",t,F(e," "),ce(n)]," ")}};function F(t,e=""){var n;return(n=t==null?void 0:t.filter(i=>i).join(e))!==null&&n!==void 0?n:""}function ce(t){return z(`{
113
- `,Nn(F(t,`
113
+ `,En(F(t,`
114
114
  `)),`
115
- }`)}function z(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function Nn(t){return z(" ",t.replace(/\n/g,`
116
- `))}function as(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
117
- `)))!==null&&e!==void 0?e:!1}const ss=t=>{var i,r;let e;const n=t.definitions.filter(a=>a.kind==="OperationDefinition");return n.length===1&&(e=(r=(i=n[0])==null?void 0:i.name)==null?void 0:r.value),e},ji=t=>{if(typeof t=="string"){let n;try{const i=gg(t);n=ss(i)}catch{}return{query:t,operationName:n}}const e=ss(t);return{query:Ag(t),operationName:e}};class $t extends Error{constructor(e,n){const i=`${$t.extractMessage(e)}: ${JSON.stringify({response:e,request:n})}`;super(i),Object.setPrototypeOf(this,$t.prototype),this.response=e,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$t)}static extractMessage(e){var n,i,r;return(r=(i=(n=e.errors)==null?void 0:n[0])==null?void 0:i.message)!=null?r:`GraphQL Error (Code: ${e.status})`}}var gr={exports:{}};(function(t,e){var n=typeof self!="undefined"?self:Cr,i=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(s){var o={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(h){return h&&DataView.prototype.isPrototypeOf(h)}if(o.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(h){return h&&u.indexOf(Object.prototype.toString.call(h))>-1};function d(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function f(h){return typeof h!="string"&&(h=String(h)),h}function v(h){var g={next:function(){var x=h.shift();return{done:x===void 0,value:x}}};return o.iterable&&(g[Symbol.iterator]=function(){return g}),g}function p(h){this.map={},h instanceof p?h.forEach(function(g,x){this.append(x,g)},this):Array.isArray(h)?h.forEach(function(g){this.append(g[0],g[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(g){this.append(g,h[g])},this)}p.prototype.append=function(h,g){h=d(h),g=f(g);var x=this.map[h];this.map[h]=x?x+", "+g:g},p.prototype.delete=function(h){delete this.map[d(h)]},p.prototype.get=function(h){return h=d(h),this.has(h)?this.map[h]:null},p.prototype.has=function(h){return this.map.hasOwnProperty(d(h))},p.prototype.set=function(h,g){this.map[d(h)]=f(g)},p.prototype.forEach=function(h,g){for(var x in this.map)this.map.hasOwnProperty(x)&&h.call(g,this.map[x],x,this)},p.prototype.keys=function(){var h=[];return this.forEach(function(g,x){h.push(x)}),v(h)},p.prototype.values=function(){var h=[];return this.forEach(function(g){h.push(g)}),v(h)},p.prototype.entries=function(){var h=[];return this.forEach(function(g,x){h.push([x,g])}),v(h)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function m(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function N(h){return new Promise(function(g,x){h.onload=function(){g(h.result)},h.onerror=function(){x(h.error)}})}function _(h){var g=new FileReader,x=N(g);return g.readAsArrayBuffer(h),x}function I(h){var g=new FileReader,x=N(g);return g.readAsText(h),x}function M(h){for(var g=new Uint8Array(h),x=new Array(g.length),D=0;D<g.length;D++)x[D]=String.fromCharCode(g[D]);return x.join("")}function T(h){if(h.slice)return h.slice(0);var g=new Uint8Array(h.byteLength);return g.set(new Uint8Array(h)),g.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(h){this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:o.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:o.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():o.arrayBuffer&&o.blob&&l(h)?(this._bodyArrayBuffer=T(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||c(h))?this._bodyArrayBuffer=T(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(M(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function H(h){var g=h.toUpperCase();return $.indexOf(g)>-1?g:h}function k(h,g){g=g||{};var x=g.body;if(h instanceof k){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,g.headers||(this.headers=new p(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!x&&h._bodyInit!=null&&(x=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new p(g.headers)),this.method=H(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function C(h){var g=new FormData;return h.trim().split("&").forEach(function(x){if(x){var D=x.split("="),P=D.shift().replace(/\+/g," "),j=D.join("=").replace(/\+/g," ");g.append(decodeURIComponent(P),decodeURIComponent(j))}}),g}function R(h){var g=new p,x=h.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(D){var P=D.split(":"),j=P.shift().trim();if(j){var ge=P.join(":").trim();g.append(j,ge)}}),g}L.call(k.prototype);function S(h,g){g||(g={}),this.type="default",this.status=g.status===void 0?200:g.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in g?g.statusText:"OK",this.headers=new p(g.headers),this.url=g.url||"",this._initBody(h)}L.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var h=new S(null,{status:0,statusText:""});return h.type="error",h};var E=[301,302,303,307,308];S.redirect=function(h,g){if(E.indexOf(g)===-1)throw new RangeError("Invalid status code");return new S(null,{status:g,headers:{location:h}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(g,x){this.message=g,this.name=x;var D=Error(g);this.stack=D.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function A(h,g){return new Promise(function(x,D){var P=new k(h,g);if(P.signal&&P.signal.aborted)return D(new s.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function ge(){j.abort()}j.onload=function(){var Te={status:j.status,statusText:j.statusText,headers:R(j.getAllResponseHeaders()||"")};Te.url="responseURL"in j?j.responseURL:Te.headers.get("X-Request-URL");var bi="response"in j?j.response:j.responseText;x(new S(bi,Te))},j.onerror=function(){D(new TypeError("Network request failed"))},j.ontimeout=function(){D(new TypeError("Network request failed"))},j.onabort=function(){D(new s.DOMException("Aborted","AbortError"))},j.open(P.method,P.url,!0),P.credentials==="include"?j.withCredentials=!0:P.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&o.blob&&(j.responseType="blob"),P.headers.forEach(function(Te,bi){j.setRequestHeader(bi,Te)}),P.signal&&(P.signal.addEventListener("abort",ge),j.onreadystatechange=function(){j.readyState===4&&P.signal.removeEventListener("abort",ge)}),j.send(typeof P._bodyInit=="undefined"?null:P._bodyInit)})}return A.polyfill=!0,a.fetch||(a.fetch=A,a.Headers=p,a.Request=k,a.Response=S),s.Headers=p,s.Request=k,s.Response=S,s.fetch=A,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e})(gr,gr.exports);var zn=gr.exports;const En=xr(zn),Tg=ru({__proto__:null,default:En},[zn]),it=t=>{let e={};return t&&(typeof Headers!="undefined"&&t instanceof Headers||Tg&&zn.Headers&&t instanceof zn.Headers?e=Pm(t):Array.isArray(t)?t.forEach(([n,i])=>{n&&i!==void 0&&(e[n]=i)}):e=t),e},os=t=>t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Cg=t=>{if(!Array.isArray(t.query)){const i=t,r=[`query=${encodeURIComponent(os(i.query))}`];return t.variables&&r.push(`variables=${encodeURIComponent(i.jsonSerializer.stringify(i.variables))}`),i.operationName&&r.push(`operationName=${encodeURIComponent(i.operationName)}`),r.join("&")}if(typeof t.variables!="undefined"&&!Array.isArray(t.variables))throw new Error("Cannot create query with given variable type, array expected");const e=t,n=t.query.reduce((i,r,a)=>(i.push({query:os(r),variables:e.variables?e.jsonSerializer.stringify(e.variables[a]):void 0}),i),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(n))}`},xg=t=>async e=>{var m;const{url:n,query:i,variables:r,operationName:a,fetch:s,fetchOptions:o,middleware:l}=e,u={...e.headers};let c="",d;t==="POST"?(d=Fg(i,r,a,o.jsonSerializer),typeof d=="string"&&(u["Content-Type"]="application/json")):c=Cg({query:i,variables:r,operationName:a,jsonSerializer:(m=o.jsonSerializer)!=null?m:Wr});const f={method:t,headers:u,body:d,...o};let v=n,p=f;if(l){const N=await Promise.resolve(l({...f,url:n,operationName:a,variables:r})),{url:_,...I}=N;v=_,p=I}return c&&(v=`${v}?${c}`),await s(v,p)};class Rg{constructor(e,n={}){this.url=e,this.requestConfig=n,this.rawRequest=async(...i)=>{const[r,a,s]=i,o=Um(r,a,s),{headers:l,fetch:u=En,method:c="POST",requestMiddleware:d,responseMiddleware:f,...v}=this.requestConfig,{url:p}=this;o.signal!==void 0&&(v.signal=o.signal);const{operationName:m}=ji(o.query);return Bi({url:p,query:o.query,variables:o.variables,headers:{...it(zi(l)),...it(o.requestHeaders)},operationName:m,fetch:u,method:c,fetchOptions:v,middleware:d}).then(N=>(f&&f(N),N)).catch(N=>{throw f&&f(N),N})}}async request(e,...n){const[i,r]=n,a=$m(e,i,r),{headers:s,fetch:o=En,method:l="POST",requestMiddleware:u,responseMiddleware:c,...d}=this.requestConfig,{url:f}=this;a.signal!==void 0&&(d.signal=a.signal);const{query:v,operationName:p}=ji(a.document);return Bi({url:f,query:v,variables:a.variables,headers:{...it(zi(s)),...it(a.requestHeaders)},operationName:p,fetch:o,method:l,fetchOptions:d,middleware:u}).then(m=>(c&&c(m),m.data)).catch(m=>{throw c&&c(m),m})}batchRequests(e,n){var l;const i=Vm(e,n),{headers:r,...a}=this.requestConfig;i.signal!==void 0&&(a.signal=i.signal);const s=i.documents.map(({document:u})=>ji(u).query),o=i.documents.map(({variables:u})=>u);return Bi({url:this.url,query:s,variables:o,headers:{...it(zi(r)),...it(i.requestHeaders)},operationName:void 0,fetch:(l=this.requestConfig.fetch)!=null?l:En,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(u=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u.data)).catch(u=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,n){const{headers:i}=this.requestConfig;return i?i[e]=n:this.requestConfig.headers={[e]:n},this}setEndpoint(e){return this.url=e,this}}const Bi=async t=>{var c,d;const{query:e,variables:n,fetchOptions:i}=t,r=xg(Lm((c=t.method)!=null?c:"post")),a=Array.isArray(t.query),s=await r(t),o=await Ig(s,(d=i.jsonSerializer)!=null?d:Wr),l=Array.isArray(o)?!o.some(({data:f})=>!f):!!o.data,u=Array.isArray(o)||!o.errors||Array.isArray(o.errors)&&!o.errors.length||i.errorPolicy==="all"||i.errorPolicy==="ignore";if(s.ok&&u&&l){const{errors:f,...v}=(Array.isArray(o),o),p=i.errorPolicy==="ignore"?v:o;return{...a?{data:p}:p,headers:s.headers,status:s.status}}else{const f=typeof o=="string"?{error:o}:o;throw new $t({...f,status:s.status,headers:s.headers},{query:e,variables:n})}},Fg=(t,e,n,i)=>{const r=i!=null?i:Wr;if(!Array.isArray(t))return r.stringify({query:t,variables:e,operationName:n});if(typeof e!="undefined"&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");const a=t.reduce((s,o,l)=>(s.push({query:o,variables:e?e[l]:void 0}),s),[]);return r.stringify(a)},Ig=async(t,e)=>{let n;return t.headers.forEach((i,r)=>{r.toLowerCase()==="content-type"&&(n=i)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?e.parse(await t.text()):t.text()},zi=t=>typeof t=="function"?t():t;class Gl extends yt{constructor(){super("EVENT_CHAT_ROOM_TOKEN_ERROR","Error getting chat room connection token")}}class vi{constructor(e){w(this,"root",Lr(this));w(this,"token");this.root.setProps(e)}static toDomain(e){const n={token:e.token};return new vi(n)}toPrimitives(){const{root:e,...n}=this;return{...n}}}const Dg=yr.apiUrls.graphql;class Kl{constructor(){w(this,"client");this.client=new Rg(Dg)}async getChatRoom(e){var r;const{getChatRoomToken:n}=await this.client.request(gl,{data:{account:e.account,idEvent:e.eventId,userName:e.userName}});this.propagateGraphqlErrorIfExists(n);const i=(r=n.data)==null?void 0:r.token;if(!i)throw new Gl;return vi.toDomain({token:i})}propagateGraphqlErrorIfExists(e){if(e.__typename==="ErrorGeneral")throw new Error(e.message)}}class Wl{constructor(e){w(this,"account");this.eventChatRoomRepository=e}async get(e){this.validateAccount();try{return await this.eventChatRoomRepository.getChatRoom({...e,account:this.account})}catch(n){throw new Fr(n)}}setAccount(e){this.account=e}validateAccount(){if(!this.account)throw new Eo}}const Lg=new Kl,vr=new Wl(Lg),xe=ys("socket",Qe),ki=Hn(void 0);ki.debugLabel="chatSocketAtom";const yi=Hn(!1);yi.debugLabel="chatIsConnectedAtom";const sn=Hn([]);sn.debugLabel="chatMessageListAtom";const Jl=t=>{const{url:e,token:n,onOpen:i,onClose:r,onMessage:a,onError:s}=t,o=new WebSocket(e,n);return o.onopen=l=>i(l),o.onclose=l=>r(l),o.onerror=l=>s(l),o.onmessage=l=>a(l),o},Yl=()=>{const t="0123456789ABCDEF";let e="#";for(let n=0;n<6;n+=1)e+=t[Math.floor(Math.random()*16)];return e},Ql=t=>{var n;t.data=t.data.replace("replace_gif",(n=t.urlGif)!=null?n:"");const e=t.data.indexOf("::question__")>-1;if(e){const[i,r]=t.data.split("::")||["none","none"],a=r.split("question__")[1],s={response:i.replace("response__",""),question:JSON.parse(a)};return{...t,data:s.response,isResponse:e,responseData:t.data,question:e?s.question:null}}return t},Qr=(t,e)=>{var f,v;const{Content:n,Attributes:i,Sender:{Attributes:r}}=e,{username:a,type:s,email:o}=i,{isAdmin:l}=r,u=(f=i==null?void 0:i.id)!=null?f:Tr(8),c=((v=t.find(p=>p.username===a))==null?void 0:v.color)||Yl(),d={id:u,type:s,color:c,username:a,email:o,data:n,sendDate:i.sendDate,isAdmin:l==="true",responseAdmin:!1,question:null,account:i.account,idEvent:i.idEvent,urlGif:i.urlGif,ip:i.ip};return Ql(d)},Pg=t=>["eventChatRoom",t!=null?t:null],Xl=t=>{const{eventId:e,userName:n,enabled:i=!0}=t,r=Ir(l=>l.accountName),[a,s]=B.useState(""),o=gs.useQuery({queryKey:Pg(e),queryFn:()=>vr.get({eventId:e,userName:n}),enabled:!!r&&!!e&&i,refetchOnWindowFocus:!1,refetchOnMount:!1});return B.useEffect(()=>{r&&vr.setAccount(r)},[r]),B.useEffect(()=>{var u;const l=(u=o.data)==null?void 0:u.token;l&&s(l)},[o.data]),{getQuery:o,token:a}},$g=yr.publicUrls.wssIVSChat,Zl=t=>{const{onMessage:e,eventId:n,enabled:i=!0,userName:r,onEvent:a}=t,{token:s,getQuery:o}=Xl({eventId:n,userName:r,enabled:i}),[l,u]=pn(ki),[c,d]=pn(yi),[f,v]=pn(sn),p=()=>{if((l==null?void 0:l.readyState)===WebSocket.OPEN)return;xe.debug("connecting to the chat room");const L=Jl({token:s,url:$g,onOpen:_,onClose:T,onError:I,onMessage:M});u(L)},m=()=>{l&&l.close()},N=()=>{o.refetch(),xe.debug("reconnecting to the chat room")},_=B.useCallback(()=>{d(!0),xe.debug("connected to the chat room")},[d]),I=B.useCallback(L=>{xe.error("chat room socket error:",L)},[]),M=B.useCallback(L=>{const $=JSON.parse(L.data);switch($.Type){case"EVENT":a==null||a($);break;case"ERROR":xe.error("chat room error:",$);break;case"MESSAGE":e==null||e($);break;default:xe.error("unknown chat room event:",L)}},[a,e]),T=B.useCallback(L=>{xe.debug("disconnected from the chat room"),d(!1),N()},[]);return B.useEffect(()=>{if(s)return xe.debug("chat room token:",s),m(),p(),()=>{m()}},[s]),{socket:l,chatIsConnected:c,chatMessageList:f,setChatMessageList:v}},Ug=()=>{const t=Hi(ki),e=Hi(yi);return{sendMessage:B.useCallback((i,r)=>{if(!t||!e)return;const a={id:r.id,sendDate:new Date,content:i,action:"SEND_MESSAGE",attributes:r},s=JSON.stringify(a);t.send(s)},[e,t])}},eu=()=>{const t=kr(sn);return{handleEvent:i=>{var r;if(i.EventName==="senddeletemessage"){const a=JSON.parse((r=i.Attributes)==null?void 0:r.data);t(s=>s.filter(o=>o.id!==a.id))}},handleMessage:i=>{t(r=>[...r,Qr(r,i)])}}},Vg=t=>{const{eventId:e,userName:n}=t,[i,r]=B.useState(!1),[a,s]=B.useState(),[o,l]=B.useState(),[u,c]=B.useState([]),{handleEvent:d}=eu(),f=kr(sn),v=I=>{f(M=>[Qr(M,I),...M]),r(!1)},p=I=>{var M,T,L;if(d(I),I.EventName==="sendpinmessage"){const $=JSON.parse((M=I.Attributes)==null?void 0:M.data);s({data:$.data,id:$.id,username:$.username})}if(I.EventName==="sendunpinmessage"&&s(void 0),I.EventName==="sendhighlightproduct"){const $=JSON.parse((T=I.Attributes)==null?void 0:T.data);l({products:$.productIds,collection:$.collection,livestreamingId:$.idEvent})}if(I.EventName==="sendaddtocart"){const $=JSON.parse((L=I.Attributes)==null?void 0:L.data);c(H=>[...H,{id:$.id,sessionId:$.sessionId,productId:$.productId,productImageUrl:$.productImageUrl,productName:$.productName}])}},{socket:m,chatMessageList:N,setChatMessageList:_}=Zl({onMessage:v,onEvent:p,eventId:e,userName:n});return{socket:m,chat:N,showLoader:i,pinnedMessage:a,highlightProduct:o,productsInCart:u,setChat:_,setShowLoader:r,setPinnedMessage:s,setProductsInCart:c}},ls={startTime:"UNKNOWN",viewerCount:0,status:"UNKNOWN"},Mg=()=>{const[t,e]=B.useState([]),[n,i]=B.useState(ls);return{realTimeStreamInfo:n,productsInCart:t,onTextMetadataCue:s=>{const{action:o,data:l,startTime:u,viewerCount:c,status:d}=JSON.parse(s==null?void 0:s.text);switch(o){case"sendivsdatarealtime":{i({startTime:u,viewerCount:c,status:d});break}case"sendaddtocart":{const{id:f,sessionId:v,productId:p,productImageUrl:m,productName:N}=l;e(_=>[..._,{id:f,sessionId:v,productId:p,productImageUrl:m,productName:N}])}break}},resetRealTimeStreamInfo:()=>{i(ls)},setProductsInCart:e}};exports.AccountContractStatusTypes=jr;exports.AccountContractTypes=el;exports.AccountInvalidError=Eo;exports.AccountPlanDescriptionTypes=nl;exports.AccountRestRepository=rl;exports.AccountService=al;exports.AccountSubscriptionTypes=tl;exports.AccountTypes=Mr;exports.AddToCartActionTypes=ci;exports.AggregateRoot=Co;exports.ApiGraphqlTypes=_p;exports.BroadcastChannelEventBus=ko;exports.ComponentManager=Dl;exports.DomainError=yt;exports.ErrorCodes=ne;exports.EventBusWildcards=Mh;exports.EventChatRoom=vi;exports.EventChatRoomService=Wl;exports.EventChatRoomTokenError=Gl;exports.EventNames=ul;exports.ExternalRuntime=Kr;exports.GlobalPageSectionTypes=il;exports.GraphqlEventChatRoomRepository=Kl;exports.HttpAxiosClient=fh;exports.InvalidNizzaGlobalObjectError=Ao;exports.LanguageTypes=cl;exports.LocalRuntime=fi;exports.Logger=Ue;exports.MAX_PRODUCTS_IN_CART=jh;exports.NizzaAccount=ui;exports.NizzaEventStatus=ll;exports.NizzaProductRequestOriginTypes=fl;exports.NizzaStore=Ln;exports.NizzaVariationTypes=dl;exports.ReactHostElement=Il;exports.ResourceNotFoundError=No;exports.Runtime=Dm;exports.RuntimeStage=zr;exports.RuntimeType=Xe;exports.StoreProvider=Rm;exports.UnexpectedError=Fr;exports.ValueObject=Yd;exports.VtexIORuntime=hi;exports.VtexLegacyRuntime=pi;exports.accountAtom=qn;exports.accountService=Br;exports.addQuestionData=Ql;exports.addToCartMessages=cr;exports.apiCall=qd;exports.buildLanguageTranslations=kl;exports.buildTranslations=yl;exports.chatIsConnectedAtom=yi;exports.chatMessageListAtom=sn;exports.chatSocketAtom=ki;exports.connectToSocket=Jl;exports.createActionFactory=vl;exports.createAggregateRoot=Lr;exports.createLazyLogger=ys;exports.createStore=Sp;exports.customFetch=Dr;exports.downloadFile=Gd;exports.eventChatRoomService=vr;exports.fileOrigin=Sd;exports.getAccount=ol;exports.getClientTimeZone=Jd;exports.getNizza=Qe;exports.getRandomColor=Yl;exports.getScriptParams=yo;exports.getStore=Im;exports.getUserFriendlyMessage=Zo;exports.globalAtomStore=sl;exports.i18Init=Nl;exports.jsDownload=To;exports.normalizeChatMessage=Qr;exports.registerTranslations=Xp;exports.registerTranslationsOf=bl;exports.runAddToCartHooks=Ep;exports.runtimeList=Ll;exports.searchParams=_d;exports.shortId=Tr;exports.sleep=Nd;exports.useAccount=Vh;exports.useChatSocketActions=Ug;exports.useChatSocketClient=Vg;exports.useChatSocketHandlers=eu;exports.useConnectChatSocket=Zl;exports.useEventChatRoom=Xl;exports.useMetaDataClient=Mg;exports.useNZ=wo;exports.useNizza=Ir;exports.useStore=Fm;exports.validateRequiredProps=Rd;
115
+ }`)}function z(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function En(t){return z(" ",t.replace(/\n/g,`
116
+ `))}function os(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
117
+ `)))!==null&&e!==void 0?e:!1}const ls=t=>{var i,r;let e;const n=t.definitions.filter(a=>a.kind==="OperationDefinition");return n.length===1&&(e=(r=(i=n[0])==null?void 0:i.name)==null?void 0:r.value),e},Bi=t=>{if(typeof t=="string"){let n;try{const i=kg(t);n=ls(i)}catch{}return{query:t,operationName:n}}const e=ls(t);return{query:wg(t),operationName:e}};class $t extends Error{constructor(e,n){const i=`${$t.extractMessage(e)}: ${JSON.stringify({response:e,request:n})}`;super(i),Object.setPrototypeOf(this,$t.prototype),this.response=e,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,$t)}static extractMessage(e){var n,i,r;return(r=(i=(n=e.errors)==null?void 0:n[0])==null?void 0:i.message)!=null?r:`GraphQL Error (Code: ${e.status})`}}var vr={exports:{}};(function(t,e){var n=typeof self!="undefined"?self:xr,i=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(s){var o={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(h){return h&&DataView.prototype.isPrototypeOf(h)}if(o.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(h){return h&&u.indexOf(Object.prototype.toString.call(h))>-1};function d(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function f(h){return typeof h!="string"&&(h=String(h)),h}function v(h){var g={next:function(){var x=h.shift();return{done:x===void 0,value:x}}};return o.iterable&&(g[Symbol.iterator]=function(){return g}),g}function p(h){this.map={},h instanceof p?h.forEach(function(g,x){this.append(x,g)},this):Array.isArray(h)?h.forEach(function(g){this.append(g[0],g[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(g){this.append(g,h[g])},this)}p.prototype.append=function(h,g){h=d(h),g=f(g);var x=this.map[h];this.map[h]=x?x+", "+g:g},p.prototype.delete=function(h){delete this.map[d(h)]},p.prototype.get=function(h){return h=d(h),this.has(h)?this.map[h]:null},p.prototype.has=function(h){return this.map.hasOwnProperty(d(h))},p.prototype.set=function(h,g){this.map[d(h)]=f(g)},p.prototype.forEach=function(h,g){for(var x in this.map)this.map.hasOwnProperty(x)&&h.call(g,this.map[x],x,this)},p.prototype.keys=function(){var h=[];return this.forEach(function(g,x){h.push(x)}),v(h)},p.prototype.values=function(){var h=[];return this.forEach(function(g){h.push(g)}),v(h)},p.prototype.entries=function(){var h=[];return this.forEach(function(g,x){h.push([x,g])}),v(h)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function m(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function N(h){return new Promise(function(g,x){h.onload=function(){g(h.result)},h.onerror=function(){x(h.error)}})}function _(h){var g=new FileReader,x=N(g);return g.readAsArrayBuffer(h),x}function I(h){var g=new FileReader,x=N(g);return g.readAsText(h),x}function M(h){for(var g=new Uint8Array(h),x=new Array(g.length),D=0;D<g.length;D++)x[D]=String.fromCharCode(g[D]);return x.join("")}function T(h){if(h.slice)return h.slice(0);var g=new Uint8Array(h.byteLength);return g.set(new Uint8Array(h)),g.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(h){this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:o.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:o.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():o.arrayBuffer&&o.blob&&l(h)?(this._bodyArrayBuffer=T(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||c(h))?this._bodyArrayBuffer=T(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(M(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function H(h){var g=h.toUpperCase();return $.indexOf(g)>-1?g:h}function k(h,g){g=g||{};var x=g.body;if(h instanceof k){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,g.headers||(this.headers=new p(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!x&&h._bodyInit!=null&&(x=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new p(g.headers)),this.method=H(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&x)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(x)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function C(h){var g=new FormData;return h.trim().split("&").forEach(function(x){if(x){var D=x.split("="),P=D.shift().replace(/\+/g," "),j=D.join("=").replace(/\+/g," ");g.append(decodeURIComponent(P),decodeURIComponent(j))}}),g}function R(h){var g=new p,x=h.replace(/\r?\n[\t ]+/g," ");return x.split(/\r?\n/).forEach(function(D){var P=D.split(":"),j=P.shift().trim();if(j){var ge=P.join(":").trim();g.append(j,ge)}}),g}L.call(k.prototype);function S(h,g){g||(g={}),this.type="default",this.status=g.status===void 0?200:g.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in g?g.statusText:"OK",this.headers=new p(g.headers),this.url=g.url||"",this._initBody(h)}L.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var h=new S(null,{status:0,statusText:""});return h.type="error",h};var E=[301,302,303,307,308];S.redirect=function(h,g){if(E.indexOf(g)===-1)throw new RangeError("Invalid status code");return new S(null,{status:g,headers:{location:h}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(g,x){this.message=g,this.name=x;var D=Error(g);this.stack=D.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function A(h,g){return new Promise(function(x,D){var P=new k(h,g);if(P.signal&&P.signal.aborted)return D(new s.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function ge(){j.abort()}j.onload=function(){var Te={status:j.status,statusText:j.statusText,headers:R(j.getAllResponseHeaders()||"")};Te.url="responseURL"in j?j.responseURL:Te.headers.get("X-Request-URL");var _i="response"in j?j.response:j.responseText;x(new S(_i,Te))},j.onerror=function(){D(new TypeError("Network request failed"))},j.ontimeout=function(){D(new TypeError("Network request failed"))},j.onabort=function(){D(new s.DOMException("Aborted","AbortError"))},j.open(P.method,P.url,!0),P.credentials==="include"?j.withCredentials=!0:P.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&o.blob&&(j.responseType="blob"),P.headers.forEach(function(Te,_i){j.setRequestHeader(_i,Te)}),P.signal&&(P.signal.addEventListener("abort",ge),j.onreadystatechange=function(){j.readyState===4&&P.signal.removeEventListener("abort",ge)}),j.send(typeof P._bodyInit=="undefined"?null:P._bodyInit)})}return A.polyfill=!0,a.fetch||(a.fetch=A,a.Headers=p,a.Request=k,a.Response=S),s.Headers=p,s.Request=k,s.Response=S,s.fetch=A,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e})(vr,vr.exports);var Hn=vr.exports;const An=Rr(Hn),xg=su({__proto__:null,default:An},[Hn]),it=t=>{let e={};return t&&(typeof Headers!="undefined"&&t instanceof Headers||xg&&Hn.Headers&&t instanceof Hn.Headers?e=Um(t):Array.isArray(t)?t.forEach(([n,i])=>{n&&i!==void 0&&(e[n]=i)}):e=t),e},us=t=>t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Rg=t=>{if(!Array.isArray(t.query)){const i=t,r=[`query=${encodeURIComponent(us(i.query))}`];return t.variables&&r.push(`variables=${encodeURIComponent(i.jsonSerializer.stringify(i.variables))}`),i.operationName&&r.push(`operationName=${encodeURIComponent(i.operationName)}`),r.join("&")}if(typeof t.variables!="undefined"&&!Array.isArray(t.variables))throw new Error("Cannot create query with given variable type, array expected");const e=t,n=t.query.reduce((i,r,a)=>(i.push({query:us(r),variables:e.variables?e.jsonSerializer.stringify(e.variables[a]):void 0}),i),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(n))}`},Fg=t=>async e=>{var m;const{url:n,query:i,variables:r,operationName:a,fetch:s,fetchOptions:o,middleware:l}=e,u={...e.headers};let c="",d;t==="POST"?(d=Dg(i,r,a,o.jsonSerializer),typeof d=="string"&&(u["Content-Type"]="application/json")):c=Rg({query:i,variables:r,operationName:a,jsonSerializer:(m=o.jsonSerializer)!=null?m:Yr});const f={method:t,headers:u,body:d,...o};let v=n,p=f;if(l){const N=await Promise.resolve(l({...f,url:n,operationName:a,variables:r})),{url:_,...I}=N;v=_,p=I}return c&&(v=`${v}?${c}`),await s(v,p)};class Ig{constructor(e,n={}){this.url=e,this.requestConfig=n,this.rawRequest=async(...i)=>{const[r,a,s]=i,o=Mm(r,a,s),{headers:l,fetch:u=An,method:c="POST",requestMiddleware:d,responseMiddleware:f,...v}=this.requestConfig,{url:p}=this;o.signal!==void 0&&(v.signal=o.signal);const{operationName:m}=Bi(o.query);return zi({url:p,query:o.query,variables:o.variables,headers:{...it(Hi(l)),...it(o.requestHeaders)},operationName:m,fetch:u,method:c,fetchOptions:v,middleware:d}).then(N=>(f&&f(N),N)).catch(N=>{throw f&&f(N),N})}}async request(e,...n){const[i,r]=n,a=Vm(e,i,r),{headers:s,fetch:o=An,method:l="POST",requestMiddleware:u,responseMiddleware:c,...d}=this.requestConfig,{url:f}=this;a.signal!==void 0&&(d.signal=a.signal);const{query:v,operationName:p}=Bi(a.document);return zi({url:f,query:v,variables:a.variables,headers:{...it(Hi(s)),...it(a.requestHeaders)},operationName:p,fetch:o,method:l,fetchOptions:d,middleware:u}).then(m=>(c&&c(m),m.data)).catch(m=>{throw c&&c(m),m})}batchRequests(e,n){var l;const i=jm(e,n),{headers:r,...a}=this.requestConfig;i.signal!==void 0&&(a.signal=i.signal);const s=i.documents.map(({document:u})=>Bi(u).query),o=i.documents.map(({variables:u})=>u);return zi({url:this.url,query:s,variables:o,headers:{...it(Hi(r)),...it(i.requestHeaders)},operationName:void 0,fetch:(l=this.requestConfig.fetch)!=null?l:An,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(u=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u.data)).catch(u=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(u),u})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,n){const{headers:i}=this.requestConfig;return i?i[e]=n:this.requestConfig.headers={[e]:n},this}setEndpoint(e){return this.url=e,this}}const zi=async t=>{var c,d;const{query:e,variables:n,fetchOptions:i}=t,r=Fg($m((c=t.method)!=null?c:"post")),a=Array.isArray(t.query),s=await r(t),o=await Lg(s,(d=i.jsonSerializer)!=null?d:Yr),l=Array.isArray(o)?!o.some(({data:f})=>!f):!!o.data,u=Array.isArray(o)||!o.errors||Array.isArray(o.errors)&&!o.errors.length||i.errorPolicy==="all"||i.errorPolicy==="ignore";if(s.ok&&u&&l){const{errors:f,...v}=(Array.isArray(o),o),p=i.errorPolicy==="ignore"?v:o;return{...a?{data:p}:p,headers:s.headers,status:s.status}}else{const f=typeof o=="string"?{error:o}:o;throw new $t({...f,status:s.status,headers:s.headers},{query:e,variables:n})}},Dg=(t,e,n,i)=>{const r=i!=null?i:Yr;if(!Array.isArray(t))return r.stringify({query:t,variables:e,operationName:n});if(typeof e!="undefined"&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");const a=t.reduce((s,o,l)=>(s.push({query:o,variables:e?e[l]:void 0}),s),[]);return r.stringify(a)},Lg=async(t,e)=>{let n;return t.headers.forEach((i,r)=>{r.toLowerCase()==="content-type"&&(n=i)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?e.parse(await t.text()):t.text()},Hi=t=>typeof t=="function"?t():t;class Wl extends yt{constructor(){super("EVENT_CHAT_ROOM_TOKEN_ERROR","Error getting chat room connection token")}}class ki{constructor(e){w(this,"root",Pr(this));w(this,"token");this.root.setProps(e)}static toDomain(e){const n={token:e.token};return new ki(n)}toPrimitives(){const{root:e,...n}=this;return{...n}}}const Pg=br.apiUrls.graphql;class Jl{constructor(){w(this,"client");this.client=new Ig(Pg)}async getChatRoom(e){var r;const{getChatRoomToken:n}=await this.client.request(kl,{data:{account:e.account,idEvent:e.eventId,userName:e.userName}});this.propagateGraphqlErrorIfExists(n);const i=(r=n.data)==null?void 0:r.token;if(!i)throw new Wl;return ki.toDomain({token:i})}propagateGraphqlErrorIfExists(e){if(e.__typename==="ErrorGeneral")throw new Error(e.message)}}class Yl{constructor(e){w(this,"account");this.eventChatRoomRepository=e}async get(e){this.validateAccount();try{return await this.eventChatRoomRepository.getChatRoom({...e,account:this.account})}catch(n){throw new Ir(n)}}setAccount(e){this.account=e}validateAccount(){if(!this.account)throw new Oo}}const $g=new Jl,kr=new Yl($g),xe=_s("socket",Xe),yi=qn(void 0);yi.debugLabel="chatSocketAtom";const bi=qn(!1);bi.debugLabel="chatIsConnectedAtom";const sn=qn([]);sn.debugLabel="chatMessageListAtom";const Ql=t=>{const{url:e,token:n,onOpen:i,onClose:r,onMessage:a,onError:s}=t,o=new WebSocket(e,n);return o.onopen=l=>i(l),o.onclose=l=>r(l),o.onerror=l=>s(l),o.onmessage=l=>a(l),o},Xl=()=>{const t="0123456789ABCDEF";let e="#";for(let n=0;n<6;n+=1)e+=t[Math.floor(Math.random()*16)];return e},Zl=t=>{var n;t.data=t.data.replace("replace_gif",(n=t.urlGif)!=null?n:"");const e=t.data.indexOf("::question__")>-1;if(e){const[i,r]=t.data.split("::")||["none","none"],a=r.split("question__")[1],s={response:i.replace("response__",""),question:JSON.parse(a)};return{...t,data:s.response,isResponse:e,responseData:t.data,question:e?s.question:null}}return t},Zr=(t,e)=>{var f,v;const{Content:n,Attributes:i,Sender:{Attributes:r}}=e,{username:a,type:s,email:o}=i,{isAdmin:l}=r,u=(f=i==null?void 0:i.id)!=null?f:Cr(8),c=((v=t.find(p=>p.username===a))==null?void 0:v.color)||Xl(),d={id:u,type:s,color:c,username:a,email:o,data:n,sendDate:i.sendDate,isAdmin:l==="true",responseAdmin:!1,question:null,account:i.account,idEvent:i.idEvent,urlGif:i.urlGif,ip:i.ip};return Zl(d)},Ug=t=>["eventChatRoom",t!=null?t:null],eu=t=>{const{eventId:e,userName:n,enabled:i=!0}=t,r=Dr(l=>l.accountName),[a,s]=B.useState(""),o=ks.useQuery({queryKey:Ug(e),queryFn:()=>kr.get({eventId:e,userName:n}),enabled:!!r&&!!e&&i,refetchOnWindowFocus:!1,refetchOnMount:!1});return B.useEffect(()=>{r&&kr.setAccount(r)},[r]),B.useEffect(()=>{var u;const l=(u=o.data)==null?void 0:u.token;l&&s(l)},[o.data]),{getQuery:o,token:a}},Vg=br.publicUrls.wssIVSChat,tu=t=>{const{onMessage:e,eventId:n,enabled:i=!0,userName:r,onEvent:a}=t,{token:s,getQuery:o}=eu({eventId:n,userName:r,enabled:i}),[l,u]=mn(yi),[c,d]=mn(bi),[f,v]=mn(sn),p=()=>{if((l==null?void 0:l.readyState)===WebSocket.OPEN)return;xe.debug("connecting to the chat room");const L=Ql({token:s,url:Vg,onOpen:_,onClose:T,onError:I,onMessage:M});u(L)},m=()=>{l&&l.close()},N=()=>{o.refetch(),xe.debug("reconnecting to the chat room")},_=B.useCallback(()=>{d(!0),xe.debug("connected to the chat room")},[d]),I=B.useCallback(L=>{xe.error("chat room socket error:",L)},[]),M=B.useCallback(L=>{const $=JSON.parse(L.data);switch($.Type){case"EVENT":a==null||a($);break;case"ERROR":xe.error("chat room error:",$);break;case"MESSAGE":e==null||e($);break;default:xe.error("unknown chat room event:",L)}},[a,e]),T=B.useCallback(L=>{xe.debug("disconnected from the chat room"),d(!1),N()},[]);return B.useEffect(()=>{if(s)return xe.debug("chat room token:",s),m(),p(),()=>{m()}},[s]),{socket:l,chatIsConnected:c,chatMessageList:f,setChatMessageList:v}},Mg=()=>{const t=qi(yi),e=qi(bi);return{sendMessage:B.useCallback((i,r)=>{if(!t||!e)return;const a={id:r.id,sendDate:new Date,content:i,action:"SEND_MESSAGE",attributes:r},s=JSON.stringify(a);t.send(s)},[e,t])}},nu=()=>{const t=yr(sn);return{handleEvent:i=>{var r;if(i.EventName==="senddeletemessage"){const a=JSON.parse((r=i.Attributes)==null?void 0:r.data);t(s=>s.filter(o=>o.id!==a.id))}},handleMessage:i=>{t(r=>[...r,Zr(r,i)])}}},jg=t=>{const{eventId:e,userName:n}=t,[i,r]=B.useState(!1),[a,s]=B.useState(),[o,l]=B.useState(),[u,c]=B.useState([]),{handleEvent:d}=nu(),f=yr(sn),v=I=>{f(M=>[Zr(M,I),...M]),r(!1)},p=I=>{var M,T,L;if(d(I),I.EventName==="sendpinmessage"){const $=JSON.parse((M=I.Attributes)==null?void 0:M.data);s({data:$.data,id:$.id,username:$.username})}if(I.EventName==="sendunpinmessage"&&s(void 0),I.EventName==="sendhighlightproduct"){const $=JSON.parse((T=I.Attributes)==null?void 0:T.data);l({products:$.productIds,collection:$.collection,livestreamingId:$.idEvent})}if(I.EventName==="sendaddtocart"){const $=JSON.parse((L=I.Attributes)==null?void 0:L.data);c(H=>[...H,{id:$.id,sessionId:$.sessionId,productId:$.productId,productImageUrl:$.productImageUrl,productName:$.productName}])}},{socket:m,chatMessageList:N,setChatMessageList:_}=tu({onMessage:v,onEvent:p,eventId:e,userName:n});return{socket:m,chat:N,showLoader:i,pinnedMessage:a,highlightProduct:o,productsInCart:u,setChat:_,setShowLoader:r,setPinnedMessage:s,setProductsInCart:c}},cs={startTime:"UNKNOWN",viewerCount:0,status:"UNKNOWN"},Bg=()=>{const[t,e]=B.useState([]),[n,i]=B.useState(cs);return{realTimeStreamInfo:n,productsInCart:t,onTextMetadataCue:s=>{const{action:o,data:l,startTime:u,viewerCount:c,status:d}=JSON.parse(s==null?void 0:s.text);switch(o){case"sendivsdatarealtime":{i({startTime:u,viewerCount:c,status:d});break}case"sendaddtocart":{const{id:f,sessionId:v,productId:p,productImageUrl:m,productName:N}=l;e(_=>[..._,{id:f,sessionId:v,productId:p,productImageUrl:m,productName:N}])}break}},resetRealTimeStreamInfo:()=>{i(cs)},setProductsInCart:e}};exports.AccountContractStatusTypes=Br;exports.AccountContractTypes=nl;exports.AccountInvalidError=Oo;exports.AccountPlanDescriptionTypes=rl;exports.AccountRestRepository=sl;exports.AccountService=ol;exports.AccountSubscriptionTypes=il;exports.AccountTypes=jr;exports.AddToCartActionTypes=di;exports.AggregateRoot=Ro;exports.ApiGraphqlTypes=Np;exports.BroadcastChannelEventBus=bo;exports.ComponentManager=Pl;exports.DomainError=yt;exports.ErrorCodes=ne;exports.EventBusWildcards=Bh;exports.EventChatRoom=ki;exports.EventChatRoomService=Yl;exports.EventChatRoomTokenError=Wl;exports.EventNames=dl;exports.ExternalRuntime=Jr;exports.GlobalPageSectionTypes=al;exports.GraphqlEventChatRoomRepository=Jl;exports.HttpAxiosClient=ph;exports.InvalidNizzaGlobalObjectError=wo;exports.LanguageTypes=fl;exports.LocalRuntime=hi;exports.Logger=Ue;exports.MAX_PRODUCTS_IN_CART=zh;exports.NizzaAccount=ci;exports.NizzaEventStatus=cl;exports.NizzaProductRequestOriginTypes=pl;exports.NizzaStore=Pn;exports.NizzaVariationTypes=hl;exports.ReactHostElement=Ll;exports.ResourceNotFoundError=Ao;exports.Runtime=Pm;exports.RuntimeStage=Hr;exports.RuntimeType=Ve;exports.StoreProvider=Im;exports.UnexpectedError=Ir;exports.ValueObject=Xd;exports.VtexIORuntime=pi;exports.VtexLegacyRuntime=mi;exports.accountAtom=Gn;exports.accountService=zr;exports.addQuestionData=Zl;exports.addToCartMessages=dr;exports.apiCall=Kd;exports.buildLanguageTranslations=bl;exports.buildTranslations=_l;exports.chatIsConnectedAtom=bi;exports.chatMessageListAtom=sn;exports.chatSocketAtom=yi;exports.connectToSocket=Ql;exports.createActionFactory=yl;exports.createAggregateRoot=Pr;exports.createLazyLogger=_s;exports.createStore=Ep;exports.customFetch=Lr;exports.downloadFile=Wd;exports.eventChatRoomService=kr;exports.fileOrigin=Ed;exports.getAccount=ul;exports.getClientTimeZone=Qd;exports.getNizza=Xe;exports.getRandomColor=Xl;exports.getScriptParams=_o;exports.getStore=Lm;exports.getUserFriendlyMessage=tl;exports.globalAtomStore=ll;exports.i18Init=Al;exports.jsDownload=xo;exports.normalizeChatMessage=Zr;exports.registerTranslations=em;exports.registerTranslationsOf=Sl;exports.runAddToCartHooks=Op;exports.runtimeList=$l;exports.searchParams=Nd;exports.shortId=Cr;exports.sleep=Ad;exports.useAccount=jh;exports.useChatSocketActions=Mg;exports.useChatSocketClient=jg;exports.useChatSocketHandlers=nu;exports.useConnectChatSocket=tu;exports.useEventChatRoom=eu;exports.useMetaDataClient=Bg;exports.useNZ=Co;exports.useNizza=Dr;exports.useStore=Dm;exports.validateRequiredProps=Id;
118
118
  //# sourceMappingURL=index.cjs.map