WordPress/wp-includes/js/dist/data.min.js

2 lines
35 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.data=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./node_modules/@wordpress/data/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":function(e,t,r){"use strict";function n(e,t,r,n,o,u,i){try{var c=e[u](i),a=c.value}catch(e){return void r(e)}c.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,u){var i=e.apply(t,r);function c(e){n(i,o,u,c,a,"next",e)}function a(e){n(i,o,u,c,a,"throw",e)}c(void 0)}))}}r.d(t,"a",(function(){return o}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),u=r("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,u=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw u}}return r}}(e,t)||Object(o.a)(e,t)||Object(u.a)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),u=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(u.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},"./node_modules/@wordpress/data/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,"withSelect",(function(){return He})),r.d(t,"withDispatch",(function(){return Ke})),r.d(t,"withRegistry",(function(){return We})),r.d(t,"RegistryProvider",(function(){return Ce})),r.d(t,"RegistryConsumer",(function(){return Le})),r.d(t,"useRegistry",(function(){return Me})),r.d(t,"useSelect",(function(){return Ge})),r.d(t,"useDispatch",(function(){return Xe})),r.d(t,"AsyncModeProvider",(function(){return Ve})),r.d(t,"createRegistry",(function(){return le})),r.d(t,"createRegistrySelector",(function(){return A})),r.d(t,"createRegistryControl",(function(){return I})),r.d(t,"controls",(function(){return N})),r.d(t,"createReduxStore",(function(){return re})),r.d(t,"plugins",(function(){return u})),r.d(t,"combineReducers",(function(){return c.a})),r.d(t,"select",(function(){return Be})),r.d(t,"__experimentalResolveSelect",(function(){return Je})),r.d(t,"dispatch",(function(){return Ye})),r.d(t,"subscribe",(function(){return ze})),r.d(t,"registerGenericStore",(function(){return Qe})),r.d(t,"registerStore",(function(){return $e})),r.d(t,"use",(function(){return Ze})),r.d(t,"register",(function(){return et}));var n={};r.r(n),r.d(n,"getIsResolving",(function(){return K})),r.d(n,"hasStartedResolution",(function(){return W})),r.d(n,"hasFinishedResolution",(function(){return X})),r.d(n,"isResolving",(function(){return B})),r.d(n,"getCachedResolvers",(function(){return J}));var o={};r.r(o),r.d(o,"startResolution",(function(){return Y})),r.d(o,"finishResolution",(function(){return z})),r.d(o,"invalidateResolution",(function(){return Q})),r.d(o,"invalidateResolutionForStore",(function(){return $})),r.d(o,"invalidateResolutionForStoreSelector",(function(){return Z}));var u={};r.r(u),r.d(u,"controls",(function(){return ve})),r.d(u,"persistence",(function(){return _e}));var i=r("./node_modules/turbo-combine-reducers/index.js"),c=r.n(i),a=r("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),l=r("lodash"),f=r("@babel/runtime/regenerator"),p=r.n(f),d=r("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),b=r("./node_modules/symbol-observable/es/index.js"),y=function(){return Math.random().toString(36).substring(7).split("").join(".")},v={INIT:"@@redux/INIT"+y(),REPLACE:"@@redux/REPLACE"+y(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+y()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function m(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(m)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,u=t,i=[],c=i,a=!1;function s(){c===i&&(c=i.slice())}function l(){if(a)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(a)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return s(),c.push(e),function(){if(t){if(a)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,s();var r=c.indexOf(e);c.splice(r,1),i=null}}}function p(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(a)throw new Error("Reducers may not dispatch actions.");try{a=!0,u=o(u,e)}finally{a=!1}for(var t=i=c,r=0;r<t.length;r++){(0,t[r])()}return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:v.REPLACE})}function y(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[b.a]=function(){return this},e}return p({type:v.INIT}),(n={dispatch:p,subscribe:f,getState:l,replaceReducer:d})[b.a]=y,n}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(r,!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function S(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},u=t.map((function(e){return e(o)}));return j({},r,{dispatch:n=w.apply(void 0,u)(r.dispatch)})}}}var _,E=r("./node_modules/equivalent-key-map/equivalent-key-map.js"),R=r.n(E),P=r("@wordpress/redux-routine"),T=r.n(P),x=r("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");function A(e){var t=function t(){return e(t.registry.select).apply(void 0,arguments)};return t.isRegistrySelector=!0,t}function I(e){return e.isRegistryControl=!0,e}var k="@@data/SELECT";var N={select:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:k,storeKey:e,selectorName:t,args:n}},resolveSelect:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"@@data/RESOLVE_SELECT",storeKey:e,selectorName:t,args:n}},dispatch:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"@@data/DISPATCH",storeKey:e,actionName:t,args:n}}},D=(_={},Object(s.a)(_,k,I((function(e){return function(t){var r,n=t.storeKey,o=t.selectorName,u=t.args;return(r=e.select(n))[o].apply(r,Object(x.a)(u))}}))),Object(s.a)(_,"@@data/RESOLVE_SELECT",I((function(e){return function(t){var r,n=t.storeKey,o=t.selectorName,u=t.args,i=e.select(n)[o].hasResolver?"__experimentalResolveSelect":"select";return(r=e[i](n))[o].apply(r,Object(x.a)(u))}}))),Object(s.a)(_,"@@data/DISPATCH",I((function(e){return function(t){var r,n=t.storeKey,o=t.actionName,u=t.args;return(r=e.dispatch(n))[o].apply(r,Object(x.a)(u))}}))),_),L=r("./node_modules/is-promise/index.js"),C=r.n(L),M=function(){return function(e){return function(t){return C()(t)?t.then((function(t){if(t)return e(t)})):e(t)}}},U=function(e,t){return function(){return function(r){return function(n){var o=e.select("core/data").getCachedResolvers(t);return Object.entries(o).forEach((function(r){var o=Object(a.a)(r,2),u=o[0],i=o[1],c=Object(l.get)(e.stores,[t,"resolvers",u]);c&&c.shouldInvalidate&&i.forEach((function(r,o){!1===r&&c.shouldInvalidate.apply(c,[n].concat(Object(x.a)(o)))&&e.dispatch("core/data").invalidateResolution(t,u,o)}))})),r(n)}}}};function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var G,H=(G="selectorName",function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[G];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:F(F({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new R.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new R.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new R.a(e);return o.delete(t.args),o}return e})),q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(l.has)(e,[t.selectorName])?Object(l.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return H(e,t)}return e};function K(e,t,r){var n=Object(l.get)(e,[t]);if(n)return n.get(r)}function W(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==K(e,t,r)}function X(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===K(e,t,r)}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===K(e,t,r)}function J(e){return e}function Y(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function z(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Q(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function $(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Z(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t){return{name:e,instantiate:function(r){var u,i,a=t.reducer,s=function(e,t,r,n){var o=te(te({},t.controls),D),u=Object(l.mapValues)(o,(function(e){return e.isRegistryControl?e(r):e})),i=[U(r,e),M,T()(u)];t.__experimentalUseThunks&&i.push((a=n,function(){return function(e){return function(t){return"function"==typeof t?t(a):e(t)}}}));var a;var s=[S.apply(void 0,i)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&s.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));var f=t.reducer,p=t.initialState;return m(c()({metadata:q,root:f}),{root:p},Object(l.flowRight)(s))}(e,t,r,{registry:r,get dispatch(){return Object.assign((function(e){return s.dispatch(e)}),O())},get select(){return Object.assign((function(e){return e(s.__unstableOriginalGetState())}),h())},get resolveSelect(){return g()}}),f=(u={},{isRunning:function(e,t){return u[e]&&u[e].get(t)},clear:function(e,t){u[e]&&u[e].delete(t)},markAsRunning:function(e,t){u[e]||(u[e]=new R.a),u[e].set(t,!0)}}),b=function(e,t){return Object(l.mapValues)(e,(function(e){return function(){return Promise.resolve(t.dispatch(e.apply(void 0,arguments)))}}))}(te(te({},o),t.actions),s),y=function(e,t){return Object(l.mapValues)(e,(function(e){var r=function(){var r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(var o=0;o<r;o++)n[o+1]=arguments[o];return e.apply(void 0,n)};return r.hasResolver=!1,r}))}(te(te({},Object(l.mapValues)(n,(function(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e.apply(void 0,[t.metadata].concat(n))}}))),Object(l.mapValues)(t.selectors,(function(e){return e.isRegistrySelector&&(e.registry=r),function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e.apply(void 0,[t.root].concat(n))}}))),s);if(t.resolvers){var v=function(e,t,r,n){var o=Object(l.mapValues)(e,(function(e){return e.fulfill?e:te(te({},e),{},{fulfill:e})}));return{resolvers:o,selectors:Object(l.mapValues)(t,(function(t,u){var i=e[u];if(!i)return t.hasResolver=!1,t;var c=function(){for(var e=arguments.length,c=new Array(e),a=0;a<e;a++)c[a]=arguments[a];function s(){return l.apply(this,arguments)}function l(){return(l=Object(d.a)(p.a.mark((function e(){var t,a;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.getState(),!(n.isRunning(u,c)||"function"==typeof i.isFulfilled&&i.isFulfilled.apply(i,[t].concat(c)))){e.next=3;break}return e.abrupt("return");case 3:if(a=r.__unstableOriginalGetState(),!W(a.metadata,u,c)){e.next=6;break}return e.abrupt("return");case 6:n.markAsRunning(u,c),setTimeout(Object(d.a)(p.a.mark((function e(){return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.clear(u,c),r.dispatch(Y(u,c)),e.next=4,ne.apply(void 0,[r,o,u].concat(c));case 4:r.dispatch(z(u,c));case 5:case"end":return e.stop()}}),e)}))));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return s.apply(void 0,c),t.apply(void 0,c)};return c.hasResolver=!0,c}))}}(t.resolvers,y,s,f);i=v.resolvers,y=v.selectors}var h=function(){return y},O=function(){return b},g=function(){return function(e,t){return Object(l.mapValues)(Object(l.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(r,n){return function(){for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return new Promise((function(o){var i=function(){return e.hasFinishedResolution(n,u)},c=function(){return r.apply(null,u)},a=c();if(i())return o(a);var s=t.subscribe((function(){i()&&(s(),o(c()))}))}))}}))}(y,s)};s.__unstableOriginalGetState=s.getState,s.getState=function(){return s.__unstableOriginalGetState().root};var j=s&&function(e){var t=s.__unstableOriginalGetState();return s.subscribe((function(){var r=s.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))};return{reducer:a,store:s,actions:b,selectors:y,resolvers:i,getSelectors:h,__experimentalGetResolveSelectors:g,getActions:O,subscribe:j}}}}function ne(e,t,r){return oe.apply(this,arguments)}function oe(){return(oe=Object(d.a)(p.a.mark((function e(t,r,n){var o,u,i,c,a,s=arguments;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Object(l.get)(r,[n])){e.next=3;break}return e.abrupt("return");case 3:for(u=s.length,i=new Array(u>3?u-3:0),c=3;c<u;c++)i[c-3]=s[c];if(!(a=o.fulfill.apply(o,i))){e.next=8;break}return e.next=8,t.dispatch(a);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce=function(e){return{getSelectors:function(){return["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].reduce((function(t,r){return ie(ie({},t),{},Object(s.a)({},r,function(t){return function(r){for(var n,o=arguments.length,u=new Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];return(n=e.select(r))[t].apply(n,u)}}(r)))}),{})},getActions:function(){return["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].reduce((function(t,r){return ie(ie({},t),{},Object(s.a)({},r,function(t){return function(r){for(var n,o=arguments.length,u=new Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];return(n=e.dispatch(r))[t].apply(n,u)}}(r)))}),{})},subscribe:function(){return function(){}}}};function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[],o=new Set;function u(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(l.without)(n,e)}};function c(e){var n=Object(l.isObject)(e)?e.name:e;o.add(n);var u=r[n];return u?u.getSelectors():t&&t.select(n)}function s(e,t){o.clear();var r=e.call(this);return t.current=Array.from(o),r}function f(e){var n=Object(l.isObject)(e)?e.name:e;o.add(n);var u=r[n];return u?u.__experimentalGetResolveSelectors():t&&t.__experimentalResolveSelect(n)}function p(e){var n=Object(l.isObject)(e)?e.name:e,o=r[n];return o?o.getActions():t&&t.dispatch(n)}function d(e){return Object(l.mapValues)(e,(function(e,t){return"function"!=typeof e?e:function(){return h[t].apply(null,arguments)}}))}function b(e,t){if("function"!=typeof t.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof t.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof t.subscribe)throw new TypeError("config.subscribe must be a function");r[e]=t,t.subscribe(u)}function y(e){b(e.name,e.instantiate(h))}function v(e,n){return e in r?r[e].subscribe(n):t?t.__experimentalSubscribeStore(e,n):i(n)}var h={registerGenericStore:b,stores:r,namespaces:r,subscribe:i,select:c,__experimentalResolveSelect:f,dispatch:p,use:m,register:y,__experimentalMarkListeningStores:s,__experimentalSubscribeStore:v};function m(e,t){return h=se(se({},h),e(h,t))}return h.registerStore=function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");var r=re(e,t).instantiate(h);return b(e,r),r.store},b("core/data",ce(h)),Object.entries(e).forEach((function(e){var t=Object(a.a)(e,2),r=t[0],n=t[1];return h.registerStore(r,n)})),t&&t.subscribe(u),d(h)}var fe,pe,de=le(),be=r("@wordpress/deprecated"),ye=r.n(be),ve=function(e){return ye()("wp.data.plugins.controls",{hint:"The controls plugins is now baked-in."}),e},he={getItem:function(e){return fe&&fe[e]?fe[e]:null},setItem:function(e,t){fe||he.clear(),fe[e]=String(t)},clear:function(){fe=Object.create(null)}},me=he;try{(pe=window.localStorage).setItem("__wpDataTestLocalStorage",""),pe.removeItem("__wpDataTestLocalStorage")}catch(e){pe=me}function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){Object(s.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var je=pe;function we(e){var t,r=e.storage,n=void 0===r?je:r,o=e.storageKey,u=void 0===o?"WP_DATA":o;return{get:function(){if(void 0===t){var e=n.getItem(u);if(null===e)t={};else try{t=JSON.parse(e)}catch(e){t={}}}return t},set:function(e,r){t=ge(ge({},t),{},Object(s.a)({},e,r)),n.setItem(u,JSON.stringify(t))}}}function Se(e,t){var r=we(t);return{registerStore:function(t,n){if(!n.persist)return e.registerStore(t,n);var o=r.get()[t];if(void 0!==o){var u=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});u=Object(l.isPlainObject)(u)&&Object(l.isPlainObject)(o)?Object(l.merge)({},u,o):o,n=ge(ge({},n),{},{initialState:u})}var i=e.registerStore(t,n);return i.subscribe(function(e,t,n){var o,u;if(Array.isArray(n)){var i=n.reduce((function(e,t){return Object.assign(e,Object(s.a)({},t,(function(e,r){return r.nextState[t]})))}),{});u=c()(i),o=function(e,t){return t.nextState===e?e:u(e,t)}}else o=function(e,t){return t.nextState};var a=o(void 0,{nextState:e()});return function(){var n=o(a,{nextState:e()});n!==a&&(r.set(t,n),a=n)}}(i.getState,t,n.persist)),i}}}Se.__unstableMigrate=function(e){var t,r,n=we(e),o=n.get(),u=null===(t=o["core/editor"])||void 0===t||null===(r=t.preferences)||void 0===r?void 0:r.insertUsage;if(u){var i,c,a=null===(i=o["core/block-editor"])||void 0===i||null===(c=i.preferences)||void 0===c?void 0:c.insertUsage;n.set("core/block-editor",{preferences:{insertUsage:ge(ge({},u),a)}})}var s=o["core/edit-post"],f=Object.keys(o).length>0,p=Object(l.has)(o,["core/edit-post","preferences","features","fullscreenMode"]);f&&!p&&(s=Object(l.merge)({},s,{preferences:{features:{fullscreenMode:!1}}}));var d=Object(l.get)(o,["core/nux","preferences","areTipsEnabled"]),b=Object(l.has)(o,["core/edit-post","preferences","features","welcomeGuide"]);void 0===d||b||(s=Object(l.merge)({},s,{preferences:{features:{welcomeGuide:d}}})),s!==o["core/edit-post"]&&n.set("core/edit-post",s)};var _e=Se,Ee=r("./node_modules/@babel/runtime/helpers/esm/extends.js"),Re=r("@wordpress/element"),Pe=r("@wordpress/compose"),Te=r("./node_modules/use-memo-one/dist/use-memo-one.esm.js"),xe=r("@wordpress/priority-queue"),Ae=r("@wordpress/is-shallow-equal"),Ie=r.n(Ae),ke=Object(Re.createContext)(de),Ne=ke.Consumer,De=ke.Provider,Le=Ne,Ce=De;function Me(){return Object(Re.useContext)(ke)}var Ue=Object(Re.createContext)(!1),Ve=(Ue.Consumer,Ue.Provider);var Fe=Object(xe.createQueue)();function Ge(e,t){var r,n=Object(Re.useCallback)(e,t),o=Me(),u=Object(Re.useContext)(Ue),i=Object(Te.a)((function(){return{queue:!0}}),[o]),c=Object(Re.useReducer)((function(e){return e+1}),0),s=Object(a.a)(c,2)[1],l=Object(Re.useRef)(),f=Object(Re.useRef)(u),p=Object(Re.useRef)(),d=Object(Re.useRef)(),b=Object(Re.useRef)(),y=Object(Re.useRef)([]),v=Object(Re.useCallback)((function(e){return o.__experimentalMarkListeningStores(e,y)}),[o]),h=Object(Re.useMemo)((function(){return{}}),t||[]);try{r=l.current!==n||d.current?v((function(){return n(o.select,o)})):p.current}catch(e){var m="An error occurred while running 'mapSelect': ".concat(e.message);if(d.current)throw m+="\nThe error may be correlated with this previous error:\n",m+="".concat(d.current.stack,"\n\n"),m+="Original stack trace:",new Error(m);console.error(m)}return Object(Pe.useIsomorphicLayoutEffect)((function(){l.current=n,p.current=r,d.current=void 0,b.current=!0,f.current!==u&&(f.current=u,Fe.flush(i))})),Object(Pe.useIsomorphicLayoutEffect)((function(){var e=function(){if(b.current){try{var e=v((function(){return l.current(o.select,o)}));if(Ie()(p.current,e))return;p.current=e}catch(e){d.current=e}s()}};f.current?Fe.add(i,e):e();var t=function(){f.current?Fe.add(i,e):e()},r=y.current.map((function(e){return o.__experimentalSubscribeStore(e,t)}));return function(){b.current=!1,r.forEach((function(e){return null==e?void 0:e()})),Fe.flush(i)}}),[o,v,h]),r}var He=function(e){return Object(Pe.createHigherOrderComponent)((function(t){return Object(Pe.pure)((function(r){var n=Ge((function(t,n){return e(t,r,n)}));return Object(Re.createElement)(t,Object(Ee.a)({},r,n))}))}),"withSelect")},qe=function(e,t){var r=Me(),n=Object(Re.useRef)(e);return Object(Pe.useIsomorphicLayoutEffect)((function(){n.current=e})),Object(Re.useMemo)((function(){var e=n.current(r.dispatch,r);return Object(l.mapValues)(e,(function(e,t){return"function"!=typeof e&&console.warn("Property ".concat(t," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var e;return(e=n.current(r.dispatch,r))[t].apply(e,arguments)}}))}),[r].concat(Object(x.a)(t)))},Ke=function(e){return Object(Pe.createHigherOrderComponent)((function(t){return function(r){var n=qe((function(t,n){return e(t,r,n)}),[]);return Object(Re.createElement)(t,Object(Ee.a)({},r,n))}}),"withDispatch")},We=Object(Pe.createHigherOrderComponent)((function(e){return function(t){return Object(Re.createElement)(Le,null,(function(r){return Object(Re.createElement)(e,Object(Ee.a)({},t,{registry:r}))}))}}),"withRegistry"),Xe=function(e){var t=Me().dispatch;return void 0===e?t:t(e)},Be=de.select,Je=de.__experimentalResolveSelect,Ye=de.dispatch,ze=de.subscribe,Qe=de.registerGenericStore,$e=de.registerStore,Ze=de.use,et=de.register},"./node_modules/equivalent-key-map/equivalent-key-map.js":function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(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 u(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var u=Object.keys(t).sort(),i=Array.isArray(t)?n:o,c=0;c<u.length;c++){var a=u[c];if(void 0===(i=i.get(a)))return;var s=t[a];if(void 0===(i=i.get(s)))return}var l=i.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,i.set("_ekm_value",l),r.set(t,l),l):void 0}var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var t,r,i;return t=e,(r=[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var o=Object.keys(t).sort(),u=[t,r],i=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var a=o[c];i.has(a)||i.set(a,new e),i=i.get(a);var s=t[a];i.has(s)||i.set(s,new e),i=i.get(s)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",u),this._map.set(t,u),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=u(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):void 0!==u(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,u){null!==u&&"object"===n(u)&&(o=o[1]),e.call(r,o,u,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),i&&o(t,i),e}();e.exports=i},"./node_modules/is-promise/index.js":function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=r,e.exports.default=r},"./node_modules/symbol-observable/es/index.js":function(e,t,r){"use strict";(function(e,n){var o,u=r("./node_modules/symbol-observable/es/ponyfill.js");o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(u.a)(o);t.a=i}).call(this,r("./node_modules/webpack/buildin/global.js"),r("./node_modules/webpack/buildin/harmony-module.js")(e))},"./node_modules/symbol-observable/es/ponyfill.js":function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},"./node_modules/turbo-combine-reducers/index.js":function(e,t){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t<r.length;t++)e+=(n=JSON.stringify(r[t]))+":r["+n+"](s["+n+"],a),";return e+="}",new Function("r,s,a",e)}(),function(n,o){var u,i,c;if(void 0===n)return t(e,{},o);for(u=t(e,n,o),i=r.length;i--;)if(n[c=r[i]]!==u[c])return u;return n}}},"./node_modules/use-memo-one/dist/use-memo-one.esm.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("react");function o(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(n.useRef)(!0),u=Object(n.useRef)(r),i=o.current||Boolean(t&&u.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,u.current.inputs))?u.current:{inputs:t,result:e()};return Object(n.useEffect)((function(){o.current=!1,u.current=i}),[i]),i.result}},"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/harmony-module.js":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"@babel/runtime/regenerator":function(e,t){e.exports=window.regeneratorRuntime},"@wordpress/compose":function(e,t){e.exports=window.wp.compose},"@wordpress/deprecated":function(e,t){e.exports=window.wp.deprecated},"@wordpress/element":function(e,t){e.exports=window.wp.element},"@wordpress/is-shallow-equal":function(e,t){e.exports=window.wp.isShallowEqual},"@wordpress/priority-queue":function(e,t){e.exports=window.wp.priorityQueue},"@wordpress/redux-routine":function(e,t){e.exports=window.wp.reduxRoutine},lodash:function(e,t){e.exports=window.lodash},react:function(e,t){e.exports=window.React}});