PageSourceSearch

https://igem.org/assets/state-vendor-C5vsMx6R.js

js igem.org collected 2026-10-01 08:41:36 UTC 107,919 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`0f0bc69cd3448fd09cefd01ed9072c6c17a074a9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c69c0fe7-2814-4f03-b180-7ce53fd7bf04`,e._sentryDebugIdIdentifier=`sentry-dbid-c69c0fe7-2814-4f03-b180-7ce53fd7bf04`)}catch{}})();import{a as e,t}from"./rolldown-runtime-CVzP0ehZ.js";import{v as n}from"./react-vendor-2IOJsTjo.js";function r(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 i=(()=>typeof Symbol==`function`&&Symbol.observable||`@@observable`)(),a=()=>Math.random().toString(36).substring(7).split(``).join(`.`),o={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function s(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function c(e,t,n){if(typeof e!=`function`)throw Error(r(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(r(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(r(1));return n(c)(e,t)}let a=e,l=t,u=new Map,d=u,f=0,p=!1;function m(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function h(){if(p)throw Error(r(3));return l}function g(e){if(typeof e!=`function`)throw Error(r(4));if(p)throw Error(r(5));let t=!0;m();let n=f++;return d.set(n,e),function(){if(t){if(p)throw Error(r(6));t=!1,m(),d.delete(n),u=null}}}function _(e){if(!s(e))throw Error(r(7));if(e.type===void 0)throw Error(r(8));if(typeof e.type!=`string`)throw Error(r(17));if(p)throw Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach(e=>{e()}),e}function v(e){if(typeof e!=`function`)throw Error(r(10));a=e,_({type:o.REPLACE})}function y(){let e=g;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(r(11));function n(){let e=t;e.next&&e.next(h())}return n(),{unsubscribe:e(n)}},[i](){return this}}}return _({type:o.INIT}),{dispatch:_,subscribe:g,getState:h,replaceReducer:v,[i]:y}}function l(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:o.INIT})===void 0)throw Error(r(12));if(n(void 0,{type:o.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(r(13))})}function u(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let i=Object.keys(n),a;try{l(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1,s={};for(let a=0;a<i.length;a++){let c=i[a],l=n[c],u=e[c],d=l(u,t);if(d===void 0)throw t&&t.type,Error(r(14));s[c]=d,o||=d!==u}return o||=i.length!==Object.keys(e).length,o?s:e}}function d(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function f(...e){return t=>(n,i)=>{let a=t(n,i),o=()=>{throw Error(r(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=d(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}function p(e){return s(e)&&`type`in e&&typeof e.type==`string`}var m=Symbol.for(`immer-nothing`),h=Symbol.for(`immer-draftable`),g=Symbol.for(`immer-state`);function _(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var v=Object,y=v.getPrototypeOf,b=`constructor`,x=`prototype`,S=`configurable`,C=`enumerable`,w=`writable`,T=`value`,E=e=>!!e&&!!e[g];function D(e){return e?ee(e)||ie(e)||!!e[h]||!!e[b]?.[h]||ae(e)||oe(e):!1}var O=v[x][b].toString(),k=new WeakMap;function ee(e){if(!e||!se(e))return!1;let t=y(e);if(t===null||t===v[x])return!0;let n=v.hasOwnProperty.call(t,b)&&t[b];if(n===Object)return!0;if(!ce(n))return!1;let r=k.get(n);return r===void 0&&(r=Function.toString.call(n),k.set(n,r)),r===O}function A(e){return E(e)||_(15,e),e[g].base_}function j(e,t,n=!0){M(e)===0?(n?Reflect.ownKeys(e):v.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function M(e){let t=e[g];return t?t.type_:ie(e)?1:ae(e)?2:oe(e)?3:0}var te=(e,t,n=M(e))=>
vendor: 7,093 bytes, line 1
1n===2?e.has(t):v[x].hasOwnProperty.call(e,t),N=(e,t,n=M(e))=>n===2?e.get(t):e[t],ne=(e,t,n,r=M(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function re(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var ie=Array.isArray,ae=e=>e instanceof Map,oe=e=>e instanceof Set,se=e=>typeof e==`object`,ce=e=>typeof e==`function`,le=e=>typeof e==`boolean`,ue=e=>se(e)?e?.[g]:null,P=e=>e.copy_||e.base_,de=e=>e.modified_?e.copy_:e.base_;function fe(e,t){if(ae(e))return new Map(e);if(oe(e))return new Set(e);if(ie(e))return Array[x].slice.call(e);let n=ee(e);if(t===!0||t===`class_only`&&!n){let t=v.getOwnPropertyDescriptors(e);delete t[g];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[w]===!1&&(a[w]=!0,a[S]=!0),(a.get||a.set)&&(t[i]={[S]:!0,[w]:!0,[C]:a[C],[T]:e[i]})}return v.create(y(e),t)}else{let t=y(e);if(t!==null&&n)return{...e};let r=v.create(t);return v.assign(r,e)}}function pe(e,t=!1){return ge(e)||E(e)||!D(e)?e:(M(e)>1&&v.defineProperties(e,{set:he,add:he,clear:he,delete:he}),v.freeze(e),t&&j(e,(e,t)=>{pe(t,!0)},!1),e)}function me(){_(2)}var he={[T]:me};function ge(e){return e===null||!se(e)?!0:v.isFrozen(e)}var _e=`MapSet`,ve=`Patches`,ye={};function be(e){let t=ye[e];return t||_(0,e),t}var xe=e=>!!ye[e];function Se(e,t){ye[e]||(ye[e]=t)}var Ce,we=()=>Ce,Te=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:xe(_e)?be(_e):void 0});function Ee(e,t){t&&(e.patchPlugin_=be(ve),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function De(e){Oe(e),e.drafts_.forEach(Ae),e.drafts_=null}function Oe(e){e===Ce&&(Ce=e.parent_)}var ke=e=>Ce=Te(Ce,e);function Ae(e){let t=e[g];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function je(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[g].modified_&&(De(t),_(4)),D(e)&&(e=Me(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[g].base_,e,t)}else e=Me(t,n);return Ne(t,e,!0),De(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===m?void 0:e}function Me(e,t){if(ge(t))return t;let n=t[g];if(!n)return Ve(t,e.handledSet_,e);if(!Fe(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ze(n,e)}return n.copy_}function Ne(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pe(t,n)}function Pe(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Fe=(e,t)=>e.scope_===t,Ie=[];function Le(e,t,n,r){let i=P(e),a=e.type_;if(r!==void 0&&N(i,r,a)===t){ne(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;j(i,(e,n)=>{if(E(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ie;for(let e of o)ne(i,e,n,a)}function Re(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Fe(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=de(i);Le(e,i.draft_??i,a,n),ze(i,r)})}function ze(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Pe(e)}}function Be(e,t,n){let{scope_:r}=e;if(E(n)){let i=n[g];Fe(i,r)&&i.callbacks_.push(function(){Ye(e),Le(e,n,de(i),t)})}else D(n)&&e.callbacks_.push(function(){N(P(e),t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ve(N(e.copy_,t,e.type_),r.handledSet_,r)})}function Ve(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||E(e)||t.has(e)||!D(e)||ge(e)?e:(t.add(e),j(e,(r,i)=>{if(E(i)){let t=i[g];Fe(t,n)&&(ne(e,r,de(t),e.type_),Pe(t))}else D(i)&&Ve(i,t,n)}),e)}function He(e,t){let n=ie(e),r={type_:n?1:0,scope_:t?t.scope_:we(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Ue;n&&(i=[r],a=We);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ue={get(e,t){if(t===g)return e;let n=P(e);if(!te(n,t,e.type_))return Ke(e,n,t);let r=n[t];if(e.finalized_||!D(r))return r;if(r===Ge(e.base_,t)){Ye(e);let n=e.type_===1?+t:t,i=Ze(e.scope_,r,e,n);return e.copy_[n]=i}return r},has(e,t){return t in P(e)},ownKeys(e){return Reflect.ownKeys(P(e))},set(e,t,n){let r=qe(P(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Ge(P(e),t),i=r?.[g];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(re(n,r)&&(n!==void 0||te(e.base_,t,e.type_)))return!0;Ye(e),Je(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Be(e,t,n),!0)},deleteProperty(e,t){return Ye(e),Ge(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Je(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=P(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[w]:!0,[S]:e.type_!==1||t!==`length`,[C]:r[C],[T]:n[t]}},defineProperty(){_(11)},getPrototypeOf(e){return y(e.base_)},setPrototypeOf(){_(12)}},We={};j(Ue,(e,t)=>{We[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),We.deleteProperty=function(e,t){return We.set.call(this,e,t,void 0)},We.set=function(e,t,n){return Ue.set.call(this,e[0],t,n,e[0])};function Ge(e,t){let n=e[g];return(n?P(n):e)[t]}function Ke(e,t,n){let r=qe(t,n);return r?T in r?r[T]:r.get?.call(e.draft_):void 0}function qe(e,t){if(!(t in e))return;let n=y(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=y(n)}}function Je(e){e.modified_||(e.modified_=!0,e.parent_&&Je(e.parent_))}function Ye(e){e.copy_||=(e.assigned_=new Map,fe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Xe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(ce(e)&&!ce(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}ce(t)||_(6),n!==void 0&&!ce(n)&&_(7);let r;if(D(e)){let i=ke(this),a=Ze(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?De(i):Oe(i)}return Ee(i,n),je(r,i)}else if(!e||!se(e)){if(r=t(e),r===void 0&&(r=e),r===m&&(r=void 0),this.autoFreeze_&&pe(r,!0),n){let t=[],i=[];be(ve).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else _(1,e)},this.produceWithPatches=(e,t)=>{if(ce(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},le(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),le(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),le(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){D(e)||_(8),E(e)&&(e=Qe(e));let t=ke(this),n=Ze(t,e,void 0);return n[g].isManual_=!0,Oe(t),n}finishDraft(e,t){let n=e&&e[g];(!n||!n.isManual_)&&_(9);let{scope_:r}=n;return Ee(r,t),je(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>
1-1&&(t=t.slice(n+1));let r=be(ve).applyPatches_;return E(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ze(e,t,n,r){let[i,a]=ae(t)?be(_e).proxyMap_(t,n):oe(t)?be(_e).proxySet_(t,n):He(t,n);return(n?.scope_??we()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Re(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Qe(e){return E(e)||_(10,e),$e(e)}function $e(e){if(!D(e)||ge(e))return e;let t=e[g],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=fe(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=fe(e,!0);return j(n,(e,t)=>{ne(n,e,$e(t))},r),t&&(t.finalized_=!1),n}function et(){function e(n,r=[]){if(`key_`in n&&n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=ue(N(e,n.key_)),i=N(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||te(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=N(n,r),!se(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);for(let e=0;e<o.length;e++){let r=c[e],l=o[e];if(s?.get(e.toString())&&r!==l){let o=r?.[g];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(l)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;j(e.assigned_,(e,l)=>{let u=N(o,e,c),f=N(s,e,c),p=l?te(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===m?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=M(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===b)&&_(19),ce(o)&&n===x&&_(19),o=N(o,n),se(o)||_(18,i.join(`/`))}let s=M(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:_(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:_(17,a)}}),e}function u(e){if(!D(e))return e;if(ie(e))return e.map(u);if(ae(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(oe(e))return new Set(Array.from(e).map(u));let t=Object.create(y(e));for(let n in e)t[n]=u(e[n]);return te(e,h)&&(t[h]=e[h]),t}function d(e){return E(e)?u(e):e}Se(ve,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var tt=new Xe,nt=tt.produce,rt=tt.produceWithPatches.bind(tt),it=tt.applyPatches.bind(tt);function at(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function ot(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function st(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var ct=e=>Array.isArray(e)?e:[e];function lt(e){let t=Array.isArray(e[0])?e[0]:e;return st(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function ut(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var dt=class{constructor(e){this.value=e}deref(){return this.value}},ft=typeof WeakRef<`u`?WeakRef:dt,pt=0,mt=1;function ht(){return{s:pt,v:void 0,o:null,p:null}}function gt(e,t={}){let n=ht(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=ht(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=ht(),e.set(n,t)):t=r}}let s=t,c;if(t.s===mt)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new ft(c):c}
1return s.s=mt,s.v=c,c}return o.clearCache=()=>{n=ht(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function _t(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),at(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=gt,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=ct(c),p=ct(u),m=lt(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=ut(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var vt=_t(gt),yt=Object.assign((e,t=vt)=>{ot(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>yt});function bt(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var xt=bt(),St=bt,Ct=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?d:d.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var wt=e=>e&&typeof e.match==`function`;function F(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(L(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 n.toString=()=>`${e}`,n.type=e,n.match=t=>p(t)&&t.type===e,n}var Tt=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 t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Et(e){return D(e)?nt(e,()=>{}):e}function Dt(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ot(e){return typeof e==`boolean`}var kt=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Tt;return t&&(Ot(t)?a.push(xt):a.push(St(t.extraArgument))),a},At=`RTK_autoBatch`,jt=()=>e=>({payload:e,meta:{[At]:!0}}),Mt=e=>t=>{setTimeout(t,e)},Nt=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Pt=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?Nt(window.requestAnimationFrame,100):Mt(10):e.type===`callback`?e.queueNotification:Mt(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[At],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Ft=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Tt(e);return n&&r.push(Pt(typeof n==`object`?n:void 0)),r};function It(e){let t=kt(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{},p;if(typeof n==`function`)p=n;else if(s(n))p=u(n);else throw Error(L(1));let m;m=typeof r==`function`?r(t):t();let h=d;i&&(h=Ct({trace:!1,...typeof i==`object`&&i}));let g=Ft(f(...m)),_=typeof l==`function`?l(g):g(),v=h(..._);return c(p,o,v)}function Lt(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(L(28));if(r in t)throw Error(L(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Rt(e){return typeof e==`function`}function zt(e,t){let[n,r,i]=Lt(t),a;if(Rt(e))a=()=>Et(e());else{let t=Et(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(E(e)){let r=n(e,t);return r===void 0?e:r}else if(D(e))return nt(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Bt=(e,t)=>
vendor: 5,343 bytes, line 1
1wt(e)?e.match(t):e(t);function I(...e){return t=>e.some(e=>Bt(e,t))}function Vt(...e){return t=>e.every(e=>Bt(e,t))}function Ht(e,t){if(!e||!e.meta)return!1;let n=typeof e.meta.requestId==`string`,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Ut(e){return typeof e[0]==`function`&&`pending`in e[0]&&`fulfilled`in e[0]&&`rejected`in e[0]}function Wt(...e){return e.length===0?e=>Ht(e,[`pending`]):Ut(e)?I(...e.map(e=>e.pending)):Wt()(e[0])}function Gt(...e){return e.length===0?e=>Ht(e,[`rejected`]):Ut(e)?I(...e.map(e=>e.rejected)):Gt()(e[0])}function Kt(...e){let t=e=>e&&e.meta&&e.meta.rejectedWithValue;return e.length===0||Ut(e)?Vt(Gt(...e),t):Kt()(e[0])}function qt(...e){return e.length===0?e=>Ht(e,[`fulfilled`]):Ut(e)?I(...e.map(e=>e.fulfilled)):qt()(e[0])}function Jt(...e){return e.length===0?e=>Ht(e,[`pending`,`fulfilled`,`rejected`]):Ut(e)?I(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):Jt()(e[0])}var Yt=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Xt=(e=21)=>{let t=``,n=e;for(;n--;)t+=Yt[Math.random()*64|0];return t},Zt=[`name`,`message`,`stack`,`code`],Qt=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},$t=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},en=e=>{if(typeof e==`object`&&e){let t={};for(let n of Zt)typeof e[n]==`string`&&(t[n]=e[n]);return t}return{message:String(e)}},tn=`External signal was aborted`,nn=(()=>{function e(e,t,n){let r=F(e+`/fulfilled`,(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:`fulfilled`}})),i=F(e+`/pending`,(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:`pending`}})),a=F(e+`/rejected`,(e,t,r,i,a)=>({payload:i,error:(n&&n.serializeError||en)(e||`Rejected`),meta:{...a||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:`rejected`,aborted:e?.name===`AbortError`,condition:e?.name===`ConditionError`}}));function o(e,{signal:o}={}){return(s,c,l)=>{let u=n?.idGenerator?n.idGenerator(e):Xt(),d=new AbortController,f,p;function m(e){p=e,d.abort()}o&&(o.aborted?m(tn):o.addEventListener(`abort`,()=>m(tn),{once:!0}));let h=(async function(){let o;try{let a=n?.condition?.(e,{getState:c,extra:l});if(an(a)&&(a=await a),a===!1||d.signal.aborted)throw{name:`ConditionError`,message:`Aborted due to condition callback returning false.`};let h=new Promise((e,t)=>{f=()=>{t({name:`AbortError`,message:p||`Aborted`})},d.signal.addEventListener(`abort`,f,{once:!0})});s(i(u,e,n?.getPendingMeta?.({requestId:u,arg:e},{getState:c,extra:l}))),o=await Promise.race([h,Promise.resolve(t(e,{dispatch:s,getState:c,extra:l,requestId:u,signal:d.signal,abort:m,rejectWithValue:((e,t)=>new Qt(e,t)),fulfillWithValue:((e,t)=>new $t(e,t))})).then(t=>{if(t instanceof Qt)throw t;return t instanceof $t?r(t.payload,u,e,t.meta):r(t,u,e)})])}catch(t){o=t instanceof Qt?a(null,u,e,t.payload,t.meta):a(t,u,e)}finally{f&&d.signal.removeEventListener(`abort`,f)}return n&&!n.dispatchConditionRejection&&a.match(o)&&o.meta.condition||s(o),o})();return Object.assign(h,{abort:m,requestId:u,arg:e,unwrap(){return h.then(rn)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:r,settled:I(a,r),typePrefix:e})}return e.withTypes=()=>e,e})();function rn(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function an(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var on=Symbol.for(`rtk-slice-createasyncthunk`);function sn(e,t){return`${e}/${t}`}function cn({creators:e}={}){let t=e?.asyncThunk?.[on];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(L(11));let i=(typeof e.reducers==`function`?e.reducers(dn()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(L(12));if(n in o.sliceCaseReducersByType)throw Error(L(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:sn(n,r),createNotation:typeof e.reducers==`function`};pn(a)?hn(o,a,s,t):fn(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Lt(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return zt(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Dt(d,r,m)),i}function i(t=l){return Dt(Dt(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ln(a,t,()=>Dt(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ln(e,t,n,r){function i(i,...a){let o=t(i);
1return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var un=cn();function dn(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function fn({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!mn(r))throw Error(L(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?F(e,o):F(e))}function pn(e){return e._reducerDefinitionType===`asyncThunk`}function mn(e){return e._reducerDefinitionType===`reducerWithPrepare`}function hn({type:e,reducerName:t},n,r,i){if(!i)throw Error(L(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||gn,pending:s||gn,rejected:c||gn,settled:l||gn})}function gn(){}var _n=`listener`,vn=`completed`,yn=`cancelled`;`${yn}`,`${vn}`,`${_n}${yn}`,`${_n}${vn}`;var{assign:bn}=Object,xn=`listenerMiddleware`,Sn=bn(F(`${xn}/add`),{withTypes:()=>Sn});`${xn}`;var Cn=bn(F(`${xn}/remove`),{withTypes:()=>Cn});function L(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. `}var wn=class extends Error{issues;constructor(e){super(e[0].message),this.name=`SchemaError`,this.issues=e}},Tn=(e=>(e.uninitialized=`uninitialized`,e.pending=`pending`,e.fulfilled=`fulfilled`,e.rejected=`rejected`,e))(Tn||{}),R=`uninitialized`,En=`pending`,Dn=`fulfilled`,On=`rejected`;function kn(e){return{status:e,isUninitialized:e===R,isLoading:e===En,isSuccess:e===Dn,isError:e===On}}var An=s;function jn(e,t){if(e===t||!(An(e)&&An(t)||Array.isArray(e)&&Array.isArray(t)))return t;let n=Object.keys(t),r=Object.keys(e),i=n.length===r.length,a=Array.isArray(t)?[]:{};for(let r of n)a[r]=jn(e[r],t[r]),i&&=e[r]===a[r];return i?e:a}function Mn(e,t,n){return e.reduce((e,r,i)=>(t(r,i)&&e.push(n(r,i)),e),[]).flat()}function Nn(e){return RegExp(`(^|:)//`).test(e)}function Pn(){return typeof document>`u`?!0:document.visibilityState!==`hidden`}function Fn(e){return e!=null}function In(e){return[...e?.values()??[]].filter(Fn)}function Ln(){return typeof navigator>`u`||navigator.onLine===void 0?!0:navigator.onLine}var Rn=e=>e.replace(/\/$/,``),zn=e=>e.replace(/^\//,``);function Bn(e,t){if(!e)return t;if(!t)return e;if(Nn(t))return t;let n=e.endsWith(`/`)||!t.startsWith(`?`)?`/`:``;return e=Rn(e),t=zn(t),`${e}${n}${t}`}function Vn(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var Hn=()=>new Map,Un=e=>{let t=new AbortController;return setTimeout(()=>{let e=`signal timed out`,n=`TimeoutError`;t.abort(typeof DOMException<`u`?new DOMException(e,n):Object.assign(Error(e),{name:n}))},e),t.signal},Wn=(...e)=>{for(let t of e)if(t.aborted)return AbortSignal.abort(t.reason);let t=new AbortController;for(let n of e)n.addEventListener(`abort`,()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},Gn=(...e)=>fetch(...e),Kn=e=>e.status>=200&&e.status<=299,qn=e=>/ion\/(vnd\.api\+)?json/.test(e.get(`content-type`)||``);function Jn(e){if(!s(e))return e;let t={...e};for(let[e,n]of Object.entries(t))n===void 0&&delete t[e];return t}var Yn=e=>typeof e==`object`&&(s(e)||Array.isArray(e)||typeof e.toJSON==`function`);function Xn({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Gn,paramsSerializer:r,isJsonContentType:i=qn,jsonContentType:a=`application/json`,jsonReplacer:o,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>`u`&&n===Gn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,m)=>{let{getState:h,extra:g,endpoint:_,forced:v,type:y}=p,b,{url:x,headers:S=new Headers(u.headers),params:C=void 0,responseHandler:w=c??`json`,validateStatus:T=l??Kn,timeout:E=s,...D}=typeof f==`string`?{url:f}
vendor: 4,472 bytes, line 1
1:f,O={...u,signal:E?Wn(p.signal,Un(E)):p.signal,...D};S=new Headers(Jn(S)),O.headers=await t(S,{getState:h,arg:f,extra:g,endpoint:_,forced:v,type:y,extraOptions:m})||S;let k=Yn(O.body);if(O.body!=null&&!k&&typeof O.body!=`string`&&O.headers.delete(`content-type`),!O.headers.has(`content-type`)&&k&&O.headers.set(`content-type`,a),k&&i(O.headers)&&(O.body=JSON.stringify(O.body,o)),O.headers.has(`accept`)||(w===`json`?O.headers.set(`accept`,`application/json`):w===`text`&&O.headers.set(`accept`,`text/plain, text/html, */*`)),C){let e=~x.indexOf(`?`)?`&`:`?`,t=r?r(C):new URLSearchParams(Jn(C));x+=e+t}x=Bn(e,x);let ee=new Request(x,O);b={request:new Request(x,O)};let A;try{A=await n(ee)}catch(e){return{error:{status:(e instanceof Error||typeof DOMException<`u`&&e instanceof DOMException)&&e.name===`TimeoutError`?`TIMEOUT_ERROR`:`FETCH_ERROR`,error:String(e)},meta:b}}let j=A.clone();b.response=j;let M,te=``;try{let e;if(await Promise.all([d(A,w).then(e=>M=e,t=>e=t),j.text().then(e=>te=e,()=>{})]),e)throw e}catch(e){return{error:{status:`PARSING_ERROR`,originalStatus:A.status,data:te,error:String(e)},meta:b}}return T(A,M)?{data:M,meta:b}:{error:{status:A.status,data:M},meta:b}};async function d(e,t){if(typeof t==`function`)return t(e);if(t===`content-type`&&(t=i(e.headers)?`json`:`text`),t===`json`){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Zn=class{constructor(e,t=void 0){this.value=e,this.meta=t}value;meta},Qn=`__rtkq/`,$n=`online`,er=`offline`,tr=`focused`,nr=F(`${Qn}${tr}`),rr=F(`${Qn}un${tr}`),ir=F(`${Qn}${$n}`),ar=F(`${Qn}${er}`),or=`query`,sr=`mutation`,cr=`infinitequery`;function lr(e){return e.type===or}function ur(e){return e.type===sr}function dr(e){return e.type===cr}function fr(e){return lr(e)||dr(e)}function pr(e,t,n,r,i,a){let o=mr(e)?e(t,n,r,i):e;return o?Mn(o,Fn,e=>a(hr(e))):[]}function mr(e){return typeof e==`function`}function hr(e){return typeof e==`string`?{type:e}:e}function gr(e,t){return e.catch(t)}var _r=(e,t)=>e.endpointDefinitions[t],vr=Symbol(`forceQueryFn`),yr=e=>typeof e[vr]==`function`;function br({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:a,getInternalState:o}){let s=e=>o(e)?.runningQueries,c=e=>o(e)?.runningMutations,{unsubscribeQueryResult:l,removeMutationResult:u,updateSubscriptionOptions:d}=i.internalActions;return{buildInitiateQuery:_,buildInitiateInfiniteQuery:v,buildInitiateMutation:y,getRunningQueryThunk:f,getRunningMutationThunk:p,getRunningQueriesThunk:m,getRunningMutationsThunk:h};function f(t,n){return r=>{let i=e({queryArgs:n,endpointDefinition:_r(a,t),endpointName:t});return s(r)?.get(i)}}function p(e,t){return e=>c(e)?.get(t)}function m(){return e=>In(s(e))}function h(){return e=>In(c(e))}function g(r,a){let o=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:p,[vr]:m,...h}={})=>(g,_)=>{let v=e({queryArgs:c,endpointDefinition:a,endpointName:r}),y,b={...h,type:or,subscribe:u,forceRefetch:f,subscriptionOptions:p,endpointName:r,originalArgs:c,queryCacheKey:v,[vr]:m};if(lr(a))y=t(b);else{let{direction:e,initialPageParam:t,refetchCachedPages:r}=h;y=n({...b,direction:e,initialPageParam:t,refetchCachedPages:r})}let x=i.endpoints[r].select(c),S=g(y),C=x(_()),{requestId:w,abort:T}=S,E=C.requestId!==w,D=s(g)?.get(v),O=()=>x(_()),k=Object.assign(m?S.then(O):E&&!D?Promise.resolve(C):Promise.all([D,S]).then(O),{arg:c,requestId:w,subscriptionOptions:p,queryCacheKey:v,abort:T,async unwrap(){let e=await k;if(e.isError)throw e.error;return e.data},refetch:e=>g(o(c,{subscribe:!1,forceRefetch:!0,...e})),unsubscribe(){u&&g(l({queryCacheKey:v,requestId:w}))},updateSubscriptionOptions(e){k.subscriptionOptions=e,g(d({endpointName:r,requestId:w,queryCacheKey:v,options:e}))}});if(!D&&!E&&!m){let e=s(g);e.set(v,k),k.then(()=>{e.delete(v)})}return k};return o}function _(e,t){return g(e,t)}function v(e,t){return g(e,t)}function y(e){return(t,{track:n=!0,fixedCacheKey:i}={})=>(a,o)=>{let s=a(r({type:`mutation`,endpointName:e,originalArgs:t,track:n,fixedCacheKey:i})),{requestId:l,abort:d,unwrap:f}=s,p=gr(s.unwrap().then(e=>({data:e})),e=>({error:e})),m=Object.assign(p,{arg:s.arg,requestId:l,abort:d,unwrap:f,reset:()=>{a(u({requestId:l,fixedCacheKey:i}))}}),h=c(a);return h.set(l,m),m.then(()=>{h.delete(l)}),i&&(h.set(i,m),m.then(()=>{h.get(i)===m&&h.delete(i)})),m}}}var xr=class extends wn{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}value;schemaName;_bqMeta},Sr=(e,t)=>
vendor: 13,653 bytes, line 1
1Array.isArray(e)?e.includes(t):!!e;async function Cr(e,t,n,r){let i=await e[`~standard`].validate(t);if(i.issues)throw new xr(i.issues,t,n,r);return i.value}function wr(e){return e}var Tr=(e={})=>({...e,[At]:!0});function Er({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:a,selectors:o,onSchemaFailure:s,catchSchemaFailure:c,skipSchemaValidation:l}){let u=(e,t,o,s)=>(c,l)=>{let u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(i.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!s)return;let f=i.endpoints[e].select(t)(l()),p=pr(u.providesTags,f.data,void 0,t,{},a);c(i.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:p}]))};function d(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function f(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}let p=(e,t,n,r=!0)=>(a,o)=>{let s=i.endpoints[e].select(t)(o()),c={patches:[],inversePatches:[],undo:()=>a(i.util.patchQueryData(e,t,c.inversePatches,r))};if(s.status===R)return c;let l;if(`data`in s)if(D(s.data)){let[e,t,r]=rt(s.data,n);c.patches.push(...t),c.inversePatches.push(...r),l=e}else l=n(s.data),c.patches.push({op:`replace`,path:[],value:l}),c.inversePatches.push({op:`replace`,path:[],value:s.data});return c.patches.length===0||a(i.util.patchQueryData(e,t,c.patches,r)),c},m=(e,t,n)=>r=>r(i.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[vr]:()=>({data:n})})),h=(e,t)=>e.query&&e[t]?e[t]:wr,g=async(e,{signal:r,abort:i,rejectWithValue:a,fulfillWithValue:u,dispatch:p,getState:m,extra:g})=>{let v=n[e.endpointName],{metaSchema:y,skipSchemaValidation:b=l}=v,x=e.type===or;try{let n=wr,a={signal:r,abort:i,dispatch:p,getState:m,extra:g,endpoint:e.endpointName,type:e.type,forced:x?_(e,m()):void 0,queryCacheKey:x?e.queryCacheKey:void 0},s=x?e[vr]:void 0,c,l=async(t,n,r,i)=>{if(n==null&&t.pages.length)return Promise.resolve({data:t});let a=await S({queryArg:e.originalArgs,pageParam:n}),o=i?d:f;return{data:{pages:o(t.pages,a.data,r),pageParams:o(t.pageParams,n,r)},meta:a.meta}};async function S(e){let r,{extraOptions:i,argSchema:o,rawResponseSchema:c,responseSchema:l}=v;if(o&&!Sr(b,`arg`)&&(e=await Cr(o,e,`argSchema`,{})),s?r=s():v.query?(n=h(v,`transformResponse`),r=await t(v.query(e),a,i)):r=await v.queryFn(e,a,i,e=>t(e,a,i)),r.error)throw new Zn(r.error,r.meta);let{data:u}=r;c&&!Sr(b,`rawResponse`)&&(u=await Cr(c,r.data,`rawResponseSchema`,r.meta));let d=await n(u,r.meta,e);return l&&!Sr(b,`response`)&&(d=await Cr(l,d,`responseSchema`,r.meta)),{...r,data:d}}if(x&&`infiniteQueryOptions`in v){let{infiniteQueryOptions:t}=v,{maxPages:n=1/0}=t,r=e.refetchCachedPages??t.refetchCachedPages??!0,i,a={pages:[],pageParams:[]},u=o.selectQueryEntry(m(),e.queryCacheKey)?.data,d=_(e,m())&&!e.direction||!u?a:u;if(`direction`in e&&e.direction&&d.pages.length){let r=e.direction===`backward`;i=await l(d,(r?Or:Dr)(t,d,e.originalArgs),n,r)}else{let{initialPageParam:a=t.initialPageParam}=e,o=u?.pageParams??[],c=o[0]??a,f=o.length;if(i=await l(d,c,n),s&&(i={data:i.data.pages[0]}),r)for(let r=1;r<f;r++){let r=Dr(t,i.data,e.originalArgs);i=await l(i.data,r,n)}}c=i}else c=await S(e.originalArgs);return y&&!Sr(b,`meta`)&&c.meta&&(c.meta=await Cr(y,c.meta,`metaSchema`,c.meta)),u(c.data,Tr({fulfilledTimeStamp:Date.now(),baseQueryMeta:c.meta}))}catch(t){let n=t;if(n instanceof Zn){let t=h(v,`transformErrorResponse`),{rawErrorResponseSchema:r,errorResponseSchema:i}=v,{value:o,meta:s}=n;try{r&&!Sr(b,`rawErrorResponse`)&&(o=await Cr(r,o,`rawErrorResponseSchema`,s)),y&&!Sr(b,`meta`)&&(s=await Cr(y,s,`metaSchema`,s));let n=await t(o,s,e.originalArgs);return i&&!Sr(b,`errorResponse`)&&(n=await Cr(i,n,`errorResponseSchema`,s)),a(n,Tr({baseQueryMeta:s}))}catch(e){n=e}}try{if(n instanceof xr){let t={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:x?e.queryCacheKey:void 0};v.onSchemaFailure?.(n,t),s?.(n,t);let{catchSchemaFailure:r=c}=v;if(r)return a(r(n,t),Tr({baseQueryMeta:n._bqMeta}))}}catch(e){n=e}throw console.error(n),n}};function _(e,t){let n=o.selectQueryEntry(t,e.queryCacheKey),r=o.selectConfig(t).refetchOnMountOrArgChange,i=n?.fulfilledTimeStamp,a=e.forceRefetch??(e.subscribe&&r);return a?a===!0||(Number(new Date)-Number(i))/1e3>=a:!1}let v=()=>nn(`${e}/executeQuery`,g,{getPendingMeta({arg:e}){let t=n[e.endpointName];return Tr({startedTimeStamp:Date.now(),...dr(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let r=t(),i=o.selectQueryEntry(r,e.queryCacheKey),a=i?.fulfilledTimeStamp,s=e.originalArgs,c=i?.originalArgs,l=n[e.endpointName],u=e.direction;return yr(e)?!0:i?.status===`pending`?!1:_(e,r)||lr(l)&&l?.forceRefetch?.({currentArg:s,previousArg:c,endpointState:i,state:r})?!0:!(a&&!u)},dispatchConditionRejection:!0}),y=v(),b=v(),x=nn(`${e}/executeMutation`,g,{getPendingMeta(){return Tr({startedTimeStamp:Date.now()})}}),S=e=>`force`in e,C=e=>`ifOlderThan`in e,w=(e,t,n={})=>(r,a)=>{let o=S(n)&&n.force,s=C(n)&&n.ifOlderThan,c=(n=!0)=>{let r={forceRefetch:n,subscribe:!1};return i.endpoints[e].initiate(t,r)},l=i.endpoints[e].select(t)(a());if(o)r(c());else if(s){let e=l?.fulfilledTimeStamp;if(!e){r(c());return}(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))};function T(e){return t=>t?.meta?.arg?.endpointName===e}function E(e,t){return{matchPending:Vt(Wt(e),T(t)),matchFulfilled:Vt(qt(e),T(t)),matchRejected:Vt(Gt(e),T(t))}}return{queryThunk:y,mutationThunk:x,infiniteQueryThunk:b,prefetch:w,updateQueryData:p,upsertQueryData:m,patchQueryData:u,buildMatchThunkActions:E}}function Dr(e,{pages:t,pageParams:n},r){let i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function Or(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function kr(e,t,n,r){return pr(n[e.meta.arg.endpointName][t],qt(e)?e.payload:void 0,Kt(e)?e.payload:void 0,e.meta.arg.originalArgs,`baseQueryMeta`in e.meta?e.meta.baseQueryMeta:void 0,r)}function Ar(e){return E(e)?Qe(e):e}function jr(e,t,n){let r=e[t];r&&n(r)}function Mr(e){return(`arg`in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Nr(e,t,n){let r=e[Mr(t)];r&&n(r)}var Pr={};function Fr({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:s},assertTagType:c,config:l}){let d=F(`${e}/resetApiState`);function f(e,t,n,r){e[t.queryCacheKey]??={status:R,endpointName:t.endpointName},jr(e,t.queryCacheKey,e=>{e.status=En,e.requestId=n&&e.requestId?e.requestId:r.requestId,t.originalArgs!==void 0&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp;let a=i[r.arg.endpointName];dr(a)&&`direction`in t&&(e.direction=t.direction)})}function p(e,t,n,r){jr(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;let{merge:a}=i[t.arg.endpointName];if(e.status=Dn,a)if(e.data!==void 0){let{fulfilledTimeStamp:r,arg:i,baseQueryMeta:o,requestId:s}=t;e.data=nt(e.data,e=>a(e,n,{arg:i.originalArgs,baseQueryMeta:o,fulfilledTimeStamp:r,requestId:s}))}else e.data=n;else e.data=i[t.arg.endpointName].structuralSharing??!0?jn(E(e.data)?A(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let m=un({name:`${e}/queries`,initialState:Pr,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:jt()},cacheEntriesUpserted:{reducer(e,t){for(let n of t.payload){let{queryDescription:r,value:i}=n;f(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),p(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:n,value:a}=e,o=i[t];return{queryDescription:{type:or,endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:o,endpointName:t})},value:a}}),meta:{[At]:!0,requestId:Xt(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){jr(e,t,e=>{e.data=it(e.data,n.concat())})},prepare:jt()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{f(e,n,yr(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{p(e,t,n,yr(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:a})=>{jr(e,n.queryCacheKey,e=>{if(!t){if(e.requestId!==r)return;e.status=On,e.error=a??i}})}).addMatcher(s,(e,t)=>{let{queries:n}=o(t);for(let[t,r]of Object.entries(n))(r?.status===Dn||r?.status===On)&&(e[t]=r)})}}),h=un({name:`${e}/mutations`,initialState:Pr,reducers:{removeMutationResult:{reducer(e,{payload:t}){let n=Mr(t);n in e&&delete e[n]},prepare:jt()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[Mr(t)]={requestId:n,status:En,endpointName:r.endpointName,startedTimeStamp:i})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&Nr(e,n,e=>{e.requestId===n.requestId&&(e.status=Dn,e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&Nr(e,r,e=>{e.requestId===r.requestId&&(e.status=On,e.error=t??n)})}).addMatcher(s,(e,t)=>{let{mutations:n}=o(t);for(let[t,r]of Object.entries(n))(r?.status===Dn||r?.status===On)&&t!==r?.requestId&&(e[t]=r)})}}),g=un({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(let{queryCacheKey:n,providedTags:r}of t.payload){_(e,n);for(let{type:t,id:i}of r){let r=(e.tags[t]??={})[i||`__internal_without_id`]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:jt()}},extraReducers(e){e.addCase(m.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{_(e,t)}).addMatcher(s,(e,t)=>{let{provided:n}=o(t);for(let[t,r]of Object.entries(n.tags??{}))for(let[i,a]of Object.entries(r)){let r=(e.tags[t]??={})[i||`__internal_without_id`]??=[];for(let t of a)r.includes(t)||r.push(t),e.keys[t]=n.keys[t]}}).addMatcher(I(qt(t),Kt(t)),(e,t)=>{v(e,[t])}).addMatcher(m.actions.cacheEntriesUpserted.match,(e,t)=>{v(e,t.payload.map(({queryDescription:e,value:t})=>({type:`UNKNOWN`,payload:t,meta:{requestStatus:`fulfilled`,requestId:`UNKNOWN`,arg:e}})))})}});function _(e,t){let n=Ar(e.keys[t]??[]);for(let r of n){let n=r.type,i=r.id??`__internal_without_id`,a=e.tags[n]?.[i];a&&(e.tags[n][i]=Ar(a).filter(e=>e!==t))}delete e.keys[t]}function v(e,t){let n=t.map(e=>{let t=kr(e,`providesTags`,i,c),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});g.caseReducers.updateProvidedBy(e,g.actions.updateProvidedBy(n))}let y=un({name:`${e}/subscriptions`,initialState:Pr,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),b=un({name:`${e}/internalSubscriptions`,initialState:Pr,reducers:{subscriptionsUpdated:{reducer(e,t){return it(e,t.payload)},prepare:jt()}}}),x=un({name:`${e}/config`,initialState:{online:Ln(),focused:Pn(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered=e.middlewareRegistered===`conflict`||a!==t?`conflict`:!0}},extraReducers:e=>{e.addCase(ir,e=>{e.online=!0}).addCase(ar,e=>{e.online=!1}).addCase(nr,e=>{e.focused=!0}).addCase(rr,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),S=u({queries:m.reducer,mutations:h.reducer,provided:g.reducer,subscriptions:b.reducer,config:x.reducer});return{reducer:(e,t)=>S(d.match(t)?void 0:e,t),actions:{...x.actions,...m.actions,...y.actions,...b.actions,...h.actions,...g.actions,resetApiState:d}}}var z=Symbol.for(`RTKQ/skipToken`),Ir={status:R},Lr=nt(Ir,()=>{}),Rr=nt(Ir,()=>{});function zr({serializeQueryArgs:e,reducerPath:t,createSelector:n}){let r=e=>Lr,i=e=>Rr;return{buildQuerySelector:f,buildInfiniteQuerySelector:p,buildMutationSelector:m,selectInvalidatedBy:h,selectCachedArgsForQuery:g,selectApiState:o,selectQueries:s,selectMutations:l,selectQueryEntry:c,selectConfig:u};function a(e){return{...e,...kn(e.status)}}function o(e){return e[t]}function s(e){return o(e)?.queries}function c(e,t){return s(e)?.[t]}function l(e){return o(e)?.mutations}function u(e){return o(e)?.config}function d(t,i,a){return o=>{if(o===z)return n(r,a);let s=e({queryArgs:o,endpointDefinition:i,endpointName:t});return n(e=>c(e,s)??Lr,a)}}function f(e,t){return d(e,t,a)}function p(e,t){let{infiniteQueryOptions:n}=t;function r(e){let t={...e,...kn(e.status)},{isLoading:r,isError:i,direction:a}=t,o=a===`forward`,s=a===`backward`;return{...t,hasNextPage:_(n,t.data,t.originalArgs),hasPreviousPage:v(n,t.data,t.originalArgs),isFetchingNextPage:r&&o,isFetchingPreviousPage:r&&s,isFetchNextPageError:i&&o,isFetchPreviousPageError:i&&s}}return d(e,t,r)}function m(){return(e=>{let t;return t=typeof e==`object`?Mr(e)??z:e,n(t===z?i:e=>o(e)?.mutations?.[t]??Rr,a)})}function h(e,n){let r=e[t],i=new Set,a=Mn(n,Fn,hr);for(let e of a){let t=r.provided.tags[e.type];if(!t)continue;let n=(e.id===void 0?Object.values(t).flat():t[e.id])??[];for(let e of n)i.add(e)}return Array.from(i.values()).flatMap(e=>{let t=r.queries[e];return t?{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}:[]})}function g(e,t){return Mn(Object.values(s(e)),e=>e?.endpointName===t&&e.status!==R,e=>e.originalArgs)}function _(e,t,n){return t?Dr(e,t,n)!=null:!1}function v(e,t,n){return!t||!e.getPreviousPageParam?!1:Or(e,t,n)!=null}}var Br=WeakMap?new WeakMap:void 0,Vr=({endpointName:e,queryArgs:t})=>{let n=``,r=Br?.get(t);if(typeof r==`string`)n=r;else{let e=JSON.stringify(t,(e,t)=>(t=typeof t==`bigint`?{$bigint:t.toString()}:t,t=s(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t,t));s(t)&&Br?.set(t,e),n=e}return`${e}(${n})`};function Hr(...e){return function(t){let n=gt(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??`api`}
vendor: 4,885 bytes, line 1
1)),r={reducerPath:`api`,keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:`delayed`,...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Vr;if(`serializeQueryArgs`in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;n=e=>{let n=t(e);return typeof n==`string`?n:Vr({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:Xt(),extractRehydrationInfo:n,hasRehydrationInfo:gt(e=>n(e)!=null)},a={injectEndpoints:s,enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(let[e,n]of Object.entries(t))typeof n==`function`?n(_r(i,e)):Object.assign(_r(i,e)||{},n);return a}},o=e.map(e=>e.init(a,r,i));function s(e){let t=e.endpoints({query:e=>({...e,type:or}),mutation:e=>({...e,type:sr}),infiniteQuery:e=>({...e,type:cr})});for(let[n,r]of Object.entries(t)){if(e.overrideExisting!==!0&&n in i.endpointDefinitions){if(e.overrideExisting===`throw`)throw Error(L(39));continue}i.endpointDefinitions[n]=r;for(let e of o)e.injectEndpoint(n,r)}return a}return a.injectEndpoints({endpoints:t.endpoints})}}function B(e,...t){return Object.assign(e,...t)}var Ur=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{let i=`${e.reducerPath}/subscriptions`,a=null,o=null,{updateSubscriptionOptions:s,unsubscribeQueryResult:c}=e.internalActions,l=(n,r)=>{if(s.match(r)){let{queryCacheKey:e,requestId:t,options:i}=r.payload,a=n.get(e);return a?.has(t)&&a.set(t,i),!0}if(c.match(r)){let{queryCacheKey:e,requestId:t}=r.payload,i=n.get(e);return i&&i.delete(t),!0}if(e.internalActions.removeQueryResult.match(r))return n.delete(r.payload.queryCacheKey),!0;if(t.pending.match(r)){let{meta:{arg:e,requestId:t}}=r,i=Vn(n,e.queryCacheKey,Hn);return e.subscribe&&i.set(t,e.subscriptionOptions??i.get(t)??{}),!0}let i=!1;if(t.rejected.match(r)){let{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){let e=Vn(n,t.queryCacheKey,Hn);e.set(a,t.subscriptionOptions??e.get(a)??{}),i=!0}}return i},u=()=>n.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:e=>u().get(e)?.size??0,isRequestSubscribed:(e,t)=>!!u()?.get(e)?.get(t)};function f(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(r,s)=>{if(a||=f(n.currentSubscriptions),e.util.resetApiState.match(r))return a={},n.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(r))return[!1,d];let c=l(n.currentSubscriptions,r),u=!0;if(c){o||=setTimeout(()=>{let t=f(n.currentSubscriptions),[,r]=rt(a,()=>t);s.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null},500);let c=typeof r.type==`string`&&!!r.type.startsWith(i),l=t.rejected.match(r)&&r.meta.condition&&!!r.meta.arg.subscribe;u=!c&&!l}return[u,!1]}},Wr=2147483647/1e3-1,Gr=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:a,selectConfig:o},getRunningQueryThunk:s,mwApi:c})=>{let{removeQueryResult:l,unsubscribeQueryResult:u,cacheEntriesUpserted:d}=t.internalActions,f=I(u.match,n.fulfilled,n.rejected,d.match);function p(e){let t=i.currentSubscriptions.get(e);return t?t.size>0:!1}let m={};function h(e){for(let t of e.values())t?.abort?.()}let g=(e,n)=>{let a=o(n.getState());if(f(e)){let t;if(d.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:n}=u.match(e)?e.payload:e.meta.arg;t=[n]}_(t,n,a)}if(t.util.resetApiState.match(e)){for(let[e,t]of Object.entries(m))t&&clearTimeout(t),delete m[e];h(i.runningQueries),h(i.runningMutations)}if(r.hasRehydrationInfo(e)){let{queries:t}=r.extractRehydrationInfo(e);_(Object.keys(t),n,a)}};function _(e,t,n){let r=t.getState();for(let i of e){let e=a(r,i);e?.endpointName&&v(i,e.endpointName,t,n)}}function v(e,t,n,i){let o=_r(r,t)?.keepUnusedDataFor??i.keepUnusedDataFor;if(o===1/0)return;let c=Math.max(0,Math.min(o,Wr));if(!p(e)){let t=m[e];t&&clearTimeout(t),m[e]=setTimeout(()=>{if(!p(e)){let t=a(n.getState(),e);t?.endpointName&&n.dispatch(s(t.endpointName,t.originalArgs))?.abort(),n.dispatch(l({queryCacheKey:e}))}delete m[e]},c*1e3)}}return g},Kr=Error(`Promise never resolved before cacheEntryRemoved.`),qr=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a,selectors:{selectQueryEntry:o,selectApiState:s}})=>{let c=Jt(r),l=Jt(i),u=qt(r,i),d={},{removeQueryResult:f,removeMutationResult:p,cacheEntriesUpserted:m}=e.internalActions;function h(e,t,n){let r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function g(e){let t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function _(e){let{arg:t,requestId:n}=e.meta,{endpointName:r,originalArgs:i}=t;return[r,i,n]}let v=(n,a,s)=>{let c=y(n);function l(e,t,n,r){let i=o(s,t),c=o(a.getState(),t);
vendor: 4,518 bytes, line 1
1!i&&c&&b(e,r,t,a,n)}if(r.pending.match(n)){let[e,t,r]=_(n);l(e,c,r,t)}else if(m.match(n))for(let{queryDescription:e,value:t}of n.payload){let{endpointName:r,originalArgs:i,queryCacheKey:a}=e;l(r,a,n.meta.requestId,i),h(a,t,{})}else if(i.pending.match(n)){if(a.getState()[t].mutations[c]){let[e,t,r]=_(n);b(e,t,c,a,r)}}else if(u(n))h(c,n.payload,n.meta.baseQueryMeta);else if(f.match(n)||p.match(n))g(c);else if(e.util.resetApiState.match(n))for(let e of Object.keys(d))g(e)};function y(e){return c(e)?e.meta.arg.queryCacheKey:l(e)?e.meta.arg.fixedCacheKey??e.meta.requestId:f.match(e)?e.payload.queryCacheKey:p.match(e)?Mr(e.payload):``}function b(t,r,i,a,o){let s=_r(n,t),c=s?.onCacheEntryAdded;if(!c)return;let l={},u=new Promise(e=>{l.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{l.valueResolved=e}),u.then(()=>{throw Kr})]);f.catch(()=>{}),d[i]=l;let p=e.endpoints[t].select(fr(s)?r:i),m=a.dispatch((e,t,n)=>n),h=c(r,{...a,getCacheEntry:()=>p(a.getState()),requestId:o,extra:m,updateCachedData:fr(s)?n=>a.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:u});Promise.resolve(h).catch(e=>{if(e!==Kr)throw e})}return v},Jr=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Yr=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:c})=>{let{removeQueryResult:l}=a.internalActions,u=I(qt(r),Kt(r)),d=I(qt(i,r),Gt(i,r)),f=[],p=0,m=(e,t)=>{(i.pending.match(e)||r.pending.match(e))&&p++,d(e)&&(p=Math.max(0,p-1)),u(e)?g(kr(e,`invalidatesTags`,n,o),t):d(e)?g([],t):a.util.invalidateTags.match(e)&&g(pr(e.payload,void 0,void 0,void 0,void 0,o),t)};function h(){return p>0}function g(n,r){let i=r.getState(),o=i[e];if(f.push(...n),o.config.invalidationBehavior===`delayed`&&h())return;let u=f;if(f=[],u.length===0)return;let d=a.util.selectInvalidatedBy(i,u);t.batch(()=>{let e=Array.from(d.values());for(let{queryCacheKey:t}of e){let e=o.queries[t],n=Vn(c.currentSubscriptions,t,Hn);e&&(n.size===0?r.dispatch(l({queryCacheKey:t})):e.status!==R&&r.dispatch(s(e)))}})}return m},Xr=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{let{currentPolls:a,currentSubscriptions:o}=i,s=new Set,c=null,l=(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload.queryCacheKey,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg.queryCacheKey,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&d(e.meta.arg,r),n.util.resetApiState.match(e)&&(m(),c&&=(clearTimeout(c),null),s.clear())};function u(e,t){s.add(e),c||=setTimeout(()=>{for(let e of s)f({queryCacheKey:e},t);s.clear(),c=null},0)}function d({queryCacheKey:t},n){let i=n.getState()[e],s=i.queries[t],c=o.get(t);if(!s||s.status===R)return;let{lowestPollingInterval:l,skipPollingIfUnfocused:u}=h(c);if(!Number.isFinite(l))return;let f=a.get(t);f?.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);let p=Date.now()+l;a.set(t,{nextPollTimestamp:p,pollingInterval:l,timeout:setTimeout(()=>{(i.config.focused||!u)&&n.dispatch(r(s)),d({queryCacheKey:t},n)},l)})}function f({queryCacheKey:t},n){let r=n.getState()[e].queries[t],i=o.get(t);if(!r||r.status===R)return;let{lowestPollingInterval:s}=h(i);if(!Number.isFinite(s)){p(t);return}let c=a.get(t),l=Date.now()+s;(!c||l<c.nextPollTimestamp)&&d({queryCacheKey:t},n)}function p(e){let t=a.get(e);t?.timeout&&clearTimeout(t.timeout),a.delete(e)}function m(){for(let e of a.keys())p(e)}function h(e=new Map){let t=!1,n=1/0;for(let r of e.values())r.pollingInterval&&(n=Math.min(r.pollingInterval,n),t=r.skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return l},Zr=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{let i=Wt(n,r),a=Gt(n,r),o=qt(n,r),s={};return(n,r)=>{if(i(n)){let{requestId:i,arg:{endpointName:a,originalArgs:o}}=n.meta,c=_r(t,a),l=c?.onQueryStarted;if(l){let t={},n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),s[i]=t;let u=e.endpoints[a].select(fr(c)?o:i),d=r.dispatch((e,t,n)=>n);l(o,{...r,getCacheEntry:()=>u(r.getState()),requestId:i,extra:d,updateCachedData:fr(c)?t=>r.dispatch(e.util.updateQueryData(a,o,t)):void 0,queryFulfilled:n})}}else if(o(n)){let{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(a(n)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;
1s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},Qr=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{let{removeQueryResult:a}=n.internalActions,o=(e,t)=>{nr.match(e)&&s(t,`refetchOnFocus`),ir.match(e)&&s(t,`refetchOnReconnect`)};function s(n,o){let s=n.getState()[e],c=s.queries,l=i.currentSubscriptions;t.batch(()=>{for(let e of l.keys()){let t=c[e],i=l.get(e);if(!i||!t)continue;let u=[...i.values()];(u.some(e=>e[o]===!0)||u.every(e=>e[o]===void 0)&&s.config[o])&&(i.size===0?n.dispatch(a({queryCacheKey:e})):t.status!==R&&n.dispatch(r(t)))}})}return o};function $r(e){let{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:a}=e,{apiUid:o}=i,s={invalidateTags:F(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),l=[Jr,Gr,Yr,Xr,qr,Zr];return{middleware:n=>{let s=!1,d=a(n.dispatch),f={...e,internalState:d,refetchQuery:u,isThisApiSliceAction:c,mwApi:n},m=l.map(e=>e(f)),h=Ur(f),g=Qr(f);return e=>a=>{if(!p(a))return e(a);s||(s=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));let l={...n,next:e},u=n.getState(),[d,f]=h(a,l,u),_;if(_=d?e(a):f,n.getState()[t]&&(g(a,l,u),c(a)||i.hasRehydrationInfo(a)))for(let e of m)e(a,l,u);return _}},actions:s};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var ei=Symbol(),ti=({createSelector:e=vt}={})=>({name:ei,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p},m){et();let h=e=>e;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:ir,onOffline:ar,onFocus:nr,onFocusLost:rr},util:{}});let g=zr({serializeQueryArgs:a,reducerPath:i,createSelector:e}),{selectInvalidatedBy:_,selectCachedArgsForQuery:v,buildQuerySelector:y,buildInfiniteQuerySelector:b,buildMutationSelector:x}=g;B(t.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:v});let{queryThunk:S,infiniteQueryThunk:C,mutationThunk:w,patchQueryData:T,updateQueryData:E,upsertQueryData:D,prefetch:O,buildMatchThunkActions:k}=Er({baseQuery:n,reducerPath:i,context:m,api:t,serializeQueryArgs:a,assertTagType:h,selectors:g,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p}),{reducer:ee,actions:A}=Fr({context:m,queryThunk:S,infiniteQueryThunk:C,mutationThunk:w,serializeQueryArgs:a,reducerPath:i,assertTagType:h,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:u}});B(t.util,{patchQueryData:T,updateQueryData:E,upsertQueryData:D,prefetch:O,resetApiState:A.resetApiState,upsertQueryEntries:A.cacheEntriesUpserted}),B(t.internalActions,A);let j=new WeakMap,M=e=>Vn(j,e,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:te,buildInitiateInfiniteQuery:N,buildInitiateMutation:ne,getRunningMutationThunk:re,getRunningMutationsThunk:ie,getRunningQueriesThunk:ae,getRunningQueryThunk:oe}=br({queryThunk:S,mutationThunk:w,infiniteQueryThunk:C,api:t,serializeQueryArgs:a,context:m,getInternalState:M});B(t.util,{getRunningMutationThunk:re,getRunningMutationsThunk:ie,getRunningQueryThunk:oe,getRunningQueriesThunk:ae});let{middleware:se,actions:ce}=$r({reducerPath:i,context:m,queryThunk:S,mutationThunk:w,infiniteQueryThunk:C,api:t,assertTagType:h,selectors:g,getRunningQueryThunk:oe,getInternalState:M});return B(t.util,ce),B(t,{reducer:ee,middleware:se}),{name:ei,injectEndpoint(e,n){let r=t,i=r.endpoints[e]??={};lr(n)&&B(i,{name:e,select:y(e,n),initiate:te(e,n)},k(S,e)),ur(n)&&B(i,{name:e,select:x(),initiate:ne(e)},k(w,e)),dr(n)&&B(i,{name:e,select:b(e,n),initiate:N(e,n)},k(S,e))}}}});ti();var ni=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ri=t(((e,t)=>{t.exports=ni()})),V=e(n(),1),ii=ri();function ai(e){e()}function oi(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ai(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var si={notify(){},get:()=>[]};function ci(e,t){let n,r=si,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=oi())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=si)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var li=(()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0)(),ui=(()=>typeof navigator<`u`&&navigator.product===`ReactNative`)(),di=(()=>li||ui?V.useLayoutEffect:V.useEffect)();function fi(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function pi(e,t){if(fi(e,t))return!0;
1if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!fi(e[n[r]],t[n[r]]))return!1;return!0}Object.prototype;var mi=Symbol.for(`react-redux-context`),hi=typeof globalThis<`u`?globalThis:{};function gi(){if(!V.createContext)return{};let e=hi[mi]??=new Map,t=e.get(V.createContext);return t||(t=V.createContext(null),e.set(V.createContext,t)),t}var _i=gi();function vi(e){let{children:t,context:n,serverState:r,store:i}=e,a=V.useMemo(()=>({store:i,subscription:ci(i),getServerState:r?()=>r:void 0}),[i,r]),o=V.useMemo(()=>i.getState(),[i]);di(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||_i;return V.createElement(s.Provider,{value:a},t)}var yi=vi;function bi(e=_i){return function(){return V.useContext(e)}}var xi=bi();function Si(e=_i){let t=e===_i?xi:bi(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Ci=Si();function wi(e=_i){let t=e===_i?Ci:Si(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ti=wi(),Ei=(e,t)=>e===t;function Di(e=_i){let t=e===_i?xi:bi(e),n=(e,n={})=>{let{equalityFn:r=Ei}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();V.useRef(!0);let s=V.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,ii.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return V.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var Oi=Di(),ki=ai;function Ai(e){return e.replace(e[0],e[0].toUpperCase())}var ji=`query`,Mi=`mutation`,Ni=`infinitequery`;function Pi(e){return e.type===ji}function Fi(e){return e.type===Mi}function Ii(e){return e.type===Ni}function Li(e,...t){return Object.assign(e,...t)}var Ri=Symbol();function zi(e){let t=(0,V.useRef)(e),n=(0,V.useMemo)(()=>jn(t.current,e),[e]);return(0,V.useEffect)(()=>{t.current!==n&&(t.current=n)},[n]),n}function Bi(e){let t=(0,V.useRef)(e);return(0,V.useEffect)(()=>{pi(t.current,e)||(t.current=e)},[e]),pi(t.current,e)?t.current:e}var Vi=(()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0)(),Hi=(()=>typeof navigator<`u`&&navigator.product===`ReactNative`)(),Ui=(()=>Vi||Hi?V.useLayoutEffect:V.useEffect)(),Wi=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Tn.pending}:e;function Gi(e,...t){let n={};return t.forEach(t=>{n[t]=e[t]}),n}var Ki=[`data`,`status`,`isLoading`,`isSuccess`,`isError`,`error`];function qi({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:c}){let l=a?e=>e():V.useEffect,u=e=>e.current?.unsubscribe?.(),d=c.endpointDefinitions;return{buildQueryHooks:y,buildInfiniteQueryHooks:b,buildMutationHook:x,usePrefetch:m};function f(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==z&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;r===void 0&&(r=e.data);let i=r!==void 0,a=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!i&&a,c=e.isSuccess||i&&(a&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:a,isLoading:o,isSuccess:c}}function p(e,t,n){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,r=d[e];n!==z&&s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;r===void 0&&(r=e.data);let i=r!==void 0,a=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!i&&a,c=e.isSuccess||i&&(a&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:a,isLoading:o,isSuccess:c}}function m(t,r){let i=n(),a=Bi(r);return(0,V.useCallback)((n,r)=>i(e.util.prefetch(t,n,{...a,...r})),[t,i,a])}function h(t,r,{refetchOnReconnect:i,refetchOnFocus:a,refetchOnMountOrArgChange:o,skip:s=!1,pollingInterval:c=0,skipPollingIfUnfocused:u=!1,...f}={}){let{initiate:p}=e.endpoints[t],m=n(),h=(0,V.useRef)(void 0);h.current||=m(e.internalActions.internal_getRTKQSubscriptions());let g=zi(s?z:r),_=Bi({refetchOnReconnect:i,refetchOnFocus:a,pollingInterval:c,skipPollingIfUnfocused:u}),v=f.initialPageParam,y=Bi(v),b=f.refetchCachedPages,x=Bi(b),S=(0,V.useRef)(void 0),{queryCacheKey:C,requestId:w}=S.current||{},T=!1;C&&w&&(T=h.current.isRequestSubscribed(C,w));let E=!T&&S.current!==void 0;return l(()=>{E&&(S.current=void 0)},[E]),l(()=>{let e=S.current;if(g===z){e?.unsubscribe(),S.current=void 0;return}let n=S.current?.subscriptionOptions;!e||e.arg!==g?(e?.unsubscribe(),S.current=m(p(g,{subscriptionOptions:_,forceRefetch:o,...Ii(d[t])?{initialPageParam:y,refetchCachedPages:x}:{}}))):_!==n&&e.updateSubscriptionOptions(_)},[m,p,o,g,_,E,y,x,t]),[S,m,p,_]}function g(t,n){return(a,{skip:s=!1,selectFromResult:c}={})=>{let{select:l}=e.endpoints[t],u=zi(s?z:a),d=(0,V.useRef)(void 0),f=(0,V.useMemo)(()=>
1o([l(u),(e,t)=>t,e=>u],n,{memoizeOptions:{resultEqualityCheck:pi}}),[l,u]),p=(0,V.useMemo)(()=>c?o([f],c,{devModeChecks:{identityFunctionCheck:`never`}}):f,[f,c]),m=r(e=>p(e,d.current),pi),h=f(i().getState(),d.current);return Ui(()=>{d.current=h},[h]),m}}function _(e){(0,V.useEffect)(()=>()=>{u(e),e.current=void 0},[e])}function v(e){if(!e.current)throw Error(L(38));return e.current.refetch()}function y(r){let i=(e,t={})=>{let[n]=h(r,e,t);return _(n),(0,V.useMemo)(()=>({refetch:()=>v(n)}),[n])},a=({refetchOnReconnect:i,refetchOnFocus:a,pollingInterval:o=0,skipPollingIfUnfocused:s=!1}={})=>{let{initiate:c}=e.endpoints[r],d=n(),[f,p]=(0,V.useState)(Ri),m=(0,V.useRef)(void 0),h=Bi({refetchOnReconnect:i,refetchOnFocus:a,pollingInterval:o,skipPollingIfUnfocused:s});l(()=>{h!==m.current?.subscriptionOptions&&m.current?.updateSubscriptionOptions(h)},[h]);let g=(0,V.useRef)(h);l(()=>{g.current=h},[h]);let _=(0,V.useCallback)(function(e,n=!1){let r;return t(()=>{u(m),m.current=r=d(c(e,{subscriptionOptions:g.current,forceRefetch:!n})),p(e)}),r},[d,c]),v=(0,V.useCallback)(()=>{m.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:m.current?.queryCacheKey}))},[d]);return(0,V.useEffect)(()=>()=>{u(m)},[]),(0,V.useEffect)(()=>{f!==Ri&&!m.current&&_(f,!0)},[f,_]),(0,V.useMemo)(()=>[_,f,{reset:v}],[_,f,v])},o=g(r,f);return{useQueryState:o,useQuerySubscription:i,useLazyQuerySubscription:a,useLazyQuery(e){let[t,n,{reset:r}]=a(e),i=o(n,{...e,skip:n===Ri}),s=(0,V.useMemo)(()=>({lastArg:n}),[n]);return(0,V.useMemo)(()=>[t,{...i,reset:r},s],[t,i,r,s])},useQuery(e,t){let n=i(e,t),r=o(e,{selectFromResult:e===z||t?.skip?void 0:Wi,...t});return(0,V.useDebugValue)(Gi(r,...Ki)),(0,V.useMemo)(()=>({...r,...n}),[r,n])}}}function b(e){let n=(n,r={})=>{let[i,a,o,s]=h(e,n,r),c=(0,V.useRef)(s);l(()=>{c.current=s},[s]);let d=r.refetchCachedPages,f=Bi(d),p=(0,V.useCallback)(function(e,n){let r;return t(()=>{u(i),i.current=r=a(o(e,{subscriptionOptions:c.current,direction:n}))}),r},[i,a,o]);_(i);let m=zi(r.skip?z:n),g=(0,V.useCallback)(e=>{if(!i.current)throw Error(L(38));let t={refetchCachedPages:e?.refetchCachedPages??f};return i.current.refetch(t)},[i,f]);return(0,V.useMemo)(()=>({trigger:p,refetch:g,fetchNextPage:()=>p(m,`forward`),fetchPreviousPage:()=>p(m,`backward`)}),[g,p,m])},r=g(e,p);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){let{refetch:i,fetchNextPage:a,fetchPreviousPage:o}=n(e,t),s=r(e,{selectFromResult:e===z||t?.skip?void 0:Wi,...t});return(0,V.useDebugValue)(Gi(s,...Ki,`hasNextPage`,`hasPreviousPage`)),(0,V.useMemo)(()=>({...s,fetchNextPage:a,fetchPreviousPage:o,refetch:i}),[s,a,o,i])}}}function x(i){return({selectFromResult:a,fixedCacheKey:s}={})=>{let{select:c,initiate:l}=e.endpoints[i],u=n(),[d,f]=(0,V.useState)();(0,V.useEffect)(()=>()=>{d?.arg.fixedCacheKey||d?.reset()},[d]);let p=(0,V.useCallback)(function(e){let t=u(l(e,{fixedCacheKey:s}));return f(t),t},[u,l,s]),{requestId:m}=d||{},h=(0,V.useMemo)(()=>c({fixedCacheKey:s,requestId:d?.requestId}),[s,d,c]),g=r((0,V.useMemo)(()=>a?o([h],a):h,[a,h]),pi),_=s==null?d?.arg.originalArgs:void 0,v=(0,V.useCallback)(()=>{t(()=>{d&&f(void 0),s&&u(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))})},[u,s,d,m]);(0,V.useDebugValue)(Gi(g,...Ki,`endpointName`));let y=(0,V.useMemo)(()=>({...g,originalArgs:_,reset:v}),[g,_,v]);return(0,V.useMemo)(()=>[p,y],[p,y])}}}var Ji=Symbol(),Yi=Hr(ti(),(({batch:e=ki,hooks:t={useDispatch:Ti,useSelector:Oi,useStore:Ci},createSelector:n=vt,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:Ji,init(i,{serializeQueryArgs:a},o){let s=i,{buildQueryHooks:c,buildInfiniteQueryHooks:l,buildMutationHook:u,usePrefetch:d}=qi({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:a,context:o});return Li(s,{usePrefetch:d}),Li(o,{batch:e}),{injectEndpoint(e,t){if(Pi(t)){let{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:a,useQuerySubscription:o}=c(e);Li(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:a,useQuerySubscription:o}),i[`use${Ai(e)}Query`]=t,i[`useLazy${Ai(e)}Query`]=n}if(Fi(t)){let t=u(e);Li(s.endpoints[e],{useMutation:t}),i[`use${Ai(e)}Mutation`]=t}else if(Ii(t)){let{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=l(e);Li(s.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),i[`use${Ai(e)}InfiniteQuery`]=t}}}}}))());function Xi(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Zi(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Qi=e=>Array.isArray(e)?e:[e];function $i(e){let t=Array.isArray(e[0])?e[0]:e;return Zi(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function ea(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var ta=class{constructor(e){this.value=e}deref(){return this.value}},na=(()=>typeof WeakRef>`u`?ta:WeakRef)(),ra=0,ia=1;function aa(){return{s:ra,v:void 0,o:null,p:null}}function oa(e){return e instanceof na?e.deref():e}function sa(e,t={}){let n=aa(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=aa(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=aa(),e.set(n,t)):t=r}}let s=t,c;if(t.s===ia)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=oa(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new na(c):c}return s.s=ia,s.v=c,c}return o.clearCache=()=>{n=aa(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ca(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Xi(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=sa,argsMemoizeOptions:u=[]}={...n,...a},d=Qi(c),f=Qi(u),p=$i(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=ea(p,arguments);return i=m.apply(null,e),i},...f);
vendor: 4,959 bytes, line 1
1return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var la=ca(sa),ua=Symbol.for(`immer-nothing`),da=Symbol.for(`immer-draftable`),H=Symbol.for(`immer-state`);function U(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var W=Object,fa=W.getPrototypeOf,pa=`constructor`,ma=`prototype`,ha=`configurable`,ga=`enumerable`,_a=`writable`,va=`value`,G=e=>!!e&&!!e[H];function K(e){return e?xa(e)||Oa(e)||!!e[da]||!!e[pa]?.[da]||ka(e)||Aa(e):!1}var ya=W[ma][pa].toString(),ba=new WeakMap;function xa(e){if(!e||!ja(e))return!1;let t=fa(e);if(t===null||t===W[ma])return!0;let n=W.hasOwnProperty.call(t,pa)&&t[pa];if(n===Object)return!0;if(!Ma(n))return!1;let r=ba.get(n);return r===void 0&&(r=Function.toString.call(n),ba.set(n,r)),r===ya}function Sa(e,t,n=!0){Ca(e)===0?(n?Reflect.ownKeys(e):W.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ca(e){let t=e[H];return t?t.type_:Oa(e)?1:ka(e)?2:Aa(e)?3:0}var wa=(e,t,n=Ca(e))=>n===2?e.has(t):W[ma].hasOwnProperty.call(e,t),Ta=(e,t,n=Ca(e))=>n===2?e.get(t):e[t],Ea=(e,t,n,r=Ca(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Da(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Oa=Array.isArray,ka=e=>e instanceof Map,Aa=e=>e instanceof Set,ja=e=>typeof e==`object`,Ma=e=>typeof e==`function`,Na=e=>typeof e==`boolean`,q=e=>e.copy_||e.base_,Pa=e=>e.modified_?e.copy_:e.base_;function Fa(e,t){if(ka(e))return new Map(e);if(Aa(e))return new Set(e);if(Oa(e))return Array[ma].slice.call(e);let n=xa(e);if(t===!0||t===`class_only`&&!n){let t=W.getOwnPropertyDescriptors(e);delete t[H];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[_a]===!1&&(a[_a]=!0,a[ha]=!0),(a.get||a.set)&&(t[i]={[ha]:!0,[_a]:!0,[ga]:a[ga],[va]:e[i]})}return W.create(fa(e),t)}else{let t=fa(e);if(t!==null&&n)return{...e};let r=W.create(t);return W.assign(r,e)}}function Ia(e,t=!1){return za(e)||G(e)||!K(e)?e:(Ca(e)>1&&W.defineProperties(e,{set:Ra,add:Ra,clear:Ra,delete:Ra}),W.freeze(e),t&&Sa(e,(e,t)=>{Ia(t,!0)},!1),e)}function La(){U(2)}var Ra={[va]:La};function za(e){return e===null||!ja(e)?!0:W.isFrozen(e)}var Ba=`MapSet`,Va=`Patches`,Ha={};function Ua(e){let t=Ha[e];return t||U(0,e),t}var Wa=e=>!!Ha[e],Ga,Ka=()=>Ga,qa=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wa(Ba)?Ua(Ba):void 0});function Ja(e,t){t&&(e.patchPlugin_=Ua(Va),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ya(e){Xa(e),e.drafts_.forEach(Qa),e.drafts_=null}function Xa(e){e===Ga&&(Ga=e.parent_)}var Za=e=>Ga=qa(Ga,e);function Qa(e){let t=e[H];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $a(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[H].modified_&&(Ya(t),U(4)),K(e)&&(e=eo(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[H].base_,e,t)}else e=eo(t,n);return to(t,e,!0),Ya(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ua?void 0:e}function eo(e,t){if(za(t))return t;let n=t[H];if(!n)return lo(t,e.handledSet_,e);if(!ro(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);so(n,e)}return n.copy_}function to(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ia(t,n)}function no(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ro=(e,t)=>e.scope_===t,io=[];function ao(e,t,n,r){let i=q(e),a=e.type_;if(r!==void 0&&Ta(i,r,a)===t){Ea(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Sa(i,(e,n)=>{if(G(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??io;for(let e of o)Ea(i,e,n,a)}function oo(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ro(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Pa(i);ao(e,i.draft_??i,a,n),so(i,r)})}function so(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}no(e)}}function co(e,t,n){let{scope_:r}=e;if(G(n)){let i=n[H];ro(i,r)&&i.callbacks_.push(function(){vo(e),ao(e,n,Pa(i),t)})}else K(n)&&e.callbacks_.push(function(){Ta(q(e),t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&lo(Ta(e.copy_,t,e.type_),r.handledSet_,r)})}function lo(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||G(e)||t.has(e)||!K(e)||za(e)?e:(t.add(e),Sa(e,(r,i)=>{if(G(i)){let t=i[H];ro(t,n)&&(Ea(e,r,Pa(t),e.type_),no(t))}else K(i)&&lo(i,t,n)}),e)}function uo(e,t){let n=Oa(e),r={type_:n?1:0,scope_:t?t.scope_:Ka(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=fo;
vendor: 5,635 bytes, line 1
1n&&(i=[r],a=po);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var fo={get(e,t){if(t===H)return e;let n=q(e);if(!wa(n,t,e.type_))return ho(e,n,t);let r=n[t];if(e.finalized_||!K(r))return r;if(r===mo(e.base_,t)){vo(e);let n=e.type_===1?+t:t,i=bo(e.scope_,r,e,n);return e.copy_[n]=i}return r},has(e,t){return t in q(e)},ownKeys(e){return Reflect.ownKeys(q(e))},set(e,t,n){let r=go(q(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=mo(q(e),t),i=r?.[H];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Da(n,r)&&(n!==void 0||wa(e.base_,t,e.type_)))return!0;vo(e),_o(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),co(e,t,n),!0)},deleteProperty(e,t){return vo(e),mo(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),_o(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=q(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[_a]:!0,[ha]:e.type_!==1||t!==`length`,[ga]:r[ga],[va]:n[t]}},defineProperty(){U(11)},getPrototypeOf(e){return fa(e.base_)},setPrototypeOf(){U(12)}},po={};Sa(fo,(e,t)=>{po[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),po.deleteProperty=function(e,t){return po.set.call(this,e,t,void 0)},po.set=function(e,t,n){return fo.set.call(this,e[0],t,n,e[0])};function mo(e,t){let n=e[H];return(n?q(n):e)[t]}function ho(e,t,n){let r=go(t,n);return r?va in r?r[va]:r.get?.call(e.draft_):void 0}function go(e,t){if(!(t in e))return;let n=fa(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=fa(n)}}function _o(e){e.modified_||(e.modified_=!0,e.parent_&&_o(e.parent_))}function vo(e){e.copy_||=(e.assigned_=new Map,Fa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ma(e)&&!Ma(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ma(t)||U(6),n!==void 0&&!Ma(n)&&U(7);let r;if(K(e)){let i=Za(this),a=bo(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Ya(i):Xa(i)}return Ja(i,n),$a(r,i)}else if(!e||!ja(e)){if(r=t(e),r===void 0&&(r=e),r===ua&&(r=void 0),this.autoFreeze_&&Ia(r,!0),n){let t=[],i=[];Ua(Va).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else U(1,e)},this.produceWithPatches=(e,t)=>{if(Ma(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Na(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Na(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Na(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){K(e)||U(8),G(e)&&(e=xo(e));let t=Za(this),n=bo(t,e,void 0);return n[H].isManual_=!0,Xa(t),n}finishDraft(e,t){let n=e&&e[H];(!n||!n.isManual_)&&U(9);let{scope_:r}=n;return Ja(r,t),$a(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Ua(Va).applyPatches_;return G(e)?r(e,t):this.produce(e,e=>r(e,t))}};function bo(e,t,n,r){let[i,a]=ka(t)?Ua(Ba).proxyMap_(t,n):Aa(t)?Ua(Ba).proxySet_(t,n):uo(t,n);return(n?.scope_??Ka()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?oo(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function xo(e){return G(e)||U(10,e),So(e)}function So(e){if(!K(e)||za(e))return e;let t=e[H],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fa(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fa(e,!0);return Sa(n,(e,t)=>{Ea(n,e,So(t))},r),t&&(t.finalized_=!1),n}var Co=new yo().produce,wo=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?d:d.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function To(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(J(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 n.toString=()=>`${e}`,n.type=e,n.match=t=>p(t)&&t.type===e,n}var Eo=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 t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Do(e){return K(e)?Co(e,()=>{}):e}function Oo(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ko(e){return typeof e==`boolean`}var Ao=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Eo;return t&&(ko(t)?a.push(xt):a.push(St(t.extraArgument))),a},jo=`RTK_autoBatch`,Mo=()=>e=>({payload:e,meta:{[jo]:!0}}),No=e=>t=>{setTimeout(t,e)},Po=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:No(10):e.type===`callback`?e.queueNotification:No(e.timeout),l=()=>
1{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[jo],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Fo=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Eo(e);return n&&r.push(Po(typeof n==`object`?n:void 0)),r};function Io(e){let t=Ao(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{},p;if(typeof n==`function`)p=n;else if(s(n))p=u(n);else throw Error(J(1));let m;m=typeof r==`function`?r(t):t();let h=d;i&&(h=wo({trace:!1,...typeof i==`object`&&i}));let g=Fo(f(...m)),_=typeof l==`function`?l(g):g(),v=h(..._);return c(p,o,v)}function Lo(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(J(28));if(r in t)throw Error(J(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Ro(e){return typeof e==`function`}function zo(e,t){let[n,r,i]=Lo(t),a;if(Ro(e))a=()=>Do(e());else{let t=Do(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(G(e)){let r=n(e,t);return r===void 0?e:r}else if(K(e))return Co(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Bo=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Vo=(e=21)=>{let t=``,n=e;for(;n--;)t+=Bo[Math.random()*64|0];return t},Ho=Symbol.for(`rtk-slice-createasyncthunk`);function Uo(e,t){return`${e}/${t}`}function Wo({creators:e}={}){let t=e?.asyncThunk?.[Ho];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(J(11));let i=(typeof e.reducers==`function`?e.reducers(qo()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(J(12));if(n in o.sliceCaseReducersByType)throw Error(J(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Uo(n,r),createNotation:typeof e.reducers==`function`};Yo(a)?Zo(o,a,s,t):Jo(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Lo(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return zo(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Oo(d,r,m)),i}function i(t=l){return Oo(Oo(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Go(a,t,()=>Oo(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Go(e,t,n,r){function i(i,...a){let o=t(i);
vendor: 4,245 bytes, line 1
1return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Ko=Wo();function qo(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function Jo({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Xo(r))throw Error(J(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?To(e,o):To(e))}function Yo(e){return e._reducerDefinitionType===`asyncThunk`}function Xo(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Zo({type:e,reducerName:t},n,r,i){if(!i)throw Error(J(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Qo,pending:s||Qo,rejected:c||Qo,settled:l||Qo})}function Qo(){}var $o=`task`,es=`listener`,ts=`completed`,ns=`cancelled`,rs=`task-${ns}`,is=`task-${ts}`,as=`${es}-${ns}`,os=`${es}-${ts}`,ss=class{constructor(e){this.code=e,this.message=`${$o} ${ns} (reason: ${e})`}name=`TaskAbortError`;message},cs=(e,t)=>{if(typeof e!=`function`)throw TypeError(J(32))},ls=()=>{},us=(e,t=ls)=>(e.catch(t),e),ds=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),fs=e=>{if(e.aborted)throw new ss(e.reason)};function ps(e,t){let n=ls;return new Promise((r,i)=>{let a=()=>i(new ss(e.reason));if(e.aborted){a();return}n=ds(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=ls})}var ms=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof ss?`cancelled`:`rejected`,error:e}}finally{t?.()}},hs=e=>t=>us(ps(e,t).then(t=>(fs(e),t))),gs=e=>{let t=hs(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:_s}=Object,vs={},ys=`listenerMiddleware`,bs=(e,t)=>{let n=t=>ds(e,()=>t.abort(e.reason));return(r,i)=>{cs(r,`taskExecutor`);let a=new AbortController;n(a);let o=ms(async()=>{fs(e),fs(a.signal);let t=await r({pause:hs(a.signal),delay:gs(a.signal),signal:a.signal});return fs(a.signal),t},()=>a.abort(is));return i?.autoJoin&&t.push(o.catch(ls)),{result:hs(e)(o),cancel(){a.abort(rs)}}}},xs=(e,t)=>{let n=async(n,r)=>{fs(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await ps(t,Promise.race(a));return fs(t),e}finally{i()}};return(e,t)=>us(n(e,t))},Ss=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=To(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(J(21));return cs(a,`options.listener`),{predicate:i,type:t,effect:a}},Cs=_s(e=>{let{type:t,predicate:n,effect:r}=Ss(e);return{id:Vo(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(J(22))}}},{withTypes:()=>Cs}),ws=(e,t)=>{let{type:n,effect:r,predicate:i}=Ss(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ts=e=>{e.pending.forEach(e=>{e.abort(as)})},Es=(e,t)=>()=>{for(let e of t.keys())Ts(e);e.clear()},Ds=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Os=_s(To(`${ys}/add`),{withTypes:()=>Os}),ks=To(`${ys}/removeAll`),As=_s(To(`${ys}/remove`),{withTypes:()=>As}),js=(...e)=>{console.error(`${ys}/error`,...e)},Ms=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=js}=e;cs(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Ts(e)}),c=e=>s(ws(t,e)??Cs(e));_s(c,{withTypes:()=>c});let l=e=>{let n=ws(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ts(n)),!!n};_s(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=xs(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,_s({},s,{getOriginalState:l,condition:(e,t)=>
vendor: 5,264 bytes, line 1
1d(e,t).then(Boolean),take:d,delay:gs(u.signal),pause:hs(u.signal),extra:a,signal:u.signal,fork:bs(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(as),n.delete(e))})},cancel:()=>{u.abort(as),e.pending.delete(u)},throwIfCancelled:()=>{fs(u.signal)}})))}catch(e){e instanceof ss||Ds(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(os),i(e),e.pending.delete(u)}},d=Es(t,n);return{middleware:e=>n=>r=>{if(!p(r))return n(r);if(Os.match(r))return c(r.payload);if(ks.match(r)){d();return}if(As.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===vs)throw Error(J(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Ds(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=vs}return s},startListening:c,stopListening:l,clearListeners:d}};function J(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. `}var Ns=Symbol.for(`immer-nothing`),Ps=Symbol.for(`immer-draftable`),Y=Symbol.for(`immer-state`);function X(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Z=Object,Fs=Z.getPrototypeOf,Is=`constructor`,Ls=`prototype`,Rs=`configurable`,zs=`enumerable`,Bs=`writable`,Vs=`value`,Hs=e=>!!e&&!!e[Y];function Q(e){return e?Gs(e)||Qs(e)||!!e[Ps]||!!e[Is]?.[Ps]||$s(e)||ec(e):!1}var Us=Z[Ls][Is].toString(),Ws=new WeakMap;function Gs(e){if(!e||!tc(e))return!1;let t=Fs(e);if(t===null||t===Z[Ls])return!0;let n=Z.hasOwnProperty.call(t,Is)&&t[Is];if(n===Object)return!0;if(!nc(n))return!1;let r=Ws.get(n);return r===void 0&&(r=Function.toString.call(n),Ws.set(n,r)),r===Us}function Ks(e,t,n=!0){qs(e)===0?(n?Reflect.ownKeys(e):Z.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function qs(e){let t=e[Y];return t?t.type_:Qs(e)?1:$s(e)?2:ec(e)?3:0}var Js=(e,t,n=qs(e))=>n===2?e.has(t):Z[Ls].hasOwnProperty.call(e,t),Ys=(e,t,n=qs(e))=>n===2?e.get(t):e[t],Xs=(e,t,n,r=qs(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Zs(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Qs=Array.isArray,$s=e=>e instanceof Map,ec=e=>e instanceof Set,tc=e=>typeof e==`object`,nc=e=>typeof e==`function`,rc=e=>typeof e==`boolean`;function ic(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var $=e=>e.copy_||e.base_,ac=e=>e.modified_?e.copy_:e.base_;function oc(e,t){if($s(e))return new Map(e);if(ec(e))return new Set(e);if(Qs(e))return Array[Ls].slice.call(e);let n=Gs(e);if(t===!0||t===`class_only`&&!n){let t=Z.getOwnPropertyDescriptors(e);delete t[Y];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Bs]===!1&&(a[Bs]=!0,a[Rs]=!0),(a.get||a.set)&&(t[i]={[Rs]:!0,[Bs]:!0,[zs]:a[zs],[Vs]:e[i]})}return Z.create(Fs(e),t)}else{let t=Fs(e);if(t!==null&&n)return{...e};let r=Z.create(t);return Z.assign(r,e)}}function sc(e,t=!1){return uc(e)||Hs(e)||!Q(e)?e:(qs(e)>1&&Z.defineProperties(e,{set:lc,add:lc,clear:lc,delete:lc}),Z.freeze(e),t&&Ks(e,(e,t)=>{sc(t,!0)},!1),e)}function cc(){X(2)}var lc={[Vs]:cc};function uc(e){return e===null||!tc(e)?!0:Z.isFrozen(e)}var dc=`MapSet`,fc=`Patches`,pc=`ArrayMethods`,mc={};function hc(e){let t=mc[e];return t||X(0,e),t}var gc=e=>!!mc[e],_c,vc=()=>_c,yc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:gc(dc)?hc(dc):void 0,arrayMethodsPlugin_:gc(pc)?hc(pc):void 0});function bc(e,t){t&&(e.patchPlugin_=hc(fc),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xc(e){Sc(e),e.drafts_.forEach(wc),e.drafts_=null}function Sc(e){e===_c&&(_c=e.parent_)}var Cc=e=>_c=yc(_c,e);function wc(e){let t=e[Y];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tc(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Y].modified_&&(xc(t),X(4)),Q(e)&&(e=Ec(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Y].base_,e,t)}else e=Ec(t,n);return Dc(t,e,!0),xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ns?void 0:e}function Ec(e,t){if(uc(t))return t;let n=t[Y];if(!n)return Fc(t,e.handledSet_,e);if(!kc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Nc(n,e)}return n.copy_}function Dc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sc(t,n)}function Oc(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var kc=(e,t)=>e.scope_===t,Ac=[];function jc(e,t,n,r){let i=$(e),a=e.type_;if(r!==void 0&&Ys(i,r,a)===t){Xs(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ks(i,(e,n)=>{if(Hs(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ac;for(let e of o)Xs(i,e,n,a)}function Mc(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!kc(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ac(i);jc(e,i.draft_??i,a,n),Nc(i,r)})}function Nc(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Oc(e)}}
vendor: 4,448 bytes, line 1
1function Pc(e,t,n){let{scope_:r}=e;if(Hs(n)){let i=n[Y];kc(i,r)&&i.callbacks_.push(function(){Wc(e),jc(e,n,ac(i),t)})}else Q(n)&&e.callbacks_.push(function(){let i=$(e);e.type_===3?i.has(n)&&Fc(n,r.handledSet_,r):Ys(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Fc(Ys(e.copy_,t,e.type_),r.handledSet_,r)})}function Fc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Hs(e)||t.has(e)||!Q(e)||uc(e)?e:(t.add(e),Ks(e,(r,i)=>{if(Hs(i)){let t=i[Y];kc(t,n)&&(Xs(e,r,ac(t),e.type_),Oc(t))}else Q(i)&&Fc(i,t,n)}),e)}function Ic(e,t){let n=Qs(e),r={type_:n?1:0,scope_:t?t.scope_:vc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Lc;n&&(i=[r],a=Rc);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Lc={get(e,t){if(t===Y)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=$(e);if(!Js(i,t,e.type_))return Vc(e,i,t);let a=i[t];if(e.finalized_||!Q(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&ic(t))return a;if(a===zc(e.base_,t)||Bc(e,t,a)){Wc(e);let n=e.type_===1?+t:t,r=Kc(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in $(e)},ownKeys(e){return Reflect.ownKeys($(e))},set(e,t,n){let r=Hc($(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=zc($(e),t),i=r?.[Y];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Zs(n,r)&&(n!==void 0||Js(e.base_,t,e.type_)))return!0;Wc(e),Uc(e)}return e.copy_[t]===n&&(n!==void 0||Js(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Pc(e,t,n),!0)},deleteProperty(e,t){return Wc(e),zc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Uc(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=$(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Bs]:!0,[Rs]:e.type_!==1||t!==`length`,[zs]:r[zs],[Vs]:n[t]}},defineProperty(){X(11)},getPrototypeOf(e){return Fs(e.base_)},setPrototypeOf(){X(12)}},Rc={};for(let e in Lc){let t=Lc[e];Rc[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Rc.deleteProperty=function(e,t){return Rc.set.call(this,e,t,void 0)},Rc.set=function(e,t,n){return Lc.set.call(this,e[0],t,n,e[0])};function zc(e,t){let n=e[Y];return(n?$(n):e)[t]}function Bc(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Q(n)||n[Y]?!1:e.baseRefs_.has(n)}function Vc(e,t,n){let r=Hc(t,n);return r?Vs in r?r[Vs]:r.get?.call(e.draft_):void 0}function Hc(e,t){if(!(t in e))return;let n=Fs(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Fs(n)}}function Uc(e){e.modified_||(e.modified_=!0,e.parent_&&Uc(e.parent_))}function Wc(e){e.copy_||=(e.assigned_=new Map,oc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Gc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(nc(e)&&!nc(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}nc(t)||X(6),n!==void 0&&!nc(n)&&X(7);let r;if(Q(e)){let i=Cc(this),a=Kc(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?xc(i):Sc(i)}return bc(i,n),Tc(r,i)}else if(!e||!tc(e)){if(r=t(e),r===void 0&&(r=e),r===Ns&&(r=void 0),this.autoFreeze_&&sc(r,!0),n){let t=[],i=[];hc(fc).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else X(1,e)},this.produceWithPatches=(e,t)=>{if(nc(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},rc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),rc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),rc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Q(e)||X(8),Hs(e)&&(e=qc(e));let t=Cc(this),n=Kc(t,e,void 0);return n[Y].isManual_=!0,Sc(t),n}finishDraft(e,t){let n=e&&e[Y];(!n||!n.isManual_)&&X(9);let{scope_:r}=n;return bc(r,t),Tc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>
1-1&&(t=t.slice(n+1));let r=hc(fc).applyPatches_;return Hs(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Kc(e,t,n,r){let[i,a]=$s(t)?hc(dc).proxyMap_(t,n):ec(t)?hc(dc).proxySet_(t,n):Ic(t,n);return(n?.scope_??vc()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Mc(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function qc(e){return Hs(e)||X(10,e),Jc(e)}function Jc(e){if(!Q(e)||uc(e))return e;let t=e[Y],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=oc(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=oc(e,!0);return Ks(n,(e,t)=>{Xs(n,e,Jc(t))},r),t&&(t.finalized_=!1),n}new Gc().produce;var Yc=e=>e;ri();function Xc(e){e()}function Zc(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Xc(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Qc={notify(){},get:()=>[]};function $c(e,t){let n,r=Qc,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Zc())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Qc)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var el=(()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0)(),tl=(()=>typeof navigator<`u`&&navigator.product===`ReactNative`)(),nl=(()=>el||tl?V.useLayoutEffect:V.useEffect)();function rl(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function il(e,t){if(rl(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!rl(e[n[r]],t[n[r]]))return!1;return!0}Object.prototype;var al=Symbol.for(`react-redux-context`),ol=typeof globalThis<`u`?globalThis:{};function sl(){if(!V.createContext)return{};let e=ol[al]??=new Map,t=e.get(V.createContext);return t||(t=V.createContext(null),e.set(V.createContext,t)),t}var cl=sl();function ll(e){let{children:t,context:n,serverState:r,store:i}=e,a=V.useMemo(()=>({store:i,subscription:$c(i),getServerState:r?()=>r:void 0}),[i,r]),o=V.useMemo(()=>i.getState(),[i]);nl(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||cl;return V.createElement(s.Provider,{value:a},t)}var ul=ll;export{Xn as _,Io as a,u as b,Ko as c,la as d,Yi as f,Tn as g,Oi as h,Po as i,Mo as l,Ti as m,il as n,To as o,yi as p,Y
1c as r,Ms as s,ul as t,xo as u,It as v,un as y};
2//# sourceMappingURL=state-vendor-C5vsMx6R.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.