;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="9f572d18-98ee-1ea4-3eb3-133801bf8006")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,164645,e=>{"use strict";e.i(247167);var t,r,n=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object,l=s.getPrototypeOf,c="constructor",u="prototype",f="configurable",p="enumerable",d="writable",h="value",y=e=>!!e&&!!e[i];function _(e){return!!e&&(v(e)||O(e)||!!e[o]||!!e[c]?.[o]||x(e)||T(e))}var g=s[u][c].toString(),m=new WeakMap;function v(e){if(!e||!k(e))return!1;let t=l(e);if(null===t||t===s[u])return!0;let r=s.hasOwnProperty.call(t,c)&&t[c];if(r===Object)return!0;if(!C(r))return!1;let n=m.get(r);return void 0===n&&(n=Function.toString.call(r),m.set(r,n)),n===g}function w(e,t,r=!0){0===b(e)?(r?Reflect.ownKeys(e):s.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function b(e){let t=e[i];return t?t.type_:O(e)?1:x(e)?2:3*!!T(e)}var S=(e,t,r=b(e))=>2===r?e.has(t):s[u].hasOwnProperty.call(e,t),E=(e,t,r=b(e))=>2===r?e.get(t):e[t],P=(e,t,r,n=b(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},O=Array.isArray,x=e=>e instanceof Map,T=e=>e instanceof Set,k=e=>"object"==typeof e,C=e=>"function"==typeof e,j=e=>e.modified_?e.copy_:e.base_;function A(e,t){if(x(e))return new Map(e);if(T(e))return new Set(e);if(O(e))return Array[u].slice.call(e);let r=v(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);if(null!==t&&r)return{...e};let n=s.create(t);return s.assign(n,e)}{let t=s.getOwnPropertyDescriptors(e);delete t[i];let r=Reflect.ownKeys(t);for(let n=0;n1&&s.defineProperties(e,{set:D,add:D,clear:D,delete:D}),s.freeze(e),t&&w(e,(e,t)=>{M(t,!0)},!1)),e}var D={[h]:function(){a(2)}};function I(e){return!(null!==e&&k(e))||s.isFrozen(e)}var R="MapSet",N="Patches",L="ArrayMethods",$={};function z(e){let t=$[e];return t||a(0,e),t}var G=e=>!!$[e];function F(e,t){t&&(e.patchPlugin_=z(N),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function U(e){V(e),e.drafts_.forEach(K),e.drafts_=null}function V(e){e===r&&(r=e.parent_)}var W=e=>r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:G(R)?z(R):void 0,arrayMethodsPlugin_:G(L)?z(L):void 0};function K(e){let t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function B(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[i].modified_&&(U(t),a(4)),_(e)&&(e=X(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[i].base_,e,t)}else e=X(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&M(t,r)}(t,e,!0),U(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==n?e:void 0}function X(e,t){if(I(t))return t;let r=t[i];if(!r)return Z(t,e.handledSet_,e);if(!H(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);Y(r,e)}return r.copy_}function q(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var H=(e,t)=>e.scope_===t,J=[];function Q(e,t,r,n){let o=e.copy_||e.base_,i=e.type_;if(void 0!==n&&E(o,n,i)===t)return void P(o,n,r,i);if(!e.draftLocations_){let t=e.draftLocations_=new Map;w(o,(e,r)=>{if(y(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??J)P(o,n,r,i)}function Y(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}q(e)}}function Z(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||y(e)||t.has(e)||!_(e)||I(e)||(t.add(e),w(e,(n,o)=>{if(y(o)){let t=o[i];H(t,r)&&(P(e,n,j(t),e.type_),q(t))}else _(o)&&Z(o,t,r)})),e}var ee={get(e,t){let r;if(t===i)return e;let n=e.scope_.arrayMethodsPlugin_,o=1===e.type_&&"string"==typeof t;if(o&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let a=e.copy_||e.base_;if(!S(a,t,e.type_)){var s;let r;return s=e,(r=en(a,t))?h in r?r[h]:r.get?.call(s.draft_):void 0}let l=a[t];if(e.finalized_||!_(l)||o&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(r=+t)&&String(r)===t)return l;if(l===er(e.base_,t)){ei(e);let r=1===e.type_?+t:t,n=es(e.scope_,l,e,r);return e.copy_[r]=n}return l},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let n=en(e.copy_||e.base_,t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=er(e.copy_||e.base_,t),o=n?.[i];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||S(e.base_,t,e.type_)))return!0;ei(e),eo(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(y(r)){let o=r[i];H(o,n)&&o.callbacks_.push(function(){ei(e),Q(e,r,j(o),t)})}else _(r)&&e.callbacks_.push(function(){let o=e.copy_||e.base_;3===e.type_?o.has(r)&&Z(r,n.handledSet_,n):E(o,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Z(E(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(ei(e),void 0!==er(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),eo(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[d]:!0,[f]:1!==e.type_||"length"!==t,[p]:n[p],[h]:r[t]}:n},defineProperty(){a(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){a(12)}},et={};for(let e in ee){let t=ee[e];et[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function er(e,t){let r=e[i];return(r?r.copy_||r.base_:e)[t]}function en(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function eo(e){!e.modified_&&(e.modified_=!0,e.parent_&&eo(e.parent_))}function ei(e){e.copy_||(e.assigned_=new Map,e.copy_=A(e.base_,e.scope_.immer_.useStrictShallowCopy_))}et.deleteProperty=function(e,t){return et.set.call(this,e,t,void 0)},et.set=function(e,t,r){return ee.set.call(this,e[0],t,r,e[0])};var ea=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let o;if(C(e)&&!C(t)){let r=t;t=e;let n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}if(C(t)||a(6),void 0===r||C(r)||a(7),_(e)){let n=W(this),i=es(n,e,void 0),a=!0;try{o=t(i),a=!1}finally{a?U(n):V(n)}return F(n,r),B(o,n)}if(e&&k(e))a(1,e);else{if(void 0===(o=t(e))&&(o=e),o===n&&(o=void 0),this.autoFreeze_&&M(o,!0),r){let t=[],n=[];z(N).generateReplacementPatches_(e,o,{patches_:t,inversePatches_:n}),r(t,n)}return o}},this.produceWithPatches=(e,t)=>{let r,n;return C(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){_(e)||a(8),y(e)&&(e=function(e){return y(e)||a(10,e),function e(t){let r;if(!_(t)||I(t))return t;let n=t[i],o=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=A(t,n.scope_.immer_.useStrictShallowCopy_),o=n.scope_.immer_.shouldUseStrictIteration()}else r=A(t,!0);return w(r,(t,n)=>{P(r,t,e(n))},o),n&&(n.finalized_=!1),r}(e)}(e));let t=W(this),r=es(t,e,void 0);return r[i].isManual_=!0,V(t),r}finishDraft(e,t){let r=e&&e[i];r&&r.isManual_||a(9);let{scope_:n}=r;return F(n,t),B(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=z(N).applyPatches_;return y(e)?n(e,t):this.produce(e,e=>n(e,t))}};function es(e,t,n,o){let[i,a]=x(t)?z(R).proxyMap_(t,n):T(t)?z(R).proxySet_(t,n):function(e,t){let n=O(e),o={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=ee;n&&(i=[o],a=et);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return o.draft_=l,o.revoke_=s,[l,o]}(t,n);if((n?.scope_??r).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=o,n&&void 0!==o)n.callbacks_.push(function(e){if(!a||!H(a,e))return;e.mapSetPlugin_?.fixSetContents(a);let t=j(a);Q(n,a.draft_??a,t,o),Y(a,e)});else a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)});return i}var el=new ea().produce,ec=e=>Array.isArray(e)?e:[e],eu=0,ef=class{revision=eu;_value;_lastValue;_isEqual=ep;constructor(e,t=ep){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++eu)}};function ep(e,t){return e===t}function ed(e){return e instanceof ef||console.warn("Not a valid cell! ",e),e.value}var eh=(e,t)=>!1;function ey(){return function(e,t=ep){return new ef(null,t)}(0,eh)}var e_=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=ey()),ed(t)};Symbol();var eg=0,em=Object.getPrototypeOf({}),ev=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,ew);tag=ey();tags={};children={};collectionTag=null;id=eg++},ew={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in em)return n;if("object"==typeof n&&null!==n){var o;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(o=n)?new eb(o):new ev(o)),r.tag&&ed(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=ey()).value=n),ed(r),n}})(),ownKeys:e=>(e_(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},eb=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],eS);tag=ey();tags={};children={};collectionTag=null;id=eg++},eS={get:([e],t)=>("length"===t&&e_(e),ew.get(e,t)),ownKeys:([e])=>ew.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>ew.getOwnPropertyDescriptor(e,t),has:([e],t)=>ew.has(e,t)},eE="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function eP(){return{s:0,v:void 0,o:null,p:null}}function eO(e,t={}){let r,n=eP(),{resultEqualityCheck:o}=t,i=0;function a(){let t,a=n,{length:s}=arguments;for(let e=0;e{n=eP(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}var ex=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n,o=0,i=0,a={},s=e.pop();"object"==typeof s&&(a=s,s=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let{memoize:l,memoizeOptions:c=[],argsMemoize:u=eO,argsMemoizeOptions:f=[],devModeChecks:p={}}={...r,...a},d=ec(c),h=ec(f),y=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),_=l(function(){return o++,s.apply(null,arguments)},...d);return Object.assign(u(function(){i++;let e=function(e,t){let r=[],{length:n}=e;for(let o=0;oi,resetDependencyRecomputations:()=>{i=0},lastResult:()=>n,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}(eO),eT=Object.assign((e,t=ex)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>eT});function ek(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eC="function"==typeof Symbol&&Symbol.observable||"@@observable",ej=()=>Math.random().toString(36).substring(7).split("").join("."),eA={INIT:`@@redux/INIT${ej()}`,REPLACE:`@@redux/REPLACE${ej()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ej()}`};function eM(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function eD(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function eI(e){return({dispatch:t,getState:r})=>n=>o=>"function"==typeof o?o(t,r,e):n(o)}var eR=eI(),eN="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?eD:eD.apply(null,arguments)};function eL(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(eZ(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>eM(t)&&"type"in t&&"string"==typeof t.type&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var e$=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function ez(e){return _(e)?el(e,()=>{}):e}function eG(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var eF=e=>t=>{setTimeout(t,e)};function eU(e){let t,r,n,o=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},i=new e$;return t&&("boolean"==typeof t?i.push(eR):i.push(eI(t.extraArgument))),i},{reducer:i,middleware:a,devTools:s=!0,duplicateMiddlewareCheck:l=!0,preloadedState:c,enhancers:u}=e||{};if("function"==typeof i)t=i;else if(eM(i))t=function(e){let t,r=Object.keys(e),n={};for(let t=0;t{let t=n[e];if(void 0===t(void 0,{type:eA.INIT}))throw Error(ek(12));if(void 0===t(void 0,{type:eA.PROBE_UNKNOWN_ACTION()}))throw Error(ek(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let i=!1,a={};for(let t=0;t(r,n)=>{let o=t(r,n),i=()=>{throw Error(ek(15))},a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)};return i=eD(...e.map(e=>e(a)))(o.dispatch),{...o,dispatch:i}}}(...r),function(e){let{autoBatch:t=!0}=e??{},r=new e$(n);return t&&r.push(((e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,a=!1,s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:eF(10):"callback"===e.type?e.queueNotification:eF(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return(i=!(o=!e?.meta?.RTK_autoBatch))&&!a&&(a=!0,l(c)),n.dispatch(e)}finally{o=!0}}})})("object"==typeof t?t:void 0)),r});return function e(t,r,n){if("function"!=typeof t)throw Error(ek(2));if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(ek(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(ek(1));return n(e)(t,r)}let o=t,i=r,a=new Map,s=a,l=0,c=!1;function u(){s===a&&(s=new Map,a.forEach((e,t)=>{s.set(t,e)}))}function f(){if(c)throw Error(ek(3));return i}function p(e){if("function"!=typeof e)throw Error(ek(4));if(c)throw Error(ek(5));let t=!0;u();let r=l++;return s.set(r,e),function(){if(t){if(c)throw Error(ek(6));t=!1,u(),s.delete(r),a=null}}}function d(e){if(!eM(e))throw Error(ek(7));if(void 0===e.type)throw Error(ek(8));if("string"!=typeof e.type)throw Error(ek(17));if(c)throw Error(ek(9));try{c=!0,i=o(i,e)}finally{c=!1}return(a=s).forEach(e=>{e()}),e}return d({type:eA.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(ek(10));o=e,d({type:eA.REPLACE})},[eC]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(ek(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:p(t)}},[eC](){return this}}}}}(t,c,f(..."function"==typeof u?u(p):p()))}function eV(e){let t,r={},n=[],o={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(eZ(28));if(n in r)throw Error(eZ(29));return r[n]=t,o},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),o),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(t=e,o)};return e(o),[r,n,t]}var eW=Symbol.for("rtk-slice-createasyncthunk"),eK=((t=eK||{}).reducer="reducer",t.reducerWithPrepare="reducerWithPrepare",t.asyncThunk="asyncThunk",t),eB=function({creators:e}={}){let t=e?.asyncThunk?.[eW];return function(e){let r,{name:n,reducerPath:o=n}=e;if(!n)throw Error(eZ(11));let i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={},l={},c={},u=[],f={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(eZ(12));if(r in l)throw Error(eZ(13));return l[r]=t,f},addMatcher:(e,t)=>(u.push({matcher:e,reducer:t}),f),exposeAction:(e,t)=>(c[e]=t,f),exposeCaseReducer:(e,t)=>(s[e]=t,f)};function p(){let[t={},r=[],n]="function"==typeof e.extraReducers?eV(e.extraReducers):[e.extraReducers],o={...t,...l};return function(e,t){let r,[n,o,i]=eV(t);if("function"==typeof e)r=()=>ez(e());else{let t=ez(e);r=()=>t}function a(e=r(),t){let s=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[i]),s.reduce((e,r)=>{if(r)if(y(e)){let n=r(e,t);return void 0===n?e:n}else{if(_(e))return el(e,e=>r(e,t));let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of u)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}a.forEach(r=>{let o=i[r],a={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===o._reducerDefinitionType?function({type:e,reducerName:t},r,n,o){if(!o)throw Error(eZ(18));let{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,f=o(e,i,u);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:a||eX,pending:s||eX,rejected:l||eX,settled:c||eX})}(a,o,f,t):function({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(eZ(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?eL(e,a):eL(e))}(a,o,f)});let d=e=>e,h=new Map,g=new WeakMap;function m(e,t){return r||(r=p()),r(e,t)}function v(){return r||(r=p()),r.getInitialState()}function w(t,r=!1){function n(e){let o=e[t];return void 0===o&&r&&(o=eG(g,n,v)),o}function o(t=d){let n=eG(h,r,()=>new WeakMap);return eG(n,t,()=>{let n={};for(let[o,i]of Object.entries(e.selectors??{}))n[o]=function(e,t,r,n){function o(i,...a){let s=t(i);return void 0===s&&n&&(s=r()),e(s,...a)}return o.unwrapped=e,o}(i,t,()=>eG(g,t,v),r);return n})}return{reducerPath:t,getSelectors:o,get selectors(){return o(n)},selectSlice:n}}let b={name:n,reducer:m,actions:c,caseReducers:s,getInitialState:v,...w(o),injectInto(e,{reducerPath:t,...r}={}){let n=t??o;return e.inject({reducerPath:n,reducer:m},r),{...b,...w(n,!0)}}};return b}}();function eX(){}var{assign:eq}=Object,eH="listenerMiddleware",eJ=eq(e=>{let{type:t,predicate:r,effect:n}=(e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=eL(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(o);else throw Error(eZ(21));if("function"!=typeof i)throw TypeError(eZ(32));return{predicate:o,type:t,effect:i}})(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t})(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(eZ(22))}}},{withTypes:()=>eJ}),eQ=eq(eL(`${eH}/add`),{withTypes:()=>eQ}),eY=eq(eL(`${eH}/remove`),{withTypes:()=>eY});function eZ(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original"),e.s(["configureStore",()=>eU,"createSlice",()=>eB],164645)},568433,e=>{"use strict";var t=e.i(247167);let r={startup:{title:"Startup",message:"Lifecycle event",code:"ST001"},internalError:{title:"Internal Error",message:"Internal Error",code:"IE500"},metadata:{title:"Metadata",message:"Metadata",code:"MD500"},fetch:{title:"Fetch Event",message:"Fetch Event",code:"IE500"},parse:{title:"parse Event",message:"parse Event",code:"pE500"},websocket:{title:"Websocket Event",message:"Websocket Eevent",code:"WE100"},dbConnection:{title:"Database Connection",message:"Connectivity event",code:"DB001"},authManager:{title:"Auth Manager",message:"Update Cookie Storage",code:"AM001"},cookies:{title:"Cookies",message:"Cookie Storage Event",code:"CK001"},sitemap:{title:"Sitemap",message:"Sitemap",code:"SM001"},deviceInfo:{title:"Device Info",message:"Device Info",code:"DI001"},verifyPayment:{title:"Verify Payment",message:"Verify Payment",code:"VP001"},pageView:{title:"Page View",message:"Page View",code:"PV001"},playerDevice:{title:"Player Device",message:"Player Device",code:"PD001"},consoleLog:{title:"Console Log",message:"Console Log",code:"CL9999"},internalApi:{title:"Internal API",message:"Request/response event",code:"IA001"},gameList:{title:"Game List",message:"Game list",code:"GL001"},gameHash:{title:"Game Hash",message:"Game Hash",code:"GH001"},syncGames:{title:"Sync Games",message:"Sync operation",code:"SG001"},syncGamesHash:{title:"Sync Games Hash",message:"Hash sync operation",code:"SG002"},launchGame:{title:"Game Launch",message:"Game Launch",code:"GL002"},GameErrorBoundary:{title:"Game Error Boundary",message:"Game Error Boundary",code:"GB001"}},n={debug:"\x1b[34m",information:"\x1b[36m",warning:"\x1b[33m",error:"\x1b[31m"},o={0:["debug","information","warning","error"],1:["information","warning","error"],2:["warning","error"],3:["error"],4:[]};function i(e,t,r,n,o=0,a=new WeakSet){if(n||void 0===e)return;if(o>=t)return"[Depth Limit Exceeded]";if(null===e||"object"!=typeof e)return e;if(a.has(e))return"[Circular]";if(a.add(e),Array.isArray(e)){let s=e.slice(0,r).map(e=>i(e,t,r,n,o+1,a));return e.length>r&&s.push(`…+${e.length-r} items`),s}if(e instanceof Error)return{message:e.message,stack:e.stack};let s={};for(let[l,c]of Object.entries(e))s[l]=i(c,t,r,n,o+1,a);return s}class a{static instance;levels;hideValues;maxDepth;maxArrayLength;platform;constructor(e){this.levels=new Set(o[e.group??"0"]),this.hideValues=e.hideValues??!1,this.maxDepth=Math.max(0,e.maxDepth??3),this.maxArrayLength=Math.max(5,e.maxArrayLength??20),this.platform=e.platform??"PPF"}static getInstance(e={}){return a.instance||(a.instance=new a(e)),a.instance}setGroup(e){this.levels=new Set(o[e])}debug(e,t,r){this._route("debug",e,t,r)}info(e,t,r){this._route("information",e,t,r)}warning(e,t,r){this._route("warning",e,t,r)}error(e,t,r){this._route("error",e,t,r)}log(e,t){this.consoleLog("debug",this.platform,e,t)}_route(e,t,n,o){let i=r[t],a=this.platform,s=String(i.code),l=i.title,c=i.message,u="string"==typeof n,f=u?n:void 0,p=u?o:n,d=f??c;this.consoleLog(e,a,`${l} — ${d}`,p),this.sendToElastic(e,{code:s,title:l,message:d,meta:p})}consoleLog(e,t,r,o){if(!this.levels.has(e))return;let a=`${new Date().toISOString()} [${t}] ${n[e]}[${e.toUpperCase()}]\x1b[0m ${r}`;if(this.hideValues||void 0===o)return void console.log(a);let s=JSON.stringify(i(o,this.maxDepth,this.maxArrayLength,this.hideValues),null,2);console.log(`${a} ${s}`)}async buildAbsoluteUrl(e){return e}async sendToElastic(e,t){try{let r=await this.buildAbsoluteUrl("/api/log"),n={level:e.toUpperCase(),platform:this.platform,code:t.code,title:t.title,message:t.message,meta:i(t.meta,this.maxDepth,this.maxArrayLength,this.hideValues),timestamp:Date.now()};fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(()=>{this.consoleLog("error",this.platform,"Error send log to elastic")})}catch(e){this.consoleLog("error",this.platform,"Error send log to elastic",{e})}}}let s=a.getInstance({group:"4",hideValues:"true"===t.default.env.NEXT_PUBLIC_MINIMAL_LOG,platform:"PPF",maxDepth:5});e.s(["logger",0,s],568433)}]); //# debugId=9f572d18-98ee-1ea4-3eb3-133801bf8006 //# sourceMappingURL=19551f8f804ad546.js.map