UNPKG

41.8 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3 typeof define === 'function' && define.amd ? define(['exports'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.RTK = {}));
5})(this, (function (exports) { 'use strict';
6
7 var t,e,n,r=undefined&&undefined.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);},t(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e;}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r);}),o=undefined&&undefined.__generator||function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u);}catch(t){i=[6,t],r=0;}finally{n=o=0;}if(5&i[0])throw i[1];return {value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},i=undefined&&undefined.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},u=Object.defineProperty,c=Object.defineProperties,a=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,d=function(t,e,n){return e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},p=function(t,e){for(var n in e||(e={}))l.call(e,n)&&d(t,n,e[n]);if(f)for(var r=0,o=f(e);r<o.length;r++)s.call(e,n=o[r])&&d(t,n,e[n]);return t},v=function(t,e){return c(t,a(e))},y=function(t,e,n){return new Promise((function(r,o){var i=function(t){try{c(n.next(t));}catch(t){o(t);}},u=function(t){try{c(n.throw(t));}catch(t){o(t);}},c=function(t){return t.done?r(t.value):Promise.resolve(t.value).then(i,u)};c((n=n.apply(t,e)).next());}))};function h(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return "'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function g(t){return !!t&&!!t[nt]}function b(t){var e;return !!t&&(function(t){if(!t||"object"!=typeof t)return !1;var e=Object.getPrototypeOf(t);if(null===e)return !0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===rt}(t)||Array.isArray(t)||!!t[et]||!!(null===(e=t.constructor)||void 0===e?void 0:e[et])||A(t)||S(t))}function m(t){return g(t)||h(23,t),t[nt].t}function w(t,e,n){void 0===n&&(n=!1),0===O(t)?(n?Object.keys:ot)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t);})):t.forEach((function(n,r){return e(r,n,t)}));}function O(t){var e=t[nt];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:A(t)?2:S(t)?3:0}function j(t,e){return 2===O(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function P(t,e,n){var r=O(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n;}function E(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function A(t){return Q&&t instanceof Map}function S(t){return Y&&t instanceof Set}function _(t){return t.o||t.t}function k(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=it(t);delete e[nt];for(var n=ot(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]});}return Object.create(Object.getPrototypeOf(t),e)}function x(t,e){return void 0===e&&(e=!1),D(t)||g(t)||!b(t)||(O(t)>1&&(t.set=t.add=t.clear=t.delete=I),Object.freeze(t),e&&w(t,(function(t,e){return x(e,!0)}),!0)),t}function I(){h(2);}function D(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function T(t){var e=ut[t];return e||h(18,t),e}function N(){return n}function C(t,e){e&&(T("Patches"),t.u=[],t.s=[],t.v=e);}function R(t){M(t),t.p.forEach(q),t.p=null;}function M(t){t===n&&(n=t.l);}function F(t){return n={p:[],l:n,h:t,m:!0,_:0}}function q(t){var e=t[nt];0===e.i||1===e.i?e.j():e.O=!0;}function z(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||T("ES5").S(e,t,r),r?(n[nt].P&&(R(e),h(4)),b(t)&&(t=L(e,t),e.l||K(e,t)),e.u&&T("Patches").M(n[nt].t,t,e.u,e.s)):t=L(e,n,[]),R(e),e.u&&e.v(e.u,e.s),t!==tt?t:void 0}function L(t,e,n){if(D(e))return e;var r=e[nt];if(!r)return w(e,(function(o,i){return U(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return K(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=k(r.k):r.o;w(3===r.i?new Set(o):o,(function(e,i){return U(t,r,o,e,i,n)})),K(t,o,!1),n&&t.u&&T("Patches").R(r,n,t.u,t.s);}return r.o}function U(t,e,n,r,o,i){if(g(o)){var u=L(t,o,i&&e&&3!==e.i&&!j(e.D,r)?i.concat(r):void 0);if(P(n,r,u),!g(u))return;t.m=!1;}if(b(o)&&!D(o)){if(!t.h.F&&t._<1)return;L(t,o),e&&e.A.l||K(t,o);}}function K(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&x(e,n);}function W(t,e){var n=t[nt];return (n?_(n):t)[e]}function B(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n);}}function V(t){t.P||(t.P=!0,t.l&&V(t.l));}function X(t){t.o||(t.o=k(t.t));}function G(t,e,n){var r=A(e)?T("MapSet").N(e,n):S(e)?T("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:N(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,i=ct;n&&(o=[r],i=at);var u=Proxy.revocable(o,i),c=u.revoke,a=u.proxy;return r.k=a,r.j=c,a}(e,n):T("ES5").J(e,n);return (n?n.A:N()).p.push(r),r}function J(t){return g(t)||h(22,t),function t(e){if(!b(e))return e;var n,r=e[nt],o=O(e);if(r){if(!r.P&&(r.i<4||!T("ES5").K(r)))return r.t;r.I=!0,n=$(e,o),r.I=!1;}else n=$(e,o);return w(n,(function(e,o){r&&function(t,e){return 2===O(t)?t.get(e):t[e]}(r.t,e)===o||P(n,e,t(o));})),3===o?new Set(n):n}(t)}function $(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return k(t)}var H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Q="undefined"!=typeof Map,Y="undefined"!=typeof Set,Z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,tt=H?Symbol.for("immer-nothing"):((e={})["immer-nothing"]=!0,e),et=H?Symbol.for("immer-draftable"):"__$immer_draftable",nt=H?Symbol.for("immer-state"):"__$immer_state",rt=(""+Object.prototype.constructor),ot="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,it=Object.getOwnPropertyDescriptors||function(t){var e={};return ot(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n);})),e},ut={},ct={get:function(t,e){if(e===nt)return t;var n,r,o,i=_(t);if(!j(i,e))return n=t,(o=B(i,e))?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(n.k):void 0;var u=i[e];return t.I||!b(u)?u:u===W(t.t,e)?(X(t),t.o[e]=G(t.A.h,u,t)):u},has:function(t,e){return e in _(t)},ownKeys:function(t){return Reflect.ownKeys(_(t))},set:function(t,e,n){var r=B(_(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=W(_(t),e),i=null==o?void 0:o[nt];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(E(n,o)&&(void 0!==n||j(t.t,e)))return !0;X(t),V(t);}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==W(t.t,e)||e in t.t?(t.D[e]=!1,X(t),V(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=_(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){h(11);},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){h(12);}},at={};w(ct,(function(t,e){at[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)};})),at.deleteProperty=function(t,e){return at.set.call(this,t,e,void 0)},at.set=function(t,e,n){return ct.set.call(this,t[0],e,n,t[0])};var ft=new(function(){function t(t){var e=this;this.g=Z,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var o=n;n=t;var i=e;return function(t){var e=this;void 0===t&&(t=o);for(var r=arguments.length,u=Array(r>1?r-1:0),c=1;c<r;c++)u[c-1]=arguments[c];return i.produce(t,(function(t){var r;return (r=n).call.apply(r,[e,t].concat(u))}))}}var u;if("function"!=typeof n&&h(6),void 0!==r&&"function"!=typeof r&&h(7),b(t)){var c=F(e),a=G(e,t,void 0),f=!0;try{u=n(a),f=!1;}finally{f?R(c):M(c);}return "undefined"!=typeof Promise&&u instanceof Promise?u.then((function(t){return C(c,r),z(t,c)}),(function(t){throw R(c),t})):(C(c,r),z(u,c))}if(!t||"object"!=typeof t){if(void 0===(u=n(t))&&(u=t),u===tt&&(u=void 0),e.F&&x(u,!0),r){var l=[],s=[];T("Patches").M(t,u,l,s),r(l,s);}return u}h(21,t);},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(o))}))};var r,o,i=e.produce(t,n,(function(t,e){r=t,o=e;}));return "undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return [t,r,o]})):[i,r,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var e=t.prototype;return e.createDraft=function(t){b(t)||h(8),g(t)&&(t=J(t));var e=F(this),n=G(this,t,void 0);return n[nt].C=!0,M(e),n},e.finishDraft=function(t,e){var n=(t&&t[nt]).A;return C(n,e),z(void 0,n)},e.setAutoFreeze=function(t){this.F=t;},e.setUseProxies=function(t){t&&!Z&&h(20),this.g=t;},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var o=T("Patches").$;return g(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}()),lt=ft.produce,st=(ft.produceWithPatches.bind(ft),ft.setAutoFreeze.bind(ft),ft.setUseProxies.bind(ft),ft.applyPatches.bind(ft),ft.createDraft.bind(ft),ft.finishDraft.bind(ft),lt);function dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r);}return n}function vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(n),!0).forEach((function(e){dt(t,e,n[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));}));}return t}function yt(t){return "Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ht="function"==typeof Symbol&&Symbol.observable||"@@observable",gt=function(){return Math.random().toString(36).substring(7).split("").join(".")},bt={INIT:"@@redux/INIT"+gt(),REPLACE:"@@redux/REPLACE"+gt(),PROBE_UNKNOWN_ACTION:function(){return "@@redux/PROBE_UNKNOWN_ACTION"+gt()}};function mt(t){if("object"!=typeof t||null===t)return !1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function wt(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(yt(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(yt(1));return n(wt)(t,e)}if("function"!=typeof t)throw new Error(yt(2));var o=t,i=e,u=[],c=u,a=!1;function f(){c===u&&(c=u.slice());}function l(){if(a)throw new Error(yt(3));return i}function s(t){if("function"!=typeof t)throw new Error(yt(4));if(a)throw new Error(yt(5));var e=!0;return f(),c.push(t),function(){if(e){if(a)throw new Error(yt(6));e=!1,f();var n=c.indexOf(t);c.splice(n,1),u=null;}}}function d(t){if(!mt(t))throw new Error(yt(7));if(void 0===t.type)throw new Error(yt(8));if(a)throw new Error(yt(9));try{a=!0,i=o(i,t);}finally{a=!1;}for(var e=u=c,n=0;n<e.length;n++)(0, e[n])();return t}function p(t){if("function"!=typeof t)throw new Error(yt(10));o=t,d({type:bt.REPLACE});}function v(){var t,e=s;return (t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(yt(11));function n(){t.next&&t.next(l());}return n(),{unsubscribe:e(n)}}})[ht]=function(){return this},t}return d({type:bt.INIT}),(r={dispatch:d,subscribe:s,getState:l,replaceReducer:p})[ht]=v,r}var Ot=wt;function jt(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o]);}var i,u=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:bt.INIT}))throw new Error(yt(12));if(void 0===n(void 0,{type:bt.PROBE_UNKNOWN_ACTION()}))throw new Error(yt(13))}));}(n);}catch(t){i=t;}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,o={},c=0;c<u.length;c++){var a=u[c],f=t[a],l=(0, n[a])(f,e);if(void 0===l)throw new Error(yt(14));o[a]=l,r=r||l!==f;}return (r=r||u.length!==Object.keys(t).length)?o:t}}function Pt(t,e){return function(){return e(t.apply(this,arguments))}}function Et(t,e){if("function"==typeof t)return Pt(t,e);if("object"!=typeof t||null===t)throw new Error(yt(16));var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=Pt(o,e));}return n}function At(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function St(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(yt(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=At.apply(void 0,i)(n.dispatch),vt(vt({},n),{},{dispatch:r})}}}var _t=function(t,e){return t===e};function kt(t,e){var n,r,o,i="object"==typeof e?e:{equalityCheck:e},u=i.equalityCheck,c=i.maxSize,a=void 0===c?1:c,f=i.resultEqualityCheck,l=(o=void 0===u?_t:u,function(t,e){if(null===t||null===e||t.length!==e.length)return !1;for(var n=t.length,r=0;r<n;r++)if(!o(t[r],e[r]))return !1;return !0}),s=1===a?(n=l,{get:function(t){return r&&n(r.key,t)?r.value:"NOT_FOUND"},put:function(t,e){r={key:t,value:e};},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0;}}):function(t,e){var n=[];function r(t){var r=n.findIndex((function(n){return e(t,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return "NOT_FOUND"}return {get:r,put:function(e,o){"NOT_FOUND"===r(e)&&(n.unshift({key:e,value:o}),n.length>t&&n.pop());},getEntries:function(){return n},clear:function(){n=[];}}}(a,l);function d(){var e=s.get(arguments);if("NOT_FOUND"===e){if(e=t.apply(null,arguments),f){var n=s.getEntries(),r=n.find((function(t){return f(t.value,e)}));r&&(e=r.value);}s.put(arguments,e);}return e}return d.clearCache=function(){return s.clear()},d}function xt(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return "function"==typeof t}))){var n=e.map((function(t){return "function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}function It(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i,u=0,c={memoizeOptions:void 0},a=r.pop();if("object"==typeof a&&(c=a,a=r.pop()),"function"!=typeof a)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof a+"]");var f=c,l=f.memoizeOptions,s=void 0===l?n:l,d=Array.isArray(s)?s:[s],p=xt(r),v=t.apply(void 0,[function(){return u++,a.apply(null,arguments)}].concat(d)),y=t((function(){for(var t=[],e=p.length,n=0;n<e;n++)t.push(p[n].apply(null,arguments));return i=v.apply(null,t)}));return Object.assign(y,{resultFunc:a,memoizedResultFunc:v,dependencies:p,lastResult:function(){return i},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),y};return o}var Dt=It(kt),Tt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Dt.apply(void 0,t),r=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return n.apply(void 0,i([g(t)?J(t):t],e))};return r},Nt="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return "object"==typeof arguments[0]?At:At.apply(null,arguments)};function Ct(t){if("object"!=typeof t||null===t)return !1;var e=Object.getPrototypeOf(t);if(null===e)return !0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}function Rt(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return "function"==typeof o?o(n,r,t):e(o)}}}}var Mt=Rt();Mt.withExtraArgument=Rt;var Ft=Mt,qt=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return r(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,i([void 0],t[0].concat(this)))):new(e.bind.apply(e,i([void 0],t.concat(this))))},e}(Array);function zt(t){return b(t)?st(t,(function(){})):t}function Lt(t){var e=typeof t;return null==t||"string"===e||"boolean"===e||"number"===e||Array.isArray(t)||Ct(t)}function Ut(t,e,n,r,o,i){var u;if(void 0===e&&(e=""),void 0===n&&(n=Lt),void 0===o&&(o=[]),!n(t))return {keyPath:e||"<root>",value:t};if("object"!=typeof t||null===t)return !1;if(null==i?void 0:i.has(t))return !1;for(var c=null!=r?r(t):Object.entries(t),a=o.length>0,f=function(t,c){var f=e?e+"."+t:t;return a&&o.some((function(t){return t instanceof RegExp?t.test(f):f===t}))?"continue":n(c)?"object"==typeof c&&(u=Ut(c,f,n,r,o,i))?{value:u}:void 0:{value:{keyPath:f,value:c}}},l=0,s=c;l<s.length;l++){var d=s[l],p=f(d[0],d[1]);if("object"==typeof p)return p.value}return i&&Kt(t)&&i.add(t),!1}function Kt(t){if(!Object.isFrozen(t))return !1;for(var e=0,n=Object.values(t);e<n.length;e++){var r=n[e];if("object"==typeof r&&null!==r&&!Kt(r))return !1}return !0}function Wt(t){return function(){return function(t){return function(e){return t(e)}}}}function Bt(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e,r=new qt;return n&&r.push("boolean"==typeof n?Ft:Ft.withExtraArgument(n.extraArgument)),r}function Vt(t){var e,n=function(t){return Bt(t)},r=t||{},o=r.reducer,u=void 0===o?void 0:o,c=r.middleware,a=void 0===c?n():c,f=r.devTools,l=void 0===f||f,s=r.preloadedState,d=void 0===s?void 0:s,v=r.enhancers,y=void 0===v?void 0:v;if("function"==typeof u)e=u;else {if(!Ct(u))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=jt(u);}var h=a;"function"==typeof h&&(h=h(n));var g=St.apply(void 0,h),b=At;l&&(b=Nt(p({trace:!1},"object"==typeof l&&l)));var m=[g];return Array.isArray(y)?m=i([g],y):"function"==typeof y&&(m=y(m)),wt(e,d,b.apply(void 0,m))}function Xt(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return p(p({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return {type:t,payload:n[0]}}return n.toString=function(){return ""+t},n.type=t,n.match=function(e){return e.type===t},n}function Gt(t){return ["type","payload","error","meta"].indexOf(t)>-1}function Jt(t){return ""+t}function $t(t){var e,n={},r=[],o={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,o},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[n,r,e]}function Ht(t,e,n,r){void 0===n&&(n=[]);var o,u="function"==typeof e?$t(e):[e,n,r],c=u[0],a=u[1],f=u[2];if("function"==typeof t)o=function(){return zt(t())};else {var l=zt(t);o=function(){return l};}function s(t,e){void 0===t&&(t=o());var n=i([c[e.type]],a.filter((function(t){return (0, t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return !!t})).length&&(n=[f]),n.reduce((function(t,n){if(n){var r;if(g(t))return void 0===(r=n(t,e))?t:r;if(b(t))return st(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return s.getInitialState=o,s}function Qt(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:zt(t.initialState),o=t.reducers||{},i=Object.keys(o),u={},c={},a={};function f(){var e="function"==typeof t.extraReducers?$t(t.extraReducers):[t.extraReducers],n=e[0],o=e[1],i=void 0===o?[]:o,u=e[2],a=void 0===u?void 0:u,f=p(p({},void 0===n?{}:n),c);return Ht(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var n=0,r=i;n<r.length;n++){var o=r[n];t.addMatcher(o.matcher,o.reducer);}a&&t.addDefaultCase(a);}))}return i.forEach((function(t){var n,r,i=o[t],f=e+"/"+t;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,u[t]=n,c[f]=n,a[t]=r?Xt(f,r):Xt(f);})),{name:e,reducer:function(t,e){return n||(n=f()),n(t,e)},actions:a,caseReducers:u,getInitialState:function(){return n||(n=f()),n.getInitialState()}}}function Yt(t){return "object"!=typeof t||null==t||Object.isFrozen(t)}function Zt(t){return function(){return function(t){return function(e){return t(e)}}}}function te(t){return function(e,n){var r=function(e){var r;Ct(r=n)&&"string"==typeof r.type&&Object.keys(r).every(Gt)?t(n.payload,e):t(n,e);};return g(e)?(r(e),e):st(e,r)}}function ee(t,e){return e(t)}function ne(t){return Array.isArray(t)||(t=Object.values(t)),t}function re(t,e,n){for(var r=[],o=[],i=0,u=t=ne(t);i<u.length;i++){var c=u[i],a=ee(c,e);a in n.entities?o.push({id:a,changes:c}):r.push(c);}return [r,o]}function oe(t){function e(e,n){var r=ee(e,t);r in n.entities||(n.ids.push(r),n.entities[r]=e);}function n(t,n){for(var r=0,o=t=ne(t);r<o.length;r++)e(o[r],n);}function r(e,n){var r=ee(e,t);r in n.entities||n.ids.push(r),n.entities[r]=e;}function o(t,e){var n=!1;t.forEach((function(t){t in e.entities&&(delete e.entities[t],n=!0);})),n&&(e.ids=e.ids.filter((function(t){return t in e.entities})));}function i(e,n){var r={},o={};if(e.forEach((function(t){t.id in n.entities&&(o[t.id]={id:t.id,changes:p(p({},o[t.id]?o[t.id].changes:null),t.changes)});})),(e=Object.values(o)).length>0){var i=e.filter((function(e){return function(e,n,r){var o=Object.assign({},r.entities[n.id],n.changes),i=ee(o,t),u=i!==n.id;return u&&(e[n.id]=i,delete r.entities[n.id]),r.entities[i]=o,u}(r,e,n)})).length>0;i&&(n.ids=Object.keys(n.entities));}}function u(e,r){var o=re(e,t,r),u=o[0];i(o[1],r),n(u,r);}return {removeAll:(c=function(t){Object.assign(t,{ids:[],entities:{}});},a=te((function(t,e){return c(e)})),function(t){return a(t,void 0)}),addOne:te(e),addMany:te(n),setOne:te(r),setMany:te((function(t,e){for(var n=0,o=t=ne(t);n<o.length;n++)r(o[n],e);})),setAll:te((function(t,e){t=ne(t),e.ids=[],e.entities={},n(t,e);})),updateOne:te((function(t,e){return i([t],e)})),updateMany:te(i),upsertOne:te((function(t,e){return u([t],e)})),upsertMany:te(u),removeOne:te((function(t,e){return o([t],e)})),removeMany:te(o)};var c,a;}function ie(t){void 0===t&&(t={});var e=p({sortComparer:!1,selectId:function(t){return t.id}},t),n=e.selectId,r=e.sortComparer,o={getInitialState:function(t){return void 0===t&&(t={}),Object.assign({ids:[],entities:{}},t)}},i={getSelectors:function(t){var e=function(t){return t.ids},n=function(t){return t.entities},r=Tt(e,n,(function(t,e){return t.map((function(t){return e[t]}))})),o=function(t,e){return e},i=function(t,e){return t[e]},u=Tt(e,(function(t){return t.length}));if(!t)return {selectIds:e,selectEntities:n,selectAll:r,selectTotal:u,selectById:Tt(n,o,i)};var c=Tt(t,n);return {selectIds:Tt(t,e),selectEntities:c,selectAll:Tt(t,r),selectTotal:Tt(t,u),selectById:Tt(c,o,i)}}},u=r?function(t,e){var n=oe(t);function r(e,n){var r=(e=ne(e)).filter((function(e){return !(ee(e,t)in n.entities)}));0!==r.length&&c(r,n);}function o(t,e){0!==(t=ne(t)).length&&c(t,e);}function i(e,n){for(var r=!1,o=0,i=e;o<i.length;o++){var u=i[o],c=n.entities[u.id];if(c){r=!0,Object.assign(c,u.changes);var f=t(c);u.id!==f&&(delete n.entities[u.id],n.entities[f]=c);}}r&&a(n);}function u(e,n){var o=re(e,t,n),u=o[0];i(o[1],n),r(u,n);}function c(e,n){e.forEach((function(e){n.entities[t(e)]=e;})),a(n);}function a(n){var r=Object.values(n.entities);r.sort(e);var o=r.map(t);(function(t,e){if(t.length!==e.length)return !1;for(var n=0;n<t.length&&n<e.length;n++)if(t[n]!==e[n])return !1;return !0})(n.ids,o)||(n.ids=o);}return {removeOne:n.removeOne,removeMany:n.removeMany,removeAll:n.removeAll,addOne:te((function(t,e){return r([t],e)})),updateOne:te((function(t,e){return i([t],e)})),upsertOne:te((function(t,e){return u([t],e)})),setOne:te((function(t,e){return o([t],e)})),setMany:te(o),setAll:te((function(t,e){t=ne(t),e.entities={},e.ids=[],r(t,e);})),addMany:te(r),updateMany:te(i),upsertMany:te(u)}}(n,r):oe(n);return p(p(p({selectId:n,sortComparer:r},o),i),u)}var ue=function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},ce=["name","message","stack","code"],ae=function(t,e){this.payload=t,this.meta=e;},fe=function(t,e){this.payload=t,this.meta=e;},le=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,r=ce;n<r.length;n++){var o=r[n];"string"==typeof t[o]&&(e[o]=t[o]);}return e}return {message:String(t)}},se=function(){function t(t,e,n){var r=Xt(t+"/fulfilled",(function(t,e,n,r){return {payload:t,meta:v(p({},r||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),i=Xt(t+"/pending",(function(t,e,n){return {payload:void 0,meta:v(p({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),u=Xt(t+"/rejected",(function(t,e,r,o,i){return {payload:o,error:(n&&n.serializeError||le)(t||"Rejected"),meta:v(p({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),c="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return !1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}};}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,f,l){var s,d=(null==n?void 0:n.idGenerator)?n.idGenerator(t):ue(),p=new c;function v(t){s=t,p.abort();}var h=function(){return y(this,null,(function(){var c,y,h,g,b,m;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),null===(w=g=null==(c=null==n?void 0:n.condition)?void 0:c.call(n,t,{getState:f,extra:l}))||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,g];case 1:g=o.sent(),o.label=2;case 2:if(!1===g||p.signal.aborted)throw {name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:s||"Aborted"})}))})),a(i(d,t,null==(y=null==n?void 0:n.getPendingMeta)?void 0:y.call(n,{requestId:d,arg:t},{getState:f,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:f,extra:l,requestId:d,signal:p.signal,abort:v,rejectWithValue:function(t,e){return new ae(t,e)},fulfillWithValue:function(t,e){return new fe(t,e)}})).then((function(e){if(e instanceof ae)throw e;return e instanceof fe?r(e.payload,d,t,e.meta):r(e,d,t)}))])];case 3:return h=o.sent(),[3,5];case 4:return m=o.sent(),h=m instanceof ae?u(null,d,t,m.payload,m.meta):u(m,d,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&u.match(h)&&h.meta.condition||a(h),[2,h]}var w;}))}))}();return Object.assign(h,{abort:v,requestId:d,arg:t,unwrap:function(){return h.then(de)}})}}),{pending:i,rejected:u,fulfilled:r,typePrefix:t})}return t.withTypes=function(){return t},t}();function de(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}var pe=function(t,e){return (n=t)&&"function"==typeof n.match?t.match(e):t(e);var n;};function ve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.some((function(t){return pe(t,e)}))}}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.every((function(t){return pe(t,e)}))}}function he(t,e){if(!t||!t.meta)return !1;var n="string"==typeof t.meta.requestId,r=e.indexOf(t.meta.requestStatus)>-1;return n&&r}function ge(t){return "function"==typeof t[0]&&"pending"in t[0]&&"fulfilled"in t[0]&&"rejected"in t[0]}function be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return he(t,["pending"])}:ge(t)?function(e){var n=t.map((function(t){return t.pending}));return ve.apply(void 0,n)(e)}:be()(t[0])}function me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return he(t,["rejected"])}:ge(t)?function(e){var n=t.map((function(t){return t.rejected}));return ve.apply(void 0,n)(e)}:me()(t[0])}function we(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(t){return t&&t.meta&&t.meta.rejectedWithValue};return 0===t.length||ge(t)?function(e){return ye(me.apply(void 0,t),n)(e)}:we()(t[0])}function Oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return he(t,["fulfilled"])}:ge(t)?function(e){var n=t.map((function(t){return t.fulfilled}));return ve.apply(void 0,n)(e)}:Oe()(t[0])}function je(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return he(t,["pending","fulfilled","rejected"])}:ge(t)?function(e){for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r];n.push(i.pending,i.rejected,i.fulfilled);}return ve.apply(void 0,n)(e)}:je()(t[0])}var Pe=function(t,e){if("function"!=typeof t)throw new TypeError(e+" is not a function")},Ee=function(){},Ae=function(t,e){return void 0===e&&(e=Ee),t.catch(e),t},Se=function(t,e){return t.addEventListener("abort",e,{once:!0}),function(){return t.removeEventListener("abort",e)}},_e=function(t,e){var n=t.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:e,configurable:!0,writable:!0}),t.abort(e));},ke=function(t){this.code=t,this.name="TaskAbortError",this.message="task cancelled (reason: "+t+")";},xe=function(t){if(t.aborted)throw new ke(t.reason)};function Ie(t,e){var n=Ee;return new Promise((function(r,o){var i=function(){return o(new ke(t.reason))};t.aborted?i():(n=Se(t,i),e.finally((function(){return n()})).then(r,o));})).finally((function(){n=Ee;}))}var De=function(t){return function(e){return Ae(Ie(t,e).then((function(e){return xe(t),e})))}},Te=function(t){var e=De(t);return function(t){return e(new Promise((function(e){return setTimeout(e,t)})))}},Ne=Object.assign,Ce={},Re="listenerMiddleware",Me=function(t){var e=t.type,n=t.actionCreator,r=t.matcher,o=t.predicate,i=t.effect;if(e)o=Xt(e).match;else if(n)e=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return Pe(i,"options.listener"),{predicate:o,type:e,effect:i}},Fe=function(t){t.pending.forEach((function(t){_e(t,"listener-cancelled");}));},qe=function(t,e,n){try{t(e,n);}catch(t){setTimeout((function(){throw t}),0);}},ze=Xt(Re+"/add"),Le=Xt(Re+"/removeAll"),Ue=Xt(Re+"/remove"),Ke=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console.error.apply(console,i([Re+"/error"],t));};function We(t){var e=this;void 0===t&&(t={});var n=new Map,r=t.extra,i=t.onError,u=void 0===i?Ke:i;Pe(u,"onError");var c=function(t){for(var e=0,r=Array.from(n.values());e<r.length;e++){var o=r[e];if(t(o))return o}},a=function(t){var e=c((function(e){return e.effect===t.effect}));return e||(e=function(t){var e=Me(t),n=e.type,r=e.predicate,o=e.effect;return {id:ue(),effect:o,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}}}(t)),function(t){return t.unsubscribe=function(){return n.delete(t.id)},n.set(t.id,t),function(e){t.unsubscribe(),(null==e?void 0:e.cancelActive)&&Fe(t);}}(e)},f=function(t){var e=Me(t),n=e.type,r=e.effect,o=e.predicate,i=c((function(t){return ("string"==typeof n?t.type===n:t.predicate===o)&&t.effect===r}));return i&&(i.unsubscribe(),t.cancelActive&&Fe(i)),!!i},l=function(t,i,c,f){return y(e,null,(function(){var e,l,s;return o(this,(function(d){switch(d.label){case 0:e=new AbortController,l=function(t,e){return function(n,r){return Ae(function(n,r){return y(void 0,null,(function(){var i,u,c,a;return o(this,(function(o){switch(o.label){case 0:xe(e),i=function(){},u=new Promise((function(e,r){var o=t({predicate:n,effect:function(t,n){n.unsubscribe(),e([t,n.getState(),n.getOriginalState()]);}});i=function(){o(),r();};})),c=[u],null!=r&&c.push(new Promise((function(t){return setTimeout(t,r,null)}))),o.label=1;case 1:return o.trys.push([1,,3,4]),[4,Ie(e,Promise.race(c))];case 2:return a=o.sent(),xe(e),[2,a];case 3:return i(),[7];case 4:return [2]}}))}))}(n,r))}}(a,e.signal),d.label=1;case 1:return d.trys.push([1,3,4,5]),t.pending.add(e),[4,Promise.resolve(t.effect(i,Ne({},c,{getOriginalState:f,condition:function(t,e){return l(t,e).then(Boolean)},take:l,delay:Te(e.signal),pause:De(e.signal),extra:r,signal:e.signal,fork:(p=e.signal,function(t){Pe(t,"taskExecutor");var e,n=new AbortController;e=n,Se(p,(function(){return _e(e,p.reason)}));var r,i,u=(r=function(){return y(void 0,null,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return xe(p),xe(n.signal),[4,t({pause:De(n.signal),delay:Te(n.signal),signal:n.signal})];case 1:return e=r.sent(),xe(n.signal),[2,e]}}))}))},i=function(){return _e(n,"task-completed")},y(void 0,null,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return e.sent(),[4,r()];case 2:return [2,{status:"ok",value:e.sent()}];case 3:return [2,{status:(t=e.sent())instanceof ke?"cancelled":"rejected",error:t}];case 4:return null==i||i(),[7];case 5:return [2]}}))})));return {result:De(p)(u),cancel:function(){_e(n,"task-cancelled");}}}),unsubscribe:t.unsubscribe,subscribe:function(){n.set(t.id,t);},cancelActiveListeners:function(){t.pending.forEach((function(t,n,r){t!==e&&(_e(t,"listener-cancelled"),r.delete(t));}));}})))];case 2:return d.sent(),[3,5];case 3:return (s=d.sent())instanceof ke||qe(u,s,{raisedBy:"effect"}),[3,5];case 4:return _e(e,"listener-completed"),t.pending.delete(e),[7];case 5:return [2]}var p;}))}))},s=function(t){return function(){t.forEach(Fe),t.clear();}}(n);return {middleware:function(t){return function(e){return function(r){if(ze.match(r))return a(r.payload);if(!Le.match(r)){if(Ue.match(r))return f(r.payload);var o,i=t.getState(),c=function(){if(i===Ce)throw new Error(Re+": getOriginalState can only be called synchronously");return i};try{if(o=e(r),n.size>0)for(var d=t.getState(),p=Array.from(n.values()),v=0,y=p;v<y.length;v++){var h=y[v],g=!1;try{g=h.predicate(r,d,i);}catch(t){g=!1,qe(u,t,{raisedBy:"predicate"});}g&&l(h,r,t,c);}}finally{i=Ce;}return o}s();}}},startListening:a,stopListening:f,clearListeners:s}}var Be,Ve="RTK_autoBatch",Xe=function(){return function(t){var e;return {payload:t,meta:(e={},e.RTK_autoBatch=!0,e)}}},Ge="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis):function(t){return (Be||(Be=Promise.resolve())).then(t).catch((function(t){return setTimeout((function(){throw t}),0)}))},Je=function(t){return function(e){setTimeout(e,t);}},$e="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Je(10),He=function(t){return void 0===t&&(t={type:"raf"}),function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(void 0,n),i=!0,u=!1,c=!1,a=new Set,f="tick"===t.type?Ge:"raf"===t.type?$e:"callback"===t.type?t.queueNotification:Je(t.timeout),l=function(){c=!1,u&&(u=!1,a.forEach((function(t){return t()})));};return Object.assign({},o,{subscribe:function(t){var e=o.subscribe((function(){return i&&t()}));return a.add(t),function(){e(),a.delete(t);}},dispatch:function(t){var e;try{return i=!(null==(e=null==t?void 0:t.meta)?void 0:e.RTK_autoBatch),(u=!i)&&(c||(c=!0,f(l))),o.dispatch(t)}finally{i=!0;}}})}}};!function(){function t(t,e){var n=o[t];return n?n.enumerable=e:o[t]=n={configurable:!0,enumerable:e,get:function(){return ct.get(this[nt],t)},set:function(e){ct.set(this[nt],t,e);}},n}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][nt];if(!o.P)switch(o.i){case 5:r(o)&&V(o);break;case 4:n(o)&&V(o);}}}function n(t){for(var e=t.t,n=t.k,r=ot(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==nt){var u=e[i];if(void 0===u&&!j(e,i))return !0;var c=n[i],a=c&&c[nt];if(a?a.t!==u:!E(c,u))return !0}}var f=!!e[nt];return r.length!==ot(e).length+(f?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return !0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return !0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return !0;return !1}var o={};ut.ES5||(ut.ES5={J:function(e,n){var r=Array.isArray(e),o=function(e,n){if(e){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,t(o,!0));return r}var i=it(n);delete i[nt];for(var u=ot(i),c=0;c<u.length;c++){var a=u[c];i[a]=t(a,e||!!i[a].enumerable);}return Object.create(Object.getPrototypeOf(n),i)}(r,e),i={i:r?5:4,A:n?n.A:N(),P:!1,I:!1,D:{},l:n,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,nt,{value:i,writable:!0}),o},S:function(t,n,o){o?g(n)&&n[nt].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[nt];if(n){var o=n.t,i=n.k,u=n.D,c=n.i;if(4===c)w(i,(function(e){e!==nt&&(void 0!==o[e]||j(o,e)?u[e]||t(i[e]):(u[e]=!0,V(n)));})),w(o,(function(t){void 0!==i[t]||j(i,t)||(u[t]=!1,V(n));}));else if(5===c){if(r(n)&&(V(n),u.length=!0),i.length<o.length)for(var a=i.length;a<o.length;a++)u[a]=!1;else for(var f=o.length;f<i.length;f++)u[f]=!0;for(var l=Math.min(i.length,o.length),s=0;s<l;s++)i.hasOwnProperty(s)||(u[s]=!0),void 0===u[s]&&t(i[s]);}}}}(t.p[0]),e(t.p));},K:function(t){return 4===t.i?n(t):r(t)}});}();
8
9 exports.MiddlewareArray = qt;
10 exports.SHOULD_AUTOBATCH = Ve;
11 exports.TaskAbortError = ke;
12 exports.__DO_NOT_USE__ActionTypes = bt;
13 exports.addListener = ze;
14 exports.applyMiddleware = St;
15 exports.autoBatchEnhancer = He;
16 exports.bindActionCreators = Et;
17 exports.clearAllListeners = Le;
18 exports.combineReducers = jt;
19 exports.compose = At;
20 exports.configureStore = Vt;
21 exports.createAction = Xt;
22 exports.createAsyncThunk = se;
23 exports.createDraftSafeSelector = Tt;
24 exports.createEntityAdapter = ie;
25 exports.createImmutableStateInvariantMiddleware = Zt;
26 exports.createListenerMiddleware = We;
27 exports.createNextState = st;
28 exports.createReducer = Ht;
29 exports.createSelector = Dt;
30 exports.createSerializableStateInvariantMiddleware = Wt;
31 exports.createSlice = Qt;
32 exports.createStore = wt;
33 exports.current = J;
34 exports.findNonSerializableValue = Ut;
35 exports.freeze = x;
36 exports.getDefaultMiddleware = Bt;
37 exports.getType = Jt;
38 exports.isAllOf = ye;
39 exports.isAnyOf = ve;
40 exports.isAsyncThunkAction = je;
41 exports.isDraft = g;
42 exports.isFulfilled = Oe;
43 exports.isImmutableDefault = Yt;
44 exports.isPending = be;
45 exports.isPlain = Lt;
46 exports.isPlainObject = Ct;
47 exports.isRejected = me;
48 exports.isRejectedWithValue = we;
49 exports.legacy_createStore = Ot;
50 exports.miniSerializeError = le;
51 exports.nanoid = ue;
52 exports.original = m;
53 exports.prepareAutoBatched = Xe;
54 exports.removeListener = Ue;
55 exports.unwrapResult = de;
56
57 Object.defineProperty(exports, '__esModule', { value: true });
58
59}));
60//# sourceMappingURL=redux-toolkit.umd.min.js.map