1import{r as Q}from"./vendor-react-BxnrqFRB.js";var dn={exports:{}},pn={};/** 2 * @license React 3 * use-sync-external-store-with-selector.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var He=Q;function ii(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var si=typeof Object.is=="function"?Object.is:ii,oi=He.useSyncExternalStore,ui=He.useRef,ai=He.useEffect,ci=He.useMemo,fi=He.useDebugValue;pn.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=ui(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=ci(function(){function d(R){if(!b){if(b=!0,h=R,R=n(R),i!==void 0&&o.hasValue){var S=o.value;if(i(S,R))return g=S}return g=R}if(S=g,si(h,R))return S;var O=n(R);return i!==void 0&&i(S,O)?(h=R,S):(h=R,g=O)}var b=!1,h,g,C=r===void 0?null:r;return[function(){return d(t())},C===null?void 0:function(){return d(C())}]},[t,r,n,i]);var p=oi(e,s[0],s[1]);return ai(function(){o.hasValue=!0,o.value=p},[p]),fi(p),p};dn.exports=pn;var li=dn.exports;function yn(e){e()}function di(){let e=null,t=null;return{clear(){e=null,t=null},notify(){yn(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ir={notify(){},get:()=>[]};function pi(e,t){let r,n=Ir,i=0,s=!1;function o(O){h();const m=n.subscribe(O);let E=!1;return()=>{E||(E=!0,m(),g())}}function p(){n.notify()}function d(){S.onStateChange&&S.onStateChange()}function b(){return s}function h(){i++,r||(r=e.subscribe(d),n=di())}function g(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Ir)}function C(){s||(s=!0,h())}function R(){s&&(s=!1,g())}const S={addNestedSub:o,notifyNestedSubs:p,handleChangeWrapper:d,isSubscribed:b,trySubscribe:C,tryUnsubscribe:R,getListeners:()=>n};return S}var yi=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hi=yi(),gi=()=>typeof navigator<"u"&&navigator.product==="ReactNative",mi=gi(),vi=()=>hi||mi?Q.useLayoutEffect:Q.useEffect,bi=vi();function Cr(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Fe(e,t){if(Cr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Cr(e[r[i]],t[r[i]]))return!1;return!0}var Si=Symbol.for("react-redux-context"),_i=typeof globalThis<"u"?globalThis:{};function wi(){if(!Q.createContext)return{};const e=_i[Si]??=new Map;let t=e.get(Q.createContext);return t||(t=Q.createContext(null),e.set(Q.createContext,t)),t}var pe=wi();function Pi(e){const{children:t,context:r,serverState:n,store:i}=e,s=Q.useMemo(()=>{const d=pi(i);return{store:i,subscription:d,getServerState:n?()=>n:void 0}},[i,n]),o=Q.useMemo(()=>i.getState(),[i]);bi(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),o!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,o]);const p=r||pe;return Q.createElement(p.Provider,{value:s},t)}var au=Pi;function fr(e=pe){return function(){return Q.useContext(e)}}var hn=fr();function gn(e=pe){const t=e===pe?hn:fr(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var mn=gn();function Ei(e=pe){const t=e===pe?mn:gn(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Ri=Ei(),Oi=(e,t)=>e===t;function Ii(e=pe){const t=e===pe?hn:fr(e),r=(n,i={})=>{const{equalityFn:s=Oi}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:p,subscription:d,getServerState:b}=o;Q.useRef(!0);const h=Q.useCallback({[n.name](C){return n(C)}}[n.name],[n]),g=li.useSyncExternalStoreWithSelector(d.addNestedSub,p.getState,b||p.getState,h,s);return Q.useDebugValue(g),g};return Object.assign(r,{withTypes:()=>r}),r}var Ci=Ii(),Mi=yn;function ft(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ft=function(r){return typeof r}:ft=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ft(e)}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Di(e,t,r){return t&&Ti(e.prototype,t),e}function ki(e,t){return t&&(ft(t)==="object"||typeof t=="function")?t:lt(e)}function Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gt(e)}function lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}function Yt(e,t){return Yt=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yt(e,t)}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qi=function(e){xi(t,e);function t(){var r,n;Ai(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return n=ki(this,(r=Gt(t)).call.apply(r,[this].concat(s))),dt(lt(n),"state",{bootstrapped:!1}),dt(lt(n),"_unsubscribe",void 0),dt(lt(n),"handlePersistorState",function(){var p=n.props.persistor,d=p.getState(),b=d.bootstrapped;b&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally(function(){return n.setState({bootstrapped:!0})}):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())}),n}
9return Di(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(Q.PureComponent);dt(Qi,"defaultProps",{children:null,loading:null});function G(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 Ni=typeof Symbol=="function"&&Symbol.observable||"@@observable",Mr=Ni,jt=()=>Math.random().toString(36).substring(7).split("").join("."),qi={INIT:`@@redux/INIT${jt()}`,REPLACE:`@@redux/REPLACE${jt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jt()}`},mt=qi;function ye(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lr(e,t,r){if(typeof e!="function")throw new Error(G(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(G(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(G(1));return r(lr)(e,t)}let n=e,i=t,s=new Map,o=s,p=0,d=!1;
vendor: 13,799 bytes, line 9
9function b(){o===s&&(o=new Map,s.forEach((m,E)=>{o.set(E,m)}))}function h(){if(d)throw new Error(G(3));return i}function g(m){if(typeof m!="function")throw new Error(G(4));if(d)throw new Error(G(5));let E=!0;b();const A=p++;return o.set(A,m),function(){if(E){if(d)throw new Error(G(6));E=!1,b(),o.delete(A),s=null}}}function C(m){if(!ye(m))throw new Error(G(7));if(typeof m.type>"u")throw new Error(G(8));if(typeof m.type!="string")throw new Error(G(17));if(d)throw new Error(G(9));try{d=!0,i=n(i,m)}finally{d=!1}return(s=o).forEach(A=>{A()}),m}function R(m){if(typeof m!="function")throw new Error(G(10));n=m,C({type:mt.REPLACE})}function S(){const m=g;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(G(11));function A(){const c=E;c.next&&c.next(h())}return A(),{unsubscribe:m(A)}},[Mr](){return this}}}return C({type:mt.INIT}),{dispatch:C,subscribe:g,getState:h,replaceReducer:R,[Mr]:S}}function Fi(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:mt.INIT})>"u")throw new Error(G(12));if(typeof r(void 0,{type:mt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(G(13))})}function vn(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const o=t[s];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Fi(r)}catch(s){i=s}return function(o={},p){if(i)throw i;let d=!1;const b={};for(let h=0;h<n.length;h++){const g=n[h],C=r[g],R=o[g],S=C(R,p);if(typeof S>"u")throw p&&p.type,new Error(G(14));b[g]=S,d=d||S!==R}return d=d||n.length!==Object.keys(o).length,d?b:o}}function vt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ji(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(G(15))};const o={getState:i.getState,dispatch:(d,...b)=>s(d,...b)},p=e.map(d=>d(o));return s=vt(...p)(i.dispatch),{...i,dispatch:s}}}function bn(e){return ye(e)&&"type"in e&&typeof e.type=="string"}var dr=Symbol.for("immer-nothing"),je=Symbol.for("immer-draftable"),H=Symbol.for("immer-state");function Y(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Z=Object,be=Z.getPrototypeOf,ze="constructor",Ge="prototype",Jt="configurable",bt="enumerable",pt="writable",$e="value",ee=e=>!!e&&!!e[H];function J(e){return e?Sn(e)||Je(e)||!!e[je]||!!e[ze]?.[je]||Xe(e)||Ze(e):!1}var Ui=Z[Ge][ze].toString(),Ar=new WeakMap;function Sn(e){if(!e||!Me(e))return!1;const t=be(e);if(t===null||t===Z[Ge])return!0;const r=Z.hasOwnProperty.call(t,ze)&&t[ze];if(r===Object)return!0;if(!ve(r))return!1;let n=Ar.get(r);return n===void 0&&(n=Function.toString.call(r),Ar.set(r,n)),n===Ui}function zi(e){return ee(e)||Y(15,e),e[H].base_}function Ye(e,t,r=!0){Se(e)===0?(r?Reflect.ownKeys(e):Z.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Se(e){const t=e[H];return t?t.type_:Je(e)?1:Xe(e)?2:Ze(e)?3:0}var Ie=(e,t,r=Se(e))=>r===2?e.has(t):Z[Ge].hasOwnProperty.call(e,t),ae=(e,t,r=Se(e))=>r===2?e.get(t):e[t],St=(e,t,r,n=Se(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function $i(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Je=Array.isArray,Xe=e=>e instanceof Map,Ze=e=>e instanceof Set,Me=e=>typeof e=="object",ve=e=>typeof e=="function",Ut=e=>typeof e=="boolean";function Li(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Wi=e=>Me(e)?e?.[H]:null,ce=e=>e.copy_||e.base_,pr=e=>e.modified_?e.copy_:e.base_;function Xt(e,t){if(Xe(e))return new Map(e);if(Ze(e))return new Set(e);if(Je(e))return Array[Ge].slice.call(e);const r=Sn(e);if(t===!0||t==="class_only"&&!r){const n=Z.getOwnPropertyDescriptors(e);delete n[H];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){const o=i[s],p=n[o];p[pt]===!1&&(p[pt]=!0,p[Jt]=!0),(p.get||p.set)&&(n[o]={[Jt]:!0,[pt]:!0,[bt]:p[bt],[$e]:e[o]})}return Z.create(be(e),n)}else{const n=be(e);if(n!==null&&r)return{...e};const i=Z.create(n);return Z.assign(i,e)}}function yr(e,t=!1){return Mt(e)||ee(e)||!J(e)||(Se(e)>1&&Z.defineProperties(e,{set:nt,add:nt,clear:nt,delete:nt}),Z.freeze(e),t&&Ye(e,(r,n)=>{yr(n,!0)},!1)),e}function Vi(){Y(2)}var nt={[$e]:Vi};function Mt(e){return e===null||!Me(e)?!0:Z.isFrozen(e)}var _t="MapSet",wt="Patches",Tr="ArrayMethods",Pt={};function _e(e){const t=Pt[e];return t||Y(0,e),t}var Dr=e=>!!Pt[e];function Ki(e,t){Pt[e]||(Pt[e]=t)}var Le,_n=()=>Le,Bi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Dr(_t)?_e(_t):void 0,arrayMethodsPlugin_:Dr(Tr)?_e(Tr):void 0});function kr(e,t){t&&(e.patchPlugin_=_e(wt),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zt(e){er(e),e.drafts_.forEach(Hi),e.drafts_=null}function er(e){e===Le&&(Le=e.parent_)}var xr=e=>Le=Bi(Le,e);function Hi(e){const t=e[H];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Qr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[H].modified_&&(Zt(t),Y(4)),J(e)&&(e=Nr(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[H].base_,e,t)}else e=Nr(t,r);return Gi(t,e,!0),Zt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==dr?e:void 0}function Nr(e,t){if(Mt(t))return t;const r=t[H];if(!r)return Et(t,e.handledSet_,e);if(!At(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);En(r,e)}return r.copy_}function Gi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&yr(t,r)}function wn(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var At=(e,t)=>e.scope_===t,Yi=[];function Pn(e,t,r,n){const i=ce(e),s=e.type_;if(n!==void 0&&ae(i,n,s)===t){St(i,n,r,s);return}if(!e.draftLocations_){const p=e.draftLocations_=new Map;Ye(i,(d,b)=>{if(ee(b)){const h=p.get(b)||[];h.push(d),p.set(b,h)}})}const o=e.draftLocations_.get(t)??Yi;for(const p of o)St(i,p,r,s)}function Ji(e,t,r){e.callbacks_.push(function(i){const s=t;if(!s||!At(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const o=pr(s);Pn(e,s.draft_??s,o,r),En(s,i)})}function En(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}wn(e)}}function Xi(e,t,r){const{scope_:n}=e;if(ee(r)){const i=r[H];At(i,n)&&i.callbacks_.push(function(){yt(e);const o=pr(i);Pn(e,r,o,t)})}else J(r)&&e.callbacks_.push(function(){const s=ce(e);e.type_===3?s.has(r)&&Et(r,n.handledSet_,n):ae(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Et(ae(e.copy_,t,e.type_),n.handledSet_,n)})}function Et(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ee(e)||t.has(e)||!J(e)||Mt(e)||(t.add(e),Ye(e,(n,i)=>{if(ee(i)){const s=i[H];if(At(s,r)){const o=pr(s);St(e,n,o,e.type_),wn(s)}}else J(i)&&Et(i,t,r)})),e}function Zi(e,t){const r=Je(e),n={type_:r?1:0,scope_:t?t.scope_:_n(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,s=Rt;r&&(i=[n],s=We);const{revoke:o,proxy:p}=Proxy.revocable(i,s);return n.draft_=p,n.revoke_=o,[p,n]}var Rt={get(e,t){if(t===H)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=ce(e);if(!Ie(i,t,e.type_))return ts(e,i,t);const s=i[t];if(e.finalized_||!J(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Li(t))return s;if(s===zt(e.base_,t)||es(e,t,s)){yt(e);const o=e.type_===1?+t:t,p=rr(e.scope_,s,e,o);return e.copy_[o]=p}return s},has(e,t){return t in ce(e)},ownKeys(e){return Reflect.ownKeys(ce(e))},set(e,t,r){const n=Rn(ce(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=zt(ce(e),t),s=i?.[H];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if($i(r,i)&&(r!==void 0||Ie(e.base_,t,e.type_)))return!0;yt(e),tr(e)}return e.copy_[t]===r&&(r!==void 0||Ie(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Xi(e,t,r)),!0},deleteProperty(e,t){return yt(e),zt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),tr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ce(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[pt]:!0,[Jt]:e.type_!==1||t!=="length",[bt]:n[bt],[$e]:r[t]}},defineProperty(){Y(11)},getPrototypeOf(e){return be(e.base_)},setPrototypeOf(){Y(12)}},We={};for(let e in Rt){let t=Rt[e];We[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}We.deleteProperty=function(e,t){return We.set.call(this,e,t,void 0)};We.set=function(e,t,r){return Rt.set.call(this,e[0],t,r,e[0])};function zt(e,t){const r=e[H];return(r?ce(r):e)[t]}function es(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!J(r)||r[H]?!1:e.baseRefs_.has(r)}function ts(e,t,r){const n=Rn(t,r);return n?$e in n?n[$e]:n.get?.call(e.draft_):void 0}function Rn(e,t){if(!(t in e))return;let r=be(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=be(r)}}function tr(e){e.modified_||(e.modified_=!0,e.parent_&&tr(e.parent_))}function yt(e){e.copy_||(e.assigned_=new Map,e.copy_=Xt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var rs=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ve(t)&&!ve(r)){const s=r;r=t;const o=this;return function(d=s,...b){return o.produce(d,h=>r.call(this,h,...b))}}ve(r)||Y(6),n!==void 0&&!ve(n)&&Y(7);let i;if(J(t)){const s=xr(this),o=rr(s,t,void 0);let p=!0;try{i=r(o),p=!1}finally{p?Zt(s):er(s)}return kr(s,n),Qr(i,s)}else if(!t||!Me(t)){if(i=r(t),i===void 0&&(i=t),i===dr&&(i=void 0),this.autoFreeze_&&yr(i,!0),n){const s=[],o=[];_e(wt).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),n(s,o)}return i}else Y(1,t)},this.produceWithPatches=(t,r)=>{if(ve(t))return(o,...p)=>this.produceWithPatches(o,d=>t(d,...p));let n,i;return[this.produce(t,r,(o,p)=>{n=o,i=p}),n,i]},Ut(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ut(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ut(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){J(e)||Y(8),ee(e)&&(e=On(e));const t=xr(this),r=rr(t,e,void 0);return r[H].isManual_=!0,er(t),r}finishDraft(e,t){const r=e&&e[H];(!r||!r.isManual_)&&Y(9);const{scope_:n}=r;return kr(n,t),Qr(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=_e(wt).applyPatches_;return ee(e)?n(e,t):this.produce(e,i=>n(i,t))}};function rr(e,t,r,n){const[i,s]=Xe(t)?_e(_t).proxyMap_(t,r):Ze(t)?_e(_t).proxySet_(t,r):Zi(t,r);return(r?.scope_??_n()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?Ji(r,s,n):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:b}=d;s.modified_&&b&&b.generatePatches_(s,[],d)}),i}function On(e){return ee(e)||Y(10,e),In(e)}function In(e){if(!J(e)||Mt(e))return e;const t=e[H];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xt(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Xt(e,!0);return Ye(r,(i,s)=>{St(r,i,In(s))},n),t&&(t.finalized_=!1),r}function ns(){function t(S,O=[]){if(S.key_!==void 0){const m=S.parent_.copy_??S.parent_.base_,E=Wi(ae(m,S.key_)),A=ae(m,S.key_);if(A===void 0||A!==S.draft_&&A!==S.base_&&A!==S.copy_||E!=null&&E.base_!==S.base_)return null;const l=S.parent_.type_===3;let c;if(l){const a=S.parent_;c=Array.from(a.drafts_.keys()).indexOf(S.key_)}else c=S.key_;if(!(l&&m.size>c||Ie(m,c)))return null;O.push(c)}if(S.parent_)return t(S.parent_,O);O.reverse();try{r(S.copy_,O)}catch{return null}return O}function r(S,O){let m=S;for(let E=0;E<O.length-1;E++){const A=O[E];if(m=ae(m,A),!Me(m)||m===null)throw new Error(`Cannot resolve path at '${O.join("/")}'`)}return m}const n="replace",i="add",s="remove";function o(S,O,m){if(S.scope_.processedForPatches_.has(S))return;S.scope_.processedForPatches_.add(S);const{patches_:E,inversePatches_:A}=m;switch(S.type_){case 0:case 2:return d(S,O,E,A);case 1:return p(S,O,E,A);case 3:return b(S,O,E,A)}}function p(S,O,m,E){let{base_:A,assigned_:l}=S,c=S.copy_;c.length<A.length&&([A,c]=[c,A],[m,E]=[E,m]);const a=S.allIndicesReassigned_===!0;for(let f=0;f<A.length;f++){const _=c[f],I=A[f];if((a||l?.get(f.toString()))&&_!==I){const v=_?.[H];if(v&&v.modified_)continue;const u=O.concat([f]);m.push({op:n,path:u,value:R(_)}),E.push({op:n,path:u,value:R(I)})}}for(let f=A.length;f<c.length;f++){const _=O.concat([f]);m.push({op:i,path:_,value:R(c[f])})}for(let f=c.length-1;A.length<=f;--f){const _=O.concat([f]);E.push({op:s,path:_})}}function d(S,O,m,E){const{base_:A,copy_:l,type_:c}=S;Ye(S.assigned_,(a,f)=>{const _=ae(A,a,c),I=ae(l,a,c),w=f?Ie(A,a)?n:i:s;if(_===I&&w===n)return;const v=O.concat(a);m.push(w===s?{op:w,path:v}:{op:w,path:v,value:R(I)}),E.push(w===i?{op:s,path:v}:w===s?{op:i,path:v,value:R(_)}:{op:n,path:v,value:R(_)})})}function b(S,O,m,E){let{base_:A,copy_:l}=S,c=0;A.forEach(a=>{if(!l.has(a)){const f=O.concat([c]);m.push({op:s,path:f,value:a}),E.unshift({op:i,path:f,value:a})}c++}),c=0,l.forEach(a=>{if(!A.has(a)){const f=O.concat([c]);m.push({op:i,path:f,value:a}),E.unshift({op:s,path:f,value:a})}c++})}function h(S,O,m){const{patches_:E,inversePatches_:A}=m;E.push({op:n,path:[],value:O===dr?void 0:O}),A.push({op:n,path:[],value:S})}function g(S,O){return O.forEach(m=>{const{path:E,op:A}=m;let l=S;for(let _=0;_<E.length-1;_++){const I=Se(l);let w=E[_];
vendor: 6,709 bytes, line 9
9typeof w!="string"&&typeof w!="number"&&(w=""+w),(I===0||I===1)&&(w==="__proto__"||w===ze)&&Y(19),ve(l)&&w===Ge&&Y(19),l=ae(l,w),(l===null||!Me(l))&&Y(18,E.join("/"))}const c=Se(l),a=C(m.value),f=E[E.length-1];switch(A){case n:switch(c){case 2:return l.set(f,a);case 3:Y(16);default:return l[f]=a}case i:switch(c){case 1:return f==="-"?l.push(a):l.splice(f,0,a);case 2:return l.set(f,a);case 3:return l.add(a);default:return l[f]=a}case s:switch(c){case 1:return l.splice(f,1);case 2:return l.delete(f);case 3:return l.delete(m.value);default:return delete l[f]}default:Y(17,A)}}),S}function C(S){if(!J(S))return S;if(Je(S))return S.map(C);if(Xe(S))return new Map(Array.from(S.entries()).map(([m,E])=>[m,C(E)]));if(Ze(S))return new Set(Array.from(S).map(C));const O=Object.create(be(S));for(const m in S)O[m]=C(S[m]);return Ie(S,je)&&(O[je]=S[je]),O}function R(S){return ee(S)?C(S):S}Ki(wt,{applyPatches_:g,generatePatches_:o,generateReplacementPatches_:h,getPath:t})}var Ve=new rs,et=Ve.produce,Cn=Ve.produceWithPatches.bind(Ve),qr=Ve.applyPatches.bind(Ve);function is(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ss(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Fr=e=>Array.isArray(e)?e:[e];function os(e){const t=Array.isArray(e[0])?e[0]:e;return ss(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function us(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var as=class{constructor(e){this.value=e}deref(){return this.value}},cs=()=>typeof WeakRef>"u"?as:WeakRef,Mn=cs(),fs=0,jr=1;function it(){return{s:fs,v:void 0,o:null,p:null}}function ls(e){return e instanceof Mn?e.deref():e}function Ot(e,t={}){let r=it();const{resultEqualityCheck:n}=t;let i,s=0;function o(){let p=r;const{length:d}=arguments;for(let g=0,C=d;g<C;g++){const R=arguments[g];if(typeof R=="function"||typeof R=="object"&&R!==null){let S=p.o;S===null&&(p.o=S=new WeakMap);const O=S.get(R);O===void 0?(p=it(),S.set(R,p)):p=O}else{let S=p.p;S===null&&(p.p=S=new Map);const O=S.get(R);O===void 0?(p=it(),S.set(R,p)):p=O}}const b=p;let h;if(p.s===jr)h=p.v;else if(h=e.apply(null,arguments),s++,n){const g=ls(i);g!=null&&n(g,h)&&(h=g,s!==0&&s--),i=typeof h=="object"&&h!==null||typeof h=="function"?new Mn(h):h}return b.s=jr,b.v=h,h}return o.clearCache=()=>{r=it(),o.resetResultsCount()},o.resultsCount=()=>s,o.resetResultsCount=()=>{s=0},o}function ds(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let s=0,o=0,p,d={},b=i.pop();typeof b=="object"&&(d=b,b=i.pop()),is(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const h={...r,...d},{memoize:g,memoizeOptions:C=[],argsMemoize:R=Ot,argsMemoizeOptions:S=[]}=h,O=Fr(C),m=Fr(S),E=os(i),A=g(function(){return s++,b.apply(null,arguments)},...O),l=R(function(){o++;const a=us(E,arguments);return p=A.apply(null,a),p},...m);return Object.assign(l,{resultFunc:b,memoizedResultFunc:A,dependencies:E,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>p,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:R})};return Object.assign(n,{withTypes:()=>n}),n}var An=ds(Ot);function Tn(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var ps=Tn(),ys=Tn,hs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vt:vt.apply(null,arguments)},gs=e=>e&&typeof e.match=="function";function ne(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(te(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>bn(n)&&n.type===e,r}var Dn=class Qe extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qe.prototype)}static get[Symbol.species](){return Qe}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qe(...t[0].concat(this)):new Qe(...t.concat(this))}};function Ur(e){return J(e)?et(e,()=>{}):e}function st(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ms(e){return typeof e=="boolean"}var vs=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let o=new Dn;return r&&(ms(r)?o.push(ps):o.push(ys(r.extraArgument))),o},Tt="RTK_autoBatch",De=()=>e=>({payload:e,meta:{[Tt]:!0}}),zr=e=>t=>{setTimeout(t,e)},bs=(e,t)=>r=>{let n=!1;const i=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(i),o=setTimeout(i,t)},Ss=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,s=!1,o=!1;const p=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?bs(window.requestAnimationFrame,100):zr(10):e.type==="callback"?e.queueNotification:zr(e.timeout),b=()=>{o=!1,s&&(s=!1,p.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){const g=()=>i&&h(),C=n.subscribe(g);return p.add(h),()=>{C(),p.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Tt],s=!i,s&&(o||(o=!0,d(b))),n.dispatch(h)}finally{i=!0}}})},_s=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Dn(e);return n&&i.push(Ss(typeof n=="object"?n:void 0)),i};function cu(e){const t=vs(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:s=void 0,enhancers:o=void 0}=e||{};let p;if(typeof r=="function")p=r;else if(ye(r))p=vn(r);else throw new Error(te(1));let d;typeof n=="function"?d=n(t):d=t();let b=vt;i&&(b=hs({trace:!1,...typeof i=="object"&&i}));const h=ji(...d),g=_s(h);let C=typeof o=="function"?o(g):g();const R=b(...C);return lr(p,s,R)}function kn(e){const t={},r=[];let n;const i={addCase(s,o){const p=typeof s=="string"?s:s.type;if(!p)throw new Error(te(28));if(p in t)throw new Error(te(29));return t[p]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function ws(e){return typeof e=="function"}function Ps(e,t){let[r,n,i]=kn(t),s;if(ws(e))s=()=>Ur(e());else{const p=Ur(e);s=()=>p}function o(p=s(),d){let b=[r[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];
vendor: 6,062 bytes, line 9
9return b.filter(h=>!!h).length===0&&(b=[i]),b.reduce((h,g)=>{if(g)if(ee(h)){const R=g(h,d);return R===void 0?h:R}else{if(J(h))return et(h,C=>g(C,d));{const C=g(h,d);if(C===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}}return h},p)}return o.getInitialState=s,o}var xn=(e,t)=>gs(e)?e.match(t):e(t);function fe(...e){return t=>e.some(r=>xn(r,t))}function Ue(...e){return t=>e.every(r=>xn(r,t))}function Dt(e,t){if(!e||!e.meta)return!1;const r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function tt(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function hr(...e){return e.length===0?t=>Dt(t,["pending"]):tt(e)?fe(...e.map(t=>t.pending)):hr()(e[0])}function Ae(...e){return e.length===0?t=>Dt(t,["rejected"]):tt(e)?fe(...e.map(t=>t.rejected)):Ae()(e[0])}function kt(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Ue(Ae(...e),t):tt(e)?Ue(Ae(...e),t):kt()(e[0])}function he(...e){return e.length===0?t=>Dt(t,["fulfilled"]):tt(e)?fe(...e.map(t=>t.fulfilled)):he()(e[0])}function nr(...e){return e.length===0?t=>Dt(t,["pending","fulfilled","rejected"]):tt(e)?fe(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):nr()(e[0])}var Es="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gr=(e=21)=>{let t="",r=e;for(;r--;)t+=Es[Math.random()*64|0];return t},Rs=["name","message","stack","code"],$t=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},$r=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Os=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of Rs)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Lr="External signal was aborted",Wr=(()=>{function e(t,r,n){const i=ne(t+"/fulfilled",(d,b,h,g)=>({payload:d,meta:{...g||{},arg:h,requestId:b,requestStatus:"fulfilled"}})),s=ne(t+"/pending",(d,b,h)=>({payload:void 0,meta:{...h||{},arg:b,requestId:d,requestStatus:"pending"}})),o=ne(t+"/rejected",(d,b,h,g,C)=>({payload:g,error:(n&&n.serializeError||Os)(d||"Rejected"),meta:{...C||{},arg:h,requestId:b,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function p(d,{signal:b}={}){return(h,g,C)=>{const R=n?.idGenerator?n.idGenerator(d):gr(),S=new AbortController;let O,m;function E(l){m=l,S.abort()}b&&(b.aborted?E(Lr):b.addEventListener("abort",()=>E(Lr),{once:!0}));const A=async function(){let l;try{let a=n?.condition?.(d,{getState:g,extra:C});if(Cs(a)&&(a=await a),a===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const f=new Promise((_,I)=>{O=()=>{I({name:"AbortError",message:m||"Aborted"})},S.signal.addEventListener("abort",O,{once:!0})});h(s(R,d,n?.getPendingMeta?.({requestId:R,arg:d},{getState:g,extra:C}))),l=await Promise.race([f,Promise.resolve(r(d,{dispatch:h,getState:g,extra:C,requestId:R,signal:S.signal,abort:E,rejectWithValue:(_,I)=>new $t(_,I),fulfillWithValue:(_,I)=>new $r(_,I)})).then(_=>{if(_ instanceof $t)throw _;return _ instanceof $r?i(_.payload,R,d,_.meta):i(_,R,d)})])}catch(a){l=a instanceof $t?o(null,R,d,a.payload,a.meta):o(a,R,d)}finally{O&&S.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&o.match(l)&&l.meta.condition||h(l),l}();return Object.assign(A,{abort:E,requestId:R,arg:d,unwrap(){return A.then(Is)}})}}return Object.assign(p,{pending:s,rejected:o,fulfilled:i,settled:fe(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Is(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Cs(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ms=Symbol.for("rtk-slice-createasyncthunk");function As(e,t){return`${e}/${t}`}function Ts({creators:e}={}){const t=e?.asyncThunk?.[Ms];return function(n){const{name:i,reducerPath:s=i}=n;if(!i)throw new Error(te(11));const o=(typeof n.reducers=="function"?n.reducers(ks()):n.reducers)||{},p=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(l,c){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(te(12));if(a in d.sliceCaseReducersByType)throw new Error(te(13));return d.sliceCaseReducersByType[a]=c,b},addMatcher(l,c){return d.sliceMatchers.push({matcher:l,reducer:c}),b},exposeAction(l,c){return d.actionCreators[l]=c,b},exposeCaseReducer(l,c){return d.sliceCaseReducersByName[l]=c,b}};p.forEach(l=>{const c=o[l],a={reducerName:l,type:As(i,l),createNotation:typeof n.reducers=="function"};Qs(c)?qs(a,c,b,t):xs(a,c,b)});function h(){const[l={},c=[],a=void 0]=typeof n.extraReducers=="function"?kn(n.extraReducers):[n.extraReducers],f={...l,...d.sliceCaseReducersByType};return Ps(n.initialState,_=>{for(let I in f)_.addCase(I,f[I]);for(let I of d.sliceMatchers)_.addMatcher(I.matcher,I.reducer);for(let I of c)_.addMatcher(I.matcher,I.reducer);a&&_.addDefaultCase(a)})}const g=l=>l,C=new Map,R=new WeakMap;let S;function O(l,c){return S||(S=h()),S(l,c)}function m(){return S||(S=h()),S.getInitialState()}function E(l,c=!1){function a(_){let I=_[l];return typeof I>"u"&&c&&(I=st(R,a,m)),I}function f(_=g){const I=st(C,c,()=>new WeakMap);return st(I,_,()=>{const w={};for(const[v,u]of Object.entries(n.selectors??{}))w[v]=Ds(u,_,()=>st(R,_,m),c);return w})}return{reducerPath:l,getSelectors:f,get selectors(){return f(a)},selectSlice:a}}const A={name:i,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...E(s),injectInto(l,{reducerPath:c,...a}={}){const f=c??s;return l.inject({reducerPath:f,reducer:O},a),{...A,...E(f,!0)}}};return A}}function Ds(e,t,r,n){function i(s,...o){let p=t(s);return typeof p>"u"&&n&&(p=r()),e(p,...o)}return i.unwrapped=e,i}var Re=Ts();function ks(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}
9[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function xs({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!Ns(n))throw new Error(te(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ne(e,o):ne(e))}function Qs(e){return e._reducerDefinitionType==="asyncThunk"}function Ns(e){return e._reducerDefinitionType==="reducerWithPrepare"}function qs({type:e,reducerName:t},r,n,i){if(!i)throw new Error(te(18));const{payloadCreator:s,fulfilled:o,pending:p,rejected:d,settled:b,options:h}=r,g=i(e,s,h);n.exposeAction(t,g),o&&n.addCase(g.fulfilled,o),p&&n.addCase(g.pending,p),d&&n.addCase(g.rejected,d),b&&n.addMatcher(g.settled,b),n.exposeCaseReducer(t,{fulfilled:o||ot,pending:p||ot,rejected:d||ot,settled:b||ot})}function ot(){}function te(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 mr="persist:",Qn="persist/FLUSH",vr="persist/REHYDRATE",Nn="persist/PAUSE",qn="persist/PERSIST",Fn="persist/PURGE",jn="persist/REGISTER",Fs=-1;function ht(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(r){return typeof r}:ht=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ht(e)}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function js(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(r,!0).forEach(function(n){Us(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Us(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zs(e,t,r,n){n.debug;var i=js({},r);return e&&ht(e)==="object"&&Object.keys(e).forEach(function(s){s!=="_persist"&&t[s]===r[s]&&(i[s]=e[s])}),i}function $s(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:mr).concat(e.key),o=e.storage,p;e.serialize===!1?p=function(a){return a}:typeof e.serialize=="function"?p=e.serialize:p=Ls;var d=e.writeFailHandler||null,b={},h={},g=[],C=null,R=null,S=function(a){Object.keys(a).forEach(function(f){E(f)&&b[f]!==a[f]&&g.indexOf(f)===-1&&g.push(f)}),Object.keys(b).forEach(function(f){a[f]===void 0&&E(f)&&g.indexOf(f)===-1&&b[f]!==void 0&&g.push(f)}),C===null&&(C=setInterval(O,i)),b=a};function O(){if(g.length===0){C&&clearInterval(C),C=null;return}var c=g.shift(),a=n.reduce(function(f,_){return _.in(f,c,b)},b[c]);if(a!==void 0)try{h[c]=p(a)}catch{}else delete h[c];g.length===0&&m()}function m(){Object.keys(h).forEach(function(c){b[c]===void 0&&delete h[c]}),R=o.setItem(s,p(h)).catch(A)}function E(c){return!(r&&r.indexOf(c)===-1&&c!=="_persist"||t&&t.indexOf(c)!==-1)}function A(c){d&&d(c)}var l=function(){for(;g.length!==0;)O();return R||Promise.resolve()};return{update:S,flush:l}}function Ls(e){return JSON.stringify(e)}function Ws(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:mr).concat(e.key),n=e.storage;e.debug;var i;return e.deserialize===!1?i=function(o){return o}:typeof e.deserialize=="function"?i=e.deserialize:i=Vs,n.getItem(r).then(function(s){if(s)try{var o={},p=i(s);return Object.keys(p).forEach(function(d){o[d]=t.reduceRight(function(b,h){return h.out(b,d,p)},i(p[d]))}),o}catch(d){throw d}else return})}function Vs(e){return JSON.parse(e)}function Ks(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:mr).concat(e.key);return t.removeItem(r,Bs)}function Bs(e){}function Kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,298 bytes, line 9
9t%2?Kr(r,!0).forEach(function(n){Hs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kr(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gs(e,t){if(e==null)return{};var r=Ys(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ys(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Js=5e3;function fu(e,t){var r=e.version!==void 0?e.version:Fs;e.debug;var n=e.stateReconciler===void 0?zs:e.stateReconciler,i=e.getStoredState||Ws,s=e.timeout!==void 0?e.timeout:Js,o=null,p=!1,d=!0,b=function(g){return g._persist.rehydrated&&o&&!d&&o.update(g),g};return function(h,g){var C=h||{},R=C._persist,S=Gs(C,["_persist"]),O=S;if(g.type===qn){var m=!1,E=function(I,w){m||(g.rehydrate(e.key,I,w),m=!0)};if(s&&setTimeout(function(){!m&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,o||(o=$s(e)),R)return oe({},t(O,g),{_persist:R});if(typeof g.rehydrate!="function"||typeof g.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return g.register(e.key),i(e).then(function(_){var I=e.migrate||function(w,v){return Promise.resolve(w)};I(_,r).then(function(w){E(w)},function(w){E(void 0,w)})},function(_){E(void 0,_)}),oe({},t(O,g),{_persist:{version:r,rehydrated:!1}})}else{if(g.type===Fn)return p=!0,g.result(Ks(e)),oe({},t(O,g),{_persist:R});if(g.type===Qn)return g.result(o&&o.flush()),oe({},t(O,g),{_persist:R});if(g.type===Nn)d=!0;else if(g.type===vr){if(p)return oe({},O,{_persist:oe({},R,{rehydrated:!0})});if(g.key===e.key){var A=t(O,g),l=g.payload,c=n!==!1&&l!==void 0?n(l,h,A,e):A,a=oe({},c,{_persist:oe({},R,{rehydrated:!0})});return b(a)}}}if(!R)return t(h,g);var f=t(O,g);return f===O?h:b(oe({},f,{_persist:R}))}}function Br(e){return eo(e)||Zs(e)||Xs()}function Xs(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Zs(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function eo(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hr(r,!0).forEach(function(n){to(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function to(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Un={registry:[],bootstrapped:!1},ro=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case jn:return ir({},t,{registry:[].concat(Br(t.registry),[r.key])});case vr:var n=t.registry.indexOf(r.key),i=Br(t.registry);return i.splice(n,1),ir({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function lu(e,t,r){var n=lr(ro,Un,void 0),i=function(d){n.dispatch({type:jn,key:d})},s=function(d,b,h){var g={type:vr,payload:b,err:h,key:d};e.dispatch(g),n.dispatch(g)},o=ir({},n,{purge:function(){var d=[];return e.dispatch({type:Fn,result:function(h){d.push(h)}}),Promise.all(d)},flush:function(){var d=[];return e.dispatch({type:Qn,result:function(h){d.push(h)}}),Promise.all(d)},pause:function(){e.dispatch({type:Nn})},persist:function(){e.dispatch({type:qn,register:i,rehydrate:s})}});return o.persist(),o}var br={},Sr={};
9Sr.__esModule=!0;Sr.default=so;function gt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gt=function(r){return typeof r}:gt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gt(e)}function Lt(){}var no={getItem:Lt,setItem:Lt,removeItem:Lt};function io(e){if((typeof self>"u"?"undefined":gt(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function so(e){var t="".concat(e,"Storage");return io(t)?self[t]:no}br.__esModule=!0;br.default=ao;var oo=uo(Sr);function uo(e){return e&&e.__esModule?e:{default:e}}function ao(e){var t=(0,oo.default)(e);return{getItem:function(n){return new Promise(function(i,s){i(t.getItem(n))})},setItem:function(n,i){return new Promise(function(s,o){s(t.setItem(n,i))})},removeItem:function(n){return new Promise(function(i,s){i(t.removeItem(n))})}}}var co=void 0,fo=lo(br);function lo(e){return e&&e.__esModule?e:{default:e}}var po=(0,fo.default)("local");co=po;var yo=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},zn=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(zn||{}),le="uninitialized",sr="pending",Ne="fulfilled",qe="rejected";function Gr(e){return{status:e,isUninitialized:e===le,isLoading:e===sr,isSuccess:e===Ne,isError:e===qe}}var Yr=ye;function _r(e,t){if(e===t||!(Yr(e)&&Yr(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const s=Array.isArray(t)?[]:{};for(const o of r)s[o]=_r(e[o],t[o]),i&&(i=e[o]===s[o]);return i?e:s}function or(e,t,r){return e.reduce((n,i,s)=>(t(i,s)&&n.push(r(i,s)),n),[]).flat()}function ho(e){return new RegExp("(^|:)//").test(e)}function go(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function wr(e){return e!=null}function Jr(e){return[...e?.values()??[]].filter(wr)}function mo(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var vo=e=>e.replace(/\/$/,""),bo=e=>e.replace(/^\//,"");function So(e,t){if(!e)return t;if(!t)return e;if(ho(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=vo(e),t=bo(t),`${e}${r}${t}`}function It(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var ur=()=>new Map,_o=e=>{const t=new AbortController;return setTimeout(()=>{const r="signal timed out",n="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(r,n):Object.assign(new Error(r),{name:n}))},e),t.signal},wo=(...e)=>{for(const r of e)if(r.aborted)return AbortSignal.abort(r.reason);const t=new AbortController;for(const r of e)r.addEventListener("abort",()=>t.abort(r.reason),{signal:t.signal,once:!0});return t.signal},Xr=(...e)=>fetch(...e),Po=e=>e.status>=200&&e.status<=299,Eo=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Zr(e){if(!ye(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}var Ro=e=>typeof e=="object"&&(ye(e)||Array.isArray(e)||typeof e.toJSON=="function");function du({baseUrl:e,prepareHeaders:t=g=>g,fetchFn:r=Xr,paramsSerializer:n,isJsonContentType:i=Eo,jsonContentType:s="application/json",jsonReplacer:o,timeout:p,responseHandler:d,validateStatus:b,...h}={}){return async(C,R,S)=>{const{getState:O,extra:m,endpoint:E,forced:A,type:l}=R;let c,{url:a,headers:f=new Headers(h.headers),params:_=void 0,responseHandler:I=d??"json",validateStatus:w=b??Po,timeout:v=p,...u}=typeof C=="string"?{url:C}:C,y={...h,signal:v?wo(R.signal,_o(v)):R.signal,...u};f=new Headers(Zr(f)),y.headers=await t(f,{getState:O,arg:C,extra:m,endpoint:E,forced:A,type:l,extraOptions:S})||f;const P=Ro(y.body);if(y.body!=null&&!P&&typeof y.body!="string"&&y.headers.delete("content-type"),!y.headers.has("content-type")&&P&&y.headers.set("content-type",s),P&&i(y.headers)&&(y.body=JSON.stringify(y.body,o)),y.headers.has("accept")||(I==="json"?y.headers.set("accept","application/json"):I==="text"&&y.headers.set("accept","text/plain, text/html, */*")),_){const N=~a.indexOf("?")?"&":"?",F=n?n(_):new URLSearchParams(Zr(_));a+=N+F}a=So(e,a);
vendor: 4,139 bytes, line 9
9const M=new Request(a,y);c={request:new Request(a,y)};let x;try{x=await r(M)}catch(N){return{error:{status:(N instanceof Error||typeof DOMException<"u"&&N instanceof DOMException)&&N.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(N)},meta:c}}const q=x.clone();c.response=q;let k,D="";try{let N;if(await Promise.all([g(x,I).then(F=>k=F,F=>N=F),q.text().then(F=>D=F,()=>{})]),N)throw N}catch(N){return{error:{status:"PARSING_ERROR",originalStatus:x.status,data:D,error:String(N)},meta:c}}return w(x,k)?{data:k,meta:c}:{error:{status:x.status,data:k},meta:c}};async function g(C,R){if(typeof R=="function")return R(C);if(R==="content-type"&&(R=i(C.headers)?"json":"text"),R==="json"){const S=await C.text();return S.length?JSON.parse(S):null}return C.text()}}var Ce=class{constructor(e,t=void 0){this.value=e,this.meta=t}value;meta};async function Oo(e=0,t=5,r){const n=Math.min(e,t),i=~~((Math.random()+.4)*(300<<n));await new Promise((s,o)=>{const p=setTimeout(()=>s(),i);if(r){const d=()=>{clearTimeout(p),o(new Error("Aborted"))};r.aborted?(clearTimeout(p),o(new Error("Aborted"))):r.addEventListener("abort",d,{once:!0})}})}function $n(e,t){throw Object.assign(new Ce({error:e,meta:t}),{throwImmediately:!0})}function Wt(e){e.aborted&&$n({status:"CUSTOM_ERROR",error:"Aborted"})}var en={},Io=(e,t)=>async(r,n,i)=>{const s=[5,(t||en).maxRetries,(i||en).maxRetries].filter(h=>h!==void 0),[o]=s.slice(-1),d={maxRetries:o,backoff:Oo,retryCondition:(h,g,{attempt:C})=>C<=o,...t,...i};let b=0;for(;;){Wt(n.signal);try{const h=await e(r,n,i);if(h.error)throw new Ce(h);return h}catch(h){if(b++,h.throwImmediately){if(h instanceof Ce)return h.value;throw h}if(h instanceof Ce){if(!d.retryCondition(h.value.error,r,{attempt:b,baseQueryApi:n,extraOptions:i}))return h.value}else if(b>d.maxRetries)return{error:h};Wt(n.signal);try{await d.backoff(b,d.maxRetries,n.signal)}catch(g){throw Wt(n.signal),g}}}},pu=Object.assign(Io,{fail:$n}),xt="__rtkq/",Co="online",Mo="offline",Ln="focused",Pr=ne(`${xt}${Ln}`),Wn=ne(`${xt}un${Ln}`),Er=ne(`${xt}${Co}`),Vn=ne(`${xt}${Mo}`),rt="query",Kn="mutation",Bn="infinitequery";function Qt(e){return e.type===rt}function Ao(e){return e.type===Kn}function Nt(e){return e.type===Bn}function Ct(e){return Qt(e)||Nt(e)}function Rr(e,t,r,n,i,s){const o=To(e)?e(t,r,n,i):e;return o?or(o,wr,p=>s(Hn(p))):[]}function To(e){return typeof e=="function"}function Hn(e){return typeof e=="string"?{type:e}:e}function Do(e,t){return e.catch(t)}var Te=(e,t)=>e.endpointDefinitions[t],Ke=Symbol("forceQueryFn"),ar=e=>typeof e[Ke]=="function";function ko({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:r,mutationThunk:n,api:i,context:s,getInternalState:o}){const p=c=>o(c)?.runningQueries,d=c=>o(c)?.runningMutations,{unsubscribeQueryResult:b,removeMutationResult:h,updateSubscriptionOptions:g}=i.internalActions;return{buildInitiateQuery:E,buildInitiateInfiniteQuery:A,buildInitiateMutation:l,getRunningQueryThunk:C,getRunningMutationThunk:R,getRunningQueriesThunk:S,getRunningMutationsThunk:O};function C(c,a){return f=>{const _=Te(s,c),I=e({queryArgs:a,endpointDefinition:_,endpointName:c});return p(f)?.get(I)}}function R(c,a){return f=>d(f)?.get(a)}function S(){return c=>Jr(p(c))}function O(){return c=>Jr(d(c))}function m(c,a){const f=(_,{subscribe:I=!0,forceRefetch:w,subscriptionOptions:v,[Ke]:u,...y}={})=>(P,M)=>{const T=e({queryArgs:_,endpointDefinition:a,endpointName:c});let x;const q={...y,type:rt,subscribe:I,forceRefetch:w,subscriptionOptions:v,endpointName:c,originalArgs:_,queryCacheKey:T,[Ke]:u};if(Qt(a))x=t(q);else{const{direction:j,initialPageParam:B,refetchCachedPages:U}=y;x=r({...q,direction:j,initialPageParam:B,refetchCachedPages:U})}const k=i.endpoints[c].select(_),D=P(x),N=k(M()),{requestId:F,abort:W}=D,V=N.requestId!==F,z=p(P)?.get(T),K=()=>k(M()),L=Object.assign(u?D.then(K):V&&!z?Promise.resolve(N):Promise.all([z,D]).then(K),{arg:_,requestId:F,subscriptionOptions:v,queryCacheKey:T,abort:W,async unwrap(){const j=await L;if(j.isError)throw j.error;return j.data},refetch:j=>P(f(_,{subscribe:!1,forceRefetch:!0,...j})),unsubscribe(){I&&P(b({queryCacheKey:T,requestId:F}
vendor: 4,783 bytes, line 9
9))},updateSubscriptionOptions(j){L.subscriptionOptions=j,P(g({endpointName:c,requestId:F,queryCacheKey:T,options:j}))}});if(!z&&!V&&!u){const j=p(P);j.set(T,L),L.then(()=>{j.delete(T)})}return L};return f}function E(c,a){return m(c,a)}function A(c,a){return m(c,a)}function l(c){return(a,{track:f=!0,fixedCacheKey:_}={})=>(I,w)=>{const v=n({type:"mutation",endpointName:c,originalArgs:a,track:f,fixedCacheKey:_}),u=I(v),{requestId:y,abort:P,unwrap:M}=u,T=Do(u.unwrap().then(D=>({data:D})),D=>({error:D})),x=()=>{I(h({requestId:y,fixedCacheKey:_}))},q=Object.assign(T,{arg:u.arg,requestId:y,abort:P,unwrap:M,reset:x}),k=d(I);return k.set(y,q),q.then(()=>{k.delete(y)}),_&&(k.set(_,q),q.then(()=>{k.get(_)===q&&k.delete(_)})),q}}}var Gn=class extends yo{constructor(e,t,r,n){super(e),this.value=t,this.schemaName=r,this._bqMeta=n}value;schemaName;_bqMeta},ge=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function me(e,t,r,n){const i=await e["~standard"].validate(t);if(i.issues)throw new Gn(i.issues,t,r,n);return i.value}function tn(e){return e}var ke=(e={})=>({...e,[Tt]:!0});function xo({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:s,selectors:o,onSchemaFailure:p,catchSchemaFailure:d,skipSchemaValidation:b}){const h=(u,y,P,M)=>(T,x)=>{const q=r[u],k=n({queryArgs:y,endpointDefinition:q,endpointName:u});if(T(i.internalActions.queryResultPatched({queryCacheKey:k,patches:P})),!M)return;const D=i.endpoints[u].select(y)(x()),N=Rr(q.providesTags,D.data,void 0,y,{},s);T(i.internalActions.updateProvidedBy([{queryCacheKey:k,providedTags:N}]))};function g(u,y,P=0){const M=[y,...u];return P&&M.length>P?M.slice(0,-1):M}function C(u,y,P=0){const M=[...u,y];return P&&M.length>P?M.slice(1):M}const R=(u,y,P,M=!0)=>(T,x)=>{const k=i.endpoints[u].select(y)(x()),D={patches:[],inversePatches:[],undo:()=>T(i.util.patchQueryData(u,y,D.inversePatches,M))};if(k.status===le)return D;let N;if("data"in k)if(J(k.data)){const[F,W,V]=Cn(k.data,P);D.patches.push(...W),D.inversePatches.push(...V),N=F}else N=P(k.data),D.patches.push({op:"replace",path:[],value:N}),D.inversePatches.push({op:"replace",path:[],value:k.data});return D.patches.length===0||T(i.util.patchQueryData(u,y,D.patches,M)),D},S=(u,y,P)=>M=>M(i.endpoints[u].initiate(y,{subscribe:!1,forceRefetch:!0,[Ke]:()=>({data:P})})),O=(u,y)=>u.query&&u[y]?u[y]:tn,m=async(u,{signal:y,abort:P,rejectWithValue:M,fulfillWithValue:T,dispatch:x,getState:q,extra:k})=>{const D=r[u.endpointName],{metaSchema:N,skipSchemaValidation:F=b}=D,W=u.type===rt;try{let V=tn;const z={signal:y,abort:P,dispatch:x,getState:q,extra:k,endpoint:u.endpointName,type:u.type,forced:W?E(u,q()):void 0,queryCacheKey:W?u.queryCacheKey:void 0},K=W?u[Ke]:void 0;let L;const j=async(U,$,ie,X)=>{if($==null&&U.pages.length)return Promise.resolve({data:U});const we={queryArg:u.originalArgs,pageParam:$},se=await B(we),Pe=X?g:C;return{data:{pages:Pe(U.pages,se.data,ie),pageParams:Pe(U.pageParams,$,ie)},meta:se.meta}};async function B(U){let $;const{extraOptions:ie,argSchema:X,rawResponseSchema:we,responseSchema:se}=D;if(X&&!ge(F,"arg")&&(U=await me(X,U,"argSchema",{})),K?$=K():D.query?(V=O(D,"transformResponse"),$=await t(D.query(U),z,ie)):$=await D.queryFn(U,z,ie,Ee=>t(Ee,z,ie)),typeof process<"u",$.error)throw new Ce($.error,$.meta);let{data:Pe}=$;we&&!ge(F,"rawResponse")&&(Pe=await me(we,$.data,"rawResponseSchema",$.meta));let de=await V(Pe,$.meta,U);return se&&!ge(F,"response")&&(de=await me(se,de,"responseSchema",$.meta)),{...$,data:de}}if(W&&"infiniteQueryOptions"in D){const{infiniteQueryOptions:U}=D,{maxPages:$=1/0}=U,ie=u.refetchCachedPages??U.refetchCachedPages??!0;let X;const we={pages:[],pageParams:[]},se=o.selectQueryEntry(q(),u.queryCacheKey)?.data,de=E(u,q())&&!u.direction||!se?we:se;if("direction"in u&&u.direction&&de.pages.length){const Ee=u.direction==="backward",Ft=(Ee?Yn:cr)(U,de,u.originalArgs);X=await j(de,Ft,$,Ee)}else{const{initialPageParam:Ee=U.initialPageParam}=u,qt=se?.pageParams??[],Ft=qt[0]??Ee,ri=qt.length;if(X=await j(de,Ft,$),K&&(X={data:X.data.pages[0]}),ie)for(let Or=1;Or<ri;Or++){const ni=cr(U,X.data,u.originalArgs);X=await j(X.data,ni,$)}}L=X}else L=await B(u.originalArgs);return N&&!ge(F,"meta")&&L.meta&&(L.meta=await me(N,L.meta,"metaSchema",L.meta)),T(L.data,ke({fulfilledTimeStamp:Date.now(),baseQueryMeta:L.meta}))}catch(V){let z=V;if(z instanceof Ce){let K=O(D,"transformErrorResponse");const{rawErrorResponseSchema:L,errorResponseSchema:j}=D;let{value:B,meta:U}=z;try{L&&!ge(F,"rawErrorResponse")&&(B=await me(L,B,"rawErrorResponseSchema",U)),N&&!ge(F,"meta")&&(U=await me(N,U,"metaSchema",U));let $=await K(B,U,u.originalArgs);return j&&!ge(F,"errorResponse")&&($=await me(j,$,"errorResponseSchema",U)),M($,ke({baseQueryMeta:U}))}catch($){z=$}}
vendor: 10,254 bytes, line 9
9try{if(z instanceof Gn){const K={endpoint:u.endpointName,arg:u.originalArgs,type:u.type,queryCacheKey:W?u.queryCacheKey:void 0};D.onSchemaFailure?.(z,K),p?.(z,K);const{catchSchemaFailure:L=d}=D;if(L)return M(L(z,K),ke({baseQueryMeta:z._bqMeta}))}}catch(K){z=K}throw z}};function E(u,y){const P=o.selectQueryEntry(y,u.queryCacheKey),M=o.selectConfig(y).refetchOnMountOrArgChange,T=P?.fulfilledTimeStamp,x=u.forceRefetch??(u.subscribe&&M);return x?x===!0||(Number(new Date)-Number(T))/1e3>=x:!1}const A=()=>Wr(`${e}/executeQuery`,m,{getPendingMeta({arg:y}){const P=r[y.endpointName];return ke({startedTimeStamp:Date.now(),...Nt(P)?{direction:y.direction}:{}})},condition(y,{getState:P}){const M=P(),T=o.selectQueryEntry(M,y.queryCacheKey),x=T?.fulfilledTimeStamp,q=y.originalArgs,k=T?.originalArgs,D=r[y.endpointName],N=y.direction;return ar(y)?!0:T?.status==="pending"?!1:E(y,M)||Qt(D)&&D?.forceRefetch?.({currentArg:q,previousArg:k,endpointState:T,state:M})?!0:!(x&&!N)},dispatchConditionRejection:!0}),l=A(),c=A(),a=Wr(`${e}/executeMutation`,m,{getPendingMeta(){return ke({startedTimeStamp:Date.now()})}}),f=u=>"force"in u,_=u=>"ifOlderThan"in u,I=(u,y,P={})=>(M,T)=>{const x=f(P)&&P.force,q=_(P)&&P.ifOlderThan,k=(N=!0)=>{const F={forceRefetch:N,subscribe:!1};return i.endpoints[u].initiate(y,F)},D=i.endpoints[u].select(y)(T());if(x)M(k());else if(q){const N=D?.fulfilledTimeStamp;if(!N){M(k());return}(Number(new Date)-Number(new Date(N)))/1e3>=q&&M(k())}else M(k(!1))};function w(u){return y=>y?.meta?.arg?.endpointName===u}function v(u,y){return{matchPending:Ue(hr(u),w(y)),matchFulfilled:Ue(he(u),w(y)),matchRejected:Ue(Ae(u),w(y))}}return{queryThunk:l,mutationThunk:a,infiniteQueryThunk:c,prefetch:I,updateQueryData:R,upsertQueryData:S,patchQueryData:h,buildMatchThunkActions:v}}function cr(e,{pages:t,pageParams:r},n){const i=t.length-1;return e.getNextPageParam(t[i],t,r[i],r,n)}function Yn(e,{pages:t,pageParams:r},n){return e.getPreviousPageParam?.(t[0],t,r[0],r,n)}function Jn(e,t,r,n){return Rr(r[e.meta.arg.endpointName][t],he(e)?e.payload:void 0,kt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function rn(e){return ee(e)?On(e):e}function ut(e,t,r){const n=e[t];n&&r(n)}function Be(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function nn(e,t,r){const n=e[Be(t)];n&&r(n)}var at={};function Qo({reducerPath:e,queryThunk:t,mutationThunk:r,serializeQueryArgs:n,context:{endpointDefinitions:i,apiUid:s,extractRehydrationInfo:o,hasRehydrationInfo:p},assertTagType:d,config:b}){const h=ne(`${e}/resetApiState`);function g(w,v,u,y){w[v.queryCacheKey]??={status:le,endpointName:v.endpointName},ut(w,v.queryCacheKey,P=>{P.status=sr,P.requestId=u&&P.requestId?P.requestId:y.requestId,v.originalArgs!==void 0&&(P.originalArgs=v.originalArgs),P.startedTimeStamp=y.startedTimeStamp;const M=i[y.arg.endpointName];Nt(M)&&"direction"in v&&(P.direction=v.direction)})}function C(w,v,u,y){ut(w,v.arg.queryCacheKey,P=>{if(P.requestId!==v.requestId&&!y)return;const{merge:M}=i[v.arg.endpointName];if(P.status=Ne,M)if(P.data!==void 0){const{fulfilledTimeStamp:T,arg:x,baseQueryMeta:q,requestId:k}=v;let D=et(P.data,N=>M(N,u,{arg:x.originalArgs,baseQueryMeta:q,fulfilledTimeStamp:T,requestId:k}));P.data=D}else P.data=u;else P.data=i[v.arg.endpointName].structuralSharing??!0?_r(ee(P.data)?zi(P.data):P.data,u):u;delete P.error,P.fulfilledTimeStamp=v.fulfilledTimeStamp})}const R=Re({name:`${e}/queries`,initialState:at,reducers:{removeQueryResult:{reducer(w,{payload:{queryCacheKey:v}}){delete w[v]},prepare:De()},cacheEntriesUpserted:{reducer(w,v){for(const u of v.payload){const{queryDescription:y,value:P}=u;g(w,y,!0,{arg:y,requestId:v.meta.requestId,startedTimeStamp:v.meta.timestamp}),C(w,{arg:y,requestId:v.meta.requestId,fulfilledTimeStamp:v.meta.timestamp,baseQueryMeta:{}},P,!0)}},prepare:w=>({payload:w.map(y=>{const{endpointName:P,arg:M,value:T}=y,x=i[P];return{queryDescription:{type:rt,endpointName:P,originalArgs:y.arg,queryCacheKey:n({queryArgs:M,endpointDefinition:x,endpointName:P})},value:T}}),meta:{[Tt]:!0,requestId:gr(),timestamp:Date.now()}})},queryResultPatched:{reducer(w,{payload:{queryCacheKey:v,patches:u}}){ut(w,v,y=>{y.data=qr(y.data,u.concat())})},prepare:De()}},extraReducers(w){w.addCase(t.pending,(v,{meta:u,meta:{arg:y}})=>{const P=ar(y);g(v,y,P,u)}).addCase(t.fulfilled,(v,{meta:u,payload:y})=>{const P=ar(u.arg);C(v,u,y,P)}).addCase(t.rejected,(v,{meta:{condition:u,arg:y,requestId:P},error:M,payload:T})=>{ut(v,y.queryCacheKey,x=>{if(!u){if(x.requestId!==P)return;x.status=qe,x.error=T??M}})}).addMatcher(p,(v,u)=>{const{queries:y}=o(u);for(const[P,M]of Object.entries(y))(M?.status===Ne||M?.status===qe)&&(v[P]=M)})}}),S=Re({name:`${e}/mutations`,initialState:at,reducers:{removeMutationResult:{reducer(w,{payload:v}){const u=Be(v);u in w&&delete w[u]},prepare:De()}},extraReducers(w){w.addCase(r.pending,(v,{meta:u,meta:{requestId:y,arg:P,startedTimeStamp:M}})=>{P.track&&(v[Be(u)]={requestId:y,status:sr,endpointName:P.endpointName,startedTimeStamp:M})}).addCase(r.fulfilled,(v,{payload:u,meta:y})=>{y.arg.track&&nn(v,y,P=>{P.requestId===y.requestId&&(P.status=Ne,P.data=u,P.fulfilledTimeStamp=y.fulfilledTimeStamp)})}).addCase(r.rejected,(v,{payload:u,error:y,meta:P})=>{P.arg.track&&nn(v,P,M=>{M.requestId===P.requestId&&(M.status=qe,M.error=u??y)})}).addMatcher(p,(v,u)=>{const{mutations:y}=o(u);for(const[P,M]of Object.entries(y))(M?.status===Ne||M?.status===qe)&&P!==M?.requestId&&(v[P]=M)})}}),O={tags:{},keys:{}},m=Re({name:`${e}/invalidation`,initialState:O,reducers:{updateProvidedBy:{reducer(w,v){for(const{queryCacheKey:u,providedTags:y}of v.payload){E(w,u);for(const{type:P,id:M}of y){const T=(w.tags[P]??={})[M||"__internal_without_id"]??=[];T.includes(u)||T.push(u)}w.keys[u]=y}},prepare:De()}},extraReducers(w){w.addCase(R.actions.removeQueryResult,(v,{payload:{queryCacheKey:u}})=>{E(v,u)}).addMatcher(p,(v,u)=>{const{provided:y}=o(u);for(const[P,M]of Object.entries(y.tags??{}))for(const[T,x]of Object.entries(M)){const q=(v.tags[P]??={})[T||"__internal_without_id"]??=[];for(const k of x)q.includes(k)||q.push(k),v.keys[k]=y.keys[k]}}).addMatcher(fe(he(t),kt(t)),(v,u)=>{A(v,[u])}).addMatcher(R.actions.cacheEntriesUpserted.match,(v,u)=>{const y=u.payload.map(({queryDescription:P,value:M})=>({type:"UNKNOWN",payload:M,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:P}}));A(v,y)})}});function E(w,v){const u=rn(w.keys[v]??[]);for(const y of u){const P=y.type,M=y.id??"__internal_without_id",T=w.tags[P]?.[M];T&&(w.tags[P][M]=rn(T).filter(x=>x!==v))}delete w.keys[v]}function A(w,v){const u=v.map(y=>{const P=Jn(y,"providesTags",i,d),{queryCacheKey:M}=y.meta.arg;return{queryCacheKey:M,providedTags:P}});m.caseReducers.updateProvidedBy(w,m.actions.updateProvidedBy(u))}const l=Re({name:`${e}/subscriptions`,initialState:at,reducers:{updateSubscriptionOptions(w,v){},unsubscribeQueryResult(w,v){},internal_getRTKQSubscriptions(){}}}),c=Re({name:`${e}/internalSubscriptions`,initialState:at,reducers:{subscriptionsUpdated:{reducer(w,v){return qr(w,v.payload)},prepare:De()}}}),a=Re({name:`${e}/config`,initialState:{online:mo(),focused:go(),middlewareRegistered:!1,...b},reducers:{middlewareRegistered(w,{payload:v}){w.middlewareRegistered=w.middlewareRegistered==="conflict"||s!==v?"conflict":!0}},extraReducers:w=>{w.addCase(Er,v=>{v.online=!0}).addCase(Vn,v=>{v.online=!1}).addCase(Pr,v=>{v.focused=!0}).addCase(Wn,v=>{v.focused=!1}).addMatcher(p,v=>({...v}))}}),f=vn({queries:R.reducer,mutations:S.reducer,provided:m.reducer,subscriptions:c.reducer,config:a.reducer}),_=(w,v)=>f(h.match(v)?void 0:w,v),I={...a.actions,...R.actions,...l.actions,...c.actions,...S.actions,...m.actions,resetApiState:h};return{reducer:_,actions:I}}var re=Symbol.for("RTKQ/skipToken"),Xn={status:le},sn=et(Xn,()=>{}),on=et(Xn,()=>{});function No({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=l=>sn,i=l=>on;return{buildQuerySelector:C,buildInfiniteQuerySelector:R,buildMutationSelector:S,selectInvalidatedBy:O,selectCachedArgsForQuery:m,selectApiState:o,selectQueries:p,selectMutations:b,selectQueryEntry:d,selectConfig:h};function s(l){return{...l,...Gr(l.status)}}function o(l){return l[t]}function p(l){return o(l)?.queries}function d(l,c){return p(l)?.[c]}function b(l){return o(l)?.mutations}function h(l){return o(l)?.config}function g(l,c,a){return f=>{if(f===re)return r(n,a);const _=e({queryArgs:f,endpointDefinition:c,endpointName:l});return r(w=>d(w,_)??sn,a)}}function C(l,c){return g(l,c,s)}function R(l,c){const{infiniteQueryOptions:a}=c;function f(_){const I={..._,...Gr(_.status)},{isLoading:w,isError:v,direction:u}=I,y=u==="forward",P=u==="backward";return{...I,hasNextPage:E(a,I.data,I.originalArgs),hasPreviousPage:A(a,I.data,I.originalArgs),isFetchingNextPage:w&&y,isFetchingPreviousPage:w&&P,isFetchNextPageError:v&&y,isFetchPreviousPageError:v&&P}}return g(l,c,f)}function S(){return l=>{let c;return typeof l=="object"?c=Be(l)??re:c=l,r(c===re?i:_=>o(_)?.mutations?.[c]??on,s)}}function O(l,c){const a=l[t],f=new Set,_=or(c,wr,Hn);for(const I of _){const w=a.provided.tags[I.type];if(!w)continue;let v=(I.id!==void 0?w[I.id]:Object.values(w).flat())??[];for(const u of v)f.add(u)}return Array.from(f.values()).flatMap(I=>{const w=a.queries[I];return w?{queryCacheKey:I,endpointName:w.endpointName,originalArgs:w.originalArgs}:[]})}function m(l,c){return or(Object.values(p(l)),a=>a?.endpointName===c&&a.status!==le,a=>a.originalArgs)}function E(l,c,a){return c?cr(l,c,a)!=null:!1}function A(l,c,a){return!c||!l.getPreviousPageParam?!1:Yn(l,c,a)!=null}}var un=WeakMap?new WeakMap:void 0,an=({endpointName:e,queryArgs:t})=>{let r="";const n=un?.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(s,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=ye(o)?Object.keys(o).sort().reduce((p,d)=>(p[d]=o[d],p),{}):o,o));ye(t)&&un?.set(t,i),r=i}return`${e}(${r})`};function Zn(...e){return function(r){const n=Ot(b=>r.extractRehydrationInfo?.(b,{reducerPath:r.reducerPath??"api"})),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(b){let h=an;
vendor: 5,563 bytes, line 9
9if("serializeQueryArgs"in b.endpointDefinition){const g=b.endpointDefinition.serializeQueryArgs;h=C=>{const R=g(C);return typeof R=="string"?R:an({...C,queryArgs:R})}}else r.serializeQueryArgs&&(h=r.serializeQueryArgs);return h(b)},tagTypes:[...r.tagTypes||[]]},s={endpointDefinitions:{},batch(b){b()},apiUid:gr(),extractRehydrationInfo:n,hasRehydrationInfo:Ot(b=>n(b)!=null)},o={injectEndpoints:d,enhanceEndpoints({addTagTypes:b,endpoints:h}){if(b)for(const g of b)i.tagTypes.includes(g)||i.tagTypes.push(g);if(h)for(const[g,C]of Object.entries(h))typeof C=="function"?C(Te(s,g)):Object.assign(Te(s,g)||{},C);return o}},p=e.map(b=>b.init(o,i,s));function d(b){const h=b.endpoints({query:g=>({...g,type:rt}),mutation:g=>({...g,type:Kn}),infiniteQuery:g=>({...g,type:Bn})});for(const[g,C]of Object.entries(h)){if(b.overrideExisting!==!0&&g in s.endpointDefinitions){if(b.overrideExisting==="throw")throw new Error(te(39));continue}s.endpointDefinitions[g]=C;for(const R of p)R.injectEndpoint(g,C)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function ue(e,...t){return Object.assign(e,...t)}var qo=({api:e,queryThunk:t,internalState:r,mwApi:n})=>{const i=`${e.reducerPath}/subscriptions`;let s=null,o=null;const{updateSubscriptionOptions:p,unsubscribeQueryResult:d}=e.internalActions,b=(O,m)=>{if(p.match(m)){const{queryCacheKey:A,requestId:l,options:c}=m.payload,a=O.get(A);return a?.has(l)&&a.set(l,c),!0}if(d.match(m)){const{queryCacheKey:A,requestId:l}=m.payload,c=O.get(A);return c&&c.delete(l),!0}if(e.internalActions.removeQueryResult.match(m))return O.delete(m.payload.queryCacheKey),!0;if(t.pending.match(m)){const{meta:{arg:A,requestId:l}}=m,c=It(O,A.queryCacheKey,ur);return A.subscribe&&c.set(l,A.subscriptionOptions??c.get(l)??{}),!0}let E=!1;if(t.rejected.match(m)){const{meta:{condition:A,arg:l,requestId:c}}=m;if(A&&l.subscribe){const a=It(O,l.queryCacheKey,ur);a.set(c,l.subscriptionOptions??a.get(c)??{}),E=!0}}return E},h=()=>r.currentSubscriptions,R={getSubscriptions:h,getSubscriptionCount:O=>h().get(O)?.size??0,isRequestSubscribed:(O,m)=>!!h()?.get(O)?.get(m)};function S(O){return JSON.parse(JSON.stringify(Object.fromEntries([...O].map(([m,E])=>[m,Object.fromEntries(E)]))))}return(O,m)=>{if(s||(s=S(r.currentSubscriptions)),e.util.resetApiState.match(O))return s={},r.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(O))return[!1,R];const E=b(r.currentSubscriptions,O);let A=!0;if(E){o||(o=setTimeout(()=>{const a=S(r.currentSubscriptions),[,f]=Cn(s,()=>a);m.next(e.internalActions.subscriptionsUpdated(f)),s=a,o=null},500));const l=typeof O.type=="string"&&!!O.type.startsWith(i),c=t.rejected.match(O)&&O.meta.condition&&!!O.meta.arg.subscribe;A=!l&&!c}return[A,!1]}},Fo=2147483647/1e3-1,jo=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i,selectors:{selectQueryEntry:s,selectConfig:o},getRunningQueryThunk:p,mwApi:d})=>{const{removeQueryResult:b,unsubscribeQueryResult:h,cacheEntriesUpserted:g}=t.internalActions,C=fe(h.match,r.fulfilled,r.rejected,g.match);function R(l){const c=i.currentSubscriptions.get(l);return c?c.size>0:!1}const S={};function O(l){for(const c of l.values())c?.abort?.()}const m=(l,c)=>{const a=c.getState(),f=o(a);if(C(l)){let _;if(g.match(l))_=l.payload.map(I=>I.queryDescription.queryCacheKey);else{const{queryCacheKey:I}=h.match(l)?l.payload:l.meta.arg;_=[I]}E(_,c,f)}if(t.util.resetApiState.match(l)){for(const[_,I]of Object.entries(S))I&&clearTimeout(I),delete S[_];O(i.runningQueries),O(i.runningMutations)}if(n.hasRehydrationInfo(l)){const{queries:_}=n.extractRehydrationInfo(l);E(Object.keys(_),c,f)}};function E(l,c,a){const f=c.getState();for(const _ of l){const I=s(f,_);I?.endpointName&&A(_,I.endpointName,c,a)}}function A(l,c,a,f){const I=Te(n,c)?.keepUnusedDataFor??f.keepUnusedDataFor;if(I===1/0)return;const w=Math.max(0,Math.min(I,Fo));if(!R(l)){const v=S[l];v&&clearTimeout(v),S[l]=setTimeout(()=>{if(!R(l)){const u=s(a.getState(),l);u?.endpointName&&a.dispatch(p(u.endpointName,u.originalArgs))?.abort(),a.dispatch(b({queryCacheKey:l}))}delete S[l]},w*1e3)}}return m},cn=new Error("Promise never resolved before cacheEntryRemoved."),Uo=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:s,selectors:{selectQueryEntry:o,selectApiState:p}})=>{const d=nr(n),b=nr(i),h=he(n,i),g={},{removeQueryResult:C,removeMutationResult:R,cacheEntriesUpserted:S}=e.internalActions;function O(a,f,_){const I=g[a];I?.valueResolved&&(I.valueResolved({data:f,meta:_}),delete I.valueResolved)}function m(a){const f=g[a];f&&(delete g[a],f.cacheEntryRemoved())}function E(a){const{arg:f,requestId:_}=a.meta,{endpointName:I,originalArgs:w}=f;return[I,w,_]}const A=(a,f,_)=>{const I=l(a);function w(v,u,y,P){const M=o(_,u),T=o(f.getState(),u);!M&&T&&c(v,P,u,f,y)}if(n.pending.match(a)){const[v,u,y]=E(a);w(v,I,y,u)}else if(S.match(a))for(const{queryDescription:v,value:u}of a.payload){const{endpointName:y,originalArgs:P,queryCacheKey:M}=v;w(y,M,a.meta.requestId,P),O(M,u,{})}else if(i.pending.match(a)){if(f.getState()[t].mutations[I]){const[u,y,P]=E(a);c(u,y,I,f,P)}}else if(h(a))O(I,a.payload,a.meta.baseQueryMeta);else if(C.match(a)||R.match(a))m(I);else if(e.util.resetApiState.match(a))for(const v of Object.keys(g))m(v)};function l(a){return d(a)?a.meta.arg.queryCacheKey:b(a)?a.meta.arg.fixedCacheKey??a.meta.requestId:C.match(a)?a.payload.queryCacheKey:R.match(a)?Be(a.payload):""}function c(a,f,_,I,w){const v=Te(r,a),u=v?.onCacheEntryAdded;if(!u)return;const y={},P=new Promise(D=>{y.cacheEntryRemoved=D}
9),M=Promise.race([new Promise(D=>{y.valueResolved=D}),P.then(()=>{throw cn})]);M.catch(()=>{}),g[_]=y;const T=e.endpoints[a].select(Ct(v)?f:_),x=I.dispatch((D,N,F)=>F),q={...I,getCacheEntry:()=>T(I.getState()),requestId:w,extra:x,updateCachedData:Ct(v)?D=>I.dispatch(e.util.updateQueryData(a,f,D)):void 0,cacheDataLoaded:M,cacheEntryRemoved:P},k=u(f,q);Promise.resolve(k).catch(D=>{if(D!==cn)throw D})}return A},zo=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},$o=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:s,assertTagType:o,refetchQuery:p,internalState:d})=>{const{removeQueryResult:b}=s.internalActions,h=fe(he(n),kt(n)),g=fe(he(i,n),Ae(i,n));let C=[],R=0;const S=(E,A)=>{(i.pending.match(E)||n.pending.match(E))&&R++,g(E)&&(R=Math.max(0,R-1)),h(E)?m(Jn(E,"invalidatesTags",r,o),A):g(E)?m([],A):s.util.invalidateTags.match(E)&&m(Rr(E.payload,void 0,void 0,void 0,void 0,o),A)};function O(){return R>0}function m(E,A){const l=A.getState(),c=l[e];if(C.push(...E),c.config.invalidationBehavior==="delayed"&&O())return;const a=C;if(C=[],a.length===0)return;const f=s.util.selectInvalidatedBy(l,a);t.batch(()=>{const _=Array.from(f.values());for(const{queryCacheKey:I}of _){const w=c.queries[I],v=It(d.currentSubscriptions,I,ur);w&&(v.size===0?A.dispatch(b({queryCacheKey:I})):w.status!==le&&A.dispatch(p(w)))}})}return S},Lo=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const{currentPolls:s,currentSubscriptions:o}=i,p=new Set;let d=null;const b=(m,E)=>{(r.internalActions.updateSubscriptionOptions.match(m)||r.internalActions.unsubscribeQueryResult.match(m))&&h(m.payload.queryCacheKey,E),(t.pending.match(m)||t.rejected.match(m)&&m.meta.condition)&&h(m.meta.arg.queryCacheKey,E),(t.fulfilled.match(m)||t.rejected.match(m)&&!m.meta.condition)&&g(m.meta.arg,E),r.util.resetApiState.match(m)&&(S(),d&&(clearTimeout(d),d=null),p.clear())};function h(m,E){p.add(m),d||(d=setTimeout(()=>{for(const A of p)C({queryCacheKey:A},E);p.clear(),d=null},0))}function g({queryCacheKey:m},E){const A=E.getState()[e],l=A.queries[m],c=o.get(m);if(!l||l.status===le)return;const{lowestPollingInterval:a,skipPollingIfUnfocused:f}=O(c);if(!Number.isFinite(a))return;const _=s.get(m);_?.timeout&&(clearTimeout(_.timeout),_.timeout=void 0);const I=Date.now()+a;s.set(m,{nextPollTimestamp:I,pollingInterval:a,timeout:setTimeout(()=>{(A.config.focused||!f)&&E.dispatch(n(l)),g({queryCacheKey:m},E)},a)})}function C({queryCacheKey:m},E){const l=E.getState()[e].queries[m],c=o.get(m);if(!l||l.status===le)return;const{lowestPollingInterval:a}=O(c);if(!Number.isFinite(a)){R(m);return}const f=s.get(m),_=Date.now()+a;(!f||_<f.nextPollTimestamp)&&g({queryCacheKey:m},E)}function R(m){const E=s.get(m);E?.timeout&&clearTimeout(E.timeout),s.delete(m)}function S(){for(const m of s.keys())R(m)}function O(m=new Map){let E=!1,A=Number.POSITIVE_INFINITY;for(const l of m.values())l.pollingInterval&&(A=Math.min(l.pollingInterval,A),E=l.skipPollingIfUnfocused||E);return{lowestPollingInterval:A,skipPollingIfUnfocused:E}}return b},Wo=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=hr(r,n),s=Ae(r,n),o=he(r,n),p={};return(b,h)=>{if(i(b)){const{requestId:g,arg:{endpointName:C,originalArgs:R}}=b.meta,S=Te(t,C),O=S?.onQueryStarted;if(O){const m={},E=new Promise((a,f)=>{m.resolve=a,m.reject=f});E.catch(()=>{}),p[g]=m;const A=e.endpoints[C].select(Ct(S)?R:g),l=h.dispatch((a,f,_)=>_),c={...h,getCacheEntry:()=>A(h.getState()),requestId:g,extra:l,updateCachedData:Ct(S)?a=>h.dispatch(e.util.updateQueryData(C,R,a)):void 0,queryFulfilled:E};O(R,c)}}else if(o(b)){const{requestId:g,baseQueryMeta:C}=b.meta;p[g]?.resolve({data:b.payload,meta:C}),delete p[g]}else if(s(b)){const{requestId:g,rejectedWithValue:C,baseQueryMeta:R}=b.meta;p[g]?.reject({error:b.payload??b.error,isUnhandledError:!C,meta:R}),delete p[g]}}},Vo=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:s}=r.internalActions,o=(d,b)=>{Pr.match(d)&&p(b,"refetchOnFocus"),Er.match(d)&&p(b,"refetchOnReconnect")};function p(d,b){const h=d.getState()[e],g=h.queries,C=i.currentSubscriptions;t.batch(()=>{for(const R of C.keys()){const S=g[R],O=C.get(R);if(!O||!S)continue;const m=[...O.values()];(m.some(A=>A[b]===!0)||m.every(A=>
vendor: 1,081 bytes, line 9
9A[b]===void 0)&&h.config[b])&&(O.size===0?d.dispatch(s({queryCacheKey:R})):S.status!==le&&d.dispatch(n(S)))}})}return o};function Ko(e){const{reducerPath:t,queryThunk:r,api:n,context:i,getInternalState:s}=e,{apiUid:o}=i,p={invalidateTags:ne(`${t}/invalidateTags`)},d=C=>C.type.startsWith(`${t}/`),b=[zo,jo,$o,Lo,Uo,Wo];return{middleware:C=>{let R=!1;const S=s(C.dispatch),O={...e,internalState:S,refetchQuery:g,isThisApiSliceAction:d,mwApi:C},m=b.map(l=>l(O)),E=qo(O),A=Vo(O);return l=>c=>{if(!bn(c))return l(c);R||(R=!0,C.dispatch(n.internalActions.middlewareRegistered(o)));const a={...C,next:l},f=C.getState(),[_,I]=E(c,a,f);let w;if(_?w=l(c):w=I,C.getState()[t]&&(A(c,a,f),d(c)||i.hasRehydrationInfo(c)))for(const v of m)v(c,a,f);return w}},actions:p};function g(C){return e.api.endpoints[C.endpointName].initiate(C.originalArgs,{subscribe:!1,forceRefetch:!0})}}var fn=Symbol(),ei=({createSelector:e=An}={})=>({name:fn,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:s,keepUnusedDataFor:o,refetchOnMountOrArgChange:p,refetchOnFocus:d,refetchOnReconnect:b,invali
9dationBehavior:h,onSchemaFailure:g,catchSchemaFailure:C,skipSchemaValidation:R},S){ns();const O=j=>j;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:Er,onOffline:Vn,onFocus:Pr,onFocusLost:Wn},util:{}});const m=No({serializeQueryArgs:s,reducerPath:i,createSelector:e}),{selectInvalidatedBy:E,selectCachedArgsForQuery:A,buildQuerySelector:l,buildInfiniteQuerySelector:c,buildMutationSelector:a}=m;ue(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:A});const{queryThunk:f,infiniteQueryThunk:_,mutationThunk:I,patchQueryData:w,updateQueryData:v,upsertQueryData:u,prefetch:y,buildMatchThunkActions:P}=xo({baseQuery:r,reducerPath:i,context:S,api:t,serializeQueryArgs:s,assertTagType:O,selectors:m,onSchemaFailure:g,catchSchemaFailure:C,skipSchemaValidation:R}),{reducer:M,actions:T}=Qo({context:S,queryThunk:f,mutationThunk:I,serializeQueryArgs:s,reducerPath:i,assertTagType:O,config:{refetchOnFocus:d,refetchOnReconnect:b,refetchOnMountOrArgChange:p,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:h}});ue(t.util,{patchQueryData:w,updateQueryData:v,upsertQueryData:u,prefetch:y,resetApiState:T.resetApiState,upsertQueryEntries:T.cacheEntriesUpserted}),ue(t.internalActions,T);const x=new WeakMap,q=j=>It(x,j,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:k,buildInitiateInfiniteQuery:D,buildInitiateMutation:N,getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueriesThunk:V,getRunningQueryThunk:z}=ko({queryThunk:f,mutationThunk:I,infiniteQueryThunk:_,api:t,serializeQueryArgs:s,context:S,getInternalState:q});ue(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueryThunk:z,getRunningQueriesThunk:V});const{middleware:K,actions:L}=Ko({reducerPath:i,context:S,queryThunk:f,mutationThunk:I,infiniteQueryThunk:_,api:t,assertTagType:O,selectors:m,getRunningQueryThunk:z,getInternalState:q});return ue(t.util,L),ue(t,{reducer:M,middleware:K}),{name:fn,injectEndpoint(j,B){const U=t,$=U.endpoints[j]??={};Qt(B)&&ue($,{name:j,select:l(j,B),initiate:k(j,B)},P(f,j)),Ao(B)&&ue($,{name:j,select:a(),initiate:N(j)},P(I,j)),Nt(B)&&ue($,{name:j,select:c(j,B),initiate:D(j,B)},P(f,j))}}}});ei();function ct(e){return e.replace(e[0],e[0].toUpperCase())}var Bo="query",Ho="mutation",Go="infinitequery";function Yo(e){return e.type===Bo}function Jo(e){return e.type===Ho}function ti(e){return e.type===Go}function xe(e,...t){return Object.assign(e,...t)}var Vt=Symbol();function Kt(e){const t=Q.useRef(e),r=Q.useMemo(()=>_r(t.current,e),[e]);return Q.useEffect(()=>{t.current!==r&&(t.current=r)},[r]),r}function Oe(e){const t=Q.useRef(e);return Q.useEffect(()=>{Fe(t.current,e)||(t.current=e)},[e]),Fe(t.current,e)?t.current:e}var Xo=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zo=Xo(),eu=()=>typeof navigator<"u"&&navigator.product==="ReactNative",tu=eu(),ru=()=>Zo||tu?Q.useLayoutEffect:Q.useEffect,nu=ru(),ln=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:zn.pending}:e;function Bt(e,...t){const r={};return t.forEach(n=>{r[n]=e[n]}),r}var Ht=["data","status","isLoading","isSuccess","isError","error"];function iu({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:s,createSelector:o},serializeQueryArgs:p,context:d}){const b=s?f=>f():Q.useEffect,h=f=>f.current?.unsubscribe?.(),g=d.endpointDefinitions;return{buildQueryHooks:l,buildInfiniteQueryHooks:c,buildMutationHook:a,usePrefetch:S};function C(f,_,I){if(_?.endpointName&&f.isUninitialized){const{endpointName:M}=_,T=g[M];I!==re&&p({queryArgs:_.originalArgs,endpointDefinition:T,endpointName:M})===p({queryArgs:I,endpointDefinition:T,endpointName:M})&&(_=void 0)}let w=f.isSuccess?f.data:_?.data;w===void 0&&(w=f.data);const v=w!==void 0,u=f.isLoading,y=(!_||_.isLoading||_.isUninitialized)&&!v&&u,P=f.isSuccess||v&&(u&&!_?.isError||f.isUninitialized);return{...f,data:w,currentData:f.data,isFetching:u,isLoading:y,isSuccess:P}}function R(f,_,I){if(_?.endpointName&&f.isUninitialized){const{endpointName:M}=_,T=g[M];I!==re&&p({queryArgs:_.originalArgs,endpointDefinition:T,endpointName:M})===p({queryArgs:I,endpointDefinition:T,endpointName:M})&&(_=void 0)}let w=f.isSuccess?f.data:_?.data;w===void 0&&(w=f.data);const v=w!==void 0,u=f.isLoading,y=(!_||_.isLoading||_.isUninitialized)&&!v&&u,P=f.isSuccess||v&&(u&&!_?.isError||f.isUninitialized);return{...f,data:w,currentData:f.data,isFetching:u,isLoading:y,isSuccess:P}}function S(f,_){const I=r(),w=Oe(_);return Q.useCallback((v,u)=>I(e.util.prefetch(f,v,{...w,...u})),[f,I,w])}function O(f,_,{refetchOnReconnect:I,refetchOnFocus:w,refetchOnMountOrArgChange:v,ski
9p:u=!1,pollingInterval:y=0,skipPollingIfUnfocused:P=!1,...M}={}){const{initiate:T}=e.endpoints[f],x=r(),q=Q.useRef(void 0);if(!q.current){const U=x(e.internalActions.internal_getRTKQSubscriptions());q.current=U}const k=Kt(u?re:_),D=Oe({refetchOnReconnect:I,refetchOnFocus:w,pollingInterval:y,skipPollingIfUnfocused:P}),N=M.initialPageParam,F=Oe(N),W=M.refetchCachedPages,V=Oe(W),z=Q.useRef(void 0);let{queryCacheKey:K,requestId:L}=z.current||{},j=!1;K&&L&&(j=q.current.isRequestSubscribed(K,L));const B=!j&&z.current!==void 0;return b(()=>{B&&(z.current=void 0)},[B]),b(()=>{const U=z.current;if(k===re){U?.unsubscribe(),z.current=void 0;return}const $=z.current?.subscriptionOptions;if(!U||U.arg!==k){U?.unsubscribe();const ie=x(T(k,{subscriptionOptions:D,forceRefetch:v,...ti(g[f])?{initialPageParam:F,refetchCachedPages:V}:{}}));z.current=ie}else D!==$&&U.updateSubscriptionOptions(D)},[x,T,v,k,D,B,F,V,f]),[z,x,T,D]}function m(f,_){return(w,{skip:v=!1,selectFromResult:u}={})=>{const{select:y}=e.endpoints[f],P=Kt(v?re:w),M=Q.useRef(void 0),T=Q.useMemo(()=>o([y(P),(N,F)=>F,N=>P],_,{memoizeOptions:{resultEqualityCheck:Fe}}),[y,P]),x=Q.useMemo(()=>u?o([T],u,{devModeChecks:{identityFunctionCheck:"never"}}):T,[T,u]),q=n(N=>x(N,M.current),Fe),k=i(),D=T(k.getState(),M.current);return nu(()=>{M.current=D},[D]),q}}function E(f){Q.useEffect(()=>()=>{h(f),f.current=void 0},[f])}function A(f){if(!f.current)throw new Error(te(38));return f.current.refetch()}function l(f){const _=(v,u={})=>{const[y]=O(f,v,u);return E(y),Q.useMemo(()=>({refetch:()=>A(y)}),[y])},I=({refetchOnReconnect:v,refetchOnFocus:u,pollingInterval:y=0,skipPollingIfUnfocused:P=!1}={})=>{const{initiate:M}=e.endpoints[f],T=r(),[x,q]=Q.useState(Vt),k=Q.useRef(void 0),D=Oe({refetchOnReconnect:v,refetchOnFocus:u,pollingInterval:y,skipPollingIfUnfocused:P});b(()=>{const V=k.current?.subscriptionOptions;D!==V&&k.current?.updateSubscriptionOptions(D)},[D]);const N=Q.useRef(D);b(()=>{N.current=D},[D]);const F=Q.useCallback(function(V,z=!1){let K;return t(()=>{h(k),k.current=K=T(M(V,{subscriptionOptions:N.current,forceRefetch:!z})),q(V)}),K},[T,M]),W=Q.useCallback(()=>{k.current?.queryCacheKey&&T(e.internalActions.removeQueryResult({queryCacheKey:k.current?.queryCacheKey}))},[T]);return Q.useEffect(()=>()=>{h(k)},[]),Q.useEffect(()=>{x!==Vt&&!k.current&&F(x,!0)},[x,F]),Q.useMemo(()=>[F,x,{reset:W}],[F,x,W])},w=m(f,C);return{useQueryState:w,useQuerySubscription:_,useLazyQuerySubscription:I,useLazyQuery(v){const[u,y,{reset:P}]=I(v),M=w(y,{...v,skip:y===Vt}),T=Q.useMemo(()=>({lastArg:y}),[y]);return Q.useMemo(()=>[u,{...M,reset:P},T],[u,M,P,T])},useQuery(v,u){const y=_(v,u),P=w(v,{selectFromResult:v===re||u?.skip?void 0:ln,...u}),M=Bt(P,...Ht);return Q.useDebugValue(M),Q.useMemo(()=>({...P,...y}),[P,y])}}}function c(f){const _=(w,v={})=>{const[u,y,P,M]=O(f,w,v),T=Q.useRef(M);b(()=>{T.current=M},[M]);const x=v.refetchCachedPages,q=Oe(x),k=Q.useCallback(function(F,W){let V;return t(()=>{h(u),u.current=V=y(P(F,{subscriptionOptions:T.current,direction:W}))}),V},[u,y,P]);E(u);const D=Kt(v.skip?re:w),N=Q.useCallback(F=>{if(!u.current)throw new Error(te(38));const W={refetchCachedPages:F?.refetchCachedPages??q};return u.current.refetch(W)},[u,q]);return Q.useMemo(()=>({trigger:k,refetch:N,fetchNextPage:()=>k(D,"forward"),fetchPreviousPage:()=>k(D,"backward")}),[N,k,D])},I=m(f,R);return{useInfiniteQueryState:I,useInfiniteQuerySubscription:_,useInfiniteQuery(w,v){const{refetch:u,fetchNextPage:y,fetchPreviousPage:P}=_(w,v),M=I(w,{selectFromResult:w===re||v?.skip?void 0:ln,...v}),T=Bt(M,...Ht,"hasNextPage","hasPreviousPage");return Q.useDebugValue(T),Q.useMemo(()=>({...M,fetchNextPage:y,fetchPreviousPage:P,refetch:u}),[M,y,P,u])}}}function a(f){return({selectFromResult:_,fixedCacheKey:I}={})=>{const{select:w,initiate:v}=e.endpoints[f],u=r(),[y,P]=Q.useState();Q.useEffect(()=>()=>{y?.arg.fixedCacheKey||y?.reset()},[y]);const M=Q.useCallback(function(V){const z=u(v(V,{fixedCacheKey:I}));return P(z),z},[u,v,I]),{requestId:T}=y||{},x=Q.useMemo(()=>w({fixedCacheKey:I,requestId:y?.requestId}),[I,y,w]),q=Q.useMemo(()=>_?o([x],_):x,[_,x]),k=n(q,Fe),D=I==null?y?.arg.originalArgs:void 0,N=Q.useCallback(()=>{t(()=>{y&&P(void 0),I&&u(e.internalActions.removeMutationResult({requestId:T,fixedCacheKey:I}))})},[u,I,y,T]),F=Bt(k,...Ht,"endpointName");Q.useDebugValue(F);const W=Q.useMemo(()=>({...k,originalArgs:D,reset:N}),[k,D,N]);return Q.useMemo(()=>[M,W],[M,W])}}}var su=Symbol(),ou=({batch:e=Mi,hooks:t={useDispatch:Ri,useSelector:Ci,useStore:mn},createSelector:r=An,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:su,init(s,{serializeQueryArgs:o},p){const d=s,{buildQueryHooks:b,buildInfiniteQueryHooks:h,buildMutationHook:g,usePrefetch:C}=iu({api:s,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r}
9,serializeQueryArgs:o,context:p});return xe(d,{usePrefetch:C}),xe(p,{batch:e}),{injectEndpoint(R,S){if(Yo(S)){const{useQuery:O,useLazyQuery:m,useLazyQuerySubscription:E,useQueryState:A,useQuerySubscription:l}=b(R);xe(d.endpoints[R],{useQuery:O,useLazyQuery:m,useLazyQuerySubscription:E,useQueryState:A,useQuerySubscription:l}),s[`use${ct(R)}Query`]=O,s[`useLazy${ct(R)}Query`]=m}if(Jo(S)){const O=g(R);xe(d.endpoints[R],{useMutation:O}),s[`use${ct(R)}Mutation`]=O}else if(ti(S)){const{useInfiniteQuery:O,useInfiniteQuerySubscription:m,useInfiniteQueryState:E}=h(R);xe(d.endpoints[R],{useInfiniteQuery:O,useInfiniteQuerySubscription:m,useInfiniteQueryState:E}),s[`use${ct(R)}InfiniteQuery`]=O}}}}}),yu=Zn(ei(),ou());export{Qn as F,Nn as P,vr as R,Ri as a,yu as b,Re as c,vn as d,cu as e,du as f,qn as g,Fn as h,jn as i,fu as j,co as k,An as l,au as m,Qi as n,lu as p,pu as r,re as s,Ci as u};
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.