WordPress/wp-includes/js/dist/data.min.js
atimmer efb928cd0b Build tools: Clone and build from packages repo.
Instead of requiring the packages individually this commit changes it so the packages are used from the packages repository (gutenberg). This is a solution that makes updating the packages easier, as long as we don't have a monorepo to manage both WordPress & the JavaScript packages together.

Props youknowriad, gziolo, omarreiss, herregroen.
See #45145.

Built from https://develop.svn.wordpress.org/branches/5.0@43824


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 07:33:26 +00:00

1 line
27 KiB
JavaScript

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=305)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",function(){return n})},12:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(28),o=r(3);function i(e,t){return!t||"object"!==Object(n.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},122: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}},13:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",function(){return n})},14:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}r.d(t,"a",function(){return o})},15: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})},18: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})},183:function(e,t){!function(){e.exports=this.wp.reduxRoutine}()},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t,r){"use strict";var n=r(35);var o=r(36);function i(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||Object(o.a)()}r.d(t,"a",function(){return i})},27:function(e,t){!function(){e.exports=this.wp.deprecated}()},28: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){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}r.d(t,"a",function(){return o})},3:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",function(){return n})},305:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getIsResolving",function(){return y}),r.d(n,"hasStartedResolution",function(){return b}),r.d(n,"hasFinishedResolution",function(){return v}),r.d(n,"isResolving",function(){return g});var o={};r.r(o),r.d(o,"startResolution",function(){return m}),r.d(o,"finishResolution",function(){return w});var i={};r.r(i),r.d(i,"controls",function(){return I}),r.d(i,"persistence",function(){return D}),r.d(i,"asyncGenerator",function(){return Y});var u=r(54),c=r(24),a=r(8),s=r(37),f=r(2),l=r(76),p=r.n(l),d=r(15),h=function(e){return function(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[e];if(void 0===o)return r;var i=t(r[o],n);return i===r[o]?r:Object(a.a)({},r,Object(d.a)({},o,i))}}};function y(e,t,r,n){var o=Object(f.get)(e,[t,r]);if(o)return o.get(n)}function b(e,t,r){return void 0!==y(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function v(e,t,r){return!1===y(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function g(e,t,r){return!0===y(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function m(e,t,r){return{type:"START_RESOLUTION",reducerKey:e,selectorName:t,args:r}}function w(e,t,r){return{type:"FINISH_RESOLUTION",reducerKey:e,selectorName:t,args:r}}var O={reducer:Object(f.flowRight)([h("reducerKey"),h("selectorName")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new p.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 p.a(e);return n.set(t.args,r),n}return e}),actions:o,selectors:n},j=r(86),S=r.n(j),x=function(){return function(e){return function(t){return S()(t)?t.then(function(t){if(t)return e(t)}):e(t)}}};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},r=[];function n(e,n){var o=[Object(u.a)(x)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&o.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));var i=Object(u.c)(n,Object(f.flowRight)(o));t[e]={store:i,reducer:n};var c=i.getState();return i.subscribe(function(){var e=i.getState(),t=e!==c;c=e,t&&r.forEach(function(e){return e()})}),i}function o(e,r){var n=t[e].store;t[e].selectors=Object(f.mapValues)(r,function(e){return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(void 0,[n.getState()].concat(r))}})}function i(e,r){t[e].resolvers=Object(f.mapValues)(r,function(e){return e.fulfill||(e={fulfill:e}),e}),t[e].selectors=Object(f.mapValues)(t[e].selectors,function(n,o){var i=r[o];return i?function(){for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];var a=d("core/data").hasStartedResolution,f=y("core/data"),l=f.startResolution,p=f.finishResolution;function h(){return(h=Object(s.a)(regeneratorRuntime.mark(function r(){var n,c;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(c=t[e].store.getState(),"function"!=typeof i.isFulfilled||!i.isFulfilled.apply(i,[c].concat(u))){r.next=3;break}return r.abrupt("return");case 3:if(!a(e,o,u)){r.next=5;break}return r.abrupt("return");case 5:return l(e,o,u),r.next=8,(n=b).__experimentalFulfill.apply(n,[e,o].concat(u));case 8:p(e,o,u);case 9:case"end":return r.stop()}},r,this)}))).apply(this,arguments)}return function(){return h.apply(this,arguments)}.apply(void 0,u),n.apply(void 0,u)}:n})}function l(e,r){var n=t[e].store;t[e].actions=Object(f.mapValues)(r,function(e){return function(){return n.dispatch(e.apply(void 0,arguments))}})}function p(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");var r=n(e,t.reducer);return t.actions&&l(e,t.actions),t.selectors&&o(e,t.selectors),t.resolvers&&i(e,t.resolvers),r}function d(e){return Object(f.get)(t,[e,"selectors"])}function h(){return(h=Object(s.a)(regeneratorRuntime.mark(function e(r,n){var o,i,u,c,a,s,l=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Object(f.get)(t,[r,"resolvers",n])){e.next=3;break}return e.abrupt("return");case 3:for(i=t[r].store,u=l.length,c=new Array(u>2?u-2:0),a=2;a<u;a++)c[a-2]=l[a];if(!(s=o.fulfill.apply(o,c))){e.next=9;break}return e.next=9,i.dispatch(s);case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function y(e){return Object(f.get)(t,[e,"actions"])}var b={namespaces:t,registerReducer:n,registerSelectors:o,registerResolvers:i,registerActions:l,registerStore:p,subscribe:function(e){return r.push(e),function(){r=Object(f.without)(r,e)}},select:d,dispatch:y,use:function(e,t){return b=Object(a.a)({},b,e(b,t))},__experimentalFulfill:function(e,t){return h.apply(this,arguments)}};return Object.entries(Object(a.a)({"core/data":O},e)).map(function(e){var t=Object(c.a)(e,2);return p(t[0],t[1])}),function(e){return Object(f.mapValues)(e,function(e,t){return"function"!=typeof e?e:function(){return b[t].apply(null,arguments)}})}(b)}var k,P,E=_(),R=r(183),T=r.n(R),I=function(e){return{registerStore:function(t,r){var n=e.registerStore(t,r);if(r.controls){var o=T()(r.controls),i=Object(u.a)(o);Object.assign(n,i(function(){return n})(r.reducer)),e.namespaces[t].supportControls=!0}return n},__experimentalFulfill:function(){var t=Object(s.a)(regeneratorRuntime.mark(function t(r,n){var o,i,u,c,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(o=a.length,i=new Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=a[u];if(e.namespaces[r].supportControls){t.next=5;break}return t.next=4,e.__experimentalFulfill.apply(e,[r,n].concat(i));case 4:return t.abrupt("return");case 5:if(c=Object(f.get)(e.namespaces,[r,"resolvers",n])){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,e.namespaces[r].store.dispatch(c.fulfill.apply(c,i));case 10:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()}},A={getItem:function(e){return k&&k[e]?k[e]:null},setItem:function(e,t){k||A.clear(),k[e]=String(t)},clear:function(){k=Object.create(null)}},N=A;try{(P=window.localStorage).setItem("__wpDataTestLocalStorage",""),P.removeItem("__wpDataTestLocalStorage")}catch(e){P=N}var C=P,M="WP_DATA";var D=function(e,t){var r=function(e){var t,r=e.storage,n=void 0===r?C:r,o=e.storageKey,i=void 0===o?M:o;return{get:function(){if(void 0===t){var e=n.getItem(i);if(null===e)t={};else try{t=JSON.parse(e)}catch(e){t={}}}return t},set:function(e,r){t=Object(a.a)({},t,Object(d.a)({},e,r)),n.setItem(i,JSON.stringify(t))}}}(t);return{registerStore:function(t,n){if(!n.persist)return e.registerStore(t,n);var o=r.get()[t];n=Object(a.a)({},n,{reducer:function(e,t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return e(r,n)}}(n.reducer,o)});var i=e.registerStore(t,n);return i.dispatch=Object(f.flow)([i.dispatch,function(e,t,n){var o=e();return function(i){var u=e();return u!==o&&(Array.isArray(n)&&(u=Object(f.pick)(u,n)),r.set(t,u),o=u),i}}(i.getState,t,n.persist)]),i}}};function L(e){var t;if("function"==typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}function U(e){this.wrapped=e}function F(e){var t,r;function n(t,r){try{var i=e[t](r),u=i.value,c=u instanceof U;Promise.resolve(c?u.wrapped:u).then(function(e){c?n("next",e):o(i.done?"return":"normal",e)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(i,u){var c={key:e,arg:o,resolve:i,reject:u,next:null};r?r=r.next=c:(t=r=c,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(F.prototype[Symbol.asyncIterator]=function(){return this}),F.prototype.next=function(e){return this._invoke("next",e)},F.prototype.throw=function(e){return this._invoke("throw",e)},F.prototype.return=function(e){return this._invoke("return",e)};var V=r(27),H=r.n(V);function K(e){return!!e&&"string"==typeof e.type}function W(e){return!!e&&"function"==typeof e[Symbol.asyncIterator]}function X(e){return!!e&&"function"==typeof e[Symbol.iterator]}function z(e){return W(e)?(H()("Writing Resolvers as async generators",{alternative:"resolvers as generators with controls",plugin:"Gutenberg",version:4.2}),e):function(e){return function(){return new F(e.apply(this,arguments))}}(regeneratorRuntime.mark(function t(){var r,n,o,i,u,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:X(e)||(e=[e]),r=!0,n=!1,o=void 0,t.prev=4,i=e[Symbol.iterator]();case 6:if(r=(u=i.next()).done){t.next=13;break}return c=u.value,t.next=10,c;case 10:r=!0,t.next=6;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(4),n=!0,o=t.t0;case 19:t.prev=19,t.prev=20,r||null==i.return||i.return();case 22:if(t.prev=22,!n){t.next=25;break}throw o;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}},t,this,[[4,15,19,27],[20,,22,26]])}))()}var G=function(e){return function(t){return function(r){return W(r)?function(){var t=Object(s.a)(regeneratorRuntime.mark(function t(r){var n,o,i,u,c,a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,o=!1,t.prev=2,u=L(r);case 4:return t.next=6,u.next();case 6:return c=t.sent,n=c.done,t.next=10,c.value;case 10:if(a=t.sent,n){t.next=17;break}K(s=a)&&e.dispatch(s);case 14:n=!0,t.next=4;break;case 17:t.next=23;break;case 19:t.prev=19,t.t0=t.catch(2),o=!0,i=t.t0;case 23:if(t.prev=23,t.prev=24,n||null==u.return){t.next=28;break}return t.next=28,u.return();case 28:if(t.prev=28,!o){t.next=31;break}throw i;case 31:return t.finish(28);case 32:return t.finish(23);case 33:case"end":return t.stop()}},t,this,[[2,19,23,33],[24,,28,32]])}));return function(e){return t.apply(this,arguments)}}()(r):t(r)}}},Y=function(e){return{registerStore:function(t,r){var n=e.registerStore(t,r),o=Object(u.a)(G);return Object.assign(n,o(function(){return n})(r.reducer)),n},__experimentalFulfill:function(){var t=Object(s.a)(regeneratorRuntime.mark(function t(r,n){var o,i,u,c,a,s,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Object(f.get)(e.namespaces,[r,"resolvers",n])){t.next=3;break}return t.abrupt("return");case 3:for(i=e.namespaces[r].store,u=i.getState(),c=p.length,a=new Array(c>2?c-2:0),s=2;s<c;s++)a[s-2]=p[s];if(!(l=o.fulfill.apply(o,[u].concat(a)))){t.next=10;break}return t.next=10,i.dispatch(z(l));case 10:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()}},B=r(18),J=r(10),q=r(9),Q=r(12),Z=r(13),$=r(14),ee=r(0),te=r(41),re=r.n(te),ne=r(6),oe=Object(ee.createContext)(E),ie=oe.Consumer,ue=oe.Provider,ce=function(e){return Object(ne.createHigherOrderComponent)(function(t){var r={};function n(t){return e(t.registry.select,t.ownProps)||r}var o=Object(ne.remountOnPropChange)("registry")(function(e){function r(e){var t;return Object(J.a)(this,r),(t=Object(Q.a)(this,Object(Z.a)(r).call(this,e))).subscribe(),t.mergeProps=n(e),t}return Object($.a)(r,e),Object(q.a)(r,[{key:"componentDidMount",value:function(){this.canRunSelection=!0}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe()}},{key:"shouldComponentUpdate",value:function(e,t){var r=!re()(this.props.ownProps,e.ownProps);if(this.state===t&&!r)return!1;if(r){var o=n(e);re()(this.mergeProps,o)||(this.mergeProps=o)}return!0}},{key:"subscribe",value:function(){var e=this,t=this.props.registry.subscribe;this.unsubscribe=t(function(){if(e.canRunSelection){var t=n(e.props);re()(e.mergeProps,t)||(e.mergeProps=t,e.setState({}))}})}},{key:"render",value:function(){return Object(ee.createElement)(t,Object(B.a)({},this.props.ownProps,this.mergeProps))}}]),r}(ee.Component));return function(e){return Object(ee.createElement)(ie,null,function(t){return Object(ee.createElement)(o,{ownProps:e,registry:t})})}},"withSelect")},ae=function(e){return Object(ne.createHigherOrderComponent)(Object(ne.compose)([ne.pure,function(t){var r=Object(ne.remountOnPropChange)("registry")(function(r){function n(e){var t;return Object(J.a)(this,n),(t=Object(Q.a)(this,Object(Z.a)(n).apply(this,arguments))).proxyProps={},t.setProxyProps(e),t}return Object($.a)(n,r),Object(q.a)(n,[{key:"componentDidUpdate",value:function(){this.setProxyProps(this.props)}},{key:"proxyDispatch",value:function(t){for(var r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=e(this.props.registry.dispatch,this.props.ownProps))[t].apply(r,o)}},{key:"setProxyProps",value:function(t){var r=this,n=e(this.props.registry.dispatch,t.ownProps);this.proxyProps=Object(f.mapValues)(n,function(e,t){return r.proxyProps.hasOwnProperty(t)?r.proxyProps[t]:r.proxyDispatch.bind(r,t)})}},{key:"render",value:function(){return Object(ee.createElement)(t,Object(B.a)({},this.props.ownProps,this.proxyProps))}}]),n}(ee.Component));return function(e){return Object(ee.createElement)(ie,null,function(t){return Object(ee.createElement)(r,{ownProps:e,registry:t})})}}]),"withDispatch")};r.d(t,"select",function(){return se}),r.d(t,"dispatch",function(){return fe}),r.d(t,"subscribe",function(){return le}),r.d(t,"registerStore",function(){return pe}),r.d(t,"registerReducer",function(){return de}),r.d(t,"registerActions",function(){return he}),r.d(t,"registerSelectors",function(){return ye}),r.d(t,"registerResolvers",function(){return be}),r.d(t,"use",function(){return ve}),r.d(t,"withSelect",function(){return ce}),r.d(t,"withDispatch",function(){return ae}),r.d(t,"RegistryProvider",function(){return ue}),r.d(t,"RegistryConsumer",function(){return ie}),r.d(t,"createRegistry",function(){return _}),r.d(t,"plugins",function(){return i}),r.d(t,"combineReducers",function(){return u.b});var se=E.select,fe=E.dispatch,le=E.subscribe,pe=E.registerStore,de=E.registerReducer,he=E.registerActions,ye=E.registerSelectors,be=E.registerResolvers,ve=E.use},35:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},36:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return n})},37:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var c=e[i](u),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,i){var u=e.apply(t,r);function c(e){n(u,o,i,c,a,"next",e)}function a(e){n(u,o,i,c,a,"throw",e)}c(void 0)})}}r.d(t,"a",function(){return o})},41:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},47:function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},54:function(e,t,r){"use strict";r.d(t,"c",function(){return a}),r.d(t,"b",function(){return f}),r.d(t,"a",function(){return l});var n=r(67),o={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},i="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},u=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};function c(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a(e,t,r){var u;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(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,f=t,l=[],p=l,d=!1;function h(){p===l&&(p=l.slice())}function y(){if(d)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 f}function b(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)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#subscribe(listener) for more details.");var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,h();var r=p.indexOf(e);p.splice(r,1)}}}function v(e){if(!c(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(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,f=s(f,e)}finally{d=!1}for(var t=l=p,r=0;r<t.length;r++){(0,t[r])()}return e}return v({type:o.INIT}),(u={dispatch:v,subscribe:b,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:o.REPLACE})}})[n.a]=function(){var e,t=b;return(e={subscribe:function(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(y())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},u}function s(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function f(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];0,"function"==typeof e[i]&&(r[i]=e[i])}var u=Object.keys(r);var c=void 0;try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var n=!1,o={},i=0;i<u.length;i++){var a=u[i],f=r[a],l=e[a],p=f(l,t);if(void 0===p){var d=s(a,t);throw new Error(d)}o[a]=p,n=n||p!==l}return n?o:e}}function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=e.apply(void 0,n),c=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},s=t.map(function(e){return e(a)});return c=function(){for(var e=arguments.length,t=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))}})}.apply(void 0,s)(i.dispatch),u({},i,{dispatch:c})}}}},6:function(e,t){!function(){e.exports=this.wp.compose}()},67:function(e,t,r){"use strict";(function(e,n){var o,i=r(85);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var u=Object(i.a)(o);t.a=u}).call(this,r(47),r(122)(e))},76: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)}}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])}return function(e,t,r){t&&o(e.prototype,t),r&&o(e,r)}(e,[{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(),i=[t,r],u=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var a=o[c];u.has(a)||u.set(a,new e),u=u.get(a);var s=t[a];u.has(s)||u.set(s,new e),u=u.get(s)}var f=u.get("_ekm_value");return f&&this._map.delete(f[0]),u.set("_ekm_value",i),this._map.set(t,i),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);if(this._map.has(e))return this._map.get(e)[1];for(var t=Object.keys(e).sort(),r=Array.isArray(e)?this._arrayTreeMap:this._objectTreeMap,o=0;o<t.length;o++){var i=t[o];if(void 0===(r=r.get(i)))return;var u=e[i];if(void 0===(r=r.get(u)))return}var c=r.get("_ekm_value");return c?(this._map.delete(c[0]),c[0]=e,r.set("_ekm_value",c),this._map.set(e,c),c[1]):void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):Boolean(this.get(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,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,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}}]),e}();e.exports=i},8:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(15);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){Object(n.a)(e,t,r[t])})}return e}},85: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})},86:function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},9:function(e,t,r){"use strict";function n(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 o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",function(){return o})}});