@nizza/core 0.7.1-beta.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +75 -14
- package/dist/index.mjs.map +1 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts +5 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts.map +1 -1
- package/dist/lib/runtime/component-manager.d.ts +41 -6
- package/dist/lib/runtime/component-manager.d.ts.map +1 -1
- package/dist/lib/types/api-graphql-types.d.ts +0 -1
- package/dist/lib/types/api-graphql-types.d.ts.map +1 -1
- package/dist/lib/types/nizza/globalStore.d.ts +3 -3
- package/dist/lib/types/nizza/globalStore.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var J0=Object.defineProperty;var X0=(t,e,n)=>e in t?J0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Pe=(t,e,n)=>X0(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const st=require("react"),Q0=require("react/jsx-runtime"),Z0=require("react-dom");function eS(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const Dn={};let tS=0;function Ju(t,e){const n=`atom${++tS}`,r={toString(){return(Dn?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?r.read=t:(r.init=t,r.read=nS,r.write=rS),r}function nS(t){return t(this)}function rS(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const hp=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,hl=t=>"init"in t,pl=t=>!!t.write,wu=new WeakMap,$d=t=>{var e;return jd(t)&&!((e=wu.get(t))!=null&&e[1])},iS=(t,e)=>{const n=wu.get(t);if(n)n[1]=!0,n[0].forEach(r=>r(e));else if((Dn?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},sS=t=>{if(wu.has(t))return;const e=[new Set,!1];wu.set(t,e);const n=()=>{e[1]=!0};t.then(n,n),t.onCancel=r=>{e[0].add(r)}},jd=t=>typeof(t==null?void 0:t.then)=="function",pp=t=>"v"in t||"e"in t,Pa=t=>{if("e"in t)throw t.e;if((Dn?"production":void 0)!=="production"&&!("v"in t))throw new Error("[Bug] atom state is not initialized");return t.v},Ty=(t,e,n)=>{n.p.has(t)||(n.p.add(t),e.then(()=>{n.p.delete(t)},()=>{n.p.delete(t)}))},mp=(t,e,n,r,i)=>{var s;if((Dn?"production":void 0)!=="production"&&r===e)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,i.n),$d(n.v)&&Ty(e,n.v,i),(s=i.m)==null||s.t.add(e),t&&oS(t,r,e)},qi=()=>[new Map,new Map,new Set],ml=(t,e,n)=>{t[0].has(e)||t[0].set(e,new Set),t[1].set(e,n)},oS=(t,e,n)=>{const r=t[0].get(e);r&&r.add(n)},aS=(t,e)=>t[0].get(e),gp=(t,e)=>{t[2].add(e)},ti=t=>{for(;t[1].size||t[2].size;){t[0].clear();const e=new Set(t[1].values());t[1].clear();const n=new Set(t[2]);t[2].clear(),e.forEach(r=>{var i;return(i=r.m)==null?void 0:i.l.forEach(s=>s())}),n.forEach(r=>r())}},Oy=t=>{let e;(Dn?"production":void 0)!=="production"&&(e=new Set);const n=(w,k,C)=>{const E="v"in k,O=k.v,I=$d(k.v)?k.v:null;if(jd(C)){sS(C);for(const M of k.d.keys())Ty(w,C,t(M,k));k.v=C,delete k.e}else k.v=C,delete k.e;(!E||!Object.is(O,k.v))&&(++k.n,I&&iS(I,C))},r=(w,k,C,E)=>{var O;if(!(E!=null&&E(k))&&pp(C)&&(C.m||Array.from(C.d).every(([se,H])=>r(w,se,t(se,C),E).n===H)))return C;C.d.clear();let I=!0;const M=se=>{if(hp(k,se)){const ie=t(se,C);if(!pp(ie))if(hl(se))n(se,ie,se.init);else throw new Error("no atom init");return Pa(ie)}const H=r(w,se,t(se,C),E);if(I)mp(w,k,C,se,H);else{const ie=qi();mp(ie,k,C,se,H),u(ie,k,C),ti(ie)}return Pa(H)};let Y,ee;const F={get signal(){return Y||(Y=new AbortController),Y.signal},get setSelf(){return(Dn?"production":void 0)!=="production"&&!pl(k)&&console.warn("setSelf function cannot be used with read-only atom"),!ee&&pl(k)&&(ee=(...se)=>{if((Dn?"production":void 0)!=="production"&&I&&console.warn("setSelf function cannot be called in sync"),!I)return c(k,...se)}),ee}};try{const se=k.read(M,F);if(n(k,C,se),jd(se)){(O=se.onCancel)==null||O.call(se,()=>Y==null?void 0:Y.abort());const H=()=>{if(C.m){const ie=qi();u(ie,k,C),ti(ie)}};se.then(H,H)}return C}catch(se){return delete C.v,C.e=se,++C.n,C}finally{I=!1}},i=w=>Pa(r(void 0,w,t(w))),s=(w,k,C)=>{var E,O;const I=new Map;for(const M of((E=C.m)==null?void 0:E.t)||[])I.set(M,t(M,C));for(const M of C.p)I.set(M,t(M,C));return(O=aS(w,k))==null||O.forEach(M=>{I.set(M,t(M,C))}),I},o=(w,k,C)=>{const E=[],O=new Set,I=(ee,F)=>{if(!O.has(ee)){O.add(ee);for(const[se,H]of s(w,ee,F))ee!==se&&I(se,H);E.push([ee,F,F.n])}};I(k,C);const M=new Set([k]),Y=ee=>O.has(ee);for(let ee=E.length-1;ee>=0;--ee){const[F,se,H]=E[ee];let ie=!1;for(const xe of se.d.keys())if(xe!==F&&M.has(xe)){ie=!0;break}ie&&(r(w,F,se,Y),u(w,F,se),H!==se.n&&(ml(w,F,se),M.add(F))),O.delete(F)}},a=(w,k,C,...E)=>{const O=Y=>Pa(r(w,Y,t(Y,C))),I=(Y,...ee)=>{const F=t(Y,C);let se;if(hp(k,Y)){if(!hl(Y))throw new Error("atom not writable");const H="v"in F,ie=F.v,xe=ee[0];n(Y,F,xe),u(w,Y,F),(!H||!Object.is(ie,F.v))&&(ml(w,Y,F),o(w,Y,F))}else se=a(w,Y,F,...ee);return ti(w),se};return k.write(O,I,...E)},c=(w,...k)=>{const C=qi(),E=a(C,w,t(w),...k);return ti(C),E},u=(w,k,C)=>{if(C.m&&!$d(C.v)){for(const E of C.d.keys())C.m.d.has(E)||(d(w,E,t(E,C)).t.add(k),C.m.d.add(E));for(const E of C.m.d||[])if(!C.d.has(E)){C.m.d.delete(E);const O=h(w,E,t(E,C));O==null||O.t.delete(k)}}},d=(w,k,C)=>{if(!C.m){r(w,k,C);for(const E of C.d.keys())d(w,E,t(E,C)).t.add(k);if(C.m={l:new Set,d:new Set(C.d.keys()),t:new Set},(Dn?"production":void 0)!=="production"&&e.add(k),pl(k)&&k.onMount){const E=C.m,{onMount:O}=k;gp(w,()=>{const I=O((...M)=>a(w,k,C,...M));I&&(E.u=I)})}}return C.m},h=(w,k,C)=>{if(C.m&&!C.m.l.size&&!Array.from(C.m.t).some(E=>{var O;return(O=t(E,C).m)==null?void 0:O.d.has(k)})){const E=C.m.u;E&&gp(w,E),delete C.m,(Dn?"production":void 0)!=="production"&&e.delete(k);for(const O of C.d.keys()){const I=h(w,O,t(O,C));I==null||I.t.delete(k)}return}return C.m},v={get:i,set:c,sub:(w,k)=>{const C=qi(),E=t(w),O=d(C,w,E);ti(C);const I=O.l;return I.add(k),()=>{I.delete(k);const M=qi();h(M,w,E),ti(M)}},unstable_derive:w=>Oy(...w(t))};return(Dn?"production":void 0)!=="production"&&Object.assign(v,{dev4_get_internal_weak_map:()=>({get:k=>{const C=t(k);if(C.n!==0)return C}}),dev4_get_mounted_atoms:()=>e,dev4_restore_atoms:k=>{const C=qi();for(const[E,O]of k)if(hl(E)){const I=t(E),M="v"in I,Y=I.v;n(E,I,O),u(C,E,I),(!M||!Object.is(Y,I.v))&&(ml(C,E,I),o(C,E,I))}ti(C)}}),v},uS=()=>{const t=new WeakMap;return Oy(n=>{let r=t.get(n);return r||(r={d:new Map,p:new Set,n:0},t.set(n,r)),r})};let zs;const cS=()=>(zs||(zs=uS(),(Dn?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=zs),globalThis.__JOTAI_DEFAULT_STORE__!==zs&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),zs),Iy={},lS=st.createContext(void 0),Ry=t=>st.useContext(lS)||cS(),Py=t=>typeof(t==null?void 0:t.then)=="function",dS=t=>{t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e})},fS=st.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(dS(t),t)}),gl=new WeakMap,hS=t=>{let e=gl.get(t);return e||(e=new Promise((n,r)=>{let i=t;const s=c=>u=>{i===c&&n(u)},o=c=>u=>{i===c&&r(u)},a=c=>{"onCancel"in c&&typeof c.onCancel=="function"&&c.onCancel(u=>{if((Iy?"production":void 0)!=="production"&&u===c)throw new Error("[Bug] p is not updated even after cancelation");Py(u)?(gl.set(u,e),i=u,u.then(s(u),o(u)),a(u)):n(u)})};t.then(s(t),o(t)),a(t)}),gl.set(t,e)),e};function Vd(t,e){const n=Ry(),[[r,i,s],o]=st.useReducer(u=>{const d=n.get(t);return Object.is(u[0],d)&&u[1]===n&&u[2]===t?u:[d,n,t]},void 0,()=>[n.get(t),n,t]);let a=r;if((i!==n||s!==t)&&(o(),a=n.get(t)),st.useEffect(()=>{const u=n.sub(t,()=>{o()});return o(),u},[n,t,void 0]),st.useDebugValue(a),Py(a)){const u=hS(a);return fS(u)}return a}function zf(t,e){const n=Ry();return st.useCallback((...i)=>{if((Iy?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...i)},[n,t])}function vl(t,e){return[Vd(t),zf(t)]}const Dy=Ju(null);Dy.debugLabel="accountAtom";const pS={},{NZ_CORE_SERVICES_GRAPHQL_URL:mS,NZ_CORE_SERVICES_REST_URL:gS}=pS,bs={apiUrls:{restV2:gS||"https://core-services-dev.nizza.com/api",graphql:mS||"https://core-services-dev.nizza.com/graphql"},publicUrls:{wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};var vS="Logging",yS=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bS=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},Hi=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(bS(arguments[e]));return t},vp={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},Rn;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE"})(Rn||(Rn={}));var $n=function(){function t(e,n){n===void 0&&(n=Rn.WARN),this.name=e,this.level=n,this._pluggables=[]}return t.prototype._padding=function(e){return e<10?"0"+e:""+e},t.prototype._ts=function(){var e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()},t.prototype.configure=function(e){return e?(this._config=e,this._config):this._config},t.prototype._log=function(e){for(var n,r,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var o=this.level;t.LOG_LEVEL&&(o=t.LOG_LEVEL),typeof window!="undefined"&&window.LOG_LEVEL&&(o=window.LOG_LEVEL);var a=vp[o],c=vp[e];if(c>=a){var u=console.log.bind(console);e===Rn.ERROR&&console.error&&(u=console.error.bind(console)),e===Rn.WARN&&console.warn&&(u=console.warn.bind(console));var d="["+e+"] "+this._ts()+" "+this.name,h="";if(i.length===1&&typeof i[0]=="string")h=d+" - "+i[0],u(h);else if(i.length===1)h=d+" "+i[0],u(d,i[0]);else if(typeof i[0]=="string"){var p=i.slice(1);p.length===1&&(p=p[0]),h=d+" - "+i[0]+" "+p,u(d+" - "+i[0],p)}else h=d+" "+i,u(d,i);try{for(var y=yS(this._pluggables),v=y.next();!v.done;v=y.next()){var w=v.value,k={message:h,timestamp:Date.now()};w.pushLogs([k])}}catch(C){n={error:C}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}}},t.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.INFO],e))},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.INFO],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.WARN],e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.ERROR],e))},t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.DEBUG],e))},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.VERBOSE],e))},t.prototype.addPluggable=function(e){e&&e.getCategoryName()===vS&&(this._pluggables.push(e),e.configure(this._config))},t.prototype.listPluggables=function(){return this._pluggables},t.LOG_LEVEL=null,t}(),wS=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},yl=new $n("Amplify"),_S=function(){function t(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=$n,this.ServiceWorker=null}return t.prototype.register=function(e){yl.debug("component registered in amplify",e),this._components.push(e),typeof e.getModuleName=="function"?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):yl.debug("no getModuleName method for component",e),e.configure(this._config)},t.prototype.configure=function(e){var n=this;return e?(this._config=Object.assign(this._config,e),yl.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(r){var i=wS(r,2);i[0];var s=i[1];Object.keys(s).forEach(function(o){n._modules[o]&&(s[o]=n._modules[o])})}),this._components.map(function(r){r.configure(n._config)}),this._config):this._config},t.prototype.addPluggable=function(e){e&&e.getCategory&&typeof e.getCategory=="function"&&this._components.map(function(n){n.addPluggable&&typeof n.addPluggable=="function"&&n.addPluggable(e)})},t}(),Gf=new _S,SS="4.7.14",qd="aws-amplify/"+SS,ui={userAgent:qd+" js",product:"",navigator:null,isReactNative:!1};if(typeof navigator!="undefined"&&navigator.product)switch(ui.product=navigator.product||"",ui.navigator=navigator||null,navigator.product){case"ReactNative":ui.userAgent=qd+" react-native",ui.isReactNative=!0;break;default:ui.userAgent=qd+" js",ui.isReactNative=!1;break}var kS=function(t){return""+ui.userAgent},xo=function(){return xo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xo.apply(this,arguments)},Fy=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},yp=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Fy(arguments[e]));return t},tr=new $n("Hub"),ES=typeof Symbol!="undefined"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default";function AS(t){return t.onHubCapsule!==void 0}var CS=function(){function t(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return t.prototype.remove=function(e,n){if(e instanceof RegExp){var r=this.patterns.find(function(s){var o=s.pattern;return o.source===e.source});if(!r){tr.warn("No listeners for "+e);return}this.patterns=yp(this.patterns.filter(function(s){return s!==r}))}else{var i=this.listeners[e];if(!i){tr.warn("No listeners for "+e);return}this.listeners[e]=yp(i.filter(function(s){var o=s.callback;return o!==n}))}},t.prototype.dispatch=function(e,n,r,i){if(r===void 0&&(r=""),this.protectedChannels.indexOf(e)>-1){var s=i===ES;s||tr.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences")}var o={channel:e,payload:xo({},n),source:r,patternInfo:[]};try{this._toListeners(o)}catch(a){tr.error(a)}},t.prototype.listen=function(e,n,r){var i=this;r===void 0&&(r="noname");var s;if(AS(n))tr.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),s=n.onHubCapsule.bind(n);else{if(typeof n!="function")throw new Error("No callback supplied to Hub");s=n}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:s});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:r,callback:s})}return function(){i.remove(e,s)}},t.prototype._toListeners=function(e){var n=e.channel,r=e.payload,i=this.listeners[n];if(i&&i.forEach(function(o){tr.debug("Dispatching to "+n+" with ",r);try{o.callback(e)}catch(a){tr.error(a)}}),this.patterns.length>0){if(!r.message){tr.warn("Cannot perform pattern matching without a message key");return}var s=r.message;this.patterns.forEach(function(o){var a=s.match(o.pattern);if(a){var c=Fy(a),u=c.slice(1),d=xo(xo({},e),{patternInfo:u});try{o.callback(d)}catch(h){tr.error(h)}}})}},t}(),Nr=new CS("__default__"),xS=function(t){if(t.isResolved)return t;var e=!0,n=!1,r=!1,i=t.then(function(s){return r=!0,e=!1,s},function(s){throw n=!0,e=!1,s});return i.isFullfilled=function(){return r},i.isPending=function(){return e},i.isRejected=function(){return n},i},ur=function(){var t=typeof window!="undefined"&&typeof window.document!="undefined",e=typeof process!="undefined"&&process.versions!=null&&process.versions.node!=null;return{isBrowser:t,isNode:e}},Mr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ws(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}/*! *****************************************************************************
|
|
1
|
+
"use strict";var J0=Object.defineProperty;var X0=(t,e,n)=>e in t?J0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Pe=(t,e,n)=>X0(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const st=require("react"),Q0=require("react/jsx-runtime"),Z0=require("react-dom");function eS(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const Dn={};let tS=0;function Ju(t,e){const n=`atom${++tS}`,r={toString(){return(Dn?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?r.read=t:(r.init=t,r.read=nS,r.write=rS),r}function nS(t){return t(this)}function rS(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const hp=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,hl=t=>"init"in t,pl=t=>!!t.write,wu=new WeakMap,$d=t=>{var e;return jd(t)&&!((e=wu.get(t))!=null&&e[1])},iS=(t,e)=>{const n=wu.get(t);if(n)n[1]=!0,n[0].forEach(r=>r(e));else if((Dn?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},sS=t=>{if(wu.has(t))return;const e=[new Set,!1];wu.set(t,e);const n=()=>{e[1]=!0};t.then(n,n),t.onCancel=r=>{e[0].add(r)}},jd=t=>typeof(t==null?void 0:t.then)=="function",pp=t=>"v"in t||"e"in t,Pa=t=>{if("e"in t)throw t.e;if((Dn?"production":void 0)!=="production"&&!("v"in t))throw new Error("[Bug] atom state is not initialized");return t.v},Ty=(t,e,n)=>{n.p.has(t)||(n.p.add(t),e.then(()=>{n.p.delete(t)},()=>{n.p.delete(t)}))},mp=(t,e,n,r,i)=>{var s;if((Dn?"production":void 0)!=="production"&&r===e)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,i.n),$d(n.v)&&Ty(e,n.v,i),(s=i.m)==null||s.t.add(e),t&&oS(t,r,e)},qi=()=>[new Map,new Map,new Set],ml=(t,e,n)=>{t[0].has(e)||t[0].set(e,new Set),t[1].set(e,n)},oS=(t,e,n)=>{const r=t[0].get(e);r&&r.add(n)},aS=(t,e)=>t[0].get(e),gp=(t,e)=>{t[2].add(e)},ti=t=>{for(;t[1].size||t[2].size;){t[0].clear();const e=new Set(t[1].values());t[1].clear();const n=new Set(t[2]);t[2].clear(),e.forEach(r=>{var i;return(i=r.m)==null?void 0:i.l.forEach(s=>s())}),n.forEach(r=>r())}},Oy=t=>{let e;(Dn?"production":void 0)!=="production"&&(e=new Set);const n=(w,k,C)=>{const E="v"in k,O=k.v,I=$d(k.v)?k.v:null;if(jd(C)){sS(C);for(const M of k.d.keys())Ty(w,C,t(M,k));k.v=C,delete k.e}else k.v=C,delete k.e;(!E||!Object.is(O,k.v))&&(++k.n,I&&iS(I,C))},r=(w,k,C,E)=>{var O;if(!(E!=null&&E(k))&&pp(C)&&(C.m||Array.from(C.d).every(([se,H])=>r(w,se,t(se,C),E).n===H)))return C;C.d.clear();let I=!0;const M=se=>{if(hp(k,se)){const ie=t(se,C);if(!pp(ie))if(hl(se))n(se,ie,se.init);else throw new Error("no atom init");return Pa(ie)}const H=r(w,se,t(se,C),E);if(I)mp(w,k,C,se,H);else{const ie=qi();mp(ie,k,C,se,H),u(ie,k,C),ti(ie)}return Pa(H)};let Y,ee;const F={get signal(){return Y||(Y=new AbortController),Y.signal},get setSelf(){return(Dn?"production":void 0)!=="production"&&!pl(k)&&console.warn("setSelf function cannot be used with read-only atom"),!ee&&pl(k)&&(ee=(...se)=>{if((Dn?"production":void 0)!=="production"&&I&&console.warn("setSelf function cannot be called in sync"),!I)return c(k,...se)}),ee}};try{const se=k.read(M,F);if(n(k,C,se),jd(se)){(O=se.onCancel)==null||O.call(se,()=>Y==null?void 0:Y.abort());const H=()=>{if(C.m){const ie=qi();u(ie,k,C),ti(ie)}};se.then(H,H)}return C}catch(se){return delete C.v,C.e=se,++C.n,C}finally{I=!1}},i=w=>Pa(r(void 0,w,t(w))),s=(w,k,C)=>{var E,O;const I=new Map;for(const M of((E=C.m)==null?void 0:E.t)||[])I.set(M,t(M,C));for(const M of C.p)I.set(M,t(M,C));return(O=aS(w,k))==null||O.forEach(M=>{I.set(M,t(M,C))}),I},o=(w,k,C)=>{const E=[],O=new Set,I=(ee,F)=>{if(!O.has(ee)){O.add(ee);for(const[se,H]of s(w,ee,F))ee!==se&&I(se,H);E.push([ee,F,F.n])}};I(k,C);const M=new Set([k]),Y=ee=>O.has(ee);for(let ee=E.length-1;ee>=0;--ee){const[F,se,H]=E[ee];let ie=!1;for(const xe of se.d.keys())if(xe!==F&&M.has(xe)){ie=!0;break}ie&&(r(w,F,se,Y),u(w,F,se),H!==se.n&&(ml(w,F,se),M.add(F))),O.delete(F)}},a=(w,k,C,...E)=>{const O=Y=>Pa(r(w,Y,t(Y,C))),I=(Y,...ee)=>{const F=t(Y,C);let se;if(hp(k,Y)){if(!hl(Y))throw new Error("atom not writable");const H="v"in F,ie=F.v,xe=ee[0];n(Y,F,xe),u(w,Y,F),(!H||!Object.is(ie,F.v))&&(ml(w,Y,F),o(w,Y,F))}else se=a(w,Y,F,...ee);return ti(w),se};return k.write(O,I,...E)},c=(w,...k)=>{const C=qi(),E=a(C,w,t(w),...k);return ti(C),E},u=(w,k,C)=>{if(C.m&&!$d(C.v)){for(const E of C.d.keys())C.m.d.has(E)||(d(w,E,t(E,C)).t.add(k),C.m.d.add(E));for(const E of C.m.d||[])if(!C.d.has(E)){C.m.d.delete(E);const O=h(w,E,t(E,C));O==null||O.t.delete(k)}}},d=(w,k,C)=>{if(!C.m){r(w,k,C);for(const E of C.d.keys())d(w,E,t(E,C)).t.add(k);if(C.m={l:new Set,d:new Set(C.d.keys()),t:new Set},(Dn?"production":void 0)!=="production"&&e.add(k),pl(k)&&k.onMount){const E=C.m,{onMount:O}=k;gp(w,()=>{const I=O((...M)=>a(w,k,C,...M));I&&(E.u=I)})}}return C.m},h=(w,k,C)=>{if(C.m&&!C.m.l.size&&!Array.from(C.m.t).some(E=>{var O;return(O=t(E,C).m)==null?void 0:O.d.has(k)})){const E=C.m.u;E&&gp(w,E),delete C.m,(Dn?"production":void 0)!=="production"&&e.delete(k);for(const O of C.d.keys()){const I=h(w,O,t(O,C));I==null||I.t.delete(k)}return}return C.m},v={get:i,set:c,sub:(w,k)=>{const C=qi(),E=t(w),O=d(C,w,E);ti(C);const I=O.l;return I.add(k),()=>{I.delete(k);const M=qi();h(M,w,E),ti(M)}},unstable_derive:w=>Oy(...w(t))};return(Dn?"production":void 0)!=="production"&&Object.assign(v,{dev4_get_internal_weak_map:()=>({get:k=>{const C=t(k);if(C.n!==0)return C}}),dev4_get_mounted_atoms:()=>e,dev4_restore_atoms:k=>{const C=qi();for(const[E,O]of k)if(hl(E)){const I=t(E),M="v"in I,Y=I.v;n(E,I,O),u(C,E,I),(!M||!Object.is(Y,I.v))&&(ml(C,E,I),o(C,E,I))}ti(C)}}),v},uS=()=>{const t=new WeakMap;return Oy(n=>{let r=t.get(n);return r||(r={d:new Map,p:new Set,n:0},t.set(n,r)),r})};let zs;const cS=()=>(zs||(zs=uS(),(Dn?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=zs),globalThis.__JOTAI_DEFAULT_STORE__!==zs&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),zs),Iy={},lS=st.createContext(void 0),Ry=t=>st.useContext(lS)||cS(),Py=t=>typeof(t==null?void 0:t.then)=="function",dS=t=>{t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e})},fS=st.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(dS(t),t)}),gl=new WeakMap,hS=t=>{let e=gl.get(t);return e||(e=new Promise((n,r)=>{let i=t;const s=c=>u=>{i===c&&n(u)},o=c=>u=>{i===c&&r(u)},a=c=>{"onCancel"in c&&typeof c.onCancel=="function"&&c.onCancel(u=>{if((Iy?"production":void 0)!=="production"&&u===c)throw new Error("[Bug] p is not updated even after cancelation");Py(u)?(gl.set(u,e),i=u,u.then(s(u),o(u)),a(u)):n(u)})};t.then(s(t),o(t)),a(t)}),gl.set(t,e)),e};function Vd(t,e){const n=Ry(),[[r,i,s],o]=st.useReducer(u=>{const d=n.get(t);return Object.is(u[0],d)&&u[1]===n&&u[2]===t?u:[d,n,t]},void 0,()=>[n.get(t),n,t]);let a=r;if((i!==n||s!==t)&&(o(),a=n.get(t)),st.useEffect(()=>{const u=n.sub(t,()=>{o()});return o(),u},[n,t,void 0]),st.useDebugValue(a),Py(a)){const u=hS(a);return fS(u)}return a}function zf(t,e){const n=Ry();return st.useCallback((...i)=>{if((Iy?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...i)},[n,t])}function vl(t,e){return[Vd(t),zf(t)]}const Dy=Ju(null);Dy.debugLabel="accountAtom";const pS={},{NZ_CORE_SERVICES_GRAPHQL_URL:mS,NZ_CORE_SERVICES_REST_URL:gS}=pS,bs={apiUrls:{restV2:gS||"https://core-services-prod.nizza.com/api",graphql:mS||"https://core-services-prod.nizza.com/graphql"},publicUrls:{wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};var vS="Logging",yS=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bS=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},Hi=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(bS(arguments[e]));return t},vp={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},Rn;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE"})(Rn||(Rn={}));var $n=function(){function t(e,n){n===void 0&&(n=Rn.WARN),this.name=e,this.level=n,this._pluggables=[]}return t.prototype._padding=function(e){return e<10?"0"+e:""+e},t.prototype._ts=function(){var e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()},t.prototype.configure=function(e){return e?(this._config=e,this._config):this._config},t.prototype._log=function(e){for(var n,r,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var o=this.level;t.LOG_LEVEL&&(o=t.LOG_LEVEL),typeof window!="undefined"&&window.LOG_LEVEL&&(o=window.LOG_LEVEL);var a=vp[o],c=vp[e];if(c>=a){var u=console.log.bind(console);e===Rn.ERROR&&console.error&&(u=console.error.bind(console)),e===Rn.WARN&&console.warn&&(u=console.warn.bind(console));var d="["+e+"] "+this._ts()+" "+this.name,h="";if(i.length===1&&typeof i[0]=="string")h=d+" - "+i[0],u(h);else if(i.length===1)h=d+" "+i[0],u(d,i[0]);else if(typeof i[0]=="string"){var p=i.slice(1);p.length===1&&(p=p[0]),h=d+" - "+i[0]+" "+p,u(d+" - "+i[0],p)}else h=d+" "+i,u(d,i);try{for(var y=yS(this._pluggables),v=y.next();!v.done;v=y.next()){var w=v.value,k={message:h,timestamp:Date.now()};w.pushLogs([k])}}catch(C){n={error:C}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}}},t.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.INFO],e))},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.INFO],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.WARN],e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.ERROR],e))},t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.DEBUG],e))},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._log.apply(this,Hi([Rn.VERBOSE],e))},t.prototype.addPluggable=function(e){e&&e.getCategoryName()===vS&&(this._pluggables.push(e),e.configure(this._config))},t.prototype.listPluggables=function(){return this._pluggables},t.LOG_LEVEL=null,t}(),wS=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},yl=new $n("Amplify"),_S=function(){function t(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=$n,this.ServiceWorker=null}return t.prototype.register=function(e){yl.debug("component registered in amplify",e),this._components.push(e),typeof e.getModuleName=="function"?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):yl.debug("no getModuleName method for component",e),e.configure(this._config)},t.prototype.configure=function(e){var n=this;return e?(this._config=Object.assign(this._config,e),yl.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(r){var i=wS(r,2);i[0];var s=i[1];Object.keys(s).forEach(function(o){n._modules[o]&&(s[o]=n._modules[o])})}),this._components.map(function(r){r.configure(n._config)}),this._config):this._config},t.prototype.addPluggable=function(e){e&&e.getCategory&&typeof e.getCategory=="function"&&this._components.map(function(n){n.addPluggable&&typeof n.addPluggable=="function"&&n.addPluggable(e)})},t}(),Gf=new _S,SS="4.7.14",qd="aws-amplify/"+SS,ui={userAgent:qd+" js",product:"",navigator:null,isReactNative:!1};if(typeof navigator!="undefined"&&navigator.product)switch(ui.product=navigator.product||"",ui.navigator=navigator||null,navigator.product){case"ReactNative":ui.userAgent=qd+" react-native",ui.isReactNative=!0;break;default:ui.userAgent=qd+" js",ui.isReactNative=!1;break}var kS=function(t){return""+ui.userAgent},xo=function(){return xo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xo.apply(this,arguments)},Fy=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},yp=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Fy(arguments[e]));return t},tr=new $n("Hub"),ES=typeof Symbol!="undefined"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default";function AS(t){return t.onHubCapsule!==void 0}var CS=function(){function t(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return t.prototype.remove=function(e,n){if(e instanceof RegExp){var r=this.patterns.find(function(s){var o=s.pattern;return o.source===e.source});if(!r){tr.warn("No listeners for "+e);return}this.patterns=yp(this.patterns.filter(function(s){return s!==r}))}else{var i=this.listeners[e];if(!i){tr.warn("No listeners for "+e);return}this.listeners[e]=yp(i.filter(function(s){var o=s.callback;return o!==n}))}},t.prototype.dispatch=function(e,n,r,i){if(r===void 0&&(r=""),this.protectedChannels.indexOf(e)>-1){var s=i===ES;s||tr.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences")}var o={channel:e,payload:xo({},n),source:r,patternInfo:[]};try{this._toListeners(o)}catch(a){tr.error(a)}},t.prototype.listen=function(e,n,r){var i=this;r===void 0&&(r="noname");var s;if(AS(n))tr.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),s=n.onHubCapsule.bind(n);else{if(typeof n!="function")throw new Error("No callback supplied to Hub");s=n}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:s});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:r,callback:s})}return function(){i.remove(e,s)}},t.prototype._toListeners=function(e){var n=e.channel,r=e.payload,i=this.listeners[n];if(i&&i.forEach(function(o){tr.debug("Dispatching to "+n+" with ",r);try{o.callback(e)}catch(a){tr.error(a)}}),this.patterns.length>0){if(!r.message){tr.warn("Cannot perform pattern matching without a message key");return}var s=r.message;this.patterns.forEach(function(o){var a=s.match(o.pattern);if(a){var c=Fy(a),u=c.slice(1),d=xo(xo({},e),{patternInfo:u});try{o.callback(d)}catch(h){tr.error(h)}}})}},t}(),Nr=new CS("__default__"),xS=function(t){if(t.isResolved)return t;var e=!0,n=!1,r=!1,i=t.then(function(s){return r=!0,e=!1,s},function(s){throw n=!0,e=!1,s});return i.isFullfilled=function(){return r},i.isPending=function(){return e},i.isRejected=function(){return n},i},ur=function(){var t=typeof window!="undefined"&&typeof window.document!="undefined",e=typeof process!="undefined"&&process.versions!=null&&process.versions.node!=null;return{isBrowser:t,isNode:e}},Mr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ws(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -125,8 +125,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
125
125
|
`)}function X(l,f,m,b){this.failures=f,this.failedKeys=b,this.successCount=m,this.message=L(l,f)}function He(l,f){this.name="BulkError",this.failures=Object.keys(f).map(function(m){return f[m]}),this.failuresByPos=f,this.message=L(l,this.failures)}w(Fe).from(Error).extend({toString:function(){return this.name+": "+this.message}}),w(X).from(Fe),w(He).from(Fe);var Ne=Sn.reduce(function(l,f){return l[f]=f+"Error",l},{}),Ve=Fe,Ae=Sn.reduce(function(l,f){var m=f+"Error";function b(S,A){this.name=m,S?typeof S=="string"?(this.message="".concat(S).concat(A?`
|
|
126
126
|
`+A:""),this.inner=A||null):typeof S=="object"&&(this.message="".concat(S.name," ").concat(S.message),this.inner=S):(this.message=Se[f]||m,this.inner=null)}return w(b).from(Ve),l[f]=b,l},{});Ae.Syntax=SyntaxError,Ae.Type=TypeError,Ae.Range=RangeError;var Ze=We.reduce(function(l,f){return l[f+"Error"]=Ae[f],l},{}),Ke=Sn.reduce(function(l,f){return["Syntax","Type","Range"].indexOf(f)===-1&&(l[f+"Error"]=Ae[f]),l},{});function Ie(){}function at(l){return l}function ct(l,f){return l==null||l===at?f:function(m){return f(l(m))}}function Ue(l,f){return function(){l.apply(this,arguments),f.apply(this,arguments)}}function lt(l,f){return l===Ie?f:function(){var m=l.apply(this,arguments);m!==void 0&&(arguments[0]=m);var b=this.onsuccess,S=this.onerror;this.onsuccess=null,this.onerror=null;var A=f.apply(this,arguments);return b&&(this.onsuccess=this.onsuccess?Ue(b,this.onsuccess):b),S&&(this.onerror=this.onerror?Ue(S,this.onerror):S),A!==void 0?A:m}}function vt(l,f){return l===Ie?f:function(){l.apply(this,arguments);var m=this.onsuccess,b=this.onerror;this.onsuccess=this.onerror=null,f.apply(this,arguments),m&&(this.onsuccess=this.onsuccess?Ue(m,this.onsuccess):m),b&&(this.onerror=this.onerror?Ue(b,this.onerror):b)}}function x(l,f){return l===Ie?f:function(m){var b=l.apply(this,arguments);c(m,b);var S=this.onsuccess,A=this.onerror;return this.onsuccess=null,this.onerror=null,m=f.apply(this,arguments),S&&(this.onsuccess=this.onsuccess?Ue(S,this.onsuccess):S),A&&(this.onerror=this.onerror?Ue(A,this.onerror):A),b===void 0?m===void 0?void 0:m:c(b,m)}}function _(l,f){return l===Ie?f:function(){return f.apply(this,arguments)!==!1&&l.apply(this,arguments)}}function g(l,f){return l===Ie?f:function(){var m=l.apply(this,arguments);if(m&&typeof m.then=="function"){for(var b=this,S=arguments.length,A=new Array(S);S--;)A[S]=arguments[S];return m.then(function(){return f.apply(b,A)})}return f.apply(this,arguments)}}Ke.ModifyError=X,Ke.DexieError=Fe,Ke.BulkError=He;var N=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function V(l){N=l}var ae={},ue=100,tt=typeof Promise=="undefined"?[]:function(){var l=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[l,u(l),l];var f=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[f,u(f),l]}(),We=tt[0],Sn=tt[1],tt=tt[2],Sn=Sn&&Sn.then,dt=We&&We.constructor,Ut=!!tt,bt=function(l,f){Us.push([l,f]),Gr&&(queueMicrotask(C0),Gr=!1)},gr=!0,Gr=!0,qn=[],ua=[],Dc=at,vr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ie,pgp:!1,env:{},finalize:Ie},je=vr,Us=[],Wr=0,ca=[];function De(l){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var f=this._PSD=je;if(typeof l!="function"){if(l!==ae)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Uc(this,this._value))}this._state=null,this._value=null,++f.ref,function m(b,S){try{S(function(A){if(b._state===null){if(A===b)throw new TypeError("A promise cannot be resolved with itself.");var T=b._lib&&Ui();A&&typeof A.then=="function"?m(b,function(P,B){A instanceof De?A._then(P,B):A.then(P,B)}):(b._state=!0,b._value=A,Lh(b)),T&&Li()}},Uc.bind(null,b))}catch(A){Uc(b,A)}}(this,l)}var Fc={get:function(){var l=je,f=ha;function m(b,S){var A=this,T=!l.global&&(l!==je||f!==ha),P=T&&!br(),B=new De(function(j,z){Lc(A,new Uh(Bh(b,l,T,P),Bh(S,l,T,P),j,z,l))});return this._consoleTask&&(B._consoleTask=this._consoleTask),B}return m.prototype=ae,m},set:function(l){v(this,"then",l&&l.prototype===ae?Fc:{get:function(){return l},set:Fc.set})}};function Uh(l,f,m,b,S){this.onFulfilled=typeof l=="function"?l:null,this.onRejected=typeof f=="function"?f:null,this.resolve=m,this.reject=b,this.psd=S}function Uc(l,f){var m,b;ua.push(f),l._state===null&&(m=l._lib&&Ui(),f=Dc(f),l._state=!1,l._value=f,b=l,qn.some(function(S){return S._value===b._value})||qn.push(b),Lh(l),m&&Li())}function Lh(l){var f=l._listeners;l._listeners=[];for(var m=0,b=f.length;m<b;++m)Lc(l,f[m]);var S=l._PSD;--S.ref||S.finalize(),Wr===0&&(++Wr,bt(function(){--Wr==0&&Mc()},[]))}function Lc(l,f){if(l._state!==null){var m=l._state?f.onFulfilled:f.onRejected;if(m===null)return(l._state?f.resolve:f.reject)(l._value);++f.psd.ref,++Wr,bt(A0,[m,l,f])}else l._listeners.push(f)}function A0(l,f,m){try{var b,S=f._value;!f._state&&ua.length&&(ua=[]),b=N&&f._consoleTask?f._consoleTask.run(function(){return l(S)}):l(S),f._state||ua.indexOf(S)!==-1||function(A){for(var T=qn.length;T;)if(qn[--T]._value===A._value)return qn.splice(T,1)}(f),m.resolve(b)}catch(A){m.reject(A)}finally{--Wr==0&&Mc(),--m.psd.ref||m.psd.finalize()}}function C0(){Yr(vr,function(){Ui()&&Li()})}function Ui(){var l=gr;return Gr=gr=!1,l}function Li(){var l,f,m;do for(;0<Us.length;)for(l=Us,Us=[],m=l.length,f=0;f<m;++f){var b=l[f];b[0].apply(null,b[1])}while(0<Us.length);Gr=gr=!0}function Mc(){var l=qn;qn=[],l.forEach(function(b){b._PSD.onunhandled.call(null,b._value,b)});for(var f=ca.slice(0),m=f.length;m;)f[--m]()}function la(l){return new De(ae,!1,l)}function Ot(l,f){var m=je;return function(){var b=Ui(),S=je;try{return wr(m,!0),l.apply(this,arguments)}catch(A){f&&f(A)}finally{wr(S,!1),b&&Li()}}}p(De.prototype,{then:Fc,_then:function(l,f){Lc(this,new Uh(null,null,l,f,je))},catch:function(l){if(arguments.length===1)return this.then(null,l);var f=l,m=arguments[1];return typeof f=="function"?this.then(null,function(b){return(b instanceof f?m:la)(b)}):this.then(null,function(b){return(b&&b.name===f?m:la)(b)})},finally:function(l){return this.then(function(f){return De.resolve(l()).then(function(){return f})},function(f){return De.resolve(l()).then(function(){return la(f)})})},timeout:function(l,f){var m=this;return l<1/0?new De(function(b,S){var A=setTimeout(function(){return S(new Ae.Timeout(f))},l);m.then(b,S).finally(clearTimeout.bind(null,A))}):this}}),typeof Symbol!="undefined"&&Symbol.toStringTag&&v(De.prototype,Symbol.toStringTag,"Dexie.Promise"),vr.env=Mh(),p(De,{all:function(){var l=U.apply(null,arguments).map(pa);return new De(function(f,m){l.length===0&&f([]);var b=l.length;l.forEach(function(S,A){return De.resolve(S).then(function(T){l[A]=T,--b||f(l)},m)})})},resolve:function(l){return l instanceof De?l:l&&typeof l.then=="function"?new De(function(f,m){l.then(f,m)}):new De(ae,!0,l)},reject:la,race:function(){var l=U.apply(null,arguments).map(pa);return new De(function(f,m){l.map(function(b){return De.resolve(b).then(f,m)})})},PSD:{get:function(){return je},set:function(l){return je=l}},totalEchoes:{get:function(){return ha}},newPSD:yr,usePSD:Yr,scheduler:{get:function(){return bt},set:function(l){bt=l}},rejectionMapper:{get:function(){return Dc},set:function(l){Dc=l}},follow:function(l,f){return new De(function(m,b){return yr(function(S,A){var T=je;T.unhandleds=[],T.onunhandled=A,T.finalize=Ue(function(){var P,B=this;P=function(){B.unhandleds.length===0?S():A(B.unhandleds[0])},ca.push(function j(){P(),ca.splice(ca.indexOf(j),1)}),++Wr,bt(function(){--Wr==0&&Mc()},[])},T.finalize),l()},f,m,b)})}}),dt&&(dt.allSettled&&v(De,"allSettled",function(){var l=U.apply(null,arguments).map(pa);return new De(function(f){l.length===0&&f([]);var m=l.length,b=new Array(m);l.forEach(function(S,A){return De.resolve(S).then(function(T){return b[A]={status:"fulfilled",value:T}},function(T){return b[A]={status:"rejected",reason:T}}).then(function(){return--m||f(b)})})})}),dt.any&&typeof AggregateError!="undefined"&&v(De,"any",function(){var l=U.apply(null,arguments).map(pa);return new De(function(f,m){l.length===0&&m(new AggregateError([]));var b=l.length,S=new Array(b);l.forEach(function(A,T){return De.resolve(A).then(function(P){return f(P)},function(P){S[T]=P,--b||m(new AggregateError(S))})})})}),dt.withResolvers&&(De.withResolvers=dt.withResolvers));var $t={awaits:0,echoes:0,id:0},x0=0,da=[],fa=0,ha=0,N0=0;function yr(l,f,m,b){var S=je,A=Object.create(S);return A.parent=S,A.ref=0,A.global=!1,A.id=++N0,vr.env,A.env=Ut?{Promise:De,PromiseProp:{value:De,configurable:!0,writable:!0},all:De.all,race:De.race,allSettled:De.allSettled,any:De.any,resolve:De.resolve,reject:De.reject}:{},f&&c(A,f),++S.ref,A.finalize=function(){--this.parent.ref||this.parent.finalize()},b=Yr(A,l,m,b),A.ref===0&&A.finalize(),b}function Mi(){return $t.id||($t.id=++x0),++$t.awaits,$t.echoes+=ue,$t.id}function br(){return!!$t.awaits&&(--$t.awaits==0&&($t.id=0),$t.echoes=$t.awaits*ue,!0)}function pa(l){return $t.echoes&&l&&l.constructor===dt?(Mi(),l.then(function(f){return br(),f},function(f){return br(),Pt(f)})):l}function T0(){var l=da[da.length-1];da.pop(),wr(l,!1)}function wr(l,f){var m,b=je;(f?!$t.echoes||fa++&&l===je:!fa||--fa&&l===je)||queueMicrotask(f?function(S){++ha,$t.echoes&&--$t.echoes!=0||($t.echoes=$t.awaits=$t.id=0),da.push(je),wr(S,!0)}.bind(null,l):T0),l!==je&&(je=l,b===vr&&(vr.env=Mh()),Ut&&(m=vr.env.Promise,f=l.env,(b.global||l.global)&&(Object.defineProperty(s,"Promise",f.PromiseProp),m.all=f.all,m.race=f.race,m.resolve=f.resolve,m.reject=f.reject,f.allSettled&&(m.allSettled=f.allSettled),f.any&&(m.any=f.any))))}function Mh(){var l=s.Promise;return Ut?{Promise:l,PromiseProp:Object.getOwnPropertyDescriptor(s,"Promise"),all:l.all,race:l.race,allSettled:l.allSettled,any:l.any,resolve:l.resolve,reject:l.reject}:{}}function Yr(l,f,m,b,S){var A=je;try{return wr(l,!0),f(m,b,S)}finally{wr(A,!1)}}function Bh(l,f,m,b){return typeof l!="function"?l:function(){var S=je;m&&Mi(),wr(f,!0);try{return l.apply(this,arguments)}finally{wr(S,!1),b&&queueMicrotask(br)}}}function Bc(l){Promise===dt&&$t.echoes===0?fa===0?l():enqueueNativeMicroTask(l):setTimeout(l,0)}(""+Sn).indexOf("[native code]")===-1&&(Mi=br=Ie);var Pt=De.reject,Jr="",Zn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",$h="String expected.",Bi=[],ma="__dbnames",$c="readonly",jc="readwrite";function Xr(l,f){return l?f?function(){return l.apply(this,arguments)&&f.apply(this,arguments)}:l:f}var jh={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ga(l){return typeof l!="string"||/\./.test(l)?function(f){return f}:function(f){return f[l]===void 0&&l in f&&delete(f=qe(f))[l],f}}function Vh(){throw Ae.Type()}function ut(l,f){try{var m=qh(l),b=qh(f);if(m!==b)return m==="Array"?1:b==="Array"?-1:m==="binary"?1:b==="binary"?-1:m==="string"?1:b==="string"?-1:m==="Date"?1:b!=="Date"?NaN:-1;switch(m){case"number":case"Date":case"string":return f<l?1:l<f?-1:0;case"binary":return function(S,A){for(var T=S.length,P=A.length,B=T<P?T:P,j=0;j<B;++j)if(S[j]!==A[j])return S[j]<A[j]?-1:1;return T===P?0:T<P?-1:1}(Hh(l),Hh(f));case"Array":return function(S,A){for(var T=S.length,P=A.length,B=T<P?T:P,j=0;j<B;++j){var z=ut(S[j],A[j]);if(z!==0)return z}return T===P?0:T<P?-1:1}(l,f)}}catch{}return NaN}function qh(l){var f=typeof l;return f!="object"?f:ArrayBuffer.isView(l)?"binary":(l=R(l),l==="ArrayBuffer"?"binary":l)}function Hh(l){return l instanceof Uint8Array?l:ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength):new Uint8Array(l)}var Kh=(Tt.prototype._trans=function(l,f,m){var b=this._tx||je.trans,S=this.name,A=N&&typeof console!="undefined"&&console.createTask&&console.createTask("Dexie: ".concat(l==="readonly"?"read":"write"," ").concat(this.name));function T(j,z,D){if(!D.schema[S])throw new Ae.NotFound("Table "+S+" not part of transaction");return f(D.idbtrans,D)}var P=Ui();try{var B=b&&b.db._novip===this.db._novip?b===je.trans?b._promise(l,T,m):yr(function(){return b._promise(l,T,m)},{trans:b,transless:je.transless||je}):function j(z,D,J,$){if(z.idbdb&&(z._state.openComplete||je.letThrough||z._vip)){var K=z._createTransaction(D,J,z._dbSchema);try{K.create(),z._state.PR1398_maxLoop=3}catch(W){return W.name===Ne.InvalidState&&z.isOpen()&&0<--z._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),z.close({disableAutoOpen:!1}),z.open().then(function(){return j(z,D,J,$)})):Pt(W)}return K._promise(D,function(W,q){return yr(function(){return je.trans=K,$(W,q,K)})}).then(function(W){if(D==="readwrite")try{K.idbtrans.commit()}catch{}return D==="readonly"?W:K._completion.then(function(){return W})})}if(z._state.openComplete)return Pt(new Ae.DatabaseClosed(z._state.dbOpenError));if(!z._state.isBeingOpened){if(!z._state.autoOpen)return Pt(new Ae.DatabaseClosed);z.open().catch(Ie)}return z._state.dbReadyPromise.then(function(){return j(z,D,J,$)})}(this.db,l,[this.name],T);return A&&(B._consoleTask=A,B=B.catch(function(j){return console.trace(j),Pt(j)})),B}finally{P&&Li()}},Tt.prototype.get=function(l,f){var m=this;return l&&l.constructor===Object?this.where(l).first(f):l==null?Pt(new Ae.Type("Invalid argument to Table.get()")):this._trans("readonly",function(b){return m.core.get({trans:b,key:l}).then(function(S){return m.hook.reading.fire(S)})}).then(f)},Tt.prototype.where=function(l){if(typeof l=="string")return new this.db.WhereClause(this,l);if(a(l))return new this.db.WhereClause(this,"[".concat(l.join("+"),"]"));var f=o(l);if(f.length===1)return this.where(f[0]).equals(l[f[0]]);var m=this.schema.indexes.concat(this.schema.primKey).filter(function(P){if(P.compound&&f.every(function(j){return 0<=P.keyPath.indexOf(j)})){for(var B=0;B<f.length;++B)if(f.indexOf(P.keyPath[B])===-1)return!1;return!0}return!1}).sort(function(P,B){return P.keyPath.length-B.keyPath.length})[0];if(m&&this.db._maxKey!==Jr){var A=m.keyPath.slice(0,f.length);return this.where(A).equals(A.map(function(B){return l[B]}))}!m&&N&&console.warn("The query ".concat(JSON.stringify(l)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(f.join("+"),"]"));var b=this.schema.idxByName;function S(P,B){return ut(P,B)===0}var T=f.reduce(function(D,B){var j=D[0],z=D[1],D=b[B],J=l[B];return[j||D,j||!D?Xr(z,D&&D.multi?function($){return $=Y($,B),a($)&&$.some(function(K){return S(J,K)})}:function($){return S(J,Y($,B))}):z]},[null,null]),A=T[0],T=T[1];return A?this.where(A.name).equals(l[A.keyPath]).filter(T):m?this.filter(T):this.where(f).equals("")},Tt.prototype.filter=function(l){return this.toCollection().and(l)},Tt.prototype.count=function(l){return this.toCollection().count(l)},Tt.prototype.offset=function(l){return this.toCollection().offset(l)},Tt.prototype.limit=function(l){return this.toCollection().limit(l)},Tt.prototype.each=function(l){return this.toCollection().each(l)},Tt.prototype.toArray=function(l){return this.toCollection().toArray(l)},Tt.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Tt.prototype.orderBy=function(l){return new this.db.Collection(new this.db.WhereClause(this,a(l)?"[".concat(l.join("+"),"]"):l))},Tt.prototype.reverse=function(){return this.toCollection().reverse()},Tt.prototype.mapToClass=function(l){var f,m=this.db,b=this.name;function S(){return f!==null&&f.apply(this,arguments)||this}(this.schema.mappedClass=l).prototype instanceof Vh&&(function(B,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function z(){this.constructor=B}n(B,j),B.prototype=j===null?Object.create(j):(z.prototype=j.prototype,new z)}(S,f=l),Object.defineProperty(S.prototype,"db",{get:function(){return m},enumerable:!1,configurable:!0}),S.prototype.table=function(){return b},l=S);for(var A=new Set,T=l.prototype;T;T=u(T))Object.getOwnPropertyNames(T).forEach(function(B){return A.add(B)});function P(B){if(!B)return B;var j,z=Object.create(l.prototype);for(j in B)if(!A.has(j))try{z[j]=B[j]}catch{}return z}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=P,this.hook("reading",P),l},Tt.prototype.defineClass=function(){return this.mapToClass(function(l){c(this,l)})},Tt.prototype.add=function(l,f){var m=this,b=this.schema.primKey,S=b.auto,A=b.keyPath,T=l;return A&&S&&(T=ga(A)(l)),this._trans("readwrite",function(P){return m.core.mutate({trans:P,type:"add",keys:f!=null?[f]:null,values:[T]})}).then(function(P){return P.numFailures?De.reject(P.failures[0]):P.lastResult}).then(function(P){if(A)try{ee(l,A,P)}catch{}return P})},Tt.prototype.update=function(l,f){return typeof l!="object"||a(l)?this.where(":id").equals(l).modify(f):(l=Y(l,this.schema.primKey.keyPath),l===void 0?Pt(new Ae.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(l).modify(f))},Tt.prototype.put=function(l,f){var m=this,b=this.schema.primKey,S=b.auto,A=b.keyPath,T=l;return A&&S&&(T=ga(A)(l)),this._trans("readwrite",function(P){return m.core.mutate({trans:P,type:"put",values:[T],keys:f!=null?[f]:null})}).then(function(P){return P.numFailures?De.reject(P.failures[0]):P.lastResult}).then(function(P){if(A)try{ee(l,A,P)}catch{}return P})},Tt.prototype.delete=function(l){var f=this;return this._trans("readwrite",function(m){return f.core.mutate({trans:m,type:"delete",keys:[l]})}).then(function(m){return m.numFailures?De.reject(m.failures[0]):void 0})},Tt.prototype.clear=function(){var l=this;return this._trans("readwrite",function(f){return l.core.mutate({trans:f,type:"deleteRange",range:jh})}).then(function(f){return f.numFailures?De.reject(f.failures[0]):void 0})},Tt.prototype.bulkGet=function(l){var f=this;return this._trans("readonly",function(m){return f.core.getMany({keys:l,trans:m}).then(function(b){return b.map(function(S){return f.hook.reading.fire(S)})})})},Tt.prototype.bulkAdd=function(l,f,m){var b=this,S=Array.isArray(f)?f:void 0,A=(m=m||(S?void 0:f))?m.allKeys:void 0;return this._trans("readwrite",function(T){var j=b.schema.primKey,P=j.auto,j=j.keyPath;if(j&&S)throw new Ae.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(S&&S.length!==l.length)throw new Ae.InvalidArgument("Arguments objects and keys must have the same length");var B=l.length,j=j&&P?l.map(ga(j)):l;return b.core.mutate({trans:T,type:"add",keys:S,values:j,wantResults:A}).then(function(K){var D=K.numFailures,J=K.results,$=K.lastResult,K=K.failures;if(D===0)return A?J:$;throw new He("".concat(b.name,".bulkAdd(): ").concat(D," of ").concat(B," operations failed"),K)})})},Tt.prototype.bulkPut=function(l,f,m){var b=this,S=Array.isArray(f)?f:void 0,A=(m=m||(S?void 0:f))?m.allKeys:void 0;return this._trans("readwrite",function(T){var j=b.schema.primKey,P=j.auto,j=j.keyPath;if(j&&S)throw new Ae.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(S&&S.length!==l.length)throw new Ae.InvalidArgument("Arguments objects and keys must have the same length");var B=l.length,j=j&&P?l.map(ga(j)):l;return b.core.mutate({trans:T,type:"put",keys:S,values:j,wantResults:A}).then(function(K){var D=K.numFailures,J=K.results,$=K.lastResult,K=K.failures;if(D===0)return A?J:$;throw new He("".concat(b.name,".bulkPut(): ").concat(D," of ").concat(B," operations failed"),K)})})},Tt.prototype.bulkUpdate=function(l){var f=this,m=this.core,b=l.map(function(T){return T.key}),S=l.map(function(T){return T.changes}),A=[];return this._trans("readwrite",function(T){return m.getMany({trans:T,keys:b,cache:"clone"}).then(function(P){var B=[],j=[];l.forEach(function(D,J){var $=D.key,K=D.changes,W=P[J];if(W){for(var q=0,Z=Object.keys(K);q<Z.length;q++){var ne=Z[q],re=K[ne];if(ne===f.schema.primKey.keyPath){if(ut(re,$)!==0)throw new Ae.Constraint("Cannot update primary key in bulkUpdate()")}else ee(W,ne,re)}A.push(J),B.push($),j.push(W)}});var z=B.length;return m.mutate({trans:T,type:"put",keys:B,values:j,updates:{keys:b,changeSpecs:S}}).then(function(D){var J=D.numFailures,$=D.failures;if(J===0)return z;for(var K=0,W=Object.keys($);K<W.length;K++){var q,Z=W[K],ne=A[Number(Z)];ne!=null&&(q=$[Z],delete $[Z],$[ne]=q)}throw new He("".concat(f.name,".bulkUpdate(): ").concat(J," of ").concat(z," operations failed"),$)})})})},Tt.prototype.bulkDelete=function(l){var f=this,m=l.length;return this._trans("readwrite",function(b){return f.core.mutate({trans:b,type:"delete",keys:l})}).then(function(T){var S=T.numFailures,A=T.lastResult,T=T.failures;if(S===0)return A;throw new He("".concat(f.name,".bulkDelete(): ").concat(S," of ").concat(m," operations failed"),T)})},Tt);function Tt(){}function Ls(l){function f(T,P){if(P){for(var B=arguments.length,j=new Array(B-1);--B;)j[B-1]=arguments[B];return m[T].subscribe.apply(null,j),l}if(typeof T=="string")return m[T]}var m={};f.addEventType=A;for(var b=1,S=arguments.length;b<S;++b)A(arguments[b]);return f;function A(T,P,B){if(typeof T!="object"){var j;P=P||_;var z={subscribers:[],fire:B=B||Ie,subscribe:function(D){z.subscribers.indexOf(D)===-1&&(z.subscribers.push(D),z.fire=P(z.fire,D))},unsubscribe:function(D){z.subscribers=z.subscribers.filter(function(J){return J!==D}),z.fire=z.subscribers.reduce(P,B)}};return m[T]=f[T]=z}o(j=T).forEach(function(D){var J=j[D];if(a(J))A(D,j[D][0],j[D][1]);else{if(J!=="asap")throw new Ae.InvalidArgument("Invalid event config");var $=A(D,at,function(){for(var K=arguments.length,W=new Array(K);K--;)W[K]=arguments[K];$.subscribers.forEach(function(q){M(function(){q.apply(null,W)})})})}})}}function Ms(l,f){return w(f).from({prototype:l}),f}function $i(l,f){return!(l.filter||l.algorithm||l.or)&&(f?l.justLimit:!l.replayFilter)}function Vc(l,f){l.filter=Xr(l.filter,f)}function qc(l,f,m){var b=l.replayFilter;l.replayFilter=b?function(){return Xr(b(),f())}:f,l.justLimit=m&&!b}function va(l,f){if(l.isPrimKey)return f.primaryKey;var m=f.getIndexByKeyPath(l.index);if(!m)throw new Ae.Schema("KeyPath "+l.index+" on object store "+f.name+" is not indexed");return m}function zh(l,f,m){var b=va(l,f.schema);return f.openCursor({trans:m,values:!l.keysOnly,reverse:l.dir==="prev",unique:!!l.unique,query:{index:b,range:l.range}})}function ya(l,f,m,b){var S=l.replayFilter?Xr(l.filter,l.replayFilter()):l.filter;if(l.or){var A={},T=function(P,B,j){var z,D;S&&!S(B,j,function(J){return B.stop(J)},function(J){return B.fail(J)})||((D=""+(z=B.primaryKey))=="[object ArrayBuffer]"&&(D=""+new Uint8Array(z)),h(A,D)||(A[D]=!0,f(P,B,j)))};return Promise.all([l.or._iterate(T,m),Gh(zh(l,b,m),l.algorithm,T,!l.keysOnly&&l.valueMapper)])}return Gh(zh(l,b,m),Xr(l.algorithm,S),f,!l.keysOnly&&l.valueMapper)}function Gh(l,f,m,b){var S=Ot(b?function(A,T,P){return m(b(A),T,P)}:m);return l.then(function(A){if(A)return A.start(function(){var T=function(){return A.continue()};f&&!f(A,function(P){return T=P},function(P){A.stop(P),T=Ie},function(P){A.fail(P),T=Ie})||S(A.value,A,function(P){return T=P}),T()})})}var Bs=(Wh.prototype.execute=function(l){var f=this["@@propmod"];if(f.add!==void 0){var m=f.add;if(a(m))return i(i([],a(l)?l:[],!0),m).sort();if(typeof m=="number")return(Number(l)||0)+m;if(typeof m=="bigint")try{return BigInt(l)+m}catch{return BigInt(0)+m}throw new TypeError("Invalid term ".concat(m))}if(f.remove!==void 0){var b=f.remove;if(a(b))return a(l)?l.filter(function(S){return!b.includes(S)}).sort():[];if(typeof b=="number")return Number(l)-b;if(typeof b=="bigint")try{return BigInt(l)-b}catch{return BigInt(0)-b}throw new TypeError("Invalid subtrahend ".concat(b))}return m=(m=f.replacePrefix)===null||m===void 0?void 0:m[0],m&&typeof l=="string"&&l.startsWith(m)?f.replacePrefix[1]+l.substring(m.length):l},Wh);function Wh(l){this["@@propmod"]=l}var O0=(ft.prototype._read=function(l,f){var m=this._ctx;return m.error?m.table._trans(null,Pt.bind(null,m.error)):m.table._trans("readonly",l).then(f)},ft.prototype._write=function(l){var f=this._ctx;return f.error?f.table._trans(null,Pt.bind(null,f.error)):f.table._trans("readwrite",l,"locked")},ft.prototype._addAlgorithm=function(l){var f=this._ctx;f.algorithm=Xr(f.algorithm,l)},ft.prototype._iterate=function(l,f){return ya(this._ctx,l,f,this._ctx.table.core)},ft.prototype.clone=function(l){var f=Object.create(this.constructor.prototype),m=Object.create(this._ctx);return l&&c(m,l),f._ctx=m,f},ft.prototype.raw=function(){return this._ctx.valueMapper=null,this},ft.prototype.each=function(l){var f=this._ctx;return this._read(function(m){return ya(f,l,m,f.table.core)})},ft.prototype.count=function(l){var f=this;return this._read(function(m){var b=f._ctx,S=b.table.core;if($i(b,!0))return S.count({trans:m,query:{index:va(b,S.schema),range:b.range}}).then(function(T){return Math.min(T,b.limit)});var A=0;return ya(b,function(){return++A,!1},m,S).then(function(){return A})}).then(l)},ft.prototype.sortBy=function(l,f){var m=l.split(".").reverse(),b=m[0],S=m.length-1;function A(B,j){return j?A(B[m[j]],j-1):B[b]}var T=this._ctx.dir==="next"?1:-1;function P(B,j){return ut(A(B,S),A(j,S))*T}return this.toArray(function(B){return B.sort(P)}).then(f)},ft.prototype.toArray=function(l){var f=this;return this._read(function(m){var b=f._ctx;if(b.dir==="next"&&$i(b,!0)&&0<b.limit){var S=b.valueMapper,A=va(b,b.table.core.schema);return b.table.core.query({trans:m,limit:b.limit,values:!0,query:{index:A,range:b.range}}).then(function(P){return P=P.result,S?P.map(S):P})}var T=[];return ya(b,function(P){return T.push(P)},m,b.table.core).then(function(){return T})},l)},ft.prototype.offset=function(l){var f=this._ctx;return l<=0||(f.offset+=l,$i(f)?qc(f,function(){var m=l;return function(b,S){return m===0||(m===1?--m:S(function(){b.advance(m),m=0}),!1)}}):qc(f,function(){var m=l;return function(){return--m<0}})),this},ft.prototype.limit=function(l){return this._ctx.limit=Math.min(this._ctx.limit,l),qc(this._ctx,function(){var f=l;return function(m,b,S){return--f<=0&&b(S),0<=f}},!0),this},ft.prototype.until=function(l,f){return Vc(this._ctx,function(m,b,S){return!l(m.value)||(b(S),f)}),this},ft.prototype.first=function(l){return this.limit(1).toArray(function(f){return f[0]}).then(l)},ft.prototype.last=function(l){return this.reverse().first(l)},ft.prototype.filter=function(l){var f;return Vc(this._ctx,function(m){return l(m.value)}),(f=this._ctx).isMatch=Xr(f.isMatch,l),this},ft.prototype.and=function(l){return this.filter(l)},ft.prototype.or=function(l){return new this.db.WhereClause(this._ctx.table,l,this)},ft.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},ft.prototype.desc=function(){return this.reverse()},ft.prototype.eachKey=function(l){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(m,b){l(b.key,b)})},ft.prototype.eachUniqueKey=function(l){return this._ctx.unique="unique",this.eachKey(l)},ft.prototype.eachPrimaryKey=function(l){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(m,b){l(b.primaryKey,b)})},ft.prototype.keys=function(l){var f=this._ctx;f.keysOnly=!f.isMatch;var m=[];return this.each(function(b,S){m.push(S.key)}).then(function(){return m}).then(l)},ft.prototype.primaryKeys=function(l){var f=this._ctx;if(f.dir==="next"&&$i(f,!0)&&0<f.limit)return this._read(function(b){var S=va(f,f.table.core.schema);return f.table.core.query({trans:b,values:!1,limit:f.limit,query:{index:S,range:f.range}})}).then(function(b){return b.result}).then(l);f.keysOnly=!f.isMatch;var m=[];return this.each(function(b,S){m.push(S.primaryKey)}).then(function(){return m}).then(l)},ft.prototype.uniqueKeys=function(l){return this._ctx.unique="unique",this.keys(l)},ft.prototype.firstKey=function(l){return this.limit(1).keys(function(f){return f[0]}).then(l)},ft.prototype.lastKey=function(l){return this.reverse().firstKey(l)},ft.prototype.distinct=function(){var l=this._ctx,l=l.index&&l.table.schema.idxByName[l.index];if(!l||!l.multi)return this;var f={};return Vc(this._ctx,function(S){var b=S.primaryKey.toString(),S=h(f,b);return f[b]=!0,!S}),this},ft.prototype.modify=function(l){var f=this,m=this._ctx;return this._write(function(b){var S,A,T;T=typeof l=="function"?l:(S=o(l),A=S.length,function(q){for(var Z=!1,ne=0;ne<A;++ne){var re=S[ne],ce=l[re],ke=Y(q,re);ce instanceof Bs?(ee(q,re,ce.execute(ke)),Z=!0):ke!==ce&&(ee(q,re,ce),Z=!0)}return Z});var P=m.table.core,D=P.schema.primaryKey,B=D.outbound,j=D.extractKey,z=200,D=f.db._options.modifyChunkSize;D&&(z=typeof D=="object"?D[P.name]||D["*"]||200:D);function J(q,re){var ne=re.failures,re=re.numFailures;K+=q-re;for(var ce=0,ke=o(ne);ce<ke.length;ce++){var Oe=ke[ce];$.push(ne[Oe])}}var $=[],K=0,W=[];return f.clone().primaryKeys().then(function(q){function Z(re){var ce=Math.min(z,q.length-re);return P.getMany({trans:b,keys:q.slice(re,re+ce),cache:"immutable"}).then(function(ke){for(var Oe=[],Ee=[],Ce=B?[]:null,Re=[],Te=0;Te<ce;++Te){var Le=ke[Te],Je={value:qe(Le),primKey:q[re+Te]};T.call(Je,Je.value,Je)!==!1&&(Je.value==null?Re.push(q[re+Te]):B||ut(j(Le),j(Je.value))===0?(Ee.push(Je.value),B&&Ce.push(q[re+Te])):(Re.push(q[re+Te]),Oe.push(Je.value)))}return Promise.resolve(0<Oe.length&&P.mutate({trans:b,type:"add",values:Oe}).then(function(nt){for(var rt in nt.failures)Re.splice(parseInt(rt),1);J(Oe.length,nt)})).then(function(){return(0<Ee.length||ne&&typeof l=="object")&&P.mutate({trans:b,type:"put",keys:Ce,values:Ee,criteria:ne,changeSpec:typeof l!="function"&&l,isAdditionalChunk:0<re}).then(function(nt){return J(Ee.length,nt)})}).then(function(){return(0<Re.length||ne&&l===Hc)&&P.mutate({trans:b,type:"delete",keys:Re,criteria:ne,isAdditionalChunk:0<re}).then(function(nt){return J(Re.length,nt)})}).then(function(){return q.length>re+ce&&Z(re+z)})})}var ne=$i(m)&&m.limit===1/0&&(typeof l!="function"||l===Hc)&&{index:m.index,range:m.range};return Z(0).then(function(){if(0<$.length)throw new X("Error modifying one or more objects",$,K,W);return q.length})})})},ft.prototype.delete=function(){var l=this._ctx,f=l.range;return $i(l)&&(l.isPrimKey||f.type===3)?this._write(function(m){var b=l.table.core.schema.primaryKey,S=f;return l.table.core.count({trans:m,query:{index:b,range:S}}).then(function(A){return l.table.core.mutate({trans:m,type:"deleteRange",range:S}).then(function(T){var P=T.failures;if(T.lastResult,T.results,T=T.numFailures,T)throw new X("Could not delete some values",Object.keys(P).map(function(B){return P[B]}),A-T);return A-T})})}):this.modify(Hc)},ft);function ft(){}var Hc=function(l,f){return f.value=null};function I0(l,f){return l<f?-1:l===f?0:1}function R0(l,f){return f<l?-1:l===f?0:1}function mn(l,f,m){return l=l instanceof Jh?new l.Collection(l):l,l._ctx.error=new(m||TypeError)(f),l}function ji(l){return new l.Collection(l,function(){return Yh("")}).limit(0)}function ba(l,f,m,b){var S,A,T,P,B,j,z,D=m.length;if(!m.every(function(K){return typeof K=="string"}))return mn(l,$h);function J(K){S=K==="next"?function(q){return q.toUpperCase()}:function(q){return q.toLowerCase()},A=K==="next"?function(q){return q.toLowerCase()}:function(q){return q.toUpperCase()},T=K==="next"?I0:R0;var W=m.map(function(q){return{lower:A(q),upper:S(q)}}).sort(function(q,Z){return T(q.lower,Z.lower)});P=W.map(function(q){return q.upper}),B=W.map(function(q){return q.lower}),z=(j=K)==="next"?"":b}J("next"),l=new l.Collection(l,function(){return _r(P[0],B[D-1]+b)}),l._ondirectionchange=function(K){J(K)};var $=0;return l._addAlgorithm(function(K,W,q){var Z=K.key;if(typeof Z!="string")return!1;var ne=A(Z);if(f(ne,B,$))return!0;for(var re=null,ce=$;ce<D;++ce){var ke=function(Oe,Ee,Ce,Re,Te,Le){for(var Je=Math.min(Oe.length,Re.length),nt=-1,rt=0;rt<Je;++rt){var gn=Ee[rt];if(gn!==Re[rt])return Te(Oe[rt],Ce[rt])<0?Oe.substr(0,rt)+Ce[rt]+Ce.substr(rt+1):Te(Oe[rt],Re[rt])<0?Oe.substr(0,rt)+Re[rt]+Ce.substr(rt+1):0<=nt?Oe.substr(0,nt)+Ee[nt]+Ce.substr(nt+1):null;Te(Oe[rt],gn)<0&&(nt=rt)}return Je<Re.length&&Le==="next"?Oe+Ce.substr(Oe.length):Je<Oe.length&&Le==="prev"?Oe.substr(0,Ce.length):nt<0?null:Oe.substr(0,nt)+Re[nt]+Ce.substr(nt+1)}(Z,ne,P[ce],B[ce],T,j);ke===null&&re===null?$=ce+1:(re===null||0<T(re,ke))&&(re=ke)}return W(re!==null?function(){K.continue(re+z)}:q),!1}),l}function _r(l,f,m,b){return{type:2,lower:l,upper:f,lowerOpen:m,upperOpen:b}}function Yh(l){return{type:1,lower:l,upper:l}}var Jh=(Object.defineProperty(jt.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),jt.prototype.between=function(l,f,m,b){m=m!==!1,b=b===!0;try{return 0<this._cmp(l,f)||this._cmp(l,f)===0&&(m||b)&&(!m||!b)?ji(this):new this.Collection(this,function(){return _r(l,f,!m,!b)})}catch{return mn(this,Zn)}},jt.prototype.equals=function(l){return l==null?mn(this,Zn):new this.Collection(this,function(){return Yh(l)})},jt.prototype.above=function(l){return l==null?mn(this,Zn):new this.Collection(this,function(){return _r(l,void 0,!0)})},jt.prototype.aboveOrEqual=function(l){return l==null?mn(this,Zn):new this.Collection(this,function(){return _r(l,void 0,!1)})},jt.prototype.below=function(l){return l==null?mn(this,Zn):new this.Collection(this,function(){return _r(void 0,l,!1,!0)})},jt.prototype.belowOrEqual=function(l){return l==null?mn(this,Zn):new this.Collection(this,function(){return _r(void 0,l)})},jt.prototype.startsWith=function(l){return typeof l!="string"?mn(this,$h):this.between(l,l+Jr,!0,!0)},jt.prototype.startsWithIgnoreCase=function(l){return l===""?this.startsWith(l):ba(this,function(f,m){return f.indexOf(m[0])===0},[l],Jr)},jt.prototype.equalsIgnoreCase=function(l){return ba(this,function(f,m){return f===m[0]},[l],"")},jt.prototype.anyOfIgnoreCase=function(){var l=U.apply(ve,arguments);return l.length===0?ji(this):ba(this,function(f,m){return m.indexOf(f)!==-1},l,"")},jt.prototype.startsWithAnyOfIgnoreCase=function(){var l=U.apply(ve,arguments);return l.length===0?ji(this):ba(this,function(f,m){return m.some(function(b){return f.indexOf(b)===0})},l,Jr)},jt.prototype.anyOf=function(){var l=this,f=U.apply(ve,arguments),m=this._cmp;try{f.sort(m)}catch{return mn(this,Zn)}if(f.length===0)return ji(this);var b=new this.Collection(this,function(){return _r(f[0],f[f.length-1])});b._ondirectionchange=function(A){m=A==="next"?l._ascending:l._descending,f.sort(m)};var S=0;return b._addAlgorithm(function(A,T,P){for(var B=A.key;0<m(B,f[S]);)if(++S===f.length)return T(P),!1;return m(B,f[S])===0||(T(function(){A.continue(f[S])}),!1)}),b},jt.prototype.notEqual=function(l){return this.inAnyRange([[-1/0,l],[l,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},jt.prototype.noneOf=function(){var l=U.apply(ve,arguments);if(l.length===0)return new this.Collection(this);try{l.sort(this._ascending)}catch{return mn(this,Zn)}var f=l.reduce(function(m,b){return m?m.concat([[m[m.length-1][1],b]]):[[-1/0,b]]},null);return f.push([l[l.length-1],this.db._maxKey]),this.inAnyRange(f,{includeLowers:!1,includeUppers:!1})},jt.prototype.inAnyRange=function(Z,f){var m=this,b=this._cmp,S=this._ascending,A=this._descending,T=this._min,P=this._max;if(Z.length===0)return ji(this);if(!Z.every(function(ne){return ne[0]!==void 0&&ne[1]!==void 0&&S(ne[0],ne[1])<=0}))return mn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ae.InvalidArgument);var B=!f||f.includeLowers!==!1,j=f&&f.includeUppers===!0,z,D=S;function J(ne,re){return D(ne[0],re[0])}try{(z=Z.reduce(function(ne,re){for(var ce=0,ke=ne.length;ce<ke;++ce){var Oe=ne[ce];if(b(re[0],Oe[1])<0&&0<b(re[1],Oe[0])){Oe[0]=T(Oe[0],re[0]),Oe[1]=P(Oe[1],re[1]);break}}return ce===ke&&ne.push(re),ne},[])).sort(J)}catch{return mn(this,Zn)}var $=0,K=j?function(ne){return 0<S(ne,z[$][1])}:function(ne){return 0<=S(ne,z[$][1])},W=B?function(ne){return 0<A(ne,z[$][0])}:function(ne){return 0<=A(ne,z[$][0])},q=K,Z=new this.Collection(this,function(){return _r(z[0][0],z[z.length-1][1],!B,!j)});return Z._ondirectionchange=function(ne){D=ne==="next"?(q=K,S):(q=W,A),z.sort(J)},Z._addAlgorithm(function(ne,re,ce){for(var ke,Oe=ne.key;q(Oe);)if(++$===z.length)return re(ce),!1;return!K(ke=Oe)&&!W(ke)||(m._cmp(Oe,z[$][1])===0||m._cmp(Oe,z[$][0])===0||re(function(){D===S?ne.continue(z[$][0]):ne.continue(z[$][1])}),!1)}),Z},jt.prototype.startsWithAnyOf=function(){var l=U.apply(ve,arguments);return l.every(function(f){return typeof f=="string"})?l.length===0?ji(this):this.inAnyRange(l.map(function(f){return[f,f+Jr]})):mn(this,"startsWithAnyOf() only works with strings")},jt);function jt(){}function Hn(l){return Ot(function(f){return $s(f),l(f.target.error),!1})}function $s(l){l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault()}var js="storagemutated",Kc="x-storagemutated-1",Sr=Ls(null,js),P0=(Kn.prototype._lock=function(){return I(!je.global),++this._reculock,this._reculock!==1||je.global||(je.lockOwnerFor=this),this},Kn.prototype._unlock=function(){if(I(!je.global),--this._reculock==0)for(je.global||(je.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var l=this._blockedFuncs.shift();try{Yr(l[1],l[0])}catch{}}return this},Kn.prototype._locked=function(){return this._reculock&&je.lockOwnerFor!==this},Kn.prototype.create=function(l){var f=this;if(!this.mode)return this;var m=this.db.idbdb,b=this.db._state.dbOpenError;if(I(!this.idbtrans),!l&&!m)switch(b&&b.name){case"DatabaseClosedError":throw new Ae.DatabaseClosed(b);case"MissingAPIError":throw new Ae.MissingAPI(b.message,b);default:throw new Ae.OpenFailed(b)}if(!this.active)throw new Ae.TransactionInactive;return I(this._completion._state===null),(l=this.idbtrans=l||(this.db.core||m).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Ot(function(S){$s(S),f._reject(l.error)}),l.onabort=Ot(function(S){$s(S),f.active&&f._reject(new Ae.Abort(l.error)),f.active=!1,f.on("abort").fire(S)}),l.oncomplete=Ot(function(){f.active=!1,f._resolve(),"mutatedParts"in l&&Sr.storagemutated.fire(l.mutatedParts)}),this},Kn.prototype._promise=function(l,f,m){var b=this;if(l==="readwrite"&&this.mode!=="readwrite")return Pt(new Ae.ReadOnly("Transaction is readonly"));if(!this.active)return Pt(new Ae.TransactionInactive);if(this._locked())return new De(function(A,T){b._blockedFuncs.push([function(){b._promise(l,f,m).then(A,T)},je])});if(m)return yr(function(){var A=new De(function(T,P){b._lock();var B=f(T,P,b);B&&B.then&&B.then(T,P)});return A.finally(function(){return b._unlock()}),A._lib=!0,A});var S=new De(function(A,T){var P=f(A,T,b);P&&P.then&&P.then(A,T)});return S._lib=!0,S},Kn.prototype._root=function(){return this.parent?this.parent._root():this},Kn.prototype.waitFor=function(l){var f,m=this._root(),b=De.resolve(l);m._waitingFor?m._waitingFor=m._waitingFor.then(function(){return b}):(m._waitingFor=b,m._waitingQueue=[],f=m.idbtrans.objectStore(m.storeNames[0]),function A(){for(++m._spinCount;m._waitingQueue.length;)m._waitingQueue.shift()();m._waitingFor&&(f.get(-1/0).onsuccess=A)}());var S=m._waitingFor;return new De(function(A,T){b.then(function(P){return m._waitingQueue.push(Ot(A.bind(null,P)))},function(P){return m._waitingQueue.push(Ot(T.bind(null,P)))}).finally(function(){m._waitingFor===S&&(m._waitingFor=null)})})},Kn.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ae.Abort))},Kn.prototype.table=function(l){var f=this._memoizedTables||(this._memoizedTables={});if(h(f,l))return f[l];var m=this.schema[l];if(!m)throw new Ae.NotFound("Table "+l+" not part of transaction");return m=new this.db.Table(l,m,this),m.core=this.db.core.table(l),f[l]=m},Kn);function Kn(){}function zc(l,f,m,b,S,A,T){return{name:l,keyPath:f,unique:m,multi:b,auto:S,compound:A,src:(m&&!T?"&":"")+(b?"*":"")+(S?"++":"")+Xh(f)}}function Xh(l){return typeof l=="string"?l:l?"["+[].join.call(l,"+")+"]":""}function Gc(l,f,m){return{name:l,primKey:f,indexes:m,mappedClass:null,idxByName:(b=function(S){return[S.name,S]},m.reduce(function(S,A,T){return T=b(A,T),T&&(S[T[0]]=T[1]),S},{}))};var b}var Vs=function(l){try{return l.only([[]]),Vs=function(){return[[]]},[[]]}catch{return Vs=function(){return Jr},Jr}};function Wc(l){return l==null?function(){}:typeof l=="string"?(f=l).split(".").length===1?function(m){return m[f]}:function(m){return Y(m,f)}:function(m){return Y(m,l)};var f}function Qh(l){return[].slice.call(l)}var D0=0;function qs(l){return l==null?":id":typeof l=="string"?l:"[".concat(l.join("+"),"]")}function F0(l,f,B){function b(q){if(q.type===3)return null;if(q.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var $=q.lower,K=q.upper,W=q.lowerOpen,q=q.upperOpen;return $===void 0?K===void 0?null:f.upperBound(K,!!q):K===void 0?f.lowerBound($,!!W):f.bound($,K,!!W,!!q)}function S(J){var $,K=J.name;return{name:K,schema:J,mutate:function(W){var q=W.trans,Z=W.type,ne=W.keys,re=W.values,ce=W.range;return new Promise(function(ke,Oe){ke=Ot(ke);var Ee=q.objectStore(K),Ce=Ee.keyPath==null,Re=Z==="put"||Z==="add";if(!Re&&Z!=="delete"&&Z!=="deleteRange")throw new Error("Invalid operation type: "+Z);var Te,Le=(ne||re||{length:1}).length;if(ne&&re&&ne.length!==re.length)throw new Error("Given keys array must have same length as given values array.");if(Le===0)return ke({numFailures:0,failures:{},results:[],lastResult:void 0});function Je(tn){++gn,$s(tn)}var nt=[],rt=[],gn=0;if(Z==="deleteRange"){if(ce.type===4)return ke({numFailures:gn,failures:rt,results:[],lastResult:void 0});ce.type===3?nt.push(Te=Ee.clear()):nt.push(Te=Ee.delete(b(ce)))}else{var Ce=Re?Ce?[re,ne]:[re,null]:[ne,null],Ye=Ce[0],Yt=Ce[1];if(Re)for(var Jt=0;Jt<Le;++Jt)nt.push(Te=Yt&&Yt[Jt]!==void 0?Ee[Z](Ye[Jt],Yt[Jt]):Ee[Z](Ye[Jt])),Te.onerror=Je;else for(Jt=0;Jt<Le;++Jt)nt.push(Te=Ee[Z](Ye[Jt])),Te.onerror=Je}function Ra(tn){tn=tn.target.result,nt.forEach(function(ei,fl){return ei.error!=null&&(rt[fl]=ei.error)}),ke({numFailures:gn,failures:rt,results:Z==="delete"?ne:nt.map(function(ei){return ei.result}),lastResult:tn})}Te.onerror=function(tn){Je(tn),Ra(tn)},Te.onsuccess=Ra})},getMany:function(W){var q=W.trans,Z=W.keys;return new Promise(function(ne,re){ne=Ot(ne);for(var ce,ke=q.objectStore(K),Oe=Z.length,Ee=new Array(Oe),Ce=0,Re=0,Te=function(nt){nt=nt.target,Ee[nt._pos]=nt.result,++Re===Ce&&ne(Ee)},Le=Hn(re),Je=0;Je<Oe;++Je)Z[Je]!=null&&((ce=ke.get(Z[Je]))._pos=Je,ce.onsuccess=Te,ce.onerror=Le,++Ce);Ce===0&&ne(Ee)})},get:function(W){var q=W.trans,Z=W.key;return new Promise(function(ne,re){ne=Ot(ne);var ce=q.objectStore(K).get(Z);ce.onsuccess=function(ke){return ne(ke.target.result)},ce.onerror=Hn(re)})},query:($=j,function(W){return new Promise(function(q,Z){q=Ot(q);var ne,re,ce,Ce=W.trans,ke=W.values,Oe=W.limit,Te=W.query,Ee=Oe===1/0?void 0:Oe,Re=Te.index,Te=Te.range,Ce=Ce.objectStore(K),Re=Re.isPrimaryKey?Ce:Ce.index(Re.name),Te=b(Te);if(Oe===0)return q({result:[]});$?((Ee=ke?Re.getAll(Te,Ee):Re.getAllKeys(Te,Ee)).onsuccess=function(Le){return q({result:Le.target.result})},Ee.onerror=Hn(Z)):(ne=0,re=!ke&&"openKeyCursor"in Re?Re.openKeyCursor(Te):Re.openCursor(Te),ce=[],re.onsuccess=function(Le){var Je=re.result;return Je?(ce.push(ke?Je.value:Je.primaryKey),++ne===Oe?q({result:ce}):void Je.continue()):q({result:ce})},re.onerror=Hn(Z))})}),openCursor:function(W){var q=W.trans,Z=W.values,ne=W.query,re=W.reverse,ce=W.unique;return new Promise(function(ke,Oe){ke=Ot(ke);var Re=ne.index,Ee=ne.range,Ce=q.objectStore(K),Ce=Re.isPrimaryKey?Ce:Ce.index(Re.name),Re=re?ce?"prevunique":"prev":ce?"nextunique":"next",Te=!Z&&"openKeyCursor"in Ce?Ce.openKeyCursor(b(Ee),Re):Ce.openCursor(b(Ee),Re);Te.onerror=Hn(Oe),Te.onsuccess=Ot(function(Le){var Je,nt,rt,gn,Ye=Te.result;Ye?(Ye.___id=++D0,Ye.done=!1,Je=Ye.continue.bind(Ye),nt=(nt=Ye.continuePrimaryKey)&&nt.bind(Ye),rt=Ye.advance.bind(Ye),gn=function(){throw new Error("Cursor not stopped")},Ye.trans=q,Ye.stop=Ye.continue=Ye.continuePrimaryKey=Ye.advance=function(){throw new Error("Cursor not started")},Ye.fail=Ot(Oe),Ye.next=function(){var Yt=this,Jt=1;return this.start(function(){return Jt--?Yt.continue():Yt.stop()}).then(function(){return Yt})},Ye.start=function(Yt){function Jt(){if(Te.result)try{Yt()}catch(tn){Ye.fail(tn)}else Ye.done=!0,Ye.start=function(){throw new Error("Cursor behind last entry")},Ye.stop()}var Ra=new Promise(function(tn,ei){tn=Ot(tn),Te.onerror=Hn(ei),Ye.fail=ei,Ye.stop=function(fl){Ye.stop=Ye.continue=Ye.continuePrimaryKey=Ye.advance=gn,tn(fl)}});return Te.onsuccess=Ot(function(tn){Te.onsuccess=Jt,Jt()}),Ye.continue=Je,Ye.continuePrimaryKey=nt,Ye.advance=rt,Jt(),Ra},ke(Ye)):ke(null)},Oe)})},count:function(W){var q=W.query,Z=W.trans,ne=q.index,re=q.range;return new Promise(function(ce,ke){var Oe=Z.objectStore(K),Ee=ne.isPrimaryKey?Oe:Oe.index(ne.name),Oe=b(re),Ee=Oe?Ee.count(Oe):Ee.count();Ee.onsuccess=Ot(function(Ce){return ce(Ce.target.result)}),Ee.onerror=Hn(ke)})}}}var A,T,P,z=(T=B,P=Qh((A=l).objectStoreNames),{schema:{name:A.name,tables:P.map(function(J){return T.objectStore(J)}).map(function(J){var $=J.keyPath,q=J.autoIncrement,K=a($),W={},q={name:J.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:$==null,compound:K,keyPath:$,autoIncrement:q,unique:!0,extractKey:Wc($)},indexes:Qh(J.indexNames).map(function(Z){return J.index(Z)}).map(function(ce){var ne=ce.name,re=ce.unique,ke=ce.multiEntry,ce=ce.keyPath,ke={name:ne,compound:a(ce),keyPath:ce,unique:re,multiEntry:ke,extractKey:Wc(ce)};return W[qs(ce)]=ke}),getIndexByKeyPath:function(Z){return W[qs(Z)]}};return W[":id"]=q.primaryKey,$!=null&&(W[qs($)]=q.primaryKey),q})},hasGetAll:0<P.length&&"getAll"in T.objectStore(P[0])&&!(typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),B=z.schema,j=z.hasGetAll,z=B.tables.map(S),D={};return z.forEach(function(J){return D[J.name]=J}),{stack:"dbcore",transaction:l.transaction.bind(l),table:function(J){if(!D[J])throw new Error("Table '".concat(J,"' not found"));return D[J]},MIN_KEY:-1/0,MAX_KEY:Vs(f),schema:B}}function U0(l,f,m,b){var S=m.IDBKeyRange;return m.indexedDB,{dbcore:(b=F0(f,S,b),l.dbcore.reduce(function(A,T){return T=T.create,r(r({},A),T(A))},b))}}function wa(l,b){var m=b.db,b=U0(l._middlewares,m,l._deps,b);l.core=b.dbcore,l.tables.forEach(function(S){var A=S.name;l.core.schema.tables.some(function(T){return T.name===A})&&(S.core=l.core.table(A),l[A]instanceof l.Table&&(l[A].core=S.core))})}function _a(l,f,m,b){m.forEach(function(S){var A=b[S];f.forEach(function(T){var P=function B(j,z){return k(j,z)||(j=u(j))&&B(j,z)}(T,S);(!P||"value"in P&&P.value===void 0)&&(T===l.Transaction.prototype||T instanceof l.Transaction?v(T,S,{get:function(){return this.table(S)},set:function(B){y(this,S,{value:B,writable:!0,configurable:!0,enumerable:!0})}}):T[S]=new l.Table(S,A))})})}function Yc(l,f){f.forEach(function(m){for(var b in m)m[b]instanceof l.Table&&delete m[b]})}function L0(l,f){return l._cfg.version-f._cfg.version}function M0(l,f,m,b){var S=l._dbSchema;m.objectStoreNames.contains("$meta")&&!S.$meta&&(S.$meta=Gc("$meta",ep("")[0],[]),l._storeNames.push("$meta"));var A=l._createTransaction("readwrite",l._storeNames,S);A.create(m),A._completion.catch(b);var T=A._reject.bind(A),P=je.transless||je;yr(function(){return je.trans=A,je.transless=P,f!==0?(wa(l,m),j=f,((B=A).storeNames.includes("$meta")?B.table("$meta").get("version").then(function(z){return z!=null?z:j}):De.resolve(j)).then(function(z){return J=z,$=A,K=m,W=[],z=(D=l)._versions,q=D._dbSchema=ka(0,D.idbdb,K),(z=z.filter(function(Z){return Z._cfg.version>=J})).length!==0?(z.forEach(function(Z){W.push(function(){var ne=q,re=Z._cfg.dbschema;Ea(D,ne,K),Ea(D,re,K),q=D._dbSchema=re;var ce=Jc(ne,re);ce.add.forEach(function(Re){Xc(K,Re[0],Re[1].primKey,Re[1].indexes)}),ce.change.forEach(function(Re){if(Re.recreate)throw new Ae.Upgrade("Not yet support for changing primary key");var Te=K.objectStore(Re.name);Re.add.forEach(function(Le){return Sa(Te,Le)}),Re.change.forEach(function(Le){Te.deleteIndex(Le.name),Sa(Te,Le)}),Re.del.forEach(function(Le){return Te.deleteIndex(Le)})});var ke=Z._cfg.contentUpgrade;if(ke&&Z._cfg.version>J){wa(D,K),$._memoizedTables={};var Oe=F(re);ce.del.forEach(function(Re){Oe[Re]=ne[Re]}),Yc(D,[D.Transaction.prototype]),_a(D,[D.Transaction.prototype],o(Oe),Oe),$.schema=Oe;var Ee,Ce=de(ke);return Ce&&Mi(),ce=De.follow(function(){var Re;(Ee=ke($))&&Ce&&(Re=br.bind(null,null),Ee.then(Re,Re))}),Ee&&typeof Ee.then=="function"?De.resolve(Ee):ce.then(function(){return Ee})}}),W.push(function(ne){var re,ce,ke=Z._cfg.dbschema;re=ke,ce=ne,[].slice.call(ce.db.objectStoreNames).forEach(function(Oe){return re[Oe]==null&&ce.db.deleteObjectStore(Oe)}),Yc(D,[D.Transaction.prototype]),_a(D,[D.Transaction.prototype],D._storeNames,D._dbSchema),$.schema=D._dbSchema}),W.push(function(ne){D.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(D.idbdb.version/10)===Z._cfg.version?(D.idbdb.deleteObjectStore("$meta"),delete D._dbSchema.$meta,D._storeNames=D._storeNames.filter(function(re){return re!=="$meta"})):ne.objectStore("$meta").put(Z._cfg.version,"version"))})}),function Z(){return W.length?De.resolve(W.shift()($.idbtrans)).then(Z):De.resolve()}().then(function(){Zh(q,K)})):De.resolve();var D,J,$,K,W,q}).catch(T)):(o(S).forEach(function(z){Xc(m,z,S[z].primKey,S[z].indexes)}),wa(l,m),void De.follow(function(){return l.on.populate.fire(A)}).catch(T));var B,j})}function B0(l,f){Zh(l._dbSchema,f),f.db.version%10!=0||f.objectStoreNames.contains("$meta")||f.db.createObjectStore("$meta").add(Math.ceil(f.db.version/10-1),"version");var m=ka(0,l.idbdb,f);Ea(l,l._dbSchema,f);for(var b=0,S=Jc(m,l._dbSchema).change;b<S.length;b++){var A=function(T){if(T.change.length||T.recreate)return console.warn("Unable to patch indexes of table ".concat(T.name," because it has changes on the type of index or primary key.")),{value:void 0};var P=f.objectStore(T.name);T.add.forEach(function(B){N&&console.debug("Dexie upgrade patch: Creating missing index ".concat(T.name,".").concat(B.src)),Sa(P,B)})}(S[b]);if(typeof A=="object")return A.value}}function Jc(l,f){var m,b={del:[],add:[],change:[]};for(m in l)f[m]||b.del.push(m);for(m in f){var S=l[m],A=f[m];if(S){var T={name:m,def:A,recreate:!1,del:[],add:[],change:[]};if(""+(S.primKey.keyPath||"")!=""+(A.primKey.keyPath||"")||S.primKey.auto!==A.primKey.auto)T.recreate=!0,b.change.push(T);else{var P=S.idxByName,B=A.idxByName,j=void 0;for(j in P)B[j]||T.del.push(j);for(j in B){var z=P[j],D=B[j];z?z.src!==D.src&&T.change.push(D):T.add.push(D)}(0<T.del.length||0<T.add.length||0<T.change.length)&&b.change.push(T)}}else b.add.push([m,A])}return b}function Xc(l,f,m,b){var S=l.db.createObjectStore(f,m.keyPath?{keyPath:m.keyPath,autoIncrement:m.auto}:{autoIncrement:m.auto});return b.forEach(function(A){return Sa(S,A)}),S}function Zh(l,f){o(l).forEach(function(m){f.db.objectStoreNames.contains(m)||(N&&console.debug("Dexie: Creating missing table",m),Xc(f,m,l[m].primKey,l[m].indexes))})}function Sa(l,f){l.createIndex(f.name,f.keyPath,{unique:f.unique,multiEntry:f.multi})}function ka(l,f,m){var b={};return E(f.objectStoreNames,0).forEach(function(S){for(var A=m.objectStore(S),T=zc(Xh(j=A.keyPath),j||"",!0,!1,!!A.autoIncrement,j&&typeof j!="string",!0),P=[],B=0;B<A.indexNames.length;++B){var z=A.index(A.indexNames[B]),j=z.keyPath,z=zc(z.name,j,!!z.unique,!!z.multiEntry,!1,j&&typeof j!="string",!1);P.push(z)}b[S]=Gc(S,T,P)}),b}function Ea(l,f,m){for(var b=m.db.objectStoreNames,S=0;S<b.length;++S){var A=b[S],T=m.objectStore(A);l._hasGetAll="getAll"in T;for(var P=0;P<T.indexNames.length;++P){var B=T.indexNames[P],j=T.index(B).keyPath,z=typeof j=="string"?j:"["+E(j).join("+")+"]";!f[A]||(j=f[A].idxByName[z])&&(j.name=B,delete f[A].idxByName[z],f[A].idxByName[B]=j)}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&s.WorkerGlobalScope&&s instanceof s.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(l._hasGetAll=!1)}function ep(l){return l.split(",").map(function(f,m){var b=(f=f.trim()).replace(/([&*]|\+\+)/g,""),S=/^\[/.test(b)?b.match(/^\[(.*)\]$/)[1].split("+"):b;return zc(b,S||null,/\&/.test(f),/\*/.test(f),/\+\+/.test(f),a(S),m===0)})}var $0=(Aa.prototype._parseStoresSpec=function(l,f){o(l).forEach(function(m){if(l[m]!==null){var b=ep(l[m]),S=b.shift();if(S.unique=!0,S.multi)throw new Ae.Schema("Primary key cannot be multi-valued");b.forEach(function(A){if(A.auto)throw new Ae.Schema("Only primary key can be marked as autoIncrement (++)");if(!A.keyPath)throw new Ae.Schema("Index must have a name and cannot be an empty string")}),f[m]=Gc(m,S,b)}})},Aa.prototype.stores=function(m){var f=this.db;this._cfg.storesSource=this._cfg.storesSource?c(this._cfg.storesSource,m):m;var m=f._versions,b={},S={};return m.forEach(function(A){c(b,A._cfg.storesSource),S=A._cfg.dbschema={},A._parseStoresSpec(b,S)}),f._dbSchema=S,Yc(f,[f._allTables,f,f.Transaction.prototype]),_a(f,[f._allTables,f,f.Transaction.prototype,this._cfg.tables],o(S),S),f._storeNames=o(S),this},Aa.prototype.upgrade=function(l){return this._cfg.contentUpgrade=g(this._cfg.contentUpgrade||Ie,l),this},Aa);function Aa(){}function Qc(l,f){var m=l._dbNamesDB;return m||(m=l._dbNamesDB=new er(ma,{addons:[],indexedDB:l,IDBKeyRange:f})).version(1).stores({dbnames:"name"}),m.table("dbnames")}function Zc(l){return l&&typeof l.databases=="function"}function el(l){return yr(function(){return je.letThrough=!0,l()})}function tl(l){return!("from"in l)}var Wt=function(l,f){if(!this){var m=new Wt;return l&&"d"in l&&c(m,l),m}c(this,arguments.length?{d:1,from:l,to:1<arguments.length?f:l}:{d:0})};function Hs(l,f,m){var b=ut(f,m);if(!isNaN(b)){if(0<b)throw RangeError();if(tl(l))return c(l,{from:f,to:m,d:1});var S=l.l,b=l.r;if(ut(m,l.from)<0)return S?Hs(S,f,m):l.l={from:f,to:m,d:1,l:null,r:null},np(l);if(0<ut(f,l.to))return b?Hs(b,f,m):l.r={from:f,to:m,d:1,l:null,r:null},np(l);ut(f,l.from)<0&&(l.from=f,l.l=null,l.d=b?b.d+1:1),0<ut(m,l.to)&&(l.to=m,l.r=null,l.d=l.l?l.l.d+1:1),m=!l.r,S&&!l.l&&Ks(l,S),b&&m&&Ks(l,b)}}function Ks(l,f){tl(f)||function m(b,B){var A=B.from,T=B.to,P=B.l,B=B.r;Hs(b,A,T),P&&m(b,P),B&&m(b,B)}(l,f)}function tp(l,f){var m=Ca(f),b=m.next();if(b.done)return!1;for(var S=b.value,A=Ca(l),T=A.next(S.from),P=T.value;!b.done&&!T.done;){if(ut(P.from,S.to)<=0&&0<=ut(P.to,S.from))return!0;ut(S.from,P.from)<0?S=(b=m.next(P.from)).value:P=(T=A.next(S.from)).value}return!1}function Ca(l){var f=tl(l)?null:{s:0,n:l};return{next:function(m){for(var b=0<arguments.length;f;)switch(f.s){case 0:if(f.s=1,b)for(;f.n.l&&ut(m,f.n.from)<0;)f={up:f,n:f.n.l,s:1};else for(;f.n.l;)f={up:f,n:f.n.l,s:1};case 1:if(f.s=2,!b||ut(m,f.n.to)<=0)return{value:f.n,done:!1};case 2:if(f.n.r){f.s=3,f={up:f,n:f.n.r,s:0};continue}case 3:f=f.up}return{done:!0}}}}function np(l){var f,m,b=(((f=l.r)===null||f===void 0?void 0:f.d)||0)-(((m=l.l)===null||m===void 0?void 0:m.d)||0),S=1<b?"r":b<-1?"l":"";S&&(f=S=="r"?"l":"r",m=r({},l),b=l[S],l.from=b.from,l.to=b.to,l[S]=b[S],m[S]=b[f],(l[f]=m).d=rp(m)),l.d=rp(l)}function rp(m){var f=m.r,m=m.l;return(f?m?Math.max(f.d,m.d):f.d:m?m.d:0)+1}function xa(l,f){return o(f).forEach(function(m){l[m]?Ks(l[m],f[m]):l[m]=function b(S){var A,T,P={};for(A in S)h(S,A)&&(T=S[A],P[A]=!T||typeof T!="object"||ie.has(T.constructor)?T:b(T));return P}(f[m])}),l}function nl(l,f){return l.all||f.all||Object.keys(l).some(function(m){return f[m]&&tp(f[m],l[m])})}p(Wt.prototype,((Sn={add:function(l){return Ks(this,l),this},addKey:function(l){return Hs(this,l,l),this},addKeys:function(l){var f=this;return l.forEach(function(m){return Hs(f,m,m)}),this},hasKey:function(l){var f=Ca(this).next(l).value;return f&&ut(f.from,l)<=0&&0<=ut(f.to,l)}})[Q]=function(){return Ca(this)},Sn));var Qr={},rl={},il=!1;function Na(l){xa(rl,l),il||(il=!0,setTimeout(function(){il=!1,sl(rl,!(rl={}))},0))}function sl(l,f){f===void 0&&(f=!1);var m=new Set;if(l.all)for(var b=0,S=Object.values(Qr);b<S.length;b++)ip(T=S[b],l,m,f);else for(var A in l){var T,P=/^idb\:\/\/(.*)\/(.*)\//.exec(A);P&&(A=P[1],P=P[2],(T=Qr["idb://".concat(A,"/").concat(P)])&&ip(T,l,m,f))}m.forEach(function(B){return B()})}function ip(l,f,m,b){for(var S=[],A=0,T=Object.entries(l.queries.query);A<T.length;A++){for(var P=T[A],B=P[0],j=[],z=0,D=P[1];z<D.length;z++){var J=D[z];nl(f,J.obsSet)?J.subscribers.forEach(function(q){return m.add(q)}):b&&j.push(J)}b&&S.push([B,j])}if(b)for(var $=0,K=S;$<K.length;$++){var W=K[$],B=W[0],j=W[1];l.queries.query[B]=j}}function j0(l){var f=l._state,m=l._deps.indexedDB;if(f.isBeingOpened||l.idbdb)return f.dbReadyPromise.then(function(){return f.dbOpenError?Pt(f.dbOpenError):l});f.isBeingOpened=!0,f.dbOpenError=null,f.openComplete=!1;var b=f.openCanceller,S=Math.round(10*l.verno),A=!1;function T(){if(f.openCanceller!==b)throw new Ae.DatabaseClosed("db.open() was cancelled")}function P(){return new De(function(J,$){if(T(),!m)throw new Ae.MissingAPI;var K=l.name,W=f.autoSchema||!S?m.open(K):m.open(K,S);if(!W)throw new Ae.MissingAPI;W.onerror=Hn($),W.onblocked=Ot(l._fireOnBlocked),W.onupgradeneeded=Ot(function(q){var Z;z=W.transaction,f.autoSchema&&!l._options.allowEmptyDB?(W.onerror=$s,z.abort(),W.result.close(),(Z=m.deleteDatabase(K)).onsuccess=Z.onerror=Ot(function(){$(new Ae.NoSuchDatabase("Database ".concat(K," doesnt exist")))})):(z.onerror=Hn($),q=q.oldVersion>Math.pow(2,62)?0:q.oldVersion,D=q<1,l.idbdb=W.result,A&&B0(l,z),M0(l,q/10,z,$))},$),W.onsuccess=Ot(function(){z=null;var q,Z,ne,re,ce,ke=l.idbdb=W.result,Oe=E(ke.objectStoreNames);if(0<Oe.length)try{var Ee=ke.transaction((re=Oe).length===1?re[0]:re,"readonly");if(f.autoSchema)Z=ke,ne=Ee,(q=l).verno=Z.version/10,ne=q._dbSchema=ka(0,Z,ne),q._storeNames=E(Z.objectStoreNames,0),_a(q,[q._allTables],o(ne),ne);else if(Ea(l,l._dbSchema,Ee),((ce=Jc(ka(0,(ce=l).idbdb,Ee),ce._dbSchema)).add.length||ce.change.some(function(Ce){return Ce.add.length||Ce.change.length}))&&!A)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),ke.close(),S=ke.version+1,A=!0,J(P());wa(l,Ee)}catch{}Bi.push(l),ke.onversionchange=Ot(function(Ce){f.vcFired=!0,l.on("versionchange").fire(Ce)}),ke.onclose=Ot(function(Ce){l.on("close").fire(Ce)}),D&&(ce=l._deps,Ee=K,ke=ce.indexedDB,ce=ce.IDBKeyRange,Zc(ke)||Ee===ma||Qc(ke,ce).put({name:Ee}).catch(Ie)),J()},$)}).catch(function(J){switch(J==null?void 0:J.name){case"UnknownError":if(0<f.PR1398_maxLoop)return f.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),P();break;case"VersionError":if(0<S)return S=0,P()}return De.reject(J)})}var B,j=f.dbReadyResolve,z=null,D=!1;return De.race([b,(typeof navigator=="undefined"?De.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(J){function $(){return indexedDB.databases().finally(J)}B=setInterval($,100),$()}).finally(function(){return clearInterval(B)}):Promise.resolve()).then(P)]).then(function(){return T(),f.onReadyBeingFired=[],De.resolve(el(function(){return l.on.ready.fire(l.vip)})).then(function J(){if(0<f.onReadyBeingFired.length){var $=f.onReadyBeingFired.reduce(g,Ie);return f.onReadyBeingFired=[],De.resolve(el(function(){return $(l.vip)})).then(J)}})}).finally(function(){f.openCanceller===b&&(f.onReadyBeingFired=null,f.isBeingOpened=!1)}).catch(function(J){f.dbOpenError=J;try{z&&z.abort()}catch{}return b===f.openCanceller&&l._close(),Pt(J)}).finally(function(){f.openComplete=!0,j()}).then(function(){var J;return D&&(J={},l.tables.forEach(function($){$.schema.indexes.forEach(function(K){K.name&&(J["idb://".concat(l.name,"/").concat($.name,"/").concat(K.name)]=new Wt(-1/0,[[[]]]))}),J["idb://".concat(l.name,"/").concat($.name,"/")]=J["idb://".concat(l.name,"/").concat($.name,"/:dels")]=new Wt(-1/0,[[[]]])}),Sr(js).fire(J),sl(J,!0)),l})}function ol(l){function f(A){return l.next(A)}var m=S(f),b=S(function(A){return l.throw(A)});function S(A){return function(B){var P=A(B),B=P.value;return P.done?B:B&&typeof B.then=="function"?B.then(m,b):a(B)?Promise.all(B).then(m,b):m(B)}}return S(f)()}function Ta(l,f,m){for(var b=a(l)?l.slice():[l],S=0;S<m;++S)b.push(f);return b}var V0={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(l){return r(r({},l),{table:function(f){var m=l.table(f),b=m.schema,S={},A=[];function T(D,J,$){var K=qs(D),W=S[K]=S[K]||[],q=D==null?0:typeof D=="string"?1:D.length,Z=0<J,Z=r(r({},$),{name:Z?"".concat(K,"(virtual-from:").concat($.name,")"):$.name,lowLevelIndex:$,isVirtual:Z,keyTail:J,keyLength:q,extractKey:Wc(D),unique:!Z&&$.unique});return W.push(Z),Z.isPrimaryKey||A.push(Z),1<q&&T(q===2?D[0]:D.slice(0,q-1),J+1,$),W.sort(function(ne,re){return ne.keyTail-re.keyTail}),Z}f=T(b.primaryKey.keyPath,0,b.primaryKey),S[":id"]=[f];for(var P=0,B=b.indexes;P<B.length;P++){var j=B[P];T(j.keyPath,0,j)}function z(D){var J,$=D.query.index;return $.isVirtual?r(r({},D),{query:{index:$.lowLevelIndex,range:(J=D.query.range,$=$.keyTail,{type:J.type===1?2:J.type,lower:Ta(J.lower,J.lowerOpen?l.MAX_KEY:l.MIN_KEY,$),lowerOpen:!0,upper:Ta(J.upper,J.upperOpen?l.MIN_KEY:l.MAX_KEY,$),upperOpen:!0})}}):D}return r(r({},m),{schema:r(r({},b),{primaryKey:f,indexes:A,getIndexByKeyPath:function(D){return(D=S[qs(D)])&&D[0]}}),count:function(D){return m.count(z(D))},query:function(D){return m.query(z(D))},openCursor:function(D){var J=D.query.index,$=J.keyTail,K=J.isVirtual,W=J.keyLength;return K?m.openCursor(z(D)).then(function(Z){return Z&&q(Z)}):m.openCursor(D);function q(Z){return Object.create(Z,{continue:{value:function(ne){ne!=null?Z.continue(Ta(ne,D.reverse?l.MAX_KEY:l.MIN_KEY,$)):D.unique?Z.continue(Z.key.slice(0,W).concat(D.reverse?l.MIN_KEY:l.MAX_KEY,$)):Z.continue()}},continuePrimaryKey:{value:function(ne,re){Z.continuePrimaryKey(Ta(ne,l.MAX_KEY,$),re)}},primaryKey:{get:function(){return Z.primaryKey}},key:{get:function(){var ne=Z.key;return W===1?ne[0]:ne.slice(0,W)}},value:{get:function(){return Z.value}}})}}})}})}};function al(l,f,m,b){return m=m||{},b=b||"",o(l).forEach(function(S){var A,T,P;h(f,S)?(A=l[S],T=f[S],typeof A=="object"&&typeof T=="object"&&A&&T?(P=R(A))!==R(T)?m[b+S]=f[S]:P==="Object"?al(A,T,m,b+S+"."):A!==T&&(m[b+S]=f[S]):A!==T&&(m[b+S]=f[S])):m[b+S]=void 0}),o(f).forEach(function(S){h(l,S)||(m[b+S]=f[S])}),m}function ul(l,f){return f.type==="delete"?f.keys:f.keys||f.values.map(l.extractKey)}var q0={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(l){return r(r({},l),{table:function(f){var m=l.table(f),b=m.schema.primaryKey;return r(r({},m),{mutate:function(S){var A=je.trans,T=A.table(f).hook,P=T.deleting,B=T.creating,j=T.updating;switch(S.type){case"add":if(B.fire===Ie)break;return A._promise("readwrite",function(){return z(S)},!0);case"put":if(B.fire===Ie&&j.fire===Ie)break;return A._promise("readwrite",function(){return z(S)},!0);case"delete":if(P.fire===Ie)break;return A._promise("readwrite",function(){return z(S)},!0);case"deleteRange":if(P.fire===Ie)break;return A._promise("readwrite",function(){return function D(J,$,K){return m.query({trans:J,values:!1,query:{index:b,range:$},limit:K}).then(function(W){var q=W.result;return z({type:"delete",keys:q,trans:J}).then(function(Z){return 0<Z.numFailures?Promise.reject(Z.failures[0]):q.length<K?{failures:[],numFailures:0,lastResult:void 0}:D(J,r(r({},$),{lower:q[q.length-1],lowerOpen:!0}),K)})})}(S.trans,S.range,1e4)},!0)}return m.mutate(S);function z(D){var J,$,K,W=je.trans,q=D.keys||ul(b,D);if(!q)throw new Error("Keys missing");return(D=D.type==="add"||D.type==="put"?r(r({},D),{keys:q}):r({},D)).type!=="delete"&&(D.values=i([],D.values)),D.keys&&(D.keys=i([],D.keys)),J=m,K=q,(($=D).type==="add"?Promise.resolve([]):J.getMany({trans:$.trans,keys:K,cache:"immutable"})).then(function(Z){var ne=q.map(function(re,ce){var ke,Oe,Ee,Ce=Z[ce],Re={onerror:null,onsuccess:null};return D.type==="delete"?P.fire.call(Re,re,Ce,W):D.type==="add"||Ce===void 0?(ke=B.fire.call(Re,re,D.values[ce],W),re==null&&ke!=null&&(D.keys[ce]=re=ke,b.outbound||ee(D.values[ce],b.keyPath,re))):(ke=al(Ce,D.values[ce]),(Oe=j.fire.call(Re,ke,re,Ce,W))&&(Ee=D.values[ce],Object.keys(Oe).forEach(function(Te){h(Ee,Te)?Ee[Te]=Oe[Te]:ee(Ee,Te,Oe[Te])}))),Re});return m.mutate(D).then(function(re){for(var ce=re.failures,ke=re.results,Oe=re.numFailures,re=re.lastResult,Ee=0;Ee<q.length;++Ee){var Ce=(ke||q)[Ee],Re=ne[Ee];Ce==null?Re.onerror&&Re.onerror(ce[Ee]):Re.onsuccess&&Re.onsuccess(D.type==="put"&&Z[Ee]?D.values[Ee]:Ce)}return{failures:ce,results:ke,numFailures:Oe,lastResult:re}}).catch(function(re){return ne.forEach(function(ce){return ce.onerror&&ce.onerror(re)}),Promise.reject(re)})})}}})}})}};function sp(l,f,m){try{if(!f||f.keys.length<l.length)return null;for(var b=[],S=0,A=0;S<f.keys.length&&A<l.length;++S)ut(f.keys[S],l[A])===0&&(b.push(m?qe(f.values[S]):f.values[S]),++A);return b.length===l.length?b:null}catch{return null}}var H0={stack:"dbcore",level:-1,create:function(l){return{table:function(f){var m=l.table(f);return r(r({},m),{getMany:function(b){if(!b.cache)return m.getMany(b);var S=sp(b.keys,b.trans._cache,b.cache==="clone");return S?De.resolve(S):m.getMany(b).then(function(A){return b.trans._cache={keys:b.keys,values:b.cache==="clone"?qe(A):A},A})},mutate:function(b){return b.type!=="add"&&(b.trans._cache=null),m.mutate(b)}})}}}};function op(l,f){return l.trans.mode==="readonly"&&!!l.subscr&&!l.trans.explicit&&l.trans.db._options.cache!=="disabled"&&!f.schema.primaryKey.outbound}function ap(l,f){switch(l){case"query":return f.values&&!f.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var K0={stack:"dbcore",level:0,name:"Observability",create:function(l){var f=l.schema.name,m=new Wt(l.MIN_KEY,l.MAX_KEY);return r(r({},l),{transaction:function(b,S,A){if(je.subscr&&S!=="readonly")throw new Ae.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(je.querier));return l.transaction(b,S,A)},table:function(b){var S=l.table(b),A=S.schema,T=A.primaryKey,D=A.indexes,P=T.extractKey,B=T.outbound,j=T.autoIncrement&&D.filter(function($){return $.compound&&$.keyPath.includes(T.keyPath)}),z=r(r({},S),{mutate:function($){function K(Te){return Te="idb://".concat(f,"/").concat(b,"/").concat(Te),re[Te]||(re[Te]=new Wt)}var W,q,Z,ne=$.trans,re=$.mutatedParts||($.mutatedParts={}),ce=K(""),ke=K(":dels"),Oe=$.type,Re=$.type==="deleteRange"?[$.range]:$.type==="delete"?[$.keys]:$.values.length<50?[ul(T,$).filter(function(Te){return Te}),$.values]:[],Ee=Re[0],Ce=Re[1],Re=$.trans._cache;return a(Ee)?(ce.addKeys(Ee),(Re=Oe==="delete"||Ee.length===Ce.length?sp(Ee,Re):null)||ke.addKeys(Ee),(Re||Ce)&&(W=K,q=Re,Z=Ce,A.indexes.forEach(function(Te){var Le=W(Te.name||"");function Je(rt){return rt!=null?Te.extractKey(rt):null}function nt(rt){return Te.multiEntry&&a(rt)?rt.forEach(function(gn){return Le.addKey(gn)}):Le.addKey(rt)}(q||Z).forEach(function(rt,Yt){var Ye=q&&Je(q[Yt]),Yt=Z&&Je(Z[Yt]);ut(Ye,Yt)!==0&&(Ye!=null&&nt(Ye),Yt!=null&&nt(Yt))})}))):Ee?(Ce={from:(Ce=Ee.lower)!==null&&Ce!==void 0?Ce:l.MIN_KEY,to:(Ce=Ee.upper)!==null&&Ce!==void 0?Ce:l.MAX_KEY},ke.add(Ce),ce.add(Ce)):(ce.add(m),ke.add(m),A.indexes.forEach(function(Te){return K(Te.name).add(m)})),S.mutate($).then(function(Te){return!Ee||$.type!=="add"&&$.type!=="put"||(ce.addKeys(Te.results),j&&j.forEach(function(Le){for(var Je=$.values.map(function(Ye){return Le.extractKey(Ye)}),nt=Le.keyPath.findIndex(function(Ye){return Ye===T.keyPath}),rt=0,gn=Te.results.length;rt<gn;++rt)Je[rt][nt]=Te.results[rt];K(Le.name).addKeys(Je)})),ne.mutatedParts=xa(ne.mutatedParts||{},re),Te})}}),D=function(K){var W=K.query,K=W.index,W=W.range;return[K,new Wt((K=W.lower)!==null&&K!==void 0?K:l.MIN_KEY,(W=W.upper)!==null&&W!==void 0?W:l.MAX_KEY)]},J={get:function($){return[T,new Wt($.key)]},getMany:function($){return[T,new Wt().addKeys($.keys)]},count:D,query:D,openCursor:D};return o(J).forEach(function($){z[$]=function(K){var W=je.subscr,q=!!W,Z=op(je,S)&&ap($,K)?K.obsSet={}:W;if(q){var ne=function(Ce){return Ce="idb://".concat(f,"/").concat(b,"/").concat(Ce),Z[Ce]||(Z[Ce]=new Wt)},re=ne(""),ce=ne(":dels"),W=J[$](K),q=W[0],W=W[1];if(($==="query"&&q.isPrimaryKey&&!K.values?ce:ne(q.name||"")).add(W),!q.isPrimaryKey){if($!=="count"){var ke=$==="query"&&B&&K.values&&S.query(r(r({},K),{values:!1}));return S[$].apply(this,arguments).then(function(Ce){if($==="query"){if(B&&K.values)return ke.then(function(Je){return Je=Je.result,re.addKeys(Je),Ce});var Re=K.values?Ce.result.map(P):Ce.result;(K.values?re:ce).addKeys(Re)}else if($==="openCursor"){var Te=Ce,Le=K.values;return Te&&Object.create(Te,{key:{get:function(){return ce.addKey(Te.primaryKey),Te.key}},primaryKey:{get:function(){var Je=Te.primaryKey;return ce.addKey(Je),Je}},value:{get:function(){return Le&&re.addKey(Te.primaryKey),Te.value}}})}return Ce})}ce.add(m)}}return S[$].apply(this,arguments)}}),z}})}};function up(l,f,m){if(m.numFailures===0)return f;if(f.type==="deleteRange")return null;var b=f.keys?f.keys.length:"values"in f&&f.values?f.values.length:1;return m.numFailures===b?null:(f=r({},f),a(f.keys)&&(f.keys=f.keys.filter(function(S,A){return!(A in m.failures)})),"values"in f&&a(f.values)&&(f.values=f.values.filter(function(S,A){return!(A in m.failures)})),f)}function cl(l,f){return m=l,((b=f).lower===void 0||(b.lowerOpen?0<ut(m,b.lower):0<=ut(m,b.lower)))&&(l=l,(f=f).upper===void 0||(f.upperOpen?ut(l,f.upper)<0:ut(l,f.upper)<=0));var m,b}function cp(l,f,J,b,S,A){if(!J||J.length===0)return l;var T=f.query.index,P=T.multiEntry,B=f.query.range,j=b.schema.primaryKey.extractKey,z=T.extractKey,D=(T.lowLevelIndex||T).extractKey,J=J.reduce(function($,K){var W=$,q=[];if(K.type==="add"||K.type==="put")for(var Z=new Wt,ne=K.values.length-1;0<=ne;--ne){var re,ce=K.values[ne],ke=j(ce);Z.hasKey(ke)||(re=z(ce),(P&&a(re)?re.some(function(Te){return cl(Te,B)}):cl(re,B))&&(Z.addKey(ke),q.push(ce)))}switch(K.type){case"add":var Oe=new Wt().addKeys(f.values?$.map(function(Le){return j(Le)}):$),W=$.concat(f.values?q.filter(function(Le){return Le=j(Le),!Oe.hasKey(Le)&&(Oe.addKey(Le),!0)}):q.map(function(Le){return j(Le)}).filter(function(Le){return!Oe.hasKey(Le)&&(Oe.addKey(Le),!0)}));break;case"put":var Ee=new Wt().addKeys(K.values.map(function(Le){return j(Le)}));W=$.filter(function(Le){return!Ee.hasKey(f.values?j(Le):Le)}).concat(f.values?q:q.map(function(Le){return j(Le)}));break;case"delete":var Ce=new Wt().addKeys(K.keys);W=$.filter(function(Le){return!Ce.hasKey(f.values?j(Le):Le)});break;case"deleteRange":var Re=K.range;W=$.filter(function(Le){return!cl(j(Le),Re)})}return W},l);return J===l?l:(J.sort(function($,K){return ut(D($),D(K))||ut(j($),j(K))}),f.limit&&f.limit<1/0&&(J.length>f.limit?J.length=f.limit:l.length===f.limit&&J.length<f.limit&&(S.dirty=!0)),A?Object.freeze(J):J)}function lp(l,f){return ut(l.lower,f.lower)===0&&ut(l.upper,f.upper)===0&&!!l.lowerOpen==!!f.lowerOpen&&!!l.upperOpen==!!f.upperOpen}function z0(l,f){return function(m,b,S,A){if(m===void 0)return b!==void 0?-1:0;if(b===void 0)return 1;if((b=ut(m,b))===0){if(S&&A)return 0;if(S)return 1;if(A)return-1}return b}(l.lower,f.lower,l.lowerOpen,f.lowerOpen)<=0&&0<=function(m,b,S,A){if(m===void 0)return b!==void 0?1:0;if(b===void 0)return-1;if((b=ut(m,b))===0){if(S&&A)return 0;if(S)return-1;if(A)return 1}return b}(l.upper,f.upper,l.upperOpen,f.upperOpen)}function G0(l,f,m,b){l.subscribers.add(m),b.addEventListener("abort",function(){var S,A;l.subscribers.delete(m),l.subscribers.size===0&&(S=l,A=f,setTimeout(function(){S.subscribers.size===0&&ge(A,S)},3e3))})}var W0={stack:"dbcore",level:0,name:"Cache",create:function(l){var f=l.schema.name;return r(r({},l),{transaction:function(m,b,S){var A,T,P=l.transaction(m,b,S);return b==="readwrite"&&(T=(A=new AbortController).signal,S=function(B){return function(){if(A.abort(),b==="readwrite"){for(var j=new Set,z=0,D=m;z<D.length;z++){var J=D[z],$=Qr["idb://".concat(f,"/").concat(J)];if($){var K=l.table(J),W=$.optimisticOps.filter(function(Le){return Le.trans===P});if(P._explicit&&B&&P.mutatedParts)for(var q=0,Z=Object.values($.queries.query);q<Z.length;q++)for(var ne=0,re=(Oe=Z[q]).slice();ne<re.length;ne++)nl((Ee=re[ne]).obsSet,P.mutatedParts)&&(ge(Oe,Ee),Ee.subscribers.forEach(function(Le){return j.add(Le)}));else if(0<W.length){$.optimisticOps=$.optimisticOps.filter(function(Le){return Le.trans!==P});for(var ce=0,ke=Object.values($.queries.query);ce<ke.length;ce++)for(var Oe,Ee,Ce,Re=0,Te=(Oe=ke[ce]).slice();Re<Te.length;Re++)(Ee=Te[Re]).res!=null&&P.mutatedParts&&(B&&!Ee.dirty?(Ce=Object.isFrozen(Ee.res),Ce=cp(Ee.res,Ee.req,W,K,Ee,Ce),Ee.dirty?(ge(Oe,Ee),Ee.subscribers.forEach(function(Le){return j.add(Le)})):Ce!==Ee.res&&(Ee.res=Ce,Ee.promise=De.resolve({result:Ce}))):(Ee.dirty&&ge(Oe,Ee),Ee.subscribers.forEach(function(Le){return j.add(Le)})))}}}j.forEach(function(Le){return Le()})}}},P.addEventListener("abort",S(!1),{signal:T}),P.addEventListener("error",S(!1),{signal:T}),P.addEventListener("complete",S(!0),{signal:T})),P},table:function(m){var b=l.table(m),S=b.schema.primaryKey;return r(r({},b),{mutate:function(A){var T=je.trans;if(S.outbound||T.db._options.cache==="disabled"||T.explicit||T.idbtrans.mode!=="readwrite")return b.mutate(A);var P=Qr["idb://".concat(f,"/").concat(m)];return P?(T=b.mutate(A),A.type!=="add"&&A.type!=="put"||!(50<=A.values.length||ul(S,A).some(function(B){return B==null}))?(P.optimisticOps.push(A),A.mutatedParts&&Na(A.mutatedParts),T.then(function(B){0<B.numFailures&&(ge(P.optimisticOps,A),(B=up(0,A,B))&&P.optimisticOps.push(B),A.mutatedParts&&Na(A.mutatedParts))}),T.catch(function(){ge(P.optimisticOps,A),A.mutatedParts&&Na(A.mutatedParts)})):T.then(function(B){var j=up(0,r(r({},A),{values:A.values.map(function(z,D){var J;return B.failures[D]?z:(z=(J=S.keyPath)!==null&&J!==void 0&&J.includes(".")?qe(z):r({},z),ee(z,S.keyPath,B.results[D]),z)})}),B);P.optimisticOps.push(j),queueMicrotask(function(){return A.mutatedParts&&Na(A.mutatedParts)})}),T):b.mutate(A)},query:function(A){if(!op(je,b)||!ap("query",A))return b.query(A);var T=((j=je.trans)===null||j===void 0?void 0:j.db._options.cache)==="immutable",D=je,P=D.requery,B=D.signal,j=function(K,W,q,Z){var ne=Qr["idb://".concat(K,"/").concat(W)];if(!ne)return[];if(!(W=ne.queries[q]))return[null,!1,ne,null];var re=W[(Z.query?Z.query.index.name:null)||""];if(!re)return[null,!1,ne,null];switch(q){case"query":var ce=re.find(function(ke){return ke.req.limit===Z.limit&&ke.req.values===Z.values&&lp(ke.req.query.range,Z.query.range)});return ce?[ce,!0,ne,re]:[re.find(function(ke){return("limit"in ke.req?ke.req.limit:1/0)>=Z.limit&&(!Z.values||ke.req.values)&&z0(ke.req.query.range,Z.query.range)}),!1,ne,re];case"count":return ce=re.find(function(ke){return lp(ke.req.query.range,Z.query.range)}),[ce,!!ce,ne,re]}}(f,m,"query",A),z=j[0],D=j[1],J=j[2],$=j[3];return z&&D?z.obsSet=A.obsSet:(D=b.query(A).then(function(K){var W=K.result;if(z&&(z.res=W),T){for(var q=0,Z=W.length;q<Z;++q)Object.freeze(W[q]);Object.freeze(W)}else K.result=qe(W);return K}).catch(function(K){return $&&z&&ge($,z),Promise.reject(K)}),z={obsSet:A.obsSet,promise:D,subscribers:new Set,type:"query",req:A,dirty:!1},$?$.push(z):($=[z],(J=J||(Qr["idb://".concat(f,"/").concat(m)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[A.query.index.name||""]=$)),G0(z,$,P,B),z.promise.then(function(K){return{result:cp(K.result,A,J==null?void 0:J.optimisticOps,b,z,T)}})}})}})}};function Oa(l,f){return new Proxy(l,{get:function(m,b,S){return b==="db"?f:Reflect.get(m,b,S)}})}var er=(Dt.prototype.version=function(l){if(isNaN(l)||l<.1)throw new Ae.Type("Given version is not a positive number");if(l=Math.round(10*l)/10,this.idbdb||this._state.isBeingOpened)throw new Ae.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,l);var f=this._versions,m=f.filter(function(b){return b._cfg.version===l})[0];return m||(m=new this.Version(l),f.push(m),f.sort(L0),m.stores({}),this._state.autoSchema=!1,m)},Dt.prototype._whenReady=function(l){var f=this;return this.idbdb&&(this._state.openComplete||je.letThrough||this._vip)?l():new De(function(m,b){if(f._state.openComplete)return b(new Ae.DatabaseClosed(f._state.dbOpenError));if(!f._state.isBeingOpened){if(!f._state.autoOpen)return void b(new Ae.DatabaseClosed);f.open().catch(Ie)}f._state.dbReadyPromise.then(m,b)}).then(l)},Dt.prototype.use=function(l){var f=l.stack,m=l.create,b=l.level,S=l.name;return S&&this.unuse({stack:f,name:S}),l=this._middlewares[f]||(this._middlewares[f]=[]),l.push({stack:f,create:m,level:b==null?10:b,name:S}),l.sort(function(A,T){return A.level-T.level}),this},Dt.prototype.unuse=function(l){var f=l.stack,m=l.name,b=l.create;return f&&this._middlewares[f]&&(this._middlewares[f]=this._middlewares[f].filter(function(S){return b?S.create!==b:!!m&&S.name!==m})),this},Dt.prototype.open=function(){var l=this;return Yr(vr,function(){return j0(l)})},Dt.prototype._close=function(){var l=this._state,f=Bi.indexOf(this);if(0<=f&&Bi.splice(f,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}l.isBeingOpened||(l.dbReadyPromise=new De(function(m){l.dbReadyResolve=m}),l.openCanceller=new De(function(m,b){l.cancelOpen=b}))},Dt.prototype.close=function(m){var f=(m===void 0?{disableAutoOpen:!0}:m).disableAutoOpen,m=this._state;f?(m.isBeingOpened&&m.cancelOpen(new Ae.DatabaseClosed),this._close(),m.autoOpen=!1,m.dbOpenError=new Ae.DatabaseClosed):(this._close(),m.autoOpen=this._options.autoOpen||m.isBeingOpened,m.openComplete=!1,m.dbOpenError=null)},Dt.prototype.delete=function(l){var f=this;l===void 0&&(l={disableAutoOpen:!0});var m=0<arguments.length&&typeof arguments[0]!="object",b=this._state;return new De(function(S,A){function T(){f.close(l);var P=f._deps.indexedDB.deleteDatabase(f.name);P.onsuccess=Ot(function(){var B,j,z;B=f._deps,j=f.name,z=B.indexedDB,B=B.IDBKeyRange,Zc(z)||j===ma||Qc(z,B).delete(j).catch(Ie),S()}),P.onerror=Hn(A),P.onblocked=f._fireOnBlocked}if(m)throw new Ae.InvalidArgument("Invalid closeOptions argument to db.delete()");b.isBeingOpened?b.dbReadyPromise.then(T):T()})},Dt.prototype.backendDB=function(){return this.idbdb},Dt.prototype.isOpen=function(){return this.idbdb!==null},Dt.prototype.hasBeenClosed=function(){var l=this._state.dbOpenError;return l&&l.name==="DatabaseClosed"},Dt.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Dt.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Dt.prototype,"tables",{get:function(){var l=this;return o(this._allTables).map(function(f){return l._allTables[f]})},enumerable:!1,configurable:!0}),Dt.prototype.transaction=function(){var l=function(f,m,b){var S=arguments.length;if(S<2)throw new Ae.InvalidArgument("Too few arguments");for(var A=new Array(S-1);--S;)A[S-1]=arguments[S];return b=A.pop(),[f,H(A),b]}.apply(this,arguments);return this._transaction.apply(this,l)},Dt.prototype._transaction=function(l,f,m){var b=this,S=je.trans;S&&S.db===this&&l.indexOf("!")===-1||(S=null);var A,T,P=l.indexOf("?")!==-1;l=l.replace("!","").replace("?","");try{if(T=f.map(function(j){if(j=j instanceof b.Table?j.name:j,typeof j!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return j}),l=="r"||l===$c)A=$c;else{if(l!="rw"&&l!=jc)throw new Ae.InvalidArgument("Invalid transaction mode: "+l);A=jc}if(S){if(S.mode===$c&&A===jc){if(!P)throw new Ae.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");S=null}S&&T.forEach(function(j){if(S&&S.storeNames.indexOf(j)===-1){if(!P)throw new Ae.SubTransaction("Table "+j+" not included in parent transaction.");S=null}}),P&&S&&!S.active&&(S=null)}}catch(j){return S?S._promise(null,function(z,D){D(j)}):Pt(j)}var B=function j(z,D,J,$,K){return De.resolve().then(function(){var W=je.transless||je,q=z._createTransaction(D,J,z._dbSchema,$);if(q.explicit=!0,W={trans:q,transless:W},$)q.idbtrans=$.idbtrans;else try{q.create(),q.idbtrans._explicit=!0,z._state.PR1398_maxLoop=3}catch(re){return re.name===Ne.InvalidState&&z.isOpen()&&0<--z._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),z.close({disableAutoOpen:!1}),z.open().then(function(){return j(z,D,J,null,K)})):Pt(re)}var Z,ne=de(K);return ne&&Mi(),W=De.follow(function(){var re;(Z=K.call(q,q))&&(ne?(re=br.bind(null,null),Z.then(re,re)):typeof Z.next=="function"&&typeof Z.throw=="function"&&(Z=ol(Z)))},W),(Z&&typeof Z.then=="function"?De.resolve(Z).then(function(re){return q.active?re:Pt(new Ae.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):W.then(function(){return Z})).then(function(re){return $&&q._resolve(),q._completion.then(function(){return re})}).catch(function(re){return q._reject(re),Pt(re)})})}.bind(null,this,A,T,S,m);return S?S._promise(A,B,"lock"):je.trans?Yr(je.transless,function(){return b._whenReady(B)}):this._whenReady(B)},Dt.prototype.table=function(l){if(!h(this._allTables,l))throw new Ae.InvalidTable("Table ".concat(l," does not exist"));return this._allTables[l]},Dt);function Dt(l,f){var m=this;this._middlewares={},this.verno=0;var b=Dt.dependencies;this._options=f=r({addons:Dt.addons,autoOpen:!0,indexedDB:b.indexedDB,IDBKeyRange:b.IDBKeyRange,cache:"cloned"},f),this._deps={indexedDB:f.indexedDB,IDBKeyRange:f.IDBKeyRange},b=f.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var S,A,T,P,B,j={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ie,dbReadyPromise:null,cancelOpen:Ie,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:f.autoOpen};j.dbReadyPromise=new De(function(D){j.dbReadyResolve=D}),j.openCanceller=new De(function(D,J){j.cancelOpen=J}),this._state=j,this.name=l,this.on=Ls(this,"populate","blocked","versionchange","close",{ready:[g,Ie]}),this.on.ready.subscribe=O(this.on.ready.subscribe,function(D){return function(J,$){Dt.vip(function(){var K,W=m._state;W.openComplete?(W.dbOpenError||De.resolve().then(J),$&&D(J)):W.onReadyBeingFired?(W.onReadyBeingFired.push(J),$&&D(J)):(D(J),K=m,$||D(function q(){K.on.ready.unsubscribe(J),K.on.ready.unsubscribe(q)}))})}}),this.Collection=(S=this,Ms(O0.prototype,function(Z,q){this.db=S;var $=jh,K=null;if(q)try{$=q()}catch(ne){K=ne}var W=Z._ctx,q=W.table,Z=q.hook.reading.fire;this._ctx={table:q,index:W.index,isPrimKey:!W.index||q.schema.primKey.keyPath&&W.index===q.schema.primKey.name,range:$,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:K,or:W.or,valueMapper:Z!==at?Z:null}})),this.Table=(A=this,Ms(Kh.prototype,function(D,J,$){this.db=A,this._tx=$,this.name=D,this.schema=J,this.hook=A._allTables[D]?A._allTables[D].hook:Ls(null,{creating:[lt,Ie],reading:[ct,at],updating:[x,Ie],deleting:[vt,Ie]})})),this.Transaction=(T=this,Ms(P0.prototype,function(D,J,$,K,W){var q=this;this.db=T,this.mode=D,this.storeNames=J,this.schema=$,this.chromeTransactionDurability=K,this.idbtrans=null,this.on=Ls(this,"complete","error","abort"),this.parent=W||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new De(function(Z,ne){q._resolve=Z,q._reject=ne}),this._completion.then(function(){q.active=!1,q.on.complete.fire()},function(Z){var ne=q.active;return q.active=!1,q.on.error.fire(Z),q.parent?q.parent._reject(Z):ne&&q.idbtrans&&q.idbtrans.abort(),Pt(Z)})})),this.Version=(P=this,Ms($0.prototype,function(D){this.db=P,this._cfg={version:D,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(B=this,Ms(Jh.prototype,function(D,J,$){if(this.db=B,this._ctx={table:D,index:J===":id"?null:J,or:$},this._cmp=this._ascending=ut,this._descending=function(K,W){return ut(W,K)},this._max=function(K,W){return 0<ut(K,W)?K:W},this._min=function(K,W){return ut(K,W)<0?K:W},this._IDBKeyRange=B._deps.IDBKeyRange,!this._IDBKeyRange)throw new Ae.MissingAPI})),this.on("versionchange",function(D){0<D.newVersion?console.warn("Another connection wants to upgrade database '".concat(m.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(m.name,"'. Closing db now to resume the delete request.")),m.close({disableAutoOpen:!1})}),this.on("blocked",function(D){!D.newVersion||D.newVersion<D.oldVersion?console.warn("Dexie.delete('".concat(m.name,"') was blocked")):console.warn("Upgrade '".concat(m.name,"' blocked by other connection holding version ").concat(D.oldVersion/10))}),this._maxKey=Vs(f.IDBKeyRange),this._createTransaction=function(D,J,$,K){return new m.Transaction(D,J,$,m._options.chromeTransactionDurability,K)},this._fireOnBlocked=function(D){m.on("blocked").fire(D),Bi.filter(function(J){return J.name===m.name&&J!==m&&!J._state.vcFired}).map(function(J){return J.on("versionchange").fire(D)})},this.use(H0),this.use(W0),this.use(K0),this.use(V0),this.use(q0);var z=new Proxy(this,{get:function(D,J,$){if(J==="_vip")return!0;if(J==="table")return function(W){return Oa(m.table(W),z)};var K=Reflect.get(D,J,$);return K instanceof Kh?Oa(K,z):J==="tables"?K.map(function(W){return Oa(W,z)}):J==="_createTransaction"?function(){return Oa(K.apply(this,arguments),z)}:K}});this.vip=z,b.forEach(function(D){return D(m)})}var Ia,Sn=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",Y0=(ll.prototype.subscribe=function(l,f,m){return this._subscribe(l&&typeof l!="function"?l:{next:l,error:f,complete:m})},ll.prototype[Sn]=function(){return this},ll);function ll(l){this._subscribe=l}try{Ia={indexedDB:s.indexedDB||s.mozIndexedDB||s.webkitIndexedDB||s.msIndexedDB,IDBKeyRange:s.IDBKeyRange||s.webkitIDBKeyRange}}catch{Ia={indexedDB:null,IDBKeyRange:null}}function dp(l){var f,m=!1,b=new Y0(function(S){var A=de(l),T,P=!1,B={},j={},z={get closed(){return P},unsubscribe:function(){P||(P=!0,T&&T.abort(),D&&Sr.storagemutated.unsubscribe($))}};S.start&&S.start(z);var D=!1,J=function(){return Bc(K)},$=function(W){xa(B,W),nl(j,B)&&J()},K=function(){var W,q,Z;!P&&Ia.indexedDB&&(B={},W={},T&&T.abort(),T=new AbortController,Z=function(ne){var re=Ui();try{A&&Mi();var ce=yr(l,ne);return ce=A?ce.finally(br):ce}finally{re&&Li()}}(q={subscr:W,signal:T.signal,requery:J,querier:l,trans:null}),Promise.resolve(Z).then(function(ne){m=!0,f=ne,P||q.signal.aborted||(B={},function(re){for(var ce in re)if(h(re,ce))return;return 1}(j=W)||D||(Sr(js,$),D=!0),Bc(function(){return!P&&S.next&&S.next(ne)}))},function(ne){m=!1,["DatabaseClosedError","AbortError"].includes(ne==null?void 0:ne.name)||P||Bc(function(){P||S.error&&S.error(ne)})}))};return setTimeout(J,0),z});return b.hasValue=function(){return m},b.getValue=function(){return f},b}var Zr=er;function dl(l){var f=kr;try{kr=!0,Sr.storagemutated.fire(l),sl(l,!0)}finally{kr=f}}p(Zr,r(r({},Ke),{delete:function(l){return new Zr(l,{addons:[]}).delete()},exists:function(l){return new Zr(l,{addons:[]}).open().then(function(f){return f.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(l){try{return f=Zr.dependencies,m=f.indexedDB,f=f.IDBKeyRange,(Zc(m)?Promise.resolve(m.databases()).then(function(b){return b.map(function(S){return S.name}).filter(function(S){return S!==ma})}):Qc(m,f).toCollection().primaryKeys()).then(l)}catch{return Pt(new Ae.MissingAPI)}var f,m},defineClass:function(){return function(l){c(this,l)}},ignoreTransaction:function(l){return je.trans?Yr(je.transless,l):l()},vip:el,async:function(l){return function(){try{var f=ol(l.apply(this,arguments));return f&&typeof f.then=="function"?f:De.resolve(f)}catch(m){return Pt(m)}}},spawn:function(l,f,m){try{var b=ol(l.apply(m,f||[]));return b&&typeof b.then=="function"?b:De.resolve(b)}catch(S){return Pt(S)}},currentTransaction:{get:function(){return je.trans||null}},waitFor:function(l,f){return f=De.resolve(typeof l=="function"?Zr.ignoreTransaction(l):l).timeout(f||6e4),je.trans?je.trans.waitFor(f):f},Promise:De,debug:{get:function(){return N},set:function(l){V(l)}},derive:w,extend:c,props:p,override:O,Events:Ls,on:Sr,liveQuery:dp,extendObservabilitySet:xa,getByKeyPath:Y,setByKeyPath:ee,delByKeyPath:function(l,f){typeof f=="string"?ee(l,f,void 0):"length"in f&&[].map.call(f,function(m){ee(l,m,void 0)})},shallowClone:F,deepClone:qe,getObjectDiff:al,cmp:ut,asap:M,minKey:-1/0,addons:[],connections:Bi,errnames:Ne,dependencies:Ia,cache:Qr,semVer:"4.0.11",version:"4.0.11".split(".").map(function(l){return parseInt(l)}).reduce(function(l,f,m){return l+f/Math.pow(10,2*m)})})),Zr.maxKey=Vs(Zr.dependencies.IDBKeyRange),typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(Sr(js,function(l){kr||(l=new CustomEvent(Kc,{detail:l}),kr=!0,dispatchEvent(l),kr=!1)}),addEventListener(Kc,function(l){l=l.detail,kr||dl(l)}));var Vi,kr=!1,fp=function(){};return typeof BroadcastChannel!="undefined"&&((fp=function(){(Vi=new BroadcastChannel(Kc)).onmessage=function(l){return l.data&&dl(l.data)}})(),typeof Vi.unref=="function"&&Vi.unref(),Sr(js,function(l){kr||Vi.postMessage(l)})),typeof addEventListener!="undefined"&&(addEventListener("pagehide",function(l){if(!er.disableBfCache&&l.persisted){N&&console.debug("Dexie: handling persisted pagehide"),Vi!=null&&Vi.close();for(var f=0,m=Bi;f<m.length;f++)m[f].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(l){!er.disableBfCache&&l.persisted&&(N&&console.debug("Dexie: handling persisted pageshow"),fp(),dl({all:new Wt(-1/0,[[]])}))})),De.rejectionMapper=function(l,f){return!l||l instanceof Fe||l instanceof TypeError||l instanceof SyntaxError||!l.name||!Ze[l.name]?l:(f=new Ze[l.name](f||l.message,l),"stack"in l&&v(f,"stack",{get:function(){return this.inner.stack}}),f)},V(N),r(er,Object.freeze({__proto__:null,Dexie:er,liveQuery:dp,Entity:Vh,cmp:ut,PropModification:Bs,replacePrefix:function(l,f){return new Bs({replacePrefix:[l,f]})},add:function(l){return new Bs({add:l})},remove:function(l){return new Bs({remove:l})},default:er,RangeSet:Wt,mergeRanges:Ks,rangesOverlap:tp}),{default:er}),er})}(fu)),fu.exports}var iO=rO();const Sf=Hr(iO),Wg=Symbol.for("Dexie"),Fu=globalThis[Wg]||(globalThis[Wg]=Sf);if(Sf.semVer!==Fu.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Sf.semVer} and ${Fu.semVer}`);const{liveQuery:UU,mergeRanges:LU,rangesOverlap:MU,RangeSet:BU,cmp:$U,Entity:jU,PropModification:VU,replacePrefix:qU,add:HU,remove:KU}=Fu;class bw extends Fu{constructor(n,r,i={}){super(n);Pe(this,"logs");const s={logs:"id, level, time, source, account"};this.version(r).stores({...s,...i})}}class sO extends bw{constructor(){super("nizza",1)}}class ww{constructor(e,n){Pe(this,"logger");Pe(this,"channel");Pe(this,"listeners",new Map);Pe(this,"eventQueue",new Map);this.logger=n.child("EventBus");try{this.logger.debug(`Creating BroadcastChannel with name "${e}"`),this.channel=new BroadcastChannel(e),this.channel.onmessage=r=>this.handleMessage(r),this.channel.onmessageerror=r=>this.logger.error("NizzaBroadcastChannel error:",r)}catch(r){throw this.logger.error("Failed to create NizzaBroadcastChannel:",r),r}}on(e,n){return this.logger.debug(`Subscribing to pattern "${e}"`),this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,r={}){this.logger.debug(`Emitting event "${e}" with data`,n),this.emitEvent(e,n,r)}handleMessage(e){const n=e.data,{name:r}=n;this.logger.debug(`Received message "${r}" with data`,n);for(const[i,s]of this.listeners.entries())this.matchWildcard(i,r)&&(this.logger.debug(`Matching pattern "${i}" for event "${r}"`),s.forEach(o=>o({...n,wildcard:i})))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const i=new Error("Invalid arguments");throw this.logger.error(i),i}this.listeners.has(e)||(this.logger.debug(`Adding new pattern "${e}"`),this.listeners.set(e,new Set));const r=Array.from(this.eventQueue).filter(([i])=>{const s=this.matchWildcard(e,i);return s&&(this.eventQueue.delete(i),this.logger.debug(`Dequeued pending events for "${i}".`)),s}).flatMap(([,i])=>i);for(const[i,s]of this.listeners.entries())this.matchWildcard(i,e)&&(this.logger.debug(`Adding listener to pattern "${i}"`),s.add(n),r.length&&(this.logger.debug(`Delivering pending events for "${e}".`),r.forEach(o=>{n({...o,wildcard:i})})))}emitEvent(e,n,r){if(typeof e!="string"){const o=new Error("Invalid arguments");throw this.logger.error(o),o}const i={name:e,data:n,attrs:r},s=Array.from(this.getMatchingListeners(e));if(s.length){this.logger.debug(`Delivering event "${e}" to listeners`);for(const[o,a]of s)a({...i,wildcard:o})}else this.logger.debug(`No listeners for event "${e}", enqueuing`),this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(i);this.logger.debug("Posting message to channel",i),this.channel.postMessage(i)}*getMatchingListeners(e){this.logger.debug(`Getting matching listeners for event "${e}"`);for(const[n,r]of this.listeners.entries())if(this.matchWildcard(n,e))for(const i of r)yield[n,i]}unsubscribeFromEvent(e,n){if(this.listeners.has(e)){this.logger.debug(`Unsubscribing from event "${e}"`);const r=this.listeners.get(e);r.delete(n),r.size===0&&(this.logger.debug(`No more listeners for event "${e}", deleting`),this.listeners.delete(e))}}matchWildcard(e,n){const r=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*"),s=new RegExp(`^${r}$`).test(n);return this.logger.debug(`Wildcard "${e}" matches with pattern "${n}": ${s}`),s}}var oo={exports:{}},id,Yg;function oO(){if(Yg)return id;Yg=1;function t(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}id=e;function e(n,r,i){var s=i&&i.stringify||t,o=1;if(typeof n=="object"&&n!==null){var a=r.length+o;if(a===1)return n;var c=new Array(a);c[0]=s(n);for(var u=1;u<a;u++)c[u]=s(r[u]);return c.join(" ")}if(typeof n!="string")return n;var d=r.length;if(d===0)return n;for(var h="",p=1-o,y=-1,v=n&&n.length||0,w=0;w<v;){if(n.charCodeAt(w)===37&&w+1<v){switch(y=y>-1?y:0,n.charCodeAt(w+1)){case 100:case 102:if(p>=d||r[p]==null)break;y<w&&(h+=n.slice(y,w)),h+=Number(r[p]),y=w+2,w++;break;case 105:if(p>=d||r[p]==null)break;y<w&&(h+=n.slice(y,w)),h+=Math.floor(Number(r[p])),y=w+2,w++;break;case 79:case 111:case 106:if(p>=d||r[p]===void 0)break;y<w&&(h+=n.slice(y,w));var k=typeof r[p];if(k==="string"){h+="'"+r[p]+"'",y=w+2,w++;break}if(k==="function"){h+=r[p].name||"<anonymous>",y=w+2,w++;break}h+=s(r[p]),y=w+2,w++;break;case 115:if(p>=d)break;y<w&&(h+=n.slice(y,w)),h+=String(r[p]),y=w+2,w++;break;case 37:y<w&&(h+=n.slice(y,w)),h+="%",y=w+2,w++,p--;break}++p}++w}return y===-1?n:(y<v&&(h+=n.slice(y)),h)}return id}var Jg;function aO(){if(Jg)return oo.exports;Jg=1;const t=oO();oo.exports=d;const e=G().console||{},n={mapHttpRequest:ee,mapHttpResponse:ee,wrapRequestSerializer:F,wrapResponseSerializer:F,wrapErrorSerializer:F,req:ee,res:ee,err:M,errWithCause:M};function r(R,Q){return R==="silent"?1/0:Q.levels.values[R]}const i=Symbol("pino.logFuncs"),s=Symbol("pino.hierarchy"),o={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function a(R,Q){const te={logger:Q,parent:R[s]};Q[s]=te}function c(R,Q,te){const ge={};Q.forEach(ve=>{ge[ve]=te[ve]?te[ve]:e[ve]||e[o[ve]||"log"]||se}),R[i]=ge}function u(R,Q){return Array.isArray(R)?R.filter(function(ge){return ge!=="!stdSerializers.err"}):R===!0?Object.keys(Q):!1}function d(R){R=R||{},R.browser=R.browser||{};const Q=R.browser.transmit;if(Q&&typeof Q.send!="function")throw Error("pino: transmit option must have a send function");const te=R.browser.write||e;R.browser.write&&(R.browser.asObject=!0);const ge=R.serializers||{},ve=u(R.browser.serialize,ge);let U=R.browser.serialize;Array.isArray(R.browser.serialize)&&R.browser.serialize.indexOf("!stdSerializers.err")>-1&&(U=!1);const de=Object.keys(R.customLevels||{}),Se=["error","fatal","warn","info","debug","trace"].concat(de);typeof te=="function"&&Se.forEach(function(Ze){te[Ze]=te}),(R.enabled===!1||R.browser.disabled)&&(R.level="silent");const Fe=R.level||"info",L=Object.create(te);L.log||(L.log=se),c(L,Se,te),a({},L),Object.defineProperty(L,"levelVal",{get:He}),Object.defineProperty(L,"level",{get:Ne,set:Ve});const X={transmit:Q,serialize:ve,asObject:R.browser.asObject,formatters:R.browser.formatters,levels:Se,timestamp:Y(R),messageKey:R.messageKey||"msg",onChild:R.onChild||se};L.levels=h(R),L.level=Fe,L.setMaxListeners=L.getMaxListeners=L.emit=L.addListener=L.on=L.prependListener=L.once=L.prependOnceListener=L.removeListener=L.removeAllListeners=L.listeners=L.listenerCount=L.eventNames=L.write=L.flush=se,L.serializers=ge,L._serialize=ve,L._stdErrSerialize=U,L.child=function(...Ze){return Ae.call(this,X,...Ze)},Q&&(L._logEvent=I());function He(){return r(this.level,this)}function Ne(){return this._level}function Ve(Ze){if(Ze!=="silent"&&!this.levels.values[Ze])throw Error("unknown level "+Ze);this._level=Ze,v(this,X,L,"error"),v(this,X,L,"fatal"),v(this,X,L,"warn"),v(this,X,L,"info"),v(this,X,L,"debug"),v(this,X,L,"trace"),de.forEach(Ke=>{v(this,X,L,Ke)})}function Ae(Ze,Ke,Ie){if(!Ke)throw new Error("missing bindings for child Pino");Ie=Ie||{},ve&&Ke.serializers&&(Ie.serializers=Ke.serializers);const at=Ie.serializers;if(ve&&at){var ct=Object.assign({},ge,at),Ue=R.browser.serialize===!0?Object.keys(ct):ve;delete Ke.serializers,E([Ke],Ue,ct,this._stdErrSerialize)}function lt(x){this._childLevel=(x._childLevel|0)+1,this.bindings=Ke,ct&&(this.serializers=ct,this._serialize=Ue),Q&&(this._logEvent=I([].concat(x._logEvent.bindings,Ke)))}lt.prototype=this;const vt=new lt(this);return a(this,vt),vt.child=function(...x){return Ae.call(this,Ze,...x)},vt.level=Ie.level||this.level,Ze.onChild(vt),vt}return L}function h(R){const Q=R.customLevels||{},te=Object.assign({},d.levels.values,Q),ge=Object.assign({},d.levels.labels,p(Q));return{values:te,labels:ge}}function p(R){const Q={};return Object.keys(R).forEach(function(te){Q[R[te]]=te}),Q}d.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},d.stdSerializers=n,d.stdTimeFunctions=Object.assign({},{nullTime:H,epochTime:ie,unixTime:xe,isoTime:qe});function y(R){const Q=[];R.bindings&&Q.push(R.bindings);let te=R[s];for(;te.parent;)te=te.parent,te.logger.bindings&&Q.push(te.logger.bindings);return Q.reverse()}function v(R,Q,te,ge){if(Object.defineProperty(R,ge,{value:r(R.level,te)>r(ge,te)?se:te[i][ge],writable:!0,enumerable:!0,configurable:!0}),R[ge]===se){if(!Q.transmit)return;const U=Q.transmit.level||R.level,de=r(U,te);if(r(ge,te)<de)return}R[ge]=k(R,Q,te,ge);const ve=y(R);ve.length!==0&&(R[ge]=w(ve,R[ge]))}function w(R,Q){return function(){return Q.apply(this,[...R,...arguments])}}function k(R,Q,te,ge){return function(ve){return function(){const de=Q.timestamp(),Se=new Array(arguments.length),Fe=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var L=0;L<Se.length;L++)Se[L]=arguments[L];var X=!1;if(Q.serialize&&(E(Se,this._serialize,this.serializers,this._stdErrSerialize),X=!0),Q.asObject||Q.formatters?ve.call(Fe,C(this,ge,Se,de,Q)):ve.apply(Fe,Se),Q.transmit){const He=Q.transmit.level||R._level,Ne=r(He,te),Ve=r(ge,te);if(Ve<Ne)return;O(this,{ts:de,methodLevel:ge,methodValue:Ve,transmitValue:te.levels.values[Q.transmit.level||R._level],send:Q.transmit.send,val:r(R._level,te)},Se,X)}}}(R[i][ge])}function C(R,Q,te,ge,ve){const{level:U,log:de=Ne=>Ne}=ve.formatters||{},Se=te.slice();let Fe=Se[0];const L={};if(ge&&(L.time=ge),U){const Ne=U(Q,R.levels.values[Q]);Object.assign(L,Ne)}else L.level=R.levels.values[Q];let X=(R._childLevel|0)+1;if(X<1&&(X=1),Fe!==null&&typeof Fe=="object"){for(;X--&&typeof Se[0]=="object";)Object.assign(L,Se.shift());Fe=Se.length?t(Se.shift(),Se):void 0}else typeof Fe=="string"&&(Fe=t(Se.shift(),Se));return Fe!==void 0&&(L[ve.messageKey]=Fe),de(L)}function E(R,Q,te,ge){for(const ve in R)if(ge&&R[ve]instanceof Error)R[ve]=d.stdSerializers.err(R[ve]);else if(typeof R[ve]=="object"&&!Array.isArray(R[ve])&&Q)for(const U in R[ve])Q.indexOf(U)>-1&&U in te&&(R[ve][U]=te[U](R[ve][U]))}function O(R,Q,te,ge=!1){const ve=Q.send,U=Q.ts,de=Q.methodLevel,Se=Q.methodValue,Fe=Q.val,L=R._logEvent.bindings;ge||E(te,R._serialize||Object.keys(R.serializers),R.serializers,R._stdErrSerialize===void 0?!0:R._stdErrSerialize),R._logEvent.ts=U,R._logEvent.messages=te.filter(function(X){return L.indexOf(X)===-1}),R._logEvent.level.label=de,R._logEvent.level.value=Se,ve(de,R._logEvent,Fe),R._logEvent=I(L)}function I(R){return{ts:0,messages:[],bindings:R||[],level:{label:"",value:0}}}function M(R){const Q={type:R.constructor.name,msg:R.message,stack:R.stack};for(const te in R)Q[te]===void 0&&(Q[te]=R[te]);return Q}function Y(R){return typeof R.timestamp=="function"?R.timestamp:R.timestamp===!1?H:ie}function ee(){return{}}function F(R){return R}function se(){}function H(){return!1}function ie(){return Date.now()}function xe(){return Math.round(Date.now()/1e3)}function qe(){return new Date(Date.now()).toISOString()}function G(){function R(Q){return typeof Q!="undefined"&&Q}try{return typeof globalThis!="undefined"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return R(self)||R(window)||R(this)||{}}}return oo.exports.default=d,oo.exports.pino=d,oo.exports}var uO=aO();const cO=Hr(uO),qt=[];for(let t=0;t<256;++t)qt.push((t+256).toString(16).slice(1));function lO(t,e=0){return(qt[t[e+0]]+qt[t[e+1]]+qt[t[e+2]]+qt[t[e+3]]+"-"+qt[t[e+4]]+qt[t[e+5]]+"-"+qt[t[e+6]]+qt[t[e+7]]+"-"+qt[t[e+8]]+qt[t[e+9]]+"-"+qt[t[e+10]]+qt[t[e+11]]+qt[t[e+12]]+qt[t[e+13]]+qt[t[e+14]]+qt[t[e+15]]).toLowerCase()}let sd;const dO=new Uint8Array(16);function fO(){if(!sd){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sd=crypto.getRandomValues.bind(crypto)}return sd(dO)}const hO=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xg={randomUUID:hO};function pO(t,e,n){var i,s,o;if(Xg.randomUUID&&!t)return Xg.randomUUID();t=t||{};const r=(o=(s=t.random)!=null?s:(i=t.rng)==null?void 0:i.call(t))!=null?o:fO();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lO(r)}const mO=4;var _w=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(_w||{});const gO={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Sw={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var kw=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(kw||{}),Rt=(t=>(t.TRACE="trace",t.DEBUG="debug",t.INFO="info",t.WARN="warn",t.ERROR="error",t.FATAL="fatal",t))(Rt||{});const At={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Ew={[At.trace]:"trace",[At.debug]:"debug",[At.info]:"info",[At.warn]:"warn",[At.error]:"error",[At.fatal]:"fatal"};var Aw=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(Aw||{}),Cw=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(Cw||{});function xw(t){return Object.values(Rt).includes(String(t).toLowerCase())}class fh extends Error{constructor(e){super(`Invalid log level: ${e}`),this.name="InvalidLogLevelError"}}const Qt=class Qt{constructor(e){Pe(this,"instance");Pe(this,"httpLogger");Pe(this,"consoleLogger");Pe(this,"config");var a;this.config=e;const{source:n,levelService:r,metadata:i={},consoleLogger:s,httpLogger:o}=e;(a=Qt.root)!=null||(Qt.root=Qt.createRootLogger(s,o)),Qt.mergeGlobalMetadata(i),this.instance=Qt.root.child({source:n}),this.consoleLogger=s,this.httpLogger=o,this.setLevel(r.getLevel(n))}static createRootLogger(e,n){return cO({customLevels:At,browser:{write:r=>{const{payload:i,options:s,stack:o,...a}=r,c={...a,...i};s.silent||e.print(c,o),c.level>=At[Rt.WARN]&&n.save(c)}}})}static mergeGlobalMetadata(e={}){Qt.globalMetadata={...Qt.globalMetadata,...e}}child(e,n={}){return Qt.mergeGlobalMetadata(n),new Qt({source:`${this.config.source}:${e}`,levelService:this.config.levelService,consoleLogger:this.consoleLogger,httpLogger:this.httpLogger})}setLevel(e){this.instance.level=e}setMetadata(e){Qt.mergeGlobalMetadata(e)}formatLogEntry(e){const{content:n,stack:r,options:i={}}=e,{message:s,args:o=[]}=n,a=pO(),c={};let u;return s instanceof Error?(c.error={name:s.name,message:s.message,stack:s.stack},u=s.message):u=typeof s=="object"?JSON.stringify(s):String(s),o.forEach((h,p)=>this.formatArg(h,p,c)),{payload:{id:a,msg:u,data:c,...Qt.globalMetadata},options:i,stack:r}}formatArg(e,n,r){if(e instanceof Error){const i=r.error?`error${n+1}`:"error";r[i]={message:e.message,stack:e.stack,name:e.name}}else typeof e=="object"&&e!==null?Object.assign(r,e):r[`$${n}`]=String(e)}log(e,n){if(typeof this.instance[e]!="function")throw new fh(e);const r=this.formatLogEntry(n);this.instance[e](r)}trace(e){this.log("trace",e)}debug(e){this.log("debug",e)}info(e){this.log("info",e)}warn(e){this.log("warn",e)}error(e){this.log("error",e)}fatal(e){this.log("fatal",e)}get source(){return this.config.source}};Pe(Qt,"globalMetadata",{}),Pe(Qt,"root",null);let kf=Qt;const Qg={stackExclusionPatterns:/\b(PinoAdapter|ConsoleLogger|LoggerChain|Logger|Proxy|Child|pino\.js)\b/,themes:{dark:{baseStyles:{timestamp:"color: #A9A9A9; font-weight: normal;",source:"color: #B0B0B0; font-weight: normal;",context:"color: #FFFFFF; font-weight: bold;",defaultMessage:"color: #E5E5E5; font-weight: normal;"},levels:{[At[Rt.TRACE]]:"color: #778899; font-weight: bold;",[At[Rt.DEBUG]]:"color: #008B8B; font-weight: bold;",[At[Rt.INFO]]:"color: #00FFFF; font-weight: bold;",[At[Rt.WARN]]:"color: #FFD700; font-weight: bold;",[At[Rt.ERROR]]:"color: #FF4500; font-weight: bold;",[At[Rt.FATAL]]:"color: #FF0000; font-weight: bold; text-shadow: 1px 1px 1px black;"},messages:{[At[Rt.WARN]]:"color: #FFD700; font-weight: normal;",[At[Rt.ERROR]]:"color: #FF4500; font-weight: normal;",[At[Rt.FATAL]]:"color: #FF0000; font-weight: bold;"}},light:{baseStyles:{timestamp:"color: #4D4D4D; font-weight: normal;",source:"color: #666666; font-weight: normal;",context:"color: #000000; font-weight: bold;",defaultMessage:"color: #333333; font-weight: normal;"},levels:{[At[Rt.TRACE]]:"color: #6A5ACD; font-weight: bold;",[At[Rt.DEBUG]]:"color: #00509E; font-weight: bold;",[At[Rt.INFO]]:"color: #1E90FF; font-weight: bold;",[At[Rt.WARN]]:"color: #FFA500; font-weight: bold;",[At[Rt.ERROR]]:"color: #ff0033; font-weight: bold;",[At[Rt.FATAL]]:"color: #D80000; font-weight: bold; text-shadow: 1px 1px 1px #660000;"},messages:{[At[Rt.WARN]]:"color: #FFA500; font-weight: normal;",[At[Rt.ERROR]]:"color: #ff0033; font-weight: normal;",[At[Rt.FATAL]]:"color: #D80000; font-weight: bold;"}}}};class vO{constructor(){Pe(this,"theme");this.theme=this.initializeTheme(),this.setupThemeChangeListener()}initializeTheme(){const e=localStorage.getItem("log-theme");return e==="light"||e==="dark"?e:this.detectTheme()}detectTheme(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}setupThemeChangeListener(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{this.theme=e.matches?"dark":"light"})}static setTheme(e){localStorage.setItem("consoleLoggerTheme",e)}formatStack(e){return e.split(`
|
|
127
127
|
`).filter(n=>!Qg.stackExclusionPatterns.test(n)).map(n=>n.replace(/^Error\s*/,"").trim())}getStyles(e){const n=Qg.themes[this.theme];return{...n.baseStyles,level:n.levels[e]||n.baseStyles.defaultMessage,message:n.messages[e]||n.baseStyles.defaultMessage}}getTime(){return new Date().toLocaleTimeString("en-US",{hour12:!1})+`.${new Date().getMilliseconds().toString().padStart(3,"0")}`}print({level:e,source:n,msg:r,data:i},s){const[o,a,c]=n.split(":"),u=(Ew[e]||"UNKNOWN").toUpperCase(),d=c?`${c}: `:"",h=a?`:${a}`:"",p=this.getStyles(e);console.groupCollapsed(`%c${this.getTime()} %c${u} %c[${o}${h}] %c${d}%c${r}`,p.timestamp,p.level,p.source,p.context,p.message),i&&Object.keys(i).length&&console.log("Data:",i);const y=this.formatStack(s||new Error().stack);y.length&&console.log("Stack:",y.join(`
|
|
128
|
-
`)),console.groupEnd()}}const yO={endpoint:`${bs.apiUrls.restV2}/v1/telemetry/logs`,batchSize:500,flushInterval:10,maxRetries:5,retryBackoffFactor:2,maxPayloadSize:500};class hh{constructor(e){Pe(this,"config");Pe(this,"isFlushing",!1);Pe(this,"retryCount",0);Pe(this,"isFlushScheduled",!1);this.config=e,this.setupUnloadListener()}static create(e){const n={...yO,...e};if(!n.db)throw new Error("Invalid Dixie DB");if(!n.project)throw new Error("Project name is required");return new hh(n)}async save(e){const n=JSON.parse(JSON.stringify(e));await this.config.db.logs.add(n),this.scheduleFlush()}scheduleFlush(e=this.config.flushInterval*1e3){this.isFlushScheduled||this.isFlushing||(this.isFlushScheduled=!0,setTimeout(()=>{this.isFlushScheduled=!1,this.flush()},e))}async flush(){if(this.isFlushing)return;this.isFlushing=!0;let e=!1;try{await this.processLogsBatch(async r=>{await this.sendLogs(r),await this.deleteLogs(r)}),this.retryCount=0,e=!0}catch(r){this.logError("flush",r)}this.isFlushing=!1;const n=await this.hasPendingLogs();!e&&n?this.handleRetry():e&&n&&this.scheduleFlush()}async processLogsBatch(e){const n=await this.getLogsBatch(),r=this.splitLogsByPayloadSize(n);for(const i of r)await e(i)}async getLogsBatch(e=this.config.batchSize){return this.config.db.logs.orderBy("time").limit(e).toArray()}splitLogsByPayloadSize(e){let n=[],r=0;const i=[];return e.forEach(s=>{const o=JSON.stringify(s).length/1024;r+o>this.config.maxPayloadSize&&(i.push(n),n=[],r=0),n.push(s),r+=o}),n.length>0&&i.push(n),i}async sendLogs(e){const n=this.buildPayload(e);await xi({url:this.config.endpoint,method:"POST",body:n})}buildPayload(e){return JSON.stringify({project:this.config.project,logs:e})}async deleteLogs(e){const n=e.map(r=>r.id);await this.config.db.logs.bulkDelete(n)}logError(e,n){console.error(`[${e}]`,n)}handleRetry(){if(this.retryCount>=this.config.maxRetries)return;this.retryCount++;const e=this.config.flushInterval*Math.pow(this.config.retryBackoffFactor,this.retryCount)*1e3;this.scheduleFlush(e)}async hasPendingLogs(){return await this.config.db.logs.count()>0}setupUnloadListener(){window.addEventListener("beforeunload",async()=>{this.isFlushing||!await this.hasPendingLogs()||await this.processLogsBatch(async e=>{const n=this.buildPayload(e);navigator.sendBeacon(this.config.endpoint,n)?await this.deleteLogs(e):console.warn("Failed to send logs via sendBeacon; logs will remain in the database.")})})}}var od={},ad,Zg;function hc(){if(Zg)return ad;Zg=1;const t="\\\\/",e=`[^${t}]`,n="\\.",r="\\+",i="\\?",s="\\/",o="(?=.)",a="[^/]",c=`(?:${s}|$)`,u=`(?:^|${s})`,d=`${n}{1,2}${c}`,h=`(?!${n})`,p=`(?!${u}${d})`,y=`(?!${n}{0,1}${c})`,v=`(?!${d})`,w=`[^.${s}]`,k=`${a}*?`,E={DOT_LITERAL:n,PLUS_LITERAL:r,QMARK_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:o,QMARK:a,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:p,NO_DOT_SLASH:y,NO_DOTS_SLASH:v,QMARK_NO_DOT:w,STAR:k,START_ANCHOR:u,SEP:"/"},O={...E,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"},I={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ad={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:I,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?O:E}},ad}var ev;function pc(){return ev||(ev=1,function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=hc();t.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),t.hasRegexChars=s=>r.test(s),t.isRegexChar=s=>s.length===1&&t.hasRegexChars(s),t.escapeRegex=s=>s.replace(i,"\\$1"),t.toPosixSlashes=s=>s.replace(e,"/"),t.isWindows=()=>{if(typeof navigator!="undefined"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return typeof process!="undefined"&&process.platform?process.platform==="win32":!1},t.removeBackslashes=s=>s.replace(n,o=>o==="\\"?"":o),t.escapeLast=(s,o,a)=>{const c=s.lastIndexOf(o,a);return c===-1?s:s[c-1]==="\\"?t.escapeLast(s,o,c-1):`${s.slice(0,c)}\\${s.slice(c)}`},t.removePrefix=(s,o={})=>{let a=s;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(s,o={},a={})=>{const c=a.contains?"":"^",u=a.contains?"":"$";let d=`${c}(?:${s})${u}`;return o.negated===!0&&(d=`(?:^(?!${d}).*$)`),d},t.basename=(s,{windows:o}={})=>{const a=s.split(o?/[\\/]/:"/"),c=a[a.length-1];return c===""?a[a.length-2]:c}}(od)),od}var ud,tv;function bO(){if(tv)return ud;tv=1;const t=pc(),{CHAR_ASTERISK:e,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:w}=hc(),k=O=>O===a||O===r,C=O=>{O.isPrefix!==!0&&(O.depth=O.isGlobstar?1/0:1)};return ud=(O,I)=>{const M=I||{},Y=O.length-1,ee=M.parts===!0||M.scanToEnd===!0,F=[],se=[],H=[];let ie=O,xe=-1,qe=0,G=0,R=!1,Q=!1,te=!1,ge=!1,ve=!1,U=!1,de=!1,Se=!1,Fe=!1,L=!1,X=0,He,Ne,Ve={value:"",depth:0,isGlob:!1};const Ae=()=>xe>=Y,Ze=()=>ie.charCodeAt(xe+1),Ke=()=>(He=Ne,ie.charCodeAt(++xe));for(;xe<Y;){Ne=Ke();let lt;if(Ne===r){de=Ve.backslashes=!0,Ne=Ke(),Ne===c&&(U=!0);continue}if(U===!0||Ne===c){for(X++;Ae()!==!0&&(Ne=Ke());){if(Ne===r){de=Ve.backslashes=!0,Ke();continue}if(Ne===c){X++;continue}if(U!==!0&&Ne===s&&(Ne=Ke())===s){if(R=Ve.isBrace=!0,te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(U!==!0&&Ne===i){if(R=Ve.isBrace=!0,te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===y&&(X--,X===0)){U=!1,R=Ve.isBrace=!0,L=!0;break}}if(ee===!0)continue;break}if(Ne===a){if(F.push(xe),se.push(Ve),Ve={value:"",depth:0,isGlob:!1},L===!0)continue;if(He===s&&xe===qe+1){qe+=2;continue}G=xe+1;continue}if(M.noext!==!0&&(Ne===h||Ne===n||Ne===e||Ne===p||Ne===o)===!0&&Ze()===u){if(te=Ve.isGlob=!0,ge=Ve.isExtglob=!0,L=!0,Ne===o&&xe===qe&&(Fe=!0),ee===!0){for(;Ae()!==!0&&(Ne=Ke());){if(Ne===r){de=Ve.backslashes=!0,Ne=Ke();continue}if(Ne===v){te=Ve.isGlob=!0,L=!0;break}}continue}break}if(Ne===e){if(He===e&&(ve=Ve.isGlobstar=!0),te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===p){if(te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===d){for(;Ae()!==!0&&(lt=Ke());){if(lt===r){de=Ve.backslashes=!0,Ke();continue}if(lt===w){Q=Ve.isBracket=!0,te=Ve.isGlob=!0,L=!0;break}}if(ee===!0)continue;break}if(M.nonegate!==!0&&Ne===o&&xe===qe){Se=Ve.negated=!0,qe++;continue}if(M.noparen!==!0&&Ne===u){if(te=Ve.isGlob=!0,ee===!0){for(;Ae()!==!0&&(Ne=Ke());){if(Ne===u){de=Ve.backslashes=!0,Ne=Ke();continue}if(Ne===v){L=!0;break}}continue}break}if(te===!0){if(L=!0,ee===!0)continue;break}}M.noext===!0&&(ge=!1,te=!1);let Ie=ie,at="",ct="";qe>0&&(at=ie.slice(0,qe),ie=ie.slice(qe),G-=qe),Ie&&te===!0&&G>0?(Ie=ie.slice(0,G),ct=ie.slice(G)):te===!0?(Ie="",ct=ie):Ie=ie,Ie&&Ie!==""&&Ie!=="/"&&Ie!==ie&&k(Ie.charCodeAt(Ie.length-1))&&(Ie=Ie.slice(0,-1)),M.unescape===!0&&(ct&&(ct=t.removeBackslashes(ct)),Ie&&de===!0&&(Ie=t.removeBackslashes(Ie)));const Ue={prefix:at,input:O,start:qe,base:Ie,glob:ct,isBrace:R,isBracket:Q,isGlob:te,isExtglob:ge,isGlobstar:ve,negated:Se,negatedExtglob:Fe};if(M.tokens===!0&&(Ue.maxDepth=0,k(Ne)||se.push(Ve),Ue.tokens=se),M.parts===!0||M.tokens===!0){let lt;for(let vt=0;vt<F.length;vt++){const x=lt?lt+1:qe,_=F[vt],g=O.slice(x,_);M.tokens&&(vt===0&&qe!==0?(se[vt].isPrefix=!0,se[vt].value=at):se[vt].value=g,C(se[vt]),Ue.maxDepth+=se[vt].depth),(vt!==0||g!=="")&&H.push(g),lt=_}if(lt&<+1<O.length){const vt=O.slice(lt+1);H.push(vt),M.tokens&&(se[se.length-1].value=vt,C(se[se.length-1]),Ue.maxDepth+=se[se.length-1].depth)}Ue.slashes=F,Ue.parts=H}return Ue},ud}var cd,nv;function wO(){if(nv)return cd;nv=1;const t=hc(),e=pc(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,a=(d,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...d,h);d.sort();const p=`[${d.join("-")}]`;try{new RegExp(p)}catch{return d.map(v=>e.escapeRegex(v)).join("..")}return p},c=(d,h)=>`Missing ${d}: "${h}" - use "\\\\${h}" to match literal characters`,u=(d,h)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=o[d]||d;const p={...h},y=typeof p.maxLength=="number"?Math.min(n,p.maxLength):n;let v=d.length;if(v>y)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${y}`);const w={type:"bos",value:"",output:p.prepend||""},k=[w],C=p.capture?"":"?:",E=t.globChars(p.windows),O=t.extglobChars(E),{DOT_LITERAL:I,PLUS_LITERAL:M,SLASH_LITERAL:Y,ONE_CHAR:ee,DOTS_SLASH:F,NO_DOT:se,NO_DOT_SLASH:H,NO_DOTS_SLASH:ie,QMARK:xe,QMARK_NO_DOT:qe,STAR:G,START_ANCHOR:R}=E,Q=x=>`(${C}(?:(?!${R}${x.dot?F:I}).)*?)`,te=p.dot?"":se,ge=p.dot?xe:qe;let ve=p.bash===!0?Q(p):G;p.capture&&(ve=`(${ve})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);const U={input:d,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:k};d=e.removePrefix(d,U),v=d.length;const de=[],Se=[],Fe=[];let L=w,X;const He=()=>U.index===v-1,Ne=U.peek=(x=1)=>d[U.index+x],Ve=U.advance=()=>d[++U.index]||"",Ae=()=>d.slice(U.index+1),Ze=(x="",_=0)=>{U.consumed+=x,U.index+=_},Ke=x=>{U.output+=x.output!=null?x.output:x.value,Ze(x.value)},Ie=()=>{let x=1;for(;Ne()==="!"&&(Ne(2)!=="("||Ne(3)==="?");)Ve(),U.start++,x++;return x%2===0?!1:(U.negated=!0,U.start++,!0)},at=x=>{U[x]++,Fe.push(x)},ct=x=>{U[x]--,Fe.pop()},Ue=x=>{if(L.type==="globstar"){const _=U.braces>0&&(x.type==="comma"||x.type==="brace"),g=x.extglob===!0||de.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!_&&!g&&(U.output=U.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=ve,U.output+=L.output)}if(de.length&&x.type!=="paren"&&(de[de.length-1].inner+=x.value),(x.value||x.output)&&Ke(x),L&&L.type==="text"&&x.type==="text"){L.output=(L.output||L.value)+x.value,L.value+=x.value;return}x.prev=L,k.push(x),L=x},lt=(x,_)=>{const g={...O[_],conditions:1,inner:""};g.prev=L,g.parens=U.parens,g.output=U.output;const N=(p.capture?"(":"")+g.open;at("parens"),Ue({type:x,value:_,output:U.output?"":ee}),Ue({type:"paren",extglob:!0,value:Ve(),output:N}),de.push(g)},vt=x=>{let _=x.close+(p.capture?")":""),g;if(x.type==="negate"){let N=ve;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(N=Q(p)),(N!==ve||He()||/^\)+$/.test(Ae()))&&(_=x.close=`)$))${N}`),x.inner.includes("*")&&(g=Ae())&&/^\.[^\\/.]+$/.test(g)){const V=u(g,{...h,fastpaths:!1}).output;_=x.close=`)${V})${N})`}x.prev.type==="bos"&&(U.negatedExtglob=!0)}Ue({type:"paren",extglob:!0,value:X,output:_}),ct("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let x=!1,_=d.replace(s,(g,N,V,ae,ue,We)=>ae==="\\"?(x=!0,g):ae==="?"?N?N+ae+(ue?xe.repeat(ue.length):""):We===0?ge+(ue?xe.repeat(ue.length):""):xe.repeat(V.length):ae==="."?I.repeat(V.length):ae==="*"?N?N+ae+(ue?ve:""):ve:N?g:`\\${g}`);return x===!0&&(p.unescape===!0?_=_.replace(/\\/g,""):_=_.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),_===d&&p.contains===!0?(U.output=d,U):(U.output=e.wrapOutput(_,U,h),U)}for(;!He();){if(X=Ve(),X==="\0")continue;if(X==="\\"){const g=Ne();if(g==="/"&&p.bash!==!0||g==="."||g===";")continue;if(!g){X+="\\",Ue({type:"text",value:X});continue}const N=/^\\+/.exec(Ae());let V=0;if(N&&N[0].length>2&&(V=N[0].length,U.index+=V,V%2!==0&&(X+="\\")),p.unescape===!0?X=Ve():X+=Ve(),U.brackets===0){Ue({type:"text",value:X});continue}}if(U.brackets>0&&(X!=="]"||L.value==="["||L.value==="[^")){if(p.posix!==!1&&X===":"){const g=L.value.slice(1);if(g.includes("[")&&(L.posix=!0,g.includes(":"))){const N=L.value.lastIndexOf("["),V=L.value.slice(0,N),ae=L.value.slice(N+2),ue=r[ae];if(ue){L.value=V+ue,U.backtrack=!0,Ve(),!w.output&&k.indexOf(L)===1&&(w.output=ee);continue}}}(X==="["&&Ne()!==":"||X==="-"&&Ne()==="]")&&(X=`\\${X}`),X==="]"&&(L.value==="["||L.value==="[^")&&(X=`\\${X}`),p.posix===!0&&X==="!"&&L.value==="["&&(X="^"),L.value+=X,Ke({value:X});continue}if(U.quotes===1&&X!=='"'){X=e.escapeRegex(X),L.value+=X,Ke({value:X});continue}if(X==='"'){U.quotes=U.quotes===1?0:1,p.keepQuotes===!0&&Ue({type:"text",value:X});continue}if(X==="("){at("parens"),Ue({type:"paren",value:X});continue}if(X===")"){if(U.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));const g=de[de.length-1];if(g&&U.parens===g.parens+1){vt(de.pop());continue}Ue({type:"paren",value:X,output:U.parens?")":"\\)"}),ct("parens");continue}if(X==="["){if(p.nobracket===!0||!Ae().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));X=`\\${X}`}else at("brackets");Ue({type:"bracket",value:X});continue}if(X==="]"){if(p.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){Ue({type:"text",value:X,output:`\\${X}`});continue}if(U.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));Ue({type:"text",value:X,output:`\\${X}`});continue}ct("brackets");const g=L.value.slice(1);if(L.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(X=`/${X}`),L.value+=X,Ke({value:X}),p.literalBrackets===!1||e.hasRegexChars(g))continue;const N=e.escapeRegex(L.value);if(U.output=U.output.slice(0,-L.value.length),p.literalBrackets===!0){U.output+=N,L.value=N;continue}L.value=`(${C}${N}|${L.value})`,U.output+=L.value;continue}if(X==="{"&&p.nobrace!==!0){at("braces");const g={type:"brace",value:X,output:"(",outputIndex:U.output.length,tokensIndex:U.tokens.length};Se.push(g),Ue(g);continue}if(X==="}"){const g=Se[Se.length-1];if(p.nobrace===!0||!g){Ue({type:"text",value:X,output:X});continue}let N=")";if(g.dots===!0){const V=k.slice(),ae=[];for(let ue=V.length-1;ue>=0&&(k.pop(),V[ue].type!=="brace");ue--)V[ue].type!=="dots"&&ae.unshift(V[ue].value);N=a(ae,p),U.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const V=U.output.slice(0,g.outputIndex),ae=U.tokens.slice(g.tokensIndex);g.value=g.output="\\{",X=N="\\}",U.output=V;for(const ue of ae)U.output+=ue.output||ue.value}Ue({type:"brace",value:X,output:N}),ct("braces"),Se.pop();continue}if(X==="|"){de.length>0&&de[de.length-1].conditions++,Ue({type:"text",value:X});continue}if(X===","){let g=X;const N=Se[Se.length-1];N&&Fe[Fe.length-1]==="braces"&&(N.comma=!0,g="|"),Ue({type:"comma",value:X,output:g});continue}if(X==="/"){if(L.type==="dot"&&U.index===U.start+1){U.start=U.index+1,U.consumed="",U.output="",k.pop(),L=w;continue}Ue({type:"slash",value:X,output:Y});continue}if(X==="."){if(U.braces>0&&L.type==="dot"){L.value==="."&&(L.output=I);const g=Se[Se.length-1];L.type="dots",L.output+=X,L.value+=X,g.dots=!0;continue}if(U.braces+U.parens===0&&L.type!=="bos"&&L.type!=="slash"){Ue({type:"text",value:X,output:I});continue}Ue({type:"dot",value:X,output:I});continue}if(X==="?"){if(!(L&&L.value==="(")&&p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){lt("qmark",X);continue}if(L&&L.type==="paren"){const N=Ne();let V=X;(L.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(Ae()))&&(V=`\\${X}`),Ue({type:"text",value:X,output:V});continue}if(p.dot!==!0&&(L.type==="slash"||L.type==="bos")){Ue({type:"qmark",value:X,output:qe});continue}Ue({type:"qmark",value:X,output:xe});continue}if(X==="!"){if(p.noextglob!==!0&&Ne()==="("&&(Ne(2)!=="?"||!/[!=<:]/.test(Ne(3)))){lt("negate",X);continue}if(p.nonegate!==!0&&U.index===0){Ie();continue}}if(X==="+"){if(p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){lt("plus",X);continue}if(L&&L.value==="("||p.regex===!1){Ue({type:"plus",value:X,output:M});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||U.parens>0){Ue({type:"plus",value:X});continue}Ue({type:"plus",value:M});continue}if(X==="@"){if(p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){Ue({type:"at",extglob:!0,value:X,output:""});continue}Ue({type:"text",value:X});continue}if(X!=="*"){(X==="$"||X==="^")&&(X=`\\${X}`);const g=i.exec(Ae());g&&(X+=g[0],U.index+=g[0].length),Ue({type:"text",value:X});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=X,L.output=ve,U.backtrack=!0,U.globstar=!0,Ze(X);continue}let x=Ae();if(p.noextglob!==!0&&/^\([^?]/.test(x)){lt("star",X);continue}if(L.type==="star"){if(p.noglobstar===!0){Ze(X);continue}const g=L.prev,N=g.prev,V=g.type==="slash"||g.type==="bos",ae=N&&(N.type==="star"||N.type==="globstar");if(p.bash===!0&&(!V||x[0]&&x[0]!=="/")){Ue({type:"star",value:X,output:""});continue}const ue=U.braces>0&&(g.type==="comma"||g.type==="brace"),We=de.length&&(g.type==="pipe"||g.type==="paren");if(!V&&g.type!=="paren"&&!ue&&!We){Ue({type:"star",value:X,output:""});continue}for(;x.slice(0,3)==="/**";){const tt=d[U.index+4];if(tt&&tt!=="/")break;x=x.slice(3),Ze("/**",3)}if(g.type==="bos"&&He()){L.type="globstar",L.value+=X,L.output=Q(p),U.output=L.output,U.globstar=!0,Ze(X);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!ae&&He()){U.output=U.output.slice(0,-(g.output+L.output).length),g.output=`(?:${g.output}`,L.type="globstar",L.output=Q(p)+(p.strictSlashes?")":"|$)"),L.value+=X,U.globstar=!0,U.output+=g.output+L.output,Ze(X);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&x[0]==="/"){const tt=x[1]!==void 0?"|$":"";U.output=U.output.slice(0,-(g.output+L.output).length),g.output=`(?:${g.output}`,L.type="globstar",L.output=`${Q(p)}${Y}|${Y}${tt})`,L.value+=X,U.output+=g.output+L.output,U.globstar=!0,Ze(X+Ve()),Ue({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&x[0]==="/"){L.type="globstar",L.value+=X,L.output=`(?:^|${Y}|${Q(p)}${Y})`,U.output=L.output,U.globstar=!0,Ze(X+Ve()),Ue({type:"slash",value:"/",output:""});continue}U.output=U.output.slice(0,-L.output.length),L.type="globstar",L.output=Q(p),L.value+=X,U.output+=L.output,U.globstar=!0,Ze(X);continue}const _={type:"star",value:X,output:ve};if(p.bash===!0){_.output=".*?",(L.type==="bos"||L.type==="slash")&&(_.output=te+_.output),Ue(_);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&p.regex===!0){_.output=X,Ue(_);continue}(U.index===U.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(U.output+=H,L.output+=H):p.dot===!0?(U.output+=ie,L.output+=ie):(U.output+=te,L.output+=te),Ne()!=="*"&&(U.output+=ee,L.output+=ee)),Ue(_)}for(;U.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));U.output=e.escapeLast(U.output,"["),ct("brackets")}for(;U.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));U.output=e.escapeLast(U.output,"("),ct("parens")}for(;U.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));U.output=e.escapeLast(U.output,"{"),ct("braces")}if(p.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&Ue({type:"maybe_slash",value:"",output:`${Y}?`}),U.backtrack===!0){U.output="";for(const x of U.tokens)U.output+=x.output!=null?x.output:x.value,x.suffix&&(U.output+=x.suffix)}return U};return u.fastpaths=(d,h)=>{const p={...h},y=typeof p.maxLength=="number"?Math.min(n,p.maxLength):n,v=d.length;if(v>y)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${y}`);d=o[d]||d;const{DOT_LITERAL:w,SLASH_LITERAL:k,ONE_CHAR:C,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:I,NO_DOTS_SLASH:M,STAR:Y,START_ANCHOR:ee}=t.globChars(p.windows),F=p.dot?I:O,se=p.dot?M:O,H=p.capture?"":"?:",ie={negated:!1,prefix:""};let xe=p.bash===!0?".*?":Y;p.capture&&(xe=`(${xe})`);const qe=te=>te.noglobstar===!0?xe:`(${H}(?:(?!${ee}${te.dot?E:w}).)*?)`,G=te=>{switch(te){case"*":return`${F}${C}${xe}`;case".*":return`${w}${C}${xe}`;case"*.*":return`${F}${xe}${w}${C}${xe}`;case"*/*":return`${F}${xe}${k}${C}${se}${xe}`;case"**":return F+qe(p);case"**/*":return`(?:${F}${qe(p)}${k})?${se}${C}${xe}`;case"**/*.*":return`(?:${F}${qe(p)}${k})?${se}${xe}${w}${C}${xe}`;case"**/.*":return`(?:${F}${qe(p)}${k})?${w}${C}${xe}`;default:{const ge=/^(.*?)\.(\w+)$/.exec(te);if(!ge)return;const ve=G(ge[1]);return ve?ve+w+ge[2]:void 0}}},R=e.removePrefix(d,ie);let Q=G(R);return Q&&p.strictSlashes!==!0&&(Q+=`${k}?`),Q},cd=u,cd}var ld,rv;function _O(){if(rv)return ld;rv=1;const t=bO(),e=wO(),n=pc(),r=hc(),i=o=>o&&typeof o=="object"&&!Array.isArray(o),s=(o,a,c=!1)=>{if(Array.isArray(o)){const k=o.map(E=>s(E,a,c));return E=>{for(const O of k){const I=O(E);if(I)return I}return!1}}const u=i(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const d=a||{},h=d.windows,p=u?s.compileRe(o,a):s.makeRe(o,a,!1,!0),y=p.state;delete p.state;let v=()=>!1;if(d.ignore){const k={...a,ignore:null,onMatch:null,onResult:null};v=s(d.ignore,k,c)}const w=(k,C=!1)=>{const{isMatch:E,match:O,output:I}=s.test(k,p,a,{glob:o,posix:h}),M={glob:o,state:y,regex:p,posix:h,input:k,output:I,match:O,isMatch:E};return typeof d.onResult=="function"&&d.onResult(M),E===!1?(M.isMatch=!1,C?M:!1):v(k)?(typeof d.onIgnore=="function"&&d.onIgnore(M),M.isMatch=!1,C?M:!1):(typeof d.onMatch=="function"&&d.onMatch(M),C?M:!0)};return c&&(w.state=y),w};return s.test=(o,a,c,{glob:u,posix:d}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const h=c||{},p=h.format||(d?n.toPosixSlashes:null);let y=o===u,v=y&&p?p(o):o;return y===!1&&(v=p?p(o):o,y=v===u),(y===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?y=s.matchBase(o,a,c,d):y=a.exec(v)),{isMatch:!!y,match:y,output:v}},s.matchBase=(o,a,c)=>(a instanceof RegExp?a:s.makeRe(a,c)).test(n.basename(o)),s.isMatch=(o,a,c)=>s(a,c)(o),s.parse=(o,a)=>Array.isArray(o)?o.map(c=>s.parse(c,a)):e(o,{...a,fastpaths:!1}),s.scan=(o,a)=>t(o,a),s.compileRe=(o,a,c=!1,u=!1)=>{if(c===!0)return o.output;const d=a||{},h=d.contains?"":"^",p=d.contains?"":"$";let y=`${h}(?:${o.output})${p}`;o&&o.negated===!0&&(y=`^(?!${y}).*$`);const v=s.toRegex(y,a);return u===!0&&(v.state=o),v},s.makeRe=(o,a={},c=!1,u=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(d.output=e.fastpaths(o,a)),d.output||(d=e(o,a)),s.compileRe(d,a,c,u)},s.toRegex=(o,a)=>{try{const c=a||{};return new RegExp(o,c.flags||(c.nocase?"i":""))}catch(c){if(a&&a.debug===!0)throw c;return/$^/}},s.constants=r,ld=s,ld}var dd,iv;function SO(){if(iv)return dd;iv=1;const t=_O(),e=pc();function n(r,i,s=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:e.isWindows()}),t(r,i,s)}return Object.assign(n,t),dd=n,dd}var kO=SO();const sv=Hr(kO),ov="loglevel-patterns",Ga="loglevel:",fd="!",EO=Rt.INFO;class AO{constructor(e){Pe(this,"projectPrefix");Pe(this,"patternsCache",null);this.projectPrefix=`${Ga}${e}:`}getLevel(e){const n=this.loadAndUnifyPatterns();return this.resolveLogLevelFromPatterns(e,n)||EO}setLevel(e,n){const{level:r,override:i}=this.parseLogLevel(n),s=`${Ga}${e}`,o=i?`${r}${fd}`:r;localStorage.setItem(s,o),this.patternsCache=null}loadAndUnifyPatterns(){if(this.patternsCache)return this.patternsCache;const e=this.readPatternsFromJSON(),n=this.unifyWithIndividualKeys(e);return this.patternsCache=n,n}resolveLogLevelFromPatterns(e,n){let r;for(const[i,{level:s,override:o}]of Object.entries(n))if(sv(i.toLowerCase())(e.toLowerCase())){if(o)return s;(!r||sv(i)(e))&&(r=s)}return r}readPatternsFromJSON(){try{const e=localStorage.getItem(ov);return e?JSON.parse(e):{}}catch{return console.error("Failed to parse loglevel-patterns from localStorage"),{}}}unifyWithIndividualKeys(e){const n={...e};for(let r=0;r<localStorage.length;r++){const i=localStorage.key(r);if(!i||!i.startsWith(Ga)||i===ov)continue;const s=i.replace(Ga,"").toLowerCase(),o=localStorage.getItem(i);if(!o)continue;const{level:a,override:c}=this.parseLogLevel(o);n[s]={level:a,override:c}}return n}parseLogLevel(e){const n=e.endsWith(fd),r=n?e.slice(0,-fd.length):e;if(!xw(r))throw new fh(r);return{level:r,override:n}}}class CO{constructor(e,n){Pe(this,"committed",!1);Pe(this,"chainOptions",{});Pe(this,"method",null);Pe(this,"stack","");Pe(this,"args",[]);this.adapter=e,n&&(this.chainOptions={...n}),Promise.resolve().then(()=>this.commit())}options(e){return this.chainOptions={...this.chainOptions,...e},this}trace(...e){return this.log("trace",e)}debug(...e){return this.log("debug",e)}info(...e){return this.log("info",e)}warn(...e){return this.log("warn",e)}error(...e){return this.log("error",e)}fatal(...e){return this.log("fatal",e)}log(e,n){var r;return this.method=e,this.args=n,this.stack=(r=new Error().stack)!=null?r:"",this}commit(){if(!this.committed&&(this.committed=!0,this.method)){const e=this.args[0],n=this.args.slice(1),r={stack:this.stack,content:{message:e,args:n},options:this.chainOptions};this.adapter[this.method](r)}}}let Nw=class Ef{constructor(e){Pe(this,"adapter");this.adapter=e}static create(e){const n=new Ef(e);return n.setMetadata({account:null,client:Bw()}),n}child(e,n={}){return new Ef(this.adapter.child(e,n))}lazyChild(e,n={}){let r;return new Proxy({},{get:(i,s,o)=>(r||(r=this.child(e,n)),Reflect.get(r,s,o))})}setMetadata(e){this.adapter.setMetadata(e)}setLevel(e){if(!xw(e))throw new fh(e);this.adapter.setLevel(e)}createChain(e){return new CO(this.adapter,e)}trace(...e){return this.createChain().trace(...e)}debug(...e){return this.createChain().debug(...e)}info(...e){return this.createChain().info(...e)}warn(...e){return this.createChain().warn(...e)}error(...e){return this.createChain().error(...e)}fatal(...e){return this.createChain().fatal(...e)}options(e){return this.createChain(e)}};function xO(t){return pr().logger.lazyChild(t)}function Tw(t,e){return Nw.create(new kf({source:t,levelService:new AO(t),consoleLogger:new vO,httpLogger:hh.create({db:e,project:t})}))}const NO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let TO=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=NO[n[t]&63];return e};const Uu=(t=8)=>TO(t),Ow=(t,e=!1)=>{const n=Object.entries(t).reduce((r,[i,s])=>s!==void 0&&(!e||s!==null)?`${r}${r?"&":""}${i}=${s}`:r,"");return n?`?${n}`:""},Iw=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function OO(){const t=new Error().stack.split(`
|
|
129
|
-
`);return t.length<3?"":t[2].trim().substring(3)}function IO(t){return new Promise(e=>setTimeout(e,t))}const Pn=class Pn{constructor(){Pe(this,"projectName","nizza");Pe(this,"instanceId",Uu());Pe(this,"db",new sO);Pe(this,"baseLogger",Tw(this.projectName,this.db));Pe(this,"coreLogger",this.baseLogger.child("core"));Pe(this,"logger",this.coreLogger.child("NizzaStore"));Pe(this,"eventBus",new ww(this.projectName,this.coreLogger));Pe(this,"cfg",null);Pe(this,"accountData");Pe(this,"statusInternal","idle");Pe(this,"currentFetchId",null);Pe(this,"pds");FT(this,{projectName:!1,instanceId:!1,db:!1,logger:!1,coreLogger:!1,eventBus:!1},{autoBind:!0}),iw(()=>{var e,n;return[(e=this.cfg)==null?void 0:e.account,(n=this.cfg)==null?void 0:n.authToken]},([e,n])=>{e&&this.loadAccount(e,!!n)},{delay:500,equals:Ai.shallow})}static instance(){var n;const e=window;return(n=e.nizza)!=null&&n.store?Pn.instanceRef=e.nizza.store:(Pn.instanceRef=new Pn,Pn.instanceRef.logger.debug("Created NizzaStore")),e.nizza=e.nizza||{},e.nz=e.nz||e.nizza,e.nizza.store=Pn.instanceRef,e.nz=e.nizza,Pn.instanceRef}async configure(e){try{this.logger.debug("Configuring NizzaStore",e),await this.applyConfig(e)}catch(n){this.setStatus("error"),this.logger.error("Configuration error",n)}}async applyConfig(e={}){this.cfg={...this.cfg,...e},e.getProductDataSource&&this.setProductDataSource(await e.getProductDataSource())}async loadAccount(e,n){this.setStatus("loading");const r=Uu();this.currentFetchId=r,this.logger.setMetadata({account:e});try{const i=await Zw(e,n);if(this.currentFetchId!==r)return;this.setAccount(i),this.setStatus("success"),this.logger.debug("Account loaded",i)}catch(i){if(this.currentFetchId!==r)return;this.setStatus("error"),i instanceof vh?this.logger.fatal("Account not found",e).options({silent:!0}):this.logger.fatal("Error loading account",i)}}setAccount(e){this.accountData=e}setStatus(e){this.statusInternal=e}setProductDataSource(e){this.pds=e}setProductId(e){this.cfg&&(this.cfg.productId=e)}setOrderFormId(e){this.cfg&&(this.cfg.orderFormId=e)}setAddToCartConfig(e){if(!this.cfg)throw new Error("Call configure() first");this.cfg.addToCartConfig=e}setAuthToken(e){this.applyConfig({authToken:e})}async refetchAccount(){var e;(e=this.cfg)!=null&&e.account&&await this.loadAccount(this.cfg.account,!!this.cfg.authToken)}get version(){return Pn.version}get config(){return this.cfg}get account(){return this.accountData}get accountStatus(){return this.statusInternal}get accountName(){var e;return(e=this.cfg)==null?void 0:e.account}isPvtAccount(e){var n;return!!(e&&((n=this.cfg)!=null&&n.authToken))}isPubAccount(e){var n;return!!(e&&!((n=this.cfg)!=null&&n.authToken))}get productDataSource(){return this.pds}};Pe(Pn,"version","10"),Pe(Pn,"instanceRef");let Lu=Pn;const pr=t=>{const e=Lu.instance();return IT(()=>!!e.account,()=>t==null?void 0:t(e)),e};function Rw(){return st.useMemo(()=>pr(),[])}function Pw(t,e){const n=Rw();return yw(()=>t(n),e)}async function xi(t){const{url:e,method:n="GET",headers:r,body:i,raw:s=!1,contentTypeJson:o=!0,timeout:a,secure:c=!1,account:u,...d}=t,h=await PO({headers:r,secure:c,account:u,contentTypeJson:o}),p=typeof i=="string"?i:o&&i!=null?JSON.stringify(i):i,y={method:n,headers:h,body:p,...d},v=await DO(e,y,a);if(s)return v;const w=await v.json();if(!v.ok)throw new Error((w==null?void 0:w.message)||v.statusText);return{...w,success:v.ok}}const RO=t=>xi({...t,raw:!1,contentTypeJson:!1});async function PO({headers:t,secure:e,account:n,contentTypeJson:r}){var s,o,a;const i=new Headers(t);if(r&&i.set("Content-Type","application/json"),e){const c=await FO();c?(i.set("Authorization",`Bearer ${c}`),i.set("ls-account",n!=null?n:"")):(a=(o=(s=pr())==null?void 0:s.coreLogger)==null?void 0:o.warn)==null||a.call(o,"Secure request without auth token")}return i}async function DO(t,e,n){const r=new AbortController,i=r.signal,s=n?setTimeout(()=>r.abort(),n):void 0;try{return await fetch(t,{...e,signal:i})}finally{s&&clearTimeout(s)}}async function FO(){var t,e,n;try{return(await Eb.currentSession()).getIdToken().getJwtToken()}catch{return(n=(e=(t=pr())==null?void 0:t.config)==null?void 0:e.authToken)!=null?n:null}}function UO(t,e,n){fetch(e).then(r=>r.blob()).then(r=>Dw(r,`${t}.${n}`))}const Dw=(t,e,n)=>{const r=[t],i=new Blob(r,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(i,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");return o.style.display="none",o.href=s,o.setAttribute("download",e),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(s)},200)};var LO="2.0.3",Af=500,av="user-agent",ps="",uv="?",Mu="function",Lr="undefined",ms="object",Cf="string",cn="browser",ir="cpu",Gn="device",Fn="engine",kn="os",ls="result",we="name",fe="type",be="vendor",_e="version",ln="architecture",zo="major",pe="model",So="console",Xe="mobile",St="tablet",Lt="smarttv",zn="wearable",hd="xr",ko="embedded",ao="inapp",ph="brands",fi="formFactors",mh="fullVersionList",ds="platform",gh="platformVersion",mc="bitness",zr="sec-ch-ua",MO=zr+"-full-version-list",BO=zr+"-arch",$O=zr+"-"+mc,jO=zr+"-form-factors",VO=zr+"-"+Xe,qO=zr+"-"+pe,Fw=zr+"-"+ds,HO=Fw+"-version",Uw=[ph,mh,Xe,pe,ds,gh,ln,fi,mc],Wa="Amazon",Yi="Apple",cv="ASUS",lv="BlackBerry",oi="Google",dv="Huawei",fv="Lenovo",hv="Honor",Ya="LG",pd="Microsoft",md="Motorola",gd="Nvidia",pv="OnePlus",vd="OPPO",uo="Samsung",mv="Sharp",co="Sony",yd="Xiaomi",bd="Zebra",gv="Chrome",vv="Chromium",Er="Chromecast",KO="Edge",lo="Firefox",fo="Opera",wd="Facebook",yv="Sogou",Ji="Mobile ",ho=" Browser",xf="Windows",zO=typeof window!==Lr,dn=zO&&window.navigator?window.navigator:void 0,Rr=dn&&dn.userAgentData?dn.userAgentData:void 0,GO=function(t,e){var n={},r=e;if(!Bu(e)){r={};for(var i in e)for(var s in e[i])r[s]=e[i][s].concat(r[s]?r[s]:[])}for(var o in t)n[o]=r[o]&&r[o].length%2===0?r[o].concat(t[o]):t[o];return n},gc=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},Nf=function(t,e){if(typeof t===ms&&t.length>0){for(var n in t)if(sr(t[n])==sr(e))return!0;return!1}return Rs(t)?sr(e).indexOf(sr(t))!==-1:!1},Bu=function(t,e){for(var n in t)return/^(browser|cpu|device|engine|os)$/.test(n)||(e?Bu(t[n]):!1)},Rs=function(t){return typeof t===Cf},_d=function(t){if(t){for(var e=[],n=gs(/\\?\"/g,t).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=Go(n[r]).split(";v=");e[r]={brand:i[0],version:i[1]}}else e[r]=Go(n[r]);return e}},sr=function(t){return Rs(t)?t.toLowerCase():t},Sd=function(t){return Rs(t)?gs(/[^\d\.]/g,t).split(".")[0]:void 0},or=function(t){for(var e in t){var n=t[e];typeof n==ms&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},gs=function(t,e){return Rs(e)?e.replace(t,ps):e},po=function(t){return gs(/\\?\"/g,t)},Go=function(t,e){if(Rs(t))return t=gs(/^\s\s*/,t),typeof e===Lr?t:t.substring(0,Af)},kd=function(t,e){if(!(!t||!e))for(var n=0,r,i,s,o,a,c;n<e.length&&!a;){var u=e[n],d=e[n+1];for(r=i=0;r<u.length&&!a&&u[r];)if(a=u[r++].exec(t),a)for(s=0;s<d.length;s++)c=a[++i],o=d[s],typeof o===ms&&o.length>0?o.length===2?typeof o[1]==Mu?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:o.length===3?typeof o[1]===Mu&&!(o[1].exec&&o[1].test)?this[o[0]]=c?o[1].call(this,c,o[2]):void 0:this[o[0]]=c?c.replace(o[1],o[2]):void 0:o.length===4&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):void 0):this[o]=c||void 0;n+=2}},Pr=function(t,e){for(var n in e)if(typeof e[n]===ms&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(Nf(e[n][r],t))return n===uv?void 0:n}else if(Nf(e[n],t))return n===uv?void 0:n;return e.hasOwnProperty("*")?e["*"]:t},bv={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},wv={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},_v={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_e,[we,Ji+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_e,[we,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[we,_e],[/opios[\/ ]+([\w\.]+)/i],[_e,[we,fo+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[_e,[we,fo+" GX"]],[/\bopr\/([\w\.]+)/i],[_e,[we,fo]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[_e,[we,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[_e,[we,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[we,_e],[/quark(?:pc)?\/([-\w\.]+)/i],[_e,[we,"Quark"]],[/\bddg\/([\w\.]+)/i],[_e,[we,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_e,[we,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[_e,[we,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_e,[we,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_e,[we,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_e,[we,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[_e,[we,"Smart "+fv+ho]],[/(avast|avg)\/([\w\.]+)/i],[[we,/(.+)/,"$1 Secure"+ho],_e],[/\bfocus\/([\w\.]+)/i],[_e,[we,lo+" Focus"]],[/\bopt\/([\w\.]+)/i],[_e,[we,fo+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_e,[we,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_e,[we,"Dolphin"]],[/coast\/([\w\.]+)/i],[_e,[we,fo+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_e,[we,"MIUI"+ho]],[/fxios\/([\w\.-]+)/i],[_e,[we,Ji+lo]],[/\bqihoobrowser\/?([\w\.]*)/i],[_e,[we,"360"]],[/\b(qq)\/([\w\.]+)/i],[[we,/(.+)/,"$1Browser"],_e],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[we,/(.+)/,"$1"+ho],_e],[/samsungbrowser\/([\w\.]+)/i],[_e,[we,uo+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[_e,[we,yv+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[we,yv+" Mobile"],_e],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[we,_e],[/(lbbrowser|rekonq)/i],[we],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[_e,we],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[we,wd],_e,[fe,ao]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[we,_e,[fe,ao]],[/\bgsa\/([\w\.]+) .*safari\//i],[_e,[we,"GSA"],[fe,ao]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_e,[we,"TikTok"],[fe,ao]],[/\[(linkedin)app\]/i],[we,[fe,ao]],[/(chromium)[\/ ]([-\w\.]+)/i],[we,_e],[/headlesschrome(?:\/([\w\.]+)| )/i],[_e,[we,gv+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[we,gv+" WebView"],_e],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_e,[we,"Android"+ho]],[/chrome\/([\w\.]+) mobile/i],[_e,[we,Ji+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[we,_e],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[_e,[we,Ji+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[we,Ji+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[_e,we],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[we,[_e,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[we,_e],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[we,Ji+lo],_e],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[we,"Netscape"],_e],[/(wolvic|librewolf)\/([\w\.]+)/i],[we,_e],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_e,[we,lo+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[we,[_e,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[we,[_e,/[^\d\.]+./,ps]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ln,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ln,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ln,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ln,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ln,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[ln,/ower/,ps,sr]],[/ sun4\w[;\)]/i],[[ln,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[ln,sr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[pe,[be,uo],[fe,St]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[pe,[be,uo],[fe,Xe]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[pe,[be,Yi],[fe,Xe]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[pe,[be,Yi],[fe,St]],[/(macintosh);/i],[pe,[be,Yi]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[pe,[be,mv],[fe,Xe]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[pe,[be,hv],[fe,St]],[/honor([-\w ]+)[;\)]/i],[pe,[be,hv],[fe,Xe]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[pe,[be,dv],[fe,St]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[pe,[be,dv],[fe,Xe]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[pe,/_/g," "],[be,yd],[fe,St]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[pe,/_/g," "],[be,yd],[fe,Xe]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[pe,[be,vd],[fe,Xe]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[pe,[be,Pr,{OnePlus:["304","403","203"],"*":vd}],[fe,St]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[pe,[be,"BLU"],[fe,Xe]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[pe,[be,"Vivo"],[fe,Xe]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[pe,[be,"Realme"],[fe,Xe]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[pe,[be,md],[fe,Xe]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[pe,[be,md],[fe,St]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[pe,[be,Ya],[fe,St]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[pe,[be,Ya],[fe,Xe]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[pe,[be,fv],[fe,St]],[/(nokia) (t[12][01])/i],[be,pe,[fe,St]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[pe,/_/g," "],[fe,Xe],[be,"Nokia"]],[/(pixel (c|tablet))\b/i],[pe,[be,oi],[fe,St]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[pe,[be,oi],[fe,Xe]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[pe,[be,co],[fe,Xe]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[pe,"Xperia Tablet"],[be,co],[fe,St]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[pe,[be,pv],[fe,Xe]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[pe,[be,Wa],[fe,St]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[pe,/(.+)/g,"Fire Phone $1"],[be,Wa],[fe,Xe]],[/(playbook);[-\w\),; ]+(rim)/i],[pe,be,[fe,St]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[pe,[be,lv],[fe,Xe]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[pe,[be,cv],[fe,St]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[pe,[be,cv],[fe,Xe]],[/(nexus 9)/i],[pe,[be,"HTC"],[fe,St]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[be,[pe,/_/g," "],[fe,Xe]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[pe,[be,"TCL"],[fe,St]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[pe,[be,"TCL"],[fe,Xe]],[/(itel) ((\w+))/i],[[be,sr],pe,[fe,Pr,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[pe,[be,"Acer"],[fe,St]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[pe,[be,"Meizu"],[fe,Xe]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[pe,[be,"Ulefone"],[fe,Xe]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[pe,[be,"Energizer"],[fe,Xe]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[pe,[be,"Cat"],[fe,Xe]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[pe,[be,"Smartfren"],[fe,Xe]],[/droid.+; (a(?:015|06[35]|142p?))/i],[pe,[be,"Nothing"],[fe,Xe]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[pe,[be,"Archos"],[fe,St]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[pe,[be,"Archos"],[fe,Xe]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[be,pe,[fe,St]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[be,pe,[fe,Xe]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[be,pe,[fe,St]],[/(surface duo)/i],[pe,[be,pd],[fe,St]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[pe,[be,"Fairphone"],[fe,Xe]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[pe,[be,gd],[fe,St]],[/(sprint) (\w+)/i],[be,pe,[fe,Xe]],[/(kin\.[onetw]{3})/i],[[pe,/\./g," "],[be,pd],[fe,Xe]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[pe,[be,bd],[fe,St]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[pe,[be,bd],[fe,Xe]],[/smart-tv.+(samsung)/i],[be,[fe,Lt]],[/hbbtv.+maple;(\d+)/i],[[pe,/^/,"SmartTV"],[be,uo],[fe,Lt]],[/tcast.+(lg)e?. ([-\w]+)/i],[be,pe,[fe,Lt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[be,Ya],[fe,Lt]],[/(apple) ?tv/i],[be,[pe,Yi+" TV"],[fe,Lt]],[/crkey.*devicetype\/chromecast/i],[[pe,Er+" Third Generation"],[be,oi],[fe,Lt]],[/crkey.*devicetype\/([^/]*)/i],[[pe,/^/,"Chromecast "],[be,oi],[fe,Lt]],[/fuchsia.*crkey/i],[[pe,Er+" Nest Hub"],[be,oi],[fe,Lt]],[/crkey/i],[[pe,Er],[be,oi],[fe,Lt]],[/(portaltv)/i],[pe,[be,wd],[fe,Lt]],[/droid.+aft(\w+)( bui|\))/i],[pe,[be,Wa],[fe,Lt]],[/(shield \w+ tv)/i],[pe,[be,gd],[fe,Lt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[pe,[be,mv],[fe,Lt]],[/(bravia[\w ]+)( bui|\))/i],[pe,[be,co],[fe,Lt]],[/(mi(tv|box)-?\w+) bui/i],[pe,[be,yd],[fe,Lt]],[/Hbbtv.*(technisat) (.*);/i],[be,pe,[fe,Lt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[be,Go],[pe,Go],[fe,Lt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[pe,[fe,Lt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[fe,Lt]],[/(ouya)/i,/(nintendo) (\w+)/i],[be,pe,[fe,So]],[/droid.+; (shield)( bui|\))/i],[pe,[be,gd],[fe,So]],[/(playstation \w+)/i],[pe,[be,co],[fe,So]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[pe,[be,pd],[fe,So]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[pe,[be,uo],[fe,zn]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[be,pe,[fe,zn]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[pe,[be,vd],[fe,zn]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[pe,[be,Yi],[fe,zn]],[/(opwwe\d{3})/i],[pe,[be,pv],[fe,zn]],[/(moto 360)/i],[pe,[be,md],[fe,zn]],[/(smartwatch 3)/i],[pe,[be,co],[fe,zn]],[/(g watch r)/i],[pe,[be,Ya],[fe,zn]],[/droid.+; (wt63?0{2,3})\)/i],[pe,[be,bd],[fe,zn]],[/droid.+; (glass) \d/i],[pe,[be,oi],[fe,hd]],[/(pico) (4|neo3(?: link|pro)?)/i],[be,pe,[fe,hd]],[/(quest( \d| pro)?s?).+vr/i],[pe,[be,wd],[fe,hd]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[be,[fe,ko]],[/(aeobc)\b/i],[pe,[be,Wa],[fe,ko]],[/(homepod).+mac os/i],[pe,[be,Yi],[fe,ko]],[/windows iot/i],[[fe,ko]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[pe,[fe,Pr,{mobile:"Mobile",xr:"VR","*":St}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[fe,St]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[fe,Xe]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[pe,[be,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_e,[we,KO+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[we,_e],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_e,[we,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[we,_e],[/ladybird\//i],[[we,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_e,we]],os:[[/microsoft (windows) (vista|xp)/i],[we,_e],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[we,[_e,Pr,bv]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_e,Pr,bv],[we,xf]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_e,/_/g,"."],[we,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[we,"macOS"],[_e,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[_e,[we,Er+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[_e,[we,Er+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[_e,[we,Er+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[_e,[we,Er+" Linux"]],[/crkey\/([\d\.]+)/i],[_e,[we,Er]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_e,we],[/(ubuntu) ([\w\.]+) like android/i],[[we,/(.+)/,"$1 Touch"],_e],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[we,_e],[/\(bb(10);/i],[_e,[we,lv]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[_e,[we,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_e,[we,lo+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_e,[we,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_e,[we,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[we,"Chrome OS"],_e],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[we,_e],[/(sunos) ?([\w\.\d]*)/i],[[we,"Solaris"],_e],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[we,_e]]},Ja=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return or.call(t.init,[[cn,[we,_e,zo,fe]],[ir,[ln]],[Gn,[fe,pe,be]],[Fn,[we,_e]],[kn,[we,_e]]]),or.call(t.isIgnore,[[cn,[_e,zo]],[Fn,[_e]],[kn,[_e]]]),or.call(t.isIgnoreRgx,[[cn,/ ?browser$/i],[kn,/ ?os$/i]]),or.call(t.toString,[[cn,[we,_e]],[ir,[ln]],[Gn,[be,pe]],[Fn,[we,_e]],[kn,[we,_e]]]),t}(),WO=function(t,e){var n=Ja.init[e],r=Ja.isIgnore[e]||0,i=Ja.isIgnoreRgx[e]||0,s=Ja.toString[e]||0;function o(){or.call(this,n)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return Rr?Rr.getHighEntropyValues(Uw).then(function(a){return t.setCH(new Lw(a,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=ls&&(o.prototype.is=function(a){var c=!1;for(var u in this)if(this.hasOwnProperty(u)&&!Nf(r,u)&&sr(i?gs(i,this[u]):this[u])==sr(i?gs(i,a):a)){if(c=!0,a!=Lr)break}else if(a==Lr&&c){c=!c;break}return c},o.prototype.toString=function(){var a=ps;for(var c in s)typeof this[s[c]]!==Lr&&(a+=(a?" ":ps)+this[s[c]]);return a||Lr}),Rr||(o.prototype.then=function(a){var c=this,u=function(){for(var h in c)c.hasOwnProperty(h)&&(this[h]=c[h])};u.prototype={is:o.prototype.is,toString:o.prototype.toString};var d=new u;return a(d),d}),new o};function Lw(t,e){if(t=t||{},or.call(this,Uw),e)or.call(this,[[ph,_d(t[zr])],[mh,_d(t[MO])],[Xe,/\?1/.test(t[VO])],[pe,po(t[qO])],[ds,po(t[Fw])],[gh,po(t[HO])],[ln,po(t[BO])],[fi,_d(t[jO])],[mc,po(t[$O])]]);else for(var n in t)this.hasOwnProperty(n)&&typeof t[n]!==Lr&&(this[n]=t[n])}function Sv(t,e,n,r){return this.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data},this.set=function(i,s){return this.data[i]=s,this},this.setCH=function(i){return this.uaCH=i,this},this.detectFeature=function(){if(dn&&dn.userAgent==this.ua)switch(this.itemType){case cn:dn.brave&&typeof dn.brave.isBrave==Mu&&this.set(we,"Brave");break;case Gn:!this.get(fe)&&Rr&&Rr[Xe]&&this.set(fe,Xe),this.get(pe)=="Macintosh"&&dn&&typeof dn.standalone!==Lr&&dn.maxTouchPoints&&dn.maxTouchPoints>2&&this.set(pe,"iPad").set(fe,St);break;case kn:!this.get(we)&&Rr&&Rr[ds]&&this.set(we,Rr[ds]);break;case ls:var i=this.data,s=function(o){return i[o].getItem().detectFeature().get()};this.set(cn,s(cn)).set(ir,s(ir)).set(Gn,s(Gn)).set(Fn,s(Fn)).set(kn,s(kn))}return this},this.parseUA=function(){return this.itemType!=ls&&kd.call(this.data,this.ua,this.rgxMap),this.itemType==cn&&this.set(zo,Sd(this.get(_e))),this},this.parseCH=function(){var i=this.uaCH,s=this.rgxMap;switch(this.itemType){case cn:case Fn:var o=i[mh]||i[ph],a;if(o)for(var c in o){var u=o[c].brand||o[c],d=o[c].version;this.itemType==cn&&!/not.a.brand/i.test(u)&&(!a||/chrom/i.test(a)&&u!=vv)&&(u=Pr(u,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(we,u).set(_e,d).set(zo,Sd(d)),a=u),this.itemType==Fn&&u==vv&&this.set(_e,d)}break;case ir:var h=i[ln];h&&(h&&i[mc]=="64"&&(h+="64"),kd.call(this.data,h+";",s));break;case Gn:if(i[Xe]&&this.set(fe,Xe),i[pe]&&(this.set(pe,i[pe]),!this.get(fe)||!this.get(be))){var p={};kd.call(p,"droid 9; "+i[pe]+")",s),!this.get(fe)&&p.type&&this.set(fe,p.type),!this.get(be)&&p.vendor&&this.set(be,p.vendor)}if(i[fi]){var y;if(typeof i[fi]!="string")for(var v=0;!y&&v<i[fi].length;)y=Pr(i[fi][v++],wv);else y=Pr(i[fi],wv);this.set(fe,y)}break;case kn:var w=i[ds];if(w){var k=i[gh];w==xf&&(k=parseInt(Sd(k),10)>=13?"11":"10"),this.set(we,w).set(_e,k)}this.get(we)==xf&&i[pe]=="Xbox"&&this.set(we,"Xbox").set(_e,void 0);break;case ls:var C=this.data,E=function(O){return C[O].getItem().setCH(i).parseCH().get()};this.set(cn,E(cn)).set(ir,E(ir)).set(Gn,E(Gn)).set(Fn,E(Fn)).set(kn,E(kn))}return this},or.call(this,[["itemType",t],["ua",e],["uaCH",r],["rgxMap",n],["data",WO(this,t)]]),this}function dr(t,e,n){if(typeof t===ms?(Bu(t,!0)?(typeof e===ms&&(n=e),e=t):(n=t,e=void 0),t=void 0):typeof t===Cf&&!Bu(e,!0)&&(n=e,e=void 0),n&&typeof n.append===Mu){var r={};n.forEach(function(c,u){r[u]=c}),n=r}if(!(this instanceof dr))return new dr(t,e,n).getResult();var i=typeof t===Cf?t:n&&n[av]?n[av]:dn&&dn.userAgent?dn.userAgent:ps,s=new Lw(n,!0),o=e?GO(_v,e):_v,a=function(c){return c==ls?function(){return new Sv(c,i,o,s).set("ua",i).set(cn,this.getBrowser()).set(ir,this.getCPU()).set(Gn,this.getDevice()).set(Fn,this.getEngine()).set(kn,this.getOS()).get()}:function(){return new Sv(c,i,o[c],s).parseUA().get()}};return or.call(this,[["getBrowser",a(cn)],["getCPU",a(ir)],["getDevice",a(Gn)],["getEngine",a(Fn)],["getOS",a(kn)],["getResult",a(ls)],["getUA",function(){return i}],["setUA",function(c){return Rs(c)&&(i=c.length>Af?Go(c,Af):c),this}]]).setUA(i),this}dr.VERSION=LO;dr.BROWSER=gc([we,_e,zo,fe]);dr.CPU=gc([ln]);dr.DEVICE=gc([pe,be,fe,So,Xe,Lt,St,zn,ko]);dr.ENGINE=dr.OS=gc([we,_e]);const{coreLogger:YO}=pr(),JO=YO.child("getClientTimeZone");function Mw(t=!1){var s,o,a;let e=null,n=null,r=null;try{e=(a=(o=(s=Intl.DateTimeFormat())==null?void 0:s.resolvedOptions())==null?void 0:o.timeZone)!=null?a:null;const c=-new Date().getTimezoneOffset();r=c;const u=c>=0?"+":"-",d=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),h=String(Math.abs(c)%60).padStart(2,"0");n=`${u}${d}:${h}`}catch(c){JO.error("Error obtaining time zone or offset",c)}const i={offset:n,offsetValue:r,value:e,country:null,included:null,label:null};if(t){const{country:c,included:u,label:d,...h}=i;return h}return i}function Bw(){const e=typeof navigator!="undefined"?navigator.userAgent:"server",n=XO(e),{language:r,languages:i}=QO(),s=ZO(),o=eI(),{hardwareConcurrency:a,deviceMemory:c}=tI(),u=nI();return{userAgent:e,browser:n.browser,os:n.os,device:n.device,language:r,languages:i,screen:s,connection:o,hardwareConcurrency:a,deviceMemory:c,timezone:u}}function XO(t){try{const n=new dr(t).getResult();return{browser:{name:n.browser.name||"Unknown",version:n.browser.version||"Unknown"},os:{name:n.os.name||"Unknown",version:n.os.version||"Unknown"},device:{model:n.device.model||"Unknown",type:n.device.type||"Desktop",vendor:n.device.vendor||"Unknown"}}}catch(e){return console.error("Error parsing user agent:",e),{browser:{name:"Unknown",version:"Unknown"},os:{name:"Unknown",version:"Unknown"},device:{model:"Unknown",type:"Desktop",vendor:"Unknown"}}}}function QO(){return typeof navigator!="undefined"?{language:navigator.language||"Unknown",languages:navigator.languages?[...navigator.languages]:[]}:{language:"Unknown",languages:[]}}function ZO(){return typeof window!="undefined"&&window.screen?{width:window.screen.width,height:window.screen.height,colorDepth:window.screen.colorDepth}:null}function eI(){var t,e,n,r;if(typeof navigator!="undefined"&&"connection"in navigator){const i=navigator.connection;return{downlink:(t=i==null?void 0:i.downlink)!=null?t:0,effectiveType:(e=i==null?void 0:i.effectiveType)!=null?e:"Unknown",rtt:(n=i==null?void 0:i.rtt)!=null?n:0,saveData:(r=i==null?void 0:i.saveData)!=null?r:!1}}return null}function tI(){return typeof navigator!="undefined"?{hardwareConcurrency:navigator.hardwareConcurrency||null,deviceMemory:navigator.deviceMemory||null}:{hardwareConcurrency:null,deviceMemory:null}}function nI(){try{return Mw(!0)}catch(t){return console.error("Error retrieving client timezone:",t),{offset:null,offsetValue:null,value:"Unknown",country:null,included:null,label:null}}}var $w=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))($w||{}),jw=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(jw||{}),Vw=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Vw||{}),qw=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(qw||{}),Hw=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(Hw||{}),Kw=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(Kw||{});class vh extends hr{constructor(e){super("NIZZA_ACCOUNT_NOT_FOUND_ERROR",`Error finding account: ${e}`)}}class zw extends hr{constructor(e){super("NIZZA_PLAN_NOT_FOUND_ERROR",`Error finding plan: ${e}`)}}class Gw extends hr{constructor(e){super("NIZZA_CREATE_PLAN_ERROR",`Error creating plan: ${e.plan}`,e)}}const kv=`${bs.apiUrls.restV2}/v1/plans`;class Ww{async get(e,n){const i=`/info${Ow({planType:e})}`,s=kv+i,{data:o}=await xi({url:s,account:n});return o}async create(e){const n=`${kv}/create`,{success:r}=await xi({url:n,method:"POST",body:JSON.stringify(e)});if(!r)throw new Gw(e)}}function rI(t){const{host:e,account:n,username:r,createdAt:i,subscriptionType:s,installationDateApp:o,...a}=t;return{...a,account:n,host:e!=null?e:null,username:r!=null?r:n,createdAt:new Date(i),subscriptionType:s!=null?s:null,installationDateApp:new Date(o)}}function iI(t){const{host:e,...n}=t;return{...n,host:e!=null?e:null,plan:{}}}const sI=`${bs.apiUrls.restV2}/v1/accounts`;class Yw{async get(e){const n=`${sI}/${e}/public`,{data:r}=await xi({url:n,account:e});return r?iI(r):null}}const oI=`${bs.apiUrls.restV2}/v1/accounts`;class aI{async get(e){const n=`${oI}/${e}`,{data:r}=await xi({url:n,account:e,secure:!0});return r?rI(r):null}}class Jw{constructor(e,n,r){this.publicAccountRepo=e,this.privateAccountRepo=n,this.accountPlanRepo=r}async get(e,n=!1){try{const r=n?await this.privateAccountRepo.get(e):await this.publicAccountRepo.get(e);if(!r)throw new vh(e);const i=await this.accountPlanRepo.get(r.descriptionPlan,r.account);if(!i)throw new zw(r.descriptionPlan);return{...r,plan:i}}catch(r){throw new rh(r)}}}const uI=new Yw,cI=new aI,lI=new Ww,Xw=new Jw(uI,cI,lI),Qw=()=>{const{account:t,accountName:e,accountStatus:n,refetchAccount:r,isPvtAccount:i,isPubAccount:s}=Pw(u=>({account:u.account,accountName:u.accountName,accountStatus:u.accountStatus,refetchAccount:u.refetchAccount,isPvtAccount:u.isPvtAccount,isPubAccount:u.isPubAccount})),o=["idle","loading"].includes(n);return{account:t,accountName:e,isLoading:o,isError:n==="error",isSuccess:n==="success",accountStatus:n,refetchAccount:r,isPvtAccount:i,isPubAccount:s}};async function Zw(t,e){return Xw.get(t,e)}var e_=(t=>(t.Created="CREATED",t.CreateComplete="CREATE_COMPLETE",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(e_||{}),t_=(t=>(t.Add="add",t.Remove="remove",t))(t_||{}),n_=(t=>(t.Vtex="VTEX",t))(n_||{}),r_=(t=>(t.Active="active",t.Inactive="inactive",t))(r_||{});const dI={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"}}]}}]}}]}}]},fI={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"}}]}}]}}]}}]},hI={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"}}]}}]}}]}}]},pI={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"}}]}}]}}]}}]},mI={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"}}]}}]}}]}}]},gI={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"}}]}}]}}]}}]},vI={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"}}]}}]}}]}}]},yI={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"}}]}}]}}]}}]},bI={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"}}]}}]}}]}}]},wI={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"}}]}}]}}]}}]},_I={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"}}]}}]}}]}}]},SI={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"}}]}}]}}]}}]},kI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},i_={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"}}]}}]}}]}}]},EI={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"}}]}}]}}]}}]},AI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},CI={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"}}]}}]}}]}}]},xI={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"}}]}}]}}]}}]},NI={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"}}]}}]}}]}}]},TI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AddToCartSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},OI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},II={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"}}]}}]}}]}}]},RI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},PI={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"}}]}}]}}]}}]},DI={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"}}]}}]}}]}}]},FI={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"}}]}}]}}]}}]},UI={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"}}]}}]}}]}}]},LI={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"}}]}}]}}]}}]},MI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},BI={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"}}]}}]}}]}}]}}]},$I={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"}}]}}]}}]}}]},jI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},VI={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"}}]}}]}}]}}]},qI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"productName"}},{kind:"Field",name:{kind:"Name",value:"productImageUrl"}}]}}]}}]}},{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"}}]}}]}}]}}]},HI=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:dI,AppendProductsToSnackVideoDocument:II,BlockUserDocument:wI,ChangeAccountUsernameDocument:_I,CreatePlayListDocument:RI,CreateSnackVideoBatchDocument:PI,DeleteAllCustomizationDocument:CI,DeleteChatMessageDocument:SI,DeleteCollectionDocument:fI,DeleteRelationshipWithSnackVideoDocument:DI,DeleteSnackVideoDocument:FI,EventStatus:e_,FindByProductSnackVideoDocument:VI,FindCollectionDocument:hI,FindManySnackVideosDocument:UI,FindMinimalEventDocument:yI,GetAllChatMessageDocument:kI,GetAllCollectionsDocument:pI,GetAllCustomizationDocument:xI,GetAllSnackVideosDocument:LI,GetChatRoomTokenDocument:i_,GetPlayListDocument:qI,GetPlayListsDocument:MI,GetSnackVideoRelationshipsDocument:BI,GetTimeLineDocument:OI,HighlightProductDocument:AI,ManageCollectionProductDocument:mI,Methods:t_,PinChatMessageDocument:EI,SearchCollectionsDocument:gI,SearchMinimalEventsDocument:bI,SearchSnackVideosDocument:$I,SendAddToCartDocument:TI,SignProvider:n_,Status:r_,UpdateCollectionDocument:vI,UpdateCustomizationDocument:NI,UpdatePlayListDocument:jI},Symbol.toStringTag,{value:"Module"}));var vc=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(vc||{});function KI(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var mr=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.VtexFastStore="faststore",t.Platform="platform",t.External="external",t))(mr||{}),yh=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(yh||{});const{coreLogger:zI}=pr(),Tf=zI.child("addToCartHooks"),Of={errorAddingToCart:"addToCartHooks.notification.error",errorOpeningVariationSelector:"addToCartHooks.notification.error",errorOpeningNewTab:"addToCartHooks.notification.error",successAddingToCart:"addToCartHooks.notification.success"};async function GI(t){const e={...t,action:{type:vc.ADD_TO_CART,exec:()=>Tf.error("action no implemented in validate hook")}};try{const n=await WI(e),r=await YI(n);await JI(r)}catch(n){Tf.error("error unhandled",n)}}async function WI(t){var s,o;const{context:e,userAddToCartConfig:n}=t,r=(s=n==null?void 0:n.hooks)==null?void 0:s.transform;let i=t.product;if(r)try{i=await r({product:{...i},data:(o=e.data)!=null?o:{}})}catch(a){$u("transform",a)}return{...t,product:i}}async function YI(t){var c,u;const{context:e,hookStrategy:n,userAddToCartConfig:r,product:i}=t,s=s_(t),o=(c=r==null?void 0:r.hooks)==null?void 0:c.validate;let a=n.validate({...t,actionFactory:s});if(o)try{a=await o({product:{...i},defaultAction:{...a},action:s,data:(u=e.data)!=null?u:{}})}catch(d){$u("validate",d)}return{...t,action:a,actionFactory:s}}async function JI(t){var k;const{eventBus:e}=pr(),{product:n,userAddToCartConfig:r,notifyFactory:i,action:s,actionFactory:o}=t,{isVariationSelectorOpen:a,data:c={}}=t.context,u=(k=r==null?void 0:r.hooks)==null?void 0:k.end,d=s.type===vc.ADD_TO_CART;let h=null,p=!1;const y=()=>{!d||!a||o.openVariationSelector(!1).exec()},v=()=>{!d||p||(h?i.error(Of.errorAddingToCart):i.success(Of.successAddingToCart))},w=()=>{const C={product:n,actionType:s.type,success:!h,error:h};e.emit(Sw.ATCH_ACTION_EXECUTED,C)};try{if(!s.type||!s.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await s.exec()}catch(C){$u("end",C),h=C}if(u)try{p=!!await u({data:c,error:h,notify:i,actionExecuted:s})}catch(C){$u("end",C)}y(),v(),w()}function s_(t){const{actionFactory:e,userAddToCartConfig:n}=t,r=i=>Object.entries(i!=null?i:{}).reduce((s,[o,a])=>({...s,[o]:c=>({type:o,exec:()=>a(c)})}),{});return{...r(e),...r(n==null?void 0:n.actionFactory)}}function $u(t,e){Tf.error(`addToCartHooks error running ${t}: `,e)}class o_{constructor(e){Pe(this,"aggregate");Pe(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,r]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=r);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function a_(t){return new o_(t)}class XI{constructor(e){Pe(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var Xt=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(Xt||{});function u_(t,e){return function(){return t.apply(e,arguments)}}const{toString:QI}=Object.prototype,{getPrototypeOf:bh}=Object,yc=(t=>e=>{const n=QI.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vn=t=>(t=t.toLowerCase(),e=>yc(e)===t),bc=t=>e=>typeof e===t,{isArray:Ps}=Array,Wo=bc("undefined");function ZI(t){return t!==null&&!Wo(t)&&t.constructor!==null&&!Wo(t.constructor)&&wn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const c_=Vn("ArrayBuffer");function eR(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&c_(t.buffer),e}const tR=bc("string"),wn=bc("function"),l_=bc("number"),wc=t=>t!==null&&typeof t=="object",nR=t=>t===!0||t===!1,hu=t=>{if(yc(t)!=="object")return!1;const e=bh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},rR=Vn("Date"),iR=Vn("File"),sR=Vn("Blob"),oR=Vn("FileList"),aR=t=>wc(t)&&wn(t.pipe),uR=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||wn(t.append)&&((e=yc(t))==="formdata"||e==="object"&&wn(t.toString)&&t.toString()==="[object FormData]"))},cR=Vn("URLSearchParams"),[lR,dR,fR,hR]=["ReadableStream","Request","Response","Headers"].map(Vn),pR=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ia(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,i;if(typeof t!="object"&&(t=[t]),Ps(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(r=0;r<o;r++)a=s[r],e.call(null,t[a],a,t)}}function d_(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const vi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,f_=t=>!Wo(t)&&t!==vi;function If(){const{caseless:t}=f_(this)&&this||{},e={},n=(r,i)=>{const s=t&&d_(e,i)||i;hu(e[s])&&hu(r)?e[s]=If(e[s],r):hu(r)?e[s]=If({},r):Ps(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ia(arguments[r],n);return e}const mR=(t,e,n,{allOwnKeys:r}={})=>(ia(e,(i,s)=>{n&&wn(i)?t[s]=u_(i,n):t[s]=i},{allOwnKeys:r}),t),gR=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vR=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},yR=(t,e,n,r)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&bh(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},bR=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},wR=t=>{if(!t)return null;if(Ps(t))return t;let e=t.length;if(!l_(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_R=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&bh(Uint8Array)),SR=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},kR=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ER=Vn("HTMLFormElement"),AR=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ev=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),CR=Vn("RegExp"),h_=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ia(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},xR=t=>{h_(t,(e,n)=>{if(wn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(wn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NR=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Ps(t)?r(t):r(String(t).split(e)),n},TR=()=>{},OR=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ed="abcdefghijklmnopqrstuvwxyz",Av="0123456789",p_={DIGIT:Av,ALPHA:Ed,ALPHA_DIGIT:Ed+Ed.toUpperCase()+Av},IR=(t=16,e=p_.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function RR(t){return!!(t&&wn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const PR=t=>{const e=new Array(10),n=(r,i)=>{if(wc(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Ps(r)?[]:{};return ia(r,(o,a)=>{const c=n(o,i+1);!Wo(c)&&(s[a]=c)}),e[i]=void 0,s}}return r};return n(t,0)},DR=Vn("AsyncFunction"),FR=t=>t&&(wc(t)||wn(t))&&wn(t.then)&&wn(t.catch),m_=((t,e)=>t?setImmediate:e?((n,r)=>(vi.addEventListener("message",({source:i,data:s})=>{i===vi&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wn(vi.postMessage)),UR=typeof queueMicrotask!="undefined"?queueMicrotask.bind(vi):typeof process!="undefined"&&process.nextTick||m_,oe={isArray:Ps,isArrayBuffer:c_,isBuffer:ZI,isFormData:uR,isArrayBufferView:eR,isString:tR,isNumber:l_,isBoolean:nR,isObject:wc,isPlainObject:hu,isReadableStream:lR,isRequest:dR,isResponse:fR,isHeaders:hR,isUndefined:Wo,isDate:rR,isFile:iR,isBlob:sR,isRegExp:CR,isFunction:wn,isStream:aR,isURLSearchParams:cR,isTypedArray:_R,isFileList:oR,forEach:ia,merge:If,extend:mR,trim:pR,stripBOM:gR,inherits:vR,toFlatObject:yR,kindOf:yc,kindOfTest:Vn,endsWith:bR,toArray:wR,forEachEntry:SR,matchAll:kR,isHTMLForm:ER,hasOwnProperty:Ev,hasOwnProp:Ev,reduceDescriptors:h_,freezeMethods:xR,toObjectSet:NR,toCamelCase:AR,noop:TR,toFiniteNumber:OR,findKey:d_,global:vi,isContextDefined:f_,ALPHABET:p_,generateString:IR,isSpecCompliantForm:RR,toJSONObject:PR,isAsyncFn:DR,isThenable:FR,setImmediate:m_,asap:UR};function Qe(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}oe.inherits(Qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const g_=Qe.prototype,v_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{v_[t]={value:t}});Object.defineProperties(Qe,v_);Object.defineProperty(g_,"isAxiosError",{value:!0});Qe.from=(t,e,n,r,i,s)=>{const o=Object.create(g_);return oe.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),Qe.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const LR=null;function Rf(t){return oe.isPlainObject(t)||oe.isArray(t)}function y_(t){return oe.endsWith(t,"[]")?t.slice(0,-2):t}function Cv(t,e,n){return t?t.concat(e).map(function(i,s){return i=y_(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function MR(t){return oe.isArray(t)&&!t.some(Rf)}const BR=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)});function _c(t,e,n){if(!oe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!oe.isUndefined(k[w])});const r=n.metaTokens,i=n.visitor||d,s=n.dots,o=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&oe.isSpecCompliantForm(e);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(oe.isDate(v))return v.toISOString();if(!c&&oe.isBlob(v))throw new Qe("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(v)||oe.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,w,k){let C=v;if(v&&!k&&typeof v=="object"){if(oe.endsWith(w,"{}"))w=r?w:w.slice(0,-2),v=JSON.stringify(v);else if(oe.isArray(v)&&MR(v)||(oe.isFileList(v)||oe.endsWith(w,"[]"))&&(C=oe.toArray(v)))return w=y_(w),C.forEach(function(O,I){!(oe.isUndefined(O)||O===null)&&e.append(o===!0?Cv([w],I,s):o===null?w:w+"[]",u(O))}),!1}return Rf(v)?!0:(e.append(Cv(k,w,s),u(v)),!1)}const h=[],p=Object.assign(BR,{defaultVisitor:d,convertValue:u,isVisitable:Rf});function y(v,w){if(!oe.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(v),oe.forEach(v,function(C,E){(!(oe.isUndefined(C)||C===null)&&i.call(e,C,oe.isString(E)?E.trim():E,w,p))===!0&&y(C,w?w.concat(E):[E])}),h.pop()}}if(!oe.isObject(t))throw new TypeError("data must be an object");return y(t),e}function xv(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function wh(t,e){this._pairs=[],t&&_c(t,this,e)}const b_=wh.prototype;b_.append=function(e,n){this._pairs.push([e,n])};b_.toString=function(e){const n=e?function(r){return e.call(this,r,xv)}:xv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function $R(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w_(t,e,n){if(!e)return t;const r=n&&n.encode||$R,i=n&&n.serialize;let s;if(i?s=i(e,n):s=oe.isURLSearchParams(e)?e.toString():new wh(e,n).toString(r),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Nv{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const __={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jR=typeof URLSearchParams!="undefined"?URLSearchParams:wh,VR=typeof FormData!="undefined"?FormData:null,qR=typeof Blob!="undefined"?Blob:null,HR={isBrowser:!0,classes:{URLSearchParams:jR,FormData:VR,Blob:qR},protocols:["http","https","file","blob","url","data"]},_h=typeof window!="undefined"&&typeof document!="undefined",Pf=typeof navigator=="object"&&navigator||void 0,KR=_h&&(!Pf||["ReactNative","NativeScript","NS"].indexOf(Pf.product)<0),zR=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GR=_h&&window.location.href||"http://localhost",WR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_h,hasStandardBrowserEnv:KR,hasStandardBrowserWebWorkerEnv:zR,navigator:Pf,origin:GR},Symbol.toStringTag,{value:"Module"})),fn={...WR,...HR};function YR(t,e){return _c(t,new fn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return fn.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function JR(t){return oe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function XR(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function S_(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&oe.isArray(i)?i.length:o,c?(oe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!oe.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&oe.isArray(i[o])&&(i[o]=XR(i[o])),!a)}if(oe.isFormData(t)&&oe.isFunction(t.entries)){const n={};return oe.forEachEntry(t,(r,i)=>{e(JR(r),i,n,0)}),n}return null}function QR(t,e,n){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const sa={transitional:__,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=oe.isObject(e);if(s&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(S_(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YR(e,this.formSerializer).toString();if((a=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _c(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),QR(e)):e}],transformResponse:[function(e){const n=this.transitional||sa.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Qe.from(a,Qe.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fn.classes.FormData,Blob:fn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],t=>{sa.headers[t]={}});const ZR=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eP=t=>{const e={};let n,r,i;return t&&t.split(`
|
|
128
|
+
`)),console.groupEnd()}}const yO={endpoint:`${bs.apiUrls.restV2}/v1/telemetry/logs`,batchSize:500,flushInterval:10,maxRetries:5,retryBackoffFactor:2,maxPayloadSize:500};class hh{constructor(e){Pe(this,"config");Pe(this,"isFlushing",!1);Pe(this,"retryCount",0);Pe(this,"isFlushScheduled",!1);this.config=e,this.setupUnloadListener()}static create(e){const n={...yO,...e};if(!n.db)throw new Error("Invalid Dixie DB");if(!n.project)throw new Error("Project name is required");return new hh(n)}async save(e){const n=JSON.parse(JSON.stringify(e));await this.config.db.logs.add(n),this.scheduleFlush()}scheduleFlush(e=this.config.flushInterval*1e3){this.isFlushScheduled||this.isFlushing||(this.isFlushScheduled=!0,setTimeout(()=>{this.isFlushScheduled=!1,this.flush()},e))}async flush(){if(this.isFlushing)return;this.isFlushing=!0;let e=!1;try{await this.processLogsBatch(async r=>{await this.sendLogs(r),await this.deleteLogs(r)}),this.retryCount=0,e=!0}catch(r){this.logError("flush",r)}this.isFlushing=!1;const n=await this.hasPendingLogs();!e&&n?this.handleRetry():e&&n&&this.scheduleFlush()}async processLogsBatch(e){const n=await this.getLogsBatch(),r=this.splitLogsByPayloadSize(n);for(const i of r)await e(i)}async getLogsBatch(e=this.config.batchSize){return this.config.db.logs.orderBy("time").limit(e).toArray()}splitLogsByPayloadSize(e){let n=[],r=0;const i=[];return e.forEach(s=>{const o=JSON.stringify(s).length/1024;r+o>this.config.maxPayloadSize&&(i.push(n),n=[],r=0),n.push(s),r+=o}),n.length>0&&i.push(n),i}async sendLogs(e){const n=this.buildPayload(e);await xi({url:this.config.endpoint,method:"POST",body:n})}buildPayload(e){return JSON.stringify({project:this.config.project,logs:e})}async deleteLogs(e){const n=e.map(r=>r.id);await this.config.db.logs.bulkDelete(n)}logError(e,n){console.error(`[${e}]`,n)}handleRetry(){if(this.retryCount>=this.config.maxRetries)return;this.retryCount++;const e=this.config.flushInterval*Math.pow(this.config.retryBackoffFactor,this.retryCount)*1e3;this.scheduleFlush(e)}async hasPendingLogs(){return await this.config.db.logs.count()>0}setupUnloadListener(){window.addEventListener("beforeunload",async()=>{this.isFlushing||!await this.hasPendingLogs()||await this.processLogsBatch(async e=>{const n=this.buildPayload(e);navigator.sendBeacon(this.config.endpoint,n)?await this.deleteLogs(e):console.warn("Failed to send logs via sendBeacon; logs will remain in the database.")})})}}var od={},ad,Zg;function hc(){if(Zg)return ad;Zg=1;const t="\\\\/",e=`[^${t}]`,n="\\.",r="\\+",i="\\?",s="\\/",o="(?=.)",a="[^/]",c=`(?:${s}|$)`,u=`(?:^|${s})`,d=`${n}{1,2}${c}`,h=`(?!${n})`,p=`(?!${u}${d})`,y=`(?!${n}{0,1}${c})`,v=`(?!${d})`,w=`[^.${s}]`,k=`${a}*?`,E={DOT_LITERAL:n,PLUS_LITERAL:r,QMARK_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:o,QMARK:a,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:p,NO_DOT_SLASH:y,NO_DOTS_SLASH:v,QMARK_NO_DOT:w,STAR:k,START_ANCHOR:u,SEP:"/"},O={...E,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"},I={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ad={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:I,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(M){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${M.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(M){return M===!0?O:E}},ad}var ev;function pc(){return ev||(ev=1,function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=hc();t.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),t.hasRegexChars=s=>r.test(s),t.isRegexChar=s=>s.length===1&&t.hasRegexChars(s),t.escapeRegex=s=>s.replace(i,"\\$1"),t.toPosixSlashes=s=>s.replace(e,"/"),t.isWindows=()=>{if(typeof navigator!="undefined"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return typeof process!="undefined"&&process.platform?process.platform==="win32":!1},t.removeBackslashes=s=>s.replace(n,o=>o==="\\"?"":o),t.escapeLast=(s,o,a)=>{const c=s.lastIndexOf(o,a);return c===-1?s:s[c-1]==="\\"?t.escapeLast(s,o,c-1):`${s.slice(0,c)}\\${s.slice(c)}`},t.removePrefix=(s,o={})=>{let a=s;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(s,o={},a={})=>{const c=a.contains?"":"^",u=a.contains?"":"$";let d=`${c}(?:${s})${u}`;return o.negated===!0&&(d=`(?:^(?!${d}).*$)`),d},t.basename=(s,{windows:o}={})=>{const a=s.split(o?/[\\/]/:"/"),c=a[a.length-1];return c===""?a[a.length-2]:c}}(od)),od}var ud,tv;function bO(){if(tv)return ud;tv=1;const t=pc(),{CHAR_ASTERISK:e,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:h,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:w}=hc(),k=O=>O===a||O===r,C=O=>{O.isPrefix!==!0&&(O.depth=O.isGlobstar?1/0:1)};return ud=(O,I)=>{const M=I||{},Y=O.length-1,ee=M.parts===!0||M.scanToEnd===!0,F=[],se=[],H=[];let ie=O,xe=-1,qe=0,G=0,R=!1,Q=!1,te=!1,ge=!1,ve=!1,U=!1,de=!1,Se=!1,Fe=!1,L=!1,X=0,He,Ne,Ve={value:"",depth:0,isGlob:!1};const Ae=()=>xe>=Y,Ze=()=>ie.charCodeAt(xe+1),Ke=()=>(He=Ne,ie.charCodeAt(++xe));for(;xe<Y;){Ne=Ke();let lt;if(Ne===r){de=Ve.backslashes=!0,Ne=Ke(),Ne===c&&(U=!0);continue}if(U===!0||Ne===c){for(X++;Ae()!==!0&&(Ne=Ke());){if(Ne===r){de=Ve.backslashes=!0,Ke();continue}if(Ne===c){X++;continue}if(U!==!0&&Ne===s&&(Ne=Ke())===s){if(R=Ve.isBrace=!0,te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(U!==!0&&Ne===i){if(R=Ve.isBrace=!0,te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===y&&(X--,X===0)){U=!1,R=Ve.isBrace=!0,L=!0;break}}if(ee===!0)continue;break}if(Ne===a){if(F.push(xe),se.push(Ve),Ve={value:"",depth:0,isGlob:!1},L===!0)continue;if(He===s&&xe===qe+1){qe+=2;continue}G=xe+1;continue}if(M.noext!==!0&&(Ne===h||Ne===n||Ne===e||Ne===p||Ne===o)===!0&&Ze()===u){if(te=Ve.isGlob=!0,ge=Ve.isExtglob=!0,L=!0,Ne===o&&xe===qe&&(Fe=!0),ee===!0){for(;Ae()!==!0&&(Ne=Ke());){if(Ne===r){de=Ve.backslashes=!0,Ne=Ke();continue}if(Ne===v){te=Ve.isGlob=!0,L=!0;break}}continue}break}if(Ne===e){if(He===e&&(ve=Ve.isGlobstar=!0),te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===p){if(te=Ve.isGlob=!0,L=!0,ee===!0)continue;break}if(Ne===d){for(;Ae()!==!0&&(lt=Ke());){if(lt===r){de=Ve.backslashes=!0,Ke();continue}if(lt===w){Q=Ve.isBracket=!0,te=Ve.isGlob=!0,L=!0;break}}if(ee===!0)continue;break}if(M.nonegate!==!0&&Ne===o&&xe===qe){Se=Ve.negated=!0,qe++;continue}if(M.noparen!==!0&&Ne===u){if(te=Ve.isGlob=!0,ee===!0){for(;Ae()!==!0&&(Ne=Ke());){if(Ne===u){de=Ve.backslashes=!0,Ne=Ke();continue}if(Ne===v){L=!0;break}}continue}break}if(te===!0){if(L=!0,ee===!0)continue;break}}M.noext===!0&&(ge=!1,te=!1);let Ie=ie,at="",ct="";qe>0&&(at=ie.slice(0,qe),ie=ie.slice(qe),G-=qe),Ie&&te===!0&&G>0?(Ie=ie.slice(0,G),ct=ie.slice(G)):te===!0?(Ie="",ct=ie):Ie=ie,Ie&&Ie!==""&&Ie!=="/"&&Ie!==ie&&k(Ie.charCodeAt(Ie.length-1))&&(Ie=Ie.slice(0,-1)),M.unescape===!0&&(ct&&(ct=t.removeBackslashes(ct)),Ie&&de===!0&&(Ie=t.removeBackslashes(Ie)));const Ue={prefix:at,input:O,start:qe,base:Ie,glob:ct,isBrace:R,isBracket:Q,isGlob:te,isExtglob:ge,isGlobstar:ve,negated:Se,negatedExtglob:Fe};if(M.tokens===!0&&(Ue.maxDepth=0,k(Ne)||se.push(Ve),Ue.tokens=se),M.parts===!0||M.tokens===!0){let lt;for(let vt=0;vt<F.length;vt++){const x=lt?lt+1:qe,_=F[vt],g=O.slice(x,_);M.tokens&&(vt===0&&qe!==0?(se[vt].isPrefix=!0,se[vt].value=at):se[vt].value=g,C(se[vt]),Ue.maxDepth+=se[vt].depth),(vt!==0||g!=="")&&H.push(g),lt=_}if(lt&<+1<O.length){const vt=O.slice(lt+1);H.push(vt),M.tokens&&(se[se.length-1].value=vt,C(se[se.length-1]),Ue.maxDepth+=se[se.length-1].depth)}Ue.slashes=F,Ue.parts=H}return Ue},ud}var cd,nv;function wO(){if(nv)return cd;nv=1;const t=hc(),e=pc(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,a=(d,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...d,h);d.sort();const p=`[${d.join("-")}]`;try{new RegExp(p)}catch{return d.map(v=>e.escapeRegex(v)).join("..")}return p},c=(d,h)=>`Missing ${d}: "${h}" - use "\\\\${h}" to match literal characters`,u=(d,h)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=o[d]||d;const p={...h},y=typeof p.maxLength=="number"?Math.min(n,p.maxLength):n;let v=d.length;if(v>y)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${y}`);const w={type:"bos",value:"",output:p.prepend||""},k=[w],C=p.capture?"":"?:",E=t.globChars(p.windows),O=t.extglobChars(E),{DOT_LITERAL:I,PLUS_LITERAL:M,SLASH_LITERAL:Y,ONE_CHAR:ee,DOTS_SLASH:F,NO_DOT:se,NO_DOT_SLASH:H,NO_DOTS_SLASH:ie,QMARK:xe,QMARK_NO_DOT:qe,STAR:G,START_ANCHOR:R}=E,Q=x=>`(${C}(?:(?!${R}${x.dot?F:I}).)*?)`,te=p.dot?"":se,ge=p.dot?xe:qe;let ve=p.bash===!0?Q(p):G;p.capture&&(ve=`(${ve})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);const U={input:d,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:k};d=e.removePrefix(d,U),v=d.length;const de=[],Se=[],Fe=[];let L=w,X;const He=()=>U.index===v-1,Ne=U.peek=(x=1)=>d[U.index+x],Ve=U.advance=()=>d[++U.index]||"",Ae=()=>d.slice(U.index+1),Ze=(x="",_=0)=>{U.consumed+=x,U.index+=_},Ke=x=>{U.output+=x.output!=null?x.output:x.value,Ze(x.value)},Ie=()=>{let x=1;for(;Ne()==="!"&&(Ne(2)!=="("||Ne(3)==="?");)Ve(),U.start++,x++;return x%2===0?!1:(U.negated=!0,U.start++,!0)},at=x=>{U[x]++,Fe.push(x)},ct=x=>{U[x]--,Fe.pop()},Ue=x=>{if(L.type==="globstar"){const _=U.braces>0&&(x.type==="comma"||x.type==="brace"),g=x.extglob===!0||de.length&&(x.type==="pipe"||x.type==="paren");x.type!=="slash"&&x.type!=="paren"&&!_&&!g&&(U.output=U.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=ve,U.output+=L.output)}if(de.length&&x.type!=="paren"&&(de[de.length-1].inner+=x.value),(x.value||x.output)&&Ke(x),L&&L.type==="text"&&x.type==="text"){L.output=(L.output||L.value)+x.value,L.value+=x.value;return}x.prev=L,k.push(x),L=x},lt=(x,_)=>{const g={...O[_],conditions:1,inner:""};g.prev=L,g.parens=U.parens,g.output=U.output;const N=(p.capture?"(":"")+g.open;at("parens"),Ue({type:x,value:_,output:U.output?"":ee}),Ue({type:"paren",extglob:!0,value:Ve(),output:N}),de.push(g)},vt=x=>{let _=x.close+(p.capture?")":""),g;if(x.type==="negate"){let N=ve;if(x.inner&&x.inner.length>1&&x.inner.includes("/")&&(N=Q(p)),(N!==ve||He()||/^\)+$/.test(Ae()))&&(_=x.close=`)$))${N}`),x.inner.includes("*")&&(g=Ae())&&/^\.[^\\/.]+$/.test(g)){const V=u(g,{...h,fastpaths:!1}).output;_=x.close=`)${V})${N})`}x.prev.type==="bos"&&(U.negatedExtglob=!0)}Ue({type:"paren",extglob:!0,value:X,output:_}),ct("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let x=!1,_=d.replace(s,(g,N,V,ae,ue,We)=>ae==="\\"?(x=!0,g):ae==="?"?N?N+ae+(ue?xe.repeat(ue.length):""):We===0?ge+(ue?xe.repeat(ue.length):""):xe.repeat(V.length):ae==="."?I.repeat(V.length):ae==="*"?N?N+ae+(ue?ve:""):ve:N?g:`\\${g}`);return x===!0&&(p.unescape===!0?_=_.replace(/\\/g,""):_=_.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),_===d&&p.contains===!0?(U.output=d,U):(U.output=e.wrapOutput(_,U,h),U)}for(;!He();){if(X=Ve(),X==="\0")continue;if(X==="\\"){const g=Ne();if(g==="/"&&p.bash!==!0||g==="."||g===";")continue;if(!g){X+="\\",Ue({type:"text",value:X});continue}const N=/^\\+/.exec(Ae());let V=0;if(N&&N[0].length>2&&(V=N[0].length,U.index+=V,V%2!==0&&(X+="\\")),p.unescape===!0?X=Ve():X+=Ve(),U.brackets===0){Ue({type:"text",value:X});continue}}if(U.brackets>0&&(X!=="]"||L.value==="["||L.value==="[^")){if(p.posix!==!1&&X===":"){const g=L.value.slice(1);if(g.includes("[")&&(L.posix=!0,g.includes(":"))){const N=L.value.lastIndexOf("["),V=L.value.slice(0,N),ae=L.value.slice(N+2),ue=r[ae];if(ue){L.value=V+ue,U.backtrack=!0,Ve(),!w.output&&k.indexOf(L)===1&&(w.output=ee);continue}}}(X==="["&&Ne()!==":"||X==="-"&&Ne()==="]")&&(X=`\\${X}`),X==="]"&&(L.value==="["||L.value==="[^")&&(X=`\\${X}`),p.posix===!0&&X==="!"&&L.value==="["&&(X="^"),L.value+=X,Ke({value:X});continue}if(U.quotes===1&&X!=='"'){X=e.escapeRegex(X),L.value+=X,Ke({value:X});continue}if(X==='"'){U.quotes=U.quotes===1?0:1,p.keepQuotes===!0&&Ue({type:"text",value:X});continue}if(X==="("){at("parens"),Ue({type:"paren",value:X});continue}if(X===")"){if(U.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));const g=de[de.length-1];if(g&&U.parens===g.parens+1){vt(de.pop());continue}Ue({type:"paren",value:X,output:U.parens?")":"\\)"}),ct("parens");continue}if(X==="["){if(p.nobracket===!0||!Ae().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));X=`\\${X}`}else at("brackets");Ue({type:"bracket",value:X});continue}if(X==="]"){if(p.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){Ue({type:"text",value:X,output:`\\${X}`});continue}if(U.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));Ue({type:"text",value:X,output:`\\${X}`});continue}ct("brackets");const g=L.value.slice(1);if(L.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(X=`/${X}`),L.value+=X,Ke({value:X}),p.literalBrackets===!1||e.hasRegexChars(g))continue;const N=e.escapeRegex(L.value);if(U.output=U.output.slice(0,-L.value.length),p.literalBrackets===!0){U.output+=N,L.value=N;continue}L.value=`(${C}${N}|${L.value})`,U.output+=L.value;continue}if(X==="{"&&p.nobrace!==!0){at("braces");const g={type:"brace",value:X,output:"(",outputIndex:U.output.length,tokensIndex:U.tokens.length};Se.push(g),Ue(g);continue}if(X==="}"){const g=Se[Se.length-1];if(p.nobrace===!0||!g){Ue({type:"text",value:X,output:X});continue}let N=")";if(g.dots===!0){const V=k.slice(),ae=[];for(let ue=V.length-1;ue>=0&&(k.pop(),V[ue].type!=="brace");ue--)V[ue].type!=="dots"&&ae.unshift(V[ue].value);N=a(ae,p),U.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const V=U.output.slice(0,g.outputIndex),ae=U.tokens.slice(g.tokensIndex);g.value=g.output="\\{",X=N="\\}",U.output=V;for(const ue of ae)U.output+=ue.output||ue.value}Ue({type:"brace",value:X,output:N}),ct("braces"),Se.pop();continue}if(X==="|"){de.length>0&&de[de.length-1].conditions++,Ue({type:"text",value:X});continue}if(X===","){let g=X;const N=Se[Se.length-1];N&&Fe[Fe.length-1]==="braces"&&(N.comma=!0,g="|"),Ue({type:"comma",value:X,output:g});continue}if(X==="/"){if(L.type==="dot"&&U.index===U.start+1){U.start=U.index+1,U.consumed="",U.output="",k.pop(),L=w;continue}Ue({type:"slash",value:X,output:Y});continue}if(X==="."){if(U.braces>0&&L.type==="dot"){L.value==="."&&(L.output=I);const g=Se[Se.length-1];L.type="dots",L.output+=X,L.value+=X,g.dots=!0;continue}if(U.braces+U.parens===0&&L.type!=="bos"&&L.type!=="slash"){Ue({type:"text",value:X,output:I});continue}Ue({type:"dot",value:X,output:I});continue}if(X==="?"){if(!(L&&L.value==="(")&&p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){lt("qmark",X);continue}if(L&&L.type==="paren"){const N=Ne();let V=X;(L.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(Ae()))&&(V=`\\${X}`),Ue({type:"text",value:X,output:V});continue}if(p.dot!==!0&&(L.type==="slash"||L.type==="bos")){Ue({type:"qmark",value:X,output:qe});continue}Ue({type:"qmark",value:X,output:xe});continue}if(X==="!"){if(p.noextglob!==!0&&Ne()==="("&&(Ne(2)!=="?"||!/[!=<:]/.test(Ne(3)))){lt("negate",X);continue}if(p.nonegate!==!0&&U.index===0){Ie();continue}}if(X==="+"){if(p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){lt("plus",X);continue}if(L&&L.value==="("||p.regex===!1){Ue({type:"plus",value:X,output:M});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||U.parens>0){Ue({type:"plus",value:X});continue}Ue({type:"plus",value:M});continue}if(X==="@"){if(p.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){Ue({type:"at",extglob:!0,value:X,output:""});continue}Ue({type:"text",value:X});continue}if(X!=="*"){(X==="$"||X==="^")&&(X=`\\${X}`);const g=i.exec(Ae());g&&(X+=g[0],U.index+=g[0].length),Ue({type:"text",value:X});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=X,L.output=ve,U.backtrack=!0,U.globstar=!0,Ze(X);continue}let x=Ae();if(p.noextglob!==!0&&/^\([^?]/.test(x)){lt("star",X);continue}if(L.type==="star"){if(p.noglobstar===!0){Ze(X);continue}const g=L.prev,N=g.prev,V=g.type==="slash"||g.type==="bos",ae=N&&(N.type==="star"||N.type==="globstar");if(p.bash===!0&&(!V||x[0]&&x[0]!=="/")){Ue({type:"star",value:X,output:""});continue}const ue=U.braces>0&&(g.type==="comma"||g.type==="brace"),We=de.length&&(g.type==="pipe"||g.type==="paren");if(!V&&g.type!=="paren"&&!ue&&!We){Ue({type:"star",value:X,output:""});continue}for(;x.slice(0,3)==="/**";){const tt=d[U.index+4];if(tt&&tt!=="/")break;x=x.slice(3),Ze("/**",3)}if(g.type==="bos"&&He()){L.type="globstar",L.value+=X,L.output=Q(p),U.output=L.output,U.globstar=!0,Ze(X);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!ae&&He()){U.output=U.output.slice(0,-(g.output+L.output).length),g.output=`(?:${g.output}`,L.type="globstar",L.output=Q(p)+(p.strictSlashes?")":"|$)"),L.value+=X,U.globstar=!0,U.output+=g.output+L.output,Ze(X);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&x[0]==="/"){const tt=x[1]!==void 0?"|$":"";U.output=U.output.slice(0,-(g.output+L.output).length),g.output=`(?:${g.output}`,L.type="globstar",L.output=`${Q(p)}${Y}|${Y}${tt})`,L.value+=X,U.output+=g.output+L.output,U.globstar=!0,Ze(X+Ve()),Ue({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&x[0]==="/"){L.type="globstar",L.value+=X,L.output=`(?:^|${Y}|${Q(p)}${Y})`,U.output=L.output,U.globstar=!0,Ze(X+Ve()),Ue({type:"slash",value:"/",output:""});continue}U.output=U.output.slice(0,-L.output.length),L.type="globstar",L.output=Q(p),L.value+=X,U.output+=L.output,U.globstar=!0,Ze(X);continue}const _={type:"star",value:X,output:ve};if(p.bash===!0){_.output=".*?",(L.type==="bos"||L.type==="slash")&&(_.output=te+_.output),Ue(_);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&p.regex===!0){_.output=X,Ue(_);continue}(U.index===U.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(U.output+=H,L.output+=H):p.dot===!0?(U.output+=ie,L.output+=ie):(U.output+=te,L.output+=te),Ne()!=="*"&&(U.output+=ee,L.output+=ee)),Ue(_)}for(;U.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));U.output=e.escapeLast(U.output,"["),ct("brackets")}for(;U.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));U.output=e.escapeLast(U.output,"("),ct("parens")}for(;U.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));U.output=e.escapeLast(U.output,"{"),ct("braces")}if(p.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&Ue({type:"maybe_slash",value:"",output:`${Y}?`}),U.backtrack===!0){U.output="";for(const x of U.tokens)U.output+=x.output!=null?x.output:x.value,x.suffix&&(U.output+=x.suffix)}return U};return u.fastpaths=(d,h)=>{const p={...h},y=typeof p.maxLength=="number"?Math.min(n,p.maxLength):n,v=d.length;if(v>y)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${y}`);d=o[d]||d;const{DOT_LITERAL:w,SLASH_LITERAL:k,ONE_CHAR:C,DOTS_SLASH:E,NO_DOT:O,NO_DOTS:I,NO_DOTS_SLASH:M,STAR:Y,START_ANCHOR:ee}=t.globChars(p.windows),F=p.dot?I:O,se=p.dot?M:O,H=p.capture?"":"?:",ie={negated:!1,prefix:""};let xe=p.bash===!0?".*?":Y;p.capture&&(xe=`(${xe})`);const qe=te=>te.noglobstar===!0?xe:`(${H}(?:(?!${ee}${te.dot?E:w}).)*?)`,G=te=>{switch(te){case"*":return`${F}${C}${xe}`;case".*":return`${w}${C}${xe}`;case"*.*":return`${F}${xe}${w}${C}${xe}`;case"*/*":return`${F}${xe}${k}${C}${se}${xe}`;case"**":return F+qe(p);case"**/*":return`(?:${F}${qe(p)}${k})?${se}${C}${xe}`;case"**/*.*":return`(?:${F}${qe(p)}${k})?${se}${xe}${w}${C}${xe}`;case"**/.*":return`(?:${F}${qe(p)}${k})?${w}${C}${xe}`;default:{const ge=/^(.*?)\.(\w+)$/.exec(te);if(!ge)return;const ve=G(ge[1]);return ve?ve+w+ge[2]:void 0}}},R=e.removePrefix(d,ie);let Q=G(R);return Q&&p.strictSlashes!==!0&&(Q+=`${k}?`),Q},cd=u,cd}var ld,rv;function _O(){if(rv)return ld;rv=1;const t=bO(),e=wO(),n=pc(),r=hc(),i=o=>o&&typeof o=="object"&&!Array.isArray(o),s=(o,a,c=!1)=>{if(Array.isArray(o)){const k=o.map(E=>s(E,a,c));return E=>{for(const O of k){const I=O(E);if(I)return I}return!1}}const u=i(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const d=a||{},h=d.windows,p=u?s.compileRe(o,a):s.makeRe(o,a,!1,!0),y=p.state;delete p.state;let v=()=>!1;if(d.ignore){const k={...a,ignore:null,onMatch:null,onResult:null};v=s(d.ignore,k,c)}const w=(k,C=!1)=>{const{isMatch:E,match:O,output:I}=s.test(k,p,a,{glob:o,posix:h}),M={glob:o,state:y,regex:p,posix:h,input:k,output:I,match:O,isMatch:E};return typeof d.onResult=="function"&&d.onResult(M),E===!1?(M.isMatch=!1,C?M:!1):v(k)?(typeof d.onIgnore=="function"&&d.onIgnore(M),M.isMatch=!1,C?M:!1):(typeof d.onMatch=="function"&&d.onMatch(M),C?M:!0)};return c&&(w.state=y),w};return s.test=(o,a,c,{glob:u,posix:d}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const h=c||{},p=h.format||(d?n.toPosixSlashes:null);let y=o===u,v=y&&p?p(o):o;return y===!1&&(v=p?p(o):o,y=v===u),(y===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?y=s.matchBase(o,a,c,d):y=a.exec(v)),{isMatch:!!y,match:y,output:v}},s.matchBase=(o,a,c)=>(a instanceof RegExp?a:s.makeRe(a,c)).test(n.basename(o)),s.isMatch=(o,a,c)=>s(a,c)(o),s.parse=(o,a)=>Array.isArray(o)?o.map(c=>s.parse(c,a)):e(o,{...a,fastpaths:!1}),s.scan=(o,a)=>t(o,a),s.compileRe=(o,a,c=!1,u=!1)=>{if(c===!0)return o.output;const d=a||{},h=d.contains?"":"^",p=d.contains?"":"$";let y=`${h}(?:${o.output})${p}`;o&&o.negated===!0&&(y=`^(?!${y}).*$`);const v=s.toRegex(y,a);return u===!0&&(v.state=o),v},s.makeRe=(o,a={},c=!1,u=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(d.output=e.fastpaths(o,a)),d.output||(d=e(o,a)),s.compileRe(d,a,c,u)},s.toRegex=(o,a)=>{try{const c=a||{};return new RegExp(o,c.flags||(c.nocase?"i":""))}catch(c){if(a&&a.debug===!0)throw c;return/$^/}},s.constants=r,ld=s,ld}var dd,iv;function SO(){if(iv)return dd;iv=1;const t=_O(),e=pc();function n(r,i,s=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:e.isWindows()}),t(r,i,s)}return Object.assign(n,t),dd=n,dd}var kO=SO();const sv=Hr(kO),ov="loglevel-patterns",Ga="loglevel:",fd="!",EO=Rt.INFO;class AO{constructor(e){Pe(this,"projectPrefix");Pe(this,"patternsCache",null);this.projectPrefix=`${Ga}${e}:`}getLevel(e){const n=this.loadAndUnifyPatterns();return this.resolveLogLevelFromPatterns(e,n)||EO}setLevel(e,n){const{level:r,override:i}=this.parseLogLevel(n),s=`${Ga}${e}`,o=i?`${r}${fd}`:r;localStorage.setItem(s,o),this.patternsCache=null}loadAndUnifyPatterns(){if(this.patternsCache)return this.patternsCache;const e=this.readPatternsFromJSON(),n=this.unifyWithIndividualKeys(e);return this.patternsCache=n,n}resolveLogLevelFromPatterns(e,n){let r;for(const[i,{level:s,override:o}]of Object.entries(n))if(sv(i.toLowerCase())(e.toLowerCase())){if(o)return s;(!r||sv(i)(e))&&(r=s)}return r}readPatternsFromJSON(){try{const e=localStorage.getItem(ov);return e?JSON.parse(e):{}}catch{return console.error("Failed to parse loglevel-patterns from localStorage"),{}}}unifyWithIndividualKeys(e){const n={...e};for(let r=0;r<localStorage.length;r++){const i=localStorage.key(r);if(!i||!i.startsWith(Ga)||i===ov)continue;const s=i.replace(Ga,"").toLowerCase(),o=localStorage.getItem(i);if(!o)continue;const{level:a,override:c}=this.parseLogLevel(o);n[s]={level:a,override:c}}return n}parseLogLevel(e){const n=e.endsWith(fd),r=n?e.slice(0,-fd.length):e;if(!xw(r))throw new fh(r);return{level:r,override:n}}}class CO{constructor(e,n){Pe(this,"committed",!1);Pe(this,"chainOptions",{});Pe(this,"method",null);Pe(this,"stack","");Pe(this,"args",[]);this.adapter=e,n&&(this.chainOptions={...n}),Promise.resolve().then(()=>this.commit())}options(e){return this.chainOptions={...this.chainOptions,...e},this}trace(...e){return this.log("trace",e)}debug(...e){return this.log("debug",e)}info(...e){return this.log("info",e)}warn(...e){return this.log("warn",e)}error(...e){return this.log("error",e)}fatal(...e){return this.log("fatal",e)}log(e,n){var r;return this.method=e,this.args=n,this.stack=(r=new Error().stack)!=null?r:"",this}commit(){if(!this.committed&&(this.committed=!0,this.method)){const e=this.args[0],n=this.args.slice(1),r={stack:this.stack,content:{message:e,args:n},options:this.chainOptions};this.adapter[this.method](r)}}}let Nw=class Ef{constructor(e){Pe(this,"adapter");this.adapter=e}static create(e){const n=new Ef(e);return n.setMetadata({account:null,client:Bw()}),n}child(e,n={}){return new Ef(this.adapter.child(e,n))}lazyChild(e,n={}){let r;return new Proxy({},{get:(i,s,o)=>(r||(r=this.child(e,n)),Reflect.get(r,s,o))})}setMetadata(e){this.adapter.setMetadata(e)}setLevel(e){if(!xw(e))throw new fh(e);this.adapter.setLevel(e)}createChain(e){return new CO(this.adapter,e)}trace(...e){return this.createChain().trace(...e)}debug(...e){return this.createChain().debug(...e)}info(...e){return this.createChain().info(...e)}warn(...e){return this.createChain().warn(...e)}error(...e){return this.createChain().error(...e)}fatal(...e){return this.createChain().fatal(...e)}options(e){return this.createChain(e)}};function xO(t){return pr().baseLogger.lazyChild(t)}function Tw(t,e){return Nw.create(new kf({source:t,levelService:new AO(t),consoleLogger:new vO,httpLogger:hh.create({db:e,project:t})}))}const NO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let TO=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=NO[n[t]&63];return e};const Uu=(t=8)=>TO(t),Ow=(t,e=!1)=>{const n=Object.entries(t).reduce((r,[i,s])=>s!==void 0&&(!e||s!==null)?`${r}${r?"&":""}${i}=${s}`:r,"");return n?`?${n}`:""},Iw=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function OO(){const t=new Error().stack.split(`
|
|
129
|
+
`);return t.length<3?"":t[2].trim().substring(3)}function IO(t){return new Promise(e=>setTimeout(e,t))}const Pn=class Pn{constructor(){Pe(this,"projectName","nizza");Pe(this,"instanceId",Uu());Pe(this,"db",new sO);Pe(this,"baseLogger",Tw(this.projectName,this.db));Pe(this,"coreLogger",this.baseLogger.child("core"));Pe(this,"logger",this.coreLogger.child("NizzaStore"));Pe(this,"eventBus",new ww(this.projectName,this.coreLogger));Pe(this,"cfg",null);Pe(this,"accountData");Pe(this,"statusInternal","idle");Pe(this,"currentFetchId",null);Pe(this,"pds");FT(this,{projectName:!1,instanceId:!1,db:!1,logger:!1,coreLogger:!1,eventBus:!1},{autoBind:!0}),iw(()=>{var e,n;return[(e=this.cfg)==null?void 0:e.account,(n=this.cfg)==null?void 0:n.authToken]},([e,n])=>{e&&this.loadAccount(e,!!n)},{delay:500,equals:Ai.shallow})}static instance(){var n;const e=window;return(n=e.nizza)!=null&&n.store?Pn.instanceRef=e.nizza.store:(Pn.instanceRef=new Pn,Pn.instanceRef.logger.debug("Created NizzaStore")),e.nizza=e.nizza||{},e.nz=e.nz||e.nizza,e.nizza.store=Pn.instanceRef,e.nz=e.nizza,Pn.instanceRef}async configure(e){try{this.logger.debug("Configuring NizzaStore",e),await this.applyConfig(e)}catch(n){this.setStatus("error"),this.logger.error("Configuration error",n)}}async applyConfig(e={}){this.cfg={...this.cfg,...e},e.getProductDataSource&&this.setProductDataSource(await e.getProductDataSource())}async loadAccount(e,n){this.setStatus("loading");const r=Uu();this.currentFetchId=r,this.logger.setMetadata({account:e});try{const i=await Zw(e,n);if(this.currentFetchId!==r)return;this.setAccount(i),this.setStatus("success"),this.logger.debug("Account loaded",i)}catch(i){if(this.currentFetchId!==r)return;this.setStatus("error"),i instanceof vh?this.logger.fatal("Account not found",e).options({silent:!0}):this.logger.fatal("Error loading account",i)}}setAccount(e){this.accountData=e}setStatus(e){this.statusInternal=e}setProductDataSource(e){this.pds=e}setProductId(e){this.cfg&&(this.cfg.productId=e)}setOrderFormId(e){this.cfg&&(this.cfg.orderFormId=e)}setAddToCartConfig(e){if(!this.cfg)throw new Error("Call configure() first");this.cfg.addToCartConfig=e}setAuthToken(e){this.applyConfig({authToken:e})}async refetchAccount(){var e;(e=this.cfg)!=null&&e.account&&await this.loadAccount(this.cfg.account,!!this.cfg.authToken)}resetAccount(){this.accountData=void 0,this.statusInternal="idle",this.currentFetchId=null,this.pds=void 0,this.cfg&&(this.cfg.account=void 0,this.cfg.authToken=void 0,this.cfg.productId=null,this.cfg.orderFormId=null),this.logger.debug("Account state and related config fields have been reset")}get version(){return Pn.version}get config(){return this.cfg}get account(){return this.accountData}get accountStatus(){return this.statusInternal}get accountName(){var e;return(e=this.cfg)==null?void 0:e.account}isPvtAccount(e){var n;return!!(e&&((n=this.cfg)!=null&&n.authToken))}isPubAccount(e){var n;return!!(e&&!((n=this.cfg)!=null&&n.authToken))}get productDataSource(){return this.pds}};Pe(Pn,"version","11"),Pe(Pn,"instanceRef");let Lu=Pn;const pr=t=>{const e=Lu.instance();return IT(()=>!!e.account,()=>t==null?void 0:t(e)),e};function Rw(){return st.useMemo(()=>pr(),[])}function Pw(t,e){const n=Rw();return yw(()=>t(n),e)}async function xi(t){const{url:e,method:n="GET",headers:r,body:i,raw:s=!1,contentTypeJson:o=!0,timeout:a,secure:c=!1,account:u,...d}=t,h=await PO({headers:r,secure:c,account:u,contentTypeJson:o}),p=typeof i=="string"?i:o&&i!=null?JSON.stringify(i):i,y={method:n,headers:h,body:p,...d},v=await DO(e,y,a);if(s)return v;const w=await v.json();if(!v.ok)throw new Error((w==null?void 0:w.message)||v.statusText);return{...w,success:v.ok}}const RO=t=>xi({...t,raw:!1,contentTypeJson:!1});async function PO({headers:t,secure:e,account:n,contentTypeJson:r}){var s,o,a;const i=new Headers(t);if(r&&i.set("Content-Type","application/json"),e){const c=await FO();c?(i.set("Authorization",`Bearer ${c}`),i.set("ls-account",n!=null?n:"")):(a=(o=(s=pr())==null?void 0:s.coreLogger)==null?void 0:o.warn)==null||a.call(o,"Secure request without auth token")}return i}async function DO(t,e,n){const r=new AbortController,i=r.signal,s=n?setTimeout(()=>r.abort(),n):void 0;try{return await fetch(t,{...e,signal:i})}finally{s&&clearTimeout(s)}}async function FO(){var t,e,n;try{return(await Eb.currentSession()).getIdToken().getJwtToken()}catch{return(n=(e=(t=pr())==null?void 0:t.config)==null?void 0:e.authToken)!=null?n:null}}function UO(t,e,n){fetch(e).then(r=>r.blob()).then(r=>Dw(r,`${t}.${n}`))}const Dw=(t,e,n)=>{const r=[t],i=new Blob(r,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(i,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");return o.style.display="none",o.href=s,o.setAttribute("download",e),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(s)},200)};var LO="2.0.3",Af=500,av="user-agent",ps="",uv="?",Mu="function",Lr="undefined",ms="object",Cf="string",cn="browser",ir="cpu",Gn="device",Fn="engine",kn="os",ls="result",we="name",fe="type",be="vendor",_e="version",ln="architecture",zo="major",pe="model",So="console",Xe="mobile",St="tablet",Lt="smarttv",zn="wearable",hd="xr",ko="embedded",ao="inapp",ph="brands",fi="formFactors",mh="fullVersionList",ds="platform",gh="platformVersion",mc="bitness",zr="sec-ch-ua",MO=zr+"-full-version-list",BO=zr+"-arch",$O=zr+"-"+mc,jO=zr+"-form-factors",VO=zr+"-"+Xe,qO=zr+"-"+pe,Fw=zr+"-"+ds,HO=Fw+"-version",Uw=[ph,mh,Xe,pe,ds,gh,ln,fi,mc],Wa="Amazon",Yi="Apple",cv="ASUS",lv="BlackBerry",oi="Google",dv="Huawei",fv="Lenovo",hv="Honor",Ya="LG",pd="Microsoft",md="Motorola",gd="Nvidia",pv="OnePlus",vd="OPPO",uo="Samsung",mv="Sharp",co="Sony",yd="Xiaomi",bd="Zebra",gv="Chrome",vv="Chromium",Er="Chromecast",KO="Edge",lo="Firefox",fo="Opera",wd="Facebook",yv="Sogou",Ji="Mobile ",ho=" Browser",xf="Windows",zO=typeof window!==Lr,dn=zO&&window.navigator?window.navigator:void 0,Rr=dn&&dn.userAgentData?dn.userAgentData:void 0,GO=function(t,e){var n={},r=e;if(!Bu(e)){r={};for(var i in e)for(var s in e[i])r[s]=e[i][s].concat(r[s]?r[s]:[])}for(var o in t)n[o]=r[o]&&r[o].length%2===0?r[o].concat(t[o]):t[o];return n},gc=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},Nf=function(t,e){if(typeof t===ms&&t.length>0){for(var n in t)if(sr(t[n])==sr(e))return!0;return!1}return Rs(t)?sr(e).indexOf(sr(t))!==-1:!1},Bu=function(t,e){for(var n in t)return/^(browser|cpu|device|engine|os)$/.test(n)||(e?Bu(t[n]):!1)},Rs=function(t){return typeof t===Cf},_d=function(t){if(t){for(var e=[],n=gs(/\\?\"/g,t).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=Go(n[r]).split(";v=");e[r]={brand:i[0],version:i[1]}}else e[r]=Go(n[r]);return e}},sr=function(t){return Rs(t)?t.toLowerCase():t},Sd=function(t){return Rs(t)?gs(/[^\d\.]/g,t).split(".")[0]:void 0},or=function(t){for(var e in t){var n=t[e];typeof n==ms&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},gs=function(t,e){return Rs(e)?e.replace(t,ps):e},po=function(t){return gs(/\\?\"/g,t)},Go=function(t,e){if(Rs(t))return t=gs(/^\s\s*/,t),typeof e===Lr?t:t.substring(0,Af)},kd=function(t,e){if(!(!t||!e))for(var n=0,r,i,s,o,a,c;n<e.length&&!a;){var u=e[n],d=e[n+1];for(r=i=0;r<u.length&&!a&&u[r];)if(a=u[r++].exec(t),a)for(s=0;s<d.length;s++)c=a[++i],o=d[s],typeof o===ms&&o.length>0?o.length===2?typeof o[1]==Mu?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:o.length===3?typeof o[1]===Mu&&!(o[1].exec&&o[1].test)?this[o[0]]=c?o[1].call(this,c,o[2]):void 0:this[o[0]]=c?c.replace(o[1],o[2]):void 0:o.length===4&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):void 0):this[o]=c||void 0;n+=2}},Pr=function(t,e){for(var n in e)if(typeof e[n]===ms&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(Nf(e[n][r],t))return n===uv?void 0:n}else if(Nf(e[n],t))return n===uv?void 0:n;return e.hasOwnProperty("*")?e["*"]:t},bv={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},wv={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},_v={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_e,[we,Ji+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_e,[we,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[we,_e],[/opios[\/ ]+([\w\.]+)/i],[_e,[we,fo+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[_e,[we,fo+" GX"]],[/\bopr\/([\w\.]+)/i],[_e,[we,fo]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[_e,[we,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[_e,[we,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[we,_e],[/quark(?:pc)?\/([-\w\.]+)/i],[_e,[we,"Quark"]],[/\bddg\/([\w\.]+)/i],[_e,[we,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_e,[we,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[_e,[we,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_e,[we,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_e,[we,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_e,[we,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[_e,[we,"Smart "+fv+ho]],[/(avast|avg)\/([\w\.]+)/i],[[we,/(.+)/,"$1 Secure"+ho],_e],[/\bfocus\/([\w\.]+)/i],[_e,[we,lo+" Focus"]],[/\bopt\/([\w\.]+)/i],[_e,[we,fo+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_e,[we,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_e,[we,"Dolphin"]],[/coast\/([\w\.]+)/i],[_e,[we,fo+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_e,[we,"MIUI"+ho]],[/fxios\/([\w\.-]+)/i],[_e,[we,Ji+lo]],[/\bqihoobrowser\/?([\w\.]*)/i],[_e,[we,"360"]],[/\b(qq)\/([\w\.]+)/i],[[we,/(.+)/,"$1Browser"],_e],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[we,/(.+)/,"$1"+ho],_e],[/samsungbrowser\/([\w\.]+)/i],[_e,[we,uo+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[_e,[we,yv+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[we,yv+" Mobile"],_e],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[we,_e],[/(lbbrowser|rekonq)/i],[we],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[_e,we],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[we,wd],_e,[fe,ao]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[we,_e,[fe,ao]],[/\bgsa\/([\w\.]+) .*safari\//i],[_e,[we,"GSA"],[fe,ao]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_e,[we,"TikTok"],[fe,ao]],[/\[(linkedin)app\]/i],[we,[fe,ao]],[/(chromium)[\/ ]([-\w\.]+)/i],[we,_e],[/headlesschrome(?:\/([\w\.]+)| )/i],[_e,[we,gv+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[we,gv+" WebView"],_e],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_e,[we,"Android"+ho]],[/chrome\/([\w\.]+) mobile/i],[_e,[we,Ji+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[we,_e],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[_e,[we,Ji+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[we,Ji+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[_e,we],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[we,[_e,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[we,_e],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[we,Ji+lo],_e],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[we,"Netscape"],_e],[/(wolvic|librewolf)\/([\w\.]+)/i],[we,_e],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_e,[we,lo+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[we,[_e,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[we,[_e,/[^\d\.]+./,ps]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ln,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ln,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ln,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ln,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ln,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[ln,/ower/,ps,sr]],[/ sun4\w[;\)]/i],[[ln,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[ln,sr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[pe,[be,uo],[fe,St]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[pe,[be,uo],[fe,Xe]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[pe,[be,Yi],[fe,Xe]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[pe,[be,Yi],[fe,St]],[/(macintosh);/i],[pe,[be,Yi]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[pe,[be,mv],[fe,Xe]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[pe,[be,hv],[fe,St]],[/honor([-\w ]+)[;\)]/i],[pe,[be,hv],[fe,Xe]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[pe,[be,dv],[fe,St]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[pe,[be,dv],[fe,Xe]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[pe,/_/g," "],[be,yd],[fe,St]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[pe,/_/g," "],[be,yd],[fe,Xe]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[pe,[be,vd],[fe,Xe]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[pe,[be,Pr,{OnePlus:["304","403","203"],"*":vd}],[fe,St]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[pe,[be,"BLU"],[fe,Xe]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[pe,[be,"Vivo"],[fe,Xe]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[pe,[be,"Realme"],[fe,Xe]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[pe,[be,md],[fe,Xe]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[pe,[be,md],[fe,St]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[pe,[be,Ya],[fe,St]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[pe,[be,Ya],[fe,Xe]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[pe,[be,fv],[fe,St]],[/(nokia) (t[12][01])/i],[be,pe,[fe,St]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[pe,/_/g," "],[fe,Xe],[be,"Nokia"]],[/(pixel (c|tablet))\b/i],[pe,[be,oi],[fe,St]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[pe,[be,oi],[fe,Xe]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[pe,[be,co],[fe,Xe]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[pe,"Xperia Tablet"],[be,co],[fe,St]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[pe,[be,pv],[fe,Xe]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[pe,[be,Wa],[fe,St]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[pe,/(.+)/g,"Fire Phone $1"],[be,Wa],[fe,Xe]],[/(playbook);[-\w\),; ]+(rim)/i],[pe,be,[fe,St]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[pe,[be,lv],[fe,Xe]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[pe,[be,cv],[fe,St]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[pe,[be,cv],[fe,Xe]],[/(nexus 9)/i],[pe,[be,"HTC"],[fe,St]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[be,[pe,/_/g," "],[fe,Xe]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[pe,[be,"TCL"],[fe,St]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[pe,[be,"TCL"],[fe,Xe]],[/(itel) ((\w+))/i],[[be,sr],pe,[fe,Pr,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[pe,[be,"Acer"],[fe,St]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[pe,[be,"Meizu"],[fe,Xe]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[pe,[be,"Ulefone"],[fe,Xe]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[pe,[be,"Energizer"],[fe,Xe]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[pe,[be,"Cat"],[fe,Xe]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[pe,[be,"Smartfren"],[fe,Xe]],[/droid.+; (a(?:015|06[35]|142p?))/i],[pe,[be,"Nothing"],[fe,Xe]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[pe,[be,"Archos"],[fe,St]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[pe,[be,"Archos"],[fe,Xe]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[be,pe,[fe,St]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[be,pe,[fe,Xe]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[be,pe,[fe,St]],[/(surface duo)/i],[pe,[be,pd],[fe,St]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[pe,[be,"Fairphone"],[fe,Xe]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[pe,[be,gd],[fe,St]],[/(sprint) (\w+)/i],[be,pe,[fe,Xe]],[/(kin\.[onetw]{3})/i],[[pe,/\./g," "],[be,pd],[fe,Xe]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[pe,[be,bd],[fe,St]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[pe,[be,bd],[fe,Xe]],[/smart-tv.+(samsung)/i],[be,[fe,Lt]],[/hbbtv.+maple;(\d+)/i],[[pe,/^/,"SmartTV"],[be,uo],[fe,Lt]],[/tcast.+(lg)e?. ([-\w]+)/i],[be,pe,[fe,Lt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[be,Ya],[fe,Lt]],[/(apple) ?tv/i],[be,[pe,Yi+" TV"],[fe,Lt]],[/crkey.*devicetype\/chromecast/i],[[pe,Er+" Third Generation"],[be,oi],[fe,Lt]],[/crkey.*devicetype\/([^/]*)/i],[[pe,/^/,"Chromecast "],[be,oi],[fe,Lt]],[/fuchsia.*crkey/i],[[pe,Er+" Nest Hub"],[be,oi],[fe,Lt]],[/crkey/i],[[pe,Er],[be,oi],[fe,Lt]],[/(portaltv)/i],[pe,[be,wd],[fe,Lt]],[/droid.+aft(\w+)( bui|\))/i],[pe,[be,Wa],[fe,Lt]],[/(shield \w+ tv)/i],[pe,[be,gd],[fe,Lt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[pe,[be,mv],[fe,Lt]],[/(bravia[\w ]+)( bui|\))/i],[pe,[be,co],[fe,Lt]],[/(mi(tv|box)-?\w+) bui/i],[pe,[be,yd],[fe,Lt]],[/Hbbtv.*(technisat) (.*);/i],[be,pe,[fe,Lt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[be,Go],[pe,Go],[fe,Lt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[pe,[fe,Lt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[fe,Lt]],[/(ouya)/i,/(nintendo) (\w+)/i],[be,pe,[fe,So]],[/droid.+; (shield)( bui|\))/i],[pe,[be,gd],[fe,So]],[/(playstation \w+)/i],[pe,[be,co],[fe,So]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[pe,[be,pd],[fe,So]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[pe,[be,uo],[fe,zn]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[be,pe,[fe,zn]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[pe,[be,vd],[fe,zn]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[pe,[be,Yi],[fe,zn]],[/(opwwe\d{3})/i],[pe,[be,pv],[fe,zn]],[/(moto 360)/i],[pe,[be,md],[fe,zn]],[/(smartwatch 3)/i],[pe,[be,co],[fe,zn]],[/(g watch r)/i],[pe,[be,Ya],[fe,zn]],[/droid.+; (wt63?0{2,3})\)/i],[pe,[be,bd],[fe,zn]],[/droid.+; (glass) \d/i],[pe,[be,oi],[fe,hd]],[/(pico) (4|neo3(?: link|pro)?)/i],[be,pe,[fe,hd]],[/(quest( \d| pro)?s?).+vr/i],[pe,[be,wd],[fe,hd]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[be,[fe,ko]],[/(aeobc)\b/i],[pe,[be,Wa],[fe,ko]],[/(homepod).+mac os/i],[pe,[be,Yi],[fe,ko]],[/windows iot/i],[[fe,ko]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[pe,[fe,Pr,{mobile:"Mobile",xr:"VR","*":St}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[fe,St]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[fe,Xe]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[pe,[be,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_e,[we,KO+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[we,_e],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_e,[we,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[we,_e],[/ladybird\//i],[[we,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_e,we]],os:[[/microsoft (windows) (vista|xp)/i],[we,_e],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[we,[_e,Pr,bv]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_e,Pr,bv],[we,xf]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_e,/_/g,"."],[we,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[we,"macOS"],[_e,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[_e,[we,Er+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[_e,[we,Er+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[_e,[we,Er+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[_e,[we,Er+" Linux"]],[/crkey\/([\d\.]+)/i],[_e,[we,Er]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_e,we],[/(ubuntu) ([\w\.]+) like android/i],[[we,/(.+)/,"$1 Touch"],_e],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[we,_e],[/\(bb(10);/i],[_e,[we,lv]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[_e,[we,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_e,[we,lo+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_e,[we,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_e,[we,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[we,"Chrome OS"],_e],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[we,_e],[/(sunos) ?([\w\.\d]*)/i],[[we,"Solaris"],_e],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[we,_e]]},Ja=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return or.call(t.init,[[cn,[we,_e,zo,fe]],[ir,[ln]],[Gn,[fe,pe,be]],[Fn,[we,_e]],[kn,[we,_e]]]),or.call(t.isIgnore,[[cn,[_e,zo]],[Fn,[_e]],[kn,[_e]]]),or.call(t.isIgnoreRgx,[[cn,/ ?browser$/i],[kn,/ ?os$/i]]),or.call(t.toString,[[cn,[we,_e]],[ir,[ln]],[Gn,[be,pe]],[Fn,[we,_e]],[kn,[we,_e]]]),t}(),WO=function(t,e){var n=Ja.init[e],r=Ja.isIgnore[e]||0,i=Ja.isIgnoreRgx[e]||0,s=Ja.toString[e]||0;function o(){or.call(this,n)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return Rr?Rr.getHighEntropyValues(Uw).then(function(a){return t.setCH(new Lw(a,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=ls&&(o.prototype.is=function(a){var c=!1;for(var u in this)if(this.hasOwnProperty(u)&&!Nf(r,u)&&sr(i?gs(i,this[u]):this[u])==sr(i?gs(i,a):a)){if(c=!0,a!=Lr)break}else if(a==Lr&&c){c=!c;break}return c},o.prototype.toString=function(){var a=ps;for(var c in s)typeof this[s[c]]!==Lr&&(a+=(a?" ":ps)+this[s[c]]);return a||Lr}),Rr||(o.prototype.then=function(a){var c=this,u=function(){for(var h in c)c.hasOwnProperty(h)&&(this[h]=c[h])};u.prototype={is:o.prototype.is,toString:o.prototype.toString};var d=new u;return a(d),d}),new o};function Lw(t,e){if(t=t||{},or.call(this,Uw),e)or.call(this,[[ph,_d(t[zr])],[mh,_d(t[MO])],[Xe,/\?1/.test(t[VO])],[pe,po(t[qO])],[ds,po(t[Fw])],[gh,po(t[HO])],[ln,po(t[BO])],[fi,_d(t[jO])],[mc,po(t[$O])]]);else for(var n in t)this.hasOwnProperty(n)&&typeof t[n]!==Lr&&(this[n]=t[n])}function Sv(t,e,n,r){return this.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data},this.set=function(i,s){return this.data[i]=s,this},this.setCH=function(i){return this.uaCH=i,this},this.detectFeature=function(){if(dn&&dn.userAgent==this.ua)switch(this.itemType){case cn:dn.brave&&typeof dn.brave.isBrave==Mu&&this.set(we,"Brave");break;case Gn:!this.get(fe)&&Rr&&Rr[Xe]&&this.set(fe,Xe),this.get(pe)=="Macintosh"&&dn&&typeof dn.standalone!==Lr&&dn.maxTouchPoints&&dn.maxTouchPoints>2&&this.set(pe,"iPad").set(fe,St);break;case kn:!this.get(we)&&Rr&&Rr[ds]&&this.set(we,Rr[ds]);break;case ls:var i=this.data,s=function(o){return i[o].getItem().detectFeature().get()};this.set(cn,s(cn)).set(ir,s(ir)).set(Gn,s(Gn)).set(Fn,s(Fn)).set(kn,s(kn))}return this},this.parseUA=function(){return this.itemType!=ls&&kd.call(this.data,this.ua,this.rgxMap),this.itemType==cn&&this.set(zo,Sd(this.get(_e))),this},this.parseCH=function(){var i=this.uaCH,s=this.rgxMap;switch(this.itemType){case cn:case Fn:var o=i[mh]||i[ph],a;if(o)for(var c in o){var u=o[c].brand||o[c],d=o[c].version;this.itemType==cn&&!/not.a.brand/i.test(u)&&(!a||/chrom/i.test(a)&&u!=vv)&&(u=Pr(u,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(we,u).set(_e,d).set(zo,Sd(d)),a=u),this.itemType==Fn&&u==vv&&this.set(_e,d)}break;case ir:var h=i[ln];h&&(h&&i[mc]=="64"&&(h+="64"),kd.call(this.data,h+";",s));break;case Gn:if(i[Xe]&&this.set(fe,Xe),i[pe]&&(this.set(pe,i[pe]),!this.get(fe)||!this.get(be))){var p={};kd.call(p,"droid 9; "+i[pe]+")",s),!this.get(fe)&&p.type&&this.set(fe,p.type),!this.get(be)&&p.vendor&&this.set(be,p.vendor)}if(i[fi]){var y;if(typeof i[fi]!="string")for(var v=0;!y&&v<i[fi].length;)y=Pr(i[fi][v++],wv);else y=Pr(i[fi],wv);this.set(fe,y)}break;case kn:var w=i[ds];if(w){var k=i[gh];w==xf&&(k=parseInt(Sd(k),10)>=13?"11":"10"),this.set(we,w).set(_e,k)}this.get(we)==xf&&i[pe]=="Xbox"&&this.set(we,"Xbox").set(_e,void 0);break;case ls:var C=this.data,E=function(O){return C[O].getItem().setCH(i).parseCH().get()};this.set(cn,E(cn)).set(ir,E(ir)).set(Gn,E(Gn)).set(Fn,E(Fn)).set(kn,E(kn))}return this},or.call(this,[["itemType",t],["ua",e],["uaCH",r],["rgxMap",n],["data",WO(this,t)]]),this}function dr(t,e,n){if(typeof t===ms?(Bu(t,!0)?(typeof e===ms&&(n=e),e=t):(n=t,e=void 0),t=void 0):typeof t===Cf&&!Bu(e,!0)&&(n=e,e=void 0),n&&typeof n.append===Mu){var r={};n.forEach(function(c,u){r[u]=c}),n=r}if(!(this instanceof dr))return new dr(t,e,n).getResult();var i=typeof t===Cf?t:n&&n[av]?n[av]:dn&&dn.userAgent?dn.userAgent:ps,s=new Lw(n,!0),o=e?GO(_v,e):_v,a=function(c){return c==ls?function(){return new Sv(c,i,o,s).set("ua",i).set(cn,this.getBrowser()).set(ir,this.getCPU()).set(Gn,this.getDevice()).set(Fn,this.getEngine()).set(kn,this.getOS()).get()}:function(){return new Sv(c,i,o[c],s).parseUA().get()}};return or.call(this,[["getBrowser",a(cn)],["getCPU",a(ir)],["getDevice",a(Gn)],["getEngine",a(Fn)],["getOS",a(kn)],["getResult",a(ls)],["getUA",function(){return i}],["setUA",function(c){return Rs(c)&&(i=c.length>Af?Go(c,Af):c),this}]]).setUA(i),this}dr.VERSION=LO;dr.BROWSER=gc([we,_e,zo,fe]);dr.CPU=gc([ln]);dr.DEVICE=gc([pe,be,fe,So,Xe,Lt,St,zn,ko]);dr.ENGINE=dr.OS=gc([we,_e]);const{coreLogger:YO}=pr(),JO=YO.child("getClientTimeZone");function Mw(t=!1){var s,o,a;let e=null,n=null,r=null;try{e=(a=(o=(s=Intl.DateTimeFormat())==null?void 0:s.resolvedOptions())==null?void 0:o.timeZone)!=null?a:null;const c=-new Date().getTimezoneOffset();r=c;const u=c>=0?"+":"-",d=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),h=String(Math.abs(c)%60).padStart(2,"0");n=`${u}${d}:${h}`}catch(c){JO.error("Error obtaining time zone or offset",c)}const i={offset:n,offsetValue:r,value:e,country:null,included:null,label:null};if(t){const{country:c,included:u,label:d,...h}=i;return h}return i}function Bw(){const e=typeof navigator!="undefined"?navigator.userAgent:"server",n=XO(e),{language:r,languages:i}=QO(),s=ZO(),o=eI(),{hardwareConcurrency:a,deviceMemory:c}=tI(),u=nI();return{userAgent:e,browser:n.browser,os:n.os,device:n.device,language:r,languages:i,screen:s,connection:o,hardwareConcurrency:a,deviceMemory:c,timezone:u}}function XO(t){try{const n=new dr(t).getResult();return{browser:{name:n.browser.name||"Unknown",version:n.browser.version||"Unknown"},os:{name:n.os.name||"Unknown",version:n.os.version||"Unknown"},device:{model:n.device.model||"Unknown",type:n.device.type||"Desktop",vendor:n.device.vendor||"Unknown"}}}catch(e){return console.error("Error parsing user agent:",e),{browser:{name:"Unknown",version:"Unknown"},os:{name:"Unknown",version:"Unknown"},device:{model:"Unknown",type:"Desktop",vendor:"Unknown"}}}}function QO(){return typeof navigator!="undefined"?{language:navigator.language||"Unknown",languages:navigator.languages?[...navigator.languages]:[]}:{language:"Unknown",languages:[]}}function ZO(){return typeof window!="undefined"&&window.screen?{width:window.screen.width,height:window.screen.height,colorDepth:window.screen.colorDepth}:null}function eI(){var t,e,n,r;if(typeof navigator!="undefined"&&"connection"in navigator){const i=navigator.connection;return{downlink:(t=i==null?void 0:i.downlink)!=null?t:0,effectiveType:(e=i==null?void 0:i.effectiveType)!=null?e:"Unknown",rtt:(n=i==null?void 0:i.rtt)!=null?n:0,saveData:(r=i==null?void 0:i.saveData)!=null?r:!1}}return null}function tI(){return typeof navigator!="undefined"?{hardwareConcurrency:navigator.hardwareConcurrency||null,deviceMemory:navigator.deviceMemory||null}:{hardwareConcurrency:null,deviceMemory:null}}function nI(){try{return Mw(!0)}catch(t){return console.error("Error retrieving client timezone:",t),{offset:null,offsetValue:null,value:"Unknown",country:null,included:null,label:null}}}var $w=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))($w||{}),jw=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(jw||{}),Vw=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Vw||{}),qw=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(qw||{}),Hw=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(Hw||{}),Kw=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(Kw||{});class vh extends hr{constructor(e){super("NIZZA_ACCOUNT_NOT_FOUND_ERROR",`Error finding account: ${e}`)}}class zw extends hr{constructor(e){super("NIZZA_PLAN_NOT_FOUND_ERROR",`Error finding plan: ${e}`)}}class Gw extends hr{constructor(e){super("NIZZA_CREATE_PLAN_ERROR",`Error creating plan: ${e.plan}`,e)}}const kv=`${bs.apiUrls.restV2}/v1/plans`;class Ww{async get(e,n){const i=`/info${Ow({planType:e})}`,s=kv+i,{data:o}=await xi({url:s,account:n});return o}async create(e){const n=`${kv}/create`,{success:r}=await xi({url:n,method:"POST",body:JSON.stringify(e)});if(!r)throw new Gw(e)}}function rI(t){const{host:e,account:n,username:r,createdAt:i,subscriptionType:s,installationDateApp:o,...a}=t;return{...a,account:n,host:e!=null?e:null,username:r!=null?r:n,createdAt:new Date(i),subscriptionType:s!=null?s:null,installationDateApp:new Date(o)}}function iI(t){const{host:e,...n}=t;return{...n,host:e!=null?e:null,plan:{}}}const sI=`${bs.apiUrls.restV2}/v1/accounts`;class Yw{async get(e){const n=`${sI}/${e}/public`,{data:r}=await xi({url:n,account:e});return r?iI(r):null}}const oI=`${bs.apiUrls.restV2}/v1/accounts`;class aI{async get(e){const n=`${oI}/${e}`,{data:r}=await xi({url:n,account:e,secure:!0});return r?rI(r):null}}class Jw{constructor(e,n,r){this.publicAccountRepo=e,this.privateAccountRepo=n,this.accountPlanRepo=r}async get(e,n=!1){try{const r=n?await this.privateAccountRepo.get(e):await this.publicAccountRepo.get(e);if(!r)throw new vh(e);const i=await this.accountPlanRepo.get(r.descriptionPlan,r.account);if(!i)throw new zw(r.descriptionPlan);return{...r,plan:i}}catch(r){throw new rh(r)}}}const uI=new Yw,cI=new aI,lI=new Ww,Xw=new Jw(uI,cI,lI),Qw=()=>{const{account:t,accountName:e,accountStatus:n,refetchAccount:r,isPvtAccount:i,isPubAccount:s}=Pw(u=>({account:u.account,accountName:u.accountName,accountStatus:u.accountStatus,refetchAccount:u.refetchAccount,isPvtAccount:u.isPvtAccount,isPubAccount:u.isPubAccount})),o=["idle","loading"].includes(n);return{account:t,accountName:e,isLoading:o,isError:n==="error",isSuccess:n==="success",accountStatus:n,refetchAccount:r,isPvtAccount:i,isPubAccount:s}};async function Zw(t,e){return Xw.get(t,e)}var e_=(t=>(t.Created="CREATED",t.CreateComplete="CREATE_COMPLETE",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(e_||{}),t_=(t=>(t.Add="add",t.Remove="remove",t))(t_||{}),n_=(t=>(t.Vtex="VTEX",t))(n_||{}),r_=(t=>(t.Active="active",t.Inactive="inactive",t))(r_||{});const dI={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"}}]}}]}}]}}]},fI={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"}}]}}]}}]}}]},hI={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"}}]}}]}}]}}]},pI={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"}}]}}]}}]}}]},mI={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"}}]}}]}}]}}]},gI={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"}}]}}]}}]}}]},vI={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"}}]}}]}}]}}]},yI={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"}}]}}]}}]}}]},bI={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"}}]}}]}}]}}]},wI={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"}}]}}]}}]}}]},_I={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"}}]}}]}}]}}]},SI={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"}}]}}]}}]}}]},kI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},i_={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"}}]}}]}}]}}]},EI={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"}}]}}]}}]}}]},AI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},CI={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"}}]}}]}}]}}]},xI={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"}}]}}]}}]}}]},NI={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"}}]}}]}}]}}]},TI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AddToCartSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},OI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},II={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"}}]}}]}}]}}]},RI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},PI={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"}}]}}]}}]}}]},DI={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"}}]}}]}}]}}]},FI={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"}}]}}]}}]}}]},UI={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"}}]}}]}}]}}]},LI={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"}}]}}]}}]}}]},MI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},BI={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"}}]}}]}}]}}]}}]},$I={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"}}]}}]}}]}}]},jI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},VI={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"}}]}}]}}]}}]},qI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"productName"}},{kind:"Field",name:{kind:"Name",value:"productImageUrl"}}]}}]}}]}},{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"}}]}}]}}]}}]},HI=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:dI,AppendProductsToSnackVideoDocument:II,BlockUserDocument:wI,ChangeAccountUsernameDocument:_I,CreatePlayListDocument:RI,CreateSnackVideoBatchDocument:PI,DeleteAllCustomizationDocument:CI,DeleteChatMessageDocument:SI,DeleteCollectionDocument:fI,DeleteRelationshipWithSnackVideoDocument:DI,DeleteSnackVideoDocument:FI,EventStatus:e_,FindByProductSnackVideoDocument:VI,FindCollectionDocument:hI,FindManySnackVideosDocument:UI,FindMinimalEventDocument:yI,GetAllChatMessageDocument:kI,GetAllCollectionsDocument:pI,GetAllCustomizationDocument:xI,GetAllSnackVideosDocument:LI,GetChatRoomTokenDocument:i_,GetPlayListDocument:qI,GetPlayListsDocument:MI,GetSnackVideoRelationshipsDocument:BI,GetTimeLineDocument:OI,HighlightProductDocument:AI,ManageCollectionProductDocument:mI,Methods:t_,PinChatMessageDocument:EI,SearchCollectionsDocument:gI,SearchMinimalEventsDocument:bI,SearchSnackVideosDocument:$I,SendAddToCartDocument:TI,SignProvider:n_,Status:r_,UpdateCollectionDocument:vI,UpdateCustomizationDocument:NI,UpdatePlayListDocument:jI},Symbol.toStringTag,{value:"Module"}));var vc=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(vc||{});function KI(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var mr=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.VtexFastStore="faststore",t.Platform="platform",t.External="external",t))(mr||{}),yh=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(yh||{});const{coreLogger:zI}=pr(),Tf=zI.child("addToCartHooks"),Of={errorAddingToCart:"addToCartHooks.notification.error",errorOpeningVariationSelector:"addToCartHooks.notification.error",errorOpeningNewTab:"addToCartHooks.notification.error",successAddingToCart:"addToCartHooks.notification.success"};async function GI(t){const e={...t,action:{type:vc.ADD_TO_CART,exec:()=>Tf.error("action no implemented in validate hook")}};try{const n=await WI(e),r=await YI(n);await JI(r)}catch(n){Tf.error("error unhandled",n)}}async function WI(t){var s,o;const{context:e,userAddToCartConfig:n}=t,r=(s=n==null?void 0:n.hooks)==null?void 0:s.transform;let i=t.product;if(r)try{i=await r({product:{...i},data:(o=e.data)!=null?o:{}})}catch(a){$u("transform",a)}return{...t,product:i}}async function YI(t){var c,u;const{context:e,hookStrategy:n,userAddToCartConfig:r,product:i}=t,s=s_(t),o=(c=r==null?void 0:r.hooks)==null?void 0:c.validate;let a=n.validate({...t,actionFactory:s});if(o)try{a=await o({product:{...i},defaultAction:{...a},action:s,data:(u=e.data)!=null?u:{}})}catch(d){$u("validate",d)}return{...t,action:a,actionFactory:s}}async function JI(t){var k;const{eventBus:e}=pr(),{product:n,userAddToCartConfig:r,notifyFactory:i,action:s,actionFactory:o}=t,{isVariationSelectorOpen:a,data:c={}}=t.context,u=(k=r==null?void 0:r.hooks)==null?void 0:k.end,d=s.type===vc.ADD_TO_CART;let h=null,p=!1;const y=()=>{!d||!a||o.openVariationSelector(!1).exec()},v=()=>{!d||p||(h?i.error(Of.errorAddingToCart):i.success(Of.successAddingToCart))},w=()=>{const C={product:n,actionType:s.type,success:!h,error:h};e.emit(Sw.ATCH_ACTION_EXECUTED,C)};try{if(!s.type||!s.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await s.exec()}catch(C){$u("end",C),h=C}if(u)try{p=!!await u({data:c,error:h,notify:i,actionExecuted:s})}catch(C){$u("end",C)}y(),v(),w()}function s_(t){const{actionFactory:e,userAddToCartConfig:n}=t,r=i=>Object.entries(i!=null?i:{}).reduce((s,[o,a])=>({...s,[o]:c=>({type:o,exec:()=>a(c)})}),{});return{...r(e),...r(n==null?void 0:n.actionFactory)}}function $u(t,e){Tf.error(`addToCartHooks error running ${t}: `,e)}class o_{constructor(e){Pe(this,"aggregate");Pe(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,r]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=r);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function a_(t){return new o_(t)}class XI{constructor(e){Pe(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var Xt=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(Xt||{});function u_(t,e){return function(){return t.apply(e,arguments)}}const{toString:QI}=Object.prototype,{getPrototypeOf:bh}=Object,yc=(t=>e=>{const n=QI.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vn=t=>(t=t.toLowerCase(),e=>yc(e)===t),bc=t=>e=>typeof e===t,{isArray:Ps}=Array,Wo=bc("undefined");function ZI(t){return t!==null&&!Wo(t)&&t.constructor!==null&&!Wo(t.constructor)&&wn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const c_=Vn("ArrayBuffer");function eR(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&c_(t.buffer),e}const tR=bc("string"),wn=bc("function"),l_=bc("number"),wc=t=>t!==null&&typeof t=="object",nR=t=>t===!0||t===!1,hu=t=>{if(yc(t)!=="object")return!1;const e=bh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},rR=Vn("Date"),iR=Vn("File"),sR=Vn("Blob"),oR=Vn("FileList"),aR=t=>wc(t)&&wn(t.pipe),uR=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||wn(t.append)&&((e=yc(t))==="formdata"||e==="object"&&wn(t.toString)&&t.toString()==="[object FormData]"))},cR=Vn("URLSearchParams"),[lR,dR,fR,hR]=["ReadableStream","Request","Response","Headers"].map(Vn),pR=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ia(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,i;if(typeof t!="object"&&(t=[t]),Ps(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(r=0;r<o;r++)a=s[r],e.call(null,t[a],a,t)}}function d_(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const vi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,f_=t=>!Wo(t)&&t!==vi;function If(){const{caseless:t}=f_(this)&&this||{},e={},n=(r,i)=>{const s=t&&d_(e,i)||i;hu(e[s])&&hu(r)?e[s]=If(e[s],r):hu(r)?e[s]=If({},r):Ps(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ia(arguments[r],n);return e}const mR=(t,e,n,{allOwnKeys:r}={})=>(ia(e,(i,s)=>{n&&wn(i)?t[s]=u_(i,n):t[s]=i},{allOwnKeys:r}),t),gR=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vR=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},yR=(t,e,n,r)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&bh(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},bR=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},wR=t=>{if(!t)return null;if(Ps(t))return t;let e=t.length;if(!l_(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_R=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&bh(Uint8Array)),SR=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},kR=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ER=Vn("HTMLFormElement"),AR=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Ev=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),CR=Vn("RegExp"),h_=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ia(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},xR=t=>{h_(t,(e,n)=>{if(wn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(wn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NR=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Ps(t)?r(t):r(String(t).split(e)),n},TR=()=>{},OR=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ed="abcdefghijklmnopqrstuvwxyz",Av="0123456789",p_={DIGIT:Av,ALPHA:Ed,ALPHA_DIGIT:Ed+Ed.toUpperCase()+Av},IR=(t=16,e=p_.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function RR(t){return!!(t&&wn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const PR=t=>{const e=new Array(10),n=(r,i)=>{if(wc(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Ps(r)?[]:{};return ia(r,(o,a)=>{const c=n(o,i+1);!Wo(c)&&(s[a]=c)}),e[i]=void 0,s}}return r};return n(t,0)},DR=Vn("AsyncFunction"),FR=t=>t&&(wc(t)||wn(t))&&wn(t.then)&&wn(t.catch),m_=((t,e)=>t?setImmediate:e?((n,r)=>(vi.addEventListener("message",({source:i,data:s})=>{i===vi&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wn(vi.postMessage)),UR=typeof queueMicrotask!="undefined"?queueMicrotask.bind(vi):typeof process!="undefined"&&process.nextTick||m_,oe={isArray:Ps,isArrayBuffer:c_,isBuffer:ZI,isFormData:uR,isArrayBufferView:eR,isString:tR,isNumber:l_,isBoolean:nR,isObject:wc,isPlainObject:hu,isReadableStream:lR,isRequest:dR,isResponse:fR,isHeaders:hR,isUndefined:Wo,isDate:rR,isFile:iR,isBlob:sR,isRegExp:CR,isFunction:wn,isStream:aR,isURLSearchParams:cR,isTypedArray:_R,isFileList:oR,forEach:ia,merge:If,extend:mR,trim:pR,stripBOM:gR,inherits:vR,toFlatObject:yR,kindOf:yc,kindOfTest:Vn,endsWith:bR,toArray:wR,forEachEntry:SR,matchAll:kR,isHTMLForm:ER,hasOwnProperty:Ev,hasOwnProp:Ev,reduceDescriptors:h_,freezeMethods:xR,toObjectSet:NR,toCamelCase:AR,noop:TR,toFiniteNumber:OR,findKey:d_,global:vi,isContextDefined:f_,ALPHABET:p_,generateString:IR,isSpecCompliantForm:RR,toJSONObject:PR,isAsyncFn:DR,isThenable:FR,setImmediate:m_,asap:UR};function Qe(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}oe.inherits(Qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const g_=Qe.prototype,v_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{v_[t]={value:t}});Object.defineProperties(Qe,v_);Object.defineProperty(g_,"isAxiosError",{value:!0});Qe.from=(t,e,n,r,i,s)=>{const o=Object.create(g_);return oe.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),Qe.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const LR=null;function Rf(t){return oe.isPlainObject(t)||oe.isArray(t)}function y_(t){return oe.endsWith(t,"[]")?t.slice(0,-2):t}function Cv(t,e,n){return t?t.concat(e).map(function(i,s){return i=y_(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function MR(t){return oe.isArray(t)&&!t.some(Rf)}const BR=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)});function _c(t,e,n){if(!oe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!oe.isUndefined(k[w])});const r=n.metaTokens,i=n.visitor||d,s=n.dots,o=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&oe.isSpecCompliantForm(e);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(oe.isDate(v))return v.toISOString();if(!c&&oe.isBlob(v))throw new Qe("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(v)||oe.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,w,k){let C=v;if(v&&!k&&typeof v=="object"){if(oe.endsWith(w,"{}"))w=r?w:w.slice(0,-2),v=JSON.stringify(v);else if(oe.isArray(v)&&MR(v)||(oe.isFileList(v)||oe.endsWith(w,"[]"))&&(C=oe.toArray(v)))return w=y_(w),C.forEach(function(O,I){!(oe.isUndefined(O)||O===null)&&e.append(o===!0?Cv([w],I,s):o===null?w:w+"[]",u(O))}),!1}return Rf(v)?!0:(e.append(Cv(k,w,s),u(v)),!1)}const h=[],p=Object.assign(BR,{defaultVisitor:d,convertValue:u,isVisitable:Rf});function y(v,w){if(!oe.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(v),oe.forEach(v,function(C,E){(!(oe.isUndefined(C)||C===null)&&i.call(e,C,oe.isString(E)?E.trim():E,w,p))===!0&&y(C,w?w.concat(E):[E])}),h.pop()}}if(!oe.isObject(t))throw new TypeError("data must be an object");return y(t),e}function xv(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function wh(t,e){this._pairs=[],t&&_c(t,this,e)}const b_=wh.prototype;b_.append=function(e,n){this._pairs.push([e,n])};b_.toString=function(e){const n=e?function(r){return e.call(this,r,xv)}:xv;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function $R(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w_(t,e,n){if(!e)return t;const r=n&&n.encode||$R,i=n&&n.serialize;let s;if(i?s=i(e,n):s=oe.isURLSearchParams(e)?e.toString():new wh(e,n).toString(r),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Nv{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const __={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jR=typeof URLSearchParams!="undefined"?URLSearchParams:wh,VR=typeof FormData!="undefined"?FormData:null,qR=typeof Blob!="undefined"?Blob:null,HR={isBrowser:!0,classes:{URLSearchParams:jR,FormData:VR,Blob:qR},protocols:["http","https","file","blob","url","data"]},_h=typeof window!="undefined"&&typeof document!="undefined",Pf=typeof navigator=="object"&&navigator||void 0,KR=_h&&(!Pf||["ReactNative","NativeScript","NS"].indexOf(Pf.product)<0),zR=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GR=_h&&window.location.href||"http://localhost",WR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_h,hasStandardBrowserEnv:KR,hasStandardBrowserWebWorkerEnv:zR,navigator:Pf,origin:GR},Symbol.toStringTag,{value:"Module"})),fn={...WR,...HR};function YR(t,e){return _c(t,new fn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return fn.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function JR(t){return oe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function XR(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function S_(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&oe.isArray(i)?i.length:o,c?(oe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!oe.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&oe.isArray(i[o])&&(i[o]=XR(i[o])),!a)}if(oe.isFormData(t)&&oe.isFunction(t.entries)){const n={};return oe.forEachEntry(t,(r,i)=>{e(JR(r),i,n,0)}),n}return null}function QR(t,e,n){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const sa={transitional:__,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=oe.isObject(e);if(s&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(S_(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return YR(e,this.formSerializer).toString();if((a=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _c(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),QR(e)):e}],transformResponse:[function(e){const n=this.transitional||sa.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Qe.from(a,Qe.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fn.classes.FormData,Blob:fn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],t=>{sa.headers[t]={}});const ZR=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eP=t=>{const e={};let n,r,i;return t&&t.split(`
|
|
130
130
|
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&ZR[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Tv=Symbol("internals");function mo(t){return t&&String(t).trim().toLowerCase()}function pu(t){return t===!1||t==null?t:oe.isArray(t)?t.map(pu):String(t)}function tP(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const nP=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ad(t,e,n,r,i){if(oe.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!oe.isString(e)){if(oe.isString(r))return e.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(e)}}function rP(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function iP(t,e){const n=oe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}let hn=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(a,c,u){const d=mo(c);if(!d)throw new Error("header name must be a non-empty string");const h=oe.findKey(i,d);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||c]=pu(a))}const o=(a,c)=>oe.forEach(a,(u,d)=>s(u,d,c));if(oe.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(oe.isString(e)&&(e=e.trim())&&!nP(e))o(eP(e),n);else if(oe.isHeaders(e))for(const[a,c]of e.entries())s(c,a,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=mo(e),e){const r=oe.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return tP(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=mo(e),e){const r=oe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ad(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(o){if(o=mo(o),o){const a=oe.findKey(r,o);a&&(!n||Ad(r,r[a],a,n))&&(delete r[a],i=!0)}}return oe.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||Ad(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return oe.forEach(this,(i,s)=>{const o=oe.findKey(r,s);if(o){n[o]=pu(i),delete n[s];return}const a=e?rP(s):String(s).trim();a!==s&&delete n[s],n[a]=pu(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
131
131
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Tv]=this[Tv]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=mo(o);r[a]||(iP(i,o),r[a]=!0)}return oe.isArray(e)?e.forEach(s):s(e),this}};hn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(hn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});oe.freezeMethods(hn);function Cd(t,e){const n=this||sa,r=e||n,i=hn.from(r.headers);let s=r.data;return oe.forEach(t,function(a){s=a.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function k_(t){return!!(t&&t.__CANCEL__)}function Ds(t,e,n){Qe.call(this,t==null?"canceled":t,Qe.ERR_CANCELED,e,n),this.name="CanceledError"}oe.inherits(Ds,Qe,{__CANCEL__:!0});function E_(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Qe("Request failed with status code "+n.status,[Qe.ERR_BAD_REQUEST,Qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sP(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function oP(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];o||(o=u),n[i]=c,r[i]=u;let h=s,p=0;for(;h!==i;)p+=n[h++],h=h%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-o<e)return;const y=d&&u-d;return y?Math.round(p*1e3/y):void 0}}function aP(t,e){let n=0,r=1e3/e,i,s;const o=(u,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=r?o(u,d):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-h)))},()=>i&&o(i)]}const ju=(t,e,n=3)=>{let r=0;const i=oP(50,250);return aP(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-r,u=i(c),d=o<=a;r=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},n)},Ov=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Iv=t=>(...e)=>oe.asap(()=>t(...e)),uP=fn.hasStandardBrowserEnv?function(){const e=fn.navigator&&/(msie|trident)/i.test(fn.navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=oe.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),cP=fn.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const o=[t+"="+encodeURIComponent(e)];oe.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),oe.isString(r)&&o.push("path="+r),oe.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lP(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function dP(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function A_(t,e){return t&&!lP(e)?dP(t,e):e}const Rv=t=>t instanceof hn?{...t}:t;function Ni(t,e){e=e||{};const n={};function r(u,d,h){return oe.isPlainObject(u)&&oe.isPlainObject(d)?oe.merge.call({caseless:h},u,d):oe.isPlainObject(d)?oe.merge({},d):oe.isArray(d)?d.slice():d}function i(u,d,h){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u,h)}else return r(u,d,h)}function s(u,d){if(!oe.isUndefined(d))return r(void 0,d)}function o(u,d){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d)=>i(Rv(u),Rv(d),!0)};return oe.forEach(Object.keys(Object.assign({},t,e)),function(d){const h=c[d]||i,p=h(t[d],e[d],d);oe.isUndefined(p)&&h!==a||(n[d]=p)}),n}const C_=t=>{const e=Ni({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=hn.from(o),e.url=w_(A_(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(oe.isFormData(n)){if(fn.hasStandardBrowserEnv||fn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...d].join("; "))}}if(fn.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(e)),r||r!==!1&&uP(e.url))){const u=i&&s&&cP.read(s);u&&o.set(i,u)}return e},fP=typeof XMLHttpRequest!="undefined",hP=fP&&function(t){return new Promise(function(n,r){const i=C_(t);let s=i.data;const o=hn.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=i,d,h,p,y,v;function w(){y&&y(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function C(){if(!k)return;const O=hn.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),M={data:!a||a==="text"||a==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:O,config:t,request:k};E_(function(ee){n(ee),w()},function(ee){r(ee),w()},M),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(r(new Qe("Request aborted",Qe.ECONNABORTED,t,k)),k=null)},k.onerror=function(){r(new Qe("Network Error",Qe.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let I=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const M=i.transitional||__;i.timeoutErrorMessage&&(I=i.timeoutErrorMessage),r(new Qe(I,M.clarifyTimeoutError?Qe.ETIMEDOUT:Qe.ECONNABORTED,t,k)),k=null},s===void 0&&o.setContentType(null),"setRequestHeader"in k&&oe.forEach(o.toJSON(),function(I,M){k.setRequestHeader(M,I)}),oe.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),a&&a!=="json"&&(k.responseType=i.responseType),u&&([p,v]=ju(u,!0),k.addEventListener("progress",p)),c&&k.upload&&([h,y]=ju(c),k.upload.addEventListener("progress",h),k.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=O=>{k&&(r(!O||O.type?new Ds(null,t,k):O),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const E=sP(i.url);if(E&&fn.protocols.indexOf(E)===-1){r(new Qe("Unsupported protocol "+E+":",Qe.ERR_BAD_REQUEST,t));return}k.send(s||null)})},pP=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Qe?d:new Ds(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,s(new Qe(`timeout ${e} of ms exceeded`,Qe.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>oe.asap(a),c}},mP=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},gP=async function*(t,e){for await(const n of vP(t))yield*mP(n,e)},vP=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Pv=(t,e,n,r)=>{const i=gP(t,e);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){a(),c.close();return}let h=d.byteLength;if(n){let p=s+=h;n(p)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Sc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",x_=Sc&&typeof ReadableStream=="function",yP=Sc&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),N_=(t,...e)=>{try{return!!t(...e)}catch{return!1}},bP=x_&&N_(()=>{let t=!1;const e=new Request(fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Dv=64*1024,Df=x_&&N_(()=>oe.isReadableStream(new Response("").body)),Vu={stream:Df&&(t=>t.body)};Sc&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Vu[e]&&(Vu[e]=oe.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new Qe(`Response type '${e}' is not supported`,Qe.ERR_NOT_SUPPORT,r)})})})(new Response);const wP=async t=>{if(t==null)return 0;if(oe.isBlob(t))return t.size;if(oe.isSpecCompliantForm(t))return(await new Request(fn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(t)||oe.isArrayBuffer(t))return t.byteLength;if(oe.isURLSearchParams(t)&&(t=t+""),oe.isString(t))return(await yP(t)).byteLength},_P=async(t,e)=>{const n=oe.toFiniteNumber(t.getContentLength());return n==null?wP(e):n},SP=Sc&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:p}=C_(t);u=u?(u+"").toLowerCase():"text";let y=pP([i,s&&s.toAbortSignal()],o),v;const w=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let k;try{if(c&&bP&&n!=="get"&&n!=="head"&&(k=await _P(d,r))!==0){let M=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(oe.isFormData(r)&&(Y=M.headers.get("content-type"))&&d.setContentType(Y),M.body){const[ee,F]=Ov(k,ju(Iv(c)));r=Pv(M.body,Dv,ee,F)}}oe.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;v=new Request(e,{...p,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?h:void 0});let E=await fetch(v);const O=Df&&(u==="stream"||u==="response");if(Df&&(a||O&&w)){const M={};["status","statusText","headers"].forEach(se=>{M[se]=E[se]});const Y=oe.toFiniteNumber(E.headers.get("content-length")),[ee,F]=a&&Ov(Y,ju(Iv(a),!0))||[];E=new Response(Pv(E.body,Dv,ee,()=>{F&&F(),w&&w()}),M)}u=u||"text";let I=await Vu[oe.findKey(Vu,u)||"text"](E,t);return!O&&w&&w(),await new Promise((M,Y)=>{E_(M,Y,{data:I,headers:hn.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:v})})}catch(C){throw w&&w(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Qe("Network Error",Qe.ERR_NETWORK,t,v),{cause:C.cause||C}):Qe.from(C,C&&C.code,t,v)}}),Ff={http:LR,xhr:hP,fetch:SP};oe.forEach(Ff,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fv=t=>`- ${t}`,kP=t=>oe.isFunction(t)||t===null||t===!1,T_={getAdapter:t=>{t=oe.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let o;if(r=n,!kP(n)&&(r=Ff[(o=String(n)).toLowerCase()],r===void 0))throw new Qe(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
|
|
132
132
|
`+s.map(Fv).join(`
|
|
@@ -217,5 +217,5 @@ spurious results.`)}}return!1};class i0{constructor(e,n="GraphQL request",r={lin
|
|
|
217
217
|
:host {
|
|
218
218
|
width: 100%;
|
|
219
219
|
}
|
|
220
|
-
`);class k0{constructor(e,n,r){Pe(this,"
|
|
220
|
+
`);class k0{constructor(e,n,r){Pe(this,"_lifecycleHandlers",new Map([["mount",new Set],["update",new Set],["unmount",new Set]]));Pe(this,"_containerId");Pe(this,"_renderHandler");Pe(this,"_logger");Pe(this,"element",null);Pe(this,"updateProps");Pe(this,"unmount");this._containerId=e,this._renderHandler=n,this._logger=r}async render(e={}){var n;if(this.element)this.updateProps(e);else{this._logger.debug("mounting component",e);const r=await this._renderHandler(this._containerId,e);this.element=(n=r==null?void 0:r.element)!=null?n:null,this.updateProps=i=>{r==null||r.updateProps(i),this._logger.debug("updating props",i),this._trigger("update",i)},this.unmount=()=>{this._logger.debug("unmounting component"),r==null||r.unmount(),this._trigger("unmount"),this.element=null},this._trigger("mount")}}onMount(e){return this._lifecycleHandlers.get("mount").add(e),this}onUpdate(e){return this._lifecycleHandlers.get("update").add(e),this}onUnmount(e){return this._lifecycleHandlers.get("unmount").add(e),this}_trigger(e,n){this._lifecycleHandlers.get(e).forEach(i=>i(n))}}class Ic{constructor(e){this.config=e}static isApplicable(e){return yh.LOCAL===e.bundler.stage}async execute(){var n;const{runtime:e}=this.config;(n=e.env)!=null&&n.account?await e.configureStore(e.env):e.logger.warn("missing account in local environment")}}Pe(Ic,"type",mr.Local);const RU=window==null?void 0:window.__NZ_APP__;class Ph{constructor(e){this.config=e}static isApplicable(){return RU==="platform"}async execute(){}}Pe(Ph,"type",mr.Platform);const eu=window==null?void 0:window.faststore_sdk_stores;class Dh{constructor(e){this.config=e;const n={vtexfaststore:eu};this.config.runtime.updateMeta(n)}static isApplicable(){return!!eu}async execute(){const{runtime:e}=this.config;if(!eu.account){e.logger.error("missing the account in window.faststore_sdk_stores");return}await e.configureStore({account:eu.account})}}Pe(Dh,"type",mr.VtexFastStore);const tu=window==null?void 0:window.__RUNTIME__;class Rc{constructor(e){this.config=e;const n={vtexio:tu};this.config.runtime.updateMeta(n)}static isApplicable(){return!!tu}async execute(){const{runtime:e}=this.config;if(!tu.account){e.logger.error("missing the account in window.__RUNTIME__");return}await e.configureStore({account:tu.account})}}Pe(Rc,"type",mr.VtexIO);const Sy=window==null?void 0:window.vtexjs;class Pc{constructor(e){this.config=e;const n={vtexjs:Sy};this.config.runtime.updateMeta(n)}static isApplicable(){return!!Sy}async execute(){const{runtime:e}=this.config;let n={};const r=`${e.componentId.value}-script`,i=Iw(r);if(n=Object.fromEntries(i.entries()),!n.account){e.logger.error(`missing the account in the search params of the script #${r}`);return}await e.configureStore({account:n.account})}}Pe(Pc,"type",mr.VtexLegacy);class Fh{constructor(e){this.config=e}static isApplicable(e){return!Ic.isApplicable(e)&&!Rc.isApplicable()&&!Pc.isApplicable()&&!Dh.isApplicable()&&!Ph.isApplicable()}async execute(){}}Pe(Fh,"type",mr.External);const E0=[Ic,Rc,Pc,Fh,Dh,Ph];class PU{constructor(e){Pe(this,"globalId");Pe(this,"metadata");Pe(this,"customConfigList");Pe(this,"env");Pe(this,"bundler");Pe(this,"logger");Pe(this,"componentId");Pe(this,"renderHandler");Pe(this,"store");this.globalId=e.globalId,this.store=e.getStore(),this.logger=e.logger.child("Runtime"),this.env=e.env,this.bundler=e.bundler,this.customConfigList=new Map,this.metadata={type:mr.External},this.initializeGlobals()}config(e,n,r){typeof n=="function"&&(r=n,n={});const{skipBaseBehavior:i=!1}=n;return this.customConfigList.set(e,{callback:r,skipBaseBehavior:i}),this}registerComponent(e,n){const r=this.toCamel(e);if(window[this.globalId][r])return this.logger.debug(`Component "${r}" is already registered.`),this;this.componentId={value:e,formatted:r},this.renderHandler=n;const i={render:this.renderHandler};return window[this.globalId][this.componentId.formatted]=i,this.logger.debug(`Component "${r}" registered.`),this}async execute(e){for(const n of E0)if(n.isApplicable(this)){const r=new n({runtime:this}),i=this.customConfigList.get(n.type);this.updateMeta({type:n.type}),i!=null&&i.skipBaseBehavior||await r.execute(),i&&await i.callback({runtime:this,component:new k0(this.componentId.value,this.renderHandler,this.logger)});break}await(e==null?void 0:e())}updateMeta(e){this.metadata={...this.metadata,...e}}async configureStore(e){await this.store.configure(e)}get meta(){return this.metadata}initializeGlobals(){var r;if(window[this.globalId]||(window[this.globalId]={},this.logger.debug(`Initialized "${this.globalId}" window object`)),(r=window[this.globalId])!=null&&r.runtime){this.logger.debug(`Runtime for "${this.globalId}" are already initialized.`);return}const e=()=>Object.freeze({...this.metadata}),n=()=>Object.freeze({isProd:this.bundler.isProd,get meta(){return e()}});Object.defineProperty(window[this.globalId],"runtime",{get:()=>n()}),this.logger.debug(`Initialized runtime for "${this.globalId}".`)}toCamel(e){return e.replace(/^[a-z]{2}-/,"").replace(/-./g,n=>n[1].toUpperCase())}}exports.AccountContractStatusTypes=Vw;exports.AccountContractTypes=jw;exports.AccountInvalidError=Ab;exports.AccountNotFoundError=vh;exports.AccountPlanDescriptionTypes=Hw;exports.AccountService=Jw;exports.AccountSubscriptionTypes=qw;exports.AccountTypes=$w;exports.AddToCartActionTypes=vc;exports.AggregateRoot=o_;exports.ApiGraphqlTypes=HI;exports.BaseDB=bw;exports.BroadcastChannelEventBus=ww;exports.ComponentManager=k0;exports.CreatePlanError=Gw;exports.DependencyInjector=Ah;exports.DomainError=hr;exports.ErrorCodes=Xt;exports.EventBusWildcards=gO;exports.EventChatRoom=xc;exports.EventChatRoomService=u0;exports.EventChatRoomTokenError=o0;exports.EventNames=Sw;exports.ExternalRuntime=Fh;exports.GlobalPageSectionTypes=Kw;exports.GraphqlEventChatRoomRepository=a0;exports.HttpAxiosClient=XP;exports.InvalidNizzaGlobalObjectError=Cb;exports.LanguageTypes=kw;exports.LocalRuntime=Ic;exports.LogLevel=Rt;exports.LogLevelPriority=At;exports.Logger=Nw;exports.MAX_PRODUCTS_IN_CART=mO;exports.NizzaEventStatus=_w;exports.NizzaProductRequestOriginTypes=Cw;exports.NizzaStore=Lu;exports.NizzaVariationTypes=Aw;exports.PlanNotFoundError=zw;exports.PriorityToLogLevelMap=Ew;exports.ReactHostElement=S0;exports.ResourceNotFoundError=aN;exports.RestAccountPlanRepository=Ww;exports.RestPublicAccountRepository=Yw;exports.Runtime=PU;exports.RuntimeStage=yh;exports.RuntimeType=mr;exports.Scope=yi;exports.StoreProvider=ZT;exports.UnexpectedError=rh;exports.ValueObject=XI;exports.VtexIORuntime=Rc;exports.VtexLegacyRuntime=Pc;exports.accountAtom=Dy;exports.accountService=Xw;exports.addQuestionData=c0;exports.addToCartMessages=Of;exports.apiCall=RO;exports.applyScopeInternal=H_;exports.buildLanguageTranslations=K_;exports.buildTranslations=z_;exports.chatIsConnectedAtom=Tc;exports.chatMessageListAtom=oa;exports.chatSocketAtom=Nc;exports.connectToSocket=l0;exports.createActionFactory=s_;exports.createAggregateRoot=a_;exports.createNizzaLogger=xO;exports.createPinoLogger=Tw;exports.createStore=KI;exports.customFetch=xi;exports.downloadFile=UO;exports.eventChatRoomService=Hf;exports.fileOrigin=OO;exports.getAccount=Zw;exports.getBrandiTagInternal=Eh;exports.getClientMetadata=Bw;exports.getClientTimeZone=Mw;exports.getNizza=pr;exports.getRandomColor=d0;exports.getScriptParams=Iw;exports.getStore=tO;exports.getTokenInternal=ns;exports.getUserFriendlyMessage=F_;exports.i18Init=Y_;exports.isClassProvider=$_;exports.isFactoryProvider=V_;exports.isOptionalDependencyDef=kh;exports.isValueProvider=j_;exports.jsDownload=Dw;exports.key=QP;exports.normalizeChatMessage=Th;exports.optional=eD;exports.registerTranslations=BD;exports.registerTranslationsOf=G_;exports.resolveConditionInternal=q_;exports.resolveDependenciesInternal=$f;exports.runAddToCartHooks=GI;exports.runtimeList=E0;exports.searchParams=Ow;exports.shortId=Uu;exports.sleep=IO;exports.tag=ZP;exports.tokens=tD;exports.useAccount=Qw;exports.useAutorun=XT;exports.useChatSocketActions=JF;exports.useChatSocketClient=XF;exports.useChatSocketHandlers=p0;exports.useConnectChatSocket=h0;exports.useEventChatRoom=f0;exports.useMetaDataClient=$D;exports.useNZ=Rw;exports.useNizza=Pw;exports.useReaction=QT;exports.useSelect=yw;exports.useStore=eO;exports.validateRequiredProps=uN;
|
|
221
221
|
//# sourceMappingURL=index.cjs.map
|