@nizza/core 0.4.0-alpha.9 → 0.4.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,6 +1,6 @@
1
- "use strict";var Ea=Object.defineProperty;var Aa=(e,t,i)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var G=(e,t,i)=>(Aa(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react"),Fa=require("react/jsx-runtime");function Ca(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const ce=Ca(te);let Ra=0;function Ta(e,t){const i=`atom${++Ra}`,n={toString:()=>i};return typeof e=="function"?n.read=e:(n.init=e,n.read=r=>r(n),n.write=(r,a,o)=>a(n,typeof o=="function"?o(r(n)):o)),t&&(n.write=t),n}const sn=e=>"init"in e,un=e=>!!e.write,It=new WeakMap,La=(e,t)=>{It.set(e,t),e.catch(()=>{}).finally(()=>It.delete(e))},Wn=(e,t)=>{const i=It.get(e);i&&(It.delete(e),i(t))},Qn=(e,t)=>{e.status="fulfilled",e.value=t},qn=(e,t)=>{e.status="rejected",e.reason=t},Rt=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Jn=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),ln=e=>"v"in e&&e.v instanceof Promise,Tt=e=>{if("e"in e)throw e.e;return e.v},xi=()=>{const e=new WeakMap,t=new WeakMap,i=new Map;let n,r;({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&(n=new Set,r=new Set);const a=g=>e.get(g),o=(g,k)=>{({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&Object.freeze(k);const F=e.get(g);if(e.set(g,k),i.has(g)||i.set(g,F),F&&ln(F)){const T="v"in k?k.v instanceof Promise?k.v:Promise.resolve(k.v):Promise.reject(k.e);Wn(F.v,T)}},s=(g,k,F)=>{const T=new Map;let I=!1;F.forEach((V,B)=>{!V&&B===g&&(V=k),V?(T.set(B,V),k.d.get(B)!==V&&(I=!0)):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] atom state not found")}),(I||k.d.size!==T.size)&&(k.d=T)},l=(g,k,F)=>{const T=a(g),I={d:(T==null?void 0:T.d)||new Map,v:k};return F&&s(g,I,F),T&&Rt(T,I)&&T.d===I.d?T:(o(g,I),I)},c=(g,k,F,T)=>{if(k instanceof Promise){let I;const V=new Promise((B,j)=>{let K=!1;k.then(H=>{if(!K){K=!0;const u=a(g),d=l(g,V,F);Qn(V,H),B(H),(u==null?void 0:u.d)!==d.d&&z(g,d,u==null?void 0:u.d)}},H=>{if(!K){K=!0;const u=a(g),d=l(g,V,F);qn(V,H),j(H),(u==null?void 0:u.d)!==d.d&&z(g,d,u==null?void 0:u.d)}}),I=H=>{K||(K=!0,H.then(u=>Qn(V,u),u=>qn(V,u)),B(H))}});return V.status="pending",La(V,B=>{B&&I(B),T==null||T()}),l(g,V,F)}return l(g,k,F)},f=(g,k,F)=>{const T=a(g),I={d:(T==null?void 0:T.d)||new Map,e:k};return F&&s(g,I,F),T&&Jn(T,I)&&T.d===I.d?T:(o(g,I),I)},v=g=>{const k=a(g);if(k&&(k.d.forEach((K,H)=>{H!==g&&!t.has(H)&&v(H)}),Array.from(k.d).every(([K,H])=>K===g||a(K)===H)))return k;const F=new Map;let T=!0;const I=K=>{if(K===g){const u=a(K);if(u)return F.set(K,u),Tt(u);if(sn(K))return F.set(K,void 0),K.init;throw new Error("no atom init")}const H=v(K);return F.set(K,H),Tt(H)};let V,B;const j={get signal(){return V||(V=new AbortController),V.signal},get setSelf(){return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!un(g)&&console.warn("setSelf function cannot be used with read-only atom"),!B&&un(g)&&(B=(...K)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&T&&console.warn("setSelf function cannot be called in sync"),!T)return L(g,...K)}),B}};try{const K=g.read(I,j);return c(g,K,F,()=>V==null?void 0:V.abort())}catch(K){return f(g,K,F)}finally{T=!1}},O=g=>Tt(v(g)),A=g=>{let k=t.get(g);return k||(k=U(g)),k},R=(g,k)=>!k.l.size&&(!k.t.size||k.t.size===1&&k.t.has(g)),b=g=>{const k=t.get(g);k&&R(g,k)&&P(g)},_=g=>{const k=t.get(g);k==null||k.t.forEach(F=>{if(F!==g){const T=a(F),I=v(F);(!T||!Rt(T,I))&&_(F)}})},C=(g,...k)=>{let F=!0;const T=B=>Tt(v(B)),I=(B,...j)=>{let K;if(B===g){if(!sn(B))throw new Error("atom not writable");const H=a(B),u=c(B,j[0]);(!H||!Rt(H,u))&&_(B)}else K=C(B,...j);return F||Q(),K},V=g.write(T,I,...k);return F=!1,V},L=(g,...k)=>{const F=C(g,...k);return Q(),F},U=(g,k)=>{const F={t:new Set(k&&[k]),l:new Set};if(t.set(g,F),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&r.add(g),v(g).d.forEach((T,I)=>{const V=t.get(I);V?V.t.add(g):I!==g&&U(I,g)}),v(g),un(g)&&g.onMount){const T=g.onMount((...I)=>L(g,...I));T&&(F.u=T)}return F},P=g=>{var k;const F=(k=t.get(g))==null?void 0:k.u;F&&F(),t.delete(g),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&r.delete(g);const T=a(g);T?(ln(T)&&Wn(T.v),T.d.forEach((I,V)=>{if(V!==g){const B=t.get(V);B&&(B.t.delete(g),R(V,B)&&P(V))}})):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",g)},z=(g,k,F)=>{const T=new Set(k.d.keys());F==null||F.forEach((I,V)=>{if(T.has(V)){T.delete(V);return}const B=t.get(V);B&&(B.t.delete(g),R(V,B)&&P(V))}),T.forEach(I=>{const V=t.get(I);V?V.t.add(g):t.has(g)&&U(I,g)})},Q=()=>{for(;i.size;){const g=Array.from(i);i.clear(),g.forEach(([k,F])=>{const T=a(k);if(T){T.d!==(F==null?void 0:F.d)&&z(k,T,F==null?void 0:F.d);const I=t.get(k);I&&!(F&&!ln(F)&&(Rt(F,T)||Jn(F,T)))&&I.l.forEach(V=>V())}else({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] no atom state to flush")})}({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(g=>g("state"))},Y=(g,k)=>{const F=A(g);Q();const T=F.l;return T.add(k),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(I=>I("sub")),()=>{T.delete(k),b(g),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(I=>I("unsub"))}};return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"?{get:O,set:L,sub:Y,dev_subscribe_store:g=>(n.add(g),()=>{n.delete(g)}),dev_get_mounted_atoms:()=>r.values(),dev_get_atom_state:g=>e.get(g),dev_get_mounted:g=>t.get(g),dev_restore_atoms:g=>{for(const[k,F]of g)sn(k)&&(c(k,F),_(k));Q()}}:{get:O,set:L,sub:Y}};let cn;const xa=()=>(cn||(cn=xi()),cn),Pa=te.createContext(void 0),Pi=e=>{const t=te.useContext(Pa);return(e==null?void 0:e.store)||t||xa()},Da=e=>e instanceof Promise,Ia=te.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Va(e,t){const i=Pi(t),[[n,r,a],o]=te.useReducer(c=>{const f=i.get(e);return Object.is(c[0],f)&&c[1]===i&&c[2]===e?c:[f,i,e]},void 0,()=>[i.get(e),i,e]);let s=n;(r!==i||a!==e)&&(o(),s=i.get(e));const l=t==null?void 0:t.delay;return te.useEffect(()=>{const c=i.sub(e,()=>{if(typeof l=="number"){setTimeout(o,l);return}o()});return o(),c},[i,e,l]),te.useDebugValue(s),Da(s)?Ia(s):s}function ja(e,t){const i=Pi(t);return te.useCallback((...r)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");return i.set(e,...r)},[i,e])}function Ua(e,t){return[Va(e,t),ja(e,t)]}const Qt=Ta(null);Qt.debugLabel="accountAtom";const{NZ_AWS_REGION:Ma,NZ_BACKOFFICE_BACK_URL:Ba,NZ_CORE_SERVICES_GRAPHQL_URL:Ga,NZ_CORE_SERVICES_REST_URL:za}={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Ka={AWS:{region:Ma,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Ba||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:za||"https://core-services-dev.nizza.com/api",graphql:Ga||"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"}};async function An(e){const{url:t,method:i="GET",body:n,raw:r=!1,contentTypeJson:a=!0,timeout:o,...s}=e,l=a&&!e.headers?new Headers({"content-type":"application/json"}):e.headers;try{const c=new AbortController,{signal:f}=c;let v;const O=fetch(t,{method:i,headers:l,body:n,signal:f,...s});o&&(v=setTimeout(()=>{c.abort()},o));const A=await O;if(r)return A;const R=await A.json();if(clearTimeout(v),!A.ok){const b=R?JSON.stringify(R):A.statusText;throw new Error(b)}return R}catch(c){throw console.error("[CustomFetch] ",c),c}}const $a=e=>An({...e,contentTypeJson:!1,raw:!1});function Wa(e,t,i){fetch(t).then(n=>n.blob()).then(n=>Di(n,`${e}.${i}`))}const Di=(e,t,i)=>{const n=[e],r=new Blob(n,{type:i!=null?i:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,t);const a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),o=document.createElement("a");return o.style.display="none",o.href=a,o.setAttribute("download",t),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)};let Qa=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const Ii=(e=8)=>Qa(e),qa=e=>{const t=Object.entries(e).reduce((i,[n,r])=>r!==void 0?`${i}${i?"&":""}${n}=${r}`:i,"");return t?`?${t}`:""};function Ja(){const e=new Error().stack.split(`
2
- `);return e.length<3?"":e[2].trim().substring(3)}var Vi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.prefix=i(t)})(Vi,function(t){var i=function(f){for(var v=1,O=arguments.length,A;v<O;v++)for(A in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],A)&&(f[A]=arguments[v][A]);return f},n={template:"[%t] %l:",levelFormatter:function(f){return f.toUpperCase()},nameFormatter:function(f){return f||"root"},timestampFormatter:function(f){return f.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,a={},o=function(f){if(!f||!f.getLogger)throw new TypeError("Argument is not a root logger");r=f},s=function(f,v){if(!f||!f.setLevel)throw new TypeError("Argument is not a logger");var O=f.methodFactory,A=f.name||"",R=a[A]||a[""]||n;function b(_,C,L){var U=O(_,C,L),P=a[L]||a[""],z=P.template.indexOf("%t")!==-1,Q=P.template.indexOf("%l")!==-1,Y=P.template.indexOf("%n")!==-1;return function(){for(var g="",k=arguments.length,F=Array(k),T=0;T<k;T++)F[T]=arguments[T];if(A||!a[L]){var I=P.timestampFormatter(new Date),V=P.levelFormatter(_),B=P.nameFormatter(L);P.format?g+=P.format(V,B,I):(g+=P.template,z&&(g=g.replace(/%t/,I)),Q&&(g=g.replace(/%l/,V)),Y&&(g=g.replace(/%n/,B))),F.length&&typeof F[0]=="string"?F[0]=g+" "+F[0]:F.unshift(g)}U.apply(void 0,F)}}return a[A]||(f.methodFactory=b),v=v||{},v.template&&(v.format=void 0),a[A]=i({},R,v),f.setLevel(f.getLevel()),r||f.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"),f},l={reg:o,apply:s},c;return t&&(c=t.prefix,l.noConflict=function(){return t.prefix===l&&(t.prefix=c),l}),l})})(Ui);var Ha=Ui.exports;const Mi=ji(Ha);var Bi={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.log=i()})(Vi,function(){var t=function(){},i="undefined",n=typeof window!==i&&typeof window.navigator!==i&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function a(b,_){var C=b[_];if(typeof C.bind=="function")return C.bind(b);try{return Function.prototype.bind.call(C,b)}catch{return function(){return Function.prototype.apply.apply(C,[b,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(b){return b==="debug"&&(b="log"),typeof console===i?!1:b==="trace"&&n?o:console[b]!==void 0?a(console,b):console.log!==void 0?a(console,"log"):t}function l(b,_){for(var C=0;C<r.length;C++){var L=r[C];this[L]=C<b?t:this.methodFactory(L,b,_)}this.log=this.debug}function c(b,_,C){return function(){typeof console!==i&&(l.call(this,_,C),this[b].apply(this,arguments))}}function f(b,_,C){return s(b)||c.apply(this,arguments)}function v(b,_,C){var L=this,U;_=_==null?"WARN":_;var P="loglevel";typeof b=="string"?P+=":"+b:typeof b=="symbol"&&(P=void 0);function z(k){var F=(r[k]||"silent").toUpperCase();if(!(typeof window===i||!P)){try{window.localStorage[P]=F;return}catch{}try{window.document.cookie=encodeURIComponent(P)+"="+F+";"}catch{}}}function Q(){var k;if(!(typeof window===i||!P)){try{k=window.localStorage[P]}catch{}if(typeof k===i)try{var F=window.document.cookie,T=F.indexOf(encodeURIComponent(P)+"=");T!==-1&&(k=/^([^;]+)/.exec(F.slice(T))[1])}catch{}return L.levels[k]===void 0&&(k=void 0),k}}function Y(){if(!(typeof window===i||!P)){try{window.localStorage.removeItem(P);return}catch{}try{window.document.cookie=encodeURIComponent(P)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}L.name=b,L.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},L.methodFactory=C||f,L.getLevel=function(){return U},L.setLevel=function(k,F){if(typeof k=="string"&&L.levels[k.toUpperCase()]!==void 0&&(k=L.levels[k.toUpperCase()]),typeof k=="number"&&k>=0&&k<=L.levels.SILENT){if(U=k,F!==!1&&z(k),l.call(L,k,b),typeof console===i&&k<L.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+k},L.setDefaultLevel=function(k){_=k,Q()||L.setLevel(k,!1)},L.resetLevel=function(){L.setLevel(_,!1),Y()},L.enableAll=function(k){L.setLevel(L.levels.TRACE,k)},L.disableAll=function(k){L.setLevel(L.levels.SILENT,k)};var g=Q();g==null&&(g=_),L.setLevel(g,!1)}var O=new v,A={};O.getLogger=function(_){if(typeof _!="symbol"&&typeof _!="string"||_==="")throw new TypeError("You must supply a name when creating a logger.");var C=A[_];return C||(C=A[_]=new v(_,O.getLevel(),O.methodFactory)),C};var R=typeof window!==i?window.log:void 0;return O.noConflict=function(){return typeof window!==i&&window.log===O&&(window.log=R),O},O.getLoggers=function(){return A},O.default=O,O})})(Bi);var Za=Bi.exports;const Xa=ji(Za);function W(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Ya={};function Gi(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Ya}var zi=Object.assign,Vt=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,qt=Object.prototype,kn=[];Object.freeze(kn);var Fn={};Object.freeze(Fn);var eo=typeof Proxy!="undefined",to=Object.toString();function Ki(){eo||W("Proxy not available")}function $i(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ge=function(){};function me(e){return typeof e=="function"}function De(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Jt(e){return e!==null&&typeof e=="object"}function Ne(e){if(!Jt(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i.toString()===to}function Wi(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function gt(e,t,i){pe(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function Qi(e,t,i){pe(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function je(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return Jt(n)&&n[i]===!0}}function Xe(e){return e instanceof Map}function kt(e){return e instanceof Set}var qi=typeof Object.getOwnPropertySymbols!="undefined";function no(e){var t=Object.keys(e);if(!qi)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return qt.propertyIsEnumerable.call(e,n)})):t}var $e=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:qi?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Ji(e){return e===null?null:typeof e=="object"?""+e:e}function Se(e,t){return qt.hasOwnProperty.call(e,t)}var io=Object.getOwnPropertyDescriptors||function(t){var i={};return $e(t).forEach(function(n){i[n]=Vt(t,n)}),i};function Hn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oo(n.key),n)}}function Cn(e,t,i){return t&&Hn(e.prototype,t),i&&Hn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},We.apply(this,arguments)}function Hi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yn(e,t)}function yn(e,t){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yn(e,t)}function dn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e,t){if(e){if(typeof e=="string")return Zn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Zn(e,t)}}function Zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function ze(e,t){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=ro(e))||t&&e&&typeof e.length=="number"){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ao(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oo(e){var t=ao(e,"string");return typeof t=="symbol"?t:String(t)}var ve=Symbol("mobx-stored-annotations");function ge(e){function t(i,n){yt(i,n,e)}return Object.assign(t,e)}function yt(e,t,i){Se(e,ve)||gt(e,ve,We({},e[ve])),po(i)||(e[ve][t]=i)}function so(e){return Se(e,ve)||gt(e,ve,We({},e[ve])),e[ve]}var M=Symbol("mobx administration"),_t=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=$.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return pr(this)},t.reportChanged=function(){oe(),gr(this),x.stateVersion=x.stateVersion<Number.MAX_SAFE_INTEGER?x.stateVersion+1:Number.MIN_SAFE_INTEGER,se()},t.toString=function(){return this.name_},e}(),Rn=je("Atom",_t);function Zi(e,t,i){t===void 0&&(t=Ge),i===void 0&&(i=Ge);var n=new _t(e);return t!==Ge&&ms(n,t),i!==Ge&&wr(n,i),n}function uo(e,t){return e===t}function lo(e,t){return Vn(e,t)}function co(e,t){return Vn(e,t,1)}function fo(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Qe={identity:uo,structural:lo,default:fo,shallow:co};function qe(e,t,i){return Ot(e)?e:Array.isArray(e)?ie.array(e,{name:i}):Ne(e)?ie.object(e,void 0,{name:i}):Xe(e)?ie.map(e,{name:i}):kt(e)?ie.set(e,{name:i}):typeof e=="function"&&!xn(e)&&!Gt(e)?Wi(e)?ft(e):dt(i,e):e}function ho(e,t,i){if(e==null||ht(e)||Yt(e)||Ue(e)||et(e))return e;if(Array.isArray(e))return ie.array(e,{name:i,deep:!1});if(Ne(e))return ie.object(e,void 0,{name:i,deep:!1});if(Xe(e))return ie.map(e,{name:i,deep:!1});if(kt(e))return ie.set(e,{name:i,deep:!1})}function Ht(e){return e}function mo(e,t){return Vn(e,t)?t:e}var vo="override";function po(e){return e.annotationType_===vo}function bt(e,t){return{annotationType_:e,options_:t,make_:go,extend_:ko}}function go(e,t,i,n){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(xn(i.value))return 1;var a=Xi(e,this,t,i,!1);return pe(n,t,a),2}function ko(e,t,i,n){var r=Xi(e,this,t,i);return e.defineProperty_(t,r,n)}function yo(e,t,i,n){t.annotationType_,n.value}function Xi(e,t,i,n,r){var a,o,s,l,c,f,v;r===void 0&&(r=x.safeDescriptors),yo(e,t,i,n);var O=n.value;if((a=t.options_)!=null&&a.bound){var A;O=O.bind((A=e.proxy_)!=null?A:e.target_)}return{value:Je((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),O,(l=(c=t.options_)==null?void 0:c.autoAction)!=null?l:!1,(f=t.options_)!=null&&f.bound?(v=e.proxy_)!=null?v:e.target_:void 0),configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function Yi(e,t){return{annotationType_:e,options_:t,make_:_o,extend_:bo}}function _o(e,t,i,n){var r;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!Se(e.target_,t)||!Gt(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Gt(i.value))return 1;var a=er(e,this,t,i,!1,!1);return pe(n,t,a),2}function bo(e,t,i,n){var r,a=er(e,this,t,i,(r=this.options_)==null?void 0:r.bound);return e.defineProperty_(t,a,n)}function So(e,t,i,n){t.annotationType_,n.value}function er(e,t,i,n,r,a){a===void 0&&(a=x.safeDescriptors),So(e,t,i,n);var o=n.value;if(Gt(o)||(o=ft(o)),r){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function Tn(e,t){return{annotationType_:e,options_:t,make_:No,extend_:Oo}}function No(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Oo(e,t,i,n){return wo(e,this,t,i),e.defineComputedProperty_(t,We({},this.options_,{get:i.get,set:i.set}),n)}function wo(e,t,i,n){t.annotationType_,n.get}function Zt(e,t){return{annotationType_:e,options_:t,make_:Eo,extend_:Ao}}function Eo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Ao(e,t,i,n){var r,a;return Fo(e,this),e.defineObservableProperty_(t,i.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:qe,n)}function Fo(e,t,i,n){t.annotationType_}var Co="true",Ro=tr();function tr(e){return{annotationType_:Co,options_:e,make_:To,extend_:Lo}}function To(e,t,i,n){var r,a;if(i.get)return Fe.make_(e,t,i,n);if(i.set){var o=Je(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:x.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(pe(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(Wi(i.value)){var l,c=(l=this.options_)!=null&&l.autoBind?ft.bound:ft;return c.make_(e,t,i,n)}var f=(s=this.options_)!=null&&s.autoBind?dt.bound:dt;return f.make_(e,t,i,n)}var v=((r=this.options_)==null?void 0:r.deep)===!1?ie.ref:ie;if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var O;i.value=i.value.bind((O=e.proxy_)!=null?O:e.target_)}return v.make_(e,t,i,n)}function Lo(e,t,i,n){var r,a;if(i.get)return Fe.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:x.safeDescriptors?e.isPlainObject_:!0,set:Je(t.toString(),i.set)},n);if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((a=this.options_)==null?void 0:a.deep)===!1?ie.ref:ie;return s.extend_(e,t,i,n)}var xo="observable",Po="observable.ref",Do="observable.shallow",Io="observable.struct",nr={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(nr);function Lt(e){return e||nr}var ir=Zt(xo),Vo=Zt(Po,{enhancer:Ht}),jo=Zt(Do,{enhancer:ho}),Uo=Zt(Io,{enhancer:mo}),rr=ge(ir);function xt(e){return e.deep===!0?qe:e.deep===!1?Ht:Bo(e.defaultDecorator)}function Mo(e){var t;return e?(t=e.defaultDecorator)!=null?t:tr(e):void 0}function Bo(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:qe}function ar(e,t,i){if(De(t)){yt(e,t,ir);return}return Ot(e)?e:Ne(e)?ie.object(e,t,i):Array.isArray(e)?ie.array(e,t):Xe(e)?ie.map(e,t):kt(e)?ie.set(e,t):typeof e=="object"&&e!==null?e:ie.box(e,t)}zi(ar,rr);var Go={box:function(t,i){var n=Lt(i);return new Ke(t,xt(n),n.name,!0,n.equals)},array:function(t,i){var n=Lt(i);return(x.useProxies===!1||n.proxy===!1?Ds:Es)(t,xt(n),n.name)},map:function(t,i){var n=Lt(i);return new Lr(t,xt(n),n.name)},set:function(t,i){var n=Lt(i);return new Dr(t,xt(n),n.name)},object:function(t,i,n){return Ar(x.useProxies===!1||(n==null?void 0:n.proxy)===!1?At({},n):bs({},n),t,i)},ref:ge(Vo),shallow:ge(jo),deep:rr,struct:ge(Uo)},ie=zi(ar,Go),or="computed",zo="computed.struct",sr=Tn(or),Ko=Tn(zo,{equals:Qe.structural}),Fe=function(t,i){if(De(i))return yt(t,i,sr);if(Ne(t))return ge(Tn(or,t));var n=Ne(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new ct(n)};Object.assign(Fe,sr);Fe.struct=ge(Ko);var Xn,Yn,jt=0,$o=1,Wo=(Xn=(Yn=Vt(function(){},"name"))==null?void 0:Yn.configurable)!=null?Xn:!1,ei={value:"action",configurable:!0,writable:!1,enumerable:!1};function Je(e,t,i,n){i===void 0&&(i=!1);function r(){return Qo(e,i,t,n||this,arguments)}return r.isMobxAction=!0,Wo&&(ei.value=e,pe(r,"name",ei)),r}function Qo(e,t,i,n,r){var a=qo(e,t);try{return i.apply(n,r)}catch(o){throw a.error_=o,o}finally{Jo(a)}}function qo(e,t,i,n){var r=!1,a=0,o=x.trackingDerivation,s=!t||!o;oe();var l=x.allowStateChanges;s&&(Ye(),l=St(!0));var c=Ln(!0),f={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:r,startTime_:a,actionId_:$o++,parentActionId_:jt};return jt=f.actionId_,f}function Jo(e){jt!==e.actionId_&&W(30),jt=e.parentActionId_,e.error_!==void 0&&(x.suppressReactionErrors=!0),Nt(e.prevAllowStateChanges_),st(e.prevAllowStateReads_),se(),e.runAsAction_&&Te(e.prevDerivation_),x.suppressReactionErrors=!1}function ur(e,t){var i=St(e);try{return t()}finally{Nt(i)}}function St(e){var t=x.allowStateChanges;return x.allowStateChanges=e,t}function Nt(e){x.allowStateChanges=e}var lr;lr=Symbol.toPrimitive;var Ke=function(e){Hi(t,e);function t(n,r,a,o,s){var l;return a===void 0&&(a="ObservableValue"),s===void 0&&(s=Qe.default),l=e.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=s,l.value_=r(n,void 0,a),l}var i=t.prototype;return i.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},i.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==x.UNCHANGED&&this.setNewValue_(r)},i.prepareNewValue_=function(r){if(ue(this)){var a=le(this,{object:this,type:ke,newValue:r});if(!a)return x.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?x.UNCHANGED:r},i.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),de(this)&&fe(this,{type:ke,object:this,newValue:r,oldValue:a})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(r){return wt(this,r)},i.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:ke,newValue:this.value_,oldValue:void 0}),Et(this,r)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return Ji(this.get())},i[lr]=function(){return this.valueOf()},t}(_t),cr;cr=Symbol.toPrimitive;var ct=function(){function e(i){this.dependenciesState_=$.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_=$.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ut(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_=Pe.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,i.get||W(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=Je("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?Qe.structural:Qe.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Yo(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&W(32,this.name_,this.derivation),x.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)_n(this)&&(this.warnAboutUntrackedRead_(),oe(),this.value_=this.computeValue_(!1),se());else if(pr(this),_n(this)){var n=x.trackingContext;this.keepAlive_&&!n&&(x.trackingContext=this),this.trackAndCompute()&&Xo(this),x.trackingContext=n}var r=this.value_;if(Dt(r))throw r.cause;return r},t.set=function(n){if(this.setter_){this.isRunningSetter_&&W(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else W(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,r=this.dependenciesState_===$.NOT_TRACKING_,a=this.computeValue_(!0),o=r||Dt(n)||Dt(a)||!this.equals_(n,a);return o&&(this.value_=a),o},t.computeValue_=function(n){this.isComputing_=!0;var r=St(!1),a;if(n)a=dr(this,this.derivation,this.scope_);else if(x.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(o){a=new Ut(o)}return Nt(r),this.isComputing_=!1,a},t.suspend_=function(){this.keepAlive_||(bn(this),this.value_=void 0)},t.observe_=function(n,r){var a=this,o=!0,s=void 0;return Pn(function(){var l=a.get();if(!o||r){var c=Ye();n({observableKind:"computed",debugObjectName:a.name_,type:ke,object:a,newValue:l,oldValue:s}),Te(c)}o=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Ji(this.get())},t[cr]=function(){return this.valueOf()},e}(),Xt=je("ComputedValue",ct),$;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})($||($={}));var Pe;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Pe||(Pe={}));var Ut=function(t){this.cause=void 0,this.cause=t};function Dt(e){return e instanceof Ut}function _n(e){switch(e.dependenciesState_){case $.UP_TO_DATE_:return!1;case $.NOT_TRACKING_:case $.STALE_:return!0;case $.POSSIBLY_STALE_:{for(var t=Ln(!0),i=Ye(),n=e.observing_,r=n.length,a=0;a<r;a++){var o=n[a];if(Xt(o)){if(x.disableErrorBoundaries)o.get();else try{o.get()}catch{return Te(i),st(t),!0}if(e.dependenciesState_===$.STALE_)return Te(i),st(t),!0}}return hr(e),Te(i),st(t),!1}}}function dr(e,t,i){var n=Ln(!0);hr(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++x.runId;var r=x.trackingDerivation;x.trackingDerivation=e,x.inBatch++;var a;if(x.disableErrorBoundaries===!0)a=t.call(i);else try{a=t.call(i)}catch(o){a=new Ut(o)}return x.inBatch--,x.trackingDerivation=r,Ho(e),st(n),a}function Ho(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=$.UP_TO_DATE_,r=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,r!==o&&(i[r]=s),r++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=r,e.newObserving_=null,a=t.length;a--;){var l=t[a];l.diffValue_===0&&mr(l,e),l.diffValue_=0}for(;r--;){var c=i[r];c.diffValue_===1&&(c.diffValue_=0,Zo(c,e))}n!==$.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function bn(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)mr(t[i],e);e.dependenciesState_=$.NOT_TRACKING_}function fr(e){var t=Ye();try{return e()}finally{Te(t)}}function Ye(){var e=x.trackingDerivation;return x.trackingDerivation=null,e}function Te(e){x.trackingDerivation=e}function Ln(e){var t=x.allowStateReads;return x.allowStateReads=e,t}function st(e){x.allowStateReads=e}function hr(e){if(e.dependenciesState_!==$.UP_TO_DATE_){e.dependenciesState_=$.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=$.UP_TO_DATE_}}var fn=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,this.stateVersion=Number.MIN_SAFE_INTEGER},hn=!0,x=function(){var e=Gi();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(hn=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new fn().version&&(hn=!1),hn?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new fn):(setTimeout(function(){W(35)},1),new fn)}();function Zo(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function mr(e,t){e.observers_.delete(t),e.observers_.size===0&&vr(e)}function vr(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,x.pendingUnobservations.push(e))}function oe(){x.inBatch++}function se(){if(--x.inBatch===0){kr();for(var e=x.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof ct&&i.suspend_())}x.pendingUnobservations=[]}}function pr(e){var t=x.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&x.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&x.inBatch>0&&vr(e),!1)}function gr(e){e.lowestObserverState_!==$.STALE_&&(e.lowestObserverState_=$.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===$.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=$.STALE_}))}function Xo(e){e.lowestObserverState_!==$.STALE_&&(e.lowestObserverState_=$.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===$.POSSIBLY_STALE_?t.dependenciesState_=$.STALE_:t.dependenciesState_===$.UP_TO_DATE_&&(e.lowestObserverState_=$.UP_TO_DATE_)}))}function Yo(e){e.lowestObserverState_===$.UP_TO_DATE_&&(e.lowestObserverState_=$.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===$.UP_TO_DATE_&&(t.dependenciesState_=$.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Mt=function(){function e(i,n,r,a){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=$.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_=Pe.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=r,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,x.pendingReactions.push(this),kr())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){oe(),this.isScheduled_=!1;var n=x.trackingContext;if(x.trackingContext=this,_n(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}x.trackingContext=n,se()}},t.track=function(n){if(!this.isDisposed_){oe(),this.isRunning_=!0;var r=x.trackingContext;x.trackingContext=this;var a=dr(this,n,void 0);x.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&bn(this),Dt(a)&&this.reportExceptionInDerivation_(a.cause),se()}},t.reportExceptionInDerivation_=function(n){var r=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(x.disableErrorBoundaries)throw n;var a="[mobx] uncaught error in '"+this+"'";x.suppressReactionErrors||console.error(a,n),x.globalReactionErrorHandlers.forEach(function(o){return o(n,r)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(oe(),bn(this),se()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[M]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),ks(this,n)},e}(),es=100,ts=function(t){return t()};function kr(){x.inBatch>0||x.isRunningReactions||ts(ns)}function ns(){x.isRunningReactions=!0;for(var e=x.pendingReactions,t=0;e.length>0;){++t===es&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,r=i.length;n<r;n++)i[n].runReaction_()}x.isRunningReactions=!1}var Bt=je("Reaction",Mt);function ut(){return!1}function is(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var yr="action",rs="action.bound",_r="autoAction",as="autoAction.bound",os="<unnamed action>",br=bt(yr),ss=bt(rs,{bound:!0}),Sr=bt(_r,{autoAction:!0}),us=bt(as,{autoAction:!0,bound:!0});function Nr(e){var t=function(n,r){if(me(n))return Je(n.name||os,n,e);if(me(r))return Je(n,r,e);if(De(r))return yt(n,r,e?Sr:br);if(De(n))return ge(bt(e?_r:yr,{name:n,autoAction:e}))};return t}var Ce=Nr(!1);Object.assign(Ce,br);var dt=Nr(!0);Object.assign(dt,Sr);Ce.bound=ge(ss);dt.bound=ge(us);function xn(e){return me(e)&&e.isMobxAction===!0}function Pn(e,t){var i,n;t===void 0&&(t=Fn);var r=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",a=!t.scheduler&&!t.delay,o;if(a)o=new Mt(r,function(){this.track(c)},t.onError,t.requiresObservable);else{var s=Or(t),l=!1;o=new Mt(r,function(){l||(l=!0,s(function(){l=!1,o.isDisposed_||o.track(c)}))},t.onError,t.requiresObservable)}function c(){e(o)}return o.schedule_(),o.getDisposer_()}var ls=function(t){return t()};function Or(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ls}function cs(e,t,i){var n;i===void 0&&(i=Fn);var r=(n=i.name)!=null?n:"Reaction",a=Ce(r,i.onError?ds(i.onError,t):t),o=!i.scheduler&&!i.delay,s=Or(i),l=!0,c=!1,f,v,O=i.compareStructural?Qe.structural:i.equals||Qe.default,A=new Mt(r,function(){l||o?R():c||(c=!0,s(R))},i.onError,i.requiresObservable);function R(){if(c=!1,!A.isDisposed_){var b=!1;A.track(function(){var _=ur(!1,function(){return e(A)});b=l||!O(f,_),v=f,f=_}),(l&&i.fireImmediately||!l&&b)&&a(f,v,A),l=!1}}return A.schedule_(),A.getDisposer_()}function ds(e,t){return function(){try{return t.apply(this,arguments)}catch(i){e.call(this,i)}}}var fs="onBO",hs="onBUO";function ms(e,t,i){return Er(fs,e,t,i)}function wr(e,t,i){return Er(hs,e,t,i)}function Er(e,t,i,n){var r=typeof n=="function"?Ie(t,i):Ie(t),a=me(n)?n:i,o=e+"L";return r[o]?r[o].add(a):r[o]=new Set([a]),function(){var s=r[o];s&&(s.delete(a),s.size===0&&delete r[o])}}function Ar(e,t,i,n){var r=io(t),a=At(e,n)[M];oe();try{$e(r).forEach(function(o){a.extend_(o,r[o],i&&o in i?i[o]:!0)})}finally{se()}return e}var vs=0;function Fr(){this.message="FLOW_CANCELLED"}Fr.prototype=Object.create(Error.prototype);var ti=Yi("flow"),ps=Yi("flow.bound",{bound:!0}),ft=Object.assign(function(t,i){if(De(i))return yt(t,i,ti);var n=t,r=n.name||"<unnamed flow>",a=function(){var s=this,l=arguments,c=++vs,f=Ce(r+" - runid: "+c+" - init",n).apply(s,l),v,O=void 0,A=new Promise(function(R,b){var _=0;v=b;function C(P){O=void 0;var z;try{z=Ce(r+" - runid: "+c+" - yield "+_++,f.next).call(f,P)}catch(Q){return b(Q)}U(z)}function L(P){O=void 0;var z;try{z=Ce(r+" - runid: "+c+" - yield "+_++,f.throw).call(f,P)}catch(Q){return b(Q)}U(z)}function U(P){if(me(P==null?void 0:P.then)){P.then(U,b);return}return P.done?R(P.value):(O=Promise.resolve(P.value),O.then(C,L))}C(void 0)});return A.cancel=Ce(r+" - runid: "+c+" - cancel",function(){try{O&&ni(O);var R=f.return(void 0),b=Promise.resolve(R.value);b.then(Ge,Ge),ni(b),v(new Fr)}catch(_){v(_)}}),A};return a.isMobXFlow=!0,a},ti);ft.bound=ge(ps);function ni(e){me(e.cancel)&&e.cancel()}function Gt(e){return(e==null?void 0:e.isMobXFlow)===!0}function gs(e,t){return e?t!==void 0?ht(e)?e[M].values_.has(t):!1:ht(e)||!!e[M]||Rn(e)||Bt(e)||Xt(e):!1}function Ot(e){return gs(e)}function ks(){W("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var r=ys(i);if(!r)return W("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");r.isTracing_===Pe.NONE&&console.log("[mobx.trace] '"+r.name_+"' tracing enabled"),r.isTracing_=e?Pe.BREAK:Pe.LOG}function ys(e){switch(e.length){case 0:return x.trackingDerivation;case 1:return Ie(e[0]);case 2:return Ie(e[0],e[1])}}function _e(e,t){t===void 0&&(t=void 0),oe();try{return e.apply(t)}finally{se()}}function Me(e){return e[M]}var _s={has:function(t,i){return Me(t).has_(i)},get:function(t,i){return Me(t).get_(i)},set:function(t,i,n){var r;return De(i)?(r=Me(t).set_(i,n,!0))!=null?r:!0:!1},deleteProperty:function(t,i){var n;return De(i)?(n=Me(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var r;return(r=Me(t).defineProperty_(i,n))!=null?r:!0},ownKeys:function(t){return Me(t).ownKeys_()},preventExtensions:function(t){W(13)}};function bs(e,t){var i,n;return Ki(),e=At(e,t),(n=(i=e[M]).proxy_)!=null?n:i.proxy_=new Proxy(e,_s)}function ue(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function wt(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),$i(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function le(e,t){var i=Ye();try{for(var n=[].concat(e.interceptors_||[]),r=0,a=n.length;r<a&&(t=n[r](t),t&&!t.type&&W(14),!!t);r++);return t}finally{Te(i)}}function de(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Et(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),$i(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function fe(e,t){var i=Ye(),n=e.changeListeners_;if(n){n=n.slice();for(var r=0,a=n.length;r<a;r++)n[r](t);Te(i)}}function Ss(e,t,i){var n=At(e,i)[M];oe();try{var r;(r=t)!=null||(t=so(e)),$e(t).forEach(function(a){return n.make_(a,t[a])})}finally{se()}return e}var mn=Symbol("mobx-keys");function Ns(e,t,i){if(Ne(e))return Ar(e,e,t,i);var n=At(e,i)[M];if(!e[mn]){var r=Object.getPrototypeOf(e),a=new Set([].concat($e(e),$e(r)));a.delete("constructor"),a.delete(M),gt(r,mn,a)}oe();try{e[mn].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{se()}return e}var ii="splice",ke="update",Os=1e4,ws={get:function(t,i){var n=t[M];return i===M?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):Se(zt,i)?zt[i]:t[i]},set:function(t,i,n){var r=t[M];return i==="length"&&r.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:r.set_(parseInt(i),n),!0},preventExtensions:function(){W(15)}},Dn=function(){function e(i,n,r,a){i===void 0&&(i="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 _t(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return wt(this,n)},t.observe_=function(n,r){return r===void 0&&(r=!1),r&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Et(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&W("Out of range: "+n);var r=this.values_.length;if(n!==r)if(n>r){for(var a=new Array(n-r),o=0;o<n-r;o++)a[o]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(n,r-n)},t.updateArrayLength_=function(n,r){n!==this.lastKnownLength_&&W(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Ur(n+r+1)},t.spliceWithArray_=function(n,r,a){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?r=s-n:r==null?r=0:r=Math.max(0,Math.min(r,s-n)),a===void 0&&(a=kn),ue(this)){var l=le(this,{object:this.proxy_,type:ii,index:n,removedCount:r,added:a});if(!l)return kn;r=l.removedCount,a=l.added}if(a=a.length===0?a:a.map(function(v){return o.enhancer_(v,void 0)}),this.legacyMode_){var c=a.length-r;this.updateArrayLength_(s,c)}var f=this.spliceItemsIntoValues_(n,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(n,a,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(n,r,a){if(a.length<Os){var o;return(o=this.values_).splice.apply(o,[n,r].concat(a))}else{var s=this.values_.slice(n,n+r),l=this.values_.slice(n+r);this.values_.length+=a.length-r;for(var c=0;c<a.length;c++)this.values_[n+c]=a[c];for(var f=0;f<l.length;f++)this.values_[n+a.length+f]=l[f];return s}},t.notifyArrayChildUpdate_=function(n,r,a){var o=!this.owned_&&ut(),s=de(this),l=s||o?{observableKind:"array",object:this.proxy_,type:ke,debugObjectName:this.atom_.name_,index:n,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),s&&fe(this,l)},t.notifyArraySplice_=function(n,r,a){var o=!this.owned_&&ut(),s=de(this),l=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:ii,index:n,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),s&&fe(this,l)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,r){var a=this.values_;if(this.legacyMode_&&n>a.length&&W(17,n,a.length),n<a.length){this.atom_;var o=a[n];if(ue(this)){var s=le(this,{type:ke,object:this.proxy_,index:n,newValue:r});if(!s)return;r=s.newValue}r=this.enhancer_(r,o);var l=r!==o;l&&(a[n]=r,this.notifyArrayChildUpdate_(n,r,o))}else{for(var c=new Array(n+1-a.length),f=0;f<c.length-1;f++)c[f]=void 0;c[c.length-1]=r,this.spliceWithArray_(a.length,0,c)}},e}();function Es(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),Ki();var r=new Dn(i,t,n,!1);Qi(r.values_,M,r);var a=new Proxy(r.values_,ws);if(r.proxy_=a,e&&e.length){var o=St(!0);r.spliceWithArray_(0,0,e),Nt(o)}return a}var zt={clear:function(){return this.splice(0)},replace:function(t){var i=this[M];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=this[M];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,r)},spliceWithArray:function(t,i,n){return this[M].spliceWithArray_(t,i,n)},push:function(){for(var t=this[M],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[M].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[M],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return x.trackingDerivation&&W(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){x.trackingDerivation&&W(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[M],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};ee("concat",Oe);ee("flat",Oe);ee("includes",Oe);ee("indexOf",Oe);ee("join",Oe);ee("lastIndexOf",Oe);ee("slice",Oe);ee("toString",Oe);ee("toLocaleString",Oe);ee("every",xe);ee("filter",xe);ee("find",xe);ee("findIndex",xe);ee("flatMap",xe);ee("forEach",xe);ee("map",xe);ee("some",xe);ee("reduce",Cr);ee("reduceRight",Cr);function ee(e,t){typeof Array.prototype[e]=="function"&&(zt[e]=t(e))}function Oe(e){return function(){var t=this[M];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function xe(e){return function(t,i){var n=this,r=this[M];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[e](function(o,s){return t.call(i,o,s,n)})}}function Cr(e){return function(){var t=this,i=this[M];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),r=arguments[0];return arguments[0]=function(a,o,s){return r(a,o,s,t)},n[e].apply(n,arguments)}}var As=je("ObservableArrayAdministration",Dn);function Yt(e){return Jt(e)&&As(e[M])}var Rr,Tr,Fs={},Re="add",Kt="delete";Rr=Symbol.iterator;Tr=Symbol.toStringTag;var Lr=function(){function e(i,n,r){var a=this;n===void 0&&(n=qe),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[M]=Fs,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_=n,this.name_=r,me(Map)||W(18),this.keysAtom_=Zi("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,ur(!0,function(){a.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var r=this;if(!x.trackingDerivation)return this.has_(n);var a=this.hasMap_.get(n);if(!a){var o=a=new Ke(this.has_(n),Ht,"ObservableMap.key?",!1);this.hasMap_.set(n,o),wr(o,function(){return r.hasMap_.delete(n)})}return a.get()},t.set=function(n,r){var a=this.has_(n);if(ue(this)){var o=le(this,{type:a?ke:Re,object:this,newValue:r,name:n});if(!o)return this;r=o.newValue}return a?this.updateValue_(n,r):this.addValue_(n,r),this},t.delete=function(n){var r=this;if(this.keysAtom_,ue(this)){var a=le(this,{type:Kt,object:this,name:n});if(!a)return!1}if(this.has_(n)){var o=ut(),s=de(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Kt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return _e(function(){var c;r.keysAtom_.reportChanged(),(c=r.hasMap_.get(n))==null||c.setNewValue_(!1);var f=r.data_.get(n);f.setNewValue_(void 0),r.data_.delete(n)}),s&&fe(this,l),!0}return!1},t.updateValue_=function(n,r){var a=this.data_.get(n);if(r=a.prepareNewValue_(r),r!==x.UNCHANGED){var o=ut(),s=de(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:ke,object:this,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&fe(this,l)}},t.addValue_=function(n,r){var a=this;this.keysAtom_,_e(function(){var c,f=new Ke(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(n,f),r=f.value_,(c=a.hasMap_.get(n))==null||c.setNewValue_(!0),a.keysAtom_.reportChanged()});var o=ut(),s=de(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Re,object:this,name:n,newValue:r}:null;s&&fe(this,l)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,r=this.keys();return mt({next:function(){var o=r.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:n.get(l)}}})},t.entries=function(){var n=this,r=this.keys();return mt({next:function(){var o=r.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:[l,n.get(l)]}}})},t[Rr]=function(){return this.entries()},t.forEach=function(n,r){for(var a=ze(this),o;!(o=a()).done;){var s=o.value,l=s[0],c=s[1];n.call(r,c,l,this)}},t.merge=function(n){var r=this;return Ue(n)&&(n=new Map(n)),_e(function(){Ne(n)?no(n).forEach(function(a){return r.set(a,n[a])}):Array.isArray(n)?n.forEach(function(a){var o=a[0],s=a[1];return r.set(o,s)}):Xe(n)?(n.constructor!==Map&&W(19,n),n.forEach(function(a,o){return r.set(o,a)})):n!=null&&W(20,n)}),this},t.clear=function(){var n=this;_e(function(){fr(function(){for(var r=ze(n.keys()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.replace=function(n){var r=this;return _e(function(){for(var a=Cs(n),o=new Map,s=!1,l=ze(r.data_.keys()),c;!(c=l()).done;){var f=c.value;if(!a.has(f)){var v=r.delete(f);if(v)s=!0;else{var O=r.data_.get(f);o.set(f,O)}}}for(var A=ze(a.entries()),R;!(R=A()).done;){var b=R.value,_=b[0],C=b[1],L=r.data_.has(_);if(r.set(_,C),r.data_.has(_)){var U=r.data_.get(_);o.set(_,U),L||(s=!0)}}if(!s)if(r.data_.size!==o.size)r.keysAtom_.reportChanged();else for(var P=r.data_.keys(),z=o.keys(),Q=P.next(),Y=z.next();!Q.done;){if(Q.value!==Y.value){r.keysAtom_.reportChanged();break}Q=P.next(),Y=z.next()}r.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,r){return Et(this,n)},t.intercept_=function(n){return wt(this,n)},Cn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Tr,get:function(){return"Map"}}]),e}(),Ue=je("ObservableMap",Lr);function Cs(e){if(Xe(e)||Ue(e))return e;if(Array.isArray(e))return new Map(e);if(Ne(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return W(21,e)}var xr,Pr,Rs={};xr=Symbol.iterator;Pr=Symbol.toStringTag;var Dr=function(){function e(i,n,r){n===void 0&&(n=qe),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[M]=Rs,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,me(Set)||W(22),this.atom_=Zi(this.name_),this.enhancer_=function(a,o){return n(a,o,r)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;_e(function(){fr(function(){for(var r=ze(n.data_.values()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.forEach=function(n,r){for(var a=ze(this),o;!(o=a()).done;){var s=o.value;n.call(r,s,s,this)}},t.add=function(n){var r=this;if(this.atom_,ue(this)){var a=le(this,{type:Re,object:this,newValue:n});if(!a)return this}if(!this.has(n)){_e(function(){r.data_.add(r.enhancer_(n,void 0)),r.atom_.reportChanged()});var o=!1,s=de(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:Re,object:this,newValue:n}:null;s&&fe(this,l)}return this},t.delete=function(n){var r=this;if(ue(this)){var a=le(this,{type:Kt,object:this,oldValue:n});if(!a)return!1}if(this.has(n)){var o=!1,s=de(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:Kt,object:this,oldValue:n}:null;return _e(function(){r.atom_.reportChanged(),r.data_.delete(n)}),s&&fe(this,l),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,r=Array.from(this.keys()),a=Array.from(this.values());return mt({next:function(){var s=n;return n+=1,s<a.length?{value:[r[s],a[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,r=0,a=Array.from(this.data_.values());return mt({next:function(){return r<a.length?{value:n.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},t.replace=function(n){var r=this;return et(n)&&(n=new Set(n)),_e(function(){Array.isArray(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):kt(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):n!=null&&W("Cannot initialize set from "+n)}),this},t.observe_=function(n,r){return Et(this,n)},t.intercept_=function(n){return wt(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[xr]=function(){return this.values()},Cn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Pr,get:function(){return"Set"}}]),e}(),et=je("ObservableSet",Dr),ri=Object.create(null),ai="remove",Ir=function(){function e(i,n,r,a){n===void 0&&(n=new Map),a===void 0&&(a=Ro),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_=i,this.values_=n,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new _t("ObservableObject.keys"),this.isPlainObject_=Ne(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,r){var a=this.values_.get(n);if(a instanceof ct)return a.set(r),!0;if(ue(this)){var o=le(this,{type:ke,object:this.proxy_||this.target_,name:n,newValue:r});if(!o)return null;r=o.newValue}if(r=a.prepareNewValue_(r),r!==x.UNCHANGED){var s=de(this),l=!1,c=s||l?{type:ke,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&fe(this,c)}return!0},t.get_=function(n){return x.trackingDerivation&&!Se(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,r,a){return a===void 0&&(a=!1),Se(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,r):a?Reflect.set(this.target_,n,r):(this.target_[n]=r,!0):this.extend_(n,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(n){if(!x.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(n);return r||(r=new Ke(n in this.target_,Ht,"ObservableObject.key?",!1),this.pendingKeys_.set(n,r)),r.get()},t.make_=function(n,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(n in this.target_)){var a;if((a=this.target_[ve])!=null&&a[n])return;W(1,r.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==qt;){var s=Vt(o,n);if(s){var l=r.make_(this,n,s,o);if(l===0)return;if(l===1)break}o=Object.getPrototypeOf(o)}si(this,r,n)}},t.extend_=function(n,r,a,o){if(o===void 0&&(o=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(n,r,o);var s=a.extend_(this,n,r,o);return s&&si(this,a,n),s},t.defineProperty_=function(n,r,a){a===void 0&&(a=!1);try{oe();var o=this.delete_(n);if(!o)return o;if(ue(this)){var s=le(this,{object:this.proxy_||this.target_,name:n,type:Re,newValue:r.value});if(!s)return null;var l=s.newValue;r.value!==l&&(r=We({},r,{value:l}))}if(a){if(!Reflect.defineProperty(this.target_,n,r))return!1}else pe(this.target_,n,r);this.notifyPropertyAddition_(n,r.value)}finally{se()}return!0},t.defineObservableProperty_=function(n,r,a,o){o===void 0&&(o=!1);try{oe();var s=this.delete_(n);if(!s)return s;if(ue(this)){var l=le(this,{object:this.proxy_||this.target_,name:n,type:Re,newValue:r});if(!l)return null;r=l.newValue}var c=oi(n),f={configurable:x.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:c.get,set:c.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else pe(this.target_,n,f);var v=new Ke(r,a,"ObservableObject.key",!1);this.values_.set(n,v),this.notifyPropertyAddition_(n,v.value_)}finally{se()}return!0},t.defineComputedProperty_=function(n,r,a){a===void 0&&(a=!1);try{oe();var o=this.delete_(n);if(!o)return o;if(ue(this)){var s=le(this,{object:this.proxy_||this.target_,name:n,type:Re,newValue:void 0});if(!s)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=oi(n),c={configurable:x.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(a){if(!Reflect.defineProperty(this.target_,n,c))return!1}else pe(this.target_,n,c);this.values_.set(n,new ct(r)),this.notifyPropertyAddition_(n,void 0)}finally{se()}return!0},t.delete_=function(n,r){if(r===void 0&&(r=!1),!Se(this.target_,n))return!0;if(ue(this)){var a=le(this,{object:this.proxy_||this.target_,name:n,type:ai});if(!a)return null}try{var o,s;oe();var l=de(this),c=!1,f=this.values_.get(n),v=void 0;if(!f&&(l||c)){var O;v=(O=Vt(this.target_,n))==null?void 0:O.value}if(r){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(f&&(this.values_.delete(n),f instanceof Ke&&(v=f.value_),gr(f)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),l||c){var A={type:ai,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:n};l&&fe(this,A)}}finally{se()}return!0},t.observe_=function(n,r){return Et(this,n)},t.intercept_=function(n){return wt(this,n)},t.notifyPropertyAddition_=function(n,r){var a,o,s=de(this),l=!1;if(s||l){var c=s||l?{type:Re,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:r}:null;s&&fe(this,c)}(a=this.pendingKeys_)==null||(o=a.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),$e(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function At(e,t){var i;if(Se(e,M))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",r=new Ir(e,new Map,String(n),Mo(t));return gt(e,M,r),e}var Ts=je("ObservableObjectAdministration",Ir);function oi(e){return ri[e]||(ri[e]={get:function(){return this[M].getObservablePropValue_(e)},set:function(i){return this[M].setObservablePropValue_(e,i)}})}function ht(e){return Jt(e)?Ts(e[M]):!1}function si(e,t,i){var n;(n=e.target_[ve])==null||delete n[i]}var Ls=jr(0),vn=0,Vr=function(){};function xs(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}xs(Vr,Array.prototype);var In=function(e,t,i){Hi(n,e);function n(a,o,s,l){var c;s===void 0&&(s="ObservableArray"),l===void 0&&(l=!1),c=e.call(this)||this;var f=new Dn(s,o,l,!0);if(f.proxy_=dn(c),Qi(dn(c),M,f),a&&a.length){var v=St(!0);c.spliceWithArray(0,0,a),Nt(v)}return Object.defineProperty(dn(c),"0",Ls),c}var r=n.prototype;return r.concat=function(){this[M].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),s.map(function(c){return Yt(c)?c.slice():c}))},r[i]=function(){var a=this,o=0;return mt({next:function(){return o<a.length?{value:a[o++],done:!1}:{done:!0,value:void 0}}})},Cn(n,[{key:"length",get:function(){return this[M].getArrayLength_()},set:function(o){this[M].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Vr,Symbol.toStringTag,Symbol.iterator);Object.entries(zt).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&gt(In.prototype,t,i)});function jr(e){return{enumerable:!1,configurable:!0,get:function(){return this[M].get_(e)},set:function(i){this[M].set_(e,i)}}}function Ps(e){pe(In.prototype,""+e,jr(e))}function Ur(e){if(e>vn){for(var t=vn;t<e+100;t++)Ps(t);vn=e}}Ur(1e3);function Ds(e,t,i){return new In(e,t,i)}function Ie(e,t){if(typeof e=="object"&&e!==null){if(Yt(e))return t!==void 0&&W(23),e[M].atom_;if(et(e))return e.atom_;if(Ue(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||W(25,t,Sn(e)),i}if(ht(e)){if(!t)return W(26);var n=e[M].values_.get(t);return n||W(27,t,Sn(e)),n}if(Rn(e)||Xt(e)||Bt(e))return e}else if(me(e)&&Bt(e[M]))return e[M];W(28)}function Mr(e,t){if(e||W(29),t!==void 0)return Mr(Ie(e,t));if(Rn(e)||Xt(e)||Bt(e)||Ue(e)||et(e))return e;if(e[M])return e[M];W(24,e)}function Sn(e,t){var i;if(t!==void 0)i=Ie(e,t);else{if(xn(e))return e.name;ht(e)||Ue(e)||et(e)?i=Mr(e):i=Ie(e)}return i.name_}var ui=qt.toString;function Vn(e,t,i){return i===void 0&&(i=-1),Nn(e,t,i)}function Nn(e,t,i,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var o=ui.call(e);if(o!==ui.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=li(e),t=li(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(me(l)&&l instanceof l&&me(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],r=r||[];for(var f=n.length;f--;)if(n[f]===e)return r[f]===t;if(n.push(e),r.push(t),s){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!Nn(e[f],t[f],i-1,n,r))return!1}else{var v=Object.keys(e),O;if(f=v.length,Object.keys(t).length!==f)return!1;for(;f--;)if(O=v[f],!(Se(t,O)&&Nn(e[O],t[O],i-1,n,r)))return!1}return n.pop(),r.pop(),!0}function li(e){return Yt(e)?e.slice():Xe(e)||Ue(e)||kt(e)||et(e)?Array.from(e.entries()):e}function mt(e){return e[Symbol.iterator]=Is,e}function Is(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Gi();typeof t[e]=="undefined"&&W("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:is,extras:{getDebugName:Sn},$mobx:M});class Ft extends Error{constructor(t,i,n){super(i),this.value=n,this.name=t}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class Br extends Ft{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class Gr extends Ft{constructor(t){var i;super("APP_UNEXPECTED_ERROR",(i=t.message)!=null?i:"An unexpected error occurred.",t)}}class Vs extends Ft{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class zr extends Ft{constructor(t){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
1
+ "use strict";var vr=Object.defineProperty;var pr=(e,t,i)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var C=(e,t,i)=>(pr(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),gr=require("react/jsx-runtime");function kr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const q=kr(M);let yr=0;function _r(e,t){const i=`atom${++yr}`,n={toString:()=>i};return typeof e=="function"?n.read=e:(n.init=e,n.read=a=>a(n),n.write=(a,r,o)=>r(n,typeof o=="function"?o(a(n)):o)),t&&(n.write=t),n}const Wt=e=>"init"in e,qt=e=>!!e.write,Nt=new WeakMap,br=(e,t)=>{Nt.set(e,t),e.catch(()=>{}).finally(()=>Nt.delete(e))},Vn=(e,t)=>{const i=Nt.get(e);i&&(Nt.delete(e),i(t))},jn=(e,t)=>{e.status="fulfilled",e.value=t},Un=(e,t)=>{e.status="rejected",e.reason=t},gt=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Mn=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),Jt=e=>"v"in e&&e.v instanceof Promise,kt=e=>{if("e"in e)throw e.e;return e.v},Oi=()=>{const e=new WeakMap,t=new WeakMap,i=new Map;let n,a;({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&(n=new Set,a=new Set);const r=f=>e.get(f),o=(f,h)=>{({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&Object.freeze(h);const k=e.get(f);if(e.set(f,h),i.has(f)||i.set(f,k),k&&Jt(k)){const S="v"in h?h.v instanceof Promise?h.v:Promise.resolve(h.v):Promise.reject(h.e);Vn(k.v,S)}},s=(f,h,k)=>{const S=new Map;let E=!1;k.forEach((w,R)=>{!w&&R===f&&(w=h),w?(S.set(R,w),h.d.get(R)!==w&&(E=!0)):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] atom state not found")}),(E||h.d.size!==S.size)&&(h.d=S)},u=(f,h,k)=>{const S=r(f),E={d:(S==null?void 0:S.d)||new Map,v:h};return k&&s(f,E,k),S&&gt(S,E)&&S.d===E.d?S:(o(f,E),E)},l=(f,h,k,S)=>{if(h instanceof Promise){let E;const w=new Promise((R,ie)=>{let P=!1;h.then(V=>{if(!P){P=!0;const I=r(f),K=u(f,w,k);jn(w,V),R(V),(I==null?void 0:I.d)!==K.d&&T(f,K,I==null?void 0:I.d)}},V=>{if(!P){P=!0;const I=r(f),K=u(f,w,k);Un(w,V),ie(V),(I==null?void 0:I.d)!==K.d&&T(f,K,I==null?void 0:I.d)}}),E=V=>{P||(P=!0,V.then(I=>jn(w,I),I=>Un(w,I)),R(V))}});return w.status="pending",br(w,R=>{R&&E(R),S==null||S()}),u(f,w,k)}return u(f,h,k)},d=(f,h,k)=>{const S=r(f),E={d:(S==null?void 0:S.d)||new Map,e:h};return k&&s(f,E,k),S&&Mn(S,E)&&S.d===E.d?S:(o(f,E),E)},c=f=>{const h=r(f);if(h&&(h.d.forEach((P,V)=>{V!==f&&!t.has(V)&&c(V)}),Array.from(h.d).every(([P,V])=>P===f||r(P)===V)))return h;const k=new Map;let S=!0;const E=P=>{if(P===f){const I=r(P);if(I)return k.set(P,I),kt(I);if(Wt(P))return k.set(P,void 0),P.init;throw new Error("no atom init")}const V=c(P);return k.set(P,V),kt(V)};let w,R;const ie={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!qt(f)&&console.warn("setSelf function cannot be used with read-only atom"),!R&&qt(f)&&(R=(...P)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&S&&console.warn("setSelf function cannot be called in sync"),!S)return N(f,...P)}),R}};try{const P=f.read(E,ie);return l(f,P,k,()=>w==null?void 0:w.abort())}catch(P){return d(f,P,k)}finally{S=!1}},p=f=>kt(c(f)),g=f=>{let h=t.get(f);return h||(h=A(f)),h},b=(f,h)=>!h.l.size&&(!h.t.size||h.t.size===1&&h.t.has(f)),v=f=>{const h=t.get(f);h&&b(f,h)&&O(f)},m=f=>{const h=t.get(f);h==null||h.t.forEach(k=>{if(k!==f){const S=r(k),E=c(k);(!S||!gt(S,E))&&m(k)}})},y=(f,...h)=>{let k=!0;const S=R=>kt(c(R)),E=(R,...ie)=>{let P;if(R===f){if(!Wt(R))throw new Error("atom not writable");const V=r(R),I=l(R,ie[0]);(!V||!gt(V,I))&&m(R)}else P=y(R,...ie);return k||L(),P},w=f.write(S,E,...h);return k=!1,w},N=(f,...h)=>{const k=y(f,...h);return L(),k},A=(f,h)=>{const k={t:new Set(h&&[h]),l:new Set};if(t.set(f,k),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.add(f),c(f).d.forEach((S,E)=>{const w=t.get(E);w?w.t.add(f):E!==f&&A(E,f)}),c(f),qt(f)&&f.onMount){const S=f.onMount((...E)=>N(f,...E));S&&(k.u=S)}return k},O=f=>{var h;const k=(h=t.get(f))==null?void 0:h.u;k&&k(),t.delete(f),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.delete(f);const S=r(f);S?(Jt(S)&&Vn(S.v),S.d.forEach((E,w)=>{if(w!==f){const R=t.get(w);R&&(R.t.delete(f),b(w,R)&&O(w))}})):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",f)},T=(f,h,k)=>{const S=new Set(h.d.keys());k==null||k.forEach((E,w)=>{if(S.has(w)){S.delete(w);return}const R=t.get(w);R&&(R.t.delete(f),b(w,R)&&O(w))}),S.forEach(E=>{const w=t.get(E);w?w.t.add(f):t.has(f)&&A(E,f)})},L=()=>{for(;i.size;){const f=Array.from(i);i.clear(),f.forEach(([h,k])=>{const S=r(h);if(S){S.d!==(k==null?void 0:k.d)&&T(h,S,k==null?void 0:k.d);const E=t.get(h);E&&!(k&&!Jt(k)&&(gt(k,S)||Mn(k,S)))&&E.l.forEach(w=>w())}else({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] no atom state to flush")})}({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(f=>f("state"))},z=(f,h)=>{const k=g(f);L();const S=k.l;return S.add(h),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(E=>E("sub")),()=>{S.delete(h),v(f),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(E=>E("unsub"))}};return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"?{get:p,set:N,sub:z,dev_subscribe_store:f=>(n.add(f),()=>{n.delete(f)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:f=>e.get(f),dev_get_mounted:f=>t.get(f),dev_restore_atoms:f=>{for(const[h,k]of f)Wt(h)&&(l(h,k),m(h));L()}}:{get:p,set:N,sub:z}};let Ht;const Sr=()=>(Ht||(Ht=Oi()),Ht),Nr=M.createContext(void 0),Ei=e=>{const t=M.useContext(Nr);return(e==null?void 0:e.store)||t||Sr()},Or=e=>e instanceof Promise,Er=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function wr(e,t){const i=Ei(t),[[n,a,r],o]=M.useReducer(l=>{const d=i.get(e);return Object.is(l[0],d)&&l[1]===i&&l[2]===e?l:[d,i,e]},void 0,()=>[i.get(e),i,e]);let s=n;(a!==i||r!==e)&&(o(),s=i.get(e));const u=t==null?void 0:t.delay;return M.useEffect(()=>{const l=i.sub(e,()=>{if(typeof u=="number"){setTimeout(o,u);return}o()});return o(),l},[i,e,u]),M.useDebugValue(s),Or(s)?Er(s):s}function Ar(e,t){const i=Ei(t);return M.useCallback((...a)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");return i.set(e,...a)},[i,e])}function Fr(e,t){return[wr(e,t),Ar(e,t)]}const Pt=_r(null);Pt.debugLabel="accountAtom";const{NZ_AWS_REGION:Cr,NZ_BACKOFFICE_BACK_URL:Rr,NZ_CORE_SERVICES_GRAPHQL_URL:Tr,NZ_CORE_SERVICES_REST_URL:xr}={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Dr={AWS:{region:Cr,cognito:{userPoolId:"us-east-1_EZ7wuZ4ig",userPoolWebClientId:"2jok7cst8ebf6ppscrhji57gvr"}},apiUrls:{restV1:Rr||"https://b133h34s56.execute-api.us-east-1.amazonaws.com",restV2:xr||"https://core-services-prod.nizza.com/api",graphql:Tr||"https://core-services-prod.nizza.com/graphql",corsProxy:"https://3hvqfl2xcg.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platform.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundle.nizza.com"}};async function hn(e){const{url:t,method:i="GET",body:n,raw:a=!1,contentTypeJson:r=!0,timeout:o,...s}=e,u=r&&!e.headers?new Headers({"content-type":"application/json"}):e.headers;try{const l=new AbortController,{signal:d}=l;let c;const p=fetch(t,{method:i,headers:u,body:n,signal:d,...s});o&&(c=setTimeout(()=>{l.abort()},o));const g=await p;if(a)return g;const b=await g.json();if(clearTimeout(c),!g.ok){const v=b?JSON.stringify(b):g.statusText;throw new Error(v)}return b}catch(l){throw console.error("[CustomFetch] ",l),l}}const Pr=e=>hn({...e,contentTypeJson:!1,raw:!1});function Lr(e,t,i){fetch(t).then(n=>n.blob()).then(n=>wi(n,`${e}.${i}`))}const wi=(e,t,i)=>{const n=[e],a=new Blob(n,{type:i!=null?i:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,t);const r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),o=document.createElement("a");return o.style.display="none",o.href=r,o.setAttribute("download",t),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(r)},200)};let Ir=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const Ai=(e=8)=>Ir(e),Vr=e=>{const t=Object.entries(e).reduce((i,[n,a])=>a!==void 0?`${i}${i?"&":""}${n}=${a}`:i,"");return t?`?${t}`:""};function jr(){const e=new Error().stack.split(`
2
+ `);return e.length<3?"":e[2].trim().substring(3)}var Fi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ri={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.prefix=i(t)})(Fi,function(t){var i=function(d){for(var c=1,p=arguments.length,g;c<p;c++)for(g in arguments[c])Object.prototype.hasOwnProperty.call(arguments[c],g)&&(d[g]=arguments[c][g]);return d},n={template:"[%t] %l:",levelFormatter:function(d){return d.toUpperCase()},nameFormatter:function(d){return d||"root"},timestampFormatter:function(d){return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,r={},o=function(d){if(!d||!d.getLogger)throw new TypeError("Argument is not a root logger");a=d},s=function(d,c){if(!d||!d.setLevel)throw new TypeError("Argument is not a logger");var p=d.methodFactory,g=d.name||"",b=r[g]||r[""]||n;function v(m,y,N){var A=p(m,y,N),O=r[N]||r[""],T=O.template.indexOf("%t")!==-1,L=O.template.indexOf("%l")!==-1,z=O.template.indexOf("%n")!==-1;return function(){for(var f="",h=arguments.length,k=Array(h),S=0;S<h;S++)k[S]=arguments[S];if(g||!r[N]){var E=O.timestampFormatter(new Date),w=O.levelFormatter(m),R=O.nameFormatter(N);O.format?f+=O.format(w,R,E):(f+=O.template,T&&(f=f.replace(/%t/,E)),L&&(f=f.replace(/%l/,w)),z&&(f=f.replace(/%n/,R))),k.length&&typeof k[0]=="string"?k[0]=f+" "+k[0]:k.unshift(f)}A.apply(void 0,k)}}return r[g]||(d.methodFactory=v),c=c||{},c.template&&(c.format=void 0),r[g]=i({},b,c),d.setLevel(d.getLevel()),a||d.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"),d},u={reg:o,apply:s},l;return t&&(l=t.prefix,u.noConflict=function(){return t.prefix===u&&(t.prefix=l),u}),u})})(Ri);var Ur=Ri.exports;const Ti=Ci(Ur);var xi={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.log=i()})(Fi,function(){var t=function(){},i="undefined",n=typeof window!==i&&typeof window.navigator!==i&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function r(v,m){var y=v[m];if(typeof y.bind=="function")return y.bind(v);try{return Function.prototype.bind.call(y,v)}catch{return function(){return Function.prototype.apply.apply(y,[v,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(v){return v==="debug"&&(v="log"),typeof console===i?!1:v==="trace"&&n?o:console[v]!==void 0?r(console,v):console.log!==void 0?r(console,"log"):t}function u(v,m){for(var y=0;y<a.length;y++){var N=a[y];this[N]=y<v?t:this.methodFactory(N,v,m)}this.log=this.debug}function l(v,m,y){return function(){typeof console!==i&&(u.call(this,m,y),this[v].apply(this,arguments))}}function d(v,m,y){return s(v)||l.apply(this,arguments)}function c(v,m,y){var N=this,A;m=m==null?"WARN":m;var O="loglevel";typeof v=="string"?O+=":"+v:typeof v=="symbol"&&(O=void 0);function T(h){var k=(a[h]||"silent").toUpperCase();if(!(typeof window===i||!O)){try{window.localStorage[O]=k;return}catch{}try{window.document.cookie=encodeURIComponent(O)+"="+k+";"}catch{}}}function L(){var h;if(!(typeof window===i||!O)){try{h=window.localStorage[O]}catch{}if(typeof h===i)try{var k=window.document.cookie,S=k.indexOf(encodeURIComponent(O)+"=");S!==-1&&(h=/^([^;]+)/.exec(k.slice(S))[1])}catch{}return N.levels[h]===void 0&&(h=void 0),h}}function z(){if(!(typeof window===i||!O)){try{window.localStorage.removeItem(O);return}catch{}try{window.document.cookie=encodeURIComponent(O)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}N.name=v,N.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},N.methodFactory=y||d,N.getLevel=function(){return A},N.setLevel=function(h,k){if(typeof h=="string"&&N.levels[h.toUpperCase()]!==void 0&&(h=N.levels[h.toUpperCase()]),typeof h=="number"&&h>=0&&h<=N.levels.SILENT){if(A=h,k!==!1&&T(h),u.call(N,h,v),typeof console===i&&h<N.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+h},N.setDefaultLevel=function(h){m=h,L()||N.setLevel(h,!1)},N.resetLevel=function(){N.setLevel(m,!1),z()},N.enableAll=function(h){N.setLevel(N.levels.TRACE,h)},N.disableAll=function(h){N.setLevel(N.levels.SILENT,h)};var f=L();f==null&&(f=m),N.setLevel(f,!1)}var p=new c,g={};p.getLogger=function(m){if(typeof m!="symbol"&&typeof m!="string"||m==="")throw new TypeError("You must supply a name when creating a logger.");var y=g[m];return y||(y=g[m]=new c(m,p.getLevel(),p.methodFactory)),y};var b=typeof window!==i?window.log:void 0;return p.noConflict=function(){return typeof window!==i&&window.log===p&&(window.log=b),p},p.getLoggers=function(){return g},p.default=p,p})})(xi);var Mr=xi.exports;const Br=Ci(Mr);function D(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var zr={};function Di(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:zr}var Pi=Object.assign,Ot=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,Lt=Object.prototype,rn=[];Object.freeze(rn);var vn={};Object.freeze(vn);var Gr=typeof Proxy!="undefined",$r=Object.toString();function Li(){Gr||D("Proxy not available")}function Ii(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ae=function(){};function X(e){return typeof e=="function"}function ye(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function It(e){return e!==null&&typeof e=="object"}function ue(e){if(!It(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i.toString()===$r}function Vi(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function it(e,t,i){ee(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function ji(e,t,i){ee(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function Se(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return It(n)&&n[i]===!0}}function Ve(e){return e instanceof Map}function at(e){return e instanceof Set}var Ui=typeof Object.getOwnPropertySymbols!="undefined";function Kr(e){var t=Object.keys(e);if(!Ui)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return Lt.propertyIsEnumerable.call(e,n)})):t}var Re=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ui?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Mi(e){return e===null?null:typeof e=="object"?""+e:e}function se(e,t){return Lt.hasOwnProperty.call(e,t)}var Qr=Object.getOwnPropertyDescriptors||function(t){var i={};return Re(t).forEach(function(n){i[n]=Ot(t,n)}),i};function Bn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jr(n.key),n)}}function pn(e,t,i){return t&&Bn(e.prototype,t),i&&Bn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Te.apply(this,arguments)}function Bi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},on(e,t)}function Zt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wr(e,t){if(e){if(typeof e=="string")return zn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return zn(e,t)}}function zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Fe(e,t){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Wr(e))||t&&e&&typeof e.length=="number"){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qr(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jr(e){var t=qr(e,"string");return typeof t=="symbol"?t:String(t)}var Y=Symbol("mobx-stored-annotations");function te(e){function t(i,n){rt(i,n,e)}return Object.assign(t,e)}function rt(e,t,i){se(e,Y)||it(e,Y,Te({},e[Y])),ao(i)||(e[Y][t]=i)}function Hr(e){return se(e,Y)||it(e,Y,Te({},e[Y])),e[Y]}var F=Symbol("mobx administration"),ot=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=x.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return sa(this)},t.reportChanged=function(){G(),ua(this),_.stateVersion=_.stateVersion<Number.MAX_SAFE_INTEGER?_.stateVersion+1:Number.MIN_SAFE_INTEGER,$()},t.toString=function(){return this.name_},e}(),gn=Se("Atom",ot);function zi(e,t,i){t===void 0&&(t=Ae),i===void 0&&(i=Ae);var n=new ot(e);return t!==Ae&&is(n,t),i!==Ae&&pa(n,i),n}function Zr(e,t){return e===t}function Xr(e,t){return On(e,t)}function Yr(e,t){return On(e,t,1)}function eo(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var xe={identity:Zr,structural:Xr,default:eo,shallow:Yr};function De(e,t,i){return dt(e)?e:Array.isArray(e)?B.array(e,{name:i}):ue(e)?B.object(e,void 0,{name:i}):Ve(e)?B.map(e,{name:i}):at(e)?B.set(e,{name:i}):typeof e=="function"&&!_n(e)&&!Ct(e)?Vi(e)?Xe(e):Ze(i,e):e}function to(e,t,i){if(e==null||Ye(e)||Mt(e)||Ne(e)||Ue(e))return e;if(Array.isArray(e))return B.array(e,{name:i,deep:!1});if(ue(e))return B.object(e,void 0,{name:i,deep:!1});if(Ve(e))return B.map(e,{name:i,deep:!1});if(at(e))return B.set(e,{name:i,deep:!1})}function Vt(e){return e}function no(e,t){return On(e,t)?t:e}var io="override";function ao(e){return e.annotationType_===io}function st(e,t){return{annotationType_:e,options_:t,make_:ro,extend_:oo}}function ro(e,t,i,n){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(_n(i.value))return 1;var r=Gi(e,this,t,i,!1);return ee(n,t,r),2}function oo(e,t,i,n){var a=Gi(e,this,t,i);return e.defineProperty_(t,a,n)}function so(e,t,i,n){t.annotationType_,n.value}function Gi(e,t,i,n,a){var r,o,s,u,l,d,c;a===void 0&&(a=_.safeDescriptors),so(e,t,i,n);var p=n.value;if((r=t.options_)!=null&&r.bound){var g;p=p.bind((g=e.proxy_)!=null?g:e.target_)}return{value:Pe((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),p,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function $i(e,t){return{annotationType_:e,options_:t,make_:uo,extend_:lo}}function uo(e,t,i,n){var a;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!se(e.target_,t)||!Ct(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Ct(i.value))return 1;var r=Ki(e,this,t,i,!1,!1);return ee(n,t,r),2}function lo(e,t,i,n){var a,r=Ki(e,this,t,i,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,r,n)}function co(e,t,i,n){t.annotationType_,n.value}function Ki(e,t,i,n,a,r){r===void 0&&(r=_.safeDescriptors),co(e,t,i,n);var o=n.value;if(Ct(o)||(o=Xe(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function kn(e,t){return{annotationType_:e,options_:t,make_:fo,extend_:mo}}function fo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function mo(e,t,i,n){return ho(e,this,t,i),e.defineComputedProperty_(t,Te({},this.options_,{get:i.get,set:i.set}),n)}function ho(e,t,i,n){t.annotationType_,n.get}function jt(e,t){return{annotationType_:e,options_:t,make_:vo,extend_:po}}function vo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function po(e,t,i,n){var a,r;return go(e,this),e.defineObservableProperty_(t,i.value,(a=(r=this.options_)==null?void 0:r.enhancer)!=null?a:De,n)}function go(e,t,i,n){t.annotationType_}var ko="true",yo=Qi();function Qi(e){return{annotationType_:ko,options_:e,make_:_o,extend_:bo}}function _o(e,t,i,n){var a,r;if(i.get)return fe.make_(e,t,i,n);if(i.set){var o=Pe(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:_.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(ee(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(Vi(i.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Xe.bound:Xe;return l.make_(e,t,i,n)}var d=(s=this.options_)!=null&&s.autoBind?Ze.bound:Ze;return d.make_(e,t,i,n)}var c=((a=this.options_)==null?void 0:a.deep)===!1?B.ref:B;if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var p;i.value=i.value.bind((p=e.proxy_)!=null?p:e.target_)}return c.make_(e,t,i,n)}function bo(e,t,i,n){var a,r;if(i.get)return fe.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:_.safeDescriptors?e.isPlainObject_:!0,set:Pe(t.toString(),i.set)},n);if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((r=this.options_)==null?void 0:r.deep)===!1?B.ref:B;return s.extend_(e,t,i,n)}var So="observable",No="observable.ref",Oo="observable.shallow",Eo="observable.struct",Wi={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Wi);function yt(e){return e||Wi}var qi=jt(So),wo=jt(No,{enhancer:Vt}),Ao=jt(Oo,{enhancer:to}),Fo=jt(Eo,{enhancer:no}),Ji=te(qi);function _t(e){return e.deep===!0?De:e.deep===!1?Vt:Ro(e.defaultDecorator)}function Co(e){var t;return e?(t=e.defaultDecorator)!=null?t:Qi(e):void 0}function Ro(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:De}function Hi(e,t,i){if(ye(t)){rt(e,t,qi);return}return dt(e)?e:ue(e)?B.object(e,t,i):Array.isArray(e)?B.array(e,t):Ve(e)?B.map(e,t):at(e)?B.set(e,t):typeof e=="object"&&e!==null?e:B.box(e,t)}Pi(Hi,Ji);var To={box:function(t,i){var n=yt(i);return new Ce(t,_t(n),n.name,!0,n.equals)},array:function(t,i){var n=yt(i);return(_.useProxies===!1||n.proxy===!1?Os:vs)(t,_t(n),n.name)},map:function(t,i){var n=yt(i);return new Na(t,_t(n),n.name)},set:function(t,i){var n=yt(i);return new wa(t,_t(n),n.name)},object:function(t,i,n){return ka(_.useProxies===!1||(n==null?void 0:n.proxy)===!1?mt({},n):ds({},n),t,i)},ref:te(wo),shallow:te(Ao),deep:Ji,struct:te(Fo)},B=Pi(Hi,To),Zi="computed",xo="computed.struct",Xi=kn(Zi),Do=kn(xo,{equals:xe.structural}),fe=function(t,i){if(ye(i))return rt(t,i,Xi);if(ue(t))return te(kn(Zi,t));var n=ue(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new He(n)};Object.assign(fe,Xi);fe.struct=te(Do);var Gn,$n,Et=0,Po=1,Lo=(Gn=($n=Ot(function(){},"name"))==null?void 0:$n.configurable)!=null?Gn:!1,Kn={value:"action",configurable:!0,writable:!1,enumerable:!1};function Pe(e,t,i,n){i===void 0&&(i=!1);function a(){return Io(e,i,t,n||this,arguments)}return a.isMobxAction=!0,Lo&&(Kn.value=e,ee(a,"name",Kn)),a}function Io(e,t,i,n,a){var r=Vo(e,t);try{return i.apply(n,a)}catch(o){throw r.error_=o,o}finally{jo(r)}}function Vo(e,t,i,n){var a=!1,r=0,o=_.trackingDerivation,s=!t||!o;G();var u=_.allowStateChanges;s&&(je(),u=ut(!0));var l=yn(!0),d={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:a,startTime_:r,actionId_:Po++,parentActionId_:Et};return Et=d.actionId_,d}function jo(e){Et!==e.actionId_&&D(30),Et=e.parentActionId_,e.error_!==void 0&&(_.suppressReactionErrors=!0),lt(e.prevAllowStateChanges_),We(e.prevAllowStateReads_),$(),e.runAsAction_&&ve(e.prevDerivation_),_.suppressReactionErrors=!1}function Yi(e,t){var i=ut(e);try{return t()}finally{lt(i)}}function ut(e){var t=_.allowStateChanges;return _.allowStateChanges=e,t}function lt(e){_.allowStateChanges=e}var ea;ea=Symbol.toPrimitive;var Ce=function(e){Bi(t,e);function t(n,a,r,o,s){var u;return r===void 0&&(r="ObservableValue"),s===void 0&&(s=xe.default),u=e.call(this,r)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=a,u.name_=r,u.equals=s,u.value_=a(n,void 0,r),u}var i=t.prototype;return i.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},i.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==_.UNCHANGED&&this.setNewValue_(a)},i.prepareNewValue_=function(a){if(Q(this)){var r=W(this,{object:this,type:ne,newValue:a});if(!r)return _.UNCHANGED;a=r.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?_.UNCHANGED:a},i.setNewValue_=function(a){var r=this.value_;this.value_=a,this.reportChanged(),J(this)&&H(this,{type:ne,object:this,newValue:a,oldValue:r})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(a){return ct(this,a)},i.observe_=function(a,r){return r&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:ne,newValue:this.value_,oldValue:void 0}),ft(this,a)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return Mi(this.get())},i[ea]=function(){return this.valueOf()},t}(ot),ta;ta=Symbol.toPrimitive;var He=function(){function e(i){this.dependenciesState_=x.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_=x.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new wt(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_=ke.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,i.get||D(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=Pe("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?xe.structural:xe.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){zo(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&D(32,this.name_,this.derivation),_.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)sn(this)&&(this.warnAboutUntrackedRead_(),G(),this.value_=this.computeValue_(!1),$());else if(sa(this),sn(this)){var n=_.trackingContext;this.keepAlive_&&!n&&(_.trackingContext=this),this.trackAndCompute()&&Bo(this),_.trackingContext=n}var a=this.value_;if(St(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter_&&D(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else D(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===x.NOT_TRACKING_,r=this.computeValue_(!0),o=a||St(n)||St(r)||!this.equals_(n,r);return o&&(this.value_=r),o},t.computeValue_=function(n){this.isComputing_=!0;var a=ut(!1),r;if(n)r=na(this,this.derivation,this.scope_);else if(_.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(o){r=new wt(o)}return lt(a),this.isComputing_=!1,r},t.suspend_=function(){this.keepAlive_||(un(this),this.value_=void 0)},t.observe_=function(n,a){var r=this,o=!0,s=void 0;return bn(function(){var u=r.get();if(!o||a){var l=je();n({observableKind:"computed",debugObjectName:r.name_,type:ne,object:r,newValue:u,oldValue:s}),ve(l)}o=!1,s=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Mi(this.get())},t[ta]=function(){return this.valueOf()},e}(),Ut=Se("ComputedValue",He),x;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(x||(x={}));var ke;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(ke||(ke={}));var wt=function(t){this.cause=void 0,this.cause=t};function St(e){return e instanceof wt}function sn(e){switch(e.dependenciesState_){case x.UP_TO_DATE_:return!1;case x.NOT_TRACKING_:case x.STALE_:return!0;case x.POSSIBLY_STALE_:{for(var t=yn(!0),i=je(),n=e.observing_,a=n.length,r=0;r<a;r++){var o=n[r];if(Ut(o)){if(_.disableErrorBoundaries)o.get();else try{o.get()}catch{return ve(i),We(t),!0}if(e.dependenciesState_===x.STALE_)return ve(i),We(t),!0}}return aa(e),ve(i),We(t),!1}}}function na(e,t,i){var n=yn(!0);aa(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++_.runId;var a=_.trackingDerivation;_.trackingDerivation=e,_.inBatch++;var r;if(_.disableErrorBoundaries===!0)r=t.call(i);else try{r=t.call(i)}catch(o){r=new wt(o)}return _.inBatch--,_.trackingDerivation=a,Uo(e),We(n),r}function Uo(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=x.UP_TO_DATE_,a=0,r=e.unboundDepsCount_,o=0;o<r;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,a!==o&&(i[a]=s),a++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=a,e.newObserving_=null,r=t.length;r--;){var u=t[r];u.diffValue_===0&&ra(u,e),u.diffValue_=0}for(;a--;){var l=i[a];l.diffValue_===1&&(l.diffValue_=0,Mo(l,e))}n!==x.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function un(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)ra(t[i],e);e.dependenciesState_=x.NOT_TRACKING_}function ia(e){var t=je();try{return e()}finally{ve(t)}}function je(){var e=_.trackingDerivation;return _.trackingDerivation=null,e}function ve(e){_.trackingDerivation=e}function yn(e){var t=_.allowStateReads;return _.allowStateReads=e,t}function We(e){_.allowStateReads=e}function aa(e){if(e.dependenciesState_!==x.UP_TO_DATE_){e.dependenciesState_=x.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=x.UP_TO_DATE_}}var Xt=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,this.stateVersion=Number.MIN_SAFE_INTEGER},Yt=!0,_=function(){var e=Di();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Yt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Xt().version&&(Yt=!1),Yt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Xt):(setTimeout(function(){D(35)},1),new Xt)}();function Mo(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ra(e,t){e.observers_.delete(t),e.observers_.size===0&&oa(e)}function oa(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,_.pendingUnobservations.push(e))}function G(){_.inBatch++}function $(){if(--_.inBatch===0){la();for(var e=_.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof He&&i.suspend_())}_.pendingUnobservations=[]}}function sa(e){var t=_.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&_.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&_.inBatch>0&&oa(e),!1)}function ua(e){e.lowestObserverState_!==x.STALE_&&(e.lowestObserverState_=x.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===x.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=x.STALE_}))}function Bo(e){e.lowestObserverState_!==x.STALE_&&(e.lowestObserverState_=x.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===x.POSSIBLY_STALE_?t.dependenciesState_=x.STALE_:t.dependenciesState_===x.UP_TO_DATE_&&(e.lowestObserverState_=x.UP_TO_DATE_)}))}function zo(e){e.lowestObserverState_===x.UP_TO_DATE_&&(e.lowestObserverState_=x.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===x.UP_TO_DATE_&&(t.dependenciesState_=x.POSSIBLY_STALE_,t.onBecomeStale_())}))}var At=function(){function e(i,n,a,r){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=x.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_=ke.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=a,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,_.pendingReactions.push(this),la())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){G(),this.isScheduled_=!1;var n=_.trackingContext;if(_.trackingContext=this,sn(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}_.trackingContext=n,$()}},t.track=function(n){if(!this.isDisposed_){G(),this.isRunning_=!0;var a=_.trackingContext;_.trackingContext=this;var r=na(this,n,void 0);_.trackingContext=a,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&un(this),St(r)&&this.reportExceptionInDerivation_(r.cause),$()}},t.reportExceptionInDerivation_=function(n){var a=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(_.disableErrorBoundaries)throw n;var r="[mobx] uncaught error in '"+this+"'";_.suppressReactionErrors||console.error(r,n),_.globalReactionErrorHandlers.forEach(function(o){return o(n,a)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(G(),un(this),$()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[F]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),ss(this,n)},e}(),Go=100,$o=function(t){return t()};function la(){_.inBatch>0||_.isRunningReactions||$o(Ko)}function Ko(){_.isRunningReactions=!0;for(var e=_.pendingReactions,t=0;e.length>0;){++t===Go&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,a=i.length;n<a;n++)i[n].runReaction_()}_.isRunningReactions=!1}var Ft=Se("Reaction",At);function qe(){return!1}function Qo(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var da="action",Wo="action.bound",ca="autoAction",qo="autoAction.bound",Jo="<unnamed action>",fa=st(da),Ho=st(Wo,{bound:!0}),ma=st(ca,{autoAction:!0}),Zo=st(qo,{autoAction:!0,bound:!0});function ha(e){var t=function(n,a){if(X(n))return Pe(n.name||Jo,n,e);if(X(a))return Pe(n,a,e);if(ye(a))return rt(n,a,e?ma:fa);if(ye(n))return te(st(e?ca:da,{name:n,autoAction:e}))};return t}var me=ha(!1);Object.assign(me,fa);var Ze=ha(!0);Object.assign(Ze,ma);me.bound=te(Ho);Ze.bound=te(Zo);function _n(e){return X(e)&&e.isMobxAction===!0}function bn(e,t){var i,n;t===void 0&&(t=vn);var a=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",r=!t.scheduler&&!t.delay,o;if(r)o=new At(a,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=va(t),u=!1;o=new At(a,function(){u||(u=!0,s(function(){u=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}var Xo=function(t){return t()};function va(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xo}function Yo(e,t,i){var n;i===void 0&&(i=vn);var a=(n=i.name)!=null?n:"Reaction",r=me(a,i.onError?es(i.onError,t):t),o=!i.scheduler&&!i.delay,s=va(i),u=!0,l=!1,d,c,p=i.compareStructural?xe.structural:i.equals||xe.default,g=new At(a,function(){u||o?b():l||(l=!0,s(b))},i.onError,i.requiresObservable);function b(){if(l=!1,!g.isDisposed_){var v=!1;g.track(function(){var m=Yi(!1,function(){return e(g)});v=u||!p(d,m),c=d,d=m}),(u&&i.fireImmediately||!u&&v)&&r(d,c,g),u=!1}}return g.schedule_(),g.getDisposer_()}function es(e,t){return function(){try{return t.apply(this,arguments)}catch(i){e.call(this,i)}}}var ts="onBO",ns="onBUO";function is(e,t,i){return ga(ts,e,t,i)}function pa(e,t,i){return ga(ns,e,t,i)}function ga(e,t,i,n){var a=typeof n=="function"?_e(t,i):_e(t),r=X(n)?n:i,o=e+"L";return a[o]?a[o].add(r):a[o]=new Set([r]),function(){var s=a[o];s&&(s.delete(r),s.size===0&&delete a[o])}}function ka(e,t,i,n){var a=Qr(t),r=mt(e,n)[F];G();try{Re(a).forEach(function(o){r.extend_(o,a[o],i&&o in i?i[o]:!0)})}finally{$()}return e}var as=0;function ya(){this.message="FLOW_CANCELLED"}ya.prototype=Object.create(Error.prototype);var Qn=$i("flow"),rs=$i("flow.bound",{bound:!0}),Xe=Object.assign(function(t,i){if(ye(i))return rt(t,i,Qn);var n=t,a=n.name||"<unnamed flow>",r=function(){var s=this,u=arguments,l=++as,d=me(a+" - runid: "+l+" - init",n).apply(s,u),c,p=void 0,g=new Promise(function(b,v){var m=0;c=v;function y(O){p=void 0;var T;try{T=me(a+" - runid: "+l+" - yield "+m++,d.next).call(d,O)}catch(L){return v(L)}A(T)}function N(O){p=void 0;var T;try{T=me(a+" - runid: "+l+" - yield "+m++,d.throw).call(d,O)}catch(L){return v(L)}A(T)}function A(O){if(X(O==null?void 0:O.then)){O.then(A,v);return}return O.done?b(O.value):(p=Promise.resolve(O.value),p.then(y,N))}y(void 0)});return g.cancel=me(a+" - runid: "+l+" - cancel",function(){try{p&&Wn(p);var b=d.return(void 0),v=Promise.resolve(b.value);v.then(Ae,Ae),Wn(v),c(new ya)}catch(m){c(m)}}),g};return r.isMobXFlow=!0,r},Qn);Xe.bound=te(rs);function Wn(e){X(e.cancel)&&e.cancel()}function Ct(e){return(e==null?void 0:e.isMobXFlow)===!0}function os(e,t){return e?t!==void 0?Ye(e)?e[F].values_.has(t):!1:Ye(e)||!!e[F]||gn(e)||Ft(e)||Ut(e):!1}function dt(e){return os(e)}function ss(){D("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var a=us(i);if(!a)return D("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");a.isTracing_===ke.NONE&&console.log("[mobx.trace] '"+a.name_+"' tracing enabled"),a.isTracing_=e?ke.BREAK:ke.LOG}function us(e){switch(e.length){case 0:return _.trackingDerivation;case 1:return _e(e[0]);case 2:return _e(e[0],e[1])}}function re(e,t){t===void 0&&(t=void 0),G();try{return e.apply(t)}finally{$()}}function Ee(e){return e[F]}var ls={has:function(t,i){return Ee(t).has_(i)},get:function(t,i){return Ee(t).get_(i)},set:function(t,i,n){var a;return ye(i)?(a=Ee(t).set_(i,n,!0))!=null?a:!0:!1},deleteProperty:function(t,i){var n;return ye(i)?(n=Ee(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var a;return(a=Ee(t).defineProperty_(i,n))!=null?a:!0},ownKeys:function(t){return Ee(t).ownKeys_()},preventExtensions:function(t){D(13)}};function ds(e,t){var i,n;return Li(),e=mt(e,t),(n=(i=e[F]).proxy_)!=null?n:i.proxy_=new Proxy(e,ls)}function Q(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ct(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),Ii(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function W(e,t){var i=je();try{for(var n=[].concat(e.interceptors_||[]),a=0,r=n.length;a<r&&(t=n[a](t),t&&!t.type&&D(14),!!t);a++);return t}finally{ve(i)}}function J(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function ft(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),Ii(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function H(e,t){var i=je(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,r=n.length;a<r;a++)n[a](t);ve(i)}}function cs(e,t,i){var n=mt(e,i)[F];G();try{var a;(a=t)!=null||(t=Hr(e)),Re(t).forEach(function(r){return n.make_(r,t[r])})}finally{$()}return e}var en=Symbol("mobx-keys");function fs(e,t,i){if(ue(e))return ka(e,e,t,i);var n=mt(e,i)[F];if(!e[en]){var a=Object.getPrototypeOf(e),r=new Set([].concat(Re(e),Re(a)));r.delete("constructor"),r.delete(F),it(a,en,r)}G();try{e[en].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{$()}return e}var qn="splice",ne="update",ms=1e4,hs={get:function(t,i){var n=t[F];return i===F?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):se(Rt,i)?Rt[i]:t[i]},set:function(t,i,n){var a=t[F];return i==="length"&&a.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:a.set_(parseInt(i),n),!0},preventExtensions:function(){D(15)}},Sn=function(){function e(i,n,a,r){i===void 0&&(i="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_=a,this.legacyMode_=r,this.atom_=new ot(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return ct(this,n)},t.observe_=function(n,a){return a===void 0&&(a=!1),a&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ft(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&D("Out of range: "+n);var a=this.values_.length;if(n!==a)if(n>a){for(var r=new Array(n-a),o=0;o<n-a;o++)r[o]=void 0;this.spliceWithArray_(a,0,r)}else this.spliceWithArray_(n,a-n)},t.updateArrayLength_=function(n,a){n!==this.lastKnownLength_&&D(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&Ra(n+a+1)},t.spliceWithArray_=function(n,a,r){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?a=s-n:a==null?a=0:a=Math.max(0,Math.min(a,s-n)),r===void 0&&(r=rn),Q(this)){var u=W(this,{object:this.proxy_,type:qn,index:n,removedCount:a,added:r});if(!u)return rn;a=u.removedCount,r=u.added}if(r=r.length===0?r:r.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var l=r.length-a;this.updateArrayLength_(s,l)}var d=this.spliceItemsIntoValues_(n,a,r);return(a!==0||r.length!==0)&&this.notifyArraySplice_(n,r,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(n,a,r){if(r.length<ms){var o;return(o=this.values_).splice.apply(o,[n,a].concat(r))}else{var s=this.values_.slice(n,n+a),u=this.values_.slice(n+a);this.values_.length+=r.length-a;for(var l=0;l<r.length;l++)this.values_[n+l]=r[l];for(var d=0;d<u.length;d++)this.values_[n+r.length+d]=u[d];return s}},t.notifyArrayChildUpdate_=function(n,a,r){var o=!this.owned_&&qe(),s=J(this),u=s||o?{observableKind:"array",object:this.proxy_,type:ne,debugObjectName:this.atom_.name_,index:n,newValue:a,oldValue:r}:null;this.atom_.reportChanged(),s&&H(this,u)},t.notifyArraySplice_=function(n,a,r){var o=!this.owned_&&qe(),s=J(this),u=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:qn,index:n,removed:r,added:a,removedCount:r.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&H(this,u)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,a){var r=this.values_;if(this.legacyMode_&&n>r.length&&D(17,n,r.length),n<r.length){this.atom_;var o=r[n];if(Q(this)){var s=W(this,{type:ne,object:this.proxy_,index:n,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var u=a!==o;u&&(r[n]=a,this.notifyArrayChildUpdate_(n,a,o))}else{for(var l=new Array(n+1-r.length),d=0;d<l.length-1;d++)l[d]=void 0;l[l.length-1]=a,this.spliceWithArray_(r.length,0,l)}},e}();function vs(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),Li();var a=new Sn(i,t,n,!1);ji(a.values_,F,a);var r=new Proxy(a.values_,hs);if(a.proxy_=r,e&&e.length){var o=ut(!0);a.spliceWithArray_(0,0,e),lt(o)}return r}var Rt={clear:function(){return this.splice(0)},replace:function(t){var i=this[F];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];var o=this[F];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,a)},spliceWithArray:function(t,i,n){return this[F].spliceWithArray_(t,i,n)},push:function(){for(var t=this[F],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[F],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return _.trackingDerivation&&D(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_.trackingDerivation&&D(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[F],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};U("concat",le);U("flat",le);U("includes",le);U("indexOf",le);U("join",le);U("lastIndexOf",le);U("slice",le);U("toString",le);U("toLocaleString",le);U("every",ge);U("filter",ge);U("find",ge);U("findIndex",ge);U("flatMap",ge);U("forEach",ge);U("map",ge);U("some",ge);U("reduce",_a);U("reduceRight",_a);function U(e,t){typeof Array.prototype[e]=="function"&&(Rt[e]=t(e))}function le(e){return function(){var t=this[F];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function ge(e){return function(t,i){var n=this,a=this[F];a.atom_.reportObserved();var r=a.dehanceValues_(a.values_);return r[e](function(o,s){return t.call(i,o,s,n)})}}function _a(e){return function(){var t=this,i=this[F];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),a=arguments[0];return arguments[0]=function(r,o,s){return a(r,o,s,t)},n[e].apply(n,arguments)}}var ps=Se("ObservableArrayAdministration",Sn);function Mt(e){return It(e)&&ps(e[F])}var ba,Sa,gs={},he="add",Tt="delete";ba=Symbol.iterator;Sa=Symbol.toStringTag;var Na=function(){function e(i,n,a){var r=this;n===void 0&&(n=De),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=gs,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_=n,this.name_=a,X(Map)||D(18),this.keysAtom_=zi("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Yi(!0,function(){r.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var a=this;if(!_.trackingDerivation)return this.has_(n);var r=this.hasMap_.get(n);if(!r){var o=r=new Ce(this.has_(n),Vt,"ObservableMap.key?",!1);this.hasMap_.set(n,o),pa(o,function(){return a.hasMap_.delete(n)})}return r.get()},t.set=function(n,a){var r=this.has_(n);if(Q(this)){var o=W(this,{type:r?ne:he,object:this,newValue:a,name:n});if(!o)return this;a=o.newValue}return r?this.updateValue_(n,a):this.addValue_(n,a),this},t.delete=function(n){var a=this;if(this.keysAtom_,Q(this)){var r=W(this,{type:Tt,object:this,name:n});if(!r)return!1}if(this.has_(n)){var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:Tt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return re(function(){var l;a.keysAtom_.reportChanged(),(l=a.hasMap_.get(n))==null||l.setNewValue_(!1);var d=a.data_.get(n);d.setNewValue_(void 0),a.data_.delete(n)}),s&&H(this,u),!0}return!1},t.updateValue_=function(n,a){var r=this.data_.get(n);if(a=r.prepareNewValue_(a),a!==_.UNCHANGED){var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:ne,object:this,oldValue:r.value_,name:n,newValue:a}:null;r.setNewValue_(a),s&&H(this,u)}},t.addValue_=function(n,a){var r=this;this.keysAtom_,re(function(){var l,d=new Ce(a,r.enhancer_,"ObservableMap.key",!1);r.data_.set(n,d),a=d.value_,(l=r.hasMap_.get(n))==null||l.setNewValue_(!0),r.keysAtom_.reportChanged()});var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:he,object:this,name:n,newValue:a}:null;s&&H(this,u)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,a=this.keys();return et({next:function(){var o=a.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,a=this.keys();return et({next:function(){var o=a.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[ba]=function(){return this.entries()},t.forEach=function(n,a){for(var r=Fe(this),o;!(o=r()).done;){var s=o.value,u=s[0],l=s[1];n.call(a,l,u,this)}},t.merge=function(n){var a=this;return Ne(n)&&(n=new Map(n)),re(function(){ue(n)?Kr(n).forEach(function(r){return a.set(r,n[r])}):Array.isArray(n)?n.forEach(function(r){var o=r[0],s=r[1];return a.set(o,s)}):Ve(n)?(n.constructor!==Map&&D(19,n),n.forEach(function(r,o){return a.set(o,r)})):n!=null&&D(20,n)}),this},t.clear=function(){var n=this;re(function(){ia(function(){for(var a=Fe(n.keys()),r;!(r=a()).done;){var o=r.value;n.delete(o)}})})},t.replace=function(n){var a=this;return re(function(){for(var r=ks(n),o=new Map,s=!1,u=Fe(a.data_.keys()),l;!(l=u()).done;){var d=l.value;if(!r.has(d)){var c=a.delete(d);if(c)s=!0;else{var p=a.data_.get(d);o.set(d,p)}}}for(var g=Fe(r.entries()),b;!(b=g()).done;){var v=b.value,m=v[0],y=v[1],N=a.data_.has(m);if(a.set(m,y),a.data_.has(m)){var A=a.data_.get(m);o.set(m,A),N||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var O=a.data_.keys(),T=o.keys(),L=O.next(),z=T.next();!L.done;){if(L.value!==z.value){a.keysAtom_.reportChanged();break}L=O.next(),z=T.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,a){return ft(this,n)},t.intercept_=function(n){return ct(this,n)},pn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Sa,get:function(){return"Map"}}]),e}(),Ne=Se("ObservableMap",Na);function ks(e){if(Ve(e)||Ne(e))return e;if(Array.isArray(e))return new Map(e);if(ue(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return D(21,e)}var Oa,Ea,ys={};Oa=Symbol.iterator;Ea=Symbol.toStringTag;var wa=function(){function e(i,n,a){n===void 0&&(n=De),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[F]=ys,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_=a,X(Set)||D(22),this.atom_=zi(this.name_),this.enhancer_=function(r,o){return n(r,o,a)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;re(function(){ia(function(){for(var a=Fe(n.data_.values()),r;!(r=a()).done;){var o=r.value;n.delete(o)}})})},t.forEach=function(n,a){for(var r=Fe(this),o;!(o=r()).done;){var s=o.value;n.call(a,s,s,this)}},t.add=function(n){var a=this;if(this.atom_,Q(this)){var r=W(this,{type:he,object:this,newValue:n});if(!r)return this}if(!this.has(n)){re(function(){a.data_.add(a.enhancer_(n,void 0)),a.atom_.reportChanged()});var o=!1,s=J(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:he,object:this,newValue:n}:null;s&&H(this,u)}return this},t.delete=function(n){var a=this;if(Q(this)){var r=W(this,{type:Tt,object:this,oldValue:n});if(!r)return!1}if(this.has(n)){var o=!1,s=J(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:Tt,object:this,oldValue:n}:null;return re(function(){a.atom_.reportChanged(),a.data_.delete(n)}),s&&H(this,u),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,a=Array.from(this.keys()),r=Array.from(this.values());return et({next:function(){var s=n;return n+=1,s<r.length?{value:[a[s],r[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,a=0,r=Array.from(this.data_.values());return et({next:function(){return a<r.length?{value:n.dehanceValue_(r[a++]),done:!1}:{done:!0}}})},t.replace=function(n){var a=this;return Ue(n)&&(n=new Set(n)),re(function(){Array.isArray(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):at(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):n!=null&&D("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return ft(this,n)},t.intercept_=function(n){return ct(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Oa]=function(){return this.values()},pn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Ea,get:function(){return"Set"}}]),e}(),Ue=Se("ObservableSet",wa),Jn=Object.create(null),Hn="remove",Aa=function(){function e(i,n,a,r){n===void 0&&(n=new Map),r===void 0&&(r=yo),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_=i,this.values_=n,this.name_=a,this.defaultAnnotation_=r,this.keysAtom_=new ot("ObservableObject.keys"),this.isPlainObject_=ue(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,a){var r=this.values_.get(n);if(r instanceof He)return r.set(a),!0;if(Q(this)){var o=W(this,{type:ne,object:this.proxy_||this.target_,name:n,newValue:a});if(!o)return null;a=o.newValue}if(a=r.prepareNewValue_(a),a!==_.UNCHANGED){var s=J(this),u=!1,l=s||u?{type:ne,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:n,newValue:a}:null;r.setNewValue_(a),s&&H(this,l)}return!0},t.get_=function(n){return _.trackingDerivation&&!se(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,r){return r===void 0&&(r=!1),se(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,a):r?Reflect.set(this.target_,n,a):(this.target_[n]=a,!0):this.extend_(n,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(n){if(!_.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(n);return a||(a=new Ce(n in this.target_,Vt,"ObservableObject.key?",!1),this.pendingKeys_.set(n,a)),a.get()},t.make_=function(n,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(n in this.target_)){var r;if((r=this.target_[Y])!=null&&r[n])return;D(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==Lt;){var s=Ot(o,n);if(s){var u=a.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}Xn(this,a,n)}},t.extend_=function(n,a,r,o){if(o===void 0&&(o=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(n,a,o);var s=r.extend_(this,n,a,o);return s&&Xn(this,r,n),s},t.defineProperty_=function(n,a,r){r===void 0&&(r=!1);try{G();var o=this.delete_(n);if(!o)return o;if(Q(this)){var s=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:a.value});if(!s)return null;var u=s.newValue;a.value!==u&&(a=Te({},a,{value:u}))}if(r){if(!Reflect.defineProperty(this.target_,n,a))return!1}else ee(this.target_,n,a);this.notifyPropertyAddition_(n,a.value)}finally{$()}return!0},t.defineObservableProperty_=function(n,a,r,o){o===void 0&&(o=!1);try{G();var s=this.delete_(n);if(!s)return s;if(Q(this)){var u=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:a});if(!u)return null;a=u.newValue}var l=Zn(n),d={configurable:_.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,d))return!1}else ee(this.target_,n,d);var c=new Ce(a,r,"ObservableObject.key",!1);this.values_.set(n,c),this.notifyPropertyAddition_(n,c.value_)}finally{$()}return!0},t.defineComputedProperty_=function(n,a,r){r===void 0&&(r=!1);try{G();var o=this.delete_(n);if(!o)return o;if(Q(this)){var s=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var u=Zn(n),l={configurable:_.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(r){if(!Reflect.defineProperty(this.target_,n,l))return!1}else ee(this.target_,n,l);this.values_.set(n,new He(a)),this.notifyPropertyAddition_(n,void 0)}finally{$()}return!0},t.delete_=function(n,a){if(a===void 0&&(a=!1),!se(this.target_,n))return!0;if(Q(this)){var r=W(this,{object:this.proxy_||this.target_,name:n,type:Hn});if(!r)return null}try{var o,s;G();var u=J(this),l=!1,d=this.values_.get(n),c=void 0;if(!d&&(u||l)){var p;c=(p=Ot(this.target_,n))==null?void 0:p.value}if(a){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(d&&(this.values_.delete(n),d instanceof Ce&&(c=d.value_),ua(d)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var g={type:Hn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:n};u&&H(this,g)}}finally{$()}return!0},t.observe_=function(n,a){return ft(this,n)},t.intercept_=function(n){return ct(this,n)},t.notifyPropertyAddition_=function(n,a){var r,o,s=J(this),u=!1;if(s||u){var l=s||u?{type:he,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:a}:null;s&&H(this,l)}(r=this.pendingKeys_)==null||(o=r.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Re(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function mt(e,t){var i;if(se(e,F))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",a=new Aa(e,new Map,String(n),Co(t));return it(e,F,a),e}var _s=Se("ObservableObjectAdministration",Aa);function Zn(e){return Jn[e]||(Jn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(i){return this[F].setObservablePropValue_(e,i)}})}function Ye(e){return It(e)?_s(e[F]):!1}function Xn(e,t,i){var n;(n=e.target_[Y])==null||delete n[i]}var bs=Ca(0),tn=0,Fa=function(){};function Ss(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Ss(Fa,Array.prototype);var Nn=function(e,t,i){Bi(n,e);function n(r,o,s,u){var l;s===void 0&&(s="ObservableArray"),u===void 0&&(u=!1),l=e.call(this)||this;var d=new Sn(s,o,u,!0);if(d.proxy_=Zt(l),ji(Zt(l),F,d),r&&r.length){var c=ut(!0);l.spliceWithArray(0,0,r),lt(c)}return Object.defineProperty(Zt(l),"0",bs),l}var a=n.prototype;return a.concat=function(){this[F].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),s.map(function(l){return Mt(l)?l.slice():l}))},a[i]=function(){var r=this,o=0;return et({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},pn(n,[{key:"length",get:function(){return this[F].getArrayLength_()},set:function(o){this[F].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Fa,Symbol.toStringTag,Symbol.iterator);Object.entries(Rt).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&it(Nn.prototype,t,i)});function Ca(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(i){this[F].set_(e,i)}}}function Ns(e){ee(Nn.prototype,""+e,Ca(e))}function Ra(e){if(e>tn){for(var t=tn;t<e+100;t++)Ns(t);tn=e}}Ra(1e3);function Os(e,t,i){return new Nn(e,t,i)}function _e(e,t){if(typeof e=="object"&&e!==null){if(Mt(e))return t!==void 0&&D(23),e[F].atom_;if(Ue(e))return e.atom_;if(Ne(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||D(25,t,ln(e)),i}if(Ye(e)){if(!t)return D(26);var n=e[F].values_.get(t);return n||D(27,t,ln(e)),n}if(gn(e)||Ut(e)||Ft(e))return e}else if(X(e)&&Ft(e[F]))return e[F];D(28)}function Ta(e,t){if(e||D(29),t!==void 0)return Ta(_e(e,t));if(gn(e)||Ut(e)||Ft(e)||Ne(e)||Ue(e))return e;if(e[F])return e[F];D(24,e)}function ln(e,t){var i;if(t!==void 0)i=_e(e,t);else{if(_n(e))return e.name;Ye(e)||Ne(e)||Ue(e)?i=Ta(e):i=_e(e)}return i.name_}var Yn=Lt.toString;function On(e,t,i){return i===void 0&&(i=-1),dn(e,t,i)}function dn(e,t,i,n,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var r=typeof e;if(r!=="function"&&r!=="object"&&typeof t!="object")return!1;var o=Yn.call(e);if(o!==Yn.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=ei(e),t=ei(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(X(u)&&u instanceof u&&X(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],a=a||[];for(var d=n.length;d--;)if(n[d]===e)return a[d]===t;if(n.push(e),a.push(t),s){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!dn(e[d],t[d],i-1,n,a))return!1}else{var c=Object.keys(e),p;if(d=c.length,Object.keys(t).length!==d)return!1;for(;d--;)if(p=c[d],!(se(t,p)&&dn(e[p],t[p],i-1,n,a)))return!1}return n.pop(),a.pop(),!0}function ei(e){return Mt(e)?e.slice():Ve(e)||Ne(e)||at(e)||Ue(e)?Array.from(e.entries()):e}function et(e){return e[Symbol.iterator]=Es,e}function Es(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Di();typeof t[e]=="undefined"&&D("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Qo,extras:{getDebugName:ln},$mobx:F});class ht extends Error{constructor(t,i,n){super(i),this.value=n,this.name=t}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class xa extends ht{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class Da extends ht{constructor(t){var i;super("APP_UNEXPECTED_ERROR",(i=t.message)!=null?i:"An unexpected error occurred.",t)}}class ws extends ht{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Pa extends ht{constructor(t){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
4
4
  Configuration property invalid: "${t}".
5
5
 
6
6
  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".
@@ -20,13 +20,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
20
20
  account: env.account,
21
21
  ...
22
22
  });
23
- `)}}const js=["account"];function at(){js.forEach(e=>{if(e===void 0)throw new zr(e)})}class Us{constructor(){G(this,"_config",null);G(this,"_account");Ns(this,{},{name:"NizzaConfigManager",autoBind:!0})}async configure(t){var i;if(this._config=t,((i=this.account)==null?void 0:i.account)!==t.account){const n=await da(t.account);this.setAccount(n)}}get config(){return at(),this._config}get account(){return at(),this._account}get ok(){var t;return at(),!!((t=this._account)!=null&&t.account)}get accountName(){var t;return at(),(t=this._account)==null?void 0:t.account}setAccount(t){this._account=t}}var Kr={exports:{}};/*!
24
- * EventEmitter2
25
- * https://github.com/hij1nx/EventEmitter2
26
- *
27
- * Copyright (c) 2013 hij1nx
28
- * Licensed under the MIT license.
29
- */(function(e,t){(function(i){var n=Object.hasOwnProperty,r=Array.isArray?Array.isArray:function(d){return Object.prototype.toString.call(d)==="[object Array]"},a=10,o=typeof process=="object"&&typeof process.nextTick=="function",s=typeof Symbol=="function",l=typeof Reflect=="object",c=typeof setImmediate=="function",f=c?setImmediate:setTimeout,v=s?l&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(u){var d=Object.getOwnPropertyNames(u);return d.push.apply(d,Object.getOwnPropertySymbols(u)),d}:Object.keys;function O(){this._events={},this._conf&&A.call(this,this._conf)}function A(u){u&&(this._conf=u,u.delimiter&&(this.delimiter=u.delimiter),u.maxListeners!==i&&(this._maxListeners=u.maxListeners),u.wildcard&&(this.wildcard=u.wildcard),u.newListener&&(this._newListener=u.newListener),u.removeListener&&(this._removeListener=u.removeListener),u.verboseMemoryLeak&&(this.verboseMemoryLeak=u.verboseMemoryLeak),u.ignoreErrors&&(this.ignoreErrors=u.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function R(u,d){var h="(node) warning: possible EventEmitter memory leak detected. "+u+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(h+=" Event name: "+d+"."),typeof process!="undefined"&&process.emitWarning){var m=new Error(h);m.name="MaxListenersExceededWarning",m.emitter=this,m.count=u,process.emitWarning(m)}else console.error(h),console.trace&&console.trace()}var b=function(u,d,h){var m=arguments.length;switch(m){case 0:return[];case 1:return[u];case 2:return[u,d];case 3:return[u,d,h];default:for(var p=new Array(m);m--;)p[m]=arguments[m];return p}};function _(u,d){for(var h={},m,p=u.length,y=d?d.length:0,S=0;S<p;S++)m=u[S],h[m]=S<y?d[S]:i;return h}function C(u,d,h){this._emitter=u,this._target=d,this._listeners={},this._listenersCount=0;var m,p;if((h.on||h.off)&&(m=h.on,p=h.off),d.addEventListener?(m=d.addEventListener,p=d.removeEventListener):d.addListener?(m=d.addListener,p=d.removeListener):d.on&&(m=d.on,p=d.off),!m&&!p)throw Error("target does not implement any known event API");if(typeof m!="function")throw TypeError("on method must be a function");if(typeof p!="function")throw TypeError("off method must be a function");this._on=m,this._off=p;var y=u._observers;y?y.push(this):u._observers=[this]}Object.assign(C.prototype,{subscribe:function(u,d,h){var m=this,p=this._target,y=this._emitter,S=this._listeners,E=function(){var N=b.apply(null,arguments),w={data:N,name:d,original:u};if(h){var D=h.call(p,w);D!==!1&&y.emit.apply(y,[w.name].concat(N));return}y.emit.apply(y,[d].concat(N))};if(S[u])throw Error("Event '"+u+"' is already listening");this._listenersCount++,y._newListener&&y._removeListener&&!m._onNewListener?(this._onNewListener=function(N){N===d&&S[u]===null&&(S[u]=E,m._on.call(p,u,E))},y.on("newListener",this._onNewListener),this._onRemoveListener=function(N){N===d&&!y.hasListeners(N)&&S[u]&&(S[u]=null,m._off.call(p,u,E))},S[u]=null,y.on("removeListener",this._onRemoveListener)):(S[u]=E,m._on.call(p,u,E))},unsubscribe:function(u){var d=this,h=this._listeners,m=this._emitter,p,y,S=this._off,E=this._target,N;if(u&&typeof u!="string")throw TypeError("event must be a string");function w(){d._onNewListener&&(m.off("newListener",d._onNewListener),m.off("removeListener",d._onRemoveListener),d._onNewListener=null,d._onRemoveListener=null);var D=g.call(m,d);m._observers.splice(D,1)}if(u){if(p=h[u],!p)return;S.call(E,u,p),delete h[u],--this._listenersCount||w()}else{for(y=v(h),N=y.length;N-- >0;)u=y[N],S.call(E,u,h[u]);this._listeners={},this._listenersCount=0,w()}}});function L(u,d,h,m){var p=Object.assign({},d);if(!u)return p;if(typeof u!="object")throw TypeError("options must be an object");var y=Object.keys(u),S=y.length,E,N,w;function D(q){throw Error('Invalid "'+E+'" option value'+(q?". Reason: "+q:""))}for(var ne=0;ne<S;ne++){if(E=y[ne],!m&&!n.call(d,E))throw Error('Unknown "'+E+'" option');N=u[E],N!==i&&(w=h[E],p[E]=w?w(N,D):N)}return p}function U(u,d){return(typeof u!="function"||!u.hasOwnProperty("prototype"))&&d("value must be a constructor"),u}function P(u){var d="value must be type of "+u.join("|"),h=u.length,m=u[0],p=u[1];return h===1?function(y,S){if(typeof y===m)return y;S(d)}:h===2?function(y,S){var E=typeof y;if(E===m||E===p)return y;S(d)}:function(y,S){for(var E=typeof y,N=h;N-- >0;)if(E===u[N])return y;S(d)}}var z=P(["function"]),Q=P(["object","function"]);function Y(u,d,h){var m,p,y=0,S,E=new u(function(N,w,D){h=L(h,{timeout:0,overload:!1},{timeout:function(Z,re){return Z*=1,(typeof Z!="number"||Z<0||!Number.isFinite(Z))&&re("timeout must be a positive number"),Z}}),m=!h.overload&&typeof u.prototype.cancel=="function"&&typeof D=="function";function ne(){p&&(p=null),y&&(clearTimeout(y),y=0)}var q=function(Z){ne(),N(Z)},J=function(Z){ne(),w(Z)};m?d(q,J,D):(p=[function(Z){J(Z||Error("canceled"))}],d(q,J,function(Z){if(S)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Z!="function")throw TypeError("onCancel callback must be a function");p.push(Z)}),S=!0),h.timeout>0&&(y=setTimeout(function(){var Z=Error("timeout");Z.code="ETIMEDOUT",y=0,E.cancel(Z),w(Z)},h.timeout))});return m||(E.cancel=function(N){if(p){for(var w=p.length,D=1;D<w;D++)p[D](N);p[0](N),p=null}}),E}function g(u){var d=this._observers;if(!d)return-1;for(var h=d.length,m=0;m<h;m++)if(d[m]._target===u)return m;return-1}function k(u,d,h,m,p){if(!h)return null;if(m===0){var y=typeof d;if(y==="string"){var S,E,N=0,w=0,D=this.delimiter,ne=D.length;if((E=d.indexOf(D))!==-1){S=new Array(5);do S[N++]=d.slice(w,E),w=E+ne;while((E=d.indexOf(D,w))!==-1);S[N++]=d.slice(w),d=S,p=N}else d=[d],p=1}else y==="object"?p=d.length:(d=[d],p=1)}var q=null,J,Z,re,rn,an,tt=d[m],on=d[m+1],ye,ae;if(m===p)h._listeners&&(typeof h._listeners=="function"?(u&&u.push(h._listeners),q=[h]):(u&&u.push.apply(u,h._listeners),q=[h]));else if(tt==="*"){for(ye=v(h),E=ye.length;E-- >0;)J=ye[E],J!=="_listeners"&&(ae=k(u,d,h[J],m+1,p),ae&&(q?q.push.apply(q,ae):q=ae));return q}else if(tt==="**"){for(an=m+1===p||m+2===p&&on==="*",an&&h._listeners&&(q=k(u,d,h,p,p)),ye=v(h),E=ye.length;E-- >0;)J=ye[E],J!=="_listeners"&&(J==="*"||J==="**"?(h[J]._listeners&&!an&&(ae=k(u,d,h[J],p,p),ae&&(q?q.push.apply(q,ae):q=ae)),ae=k(u,d,h[J],m,p)):J===on?ae=k(u,d,h[J],m+2,p):ae=k(u,d,h[J],m,p),ae&&(q?q.push.apply(q,ae):q=ae));return q}else h[tt]&&(q=k(u,d,h[tt],m+1,p));if(Z=h["*"],Z&&k(u,d,Z,m+1,p),re=h["**"],re)if(m<p)for(re._listeners&&k(u,d,re,p,p),ye=v(re),E=ye.length;E-- >0;)J=ye[E],J!=="_listeners"&&(J===on?k(u,d,re[J],m+2,p):J===tt?k(u,d,re[J],m+1,p):(rn={},rn[J]=re[J],k(u,d,{"**":rn},m+1,p)));else re._listeners?k(u,d,re,p,p):re["*"]&&re["*"]._listeners&&k(u,d,re["*"],p,p);return q}function F(u,d,h){var m=0,p=0,y,S=this.delimiter,E=S.length,N;if(typeof u=="string")if((y=u.indexOf(S))!==-1){N=new Array(5);do N[m++]=u.slice(p,y),p=y+E;while((y=u.indexOf(S,p))!==-1);N[m++]=u.slice(p)}else N=[u],m=1;else N=u,m=u.length;if(m>1){for(y=0;y+1<m;y++)if(N[y]==="**"&&N[y+1]==="**")return}var w=this.listenerTree,D;for(y=0;y<m;y++)if(D=N[y],w=w[D]||(w[D]={}),y===m-1)return w._listeners?(typeof w._listeners=="function"&&(w._listeners=[w._listeners]),h?w._listeners.unshift(d):w._listeners.push(d),!w._listeners.warned&&this._maxListeners>0&&w._listeners.length>this._maxListeners&&(w._listeners.warned=!0,R.call(this,w._listeners.length,D))):w._listeners=d,!0;return!0}function T(u,d,h,m){for(var p=v(u),y=p.length,S,E,N,w=u._listeners,D;y-- >0;)E=p[y],S=u[E],E==="_listeners"?N=h:N=h?h.concat(E):[E],D=m||typeof E=="symbol",w&&d.push(D?N:N.join(this.delimiter)),typeof S=="object"&&T.call(this,S,d,N,D);return d}function I(u){for(var d=v(u),h=d.length,m,p,y;h-- >0;)p=d[h],m=u[p],m&&(y=!0,p!=="_listeners"&&!I(m)&&delete u[p]);return y}function V(u,d,h){this.emitter=u,this.event=d,this.listener=h}V.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function B(u,d,h){if(h===!0)p=!0;else if(h===!1)m=!0;else{if(!h||typeof h!="object")throw TypeError("options should be an object or true");var m=h.async,p=h.promisify,y=h.nextTick,S=h.objectify}if(m||y||p){var E=d,N=d._origin||d;if(y&&!o)throw Error("process.nextTick is not supported");p===i&&(p=d.constructor.name==="AsyncFunction"),d=function(){var w=arguments,D=this,ne=this.event;return p?y?Promise.resolve():new Promise(function(q){f(q)}).then(function(){return D.event=ne,E.apply(D,w)}):(y?process.nextTick:f)(function(){D.event=ne,E.apply(D,w)})},d._async=!0,d._origin=N}return[d,S?new V(this,u,d):this]}function j(u){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,A.call(this,u)}j.EventEmitter2=j,j.prototype.listenTo=function(u,d,h){if(typeof u!="object")throw TypeError("target musts be an object");var m=this;h=L(h,{on:i,off:i,reducers:i},{on:z,off:z,reducers:Q});function p(y){if(typeof y!="object")throw TypeError("events must be an object");var S=h.reducers,E=g.call(m,u),N;E===-1?N=new C(m,u,h):N=m._observers[E];for(var w=v(y),D=w.length,ne,q=typeof S=="function",J=0;J<D;J++)ne=w[J],N.subscribe(ne,y[ne]||ne,q?S:S&&S[ne])}return r(d)?p(_(d)):p(typeof d=="string"?_(d.split(/\s+/)):d),this},j.prototype.stopListeningTo=function(u,d){var h=this._observers;if(!h)return!1;var m=h.length,p,y=!1;if(u&&typeof u!="object")throw TypeError("target should be an object");for(;m-- >0;)p=h[m],(!u||p._target===u)&&(p.unsubscribe(d),y=!0);return y},j.prototype.delimiter=".",j.prototype.setMaxListeners=function(u){u!==i&&(this._maxListeners=u,this._conf||(this._conf={}),this._conf.maxListeners=u)},j.prototype.getMaxListeners=function(){return this._maxListeners},j.prototype.event="",j.prototype.once=function(u,d,h){return this._once(u,d,!1,h)},j.prototype.prependOnceListener=function(u,d,h){return this._once(u,d,!0,h)},j.prototype._once=function(u,d,h,m){return this._many(u,1,d,h,m)},j.prototype.many=function(u,d,h,m){return this._many(u,d,h,!1,m)},j.prototype.prependMany=function(u,d,h,m){return this._many(u,d,h,!0,m)},j.prototype._many=function(u,d,h,m,p){var y=this;if(typeof h!="function")throw new Error("many only accepts instances of Function");function S(){return--d===0&&y.off(u,S),h.apply(this,arguments)}return S._origin=h,this._on(u,S,m,p)},j.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||O.call(this);var u=arguments[0],d,h=this.wildcard,m,p,y,S,E;if(u==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(h&&(d=u,u!=="newListener"&&u!=="removeListener"&&typeof u=="object")){if(p=u.length,s){for(y=0;y<p;y++)if(typeof u[y]=="symbol"){E=!0;break}}E||(u=u.join(this.delimiter))}var N=arguments.length,w;if(this._all&&this._all.length)for(w=this._all.slice(),y=0,p=w.length;y<p;y++)switch(this.event=u,N){case 1:w[y].call(this,u);break;case 2:w[y].call(this,u,arguments[1]);break;case 3:w[y].call(this,u,arguments[1],arguments[2]);break;default:w[y].apply(this,arguments)}if(h)w=[],k.call(this,w,d,this.listenerTree,0,p);else if(w=this._events[u],typeof w=="function"){switch(this.event=u,N){case 1:w.call(this);break;case 2:w.call(this,arguments[1]);break;case 3:w.call(this,arguments[1],arguments[2]);break;default:for(m=new Array(N-1),S=1;S<N;S++)m[S-1]=arguments[S];w.apply(this,m)}return!0}else w&&(w=w.slice());if(w&&w.length){if(N>3)for(m=new Array(N-1),S=1;S<N;S++)m[S-1]=arguments[S];for(y=0,p=w.length;y<p;y++)switch(this.event=u,N){case 1:w[y].call(this);break;case 2:w[y].call(this,arguments[1]);break;case 3:w[y].call(this,arguments[1],arguments[2]);break;default:w[y].apply(this,m)}return!0}else if(!this.ignoreErrors&&!this._all&&u==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},j.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||O.call(this);var u=arguments[0],d=this.wildcard,h,m,p,y,S,E;if(u==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(d&&(h=u,u!=="newListener"&&u!=="removeListener"&&typeof u=="object")){if(y=u.length,s){for(S=0;S<y;S++)if(typeof u[S]=="symbol"){m=!0;break}}m||(u=u.join(this.delimiter))}var N=[],w=arguments.length,D;if(this._all)for(S=0,y=this._all.length;S<y;S++)switch(this.event=u,w){case 1:N.push(this._all[S].call(this,u));break;case 2:N.push(this._all[S].call(this,u,arguments[1]));break;case 3:N.push(this._all[S].call(this,u,arguments[1],arguments[2]));break;default:N.push(this._all[S].apply(this,arguments))}if(d?(D=[],k.call(this,D,h,this.listenerTree,0)):D=this._events[u],typeof D=="function")switch(this.event=u,w){case 1:N.push(D.call(this));break;case 2:N.push(D.call(this,arguments[1]));break;case 3:N.push(D.call(this,arguments[1],arguments[2]));break;default:for(p=new Array(w-1),E=1;E<w;E++)p[E-1]=arguments[E];N.push(D.apply(this,p))}else if(D&&D.length){if(D=D.slice(),w>3)for(p=new Array(w-1),E=1;E<w;E++)p[E-1]=arguments[E];for(S=0,y=D.length;S<y;S++)switch(this.event=u,w){case 1:N.push(D[S].call(this));break;case 2:N.push(D[S].call(this,arguments[1]));break;case 3:N.push(D[S].call(this,arguments[1],arguments[2]));break;default:N.push(D[S].apply(this,p))}}else if(!this.ignoreErrors&&!this._all&&u==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(N)},j.prototype.on=function(u,d,h){return this._on(u,d,!1,h)},j.prototype.prependListener=function(u,d,h){return this._on(u,d,!0,h)},j.prototype.onAny=function(u){return this._onAny(u,!1)},j.prototype.prependAny=function(u){return this._onAny(u,!0)},j.prototype.addListener=j.prototype.on,j.prototype._onAny=function(u,d){if(typeof u!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),d?this._all.unshift(u):this._all.push(u),this},j.prototype._on=function(u,d,h,m){if(typeof u=="function")return this._onAny(u,d),this;if(typeof d!="function")throw new Error("on only accepts instances of Function");this._events||O.call(this);var p=this,y;return m!==i&&(y=B.call(this,u,d,m),d=y[0],p=y[1]),this._newListener&&this.emit("newListener",u,d),this.wildcard?(F.call(this,u,d,h),p):(this._events[u]?(typeof this._events[u]=="function"&&(this._events[u]=[this._events[u]]),h?this._events[u].unshift(d):this._events[u].push(d),!this._events[u].warned&&this._maxListeners>0&&this._events[u].length>this._maxListeners&&(this._events[u].warned=!0,R.call(this,this._events[u].length,u))):this._events[u]=d,p)},j.prototype.off=function(u,d){if(typeof d!="function")throw new Error("removeListener only takes instances of Function");var h,m=[];if(this.wildcard){var p=typeof u=="string"?u.split(this.delimiter):u.slice();if(m=k.call(this,null,p,this.listenerTree,0),!m)return this}else{if(!this._events[u])return this;h=this._events[u],m.push({_listeners:h})}for(var y=0;y<m.length;y++){var S=m[y];if(h=S._listeners,r(h)){for(var E=-1,N=0,w=h.length;N<w;N++)if(h[N]===d||h[N].listener&&h[N].listener===d||h[N]._origin&&h[N]._origin===d){E=N;break}if(E<0)continue;return this.wildcard?S._listeners.splice(E,1):this._events[u].splice(E,1),h.length===0&&(this.wildcard?delete S._listeners:delete this._events[u]),this._removeListener&&this.emit("removeListener",u,d),this}else(h===d||h.listener&&h.listener===d||h._origin&&h._origin===d)&&(this.wildcard?delete S._listeners:delete this._events[u],this._removeListener&&this.emit("removeListener",u,d))}return this.listenerTree&&I(this.listenerTree),this},j.prototype.offAny=function(u){var d=0,h=0,m;if(u&&this._all&&this._all.length>0){for(m=this._all,d=0,h=m.length;d<h;d++)if(u===m[d])return m.splice(d,1),this._removeListener&&this.emit("removeListenerAny",u),this}else{if(m=this._all,this._removeListener)for(d=0,h=m.length;d<h;d++)this.emit("removeListenerAny",m[d]);this._all=[]}return this},j.prototype.removeListener=j.prototype.off,j.prototype.removeAllListeners=function(u){if(u===i)return!this._events||O.call(this),this;if(this.wildcard){var d=k.call(this,null,u,this.listenerTree,0),h,m;if(!d)return this;for(m=0;m<d.length;m++)h=d[m],h._listeners=null;this.listenerTree&&I(this.listenerTree)}else this._events&&(this._events[u]=null);return this},j.prototype.listeners=function(u){var d=this._events,h,m,p,y,S;if(u===i){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!d)return[];for(h=v(d),y=h.length,p=[];y-- >0;)m=d[h[y]],typeof m=="function"?p.push(m):p.push.apply(p,m);return p}else{if(this.wildcard){if(S=this.listenerTree,!S)return[];var E=[],N=typeof u=="string"?u.split(this.delimiter):u.slice();return k.call(this,E,N,S,0),E}return d?(m=d[u],m?typeof m=="function"?[m]:m:[]):[]}},j.prototype.eventNames=function(u){var d=this._events;return this.wildcard?T.call(this,this.listenerTree,[],null,u):d?v(d):[]},j.prototype.listenerCount=function(u){return this.listeners(u).length},j.prototype.hasListeners=function(u){if(this.wildcard){var d=[],h=typeof u=="string"?u.split(this.delimiter):u.slice();return k.call(this,d,h,this.listenerTree,0),d.length>0}var m=this._events,p=this._all;return!!(p&&p.length||m&&(u===i?v(m).length:m[u]))},j.prototype.listenersAny=function(){return this._all?this._all:[]},j.prototype.waitFor=function(u,d){var h=this,m=typeof d;return m==="number"?d={timeout:d}:m==="function"&&(d={filter:d}),d=L(d,{timeout:0,filter:i,handleError:!1,Promise,overload:!1},{filter:z,Promise:U}),Y(d.Promise,function(p,y,S){function E(){var N=d.filter;if(!(N&&!N.apply(h,arguments)))if(h.off(u,E),d.handleError){var w=arguments[0];w?y(w):p(b.apply(null,arguments).slice(1))}else p(b.apply(null,arguments))}S(function(){h.off(u,E)}),h._on(u,E,!1)},{timeout:d.timeout,overload:d.overload})};function K(u,d,h){h=L(h,{Promise,timeout:0,overload:!1},{Promise:U});var m=h.Promise;return Y(m,function(p,y,S){var E;if(typeof u.addEventListener=="function"){E=function(){p(b.apply(null,arguments))},S(function(){u.removeEventListener(d,E)}),u.addEventListener(d,E,{once:!0});return}var N=function(){w&&u.removeListener("error",w),p(b.apply(null,arguments))},w;d!=="error"&&(w=function(D){u.removeListener(d,N),y(D)},u.once("error",w)),S(function(){w&&u.removeListener("error",w),u.removeListener(d,N)}),u.once(d,N)},{timeout:h.timeout,overload:h.overload})}var H=j.prototype;Object.defineProperties(j,{defaultMaxListeners:{get:function(){return H._maxListeners},set:function(u){if(typeof u!="number"||u<0||Number.isNaN(u))throw TypeError("n must be a non-negative number");H._maxListeners=u},enumerable:!0},once:{value:K,writable:!0,configurable:!0}}),Object.defineProperties(H,{_maxListeners:{value:a,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof i=="function"&&i.amd?i(function(){return j}):e.exports=j})()})(Kr);var Ms=Kr.exports;class Bs{constructor(){G(this,"emitter");this.emitter=new Ms.EventEmitter2({wildcard:!0,delimiter:":"})}on(t,i){const n=a=>i({...a,wildcard:t}),r=this.emitter.on(t,n,{objectify:!0});return{event:r.event,off:()=>r.off()}}emit(t,i){const n={name:t,data:i,attrs:{}};this.emitter.emit(t,n)}}const Ae=class{constructor(){G(this,"_productDataSource",null);G(this,"_configManager",new Us);G(this,"_eventBus",new Bs);G(this,"instanceId",Ii());G(this,"log",Xa);Ss(this,{config:Fe,account:Fe,ok:Fe,accountName:Fe,configure:Ce},{name:"NizzaStore",autoBind:!0})}static instance(){return Ae._instance||(Ae._instance=new Ae),window!=null&&window.nizza?Ae._instance=window==null?void 0:window.nizza:window.nizza=Ae._instance,Ae._instance}async configure(t){return await this._configManager.configure(t),this}get config(){return this._configManager.config}get account(){return this._configManager.account}get ok(){return this._configManager.ok}get accountName(){return this._configManager.accountName}get productDataSource(){return at(),this._productDataSource}get eventBus(){return this._eventBus}setProductDataSource(t){this._productDataSource=t}};let lt=Ae;G(lt,"_instance");const jn=lt.instance(),Ct=jn.log,$r=Ct.levels.INFO;Ct.setDefaultLevel($r);Mi.reg(Ct);Mi.apply(Ct,{template:"[%t] %l (%n)",nameFormatter:e=>{var t;return(t=e==null?void 0:e.toLowerCase())!=null?t:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)});const Wr={},Gs=Hr("main");function Qr(e){const t=Ct.getLogger(e);return t.setLevel($r),t}function qr(e,t){Wr[e]=t}function Jr(e){return Wr[e]}function Hr(e){const t=Qr(e);return qr(e,t),Jr(e)}class Zr{constructor(t){G(this,"aggregate");G(this,"_numSetPropsApplied",0);this.aggregate=t}setProps(t){for(const[i,n]of Object.entries(t))i in this.aggregate&&(this.aggregate[i]=n);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Xr(e){return new Zr(e)}class zs{}class Ks{constructor(t){G(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}var Un=(e=>(e.VTEX="VTEX",e.VTEX_IO="VTEX-IO",e.VTEX_CMS="PORTAL-VTEX",e.PLATFORM="PLATFORM",e.UNKNOWN="UNKNOWN",e))(Un||{}),Yr=(e=>(e.PLATFORM="platform_module",e.ADENDA="subscription_module",e.APP_STORE="app_store",e))(Yr||{}),Mn=(e=>(e.ACTIVE="active_contract",e.INACTIVE="inactive_contract",e))(Mn||{}),ea=(e=>(e.LITE="lite",e.STANDARD="standard",e.PRO="pro",e))(ea||{}),ta=(e=>(e.LITE="PLAN_LITE",e.STANDARD="PLAN_ESTANDAR",e.PRO="PLAN_PRO",e.NONE="NO_PLAN",e))(ta||{}),na=(e=>(e.PAST="past",e.LIVE="live",e.FUTURE="future",e))(na||{});class en{constructor(t){G(this,"root",Xr(this));G(this,"id");G(this,"account");G(this,"accountType",Un.UNKNOWN);G(this,"username");G(this,"currencyConfig");G(this,"contractType");G(this,"nextDateMetricRecord");G(this,"spendedMinutes",0);G(this,"unlimitedService",!1);G(this,"hoursAvailable",0);G(this,"contractStatus",Mn.ACTIVE);G(this,"createdAt");G(this,"installationDateApp");G(this,"cxAccount");G(this,"freeService",!1);G(this,"subscriptionType",null);G(this,"minutesAvailable",0);G(this,"globalPage");G(this,"stripe");G(this,"descriptionPlan");G(this,"planType");G(this,"selectFreeTrial");G(this,"exceededFeatures");G(this,"host",null);this.root.setProps(t)}static toDomain(t){const{createdAt:i,...n}=t,r={...n,createdAt:new Date(Number(i))};return new en(r)}toPrimitives(){const{root:t,createdAt:i,...n}=this;return{...n,created:i.toISOString()}}}const $s=`${Ka.apiUrls.restV1}/accounts/v2`;class ia{async get(t){const i=`${$s}/${t}`,{data:n}=await An({url:i});return n?en.toDomain(n):null}}class ra{constructor(t){this.accountRepository=t}async get(t){try{const i=await this.accountRepository.get(t);if(!i)throw new Br(t);return i}catch(i){throw new Gr(i)}}}const Ws=new ia,Bn=new ra(Ws);class Gn{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(i=>i!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const $t=typeof window=="undefined"||"Deno"in window;function Qs(){}function ci(e){return typeof e=="number"&&e>=0&&e!==1/0}function qs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Js(e,t,i){return Hs(e)?typeof t=="function"?{...i,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function aa(e,t){if(e===t)return e;const i=fi(e)&&fi(t);if(i||hi(e)&&hi(t)){const n=i?e.length:Object.keys(e).length,r=i?t:Object.keys(t),a=r.length,o=i?[]:{};let s=0;for(let l=0;l<a;l++){const c=i?l:r[l];o[c]=aa(e[c],t[c]),o[c]===e[c]&&s++}return n===a&&s===n?e:o}return t}function di(e,t){if(e&&!t||t&&!e)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function fi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hi(e){if(!mi(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const i=t.prototype;return!(!mi(i)||!i.hasOwnProperty("isPrototypeOf"))}function mi(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hs(e){return Array.isArray(e)}function Zs(e){return new Promise(t=>{setTimeout(t,e)})}function vi(e){Zs(0).then(e)}function pi(e,t,i){return i.isDataEqual!=null&&i.isDataEqual(e,t)?e:typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?aa(e,t):t}class Xs extends Gn{constructor(){super(),this.setup=t=>{if(!$t&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),()=>{window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Ys=new Xs;class eu extends Gn{constructor(){super(),this.setup=t=>{if(!$t&&window.addEventListener){const i=()=>t();return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const tu=new eu;function nu(e){return(e!=null?e:"online")==="online"?tu.isOnline():!0}class iu{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ru(e){return e instanceof iu}function au(){let e=[],t=0,i=f=>{f()},n=f=>{f()};const r=f=>{let v;t++;try{v=f()}finally{t--,t||s()}return v},a=f=>{t?e.push(f):vi(()=>{i(f)})},o=f=>(...v)=>{a(()=>{f(...v)})},s=()=>{const f=e;e=[],f.length&&vi(()=>{n(()=>{f.forEach(v=>{i(v)})})})};return{batch:r,batchCalls:o,schedule:a,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{n=f}}}const ot=au();class ou extends Gn{constructor(t,i){super(),this.client=t,this.options=i,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(i)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),gi(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return On(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return On(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,i){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),di(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&ki(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(i),a&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const i=this.client.getQueryCache().build(this.client,t);return this.createResult(i,t)}getCurrentResult(){return this.currentResult}trackResult(t){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),i}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...i}={}){return this.fetch({...i,meta:{refetchPage:t}})}fetchOptimistic(t){const i=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,i);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,i))}fetch(t){var i;return this.executeFetch({...t,cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let i=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(Qs)),i}updateStaleTimeout(){if(this.clearStaleTimeout(),$t||this.currentResult.isStale||!ci(this.options.staleTime))return;const i=qs(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},i)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!($t||this.options.enabled===!1||!ci(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ys.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,i){const n=this.currentQuery,r=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=t!==n,c=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,{state:v}=t;let{dataUpdatedAt:O,error:A,errorUpdatedAt:R,fetchStatus:b,status:_}=v,C=!1,L=!1,U;if(i._optimisticResults){const g=this.hasListeners(),k=!g&&gi(t,i),F=g&&ki(t,n,i,r);(k||F)&&(b=nu(t.options.networkMode)?"fetching":"paused",O||(_="loading")),i._optimisticResults==="isRestoring"&&(b="idle")}if(i.keepPreviousData&&!v.dataUpdatedAt&&f!=null&&f.isSuccess&&_!=="error")U=f.data,O=f.dataUpdatedAt,_=f.status,C=!0;else if(i.select&&typeof v.data!="undefined")if(a&&v.data===(o==null?void 0:o.data)&&i.select===this.selectFn)U=this.selectResult;else try{this.selectFn=i.select,U=i.select(v.data),U=pi(a==null?void 0:a.data,U,i),this.selectResult=U,this.selectError=null}catch(g){this.selectError=g}else U=v.data;if(typeof i.placeholderData!="undefined"&&typeof U=="undefined"&&_==="loading"){let g;if(a!=null&&a.isPlaceholderData&&i.placeholderData===(s==null?void 0:s.placeholderData))g=a.data;else if(g=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof g!="undefined")try{g=i.select(g),this.selectError=null}catch(k){this.selectError=k}typeof g!="undefined"&&(_="success",U=pi(a==null?void 0:a.data,g,i),L=!0)}this.selectError&&(A=this.selectError,U=this.selectResult,R=Date.now(),_="error");const P=b==="fetching",z=_==="loading",Q=_==="error";return{status:_,fetchStatus:b,isLoading:z,isSuccess:_==="success",isError:Q,isInitialLoading:z&&P,data:U,dataUpdatedAt:O,error:A,errorUpdatedAt:R,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>c.dataUpdateCount||v.errorUpdateCount>c.errorUpdateCount,isFetching:P,isRefetching:P&&!z,isLoadingError:Q&&v.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:L,isPreviousData:C,isRefetchError:Q&&v.dataUpdatedAt!==0,isStale:zn(t,i),refetch:this.refetch,remove:this.remove}}updateResult(t){const i=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,di(n,i))return;this.currentResult=n;const r={cache:!0},a=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==i[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const i=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const i={};t.type==="success"?i.onSuccess=!t.manual:t.type==="error"&&!ru(t.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()}notify(t){ot.batch(()=>{if(t.onSuccess){var i,n,r,a;(i=(n=this.options).onSuccess)==null||i.call(n,this.currentResult.data),(r=(a=this.options).onSettled)==null||r.call(a,this.currentResult.data,null)}else if(t.onError){var o,s,l,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(f=>{f(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function su(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gi(e,t){return su(e,t)||e.state.dataUpdatedAt>0&&On(e,t,t.refetchOnMount)}function On(e,t,i){if(t.enabled!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&zn(e,t)}return!1}function ki(e,t,i,n){return i.enabled!==!1&&(e!==t||n.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&zn(e,i)}function zn(e,t){return e.isStaleByTime(t.staleTime)}var oa={exports:{}},sa={};/**
23
+ `)}}const As=["account"];function $e(){As.forEach(e=>{if(e===void 0)throw new Pa(e)})}class Fs{constructor(){C(this,"_config",null);C(this,"_account");fs(this,{},{name:"NizzaConfigManager",autoBind:!0})}async configure(t){var i;if(this._config=t,((i=this.account)==null?void 0:i.account)!==t.account){const n=await er(t.account);this.setAccount(n)}}get config(){return $e(),this._config}get account(){return $e(),this._account}get ok(){var t;return $e(),!!((t=this._account)!=null&&t.account)}get accountName(){var t;return $e(),(t=this._account)==null?void 0:t.account}setAccount(t){this._account=t}}class Cs{constructor(){C(this,"channel");C(this,"listeners",new Map);C(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel("nizza"),this.channel.onmessage=t=>this.handleMessage(t),this.channel.onmessageerror=t=>Ke.error("NizzaBroadcastChannel:",t)}catch(t){throw Ke.error("Failed to create NizzaBroadcastChannel:",t),t}}on(t,i){return this.subscribeToEvent(t,i),{off:()=>this.unsubscribeFromEvent(t,i)}}emit(t,i,n={}){this.emitEvent(t,i,n)}handleMessage(t){const i=t.data,{name:n}=i;for(const[a,r]of this.listeners.entries())this.matchWildcard(a,n)&&r.forEach(o=>o({...i,wildcard:a}))}subscribeToEvent(t,i){if(typeof t!="string"||typeof i!="function"){const n=new Error("Invalid arguments");throw Ke.error(n),n}for(const[n,a]of this.listeners.entries())if(this.matchWildcard(n,t)){a.add(i);const r=this.eventQueue.get(n);r&&(r.forEach(o=>{i({...o,wildcard:n})}),this.eventQueue.delete(n));return}this.listeners.set(t,new Set([i]))}emitEvent(t,i,n){if(typeof t!="string"){const o=new Error("Invalid arguments");throw Ke.error(o),o}const a={name:t,data:i,attrs:n},r=Array.from(this.getMatchingListeners(t));if(r.length)for(const[o,s]of r)s({...a,wildcard:o});else this.eventQueue.has(t)||this.eventQueue.set(t,[]),this.eventQueue.get(t).push(a);this.channel.postMessage(a)}*getMatchingListeners(t){for(const[i,n]of this.listeners.entries())if(this.matchWildcard(i,t))for(const a of n)yield[i,a]}unsubscribeFromEvent(t,i){if(this.listeners.has(t)){const n=this.listeners.get(t);n.delete(i),n.size===0&&this.listeners.delete(t)}}matchWildcard(t,i){const n=t.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${n}$`).test(i)}}const ae=class{constructor(){C(this,"_productDataSource",null);C(this,"_configManager",new Fs);C(this,"_eventBus",new Cs);C(this,"instanceId",Ai());C(this,"log",Br);cs(this,{config:fe,account:fe,ok:fe,accountName:fe,configure:me},{name:"NizzaStore",autoBind:!0})}static instance(){return ae._instance||(ae._instance=new ae),window!=null&&window.nizza?ae._instance=window==null?void 0:window.nizza:(window.nizza=ae._instance,window.nz=ae._instance),ae._instance}async configure(t){return await this._configManager.configure(t),this}get config(){return this._configManager.config}get account(){return this._configManager.account}get ok(){return this._configManager.ok}get accountName(){return this._configManager.accountName}get productDataSource(){return $e(),this._productDataSource}get eventBus(){return this._eventBus}setProductDataSource(t){this._productDataSource=t}};let Je=ae;C(Je,"_instance");const En=Je.instance(),vt=En.log,La=vt.levels.INFO;vt.setDefaultLevel(La);Ti.reg(vt);Ti.apply(vt,{template:"[%t] %l (%n)",nameFormatter:e=>{var t;return(t=e==null?void 0:e.toLowerCase())!=null?t:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)});const Ia={},Rs=wn("main"),Ke=wn("core");function Va(e){const t=vt.getLogger(e);return t.setLevel(La),t}function ja(e,t){Ia[e]=t}function Ua(e){return Ia[e]}function wn(e){const t=Va(e);return ja(e,t),Ua(e)}class Ma{constructor(t){C(this,"aggregate");C(this,"_numSetPropsApplied",0);this.aggregate=t}setProps(t){for(const[i,n]of Object.entries(t))i in this.aggregate&&(this.aggregate[i]=n);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Ba(e){return new Ma(e)}class Ts{}class xs{constructor(t){C(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}var An=(e=>(e.VTEX="VTEX",e.VTEX_IO="VTEX-IO",e.VTEX_CMS="PORTAL-VTEX",e.PLATFORM="PLATFORM",e.UNKNOWN="UNKNOWN",e))(An||{}),za=(e=>(e.PLATFORM="platform_module",e.ADENDA="subscription_module",e.APP_STORE="app_store",e))(za||{}),Fn=(e=>(e.ACTIVE="active_contract",e.INACTIVE="inactive_contract",e))(Fn||{}),Ga=(e=>(e.LITE="lite",e.STANDARD="standard",e.PRO="pro",e))(Ga||{}),$a=(e=>(e.LITE="PLAN_LITE",e.STANDARD="PLAN_ESTANDAR",e.PRO="PLAN_PRO",e.NONE="NO_PLAN",e))($a||{}),Ka=(e=>(e.PAST="past",e.LIVE="live",e.FUTURE="future",e))(Ka||{});class Bt{constructor(t){C(this,"root",Ba(this));C(this,"id");C(this,"account");C(this,"accountType",An.UNKNOWN);C(this,"username");C(this,"currencyConfig");C(this,"contractType");C(this,"nextDateMetricRecord");C(this,"spendedMinutes",0);C(this,"unlimitedService",!1);C(this,"hoursAvailable",0);C(this,"contractStatus",Fn.ACTIVE);C(this,"createdAt");C(this,"installationDateApp");C(this,"cxAccount");C(this,"freeService",!1);C(this,"subscriptionType",null);C(this,"minutesAvailable",0);C(this,"globalPage");C(this,"stripe");C(this,"descriptionPlan");C(this,"planType");C(this,"selectFreeTrial");C(this,"exceededFeatures");C(this,"host",null);this.root.setProps(t)}static toDomain(t){const{createdAt:i,...n}=t,a={...n,createdAt:new Date(Number(i))};return new Bt(a)}toPrimitives(){const{root:t,createdAt:i,...n}=this;return{...n,created:i.toISOString()}}}const Ds=`${Dr.apiUrls.restV1}/accounts/v2`;class Qa{async get(t){const i=`${Ds}/${t}`,{data:n}=await hn({url:i});return n?Bt.toDomain(n):null}}class Wa{constructor(t){this.accountRepository=t}async get(t){try{const i=await this.accountRepository.get(t);if(!i)throw new xa(t);return i}catch(i){throw new Da(i)}}}const Ps=new Qa,Cn=new Wa(Ps);class Rn{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(i=>i!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const xt=typeof window=="undefined"||"Deno"in window;function Ls(){}function ti(e){return typeof e=="number"&&e>=0&&e!==1/0}function Is(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vs(e,t,i){return js(e)?typeof t=="function"?{...i,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function qa(e,t){if(e===t)return e;const i=ii(e)&&ii(t);if(i||ai(e)&&ai(t)){const n=i?e.length:Object.keys(e).length,a=i?t:Object.keys(t),r=a.length,o=i?[]:{};let s=0;for(let u=0;u<r;u++){const l=i?u:a[u];o[l]=qa(e[l],t[l]),o[l]===e[l]&&s++}return n===r&&s===n?e:o}return t}function ni(e,t){if(e&&!t||t&&!e)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function ii(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ai(e){if(!ri(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const i=t.prototype;return!(!ri(i)||!i.hasOwnProperty("isPrototypeOf"))}function ri(e){return Object.prototype.toString.call(e)==="[object Object]"}function js(e){return Array.isArray(e)}function Us(e){return new Promise(t=>{setTimeout(t,e)})}function oi(e){Us(0).then(e)}function si(e,t,i){return i.isDataEqual!=null&&i.isDataEqual(e,t)?e:typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?qa(e,t):t}class Ms extends Rn{constructor(){super(),this.setup=t=>{if(!xt&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),()=>{window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Bs=new Ms;class zs extends Rn{constructor(){super(),this.setup=t=>{if(!xt&&window.addEventListener){const i=()=>t();return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const Gs=new zs;function $s(e){return(e!=null?e:"online")==="online"?Gs.isOnline():!0}class Ks{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Qs(e){return e instanceof Ks}function Ws(){let e=[],t=0,i=d=>{d()},n=d=>{d()};const a=d=>{let c;t++;try{c=d()}finally{t--,t||s()}return c},r=d=>{t?e.push(d):oi(()=>{i(d)})},o=d=>(...c)=>{r(()=>{d(...c)})},s=()=>{const d=e;e=[],d.length&&oi(()=>{n(()=>{d.forEach(c=>{i(c)})})})};return{batch:a,batchCalls:o,schedule:r,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{n=d}}}const Qe=Ws();class qs extends Rn{constructor(t,i){super(),this.client=t,this.options=i,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(i)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),ui(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return cn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,i){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),ni(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&li(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(i),r&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();r&&(this.currentQuery!==a||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const i=this.client.getQueryCache().build(this.client,t);return this.createResult(i,t)}getCurrentResult(){return this.currentResult}trackResult(t){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),i}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...i}={}){return this.fetch({...i,meta:{refetchPage:t}})}fetchOptimistic(t){const i=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,i);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,i))}fetch(t){var i;return this.executeFetch({...t,cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let i=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(Ls)),i}updateStaleTimeout(){if(this.clearStaleTimeout(),xt||this.currentResult.isStale||!ti(this.options.staleTime))return;const i=Is(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},i)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(xt||this.options.enabled===!1||!ti(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bs.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,i){const n=this.currentQuery,a=this.options,r=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,u=t!==n,l=u?t.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,{state:c}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:b,fetchStatus:v,status:m}=c,y=!1,N=!1,A;if(i._optimisticResults){const f=this.hasListeners(),h=!f&&ui(t,i),k=f&&li(t,n,i,a);(h||k)&&(v=$s(t.options.networkMode)?"fetching":"paused",p||(m="loading")),i._optimisticResults==="isRestoring"&&(v="idle")}if(i.keepPreviousData&&!c.dataUpdatedAt&&d!=null&&d.isSuccess&&m!=="error")A=d.data,p=d.dataUpdatedAt,m=d.status,y=!0;else if(i.select&&typeof c.data!="undefined")if(r&&c.data===(o==null?void 0:o.data)&&i.select===this.selectFn)A=this.selectResult;else try{this.selectFn=i.select,A=i.select(c.data),A=si(r==null?void 0:r.data,A,i),this.selectResult=A,this.selectError=null}catch(f){this.selectError=f}else A=c.data;if(typeof i.placeholderData!="undefined"&&typeof A=="undefined"&&m==="loading"){let f;if(r!=null&&r.isPlaceholderData&&i.placeholderData===(s==null?void 0:s.placeholderData))f=r.data;else if(f=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof f!="undefined")try{f=i.select(f),this.selectError=null}catch(h){this.selectError=h}typeof f!="undefined"&&(m="success",A=si(r==null?void 0:r.data,f,i),N=!0)}this.selectError&&(g=this.selectError,A=this.selectResult,b=Date.now(),m="error");const O=v==="fetching",T=m==="loading",L=m==="error";return{status:m,fetchStatus:v,isLoading:T,isSuccess:m==="success",isError:L,isInitialLoading:T&&O,data:A,dataUpdatedAt:p,error:g,errorUpdatedAt:b,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:O,isRefetching:O&&!T,isLoadingError:L&&c.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:N,isPreviousData:y,isRefetchError:L&&c.dataUpdatedAt!==0,isStale:Tn(t,i),refetch:this.refetch,remove:this.remove}}updateResult(t){const i=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ni(n,i))return;this.currentResult=n;const a={cache:!0},r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const l=u;return this.currentResult[l]!==i[l]&&s.has(l)})};(t==null?void 0:t.listeners)!==!1&&r()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const i=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const i={};t.type==="success"?i.onSuccess=!t.manual:t.type==="error"&&!Qs(t.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()}notify(t){Qe.batch(()=>{if(t.onSuccess){var i,n,a,r;(i=(n=this.options).onSuccess)==null||i.call(n,this.currentResult.data),(a=(r=this.options).onSettled)==null||a.call(r,this.currentResult.data,null)}else if(t.onError){var o,s,u,l;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(u=(l=this.options).onSettled)==null||u.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Js(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ui(e,t){return Js(e,t)||e.state.dataUpdatedAt>0&&cn(e,t,t.refetchOnMount)}function cn(e,t,i){if(t.enabled!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&Tn(e,t)}return!1}function li(e,t,i,n){return i.enabled!==!1&&(e!==t||n.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&Tn(e,i)}function Tn(e,t){return e.isStaleByTime(t.staleTime)}var Ja={exports:{}},Ha={};/**
30
24
  * @license React
31
25
  * use-sync-external-store-shim.production.min.js
32
26
  *
@@ -34,4 +28,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
34
28
  *
35
29
  * This source code is licensed under the MIT license found in the
36
30
  * LICENSE file in the root directory of this source tree.
37
- */var He=te;function uu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lu=typeof Object.is=="function"?Object.is:uu,cu=He.useState,du=He.useEffect,fu=He.useLayoutEffect,hu=He.useDebugValue;function mu(e,t){var i=t(),n=cu({inst:{value:i,getSnapshot:t}}),r=n[0].inst,a=n[1];return fu(function(){r.value=i,r.getSnapshot=t,pn(r)&&a({inst:r})},[e,i,t]),du(function(){return pn(r)&&a({inst:r}),e(function(){pn(r)&&a({inst:r})})},[e]),hu(i),i}function pn(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!lu(e,i)}catch{return!0}}function vu(e,t){return t()}var pu=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?vu:mu;sa.useSyncExternalStore=He.useSyncExternalStore!==void 0?He.useSyncExternalStore:pu;oa.exports=sa;var gu=oa.exports;const ku=gu.useSyncExternalStore,yi=ce.createContext(void 0),yu=ce.createContext(!1);function _u(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=yi),window.ReactQueryClientContext):yi)}const bu=({context:e}={})=>{const t=ce.useContext(_u(e,ce.useContext(yu)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ua=ce.createContext(!1),Su=()=>ce.useContext(ua);ua.Provider;function Nu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Ou=ce.createContext(Nu()),wu=()=>ce.useContext(Ou);function Eu(e,t){return typeof e=="function"?e(...t):!!e}const Au=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Fu=e=>{ce.useEffect(()=>{e.clearReset()},[e])},Cu=({result:e,errorResetBoundary:t,useErrorBoundary:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&Eu(i,[e.error,n]),Ru=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Tu=(e,t)=>e.isLoading&&e.isFetching&&!t,Lu=(e,t,i)=>(e==null?void 0:e.suspense)&&Tu(t,i),xu=(e,t,i)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{i.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function Pu(e,t){const i=bu({context:e.context}),n=Su(),r=wu(),a=i.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=ot.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ot.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ot.batchCalls(a.onSettled)),Ru(a),Au(a,r),Fu(r);const[o]=ce.useState(()=>new t(i,a)),s=o.getOptimisticResult(a);if(ku(ce.useCallback(l=>n?()=>{}:o.subscribe(ot.batchCalls(l)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),ce.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),Lu(a,s,n))throw xu(a,o,r);if(Cu({result:s,errorResetBoundary:r,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function Du(e,t,i){const n=Js(e,t,i);return Pu(n,ou)}let Kn=new Map;const wn=te.createContext(Kn),Iu=({children:e,stores:t})=>{const i=te.useContext(wn),n=te.useMemo(()=>{const r=new Map;return t.forEach(a=>r.set(a.class,a.value)),Kn=new Map([...i,...r])},[]);return Fa.jsx(wn.Provider,{value:n,children:e})};function Vu(e){return te.useContext(wn).get(e)}function ju(e){return Kn.get(e)}function Uu(e,t=[]){if(Array.isArray(t)&&t.some(i=>Ot(i)))throw new Error("useEffect dependencies must not contain observables, ...");te.useEffect(()=>Pn(e),t)}function la(e,t=[]){if(Array.isArray(t)&&t.some(r=>Ot(r)))throw new Error("useEffect dependencies must not contain observables, ...");const[i,n]=te.useState();return te.useEffect(()=>Pn(()=>{const r=e();n(r)}),t),i}function Mu(e,t,i=[]){if(Array.isArray(i)&&i.some(n=>Ot(n)))throw new Error("useEffect dependencies must not contain observables, ...");te.useEffect(()=>cs(e,t),i)}const Bu=()=>["account"],Gu=()=>{const e=la(()=>{var r;return(r=jn.config)==null?void 0:r.account}),[t,i]=Ua(Qt),n=Du(Bu(),()=>Bn.get(e),{enabled:!!e&&!t,refetchOnWindowFocus:!1,refetchOnMount:!1});return te.useEffect(()=>{const r=n.data;!n.isSuccess||!r||i(r)},[n.status]),{findQuery:n,account:t}},ca=xi();async function da(e){const t=await Bn.get(e);return ca.set(Qt,t),t}var fa=(e=>(e.CREATED="CREATED",e.STARTING="STARTING",e.LIVE="LIVE",e.FINALIZED="FINALIZED",e))(fa||{});const zu={ALL:"*",CORE:"core:*",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:*"},Ku={EVENT_STATUS_CHANGED:"event:statusChanged"};var ha=(e=>(e.English="en",e.Spanish="es",e.Portuguese="pt",e))(ha||{}),ma=(e=>(e.COMBO="Combo",e))(ma||{}),va=(e=>(e.VTEX="VTEX",e.PLATFORM="platform",e.CACE="CACE",e.GLOBAL_PAGE="globalPage",e.DEV_LOCAL="dev:local",e.CUSTOMIZATION="customization",e))(va||{});function he(e){return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}function $u(e,t){if(he(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(he(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pa(e){var t=$u(e,"string");return he(t)==="symbol"?t:String(t)}function Wu(e,t,i){return t=pa(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function X(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),n.forEach(function(r){Wu(e,r,i[r])})}return e}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pa(n.key),n)}}function Ee(e,t,i){return t&&_i(e.prototype,t),i&&_i(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e,t){if(t&&(he(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ve(e)}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ze(e)}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},En(e,t)}function tn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}var Qu={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,i){console&&console[t]&&console[t].apply(console,i)}},qu=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};we(this,e),this.init(t,i)}return Ee(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=i||Qu,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(i){this.debug=i}},{key:"log",value:function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(i,n,r,a){return a&&!this.debug?null:(typeof i[0]=="string"&&(i[0]="".concat(r).concat(this.prefix," ").concat(i[0])),this.logger[n](i))}},{key:"create",value:function(i){return new e(this.logger,X({},{prefix:"".concat(this.prefix,":").concat(i,":")},this.options))}}]),e}(),be=new qu,Le=function(){function e(){we(this,e),this.observers={}}return Ee(e,[{key:"on",value:function(i,n){var r=this;return i.split(" ").forEach(function(a){r.observers[a]=r.observers[a]||[],r.observers[a].push(n)}),this}},{key:"off",value:function(i,n){if(this.observers[i]){if(!n){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(function(r){return r!==n})}}},{key:"emit",value:function(i){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(this.observers[i]){var o=[].concat(this.observers[i]);o.forEach(function(l){l.apply(void 0,r)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[i].concat(r))})}}}]),e}();function nt(){var e,t,i=new Promise(function(n,r){e=n,t=r});return i.resolve=e,i.reject=t,i}function bi(e){return e==null?"":""+e}function Ju(e,t,i){e.forEach(function(n){t[n]&&(i[n]=t[n])})}function $n(e,t,i){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function r(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(r())return{};var o=n(a.shift());!e[o]&&i&&(e[o]=new i),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return r()?{}:{obj:e,k:n(a.shift())}}function Si(e,t,i){var n=$n(e,t,Object),r=n.obj,a=n.k;r[a]=i}function Hu(e,t,i,n){var r=$n(e,t,Object),a=r.obj,o=r.k;a[o]=a[o]||[],n&&(a[o]=a[o].concat(i)),n||a[o].push(i)}function Wt(e,t){var i=$n(e,t),n=i.obj,r=i.k;if(n)return n[r]}function Ni(e,t,i){var n=Wt(e,i);return n!==void 0?n:Wt(t,i)}function ga(e,t,i){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?i&&(e[n]=t[n]):ga(e[n],t[n],i):e[n]=t[n]);return e}function Be(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Zu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Xu(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Zu[t]}):e}var nn=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function ka(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(i),r=e,a=0;a<n.length;++a){if(typeof r[n[a]]=="string"&&a+1<n.length)return;if(r[n[a]]===void 0){for(var o=2,s=n.slice(a,a+o).join(i),l=r[s];l===void 0&&n.length>a+o;)o++,s=n.slice(a,a+o).join(i),l=r[s];if(l===void 0)return;if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s];var c=n.slice(a+o).join(i);return c?ka(l,c,i):void 0}r=r[n[a]]}return r}}var Yu=function(e){tn(t,e);function t(i){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return we(this,t),n=vt(this,Ze(t).call(this)),nn&&Le.call(Ve(n)),n.data=i||{},n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Ee(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[n,r];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(s?a.split(s):a)),n.indexOf(".")>-1&&(c=n.split("."));var f=Wt(this.data,c);return f||!l||typeof a!="string"?f:ka(this.data&&this.data[n]&&this.data[n][r],a,s)}},{key:"addResource",value:function(n,r,a,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=this.options.keySeparator;l===void 0&&(l=".");var c=[n,r];a&&(c=c.concat(l?a.split(l):a)),n.indexOf(".")>-1&&(c=n.split("."),o=r,r=c[1]),this.addNamespaces(r),Si(this.data,c,o),s.silent||this.emit("added",n,r,a,o)}},{key:"addResources",value:function(n,r,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var s in a)(typeof a[s]=="string"||Object.prototype.toString.apply(a[s])==="[object Array]")&&this.addResource(n,r,s,a[s],{silent:!0});o.silent||this.emit("added",n,r,a)}},{key:"addResourceBundle",value:function(n,r,a,o,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[n,r];n.indexOf(".")>-1&&(c=n.split("."),o=a,a=r,r=c[1]),this.addNamespaces(r);var f=Wt(this.data,c)||{};o?ga(f,a,s):f=X({},f,a),Si(this.data,c,f),l.silent||this.emit("added",n,r,a)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?X({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(Le),ya={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,i,n,r,a){var o=this;return t.forEach(function(s){o.processors[s]&&(i=o.processors[s].process(i,n,r,a))}),i}},Oi={},wi=function(e){tn(t,e);function t(i){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return we(this,t),n=vt(this,Ze(t).call(this)),nn&&Le.call(Ve(n)),Ju(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Ve(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=be.create("translator"),n}return Ee(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},a=this.resolve(n,r);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(n,r){var a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ns||this.options.defaultNS;if(a&&n.indexOf(a)>-1){var l=n.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:n,namespaces:s};var c=n.split(a);(a!==o||a===o&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),n=c.join(o)}return typeof s=="string"&&(s=[s]),{key:n,namespaces:s}}},{key:"translate",value:function(n,r,a){var o=this;if(he(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=this.extractFromKey(n[n.length-1],r),c=l.key,f=l.namespaces,v=f[f.length-1],O=r.lng||this.language,A=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(O&&O.toLowerCase()==="cimode"){if(A){var R=r.nsSeparator||this.options.nsSeparator;return v+R+c}return c}var b=this.resolve(n,r),_=b&&b.res,C=b&&b.usedKey||c,L=b&&b.exactUsedKey||c,U=Object.prototype.toString.apply(_),P=["[object Number]","[object Function]","[object RegExp]"],z=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,Q=!this.i18nFormat||this.i18nFormat.handleAsObject,Y=typeof _!="string"&&typeof _!="boolean"&&typeof _!="number";if(Q&&_&&Y&&P.indexOf(U)<0&&!(typeof z=="string"&&U==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,_,X({},r,{ns:f})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var g=U==="[object Array]",k=g?[]:{},F=g?L:C;for(var T in _)if(Object.prototype.hasOwnProperty.call(_,T)){var I="".concat(F).concat(s).concat(T);k[T]=this.translate(I,X({},r,{joinArrays:!1,ns:f})),k[T]===I&&(k[T]=_[T])}_=k}}else if(Q&&typeof z=="string"&&U==="[object Array]")_=_.join(z),_&&(_=this.extendTranslation(_,n,r,a));else{var V=!1,B=!1,j=r.count!==void 0&&typeof r.count!="string",K=t.hasDefaultValue(r),H=j?this.pluralResolver.getSuffix(O,r.count):"",u=r["defaultValue".concat(H)]||r.defaultValue;!this.isValidLookup(_)&&K&&(V=!0,_=u),this.isValidLookup(_)||(B=!0,_=c);var d=K&&u!==_&&this.options.updateMissing;if(B||V||d){if(this.logger.log(d?"updateKey":"missingKey",O,v,c,d?u:_),s){var h=this.resolve(c,X({},r,{keySeparator:!1}));h&&h.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.")}var m=[],p=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&p&&p[0])for(var y=0;y<p.length;y++)m.push(p[y]);else this.options.saveMissingTo==="all"?m=this.languageUtils.toResolveHierarchy(r.lng||this.language):m.push(r.lng||this.language);var S=function(N,w,D){o.options.missingKeyHandler?o.options.missingKeyHandler(N,v,w,d?D:_,d,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(N,v,w,d?D:_,d,r),o.emit("missingKey",N,v,w,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?m.forEach(function(E){o.pluralResolver.getSuffixes(E).forEach(function(N){S([E],c+N,r["defaultValue".concat(N)]||u)})}):S(m,c,u))}_=this.extendTranslation(_,n,r,b,a),B&&_===c&&this.options.appendNamespaceToMissingKey&&(_="".concat(v,":").concat(c)),B&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(_))}return _}},{key:"extendTranslation",value:function(n,r,a,o,s){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,a,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(X({},a,{interpolation:X({},this.options.interpolation,a.interpolation)}));var c=a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,f;if(c){var v=n.match(this.interpolator.nestingRegexp);f=v&&v.length}var O=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(O=X({},this.options.interpolation.defaultVariables,O)),n=this.interpolator.interpolate(n,O,a.lng||this.language,a),c){var A=n.match(this.interpolator.nestingRegexp),R=A&&A.length;f<R&&(a.nest=!1)}a.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var C=arguments.length,L=new Array(C),U=0;U<C;U++)L[U]=arguments[U];return s&&s[0]===L[0]&&!a.context?(l.logger.warn("It seems you are nesting recursively key: ".concat(L[0]," in key: ").concat(r[0])),null):l.translate.apply(l,L.concat([r]))},a)),a.interpolation&&this.interpolator.reset()}var b=a.postProcess||this.options.postProcess,_=typeof b=="string"?[b]:b;return n!=null&&_&&_.length&&a.applyPostProcessor!==!1&&(n=ya.handle(_,n,r,this.options&&this.options.postProcessPassResolved?X({i18nResolved:o},a):a,this)),n}},{key:"resolve",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,s,l,c,f;return typeof n=="string"&&(n=[n]),n.forEach(function(v){if(!r.isValidLookup(o)){var O=r.extractFromKey(v,a),A=O.key;s=A;var R=O.namespaces;r.options.fallbackNS&&(R=R.concat(r.options.fallbackNS));var b=a.count!==void 0&&typeof a.count!="string",_=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",C=a.lngs?a.lngs:r.languageUtils.toResolveHierarchy(a.lng||r.language,a.fallbackLng);R.forEach(function(L){r.isValidLookup(o)||(f=L,!Oi["".concat(C[0],"-").concat(L)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(f)&&(Oi["".concat(C[0],"-").concat(L)]=!0,r.logger.warn('key "'.concat(s,'" for languages "').concat(C.join(", "),`" won't get resolved as namespace "`).concat(f,'" 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!!!")),C.forEach(function(U){if(!r.isValidLookup(o)){c=U;var P=A,z=[P];if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(z,A,U,L,a);else{var Q;b&&(Q=r.pluralResolver.getSuffix(U,a.count)),b&&_&&z.push(P+Q),_&&z.push(P+="".concat(r.options.contextSeparator).concat(a.context)),b&&z.push(P+=Q)}for(var Y;Y=z.pop();)r.isValidLookup(o)||(l=Y,o=r.getResource(U,L,Y,a))}}))})}}),{res:o,usedKey:s,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,a,o):this.resourceStore.getResource(n,r,a,o)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a)&&r===a.substring(0,r.length)&&n[a]!==void 0)return!0;return!1}}]),t}(Le);function gn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var el=function(){function e(t){we(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=be.create("languageUtils")}return Ee(e,[{key:"getScriptPartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return null;var n=i.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return i;var n=i.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(i){if(typeof i=="string"&&i.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=i.split("-");return this.options.lowerCaseLng?r=r.map(function(a){return a.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=gn(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=gn(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=gn(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}},{key:"isWhitelisted",value:function(i){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(i)}},{key:"isSupportedCode",value:function(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}},{key:"getBestMatchFromCodes",value:function(i){var n=this;if(!i)return null;var r;return i.forEach(function(a){if(!r){var o=n.formatLanguageCode(a);(!n.options.supportedLngs||n.isSupportedCode(o))&&(r=o)}}),!r&&this.options.supportedLngs&&i.forEach(function(a){if(!r){var o=n.getLanguagePartFromCode(a);if(n.isSupportedCode(o))return r=o;r=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(i,n){if(!i)return[];if(typeof i=="function"&&(i=i(n)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!n)return i.default||[];var r=i[n];return r||(r=i[this.getScriptPartFromCode(n)]),r||(r=i[this.formatLanguageCode(n)]),r||(r=i[this.getLanguagePartFromCode(n)]),r||(r=i.default),r||[]}},{key:"toResolveHierarchy",value:function(i,n){var r=this,a=this.getFallbackCodes(n||this.options.fallbackLng||[],i),o=[],s=function(c){c&&(r.isSupportedCode(c)?o.push(c):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof i=="string"&&i.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(i))):typeof i=="string"&&s(this.formatLanguageCode(i)),a.forEach(function(l){o.indexOf(l)<0&&s(r.formatLanguageCode(l))}),o}}]),e}(),tl=[{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}],nl={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}};function il(){var e={};return tl.forEach(function(t){t.lngs.forEach(function(i){e[i]={numbers:t.nr,plurals:nl[t.fc]}})}),e}var rl=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};we(this,e),this.languageUtils=t,this.options=i,this.logger=be.create("pluralResolver"),this.rules=il()}return Ee(e,[{key:"addRule",value:function(i,n){this.rules[i]=n}},{key:"getRule",value:function(i){return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}},{key:"needsPlural",value:function(i){var n=this.getRule(i);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(i,n){return this.getSuffixes(i).map(function(r){return n+r})}},{key:"getSuffixes",value:function(i){var n=this,r=this.getRule(i);return r?r.numbers.map(function(a){return n.getSuffix(i,a)}):[]}},{key:"getSuffix",value:function(i,n){var r=this,a=this.getRule(i);if(a){var o=a.noAbs?a.plurals(n):a.plurals(Math.abs(n)),s=a.numbers[o];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=function(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(i)),""}}]),e}(),al=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};we(this,e),this.logger=be.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(i){return i},this.init(t)}return Ee(e,[{key:"init",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});var n=i.interpolation;this.escape=n.escape!==void 0?n.escape:Xu,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Be(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Be(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?Be(n.nestingPrefix):n.nestingPrefixEscaped||Be("$t("),this.nestingSuffix=n.nestingSuffix?Be(n.nestingSuffix):n.nestingSuffixEscaped||Be(")"),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()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var i="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(i,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(i,n,r,a){var o=this,s,l,c,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function v(_){return _.replace(/\$/g,"$$$$")}var O=function(C){if(C.indexOf(o.formatSeparator)<0){var L=Ni(n,f,C);return o.alwaysFormat?o.format(L,void 0,r,X({},a,n,{interpolationkey:C})):L}var U=C.split(o.formatSeparator),P=U.shift().trim(),z=U.join(o.formatSeparator).trim();return o.format(Ni(n,f,P),z,r,X({},a,n,{interpolationkey:P}))};this.resetRegExp();var A=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,R=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(C){return v(C)}},{regex:this.regexp,safeValue:function(C){return o.escapeValue?v(o.escape(C)):v(C)}}];return b.forEach(function(_){for(c=0;s=_.regex.exec(i);){if(l=O(s[1].trim()),l===void 0)if(typeof A=="function"){var C=A(i,s,a);l=typeof C=="string"?C:""}else if(R){l=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(i)),l="";else typeof l!="string"&&!o.useRawValueToEscape&&(l=bi(l));var L=_.safeValue(l);if(i=i.replace(s[0],L),R?(_.regex.lastIndex+=L.length,_.regex.lastIndex-=s[0].length):_.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),i}},{key:"nest",value:function(i,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l=X({},a);l.applyPostProcessor=!1,delete l.defaultValue;function c(A,R){var b=this.nestingOptionsSeparator;if(A.indexOf(b)<0)return A;var _=A.split(new RegExp("".concat(b,"[ ]*{"))),C="{".concat(_[1]);A=_[0],C=this.interpolate(C,l),C=C.replace(/'/g,'"');try{l=JSON.parse(C),R&&(l=X({},R,l))}catch(L){return this.logger.warn("failed parsing options string in nesting for key ".concat(A),L),"".concat(A).concat(b).concat(C)}return delete l.defaultValue,A}for(;o=this.nestingRegexp.exec(i);){var f=[],v=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var O=o[1].split(this.formatSeparator).map(function(A){return A.trim()});o[1]=O.shift(),f=O,v=!0}if(s=n(c.call(this,o[1].trim(),l),l),s&&o[0]===i&&typeof s!="string")return s;typeof s!="string"&&(s=bi(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(i)),s=""),v&&(s=f.reduce(function(A,R){return r.format(A,R,a.lng,X({},a,{interpolationkey:o[1].trim()}))},s.trim())),i=i.replace(o[0],s),this.regexp.lastIndex=0}return i}}]),e}();function ol(e,t){for(var i=e.indexOf(t);i!==-1;)e.splice(i,1),i=e.indexOf(t)}var sl=function(e){tn(t,e);function t(i,n,r){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return we(this,t),a=vt(this,Ze(t).call(this)),nn&&Le.call(Ve(a)),a.backend=i,a.store=n,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=be.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}return Ee(t,[{key:"queueLoad",value:function(n,r,a,o){var s=this,l=[],c=[],f=[],v=[];return n.forEach(function(O){var A=!0;r.forEach(function(R){var b="".concat(O,"|").concat(R);!a.reload&&s.store.hasResourceBundle(O,R)?s.state[b]=2:s.state[b]<0||(s.state[b]===1?c.indexOf(b)<0&&c.push(b):(s.state[b]=1,A=!1,c.indexOf(b)<0&&c.push(b),l.indexOf(b)<0&&l.push(b),v.indexOf(R)<0&&v.push(R)))}),A||f.push(O)}),(l.length||c.length)&&this.queue.push({pending:c,loaded:{},errors:[],callback:o}),{toLoad:l,pending:c,toLoadLanguages:f,toLoadNamespaces:v}}},{key:"loaded",value:function(n,r,a){var o=n.split("|"),s=o[0],l=o[1];r&&this.emit("failedLoading",s,l,r),a&&this.store.addResourceBundle(s,l,a),this.state[n]=r?-1:2;var c={};this.queue.forEach(function(f){Hu(f.loaded,[s],l),ol(f.pending,n),r&&f.errors.push(r),f.pending.length===0&&!f.done&&(Object.keys(f.loaded).forEach(function(v){c[v]||(c[v]=[]),f.loaded[v].length&&f.loaded[v].forEach(function(O){c[v].indexOf(O)<0&&c[v].push(O)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(n,r,a){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,c=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[a](n,r,function(f,v){if(f&&v&&s<5){setTimeout(function(){o.read.call(o,n,r,a,s+1,l*2,c)},l);return}c(f,v)}):c(null,{})}},{key:"prepareLoading",value:function(n,r){var a=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var l=this.queueLoad(n,r,o,s);if(!l.toLoad.length)return l.pending.length||s(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(n,r,a){this.prepareLoading(n,r,{},a)}},{key:"reload",value:function(n,r,a){this.prepareLoading(n,r,{reload:!0},a)}},{key:"loadOne",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),s=o[0],l=o[1];this.read(s,l,"read",void 0,void 0,function(c,f){c&&r.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(s," failed"),c),!c&&f&&r.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(s),f),r.loaded(n,c,f)})}},{key:"saveMissing",value:function(n,r,a,o,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(r,'" 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}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(n,r,a,o,null,X({},l,{isUpdate:s})),!(!n||!n[0])&&this.store.addResource(n[0],r,a,o))}}]),t}(Le);function ul(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var i={};if(he(t[1])==="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),he(t[2])==="object"||he(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){i[r]=n[r]})}return i},interpolation:{escapeValue:!0,format:function(t,i,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Ei(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pt(){}var ll=function(e){tn(t,e);function t(){var i,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(we(this,t),i=vt(this,Ze(t).call(this)),nn&&Le.call(Ve(i)),i.options=Ei(n),i.services={},i.logger=be,i.modules={external:[]},r&&!i.isInitialized&&!n.isClone){if(!i.options.initImmediate)return i.init(n,r),vt(i,Ve(i));setTimeout(function(){i.init(n,r)},0)}return i}return Ee(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(a=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=X({},ul(),this.options,Ei(r)),this.format=this.options.interpolation.format,a||(a=Pt);function o(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?be.init(o(this.modules.logger),this.options):be.init(null,this.options);var s=new el(this.options);this.store=new Yu(this.options.resources,this.options);var l=this.services;l.logger=be,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new rl(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l.interpolator=new al(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new sl(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(R){for(var b=arguments.length,_=new Array(b>1?b-1:0),C=1;C<b;C++)_[C-1]=arguments[C];n.emit.apply(n,[R].concat(_))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new wi(this.services,this.options),this.translator.on("*",function(R){for(var b=arguments.length,_=new Array(b>1?b-1:0),C=1;C<b;C++)_[C-1]=arguments[C];n.emit.apply(n,[R].concat(_))}),this.modules.external.forEach(function(R){R.init&&R.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var 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");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(R){n[R]=function(){var b;return(b=n.store)[R].apply(b,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(R){n[R]=function(){var b;return(b=n.store)[R].apply(b,arguments),n}});var O=nt(),A=function(){var b=function(C,L){n.isInitialized&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),O.resolve(L),a(C,L)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return b(null,n.t.bind(n));n.changeLanguage(n.options.lng,b)};return this.options.resources||!this.options.initImmediate?A():setTimeout(A,0),O}},{key:"loadResources",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt,o=a,s=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return o();var l=[],c=function(O){if(O){var A=r.services.languageUtils.toResolveHierarchy(O);A.forEach(function(R){l.indexOf(R)<0&&l.push(R)})}};if(s)c(s);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(v){return c(v)})}this.options.preload&&this.options.preload.forEach(function(v){return c(v)}),this.services.backendConnector.load(l,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,a){var o=nt();return n||(n=this.languages),r||(r=this.options.ns),a||(a=Pt),this.services.backendConnector.reload(n,r,function(s){o.resolve(),a(s)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&ya.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var a=this;this.isLanguageChangingTo=n;var o=nt();this.emit("languageChanging",n);var s=function(f,v){v?(a.language=v,a.languages=a.services.languageUtils.toResolveHierarchy(v),a.translator.changeLanguage(v),a.isLanguageChangingTo=void 0,a.emit("languageChanged",v),a.logger.log("languageChanged",v)):a.isLanguageChangingTo=void 0,o.resolve(function(){return a.t.apply(a,arguments)}),r&&r(f,function(){return a.t.apply(a,arguments)})},l=function(f){!n&&!f&&a.services.languageDetector&&(f=[]);var v=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);v&&(a.language||(a.language=v,a.languages=a.services.languageUtils.toResolveHierarchy(v)),a.translator.language||a.translator.changeLanguage(v),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(v)),a.loadResources(v,function(O){s(O,v)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(l):l(n),o}},{key:"getFixedT",value:function(n,r){var a=this,o=function s(l,c){var f;if(he(c)!=="object"){for(var v=arguments.length,O=new Array(v>2?v-2:0),A=2;A<v;A++)O[A-2]=arguments[A];f=a.options.overloadTranslationOptionHandler([l,c].concat(O))}else f=X({},c);return f.lng=f.lng||s.lng,f.lngs=f.lngs||s.lngs,f.ns=f.ns||s.ns,a.t(l,f)};return typeof n=="string"?o.lng=n:o.lngs=n,o.ns=r,o}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,a=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;var o=this.languages[0],s=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var c=function(O,A){var R=r.services.backendConnector.state["".concat(O,"|").concat(A)];return R===-1||R===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||c(o,n)&&(!s||c(l,n)))}},{key:"loadNamespaces",value:function(n,r){var a=this,o=nt();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(s){a.options.ns.indexOf(s)<0&&a.options.ns.push(s)}),this.loadResources(function(s){o.resolve(),r&&r(s)}),o):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var a=nt();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],s=n.filter(function(l){return o.indexOf(l)<0});return s.length?(this.options.preload=o.concat(s),this.loadResources(function(l){a.resolve(),r&&r(l)}),a):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),!n)return"rtl";var r=["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"];return r.indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt,o=X({},this.options,r,{isClone:!0}),s=new t(o),l=["store","services","language"];return l.forEach(function(c){s[c]=n[c]}),s.services=X({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new wi(s.services,s.options),s.translator.on("*",function(c){for(var f=arguments.length,v=new Array(f>1?f-1:0),O=1;O<f;O++)v[O-1]=arguments[O];s.emit.apply(s,[c].concat(v))}),s.init(o,a),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(Le),_a=new ll;function cl(e){const t=Object.values(e);return Object.assign({},...t)}function dl(e){return Object.entries(e).reduce((t,[i,n])=>{const r=cl(n);return{...t,[i]:r}},{})}function fl(e){const t=dl(e);Object.entries(t).forEach(([i,n])=>{_a.addResourceBundle(i,"translation",n,!0)})}function hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(e){return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(e)}function ml(e,t){if(pt(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(pt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vl(e){var t=ml(e,"string");return pt(t)==="symbol"?t:String(t)}function Ai(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vl(n.key),n)}}function pl(e,t,i){return t&&Ai(e.prototype,t),i&&Ai(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var ba=[],gl=ba.forEach,kl=ba.slice;function yl(e){return gl.call(kl.call(arguments,1),function(t){if(t)for(var i in t)e[i]===void 0&&(e[i]=t[i])}),e}var Fi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,_l=function(t,i,n){var r=n||{};r.path=r.path||"/";var a=encodeURIComponent(i),o="".concat(t,"=").concat(a);if(r.maxAge>0){var s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(r.domain){if(!Fi.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!Fi.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},Ci={create:function(t,i,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=_l(t,encodeURIComponent(i),a)},read:function(t){for(var i="".concat(t,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var a=n[r];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(i)===0)return a.substring(i.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},bl={name:"cookie",lookup:function(t){var i;if(t.lookupCookie&&typeof document!="undefined"){var n=Ci.read(t.lookupCookie);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupCookie&&typeof document!="undefined"&&Ci.create(i.lookupCookie,t,i.cookieMinutes,i.cookieDomain,i.cookieOptions)}},Sl={name:"querystring",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1),a=r.split("&"),o=0;o<a.length;o++){var s=a[o].indexOf("=");if(s>0){var l=a[o].substring(0,s);l===t.lookupQuerystring&&(i=a[o].substring(s+1))}}}return i}},it=null,Ri=function(){if(it!==null)return it;try{it=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{it=!1}return it},Nl={name:"localStorage",lookup:function(t){var i;if(t.lookupLocalStorage&&Ri()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupLocalStorage&&Ri()&&window.localStorage.setItem(i.lookupLocalStorage,t)}},rt=null,Ti=function(){if(rt!==null)return rt;try{rt=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{rt=!1}return rt},Ol={name:"sessionStorage",lookup:function(t){var i;if(t.lookupSessionStorage&&Ti()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupSessionStorage&&Ti()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)}},wl={name:"navigator",lookup:function(t){var i=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)i.push(navigator.languages[n]);navigator.userLanguage&&i.push(navigator.userLanguage),navigator.language&&i.push(navigator.language)}return i.length>0?i:void 0}},El={name:"htmlTag",lookup:function(t){var i,n=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(i=n.getAttribute("lang")),i}},Al={name:"path",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;i=n[t.lookupFromPathIndex].replace("/","")}else i=n[0].replace("/","")}return i}},Fl={name:"subdomain",lookup:function(t){var i=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=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(n)return n[i]}};function Cl(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Sa=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hl(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return pl(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i||{languageUtils:{}},this.options=yl(n,this.options||{},Cl()),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(bl),this.addDetector(Sl),this.addDetector(Nl),this.addDetector(Ol),this.addDetector(wl),this.addDetector(El),this.addDetector(Al),this.addDetector(Fl)}},{key:"addDetector",value:function(i){this.detectors[i.name]=i}},{key:"detect",value:function(i){var n=this;i||(i=this.options.order);var r=[];return i.forEach(function(a){if(n.detectors[a]){var o=n.detectors[a].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(function(a){return n.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(i,n){var r=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||n.forEach(function(a){r.detectors[a]&&r.detectors[a].cacheUserLanguage(i,r.options)}))}}]),e}();Sa.type="languageDetector";const Rl=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Tl={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ll=e=>Tl[e],xl=e=>e.replace(Rl,Ll);let Li={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:xl};function Pl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Li={...Li,...e}}const Dl={type:"3rdParty",init(e){Pl(e.options.react)}},Il=_a.use(Dl).use(Sa).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(e,t,i)=>{if(t){const[n,...r]=t.split(",").map(a=>a.trim());if(n==="number")return new Intl.NumberFormat(i).format(e);if(n==="date")return new Intl.DateTimeFormat(i).format(e);if(n==="currency")return new Intl.NumberFormat(i,{style:"currency",currency:r[0]||"USD",currencyDisplay:"narrowSymbol"}).format(e).replace("$","").trim()}return e}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});var Na=(e=>(e.Created="CREATED",e.Finalized="FINALIZED",e.Live="LIVE",e.Starting="STARTING",e))(Na||{}),Oa=(e=>(e.Add="add",e.Remove="remove",e))(Oa||{}),wa=(e=>(e.Active="active",e.Inactive="inactive",e))(wa||{});const Vl={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"}}]}}]}}]}}]},jl={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"}}]}}]}}]}}]},Ul={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"}}]}}]}}]}}]},Ml={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"}}]}}]}}]}}]},Bl={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:"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"}}]}}]}}]}}]},zl={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"}}]}}]}}]}}]},Kl={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"}}]}}]}}]}}]},$l={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"}}]}}]}}]}}]},Wl={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"}}]}}]}}]}}]},Ql={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"}}]}}]}}]}}]},ql={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"}}]}}]}}]}}]},Jl={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"}}]}}]}}]}}]},Hl={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"}}]}}]}}]}}]},Zl={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"}}]}}]}}]}}]},Xl={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"}}]}}]}}]}}]},Yl={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"}}]}}]}}]}}]},ec={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"}}]}}]}}]}}]},tc={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"}}]}}]}}]}}]},nc={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"}}]}}]}}]}}]},ic={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"}}]}}]}}]}}]},rc={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"}}]}}]}}]}}]},ac={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"}}]}}]}}]}}]}}]},oc={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"}}]}}]}}]}}]},sc={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"}}]}}]}}]}}]},uc=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Kl,AppendProductsToSnackVideoDocument:Yl,CreateSnackVideoBatchDocument:ec,DeleteAllCustomizationDocument:Vl,DeleteChatMessageDocument:Ml,DeleteCollectionDocument:$l,DeleteRelationshipWithSnackVideoDocument:tc,DeleteSnackVideoDocument:nc,EventStatus:Na,FindByProductSnackVideoDocument:sc,FindCollectionDocument:Wl,FindManySnackVideosDocument:ic,FindMinimalEventDocument:Zl,GetAllChatMessageDocument:Bl,GetAllCollectionsDocument:Ql,GetAllCustomizationDocument:jl,GetAllSnackVideosDocument:rc,GetChatRoomTokenDocument:Gl,GetSnackVideoRelationshipsDocument:ac,ManageCollectionProductDocument:ql,Methods:Oa,PinChatMessageDocument:zl,SearchCollectionsDocument:Jl,SearchMinimalEventsDocument:Xl,SearchSnackVideosDocument:oc,Status:wa,UpdateCollectionDocument:Hl,UpdateCustomizationDocument:Ul},Symbol.toStringTag,{value:"Module"}));function lc(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=Mn;exports.AccountContractTypes=Yr;exports.AccountInvalidError=Vs;exports.AccountPlanDescriptionTypes=ta;exports.AccountRestRepository=ia;exports.AccountService=ra;exports.AccountSubscriptionTypes=ea;exports.AccountTypes=Un;exports.AggregateRoot=Zr;exports.ApiGraphqlTypes=uc;exports.BaseMobxStore=zs;exports.DomainError=Ft;exports.EventBusWildcards=zu;exports.EventNames=Ku;exports.GlobalPageSectionTypes=na;exports.InvalidNizzaGlobalObjectError=zr;exports.LanguageTypes=ha;exports.NizzaAccount=en;exports.NizzaEventStatus=fa;exports.NizzaProductRequestOriginTypes=va;exports.NizzaStore=lt;exports.NizzaVariationTypes=ma;exports.ResourceNotFoundError=Br;exports.StoreProvider=Iu;exports.UnexpectedError=Gr;exports.ValueObject=Ks;exports.accountAtom=Qt;exports.accountService=Bn;exports.apiCall=$a;exports.createAggregateRoot=Xr;exports.createLogger=Qr;exports.createStore=lc;exports.customFetch=An;exports.downloadFile=Wa;exports.fileOrigin=Ja;exports.getAccount=da;exports.getLogger=Jr;exports.getStore=ju;exports.globalAtomStore=ca;exports.i18n=Il;exports.initializeLogger=Hr;exports.jsDownload=Di;exports.logger=Gs;exports.nizza=jn;exports.registerLogger=qr;exports.registerTranslations=fl;exports.searchParams=qa;exports.shortId=Ii;exports.useAccount=Gu;exports.useAutorun=Uu;exports.useReaction=Mu;exports.useSelect=la;exports.useStore=Vu;
31
+ */var Le=M;function Hs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zs=typeof Object.is=="function"?Object.is:Hs,Xs=Le.useState,Ys=Le.useEffect,eu=Le.useLayoutEffect,tu=Le.useDebugValue;function nu(e,t){var i=t(),n=Xs({inst:{value:i,getSnapshot:t}}),a=n[0].inst,r=n[1];return eu(function(){a.value=i,a.getSnapshot=t,nn(a)&&r({inst:a})},[e,i,t]),Ys(function(){return nn(a)&&r({inst:a}),e(function(){nn(a)&&r({inst:a})})},[e]),tu(i),i}function nn(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Zs(e,i)}catch{return!0}}function iu(e,t){return t()}var au=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?iu:nu;Ha.useSyncExternalStore=Le.useSyncExternalStore!==void 0?Le.useSyncExternalStore:au;Ja.exports=Ha;var ru=Ja.exports;const ou=ru.useSyncExternalStore,di=q.createContext(void 0),su=q.createContext(!1);function uu(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=di),window.ReactQueryClientContext):di)}const lu=({context:e}={})=>{const t=q.useContext(uu(e,q.useContext(su)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Za=q.createContext(!1),du=()=>q.useContext(Za);Za.Provider;function cu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const fu=q.createContext(cu()),mu=()=>q.useContext(fu);function hu(e,t){return typeof e=="function"?e(...t):!!e}const vu=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},pu=e=>{q.useEffect(()=>{e.clearReset()},[e])},gu=({result:e,errorResetBoundary:t,useErrorBoundary:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&hu(i,[e.error,n]),ku=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},yu=(e,t)=>e.isLoading&&e.isFetching&&!t,_u=(e,t,i)=>(e==null?void 0:e.suspense)&&yu(t,i),bu=(e,t,i)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{i.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function Su(e,t){const i=lu({context:e.context}),n=du(),a=mu(),r=i.defaultQueryOptions(e);r._optimisticResults=n?"isRestoring":"optimistic",r.onError&&(r.onError=Qe.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=Qe.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=Qe.batchCalls(r.onSettled)),ku(r),vu(r,a),pu(a);const[o]=q.useState(()=>new t(i,r)),s=o.getOptimisticResult(r);if(ou(q.useCallback(u=>n?()=>{}:o.subscribe(Qe.batchCalls(u)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),q.useEffect(()=>{o.setOptions(r,{listeners:!1})},[r,o]),_u(r,s,n))throw bu(r,o,a);if(gu({result:s,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return r.notifyOnChangeProps?s:o.trackResult(s)}function Nu(e,t,i){const n=Vs(e,t,i);return Su(n,qs)}let xn=new Map;const fn=M.createContext(xn),Ou=({children:e,stores:t})=>{const i=M.useContext(fn),n=M.useMemo(()=>{const a=new Map;return t.forEach(r=>a.set(r.class,r.value)),xn=new Map([...i,...a])},[]);return gr.jsx(fn.Provider,{value:n,children:e})};function Eu(e){return M.useContext(fn).get(e)}function wu(e){return xn.get(e)}function Au(e,t=[]){if(Array.isArray(t)&&t.some(i=>dt(i)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>bn(e),t)}function Xa(e,t=[]){if(Array.isArray(t)&&t.some(a=>dt(a)))throw new Error("useEffect dependencies must not contain observables, ...");const[i,n]=M.useState();return M.useEffect(()=>bn(()=>{const a=e();n(a)}),t),i}function Fu(e,t,i=[]){if(Array.isArray(i)&&i.some(n=>dt(n)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>Yo(e,t),i)}const Cu=()=>["account"],Ru=()=>{const e=Xa(()=>{var a;return(a=En.config)==null?void 0:a.account}),[t,i]=Fr(Pt),n=Nu(Cu(),()=>Cn.get(e),{enabled:!!e&&!t,refetchOnWindowFocus:!1,refetchOnMount:!1});return M.useEffect(()=>{const a=n.data;!n.isSuccess||!a||i(a)},[n.status]),{findQuery:n,account:t}},Ya=Oi();async function er(e){const t=await Cn.get(e);return Ya.set(Pt,t),t}var tr=(e=>(e.CREATED="CREATED",e.STARTING="STARTING",e.LIVE="LIVE",e.FINALIZED="FINALIZED",e))(tr||{});const Tu={ALL:"*",CORE:"core:**",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:**"},xu={EVENT_STATUS_CHANGED:"event:statusChanged"};var nr=(e=>(e.English="en",e.Spanish="es",e.Portuguese="pt",e))(nr||{}),ir=(e=>(e.COMBO="Combo",e))(ir||{}),ar=(e=>(e.VTEX="VTEX",e.PLATFORM="platform",e.CACE="CACE",e.GLOBAL_PAGE="globalPage",e.DEV_LOCAL="dev:local",e.CUSTOMIZATION="customization",e))(ar||{});function Z(e){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(e)}function Du(e,t){if(Z(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(Z(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rr(e){var t=Du(e,"string");return Z(t)==="symbol"?t:String(t)}function Pu(e,t,i){return t=rr(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function j(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),n.forEach(function(a){Pu(e,a,i[a])})}return e}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ci(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rr(n.key),n)}}function ce(e,t,i){return t&&ci(e.prototype,t),i&&ci(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e,t){if(t&&(Z(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ie(e)}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},mn(e,t)}function zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mn(e,t)}var Lu={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,i){console&&console[t]&&console[t].apply(console,i)}},Iu=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};de(this,e),this.init(t,i)}return ce(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=i||Lu,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(i){this.debug=i}},{key:"log",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(i,n,a,r){return r&&!this.debug?null:(typeof i[0]=="string"&&(i[0]="".concat(a).concat(this.prefix," ").concat(i[0])),this.logger[n](i))}},{key:"create",value:function(i){return new e(this.logger,j({},{prefix:"".concat(this.prefix,":").concat(i,":")},this.options))}}]),e}(),oe=new Iu,pe=function(){function e(){de(this,e),this.observers={}}return ce(e,[{key:"on",value:function(i,n){var a=this;return i.split(" ").forEach(function(r){a.observers[r]=a.observers[r]||[],a.observers[r].push(n)}),this}},{key:"off",value:function(i,n){if(this.observers[i]){if(!n){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(function(a){return a!==n})}}},{key:"emit",value:function(i){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(this.observers[i]){var o=[].concat(this.observers[i]);o.forEach(function(u){u.apply(void 0,a)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[i].concat(a))})}}}]),e}();function Be(){var e,t,i=new Promise(function(n,a){e=n,t=a});return i.resolve=e,i.reject=t,i}function fi(e){return e==null?"":""+e}function Vu(e,t,i){e.forEach(function(n){t[n]&&(i[n]=t[n])})}function Dn(e,t,i){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!e||typeof e=="string"}for(var r=typeof t!="string"?[].concat(t):t.split(".");r.length>1;){if(a())return{};var o=n(r.shift());!e[o]&&i&&(e[o]=new i),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return a()?{}:{obj:e,k:n(r.shift())}}function mi(e,t,i){var n=Dn(e,t,Object),a=n.obj,r=n.k;a[r]=i}function ju(e,t,i,n){var a=Dn(e,t,Object),r=a.obj,o=a.k;r[o]=r[o]||[],n&&(r[o]=r[o].concat(i)),n||r[o].push(i)}function Dt(e,t){var i=Dn(e,t),n=i.obj,a=i.k;if(n)return n[a]}function hi(e,t,i){var n=Dt(e,i);return n!==void 0?n:Dt(t,i)}function or(e,t,i){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?i&&(e[n]=t[n]):or(e[n],t[n],i):e[n]=t[n]);return e}function we(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Mu(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Uu[t]}):e}var Gt=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function sr(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(i),a=e,r=0;r<n.length;++r){if(typeof a[n[r]]=="string"&&r+1<n.length)return;if(a[n[r]]===void 0){for(var o=2,s=n.slice(r,r+o).join(i),u=a[s];u===void 0&&n.length>r+o;)o++,s=n.slice(r,r+o).join(i),u=a[s];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var l=n.slice(r+o).join(i);return l?sr(u,l,i):void 0}a=a[n[r]]}return a}}var Bu=function(e){zt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return de(this,t),n=tt(this,Ie(t).call(this)),Gt&&pe.call(be(n)),n.data=i||{},n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return ce(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var a=this.options.ns.indexOf(n);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,a];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(s?r.split(s):r)),n.indexOf(".")>-1&&(l=n.split("."));var d=Dt(this.data,l);return d||!u||typeof r!="string"?d:sr(this.data&&this.data[n]&&this.data[n][a],r,s)}},{key:"addResource",value:function(n,a,r,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var l=[n,a];r&&(l=l.concat(u?r.split(u):r)),n.indexOf(".")>-1&&(l=n.split("."),o=a,a=l[1]),this.addNamespaces(a),mi(this.data,l,o),s.silent||this.emit("added",n,a,r,o)}},{key:"addResources",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(n,a,s,r[s],{silent:!0});o.silent||this.emit("added",n,a,r)}},{key:"addResourceBundle",value:function(n,a,r,o,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,a];n.indexOf(".")>-1&&(l=n.split("."),o=r,r=a,a=l[1]),this.addNamespaces(a);var d=Dt(this.data,l)||{};o?or(d,r,s):d=j({},d,r),mi(this.data,l,d),u.silent||this.emit("added",n,a,r)}},{key:"removeResourceBundle",value:function(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}},{key:"hasResourceBundle",value:function(n,a){return this.getResource(n,a)!==void 0}},{key:"getResourceBundle",value:function(n,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?j({},{},this.getResource(n,a)):this.getResource(n,a)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(pe),ur={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,i,n,a,r){var o=this;return t.forEach(function(s){o.processors[s]&&(i=o.processors[s].process(i,n,a,r))}),i}},vi={},pi=function(e){zt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return de(this,t),n=tt(this,Ie(t).call(this)),Gt&&pe.call(be(n)),Vu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,be(n)),n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=oe.create("translator"),n}return ce(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=this.resolve(n,a);return r&&r.res!==void 0}},{key:"extractFromKey",value:function(n,a){var r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");var o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ns||this.options.defaultNS;if(r&&n.indexOf(r)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:s};var l=n.split(r);(r!==o||r===o&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),n=l.join(o)}return typeof s=="string"&&(s=[s]),{key:n,namespaces:s}}},{key:"translate",value:function(n,a,r){var o=this;if(Z(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],a),l=u.key,d=u.namespaces,c=d[d.length-1],p=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var b=a.nsSeparator||this.options.nsSeparator;return c+b+l}return l}var v=this.resolve(n,a),m=v&&v.res,y=v&&v.usedKey||l,N=v&&v.exactUsedKey||l,A=Object.prototype.toString.apply(m),O=["[object Number]","[object Function]","[object RegExp]"],T=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,z=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(L&&m&&z&&O.indexOf(A)<0&&!(typeof T=="string"&&A==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,j({},a,{ns:d})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var f=A==="[object Array]",h=f?[]:{},k=f?N:y;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var E="".concat(k).concat(s).concat(S);h[S]=this.translate(E,j({},a,{joinArrays:!1,ns:d})),h[S]===E&&(h[S]=m[S])}m=h}}else if(L&&typeof T=="string"&&A==="[object Array]")m=m.join(T),m&&(m=this.extendTranslation(m,n,a,r));else{var w=!1,R=!1,ie=a.count!==void 0&&typeof a.count!="string",P=t.hasDefaultValue(a),V=ie?this.pluralResolver.getSuffix(p,a.count):"",I=a["defaultValue".concat(V)]||a.defaultValue;!this.isValidLookup(m)&&P&&(w=!0,m=I),this.isValidLookup(m)||(R=!0,m=l);var K=P&&I!==m&&this.options.updateMissing;if(R||w||K){if(this.logger.log(K?"updateKey":"missingKey",p,c,l,K?I:m),s){var Pn=this.resolve(l,j({},a,{keySeparator:!1}));Pn&&Pn.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.")}var Me=[],pt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pt&&pt[0])for(var $t=0;$t<pt.length;$t++)Me.push(pt[$t]);else this.options.saveMissingTo==="all"?Me=this.languageUtils.toResolveHierarchy(a.lng||this.language):Me.push(a.lng||this.language);var Ln=function(Oe,Qt,In){o.options.missingKeyHandler?o.options.missingKeyHandler(Oe,c,Qt,K?In:m,K,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(Oe,c,Qt,K?In:m,K,a),o.emit("missingKey",Oe,c,Qt,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ie?Me.forEach(function(Kt){o.pluralResolver.getSuffixes(Kt).forEach(function(Oe){Ln([Kt],l+Oe,a["defaultValue".concat(Oe)]||I)})}):Ln(Me,l,I))}m=this.extendTranslation(m,n,a,v,r),R&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(l)),R&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(n,a,r,o,s){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(j({},r,{interpolation:j({},this.options.interpolation,r.interpolation)}));var l=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,d;if(l){var c=n.match(this.interpolator.nestingRegexp);d=c&&c.length}var p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p=j({},this.options.interpolation.defaultVariables,p)),n=this.interpolator.interpolate(n,p,r.lng||this.language,r),l){var g=n.match(this.interpolator.nestingRegexp),b=g&&g.length;d<b&&(r.nest=!1)}r.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var y=arguments.length,N=new Array(y),A=0;A<y;A++)N[A]=arguments[A];return s&&s[0]===N[0]&&!r.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(N[0]," in key: ").concat(a[0])),null):u.translate.apply(u,N.concat([a]))},r)),r.interpolation&&this.interpolator.reset()}var v=r.postProcess||this.options.postProcess,m=typeof v=="string"?[v]:v;return n!=null&&m&&m.length&&r.applyPostProcessor!==!1&&(n=ur.handle(m,n,a,this.options&&this.options.postProcessPassResolved?j({i18nResolved:o},r):r,this)),n}},{key:"resolve",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,s,u,l,d;return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!a.isValidLookup(o)){var p=a.extractFromKey(c,r),g=p.key;s=g;var b=p.namespaces;a.options.fallbackNS&&(b=b.concat(a.options.fallbackNS));var v=r.count!==void 0&&typeof r.count!="string",m=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:a.languageUtils.toResolveHierarchy(r.lng||a.language,r.fallbackLng);b.forEach(function(N){a.isValidLookup(o)||(d=N,!vi["".concat(y[0],"-").concat(N)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(vi["".concat(y[0],"-").concat(N)]=!0,a.logger.warn('key "'.concat(s,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(d,'" 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!!!")),y.forEach(function(A){if(!a.isValidLookup(o)){l=A;var O=g,T=[O];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(T,g,A,N,r);else{var L;v&&(L=a.pluralResolver.getSuffix(A,r.count)),v&&m&&T.push(O+L),m&&T.push(O+="".concat(a.options.contextSeparator).concat(r.context)),v&&T.push(O+=L)}for(var z;z=T.pop();)a.isValidLookup(o)||(u=z,o=a.getResource(A,N,z,r))}}))})}}),{res:o,usedKey:s,exactUsedKey:u,usedLng:l,usedNS:d}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,a,r,o):this.resourceStore.getResource(n,a,r,o)}}],[{key:"hasDefaultValue",value:function(n){var a="defaultValue";for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&a===r.substring(0,a.length)&&n[r]!==void 0)return!0;return!1}}]),t}(pe);function an(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zu=function(){function e(t){de(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oe.create("languageUtils")}return ce(e,[{key:"getScriptPartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return null;var n=i.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return i;var n=i.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(i){if(typeof i=="string"&&i.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],a=i.split("-");return this.options.lowerCaseLng?a=a.map(function(r){return r.toLowerCase()}):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=an(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=an(a[1].toLowerCase())),n.indexOf(a[2].toLowerCase())>-1&&(a[2]=an(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}},{key:"isWhitelisted",value:function(i){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(i)}},{key:"isSupportedCode",value:function(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}},{key:"getBestMatchFromCodes",value:function(i){var n=this;if(!i)return null;var a;return i.forEach(function(r){if(!a){var o=n.formatLanguageCode(r);(!n.options.supportedLngs||n.isSupportedCode(o))&&(a=o)}}),!a&&this.options.supportedLngs&&i.forEach(function(r){if(!a){var o=n.getLanguagePartFromCode(r);if(n.isSupportedCode(o))return a=o;a=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}},{key:"getFallbackCodes",value:function(i,n){if(!i)return[];if(typeof i=="function"&&(i=i(n)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!n)return i.default||[];var a=i[n];return a||(a=i[this.getScriptPartFromCode(n)]),a||(a=i[this.formatLanguageCode(n)]),a||(a=i[this.getLanguagePartFromCode(n)]),a||(a=i.default),a||[]}},{key:"toResolveHierarchy",value:function(i,n){var a=this,r=this.getFallbackCodes(n||this.options.fallbackLng||[],i),o=[],s=function(l){l&&(a.isSupportedCode(l)?o.push(l):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof i=="string"&&i.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(i))):typeof i=="string"&&s(this.formatLanguageCode(i)),r.forEach(function(u){o.indexOf(u)<0&&s(a.formatLanguageCode(u))}),o}}]),e}(),Gu=[{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}],$u={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}};function Ku(){var e={};return Gu.forEach(function(t){t.lngs.forEach(function(i){e[i]={numbers:t.nr,plurals:$u[t.fc]}})}),e}var Qu=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};de(this,e),this.languageUtils=t,this.options=i,this.logger=oe.create("pluralResolver"),this.rules=Ku()}return ce(e,[{key:"addRule",value:function(i,n){this.rules[i]=n}},{key:"getRule",value:function(i){return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}},{key:"needsPlural",value:function(i){var n=this.getRule(i);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(i,n){return this.getSuffixes(i).map(function(a){return n+a})}},{key:"getSuffixes",value:function(i){var n=this,a=this.getRule(i);return a?a.numbers.map(function(r){return n.getSuffix(i,r)}):[]}},{key:"getSuffix",value:function(i,n){var a=this,r=this.getRule(i);if(r){var o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),s=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var u=function(){return a.options.prepend&&s.toString()?a.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(i)),""}}]),e}(),Wu=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(this,e),this.logger=oe.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(i){return i},this.init(t)}return ce(e,[{key:"init",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});var n=i.interpolation;this.escape=n.escape!==void 0?n.escape:Mu,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?we(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?we(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?we(n.nestingPrefix):n.nestingPrefixEscaped||we("$t("),this.nestingSuffix=n.nestingSuffix?we(n.nestingSuffix):n.nestingSuffixEscaped||we(")"),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()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var i="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(i,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(i,n,a,r){var o=this,s,u,l,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}var p=function(y){if(y.indexOf(o.formatSeparator)<0){var N=hi(n,d,y);return o.alwaysFormat?o.format(N,void 0,a,j({},r,n,{interpolationkey:y})):N}var A=y.split(o.formatSeparator),O=A.shift().trim(),T=A.join(o.formatSeparator).trim();return o.format(hi(n,d,O),T,a,j({},r,n,{interpolationkey:O}))};this.resetRegExp();var g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,b=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return o.escapeValue?c(o.escape(y)):c(y)}}];return v.forEach(function(m){for(l=0;s=m.regex.exec(i);){if(u=p(s[1].trim()),u===void 0)if(typeof g=="function"){var y=g(i,s,r);u=typeof y=="string"?y:""}else if(b){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(i)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=fi(u));var N=m.safeValue(u);if(i=i.replace(s[0],N),b?(m.regex.lastIndex+=N.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,l++,l>=o.maxReplaces)break}}),i}},{key:"nest",value:function(i,n){var a=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u=j({},r);u.applyPostProcessor=!1,delete u.defaultValue;function l(g,b){var v=this.nestingOptionsSeparator;if(g.indexOf(v)<0)return g;var m=g.split(new RegExp("".concat(v,"[ ]*{"))),y="{".concat(m[1]);g=m[0],y=this.interpolate(y,u),y=y.replace(/'/g,'"');try{u=JSON.parse(y),b&&(u=j({},b,u))}catch(N){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),N),"".concat(g).concat(v).concat(y)}return delete u.defaultValue,g}for(;o=this.nestingRegexp.exec(i);){var d=[],c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var p=o[1].split(this.formatSeparator).map(function(g){return g.trim()});o[1]=p.shift(),d=p,c=!0}if(s=n(l.call(this,o[1].trim(),u),u),s&&o[0]===i&&typeof s!="string")return s;typeof s!="string"&&(s=fi(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(i)),s=""),c&&(s=d.reduce(function(g,b){return a.format(g,b,r.lng,j({},r,{interpolationkey:o[1].trim()}))},s.trim())),i=i.replace(o[0],s),this.regexp.lastIndex=0}return i}}]),e}();function qu(e,t){for(var i=e.indexOf(t);i!==-1;)e.splice(i,1),i=e.indexOf(t)}var Ju=function(e){zt(t,e);function t(i,n,a){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return de(this,t),r=tt(this,Ie(t).call(this)),Gt&&pe.call(be(r)),r.backend=i,r.store=n,r.services=a,r.languageUtils=a.languageUtils,r.options=o,r.logger=oe.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(a,o.backend,o),r}return ce(t,[{key:"queueLoad",value:function(n,a,r,o){var s=this,u=[],l=[],d=[],c=[];return n.forEach(function(p){var g=!0;a.forEach(function(b){var v="".concat(p,"|").concat(b);!r.reload&&s.store.hasResourceBundle(p,b)?s.state[v]=2:s.state[v]<0||(s.state[v]===1?l.indexOf(v)<0&&l.push(v):(s.state[v]=1,g=!1,l.indexOf(v)<0&&l.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(b)<0&&c.push(b)))}),g||d.push(p)}),(u.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:o}),{toLoad:u,pending:l,toLoadLanguages:d,toLoadNamespaces:c}}},{key:"loaded",value:function(n,a,r){var o=n.split("|"),s=o[0],u=o[1];a&&this.emit("failedLoading",s,u,a),r&&this.store.addResourceBundle(s,u,r),this.state[n]=a?-1:2;var l={};this.queue.forEach(function(d){ju(d.loaded,[s],u),qu(d.pending,n),a&&d.errors.push(a),d.pending.length===0&&!d.done&&(Object.keys(d.loaded).forEach(function(c){l[c]||(l[c]=[]),d.loaded[c].length&&d.loaded[c].forEach(function(p){l[c].indexOf(p)<0&&l[c].push(p)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(n,a,r){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[r](n,a,function(d,c){if(d&&c&&s<5){setTimeout(function(){o.read.call(o,n,a,r,s+1,u*2,l)},u);return}l(d,c)}):l(null,{})}},{key:"prepareLoading",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof a=="string"&&(a=[a]);var u=this.queueLoad(n,a,o,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(function(l){r.loadOne(l)})}},{key:"load",value:function(n,a,r){this.prepareLoading(n,a,{},r)}},{key:"reload",value:function(n,a,r){this.prepareLoading(n,a,{reload:!0},r)}},{key:"loadOne",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),s=o[0],u=o[1];this.read(s,u,"read",void 0,void 0,function(l,d){l&&a.logger.warn("".concat(r,"loading namespace ").concat(u," for language ").concat(s," failed"),l),!l&&d&&a.logger.log("".concat(r,"loaded namespace ").concat(u," for language ").concat(s),d),a.loaded(n,l,d)})}},{key:"saveMissing",value:function(n,a,r,o,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(a,'" 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}r==null||r===""||(this.backend&&this.backend.create&&this.backend.create(n,a,r,o,null,j({},u,{isUpdate:s})),!(!n||!n[0])&&this.store.addResource(n[0],a,r,o))}}]),t}(pe);function Hu(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var i={};if(Z(t[1])==="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),Z(t[2])==="object"||Z(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(a){i[a]=n[a]})}return i},interpolation:{escapeValue:!0,format:function(t,i,n,a){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function gi(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function bt(){}var Zu=function(e){zt(t,e);function t(){var i,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(de(this,t),i=tt(this,Ie(t).call(this)),Gt&&pe.call(be(i)),i.options=gi(n),i.services={},i.logger=oe,i.modules={external:[]},a&&!i.isInitialized&&!n.isClone){if(!i.options.initImmediate)return i.init(n,a),tt(i,be(i));setTimeout(function(){i.init(n,a)},0)}return i}return ce(t,[{key:"init",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(r=a,a={}),a.whitelist&&!a.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),a.nonExplicitWhitelist&&!a.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=j({},Hu(),this.options,gi(a)),this.format=this.options.interpolation.format,r||(r=bt);function o(b){return b?typeof b=="function"?new b:b:null}if(!this.options.isClone){this.modules.logger?oe.init(o(this.modules.logger),this.options):oe.init(null,this.options);var s=new zu(this.options);this.store=new Bu(this.options.resources,this.options);var u=this.services;u.logger=oe,u.resourceStore=this.store,u.languageUtils=s,u.pluralResolver=new Qu(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Wu(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Ju(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(b){for(var v=arguments.length,m=new Array(v>1?v-1:0),y=1;y<v;y++)m[y-1]=arguments[y];n.emit.apply(n,[b].concat(m))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new pi(this.services,this.options),this.translator.on("*",function(b){for(var v=arguments.length,m=new Array(v>1?v-1:0),y=1;y<v;y++)m[y-1]=arguments[y];n.emit.apply(n,[b].concat(m))}),this.modules.external.forEach(function(b){b.init&&b.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(b){n[b]=function(){var v;return(v=n.store)[b].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(b){n[b]=function(){var v;return(v=n.store)[b].apply(v,arguments),n}});var p=Be(),g=function(){var v=function(y,N){n.isInitialized&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),p.resolve(N),r(y,N)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return v(null,n.t.bind(n));n.changeLanguage(n.options.lng,v)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),p}},{key:"loadResources",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt,o=r,s=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return o();var u=[],l=function(p){if(p){var g=a.services.languageUtils.toResolveHierarchy(p);g.forEach(function(b){u.indexOf(b)<0&&u.push(b)})}};if(s)l(s);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(c){return l(c)})}this.options.preload&&this.options.preload.forEach(function(c){return l(c)}),this.services.backendConnector.load(u,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,a,r){var o=Be();return n||(n=this.languages),a||(a=this.options.ns),r||(r=bt),this.services.backendConnector.reload(n,a,function(s){o.resolve(),r(s)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&ur.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,a){var r=this;this.isLanguageChangingTo=n;var o=Be();this.emit("languageChanging",n);var s=function(d,c){c?(r.language=c,r.languages=r.services.languageUtils.toResolveHierarchy(c),r.translator.changeLanguage(c),r.isLanguageChangingTo=void 0,r.emit("languageChanged",c),r.logger.log("languageChanged",c)):r.isLanguageChangingTo=void 0,o.resolve(function(){return r.t.apply(r,arguments)}),a&&a(d,function(){return r.t.apply(r,arguments)})},u=function(d){!n&&!d&&r.services.languageDetector&&(d=[]);var c=typeof d=="string"?d:r.services.languageUtils.getBestMatchFromCodes(d);c&&(r.language||(r.language=c,r.languages=r.services.languageUtils.toResolveHierarchy(c)),r.translator.language||r.translator.changeLanguage(c),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(c)),r.loadResources(c,function(p){s(p,c)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(n),o}},{key:"getFixedT",value:function(n,a){var r=this,o=function s(u,l){var d;if(Z(l)!=="object"){for(var c=arguments.length,p=new Array(c>2?c-2:0),g=2;g<c;g++)p[g-2]=arguments[g];d=r.options.overloadTranslationOptionHandler([u,l].concat(p))}else d=j({},l);return d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns,r.t(u,d)};return typeof n=="string"?o.lng=n:o.lngs=n,o.ns=a,o}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var a=this,r=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;var o=this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var l=function(p,g){var b=a.services.backendConnector.state["".concat(p,"|").concat(g)];return b===-1||b===2};if(r.precheck){var d=r.precheck(this,l);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||l(o,n)&&(!s||l(u,n)))}},{key:"loadNamespaces",value:function(n,a){var r=this,o=Be();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(s){r.options.ns.indexOf(s)<0&&r.options.ns.push(s)}),this.loadResources(function(s){o.resolve(),a&&a(s)}),o):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(n,a){var r=Be();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],s=n.filter(function(u){return o.indexOf(u)<0});return s.length?(this.options.preload=o.concat(s),this.loadResources(function(u){r.resolve(),a&&a(u)}),r):(a&&a(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),!n)return"rtl";var a=["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"];return a.indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new t(n,a)}},{key:"cloneInstance",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt,o=j({},this.options,a,{isClone:!0}),s=new t(o),u=["store","services","language"];return u.forEach(function(l){s[l]=n[l]}),s.services=j({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new pi(s.services,s.options),s.translator.on("*",function(l){for(var d=arguments.length,c=new Array(d>1?d-1:0),p=1;p<d;p++)c[p-1]=arguments[p];s.emit.apply(s,[l].concat(c))}),s.init(o,r),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(pe),lr=new Zu;function Xu(e){const t=Object.values(e);return Object.assign({},...t)}function Yu(e){return Object.entries(e).reduce((t,[i,n])=>{const a=Xu(n);return{...t,[i]:a}},{})}function el(e){const t=Yu(e);Object.entries(t).forEach(([i,n])=>{lr.addResourceBundle(i,"translation",n,!0)})}function tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function nl(e,t){if(nt(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function il(e){var t=nl(e,"string");return nt(t)==="symbol"?t:String(t)}function ki(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,il(n.key),n)}}function al(e,t,i){return t&&ki(e.prototype,t),i&&ki(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var dr=[],rl=dr.forEach,ol=dr.slice;function sl(e){return rl.call(ol.call(arguments,1),function(t){if(t)for(var i in t)e[i]===void 0&&(e[i]=t[i])}),e}var yi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ul=function(t,i,n){var a=n||{};a.path=a.path||"/";var r=encodeURIComponent(i),o="".concat(t,"=").concat(r);if(a.maxAge>0){var s=a.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(a.domain){if(!yi.test(a.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(a.domain)}if(a.path){if(!yi.test(a.path))throw new TypeError("option path is invalid");o+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(o+="; HttpOnly"),a.secure&&(o+="; Secure"),a.sameSite){var u=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},_i={create:function(t,i,n,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),a&&(r.domain=a),document.cookie=ul(t,encodeURIComponent(i),r)},read:function(t){for(var i="".concat(t,"="),n=document.cookie.split(";"),a=0;a<n.length;a++){for(var r=n[a];r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(i)===0)return r.substring(i.length,r.length)}return null},remove:function(t){this.create(t,"",-1)}},ll={name:"cookie",lookup:function(t){var i;if(t.lookupCookie&&typeof document!="undefined"){var n=_i.read(t.lookupCookie);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupCookie&&typeof document!="undefined"&&_i.create(i.lookupCookie,t,i.cookieMinutes,i.cookieDomain,i.cookieOptions)}},dl={name:"querystring",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=n.substring(1),r=a.split("&"),o=0;o<r.length;o++){var s=r[o].indexOf("=");if(s>0){var u=r[o].substring(0,s);u===t.lookupQuerystring&&(i=r[o].substring(s+1))}}}return i}},ze=null,bi=function(){if(ze!==null)return ze;try{ze=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{ze=!1}return ze},cl={name:"localStorage",lookup:function(t){var i;if(t.lookupLocalStorage&&bi()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupLocalStorage&&bi()&&window.localStorage.setItem(i.lookupLocalStorage,t)}},Ge=null,Si=function(){if(Ge!==null)return Ge;try{Ge=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ge=!1}return Ge},fl={name:"sessionStorage",lookup:function(t){var i;if(t.lookupSessionStorage&&Si()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupSessionStorage&&Si()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)}},ml={name:"navigator",lookup:function(t){var i=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)i.push(navigator.languages[n]);navigator.userLanguage&&i.push(navigator.userLanguage),navigator.language&&i.push(navigator.language)}return i.length>0?i:void 0}},hl={name:"htmlTag",lookup:function(t){var i,n=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(i=n.getAttribute("lang")),i}},vl={name:"path",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;i=n[t.lookupFromPathIndex].replace("/","")}else i=n[0].replace("/","")}return i}},pl={name:"subdomain",lookup:function(t){var i=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=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(n)return n[i]}};function gl(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var cr=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tl(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return al(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i||{languageUtils:{}},this.options=sl(n,this.options||{},gl()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(r){return r.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(ll),this.addDetector(dl),this.addDetector(cl),this.addDetector(fl),this.addDetector(ml),this.addDetector(hl),this.addDetector(vl),this.addDetector(pl)}},{key:"addDetector",value:function(i){this.detectors[i.name]=i}},{key:"detect",value:function(i){var n=this;i||(i=this.options.order);var a=[];return i.forEach(function(r){if(n.detectors[r]){var o=n.detectors[r].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(a=a.concat(o))}}),a=a.map(function(r){return n.options.convertDetectedLanguage(r)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(i,n){var a=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||n.forEach(function(r){a.detectors[r]&&a.detectors[r].cacheUserLanguage(i,a.options)}))}}]),e}();cr.type="languageDetector";const kl=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,yl={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},_l=e=>yl[e],bl=e=>e.replace(kl,_l);let Ni={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:bl};function Sl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ni={...Ni,...e}}const Nl={type:"3rdParty",init(e){Sl(e.options.react)}},Ol=lr.use(Nl).use(cr).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(e,t,i)=>{if(t){const[n,...a]=t.split(",").map(r=>r.trim());if(n==="number")return new Intl.NumberFormat(i).format(e);if(n==="date")return new Intl.DateTimeFormat(i).format(e);if(n==="currency")return new Intl.NumberFormat(i,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(e).replace("$","").trim()}return e}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});var fr=(e=>(e.Created="CREATED",e.Finalized="FINALIZED",e.Live="LIVE",e.Starting="STARTING",e))(fr||{}),mr=(e=>(e.Add="add",e.Remove="remove",e))(mr||{}),hr=(e=>(e.Active="active",e.Inactive="inactive",e))(hr||{});const El={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"}}]}}]}}]}}]},wl={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"}}]}}]}}]}}]},Al={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"}}]}}]}}]}}]},Fl={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"}}]}}]}}]}}]},Cl={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:"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"}}]}}]}}]}}]},Rl={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"}}]}}]}}]}}]},Tl={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"}}]}}]}}]}}]},xl={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"}}]}}]}}]}}]},Dl={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"}}]}}]}}]}}]},Pl={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"}}]}}]}}]}}]},Ll={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"}}]}}]}}]}}]},Il={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"}}]}}]}}]}}]},Vl={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"}}]}}]}}]}}]},jl={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"}}]}}]}}]}}]},Ul={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"}}]}}]}}]}}]},Ml={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"}}]}}]}}]}}]},Bl={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"}}]}}]}}]}}]},zl={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"}}]}}]}}]}}]},Gl={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"}}]}}]}}]}}]},$l={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"}}]}}]}}]}}]},Kl={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"}}]}}]}}]}}]},Ql={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"}}]}}]}}]}}]},Wl={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"}}]}}]}}]}}]}}]},ql={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"}}]}}]}}]}}]},Jl={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"}}]}}]}}]}}]},Hl=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:xl,AppendProductsToSnackVideoDocument:Bl,CreateSnackVideoBatchDocument:zl,DeleteAllCustomizationDocument:El,DeleteChatMessageDocument:Fl,DeleteCollectionDocument:Dl,DeleteRelationshipWithSnackVideoDocument:Gl,DeleteSnackVideoDocument:$l,EventStatus:fr,FindByProductSnackVideoDocument:Jl,FindCollectionDocument:Pl,FindManySnackVideosDocument:Kl,FindMinimalEventDocument:Ul,GetAllChatMessageDocument:Cl,GetAllCollectionsDocument:Ll,GetAllCustomizationDocument:wl,GetAllSnackVideosDocument:Ql,GetChatRoomTokenDocument:Rl,GetSnackVideoRelationshipsDocument:Wl,ManageCollectionProductDocument:Il,Methods:mr,PinChatMessageDocument:Tl,SearchCollectionsDocument:Vl,SearchMinimalEventsDocument:Ml,SearchSnackVideosDocument:ql,Status:hr,UpdateCollectionDocument:jl,UpdateCustomizationDocument:Al},Symbol.toStringTag,{value:"Module"}));function Zl(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=Fn;exports.AccountContractTypes=za;exports.AccountInvalidError=ws;exports.AccountPlanDescriptionTypes=$a;exports.AccountRestRepository=Qa;exports.AccountService=Wa;exports.AccountSubscriptionTypes=Ga;exports.AccountTypes=An;exports.AggregateRoot=Ma;exports.ApiGraphqlTypes=Hl;exports.BaseMobxStore=Ts;exports.DomainError=ht;exports.EventBusWildcards=Tu;exports.EventNames=xu;exports.GlobalPageSectionTypes=Ka;exports.InvalidNizzaGlobalObjectError=Pa;exports.LanguageTypes=nr;exports.NizzaAccount=Bt;exports.NizzaEventStatus=tr;exports.NizzaProductRequestOriginTypes=ar;exports.NizzaStore=Je;exports.NizzaVariationTypes=ir;exports.ResourceNotFoundError=xa;exports.StoreProvider=Ou;exports.UnexpectedError=Da;exports.ValueObject=xs;exports.accountAtom=Pt;exports.accountService=Cn;exports.apiCall=Pr;exports.coreLogger=Ke;exports.createAggregateRoot=Ba;exports.createLogger=Va;exports.createStore=Zl;exports.customFetch=hn;exports.downloadFile=Lr;exports.fileOrigin=jr;exports.getAccount=er;exports.getLogger=Ua;exports.getStore=wu;exports.globalAtomStore=Ya;exports.i18n=Ol;exports.initializeLogger=wn;exports.jsDownload=wi;exports.logger=Rs;exports.nizza=En;exports.registerLogger=ja;exports.registerTranslations=el;exports.searchParams=Vr;exports.shortId=Ai;exports.useAccount=Ru;exports.useAutorun=Au;exports.useReaction=Fu;exports.useSelect=Xa;exports.useStore=Eu;