@nizza/core 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
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",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.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",`
1
+ "use strict";var mr=Object.defineProperty;var hr=(e,t,i)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var C=(e,t,i)=>(hr(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),vr=require("react/jsx-runtime");function pr(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=pr(M);let gr=0;function kr(e,t){const i=`atom${++gr}`,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 Qt=e=>"init"in e,Wt=e=>!!e.write,bt=new WeakMap,yr=(e,t)=>{bt.set(e,t),e.catch(()=>{}).finally(()=>bt.delete(e))},In=(e,t)=>{const i=bt.get(e);i&&(bt.delete(e),i(t))},Vn=(e,t)=>{e.status="fulfilled",e.value=t},jn=(e,t)=>{e.status="rejected",e.reason=t},pt=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Un=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),qt=e=>"v"in e&&e.v instanceof Promise,gt=e=>{if("e"in e)throw e.e;return e.v},bi=()=>{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&&qt(k)){const b="v"in h?h.v instanceof Promise?h.v:Promise.resolve(h.v):Promise.reject(h.e);In(k.v,b)}},s=(f,h,k)=>{const b=new Map;let E=!1;k.forEach((w,R)=>{!w&&R===f&&(w=h),w?(b.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!==b.size)&&(h.d=b)},u=(f,h,k)=>{const b=r(f),E={d:(b==null?void 0:b.d)||new Map,v:h};return k&&s(f,E,k),b&&pt(b,E)&&b.d===E.d?b:(o(f,E),E)},l=(f,h,k,b)=>{if(h instanceof Promise){let E;const w=new Promise((R,re)=>{let P=!1;h.then(V=>{if(!P){P=!0;const I=r(f),K=u(f,w,k);Vn(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);jn(w,V),re(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=>Vn(w,I),I=>jn(w,I)),R(V))}});return w.status="pending",yr(w,R=>{R&&E(R),b==null||b()}),u(f,w,k)}return u(f,h,k)},d=(f,h,k)=>{const b=r(f),E={d:(b==null?void 0:b.d)||new Map,e:h};return k&&s(f,E,k),b&&Un(b,E)&&b.d===E.d?b:(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 b=!0;const E=P=>{if(P===f){const I=r(P);if(I)return k.set(P,I),gt(I);if(Qt(P))return k.set(P,void 0),P.init;throw new Error("no atom init")}const V=c(P);return k.set(P,V),gt(V)};let w,R;const re={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"&&!Wt(f)&&console.warn("setSelf function cannot be used with read-only atom"),!R&&Wt(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"&&b&&console.warn("setSelf function cannot be called in sync"),!b)return N(f,...P)}),R}};try{const P=f.read(E,re);return l(f,P,k,()=>w==null?void 0:w.abort())}catch(P){return d(f,P,k)}finally{b=!1}},p=f=>gt(c(f)),g=f=>{let h=t.get(f);return h||(h=A(f)),h},S=(f,h)=>!h.l.size&&(!h.t.size||h.t.size===1&&h.t.has(f)),v=f=>{const h=t.get(f);h&&S(f,h)&&O(f)},m=f=>{const h=t.get(f);h==null||h.t.forEach(k=>{if(k!==f){const b=r(k),E=c(k);(!b||!pt(b,E))&&m(k)}})},y=(f,...h)=>{let k=!0;const b=R=>gt(c(R)),E=(R,...re)=>{let P;if(R===f){if(!Qt(R))throw new Error("atom not writable");const V=r(R),I=l(R,re[0]);(!V||!pt(V,I))&&m(R)}else P=y(R,...re);return k||L(),P},w=f.write(b,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((b,E)=>{const w=t.get(E);w?w.t.add(f):E!==f&&A(E,f)}),c(f),Wt(f)&&f.onMount){const b=f.onMount((...E)=>N(f,...E));b&&(k.u=b)}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 b=r(f);b?(qt(b)&&In(b.v),b.d.forEach((E,w)=>{if(w!==f){const R=t.get(w);R&&(R.t.delete(f),S(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 b=new Set(h.d.keys());k==null||k.forEach((E,w)=>{if(b.has(w)){b.delete(w);return}const R=t.get(w);R&&(R.t.delete(f),S(w,R)&&O(w))}),b.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 b=r(h);if(b){b.d!==(k==null?void 0:k.d)&&T(h,b,k==null?void 0:k.d);const E=t.get(h);E&&!(k&&!qt(k)&&(pt(k,b)||Un(k,b)))&&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 b=k.l;return b.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")),()=>{b.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)Qt(h)&&(l(h,k),m(h));L()}}:{get:p,set:N,sub:z}};let Jt;const _r=()=>(Jt||(Jt=bi()),Jt),Sr=M.createContext(void 0),Ni=e=>{const t=M.useContext(Sr);return(e==null?void 0:e.store)||t||_r()},br=e=>e instanceof Promise,Nr=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 Or(e,t){const i=Ni(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),br(s)?Nr(s):s}function Er(e,t){const i=Ni(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 wr(e,t){return[Or(e,t),Er(e,t)]}const xt=kr(null);xt.debugLabel="accountAtom";const{NZ_AWS_REGION:Ar,NZ_BACKOFFICE_BACK_URL:Fr,NZ_CORE_SERVICES_GRAPHQL_URL:Cr,NZ_CORE_SERVICES_REST_URL:Rr}={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},Tr={AWS:{region:Ar,cognito:{userPoolId:"us-east-1_EZ7wuZ4ig",userPoolWebClientId:"2jok7cst8ebf6ppscrhji57gvr"}},apiUrls:{restV1:Fr||"https://b133h34s56.execute-api.us-east-1.amazonaws.com",restV2:Rr||"https://core-services-prod.nizza.com/api",graphql:Cr||"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",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};async function mn(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 S=await g.json();if(clearTimeout(c),!g.ok){const v=S?JSON.stringify(S):g.statusText;throw new Error(v)}return S}catch(l){throw console.error("[CustomFetch] ",l),l}}const Dr=e=>mn({...e,contentTypeJson:!1,raw:!1});function xr(e,t,i){fetch(t).then(n=>n.blob()).then(n=>Oi(n,`${e}.${i}`))}const Oi=(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)};var Ei=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ai={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.prefix=i(t)})(Ei,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||"",S=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),b=0;b<h;b++)k[b]=arguments[b];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({},S,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})})(Ai);var Pr=Ai.exports;const Fi=wi(Pr);var Ci={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.log=i()})(Ei,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,b=k.indexOf(encodeURIComponent(O)+"=");b!==-1&&(h=/^([^;]+)/.exec(k.slice(b))[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 S=typeof window!==i?window.log:void 0;return p.noConflict=function(){return typeof window!==i&&window.log===p&&(window.log=S),p},p.getLoggers=function(){return g},p.default=p,p})})(Ci);var Lr=Ci.exports;const Ir=wi(Lr);function x(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 Vr={};function Ri(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Vr}var Ti=Object.assign,Nt=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,Pt=Object.prototype,an=[];Object.freeze(an);var hn={};Object.freeze(hn);var jr=typeof Proxy!="undefined",Ur=Object.toString();function Di(){jr||x("Proxy not available")}function xi(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 Lt(e){return e!==null&&typeof e=="object"}function de(e){if(!Lt(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()===Ur}function Pi(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function nt(e,t,i){ee(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function Li(e,t,i){ee(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function be(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return Lt(n)&&n[i]===!0}}function je(e){return e instanceof Map}function it(e){return e instanceof Set}var Ii=typeof Object.getOwnPropertySymbols!="undefined";function Mr(e){var t=Object.keys(e);if(!Ii)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return Pt.propertyIsEnumerable.call(e,n)})):t}var Te=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ii?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Vi(e){return e===null?null:typeof e=="object"?""+e:e}function le(e,t){return Pt.hasOwnProperty.call(e,t)}var Br=Object.getOwnPropertyDescriptors||function(t){var i={};return Te(t).forEach(function(n){i[n]=Nt(t,n)}),i};function Mn(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,$r(n.key),n)}}function vn(e,t,i){return t&&Mn(e.prototype,t),i&&Mn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(){return De=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},De.apply(this,arguments)}function ji(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rn(e,t)}function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},rn(e,t)}function Ht(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e,t){if(e){if(typeof e=="string")return Bn(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 Bn(e,t)}}function Bn(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=zr(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.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gr(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 $r(e){var t=Gr(e,"string");return typeof t=="symbol"?t:String(t)}var Y=Symbol("mobx-stored-annotations");function te(e){function t(i,n){at(i,n,e)}return Object.assign(t,e)}function at(e,t,i){le(e,Y)||nt(e,Y,De({},e[Y])),Yr(i)||(e[Y][t]=i)}function Kr(e){return le(e,Y)||nt(e,Y,De({},e[Y])),e[Y]}var F=Symbol("mobx administration"),rt=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_=D.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 aa(this)},t.reportChanged=function(){G(),ra(this),_.stateVersion=_.stateVersion<Number.MAX_SAFE_INTEGER?_.stateVersion+1:Number.MIN_SAFE_INTEGER,$()},t.toString=function(){return this.name_},e}(),pn=be("Atom",rt);function Ui(e,t,i){t===void 0&&(t=Ae),i===void 0&&(i=Ae);var n=new rt(e);return t!==Ae&&Xo(n,t),i!==Ae&&ma(n,i),n}function Qr(e,t){return e===t}function Wr(e,t){return Nn(e,t)}function qr(e,t){return Nn(e,t,1)}function Jr(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var xe={identity:Qr,structural:Wr,default:Jr,shallow:qr};function Pe(e,t,i){return lt(e)?e:Array.isArray(e)?B.array(e,{name:i}):de(e)?B.object(e,void 0,{name:i}):je(e)?B.map(e,{name:i}):it(e)?B.set(e,{name:i}):typeof e=="function"&&!yn(e)&&!Ft(e)?Pi(e)?Xe(e):Ze(i,e):e}function Hr(e,t,i){if(e==null||Ye(e)||Ut(e)||Ne(e)||Me(e))return e;if(Array.isArray(e))return B.array(e,{name:i,deep:!1});if(de(e))return B.object(e,void 0,{name:i,deep:!1});if(je(e))return B.map(e,{name:i,deep:!1});if(it(e))return B.set(e,{name:i,deep:!1})}function It(e){return e}function Zr(e,t){return Nn(e,t)?t:e}var Xr="override";function Yr(e){return e.annotationType_===Xr}function ot(e,t){return{annotationType_:e,options_:t,make_:eo,extend_:to}}function eo(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(yn(i.value))return 1;var r=Mi(e,this,t,i,!1);return ee(n,t,r),2}function to(e,t,i,n){var a=Mi(e,this,t,i);return e.defineProperty_(t,a,n)}function no(e,t,i,n){t.annotationType_,n.value}function Mi(e,t,i,n,a){var r,o,s,u,l,d,c;a===void 0&&(a=_.safeDescriptors),no(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:Le((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 Bi(e,t){return{annotationType_:e,options_:t,make_:io,extend_:ao}}function io(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&&(!le(e.target_,t)||!Ft(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Ft(i.value))return 1;var r=zi(e,this,t,i,!1,!1);return ee(n,t,r),2}function ao(e,t,i,n){var a,r=zi(e,this,t,i,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,r,n)}function ro(e,t,i,n){t.annotationType_,n.value}function zi(e,t,i,n,a,r){r===void 0&&(r=_.safeDescriptors),ro(e,t,i,n);var o=n.value;if(Ft(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 gn(e,t){return{annotationType_:e,options_:t,make_:oo,extend_:so}}function oo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function so(e,t,i,n){return uo(e,this,t,i),e.defineComputedProperty_(t,De({},this.options_,{get:i.get,set:i.set}),n)}function uo(e,t,i,n){t.annotationType_,n.get}function Vt(e,t){return{annotationType_:e,options_:t,make_:lo,extend_:co}}function lo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function co(e,t,i,n){var a,r;return fo(e,this),e.defineObservableProperty_(t,i.value,(a=(r=this.options_)==null?void 0:r.enhancer)!=null?a:Pe,n)}function fo(e,t,i,n){t.annotationType_}var mo="true",ho=Gi();function Gi(e){return{annotationType_:mo,options_:e,make_:vo,extend_:po}}function vo(e,t,i,n){var a,r;if(i.get)return fe.make_(e,t,i,n);if(i.set){var o=Le(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(Pi(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 po(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:Le(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 go="observable",ko="observable.ref",yo="observable.shallow",_o="observable.struct",$i={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($i);function kt(e){return e||$i}var Ki=Vt(go),So=Vt(ko,{enhancer:It}),bo=Vt(yo,{enhancer:Hr}),No=Vt(_o,{enhancer:Zr}),Qi=te(Ki);function yt(e){return e.deep===!0?Pe:e.deep===!1?It:Eo(e.defaultDecorator)}function Oo(e){var t;return e?(t=e.defaultDecorator)!=null?t:Gi(e):void 0}function Eo(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:Pe}function Wi(e,t,i){if(ye(t)){at(e,t,Ki);return}return lt(e)?e:de(e)?B.object(e,t,i):Array.isArray(e)?B.array(e,t):je(e)?B.map(e,t):it(e)?B.set(e,t):typeof e=="object"&&e!==null?e:B.box(e,t)}Ti(Wi,Qi);var wo={box:function(t,i){var n=kt(i);return new Re(t,yt(n),n.name,!0,n.equals)},array:function(t,i){var n=kt(i);return(_.useProxies===!1||n.proxy===!1?ys:ds)(t,yt(n),n.name)},map:function(t,i){var n=kt(i);return new _a(t,yt(n),n.name)},set:function(t,i){var n=kt(i);return new Na(t,yt(n),n.name)},object:function(t,i,n){return va(_.useProxies===!1||(n==null?void 0:n.proxy)===!1?ft({},n):rs({},n),t,i)},ref:te(So),shallow:te(bo),deep:Qi,struct:te(No)},B=Ti(Wi,wo),qi="computed",Ao="computed.struct",Ji=gn(qi),Fo=gn(Ao,{equals:xe.structural}),fe=function(t,i){if(ye(i))return at(t,i,Ji);if(de(t))return te(gn(qi,t));var n=de(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new He(n)};Object.assign(fe,Ji);fe.struct=te(Fo);var zn,Gn,Ot=0,Co=1,Ro=(zn=(Gn=Nt(function(){},"name"))==null?void 0:Gn.configurable)!=null?zn:!1,$n={value:"action",configurable:!0,writable:!1,enumerable:!1};function Le(e,t,i,n){i===void 0&&(i=!1);function a(){return To(e,i,t,n||this,arguments)}return a.isMobxAction=!0,Ro&&($n.value=e,ee(a,"name",$n)),a}function To(e,t,i,n,a){var r=Do(e,t);try{return i.apply(n,a)}catch(o){throw r.error_=o,o}finally{xo(r)}}function Do(e,t,i,n){var a=!1,r=0,o=_.trackingDerivation,s=!t||!o;G();var u=_.allowStateChanges;s&&(Ue(),u=st(!0));var l=kn(!0),d={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:a,startTime_:r,actionId_:Co++,parentActionId_:Ot};return Ot=d.actionId_,d}function xo(e){Ot!==e.actionId_&&x(30),Ot=e.parentActionId_,e.error_!==void 0&&(_.suppressReactionErrors=!0),ut(e.prevAllowStateChanges_),We(e.prevAllowStateReads_),$(),e.runAsAction_&&ve(e.prevDerivation_),_.suppressReactionErrors=!1}function Hi(e,t){var i=st(e);try{return t()}finally{ut(i)}}function st(e){var t=_.allowStateChanges;return _.allowStateChanges=e,t}function ut(e){_.allowStateChanges=e}var Zi;Zi=Symbol.toPrimitive;var Re=function(e){ji(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 dt(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}),ct(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 Vi(this.get())},i[Zi]=function(){return this.valueOf()},t}(rt),Xi;Xi=Symbol.toPrimitive;var He=function(){function e(i){this.dependenciesState_=D.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_=D.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Et(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||x(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=Le("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(){Vo(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_&&x(32,this.name_,this.derivation),_.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)on(this)&&(this.warnAboutUntrackedRead_(),G(),this.value_=this.computeValue_(!1),$());else if(aa(this),on(this)){var n=_.trackingContext;this.keepAlive_&&!n&&(_.trackingContext=this),this.trackAndCompute()&&Io(this),_.trackingContext=n}var a=this.value_;if(St(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter_&&x(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else x(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===D.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=st(!1),r;if(n)r=Yi(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 Et(o)}return ut(a),this.isComputing_=!1,r},t.suspend_=function(){this.keepAlive_||(sn(this),this.value_=void 0)},t.observe_=function(n,a){var r=this,o=!0,s=void 0;return _n(function(){var u=r.get();if(!o||a){var l=Ue();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 Vi(this.get())},t[Xi]=function(){return this.valueOf()},e}(),jt=be("ComputedValue",He),D;(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_"})(D||(D={}));var ke;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(ke||(ke={}));var Et=function(t){this.cause=void 0,this.cause=t};function St(e){return e instanceof Et}function on(e){switch(e.dependenciesState_){case D.UP_TO_DATE_:return!1;case D.NOT_TRACKING_:case D.STALE_:return!0;case D.POSSIBLY_STALE_:{for(var t=kn(!0),i=Ue(),n=e.observing_,a=n.length,r=0;r<a;r++){var o=n[r];if(jt(o)){if(_.disableErrorBoundaries)o.get();else try{o.get()}catch{return ve(i),We(t),!0}if(e.dependenciesState_===D.STALE_)return ve(i),We(t),!0}}return ta(e),ve(i),We(t),!1}}}function Yi(e,t,i){var n=kn(!0);ta(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 Et(o)}return _.inBatch--,_.trackingDerivation=a,Po(e),We(n),r}function Po(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=D.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&&na(u,e),u.diffValue_=0}for(;a--;){var l=i[a];l.diffValue_===1&&(l.diffValue_=0,Lo(l,e))}n!==D.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function sn(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)na(t[i],e);e.dependenciesState_=D.NOT_TRACKING_}function ea(e){var t=Ue();try{return e()}finally{ve(t)}}function Ue(){var e=_.trackingDerivation;return _.trackingDerivation=null,e}function ve(e){_.trackingDerivation=e}function kn(e){var t=_.allowStateReads;return _.allowStateReads=e,t}function We(e){_.allowStateReads=e}function ta(e){if(e.dependenciesState_!==D.UP_TO_DATE_){e.dependenciesState_=D.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=D.UP_TO_DATE_}}var Zt=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},Xt=!0,_=function(){var e=Ri();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Xt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Zt().version&&(Xt=!1),Xt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Zt):(setTimeout(function(){x(35)},1),new Zt)}();function Lo(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function na(e,t){e.observers_.delete(t),e.observers_.size===0&&ia(e)}function ia(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,_.pendingUnobservations.push(e))}function G(){_.inBatch++}function $(){if(--_.inBatch===0){oa();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 aa(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&&ia(e),!1)}function ra(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=D.STALE_}))}function Io(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.POSSIBLY_STALE_?t.dependenciesState_=D.STALE_:t.dependenciesState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.UP_TO_DATE_)}))}function Vo(e){e.lowestObserverState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&(t.dependenciesState_=D.POSSIBLY_STALE_,t.onBecomeStale_())}))}var wt=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_=D.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),oa())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){G(),this.isScheduled_=!1;var n=_.trackingContext;if(_.trackingContext=this,on(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=Yi(this,n,void 0);_.trackingContext=a,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&sn(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(),sn(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),ns(this,n)},e}(),jo=100,Uo=function(t){return t()};function oa(){_.inBatch>0||_.isRunningReactions||Uo(Mo)}function Mo(){_.isRunningReactions=!0;for(var e=_.pendingReactions,t=0;e.length>0;){++t===jo&&(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 At=be("Reaction",wt);function qe(){return!1}function Bo(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var sa="action",zo="action.bound",ua="autoAction",Go="autoAction.bound",$o="<unnamed action>",la=ot(sa),Ko=ot(zo,{bound:!0}),da=ot(ua,{autoAction:!0}),Qo=ot(Go,{autoAction:!0,bound:!0});function ca(e){var t=function(n,a){if(X(n))return Le(n.name||$o,n,e);if(X(a))return Le(n,a,e);if(ye(a))return at(n,a,e?da:la);if(ye(n))return te(ot(e?ua:sa,{name:n,autoAction:e}))};return t}var me=ca(!1);Object.assign(me,la);var Ze=ca(!0);Object.assign(Ze,da);me.bound=te(Ko);Ze.bound=te(Qo);function yn(e){return X(e)&&e.isMobxAction===!0}function _n(e,t){var i,n;t===void 0&&(t=hn);var a=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",r=!t.scheduler&&!t.delay,o;if(r)o=new wt(a,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=fa(t),u=!1;o=new wt(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 Wo=function(t){return t()};function fa(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Wo}function qo(e,t,i){var n;i===void 0&&(i=hn);var a=(n=i.name)!=null?n:"Reaction",r=me(a,i.onError?Jo(i.onError,t):t),o=!i.scheduler&&!i.delay,s=fa(i),u=!0,l=!1,d,c,p=i.compareStructural?xe.structural:i.equals||xe.default,g=new wt(a,function(){u||o?S():l||(l=!0,s(S))},i.onError,i.requiresObservable);function S(){if(l=!1,!g.isDisposed_){var v=!1;g.track(function(){var m=Hi(!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 Jo(e,t){return function(){try{return t.apply(this,arguments)}catch(i){e.call(this,i)}}}var Ho="onBO",Zo="onBUO";function Xo(e,t,i){return ha(Ho,e,t,i)}function ma(e,t,i){return ha(Zo,e,t,i)}function ha(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 va(e,t,i,n){var a=Br(t),r=ft(e,n)[F];G();try{Te(a).forEach(function(o){r.extend_(o,a[o],i&&o in i?i[o]:!0)})}finally{$()}return e}var Yo=0;function pa(){this.message="FLOW_CANCELLED"}pa.prototype=Object.create(Error.prototype);var Kn=Bi("flow"),es=Bi("flow.bound",{bound:!0}),Xe=Object.assign(function(t,i){if(ye(i))return at(t,i,Kn);var n=t,a=n.name||"<unnamed flow>",r=function(){var s=this,u=arguments,l=++Yo,d=me(a+" - runid: "+l+" - init",n).apply(s,u),c,p=void 0,g=new Promise(function(S,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?S(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&&Qn(p);var S=d.return(void 0),v=Promise.resolve(S.value);v.then(Ae,Ae),Qn(v),c(new pa)}catch(m){c(m)}}),g};return r.isMobXFlow=!0,r},Kn);Xe.bound=te(es);function Qn(e){X(e.cancel)&&e.cancel()}function Ft(e){return(e==null?void 0:e.isMobXFlow)===!0}function ts(e,t){return e?t!==void 0?Ye(e)?e[F].values_.has(t):!1:Ye(e)||!!e[F]||pn(e)||At(e)||jt(e):!1}function lt(e){return ts(e)}function ns(){x("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=is(i);if(!a)return x("'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 is(e){switch(e.length){case 0:return _.trackingDerivation;case 1:return _e(e[0]);case 2:return _e(e[0],e[1])}}function se(e,t){t===void 0&&(t=void 0),G();try{return e.apply(t)}finally{$()}}function Ee(e){return e[F]}var as={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){x(13)}};function rs(e,t){var i,n;return Di(),e=ft(e,t),(n=(i=e[F]).proxy_)!=null?n:i.proxy_=new Proxy(e,as)}function Q(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function dt(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),xi(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function W(e,t){var i=Ue();try{for(var n=[].concat(e.interceptors_||[]),a=0,r=n.length;a<r&&(t=n[a](t),t&&!t.type&&x(14),!!t);a++);return t}finally{ve(i)}}function J(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function ct(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),xi(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function H(e,t){var i=Ue(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,r=n.length;a<r;a++)n[a](t);ve(i)}}function os(e,t,i){var n=ft(e,i)[F];G();try{var a;(a=t)!=null||(t=Kr(e)),Te(t).forEach(function(r){return n.make_(r,t[r])})}finally{$()}return e}var Yt=Symbol("mobx-keys");function ss(e,t,i){if(de(e))return va(e,e,t,i);var n=ft(e,i)[F];if(!e[Yt]){var a=Object.getPrototypeOf(e),r=new Set([].concat(Te(e),Te(a)));r.delete("constructor"),r.delete(F),nt(a,Yt,r)}G();try{e[Yt].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{$()}return e}var Wn="splice",ne="update",us=1e4,ls={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)):le(Ct,i)?Ct[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(){x(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 rt(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 dt(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}),ct(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&x("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_&&x(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&Aa(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=an),Q(this)){var u=W(this,{object:this.proxy_,type:Wn,index:n,removedCount:a,added:r});if(!u)return an;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<us){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:Wn,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&&x(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 ds(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),Di();var a=new Sn(i,t,n,!1);Li(a.values_,F,a);var r=new Proxy(a.values_,ls);if(a.proxy_=r,e&&e.length){var o=st(!0);a.spliceWithArray_(0,0,e),ut(o)}return r}var Ct={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&&x(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_.trackingDerivation&&x(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",ce);U("flat",ce);U("includes",ce);U("indexOf",ce);U("join",ce);U("lastIndexOf",ce);U("slice",ce);U("toString",ce);U("toLocaleString",ce);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",ga);U("reduceRight",ga);function U(e,t){typeof Array.prototype[e]=="function"&&(Ct[e]=t(e))}function ce(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 ga(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 cs=be("ObservableArrayAdministration",Sn);function Ut(e){return Lt(e)&&cs(e[F])}var ka,ya,fs={},he="add",Rt="delete";ka=Symbol.iterator;ya=Symbol.toStringTag;var _a=function(){function e(i,n,a){var r=this;n===void 0&&(n=Pe),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=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_=a,X(Map)||x(18),this.keysAtom_=Ui("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Hi(!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 Re(this.has_(n),It,"ObservableMap.key?",!1);this.hasMap_.set(n,o),ma(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:Rt,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:Rt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return se(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_,se(function(){var l,d=new Re(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[ka]=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)),se(function(){de(n)?Mr(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)}):je(n)?(n.constructor!==Map&&x(19,n),n.forEach(function(r,o){return a.set(o,r)})):n!=null&&x(20,n)}),this},t.clear=function(){var n=this;se(function(){ea(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 se(function(){for(var r=ms(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()),S;!(S=g()).done;){var v=S.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 ct(this,n)},t.intercept_=function(n){return dt(this,n)},vn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:ya,get:function(){return"Map"}}]),e}(),Ne=be("ObservableMap",_a);function ms(e){if(je(e)||Ne(e))return e;if(Array.isArray(e))return new Map(e);if(de(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return x(21,e)}var Sa,ba,hs={};Sa=Symbol.iterator;ba=Symbol.toStringTag;var Na=function(){function e(i,n,a){n===void 0&&(n=Pe),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[F]=hs,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)||x(22),this.atom_=Ui(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;se(function(){ea(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)){se(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:Rt,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:Rt,object:this,oldValue:n}:null;return se(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 Me(n)&&(n=new Set(n)),se(function(){Array.isArray(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):it(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):n!=null&&x("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return ct(this,n)},t.intercept_=function(n){return dt(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Sa]=function(){return this.values()},vn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:ba,get:function(){return"Set"}}]),e}(),Me=be("ObservableSet",Na),qn=Object.create(null),Jn="remove",Oa=function(){function e(i,n,a,r){n===void 0&&(n=new Map),r===void 0&&(r=ho),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 rt("ObservableObject.keys"),this.isPlainObject_=de(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&&!le(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,r){return r===void 0&&(r=!1),le(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 Re(n in this.target_,It,"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;x(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==Pt;){var s=Nt(o,n);if(s){var u=a.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}Zn(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&&Zn(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=De({},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=Hn(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 Re(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=Hn(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),!le(this.target_,n))return!0;if(Q(this)){var r=W(this,{object:this.proxy_||this.target_,name:n,type:Jn});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=Nt(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 Re&&(c=d.value_),ra(d)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var g={type:Jn,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 ct(this,n)},t.intercept_=function(n){return dt(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(),Te(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function ft(e,t){var i;if(le(e,F))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",a=new Oa(e,new Map,String(n),Oo(t));return nt(e,F,a),e}var vs=be("ObservableObjectAdministration",Oa);function Hn(e){return qn[e]||(qn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(i){return this[F].setObservablePropValue_(e,i)}})}function Ye(e){return Lt(e)?vs(e[F]):!1}function Zn(e,t,i){var n;(n=e.target_[Y])==null||delete n[i]}var ps=wa(0),en=0,Ea=function(){};function gs(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}gs(Ea,Array.prototype);var bn=function(e,t,i){ji(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_=Ht(l),Li(Ht(l),F,d),r&&r.length){var c=st(!0);l.spliceWithArray(0,0,r),ut(c)}return Object.defineProperty(Ht(l),"0",ps),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 Ut(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}}})},vn(n,[{key:"length",get:function(){return this[F].getArrayLength_()},set:function(o){this[F].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Ea,Symbol.toStringTag,Symbol.iterator);Object.entries(Ct).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&nt(bn.prototype,t,i)});function wa(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(i){this[F].set_(e,i)}}}function ks(e){ee(bn.prototype,""+e,wa(e))}function Aa(e){if(e>en){for(var t=en;t<e+100;t++)ks(t);en=e}}Aa(1e3);function ys(e,t,i){return new bn(e,t,i)}function _e(e,t){if(typeof e=="object"&&e!==null){if(Ut(e))return t!==void 0&&x(23),e[F].atom_;if(Me(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||x(25,t,un(e)),i}if(Ye(e)){if(!t)return x(26);var n=e[F].values_.get(t);return n||x(27,t,un(e)),n}if(pn(e)||jt(e)||At(e))return e}else if(X(e)&&At(e[F]))return e[F];x(28)}function Fa(e,t){if(e||x(29),t!==void 0)return Fa(_e(e,t));if(pn(e)||jt(e)||At(e)||Ne(e)||Me(e))return e;if(e[F])return e[F];x(24,e)}function un(e,t){var i;if(t!==void 0)i=_e(e,t);else{if(yn(e))return e.name;Ye(e)||Ne(e)||Me(e)?i=Fa(e):i=_e(e)}return i.name_}var Xn=Pt.toString;function Nn(e,t,i){return i===void 0&&(i=-1),ln(e,t,i)}function ln(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=Xn.call(e);if(o!==Xn.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=Yn(e),t=Yn(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(!ln(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],!(le(t,p)&&ln(e[p],t[p],i-1,n,a)))return!1}return n.pop(),a.pop(),!0}function Yn(e){return Ut(e)?e.slice():je(e)||Ne(e)||it(e)||Me(e)?Array.from(e.entries()):e}function et(e){return e[Symbol.iterator]=_s,e}function _s(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Ri();typeof t[e]=="undefined"&&x("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Bo,extras:{getDebugName:un},$mobx:F});let Ss=(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 Ca=(e=8)=>Ss(e),bs=e=>{const t=Object.entries(e).reduce((i,[n,a])=>a!==void 0?`${i}${i?"&":""}${n}=${a}`:i,"");return t?`?${t}`:""};function Ns(){const e=new Error().stack.split(`
3
+ `);return e.length<3?"":e[2].trim().substring(3)}class mt 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 Ra extends mt{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class Ta extends mt{constructor(t){var i;super("APP_UNEXPECTED_ERROR",(i=t.message)!=null?i:"An unexpected error occurred.",t)}}class Os extends mt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Da extends mt{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,7 +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 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={};/**
23
+ `)}}const Es=["account"];function Ke(){Es.forEach(e=>{if(e===void 0)throw new Da(e)})}class ws{constructor(){C(this,"_config",null);C(this,"_account");ss(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 Xa(t.account);this.setAccount(n)}}get config(){return Ke(),this._config}get account(){return Ke(),this._account}get ok(){var t;return Ke(),!!((t=this._account)!=null&&t.account)}get accountName(){var t;return Ke(),(t=this._account)==null?void 0:t.account}setAccount(t){this._account=t}}class As{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=>Ce.error("NizzaBroadcastChannel:",t)}catch(t){throw Ce.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 Ce.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 Ce.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 oe=class{constructor(){C(this,"_productDataSource",null);C(this,"_configManager",new ws);C(this,"_eventBus",new As);C(this,"instanceId",Ca());C(this,"log",Ir);os(this,{config:fe,account:fe,ok:fe,accountName:fe,configure:me},{name:"NizzaStore",autoBind:!0})}static instance(){return oe._instance||(oe._instance=new oe),window!=null&&window.nizza?oe._instance=window==null?void 0:window.nizza:(window.nizza=oe._instance,window.nz=oe._instance),oe._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 Ke(),this._productDataSource}get eventBus(){return this._eventBus}setProductDataSource(t){this._productDataSource=t}};let Je=oe;C(Je,"_instance");const On=Je.instance(),ht=On.log,xa=ht.levels.INFO;ht.setDefaultLevel(xa);Fi.reg(ht);Fi.apply(ht,{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 Pa={},Fs=En("main"),Ce=En("core");function La(e){const t=ht.getLogger(e);return t.setLevel(xa),t}function Ia(e,t){Pa[e]=t}function Va(e){return Pa[e]}function En(e){const t=La(e);return Ia(e,t),Va(e)}function Cs(){var n,a,r;let e=null,t=null,i=null;try{e=(r=(a=(n=Intl.DateTimeFormat())==null?void 0:n.resolvedOptions())==null?void 0:a.timeZone)!=null?r:null;const o=-new Date().getTimezoneOffset();i=o;const s=o>=0?"+":"-",u=String(Math.floor(Math.abs(o)/60)).padStart(2,"0"),l=String(Math.abs(o)%60).padStart(2,"0");t=`${s}${u}:${l}`}catch{Ce.error("Error obtaining time zone or offset")}return{offset:t,offsetValue:i,value:e,country:null,included:null,label:null}}class ja{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 Ua(e){return new ja(e)}class Rs{}class Ts{constructor(t){C(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}var wn=(e=>(e.VTEX="VTEX",e.VTEX_IO="VTEX-IO",e.VTEX_CMS="PORTAL-VTEX",e.PLATFORM="PLATFORM",e.UNKNOWN="UNKNOWN",e))(wn||{}),Ma=(e=>(e.PLATFORM="platform_module",e.ADENDA="subscription_module",e.APP_STORE="app_store",e))(Ma||{}),An=(e=>(e.ACTIVE="active_contract",e.INACTIVE="inactive_contract",e))(An||{}),Ba=(e=>(e.LITE="lite",e.STANDARD="standard",e.PRO="pro",e))(Ba||{}),za=(e=>(e.LITE="PLAN_LITE",e.STANDARD="PLAN_ESTANDAR",e.PRO="PLAN_PRO",e.NONE="NO_PLAN",e))(za||{}),Ga=(e=>(e.PAST="past",e.LIVE="live",e.FUTURE="future",e))(Ga||{});class Mt{constructor(t){C(this,"root",Ua(this));C(this,"id");C(this,"account");C(this,"accountType",wn.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",An.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 Mt(a)}toPrimitives(){const{root:t,createdAt:i,...n}=this;return{...n,created:i.toISOString()}}}const Ds=`${Tr.apiUrls.restV1}/accounts/v2`;class $a{async get(t){const i=`${Ds}/${t}`,{data:n}=await mn({url:i});return n?Mt.toDomain(n):null}}class Ka{constructor(t){this.accountRepository=t}async get(t){try{const i=await this.accountRepository.get(t);if(!i)throw new Ra(t);return i}catch(i){throw new Ta(i)}}}const xs=new $a,Fn=new Ka(xs);class Cn{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 Tt=typeof window=="undefined"||"Deno"in window;function Ps(){}function ei(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ls(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t,i){return Vs(e)?typeof t=="function"?{...i,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Qa(e,t){if(e===t)return e;const i=ni(e)&&ni(t);if(i||ii(e)&&ii(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 ti(e,t){if(e&&!t||t&&!e)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function ni(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ii(e){if(!ai(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const i=t.prototype;return!(!ai(i)||!i.hasOwnProperty("isPrototypeOf"))}function ai(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return Array.isArray(e)}function js(e){return new Promise(t=>{setTimeout(t,e)})}function ri(e){js(0).then(e)}function oi(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 Us extends Cn{constructor(){super(),this.setup=t=>{if(!Tt&&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 Ms=new Us;class Bs extends Cn{constructor(){super(),this.setup=t=>{if(!Tt&&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 zs=new Bs;function Gs(e){return(e!=null?e:"online")==="online"?zs.isOnline():!0}class $s{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ks(e){return e instanceof $s}function Qs(){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):ri(()=>{i(d)})},o=d=>(...c)=>{r(()=>{d(...c)})},s=()=>{const d=e;e=[],d.length&&ri(()=>{n(()=>{d.forEach(c=>{i(c)})})})};return{batch:a,batchCalls:o,schedule:r,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{n=d}}}const Qe=Qs();class Ws extends Cn{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),si(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return dn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dn(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),ti(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&&ui(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(Ps)),i}updateStaleTimeout(){if(this.clearStaleTimeout(),Tt||this.currentResult.isStale||!ei(this.options.staleTime))return;const i=Ls(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,!(Tt||this.options.enabled===!1||!ei(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ms.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:S,fetchStatus:v,status:m}=c,y=!1,N=!1,A;if(i._optimisticResults){const f=this.hasListeners(),h=!f&&si(t,i),k=f&&ui(t,n,i,a);(h||k)&&(v=Gs(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=oi(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=oi(r==null?void 0:r.data,f,i),N=!0)}this.selectError&&(g=this.selectError,A=this.selectResult,S=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:S,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:Rn(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,ti(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"&&!Ks(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 qs(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function si(e,t){return qs(e,t)||e.state.dataUpdatedAt>0&&dn(e,t,t.refetchOnMount)}function dn(e,t,i){if(t.enabled!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&Rn(e,t)}return!1}function ui(e,t,i,n){return i.enabled!==!1&&(e!==t||n.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&Rn(e,i)}function Rn(e,t){return e.isStaleByTime(t.staleTime)}var Wa={exports:{}},qa={};/**
24
24
  * @license React
25
25
  * use-sync-external-store-shim.production.min.js
26
26
  *
@@ -28,4 +28,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
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;
31
+ */var Ie=M;function Js(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hs=typeof Object.is=="function"?Object.is:Js,Zs=Ie.useState,Xs=Ie.useEffect,Ys=Ie.useLayoutEffect,eu=Ie.useDebugValue;function tu(e,t){var i=t(),n=Zs({inst:{value:i,getSnapshot:t}}),a=n[0].inst,r=n[1];return Ys(function(){a.value=i,a.getSnapshot=t,tn(a)&&r({inst:a})},[e,i,t]),Xs(function(){return tn(a)&&r({inst:a}),e(function(){tn(a)&&r({inst:a})})},[e]),eu(i),i}function tn(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Hs(e,i)}catch{return!0}}function nu(e,t){return t()}var iu=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?nu:tu;qa.useSyncExternalStore=Ie.useSyncExternalStore!==void 0?Ie.useSyncExternalStore:iu;Wa.exports=qa;var au=Wa.exports;const ru=au.useSyncExternalStore,li=q.createContext(void 0),ou=q.createContext(!1);function su(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=li),window.ReactQueryClientContext):li)}const uu=({context:e}={})=>{const t=q.useContext(su(e,q.useContext(ou)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ja=q.createContext(!1),lu=()=>q.useContext(Ja);Ja.Provider;function du(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const cu=q.createContext(du()),fu=()=>q.useContext(cu);function mu(e,t){return typeof e=="function"?e(...t):!!e}const hu=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},vu=e=>{q.useEffect(()=>{e.clearReset()},[e])},pu=({result:e,errorResetBoundary:t,useErrorBoundary:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&mu(i,[e.error,n]),gu=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},ku=(e,t)=>e.isLoading&&e.isFetching&&!t,yu=(e,t,i)=>(e==null?void 0:e.suspense)&&ku(t,i),_u=(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=uu({context:e.context}),n=lu(),a=fu(),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)),gu(r),hu(r,a),vu(a);const[o]=q.useState(()=>new t(i,r)),s=o.getOptimisticResult(r);if(ru(q.useCallback(u=>n?()=>{}:o.subscribe(Qe.batchCalls(u)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),q.useEffect(()=>{o.setOptions(r,{listeners:!1})},[r,o]),yu(r,s,n))throw _u(r,o,a);if(pu({result:s,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return r.notifyOnChangeProps?s:o.trackResult(s)}function bu(e,t,i){const n=Is(e,t,i);return Su(n,Ws)}let Tn=new Map;const cn=M.createContext(Tn),Nu=({children:e,stores:t})=>{const i=M.useContext(cn),n=M.useMemo(()=>{const a=new Map;return t.forEach(r=>a.set(r.class,r.value)),Tn=new Map([...i,...a])},[]);return vr.jsx(cn.Provider,{value:n,children:e})};function Ou(e){return M.useContext(cn).get(e)}function Eu(e){return Tn.get(e)}function wu(e,t=[]){if(Array.isArray(t)&&t.some(i=>lt(i)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>_n(e),t)}function Ha(e,t=[]){if(Array.isArray(t)&&t.some(a=>lt(a)))throw new Error("useEffect dependencies must not contain observables, ...");const[i,n]=M.useState();return M.useEffect(()=>_n(()=>{const a=e();n(a)}),t),i}function Au(e,t,i=[]){if(Array.isArray(i)&&i.some(n=>lt(n)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>qo(e,t),i)}const Fu=()=>["account"],Cu=()=>{const e=Ha(()=>{var a;return(a=On.config)==null?void 0:a.account}),[t,i]=wr(xt),n=bu(Fu(),()=>Fn.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}},Za=bi();async function Xa(e){const t=await Fn.get(e);return Za.set(xt,t),t}var Ya=(e=>(e.CREATED="CREATED",e.STARTING="STARTING",e.LIVE="LIVE",e.FINALIZED="FINALIZED",e))(Ya||{});const Ru={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:**"},Tu={EVENT_STATUS_CHANGED:"event:statusChanged"};var er=(e=>(e.English="en",e.Spanish="es",e.Portuguese="pt",e))(er||{}),tr=(e=>(e.COMBO="Combo",e))(tr||{}),nr=(e=>(e.VTEX="VTEX",e.PLATFORM="platform",e.CACE="CACE",e.GLOBAL_PAGE="globalPage",e.DEV_LOCAL="dev:local",e.CUSTOMIZATION="customization",e))(nr||{});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 ir(e){var t=Du(e,"string");return Z(t)==="symbol"?t:String(t)}function xu(e,t,i){return t=ir(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){xu(e,a,i[a])})}return e}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function di(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,ir(n.key),n)}}function ae(e,t,i){return t&&di(e.prototype,t),i&&di(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(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 Se(e)}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ve(e)}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fn(e,t)}function Bt(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&&fn(e,t)}var Pu={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)}},Lu=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.init(t,i)}return ae(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||Pu,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}(),ue=new Lu,pe=function(){function e(){ie(this,e),this.observers={}}return ae(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 ze(){var e,t,i=new Promise(function(n,a){e=n,t=a});return i.resolve=e,i.reject=t,i}function ci(e){return e==null?"":""+e}function Iu(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 fi(e,t,i){var n=Dn(e,t,Object),a=n.obj,r=n.k;a[r]=i}function Vu(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 mi(e,t,i){var n=Dt(e,i);return n!==void 0?n:Dt(t,i)}function ar(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]):ar(e[n],t[n],i):e[n]=t[n]);return e}function we(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ju={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Uu(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return ju[t]}):e}var zt=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function rr(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?rr(u,l,i):void 0}a=a[n[r]]}return a}}var Mu=function(e){Bt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ie(this,t),n=tt(this,Ve(t).call(this)),zt&&pe.call(Se(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 ae(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:rr(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),fi(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?ar(d,r,s):d=j({},d,r),fi(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),or={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}},hi={},vi=function(e){Bt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ie(this,t),n=tt(this,Ve(t).call(this)),zt&&pe.call(Se(n)),Iu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Se(n)),n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=ue.create("translator"),n}return ae(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 S=a.nsSeparator||this.options.nsSeparator;return c+S+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 b in m)if(Object.prototype.hasOwnProperty.call(m,b)){var E="".concat(k).concat(s).concat(b);h[b]=this.translate(E,j({},a,{joinArrays:!1,ns:d})),h[b]===E&&(h[b]=m[b])}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,re=a.count!==void 0&&typeof a.count!="string",P=t.hasDefaultValue(a),V=re?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 xn=this.resolve(l,j({},a,{keySeparator:!1}));xn&&xn.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 Be=[],vt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&vt&&vt[0])for(var Gt=0;Gt<vt.length;Gt++)Be.push(vt[Gt]);else this.options.saveMissingTo==="all"?Be=this.languageUtils.toResolveHierarchy(a.lng||this.language):Be.push(a.lng||this.language);var Pn=function(Oe,Kt,Ln){o.options.missingKeyHandler?o.options.missingKeyHandler(Oe,c,Kt,K?Ln:m,K,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(Oe,c,Kt,K?Ln:m,K,a),o.emit("missingKey",Oe,c,Kt,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Be.forEach(function($t){o.pluralResolver.getSuffixes($t).forEach(function(Oe){Pn([$t],l+Oe,a["defaultValue".concat(Oe)]||I)})}):Pn(Be,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),S=g&&g.length;d<S&&(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=or.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 S=p.namespaces;a.options.fallbackNS&&(S=S.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);S.forEach(function(N){a.isValidLookup(o)||(d=N,!hi["".concat(y[0],"-").concat(N)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(hi["".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 nn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Bu=function(){function e(t){ie(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create("languageUtils")}return ae(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]=nn(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]=nn(a[1].toLowerCase())),n.indexOf(a[2].toLowerCase())>-1&&(a[2]=nn(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}(),zu=[{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}],Gu={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 $u(){var e={};return zu.forEach(function(t){t.lngs.forEach(function(i){e[i]={numbers:t.nr,plurals:Gu[t.fc]}})}),e}var Ku=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.languageUtils=t,this.options=i,this.logger=ue.create("pluralResolver"),this.rules=$u()}return ae(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}(),Qu=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie(this,e),this.logger=ue.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(i){return i},this.init(t)}return ae(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:Uu,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=mi(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(mi(n,d,O),T,a,j({},r,n,{interpolationkey:O}))};this.resetRegExp();var g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,S=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(S){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=ci(u));var N=m.safeValue(u);if(i=i.replace(s[0],N),S?(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,S){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),S&&(u=j({},S,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=ci(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(i)),s=""),c&&(s=d.reduce(function(g,S){return a.format(g,S,r.lng,j({},r,{interpolationkey:o[1].trim()}))},s.trim())),i=i.replace(o[0],s),this.regexp.lastIndex=0}return i}}]),e}();function Wu(e,t){for(var i=e.indexOf(t);i!==-1;)e.splice(i,1),i=e.indexOf(t)}var qu=function(e){Bt(t,e);function t(i,n,a){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ie(this,t),r=tt(this,Ve(t).call(this)),zt&&pe.call(Se(r)),r.backend=i,r.store=n,r.services=a,r.languageUtils=a.languageUtils,r.options=o,r.logger=ue.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(a,o.backend,o),r}return ae(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(S){var v="".concat(p,"|").concat(S);!r.reload&&s.store.hasResourceBundle(p,S)?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(S)<0&&c.push(S)))}),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){Vu(d.loaded,[s],u),Wu(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 Ju(){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 pi(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 _t(){}var Hu=function(e){Bt(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(ie(this,t),i=tt(this,Ve(t).call(this)),zt&&pe.call(Se(i)),i.options=pi(n),i.services={},i.logger=ue,i.modules={external:[]},a&&!i.isInitialized&&!n.isClone){if(!i.options.initImmediate)return i.init(n,a),tt(i,Se(i));setTimeout(function(){i.init(n,a)},0)}return i}return ae(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({},Ju(),this.options,pi(a)),this.format=this.options.interpolation.format,r||(r=_t);function o(S){return S?typeof S=="function"?new S:S:null}if(!this.options.isClone){this.modules.logger?ue.init(o(this.modules.logger),this.options):ue.init(null,this.options);var s=new Bu(this.options);this.store=new Mu(this.options.resources,this.options);var u=this.services;u.logger=ue,u.resourceStore=this.store,u.languageUtils=s,u.pluralResolver=new Ku(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Qu(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new qu(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(S){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,[S].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 vi(this.services,this.options),this.translator.on("*",function(S){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,[S].concat(m))}),this.modules.external.forEach(function(S){S.init&&S.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(S){n[S]=function(){var v;return(v=n.store)[S].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(S){n[S]=function(){var v;return(v=n.store)[S].apply(v,arguments),n}});var p=ze(),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]:_t,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(S){u.indexOf(S)<0&&u.push(S)})}};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=ze();return n||(n=this.languages),a||(a=this.options.ns),r||(r=_t),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"&&or.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=ze();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 S=a.services.backendConnector.state["".concat(p,"|").concat(g)];return S===-1||S===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=ze();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=ze();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]:_t,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 vi(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),sr=new Hu;function Zu(e){const t=Object.values(e);return Object.assign({},...t)}function Xu(e){return Object.entries(e).reduce((t,[i,n])=>{const a=Zu(n);return{...t,[i]:a}},{})}function Yu(e){const t=Xu(e);Object.entries(t).forEach(([i,n])=>{sr.addResourceBundle(i,"translation",n,!0)})}var ur=[],el=ur.forEach,tl=ur.slice;function nl(e){return el.call(tl.call(arguments,1),function(t){if(t)for(var i in t)e[i]===void 0&&(e[i]=t[i])}),e}var gi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,il=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(!gi.test(a.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(a.domain)}if(a.path){if(!gi.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},ki={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=il(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)}},al={name:"cookie",lookup:function(t){var i;if(t.lookupCookie&&typeof document!="undefined"){var n=ki.read(t.lookupCookie);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupCookie&&typeof document!="undefined"&&ki.create(i.lookupCookie,t,i.cookieMinutes,i.cookieDomain,i.cookieOptions)}},rl={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}},Ge=null,yi=function(){if(Ge!==null)return Ge;try{Ge=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ge=!1}return Ge},ol={name:"localStorage",lookup:function(t){var i;if(t.lookupLocalStorage&&yi()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupLocalStorage&&yi()&&window.localStorage.setItem(i.lookupLocalStorage,t)}},$e=null,_i=function(){if($e!==null)return $e;try{$e=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$e=!1}return $e},sl={name:"sessionStorage",lookup:function(t){var i;if(t.lookupSessionStorage&&_i()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupSessionStorage&&_i()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)}},ul={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}},ll={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}},dl={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}},cl={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 fl(){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 lr=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return ae(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=nl(n,this.options||{},fl()),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(al),this.addDetector(rl),this.addDetector(ol),this.addDetector(sl),this.addDetector(ul),this.addDetector(ll),this.addDetector(dl),this.addDetector(cl)}},{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}();lr.type="languageDetector";const ml=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hl={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vl=e=>hl[e],pl=e=>e.replace(ml,vl);let Si={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pl};function gl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Si={...Si,...e}}const kl={type:"3rdParty",init(e){gl(e.options.react)}},yl=sr.use(kl).use(lr).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 dr=(e=>(e.Created="CREATED",e.Finalized="FINALIZED",e.Live="LIVE",e.Starting="STARTING",e))(dr||{}),cr=(e=>(e.Add="add",e.Remove="remove",e))(cr||{}),fr=(e=>(e.Active="active",e.Inactive="inactive",e))(fr||{});const _l={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"}}]}}]}}]}}]},Sl={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"}}]}}]}}]}}]},bl={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"}}]}}]}}]}}]},Nl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ol={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},El={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"}}]}}]}}]}}]},wl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}}]}}]}},{kind:"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:"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"}}]}}]}}]}}]},Fl={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"}}]}}]}}]}}]},Cl={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"}}]}}]}}]}}]},Rl={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"}}]}}]}}]}}]},Tl={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"}}]}}]}}]}}]},Dl={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"}}]}}]}}]}}]},xl={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"}}]}}]}}]}}]},Pl={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"}}]}}]}}]}}]},Ll={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"}}]}}]}}]}}]},Il={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"}}]}}]}}]}}]},Vl={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"}}]}}]}}]}}]},jl={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"}}]}}]}}]}}]},Ul={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"}}]}}]}}]}}]},Ml={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"}}]}}]}}]}}]},Bl={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"}}]}}]}}]}}]},zl={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"}}]}}]}}]}}]},Gl={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"}}]}}]}}]}}]},$l={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"}}]}}]}}]}}]}}]},Kl={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"}}]}}]}}]}}]},Ql={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"}}]}}]}}]}}]},Wl=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Cl,AppendProductsToSnackVideoDocument:jl,BlockUserDocument:Nl,ChangeAccountUsernameDocument:Ol,CreateSnackVideoBatchDocument:Ul,DeleteAllCustomizationDocument:_l,DeleteChatMessageDocument:El,DeleteCollectionDocument:Rl,DeleteRelationshipWithSnackVideoDocument:Ml,DeleteSnackVideoDocument:Bl,EventStatus:dr,FindByProductSnackVideoDocument:Ql,FindCollectionDocument:Tl,FindManySnackVideosDocument:zl,FindMinimalEventDocument:Il,GetAllChatMessageDocument:wl,GetAllCollectionsDocument:Dl,GetAllCustomizationDocument:Sl,GetAllSnackVideosDocument:Gl,GetChatRoomTokenDocument:Al,GetSnackVideoRelationshipsDocument:$l,ManageCollectionProductDocument:xl,Methods:cr,PinChatMessageDocument:Fl,SearchCollectionsDocument:Pl,SearchMinimalEventsDocument:Vl,SearchSnackVideosDocument:Kl,Status:fr,UpdateCollectionDocument:Ll,UpdateCustomizationDocument:bl},Symbol.toStringTag,{value:"Module"}));function ql(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=An;exports.AccountContractTypes=Ma;exports.AccountInvalidError=Os;exports.AccountPlanDescriptionTypes=za;exports.AccountRestRepository=$a;exports.AccountService=Ka;exports.AccountSubscriptionTypes=Ba;exports.AccountTypes=wn;exports.AggregateRoot=ja;exports.ApiGraphqlTypes=Wl;exports.BaseMobxStore=Rs;exports.DomainError=mt;exports.EventBusWildcards=Ru;exports.EventNames=Tu;exports.GlobalPageSectionTypes=Ga;exports.InvalidNizzaGlobalObjectError=Da;exports.LanguageTypes=er;exports.NizzaAccount=Mt;exports.NizzaEventStatus=Ya;exports.NizzaProductRequestOriginTypes=nr;exports.NizzaStore=Je;exports.NizzaVariationTypes=tr;exports.ResourceNotFoundError=Ra;exports.StoreProvider=Nu;exports.UnexpectedError=Ta;exports.ValueObject=Ts;exports.accountAtom=xt;exports.accountService=Fn;exports.apiCall=Dr;exports.coreLogger=Ce;exports.createAggregateRoot=Ua;exports.createLogger=La;exports.createStore=ql;exports.customFetch=mn;exports.downloadFile=xr;exports.fileOrigin=Ns;exports.getAccount=Xa;exports.getClientTimeZone=Cs;exports.getLogger=Va;exports.getStore=Eu;exports.globalAtomStore=Za;exports.i18n=yl;exports.initializeLogger=En;exports.jsDownload=Oi;exports.logger=Fs;exports.nizza=On;exports.registerLogger=Ia;exports.registerTranslations=Yu;exports.searchParams=bs;exports.shortId=Ca;exports.useAccount=Cu;exports.useAutorun=wu;exports.useReaction=Au;exports.useSelect=Ha;exports.useStore=Ou;