mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
6e4458c935
Props peterwilsoncc, desrosj. Fixes #53192. Built from https://develop.svn.wordpress.org/trunk@50940 git-svn-id: http://core.svn.wordpress.org/trunk@50549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
23 KiB
JavaScript
2 lines
23 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/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/@wordpress/data/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,"withSelect",(function(){return Ie})),r.d(t,"withDispatch",(function(){return xe})),r.d(t,"withRegistry",(function(){return Ae})),r.d(t,"RegistryProvider",(function(){return me})),r.d(t,"RegistryConsumer",(function(){return ve})),r.d(t,"useRegistry",(function(){return Se})),r.d(t,"useSelect",(function(){return Te})),r.d(t,"useDispatch",(function(){return Le})),r.d(t,"AsyncModeProvider",(function(){return Re})),r.d(t,"createRegistry",(function(){return z})),r.d(t,"createRegistrySelector",(function(){return _})),r.d(t,"createRegistryControl",(function(){return R})),r.d(t,"controls",(function(){return E})),r.d(t,"createReduxStore",(function(){return B})),r.d(t,"plugins",(function(){return s})),r.d(t,"combineReducers",(function(){return c.a})),r.d(t,"select",(function(){return Pe})),r.d(t,"resolveSelect",(function(){return Ce})),r.d(t,"dispatch",(function(){return ke})),r.d(t,"subscribe",(function(){return Ue})),r.d(t,"registerGenericStore",(function(){return Me})),r.d(t,"registerStore",(function(){return De})),r.d(t,"use",(function(){return Fe})),r.d(t,"register",(function(){return Ve}));var n={};r.r(n),r.d(n,"getIsResolving",(function(){return k})),r.d(n,"hasStartedResolution",(function(){return U})),r.d(n,"hasFinishedResolution",(function(){return M})),r.d(n,"isResolving",(function(){return D})),r.d(n,"getCachedResolvers",(function(){return F}));var o={};r.r(o),r.d(o,"startResolution",(function(){return V})),r.d(o,"finishResolution",(function(){return G})),r.d(o,"startResolutions",(function(){return H})),r.d(o,"finishResolutions",(function(){return q})),r.d(o,"invalidateResolution",(function(){return K})),r.d(o,"invalidateResolutionForStore",(function(){return W})),r.d(o,"invalidateResolutionForStoreSelector",(function(){return X}));var s={};r.r(s),r.d(s,"controls",(function(){return Z})),r.d(s,"persistence",(function(){return ue}));var i=r("./node_modules/turbo-combine-reducers/index.js"),c=r.n(i),u=r("lodash");function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(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?l(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",b=function(){return Math.random().toString(36).substring(7).split("").join(".")},O={INIT:"@@redux/INIT"+b(),REPLACE:"@@redux/REPLACE"+b(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b()}};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 g(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(d(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(d(1));return r(g)(e,t)}if("function"!=typeof e)throw new Error(d(2));var o=e,s=t,i=[],c=i,u=!1;function a(){c===i&&(c=i.slice())}function l(){if(u)throw new Error(d(3));return s}function f(e){if("function"!=typeof e)throw new Error(d(4));if(u)throw new Error(d(5));var t=!0;return a(),c.push(e),function(){if(t){if(u)throw new Error(d(6));t=!1,a();var r=c.indexOf(e);c.splice(r,1),i=null}}}function b(e){if(!h(e))throw new Error(d(7));if(void 0===e.type)throw new Error(d(8));if(u)throw new Error(d(9));try{u=!0,s=o(s,e)}finally{u=!1}for(var t=i=c,r=0;r<t.length;r++){(0,t[r])()}return e}function y(e){if("function"!=typeof e)throw new Error(d(10));o=e,b({type:O.REPLACE})}function v(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(d(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e}return b({type:O.INIT}),(n={dispatch:b,subscribe:f,getState:l,replaceReducer:y})[p]=v,n}function y(){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 v(){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(d(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return n=y.apply(void 0,s)(r.dispatch),f(f({},r),{},{dispatch:n})}}}var m=r("./node_modules/equivalent-key-map/equivalent-key-map.js"),S=r.n(m),w=r("@wordpress/redux-routine"),j=r.n(w);function _(e){const t=(...r)=>e(t.registry.select)(...r);return t.isRegistrySelector=!0,t}function R(e){return e.isRegistryControl=!0,e}const E={select:function(e,t,...r){return{type:"@@data/SELECT",storeKey:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:"@@data/RESOLVE_SELECT",storeKey:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:"@@data/DISPATCH",storeKey:e,actionName:t,args:r}}},T={"@@data/SELECT":R(e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n)),"@@data/RESOLVE_SELECT":R(e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)}),"@@data/DISPATCH":R(e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n))};var I=r("./node_modules/is-promise/index.js"),N=r.n(I);var x=()=>e=>t=>N()(t)?t.then(t=>{if(t)return e(t)}):e(t);var A=(e,t)=>()=>r=>n=>{const o=e.select("core/data").getCachedResolvers(t);return Object.entries(o).forEach(([r,o])=>{const s=Object(u.get)(e.stores,[t,"resolvers",r]);s&&s.shouldInvalidate&&o.forEach((o,i)=>{!1===o&&s.shouldInvalidate(n,...i)&&e.dispatch("core/data").invalidateResolution(t,r,i)})}),r(n)};const L=(P="selectorName",e=>(t={},r)=>{const n=r[P];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})((e=new S.a,t)=>{switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":{const r="START_RESOLUTION"===t.type,n=new S.a(e);return n.set(t.args,r),n}case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":{const r="START_RESOLUTIONS"===t.type,n=new S.a(e);for(const e of t.args)n.set(e,r);return n}case"INVALIDATE_RESOLUTION":{const r=new S.a(e);return r.delete(t.args),r}}return e});var P;var C=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(u.has)(e,[t.selectorName])?Object(u.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return L(e,t)}return e};function k(e,t,r){const n=Object(u.get)(e,[t]);if(n)return n.get(r)}function U(e,t,r=[]){return void 0!==k(e,t,r)}function M(e,t,r=[]){return!1===k(e,t,r)}function D(e,t,r=[]){return!0===k(e,t,r)}function F(e){return e}function V(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function G(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function H(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function q(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function K(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function W(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function X(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function B(e,t){return{name:e,instantiate:r=>{const s=t.reducer,i=function(e,t,r,n){const o={...t.controls,...T},s=Object(u.mapValues)(o,e=>e.isRegistryControl?e(r):e),i=[A(r,e),x,j()(s)];t.__experimentalUseThunks&&i.push((a=n,()=>e=>t=>"function"==typeof t?t(a):e(t)));var a;const l=[v(...i)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&l.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));const{reducer:f,initialState:d}=t;return g(c()({metadata:C,root:f}),{root:d},Object(u.flowRight)(l))}(e,t,r,{registry:r,get dispatch(){return Object.assign(e=>i.dispatch(e),O())},get select(){return Object.assign(e=>e(i.__unstableOriginalGetState()),b())},get resolveSelect(){return h()}}),a=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(r),clear(t,r){e[t]&&e[t].delete(r)},markAsRunning(t,r){e[t]||(e[t]=new S.a),e[t].set(r,!0)}}}();let l;const f=function(e,t){return Object(u.mapValues)(e,e=>(...r)=>Promise.resolve(t.dispatch(e(...r))))}({...o,...t.actions},i);let d=function(e,t){return Object(u.mapValues)(e,e=>{const r=function(){const r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(let e=0;e<r;e++)n[e+1]=arguments[e];return e(...n)};return r.hasResolver=!1,r})}({...Object(u.mapValues)(n,e=>(t,...r)=>e(t.metadata,...r)),...Object(u.mapValues)(t.selectors,e=>(e.isRegistrySelector&&(e.registry=r),(t,...r)=>e(t.root,...r)))},i);if(t.resolvers){const e=function(e,t,r,n){const o=Object(u.mapValues)(e,e=>e.fulfill?e:{...e,fulfill:e});return{resolvers:o,selectors:Object(u.mapValues)(t,(t,s)=>{const i=e[s];if(!i)return t.hasResolver=!1,t;const c=(...e)=>(async function(){const t=r.getState();if(n.isRunning(s,e)||"function"==typeof i.isFulfilled&&i.isFulfilled(t,...e))return;const{metadata:c}=r.__unstableOriginalGetState();U(c,s,e)||(n.markAsRunning(s,e),setTimeout(async()=>{n.clear(s,e),r.dispatch(V(s,e)),await async function(e,t,r,...n){const o=Object(u.get)(t,[r]);if(!o)return;const s=o.fulfill(...n);s&&await e.dispatch(s)}(r,o,s,...e),r.dispatch(G(s,e))}))}(...e),t(...e));return c.hasResolver=!0,c})}}(t.resolvers,d,i,a);l=e.resolvers,d=e.selectors}const p=function(e,t){return Object(u.mapValues)(Object(u.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(r,n)=>(...o)=>new Promise(s=>{const i=()=>e.hasFinishedResolution(n,o),c=()=>r.apply(null,o),u=c();if(i())return s(u);const a=t.subscribe(()=>{i()&&(a(),s(c()))})}))}(d,i),b=()=>d,O=()=>f,h=()=>p;i.__unstableOriginalGetState=i.getState,i.getState=()=>i.__unstableOriginalGetState().root;const y=i&&(e=>{let t=i.__unstableOriginalGetState();return i.subscribe(()=>{const r=i.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()})});return{reducer:s,store:i,actions:f,selectors:d,resolvers:l,getSelectors:b,getResolveSelectors:h,getActions:O,subscribe:y}}}}var J=function(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors:()=>["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].reduce((e,r)=>({...e,[r]:t(r)}),{}),getActions:()=>["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].reduce((e,t)=>({...e,[t]:r(t)}),{}),subscribe:()=>()=>{}}};function z(e={},t=null){const r={};let n=[];const o=new Set;function s(){n.forEach(e=>e())}const i=e=>(n.push(e),()=>{n=Object(u.without)(n,e)});function c(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(s)}let a={registerGenericStore:c,stores:r,namespaces:r,subscribe:i,select:function(e){const n=Object(u.isObject)(e)?e.name:e;o.add(n);const s=r[n];return s?s.getSelectors():t&&t.select(n)},resolveSelect:function(e){const n=Object(u.isObject)(e)?e.name:e;o.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},dispatch:function(e){const n=Object(u.isObject)(e)?e.name:e,o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){return a={...a,...e(a,t)},a},register:function(e){c(e.name,e.instantiate(a))},__experimentalMarkListeningStores:function(e,t){o.clear();const r=e.call(this);return t.current=Array.from(o),r},__experimentalSubscribeStore:function(e,n){return e in r?r[e].subscribe(n):t?t.__experimentalSubscribeStore(e,n):i(n)}};return a.registerStore=(e,t)=>{if(!t.reducer)throw new TypeError("Must specify store reducer");const r=B(e,t).instantiate(a);return c(e,r),r.store},c("core/data",J(a)),Object.entries(e).forEach(([e,t])=>a.registerStore(e,t)),t&&t.subscribe(s),l=a,Object(u.mapValues)(l,(e,t)=>"function"!=typeof e?e:function(){return a[t].apply(null,arguments)});var l}var Q=z(),$=r("@wordpress/deprecated"),Y=r.n($),Z=e=>(Y()("wp.data.plugins.controls",{since:"5.4",hint:"The controls plugins is now baked-in."}),e);let ee;const te={getItem:e=>ee&&ee[e]?ee[e]:null,setItem(e,t){ee||te.clear(),ee[e]=String(t)},clear(){ee=Object.create(null)}};var re=te;let ne;try{ne=window.localStorage,ne.setItem("__wpDataTestLocalStorage",""),ne.removeItem("__wpDataTestLocalStorage")}catch(e){ne=re}const oe=ne,se="WP_DATA";function ie(e){const{storage:t=oe,storageKey:r=se}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}function ce(e,t){const r=ie(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Object(u.isPlainObject)(e)&&Object(u.isPlainObject)(o)?Object(u.merge)({},e,o):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]}),{});s=c()(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}ce.__unstableMigrate=e=>{var t,r;const n=ie(e),o=n.get(),s=null===(t=o["core/editor"])||void 0===t||null===(r=t.preferences)||void 0===r?void 0:r.insertUsage;if(s){var i,c;const e=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:{...s,...e}}})}let a=o["core/edit-post"];const l=Object.keys(o).length>0,f=Object(u.has)(o,["core/edit-post","preferences","features","fullscreenMode"]);l&&!f&&(a=Object(u.merge)({},a,{preferences:{features:{fullscreenMode:!1}}}));const d=Object(u.get)(o,["core/nux","preferences","areTipsEnabled"]),p=Object(u.has)(o,["core/edit-post","preferences","features","welcomeGuide"]);void 0===d||p||(a=Object(u.merge)({},a,{preferences:{features:{welcomeGuide:d}}})),a!==o["core/edit-post"]&&n.set("core/edit-post",a)};var ue=ce,ae=r("./node_modules/@babel/runtime/helpers/esm/extends.js"),le=r("@wordpress/element"),fe=r("@wordpress/compose"),de=r("./node_modules/use-memo-one/dist/use-memo-one.esm.js"),pe=r("@wordpress/priority-queue"),be=r("@wordpress/is-shallow-equal"),Oe=r.n(be);const he=Object(le.createContext)(Q),{Consumer:ge,Provider:ye}=he,ve=ge;var me=ye;function Se(){return Object(le.useContext)(he)}const we=Object(le.createContext)(!1),{Consumer:je,Provider:_e}=we;var Re=_e;const Ee=Object(pe.createQueue)();function Te(e,t){const r="function"!=typeof e;r&&(t=[]);const n=Object(le.useCallback)(e,t),o=Se(),s=Object(le.useContext)(we),i=Object(de.a)(()=>({queue:!0}),[o]),[,c]=Object(le.useReducer)(e=>e+1,0),u=Object(le.useRef)(),a=Object(le.useRef)(s),l=Object(le.useRef)(),f=Object(le.useRef)(),d=Object(le.useRef)(),p=Object(le.useRef)([]),b=Object(le.useCallback)(e=>o.__experimentalMarkListeningStores(e,p),[o]),O=Object(le.useMemo)(()=>({}),t||[]);let h;if(!r)try{h=u.current!==n||f.current?b(()=>n(o.select,o)):l.current}catch(e){let t="An error occurred while running 'mapSelect': "+e.message;if(f.current)throw t+="\nThe error may be correlated with this previous error:\n",t+=f.current.stack+"\n\n",t+="Original stack trace:",new Error(t);console.error(t)}return Object(fe.useIsomorphicLayoutEffect)(()=>{r||(u.current=n,l.current=h,f.current=void 0,d.current=!0,a.current!==s&&(a.current=s,Ee.flush(i)))}),Object(fe.useIsomorphicLayoutEffect)(()=>{if(r)return;const e=()=>{if(d.current){try{const e=b(()=>u.current(o.select,o));if(Oe()(l.current,e))return;l.current=e}catch(e){f.current=e}c()}};a.current?Ee.add(i,e):e();const t=()=>{a.current?Ee.add(i,e):e()},n=p.current.map(e=>o.__experimentalSubscribeStore(e,t));return()=>{d.current=!1,n.forEach(e=>null==e?void 0:e()),Ee.flush(i)}},[o,b,O,r]),r?o.select(e):h}var Ie=e=>Object(fe.createHigherOrderComponent)(t=>Object(fe.pure)(r=>{const n=Te((t,n)=>e(t,r,n));return Object(le.createElement)(t,Object(ae.a)({},r,n))}),"withSelect");var Ne=(e,t)=>{const r=Se(),n=Object(le.useRef)(e);return Object(fe.useIsomorphicLayoutEffect)(()=>{n.current=e}),Object(le.useMemo)(()=>{const e=n.current(r.dispatch,r);return Object(u.mapValues)(e,(e,t)=>("function"!=typeof e&&console.warn(`Property ${t} returned from dispatchMap in useDispatchWithMap must be a function.`),(...e)=>n.current(r.dispatch,r)[t](...e)))},[r,...t])};var xe=e=>Object(fe.createHigherOrderComponent)(t=>r=>{const n=Ne((t,n)=>e(t,r,n),[]);return Object(le.createElement)(t,Object(ae.a)({},r,n))},"withDispatch");var Ae=Object(fe.createHigherOrderComponent)(e=>t=>Object(le.createElement)(ve,null,r=>Object(le.createElement)(e,Object(ae.a)({},t,{registry:r}))),"withRegistry");var Le=e=>{const{dispatch:t}=Se();return void 0===e?t:t(e)};const Pe=Q.select,Ce=Q.resolveSelect,ke=Q.dispatch,Ue=Q.subscribe,Me=Q.registerGenericStore,De=Q.registerStore,Fe=Q.use,Ve=Q.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 s(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var s=Object.keys(t).sort(),i=Array.isArray(t)?n:o,c=0;c<s.length;c++){var u=s[c];if(void 0===(i=i.get(u)))return;var a=t[u];if(void 0===(i=i.get(a)))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(),s=[t,r],i=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var u=o[c];i.has(u)||i.set(u,new e),i=i.get(u);var a=t[u];i.has(a)||i.set(a,new e),i=i.get(a)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",s),this._map.set(t,s),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=s(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!==s(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,s){null!==s&&"object"===n(s)&&(o=o[1]),e.call(r,o,s,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/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 s,i,c;if(void 0===n)return t(e,{},o);for(s=t(e,n,o),i=r.length;i--;)if(n[c=r[i]]!==s[c])return s;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),s=Object(n.useRef)(r),i=o.current||Boolean(t&&s.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,s.current.inputs))?s.current:{inputs:t,result:e()};return Object(n.useEffect)((function(){o.current=!1,s.current=i}),[i]),i.result}},"@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}}); |