File Editor
Directories:
.. (Back)
Files:
analysis.js
analysisReport.js
chart.js.js
componentsNew.js
draftJs.js
featureFlag.js
helpers.js
jed.js
propTypes.js
reactHelmet.js
redux.js
reduxJsToolkit.js
replacementVariableEditor.js
searchMetadataPreviews.js
socialMetadataForms.js
styleGuide.js
styledComponents.js
uiLibrary.js
Create New File
Create
Edit File: reduxJsToolkit.js
(()=>{"use strict";var e={65139:(e,t,n)=>{function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.d(t,{Z:()=>o});var i=r();i.withExtraArgument=r;const o=i},20573:(e,t,n)=>{n.d(t,{P1:()=>a});var r="NOT_FOUND",i=function(e,t){return e===t};function o(e,t){var n,o,u="object"==typeof t?t:{equalityCheck:t},a=u.equalityCheck,c=void 0===a?i:a,f=u.maxSize,l=void 0===f?1:f,s=u.resultEqualityCheck,d=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}(c),p=1===l?(n=d,{get:function(e){return o&&n(o.key,e)?o.value:r},put:function(e,t){o={key:e,value:t}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}):function(e,t){var n=[];function i(e){var i=n.findIndex((function(n){return t(e,n.key)}));if(i>-1){var o=n[i];return i>0&&(n.splice(i,1),n.unshift(o)),o.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,d);function v(){var t=p.get(arguments);if(t===r){if(t=e.apply(null,arguments),s){var n=p.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}p.put(arguments,t)}return t}return v.clearCache=function(){return p.clear()},v}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o,u=0,a={memoizeOptions:void 0},c=r.pop();if("object"==typeof c&&(a=c,c=r.pop()),"function"!=typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var f=a.memoizeOptions,l=void 0===f?n:f,s=Array.isArray(l)?l:[l],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return u++,c.apply(null,arguments)}].concat(s)),v=e((function(){for(var e=[],t=d.length,n=0;n<t;n++)e.push(d[n].apply(null,arguments));return o=p.apply(null,e)}));return Object.assign(v,{resultFunc:c,memoizedResultFunc:p,dependencies:d,lastResult:function(){return o},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),v}}var a=u(o)},7185:e=>{e.exports=window.yoast.redux},12902:(e,t,n)=>{function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[K]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===B}(e)||Array.isArray(e)||!!e[Z]||!!e.constructor[Z]||d(e)||p(e))}function u(e){return i(e)||r(23,e),e[K].t}function a(e,t,n){void 0===n&&(n=!1),0===c(e)?(n?Object.keys:J)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function c(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function f(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t,n){var r=c(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function s(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return N&&e instanceof Map}function p(e){return W&&e instanceof Set}function v(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[K];for(var n=J(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function h(e,t){return void 0===t&&(t=!1),b(e)||i(e)||!o(e)||(c(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return h(t,!0)}),!0)),e}function g(){r(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=G[e];return t||r(18,e),t}function w(){return F}function O(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function P(e){j(e),e.p.forEach(S),e.p=null}function j(e){e===F&&(F=e.l)}function A(e){return F={p:[],l:F,h:e,m:!0,_:0}}function S(e){var t=e[K];0===t.i||1===t.i?t.j():t.O=!0}function E(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||m("ES5").S(t,e,i),i?(n[K].P&&(P(t),r(4)),o(e)&&(e=k(t,e),t.l||x(t,e)),t.u&&m("Patches").M(n[K].t,e,t.u,t.s)):e=k(t,n,[]),P(t),t.u&&t.v(t.u,t.s),e!==X?e:void 0}function k(e,t,n){if(b(t))return t;var r=t[K];if(!r)return a(t,(function(i,o){return _(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return x(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=y(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return _(e,r,i,t,o,n)})),x(e,i,!1),n&&e.u&&m("Patches").R(r,n,e.u,e.s)}return r.o}function _(e,t,n,r,u,a){if(i(u)){var c=k(e,u,a&&t&&3!==t.i&&!f(t.D,r)?a.concat(r):void 0);if(l(n,r,c),!i(c))return;e.m=!1}if(o(u)&&!b(u)){if(!e.h.F&&e._<1)return;k(e,u),t&&t.A.l||x(e,u)}}function x(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&h(t,n)}function I(e,t){var n=e[K];return(n?v(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function T(e){e.o||(e.o=y(e.t))}function R(e,t,n){var r=d(t)?m("MapSet").N(t,n):p(t)?m("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=H;n&&(i=[r],o=Q);var u=Proxy.revocable(i,o),a=u.revoke,c=u.proxy;return r.k=c,r.j=a,c}(t,n):m("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function C(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[K],i=c(t);if(r){if(!r.P&&(r.i<4||!m("ES5").K(r)))return r.t;r.I=!0,n=z(t,i),r.I=!1}else n=z(t,i);return a(n,(function(t,i){r&&function(e,t){return 2===c(e)?e.get(t):e[t]}(r.t,t)===i||l(n,t,e(i))})),3===i?new Set(n):n}(e)}function z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function L(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return H.get(t,e)},set:function(t){var n=this[K];H.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][K];if(!i.P)switch(i.i){case 5:r(i)&&D(i);break;case 4:n(i)&&D(i)}}}function n(e){for(var t=e.t,n=e.k,r=J(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==K){var u=t[o];if(void 0===u&&!f(t,o))return!0;var a=n[o],c=a&&a[K];if(c?c.t!==u:!s(a,u))return!0}}var l=!!t[K];return r.length!==J(t).length+(l?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};!function(e,t){G[e]||(G[e]=t)}("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=$(n);delete o[K];for(var u=J(o),a=0;a<u.length;a++){var c=u[a];o[c]=e(c,t||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:w(),P:!1,I:!1,D:{},l:n,t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,K,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[K].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[K];if(n){var i=n.t,o=n.k,u=n.D,c=n.i;if(4===c)a(o,(function(t){t!==K&&(void 0!==i[t]||f(i,t)?u[t]||e(o[t]):(u[t]=!0,D(n)))})),a(i,(function(e){void 0!==o[e]||f(o,e)||(u[e]=!1,D(n))}));else if(5===c){if(r(n)&&(D(n),u.length=!0),o.length<i.length)for(var l=o.length;l<i.length;l++)u[l]=!1;else for(var s=i.length;s<o.length;s++)u[s]=!0;for(var d=Math.min(o.length,i.length),p=0;p<d;p++)o.hasOwnProperty(p)||(u[p]=!0),void 0===u[p]&&e(o[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,{Js:()=>u,Vk:()=>C,ZP:()=>ne,mv:()=>i,o$:()=>o,pV:()=>L,vV:()=>h});var V,F,q="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),N="undefined"!=typeof Map,W="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,X=q?Symbol.for("immer-nothing"):((V={})["immer-nothing"]=!0,V),Z=q?Symbol.for("immer-draftable"):"__$immer_draftable",K=q?Symbol.for("immer-state"):"__$immer_state",B=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$=Object.getOwnPropertyDescriptors||function(e){var t={};return J(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},G={},H={get:function(e,t){if(t===K)return e;var n=v(e);if(!f(n,t))return function(e,t,n){var r,i=M(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===I(e.t,t)?(T(e),e.o[t]=R(e.A.h,r,e)):r},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,n){var r=M(v(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=I(v(e),t),o=null==i?void 0:i[K];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(s(n,i)&&(void 0!==n||f(e.t,t)))return!0;T(e),D(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==I(e.t,t)||t in e.t?(e.D[t]=!1,T(e),D(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=v(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(H,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return Q.set.call(this,e,t,void 0)},Q.set=function(e,t,n){return H.set.call(this,e[0],t,n,e[0])};var Y=function(){function e(e){var t=this;this.g=U,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var u=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=u);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var c;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var f=A(t),l=R(t,e,void 0),s=!0;try{c=n(l),s=!1}finally{s?P(f):j(f)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(e){return O(f,i),E(e,f)}),(function(e){throw P(f),e})):(O(f,i),E(c,f))}if(!e||"object"!=typeof e){if(void 0===(c=n(e))&&(c=e),c===X&&(c=void 0),t.F&&h(c,!0),i){var d=[],p=[];m("Patches").M(e,c,d,p),i(d,p)}return c}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=C(e));var t=A(this),n=R(this,e,void 0);return n[K].C=!0,j(t),n},t.finishDraft=function(e,t){var n=(e&&e[K]).A;return O(n,t),E(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!U&&r(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=m("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),ee=new Y,te=ee.produce;ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee),ee.createDraft.bind(ee),ee.finishDraft.bind(ee);const ne=te}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{MiddlewareArray:()=>A,TaskAbortError:()=>Oe,addListener:()=>Ce,clearAllListeners:()=>ze,configureStore:()=>T,createAction:()=>R,createAsyncThunk:()=>H,createDraftSafeSelector:()=>O,createEntityAdapter:()=>Z,createImmutableStateInvariantMiddleware:()=>k,createListenerMiddleware:()=>qe,createNextState:()=>e.ZP,createReducer:()=>V,createSelector:()=>u.P1,createSerializableStateInvariantMiddleware:()=>I,createSlice:()=>F,current:()=>e.Vk,findNonSerializableValue:()=>x,freeze:()=>e.vV,getDefaultMiddleware:()=>M,getType:()=>z,isAllOf:()=>te,isAnyOf:()=>ee,isAsyncThunkAction:()=>ce,isDraft:()=>e.mv,isFulfilled:()=>ae,isImmutableDefault:()=>E,isPending:()=>ie,isPlain:()=>_,isPlainObject:()=>j,isRejected:()=>oe,isRejectedWithValue:()=>ue,miniSerializeError:()=>G,nanoid:()=>K,original:()=>e.Js,removeListener:()=>Le,unwrapResult:()=>Q});var e=n(12902),t=n(7185),i={};for(const e in t)["default","MiddlewareArray","TaskAbortError","addListener","clearAllListeners","configureStore","createAction","createAsyncThunk","createDraftSafeSelector","createEntityAdapter","createImmutableStateInvariantMiddleware","createListenerMiddleware","createNextState","createReducer","createSelector","createSerializableStateInvariantMiddleware","createSlice","current","findNonSerializableValue","freeze","getDefaultMiddleware","getType","isAllOf","isAnyOf","isAsyncThunkAction","isDraft","isFulfilled","isImmutableDefault","isPending","isPlain","isPlainObject","isRejected","isRejectedWithValue","miniSerializeError","nanoid","original","removeListener","unwrapResult"].indexOf(e)<0&&(i[e]=()=>t[e]);n.d(r,i);var o,u=n(20573),a=n(65139),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),f=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},l=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},s=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=function(e,t,n){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},b=function(e,t){for(var n in t||(t={}))y.call(t,n)&&g(e,n,t[n]);if(v)for(var r=0,i=v(t);r<i.length;r++)n=i[r],h.call(t,n)&&g(e,n,t[n]);return e},m=function(e,t){return d(e,p(t))},w=function(e,t,n){return new Promise((function(r,i){var o=function(e){try{a(n.next(e))}catch(e){i(e)}},u=function(e){try{a(n.throw(e))}catch(e){i(e)}},a=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(o,u)};a((n=n.apply(e,t)).next())}))},O=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=u.P1.apply(void 0,t);return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return r.apply(void 0,l([(0,e.mv)(t)?(0,e.Vk)(t):t],n))}},P="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?t.compose:t.compose.apply(null,arguments)};function j(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var A=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array);function S(t){return(0,e.o$)(t)?(0,e.ZP)(t,(function(){})):t}function E(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function k(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function _(e){var t=typeof e;return"undefined"===t||null===e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||j(e)}function x(e,t,n,r,i){var o;if(void 0===t&&(t=""),void 0===n&&(n=_),void 0===i&&(i=[]),!n(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;for(var u=null!=r?r(e):Object.entries(e),a=i.length>0,c=0,f=u;c<f.length;c++){var l=f[c],s=l[0],d=l[1],p=t?t+"."+s:s;if(!(a&&i.indexOf(p)>=0)){if(!n(d))return{keyPath:p,value:d};if("object"==typeof d&&(o=x(d,p,n,r,i)))return o}}return!1}function I(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function M(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new A);return n&&("boolean"==typeof n?r.push(a.Z):r.push(a.Z.withExtraArgument(n.extraArgument))),r}var D=!0;function T(e){var n,r=function(e){return M(e)},i=e||{},o=i.reducer,u=void 0===o?void 0:o,a=i.middleware,c=void 0===a?r():a,f=i.devTools,s=void 0===f||f,d=i.preloadedState,p=void 0===d?void 0:d,v=i.enhancers,y=void 0===v?void 0:v;if("function"==typeof u)n=u;else{if(!j(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');n=(0,t.combineReducers)(u)}var h=c;if("function"==typeof h&&(h=h(r),!D&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!D&&h.some((function(e){return"function"!=typeof e})))throw new Error("each middleware provided to configureStore must be a function");var g=t.applyMiddleware.apply(void 0,h),m=t.compose;s&&(m=P(b({trace:!D},"object"==typeof s&&s)));var w=[g];Array.isArray(y)?w=l([g],y):"function"==typeof y&&(w=y(w));var O=m.apply(void 0,w);return(0,t.createStore)(n,p,O)}function R(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return b(b({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function C(e){return["type","payload","error","meta"].indexOf(e)>-1}function z(e){return""+e}function L(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function V(t,n,r,i){void 0===r&&(r=[]);var o,u="function"==typeof n?L(n):[n,r,i],a=u[0],c=u[1],f=u[2];if("function"==typeof t)o=function(){return S(t())};else{var s=S(t);o=function(){return s}}function d(t,n){void 0===t&&(t=o());var r=l([a[n.type]],c.filter((function(e){return(0,e.matcher)(n)})).map((function(e){return e.reducer})));return 0===r.filter((function(e){return!!e})).length&&(r=[f]),r.reduce((function(t,r){if(r){var i;if((0,e.mv)(t))return void 0===(i=r(t,n))?t:i;if((0,e.o$)(t))return(0,e.ZP)(t,(function(e){return r(e,n)}));if(void 0===(i=r(t,n))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return d.getInitialState=o,d}function F(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:S(e.initialState),i=e.reducers||{},o=Object.keys(i),u={},a={},c={};function f(){var t="function"==typeof e.extraReducers?L(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,o=t[1],u=void 0===o?[]:o,c=t[2],f=void 0===c?void 0:c,l=b(b({},i),a);return V(r,l,u,f)}return o.forEach((function(e){var n,r,o=i[e],f=t+"/"+e;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,u[e]=n,a[f]=n,c[e]=r?R(f,r):R(f)})),{name:t,reducer:function(e,t){return n||(n=f()),n(e,t)},actions:c,caseReducers:u,getInitialState:function(){return n||(n=f()),n.getInitialState()}}}function q(t){return function(n,r){var i=function(e){var n;j(n=r)&&"string"==typeof n.type&&Object.keys(n).every(C)?t(r.payload,e):t(r,e)};return(0,e.mv)(n)?(i(n),n):(0,e.ZP)(n,i)}}function N(e,t){return t(e)}function W(e){return Array.isArray(e)||(e=Object.values(e)),e}function U(e,t,n){for(var r=[],i=[],o=0,u=e=W(e);o<u.length;o++){var a=u[o],c=N(a,t);c in n.entities?i.push({id:c,changes:a}):r.push(a)}return[r,i]}function X(e){function t(t,n){var r=N(t,e);r in n.entities||(n.ids.push(r),n.entities[r]=t)}function n(e,n){for(var r=0,i=e=W(e);r<i.length;r++)t(i[r],n)}function r(t,n){var r=N(t,e);r in n.entities||n.ids.push(r),n.entities[r]=t}function i(e,t){var n=!1;e.forEach((function(e){e in t.entities&&(delete t.entities[e],n=!0)})),n&&(t.ids=t.ids.filter((function(e){return e in t.entities})))}function o(t,n){var r={},i={};if(t.forEach((function(e){e.id in n.entities&&(i[e.id]={id:e.id,changes:b(b({},i[e.id]?i[e.id].changes:null),e.changes)})})),(t=Object.values(i)).length>0){var o=t.filter((function(t){return function(t,n,r){var i=r.entities[n.id],o=Object.assign({},i,n.changes),u=N(o,e),a=u!==n.id;return a&&(t[n.id]=u,delete r.entities[n.id]),r.entities[u]=o,a}(r,t,n)})).length>0;o&&(n.ids=n.ids.map((function(e){return r[e]||e})))}}function u(t,r){var i=U(t,e,r),u=i[0];o(i[1],r),n(u,r)}return{removeAll:(a=function(e){Object.assign(e,{ids:[],entities:{}})},c=q((function(e,t){return a(t)})),function(e){return c(e,void 0)}),addOne:q(t),addMany:q(n),setOne:q(r),setMany:q((function(e,t){for(var n=0,i=e=W(e);n<i.length;n++)r(i[n],t)})),setAll:q((function(e,t){e=W(e),t.ids=[],t.entities={},n(e,t)})),updateOne:q((function(e,t){return o([e],t)})),updateMany:q(o),upsertOne:q((function(e,t){return u([e],t)})),upsertMany:q(u),removeOne:q((function(e,t){return i([e],t)})),removeMany:q(i)};var a,c}function Z(e){void 0===e&&(e={});var t=b({sortComparer:!1,selectId:function(e){return e.id}},e),n=t.selectId,r=t.sortComparer,i={getInitialState:function(e){return void 0===e&&(e={}),Object.assign({ids:[],entities:{}},e)}},o={getSelectors:function(e){var t=function(e){return e.ids},n=function(e){return e.entities},r=O(t,n,(function(e,t){return e.map((function(e){return t[e]}))})),i=function(e,t){return t},o=function(e,t){return e[t]},u=O(t,(function(e){return e.length}));if(!e)return{selectIds:t,selectEntities:n,selectAll:r,selectTotal:u,selectById:O(n,i,o)};var a=O(e,n);return{selectIds:O(e,t),selectEntities:a,selectAll:O(e,r),selectTotal:O(e,u),selectById:O(a,i,o)}}},u=r?function(e,t){var n=X(e);function r(t,n){var r=(t=W(t)).filter((function(t){return!(N(t,e)in n.entities)}));0!==r.length&&a(r,n)}function i(e,t){0!==(e=W(e)).length&&a(e,t)}function o(t,n){for(var r=!1,i=0,o=t;i<o.length;i++){var u=o[i],a=n.entities[u.id];if(a){r=!0,Object.assign(a,u.changes);var f=e(a);u.id!==f&&(delete n.entities[u.id],n.entities[f]=a)}}r&&c(n)}function u(t,n){var i=U(t,e,n),u=i[0];o(i[1],n),r(u,n)}function a(t,n){t.forEach((function(t){n.entities[e(t)]=t})),c(n)}function c(n){var r=Object.values(n.entities);r.sort(t);var i=r.map(e);(function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(e[n]!==t[n])return!1;return!0})(n.ids,i)||(n.ids=i)}return{removeOne:n.removeOne,removeMany:n.removeMany,removeAll:n.removeAll,addOne:q((function(e,t){return r([e],t)})),updateOne:q((function(e,t){return o([e],t)})),upsertOne:q((function(e,t){return u([e],t)})),setOne:q((function(e,t){return i([e],t)})),setMany:q(i),setAll:q((function(e,t){e=W(e),t.entities={},t.ids=[],r(e,t)})),addMany:q(r),updateMany:q(o),upsertMany:q(u)}}(n,r):X(n);return b(b(b({selectId:n,sortComparer:r},i),o),u)}var K=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},B=["name","message","stack","code"],J=function(e,t){this.payload=e,this.meta=t},$=function(e,t){this.payload=e,this.meta=t},G=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=B;n<r.length;n++){var i=r[n];"string"==typeof e[i]&&(t[i]=e[i])}return t}return{message:String(e)}};function H(e,t,n){var r=R(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:m(b({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),i=R(e+"/pending",(function(e,t,n){return{payload:void 0,meta:m(b({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),o=R(e+"/rejected",(function(e,t,r,i,o){return{payload:i,error:(n&&n.serializeError||G)(e||"Rejected"),meta:m(b({},o||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),u="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign((function(e){return function(a,c,l){var s,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):K(),p=new u,v=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:s||"Aborted"})}))})),y=!1,h=function(){return w(this,null,(function(){var u,s,h,g,b;return f(this,(function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),null===(m=g=null==(u=null==n?void 0:n.condition)?void 0:u.call(n,e,{getState:c,extra:l}))||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,g];case 1:g=f.sent(),f.label=2;case 2:if(!1===g)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=!0,a(i(d,e,null==(s=null==n?void 0:n.getPendingMeta)?void 0:s.call(n,{requestId:d,arg:e},{getState:c,extra:l}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:a,getState:c,extra:l,requestId:d,signal:p.signal,rejectWithValue:function(e,t){return new J(e,t)},fulfillWithValue:function(e,t){return new $(e,t)}})).then((function(t){if(t instanceof J)throw t;return t instanceof $?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return h=f.sent(),[3,5];case 4:return b=f.sent(),h=b instanceof J?o(null,d,e,b.payload,b.meta):o(b,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),[2,h]}var m}))}))}();return Object.assign(h,{abort:function(e){y&&(s=e,p.abort())},requestId:d,arg:e,unwrap:function(){return h.then(Q)}})}}),{pending:i,rejected:o,fulfilled:r,typePrefix:e})}function Q(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Y=function(e,t){return(n=e)&&"function"==typeof n.match?e.match(t):e(t);var n};function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some((function(e){return Y(e,t)}))}}function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.every((function(e){return Y(e,t)}))}}function ne(e,t){if(!e||!e.meta)return!1;var n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function re(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return ne(e,["pending"])}:re(e)?function(t){var n=e.map((function(e){return e.pending}));return ee.apply(void 0,n)(t)}:ie()(e[0])}function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return ne(e,["rejected"])}:re(e)?function(t){var n=e.map((function(e){return e.rejected}));return ee.apply(void 0,n)(t)}:oe()(e[0])}function ue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return 0===e.length||re(e)?function(t){return te(oe.apply(void 0,e),n)(t)}:ue()(e[0])}function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return ne(e,["fulfilled"])}:re(e)?function(t){var n=e.map((function(e){return e.fulfilled}));return ee.apply(void 0,n)(t)}:ae()(e[0])}function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return ne(e,["pending","fulfilled","rejected"])}:re(e)?function(t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push(o.pending,o.rejected,o.fulfilled)}return ee.apply(void 0,n)(t)}:ce()(e[0])}var fe=function(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function")},le=function(){},se=function(e,t){return void 0===t&&(t=le),e.catch(t),e},de=function(e,t){e.addEventListener("abort",t,{once:!0})},pe=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},ve="listener",ye="completed",he="cancelled",ge="task-"+he,be="task-"+ye,me=ve+"-"+he,we=ve+"-"+ye,Oe=function(e){this.code=e,this.name="TaskAbortError",this.message="task "+he+" (reason: "+e+")"},Pe=function(e){if(e.aborted)throw new Oe(e.reason)},je=function(e){return se(new Promise((function(t,n){var r=function(){return n(new Oe(e.reason))};e.aborted?r():de(e,r)})))},Ae=function(e){return function(t){return se(Promise.race([je(e),t]).then((function(t){return Pe(e),t})))}},Se=function(e){var t=Ae(e);return function(e){return t(new Promise((function(t){return setTimeout(t,e)})))}},Ee=Object.assign,ke={},_e="listenerMiddleware",xe=function(e){return function(t){fe(t,"taskExecutor");var n,r=new AbortController;n=r,de(e,(function(){return pe(n,e.reason)}));var i,o,u=(i=function(){return w(void 0,null,(function(){var n;return f(this,(function(i){switch(i.label){case 0:return Pe(e),Pe(r.signal),[4,t({pause:Ae(r.signal),delay:Se(r.signal),signal:r.signal})];case 1:return n=i.sent(),Pe(r.signal),[2,n]}}))}))},o=function(){return pe(r,be)},w(void 0,null,(function(){var e;return f(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return t.sent(),[4,i()];case 2:return[2,{status:"ok",value:t.sent()}];case 3:return[2,{status:(e=t.sent())instanceof Oe?"cancelled":"rejected",error:e}];case 4:return null==o||o(),[7];case 5:return[2]}}))})));return{result:Ae(e)(u),cancel:function(){pe(r,ge)}}}},Ie=function(e,t){return function(n,r){return se(function(n,r){return w(void 0,null,(function(){var i,o,u,a;return f(this,(function(c){switch(c.label){case 0:Pe(t),i=function(){},o=new Promise((function(t){i=e({predicate:n,effect:function(e,n){n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}})})),u=[je(t),o],null!=r&&u.push(new Promise((function(e){return setTimeout(e,r,null)}))),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,Promise.race(u)];case 2:return a=c.sent(),Pe(t),[2,a];case 3:return i(),[7];case 4:return[2]}}))}))}(n,r))}},Me=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=R(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return fe(o,"options.listener"),{predicate:i,type:t,effect:o}},De=function(e){var t=Me(e),n=t.type,r=t.predicate,i=t.effect;return{id:K(),effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}}},Te=function(e){return function(){e.forEach(Fe),e.clear()}},Re=function(e,t,n){try{e(t,n)}catch(e){setTimeout((function(){throw e}),0)}},Ce=R(_e+"/add"),ze=R(_e+"/removeAll"),Le=R(_e+"/remove"),Ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,l([_e+"/error"],e))},Fe=function(e){e.pending.forEach((function(e){pe(e,me)}))};function qe(e){var t=this;void 0===e&&(e={});var n=new Map,r=e.extra,i=e.onError,o=void 0===i?Ve:i;fe(o,"onError");var u=function(e){for(var t=0,r=Array.from(n.values());t<r.length;t++){var i=r[t];if(e(i))return i}},a=function(e){var t=u((function(t){return t.effect===e.effect}));return t||(t=De(e)),function(e){return e.unsubscribe=function(){return n.delete(e.id)},n.set(e.id,e),function(t){e.unsubscribe(),(null==t?void 0:t.cancelActive)&&Fe(e)}}(t)},c=function(e){var t=Me(e),n=t.type,r=t.effect,i=t.predicate,o=u((function(e){return("string"==typeof n?e.type===n:e.predicate===i)&&e.effect===r}));return o&&(o.unsubscribe(),e.cancelActive&&Fe(o)),!!o},l=function(e,i,u,c){return w(t,null,(function(){var t,l,s;return f(this,(function(f){switch(f.label){case 0:t=new AbortController,l=Ie(a,t.signal),f.label=1;case 1:return f.trys.push([1,3,4,5]),e.pending.add(t),[4,Promise.resolve(e.effect(i,Ee({},u,{getOriginalState:c,condition:function(e,t){return l(e,t).then(Boolean)},take:l,delay:Se(t.signal),pause:Ae(t.signal),extra:r,signal:t.signal,fork:xe(t.signal),unsubscribe:e.unsubscribe,subscribe:function(){n.set(e.id,e)},cancelActiveListeners:function(){e.pending.forEach((function(e,n,r){e!==t&&(pe(e,me),r.delete(e))}))}})))];case 2:return f.sent(),[3,5];case 3:return(s=f.sent())instanceof Oe||Re(o,s,{raisedBy:"effect"}),[3,5];case 4:return pe(t,we),e.pending.delete(t),[7];case 5:return[2]}}))}))},s=Te(n);return{middleware:function(e){return function(t){return function(r){if(Ce.match(r))return a(r.payload);if(!ze.match(r)){if(Le.match(r))return c(r.payload);var i,u=e.getState(),f=function(){if(u===ke)throw new Error(_e+": getOriginalState can only be called synchronously");return u};try{if(i=t(r),n.size>0)for(var d=e.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,u)}catch(e){g=!1,Re(o,e,{raisedBy:"predicate"})}g&&l(h,r,e,f)}}finally{u=ke}return i}s()}}},startListening:a,stopListening:c,clearListeners:s}}(0,e.pV)()})(),(window.yoast=window.yoast||{}).reduxJsToolkit=r})();
Save Changes
Rename File
Rename