mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-02 11:09:44 +02:00
- @wordpress/block-editor@2.0.1 - @wordpress/block-library@2.4.4 - @wordpress/blocks@6.2.4 - @wordpress/components@7.3.1 - @wordpress/dom@2.2.4 - @wordpress/e2e-tests@1.1.4 - @wordpress/edit-post@3.3.4 - @wordpress/editor@9.2.4 - @wordpress/format-library@1.4.4 - @wordpress/list-reusable-blocks@1.3.4 - @wordpress/nux@3.2.4 Props iseulde, kjellr, aduth, get_dave, talldanwp, jorgefilipecosta, afercia, nosolosw, jasmussen, netweb . See https://github.com/WordPress/gutenberg/pull/14987 . See https://github.com/WordPress/gutenberg/pull/15020 . Fixes #46951 . Built from https://develop.svn.wordpress.org/trunk@45255 git-svn-id: http://core.svn.wordpress.org/trunk@45064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
33 KiB
JavaScript
1 line
33 KiB
JavaScript
this.wp=this.wp||{},this.wp.coreData=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=364)}({132: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}},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})},17:function(e,t,r){"use strict";var n=r(34);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||Object(n.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(t,"a",function(){return o})},2:function(e,t){!function(){e.exports=this.lodash}()},23:function(e,t,r){e.exports=r(54)},25:function(e,t){!function(){e.exports=this.wp.url}()},28:function(e,t,r){"use strict";var n=r(37);var o=r(38);function i(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||Object(o.a)()}r.d(t,"a",function(){return i})},30:function(e,t,r){"use strict";var n,o;function i(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function u(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var r,c;function s(){r=o?new WeakMap:a()}function f(){var r,n,o,i,a,s=arguments.length;for(i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];for(a=t.apply(null,i),(r=c(a)).isUniqueByDependants||(r.lastDependants&&!u(a,r.lastDependants,0)&&r.clear(),r.lastDependants=a),n=r.head;n;){if(u(n.args,i,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=i),c=o?function(e){var t,o,i,u,c,s=r,f=!0;for(t=0;t<e.length;t++){if(o=e[t],!(c=o)||"object"!=typeof c){f=!1;break}s.has(o)?s=s.get(o):(i=new WeakMap,s.set(o,i),s=i)}return s.has(n)||((u=a()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},33:function(e,t){!function(){e.exports=this.wp.apiFetch}()},34:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",function(){return n})},364:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",function(){return L}),r.d(n,"addEntities",function(){return N}),r.d(n,"receiveEntityRecords",function(){return U}),r.d(n,"receiveThemeSupports",function(){return M}),r.d(n,"receiveEmbedPreview",function(){return C}),r.d(n,"saveEntityRecord",function(){return D}),r.d(n,"receiveUploadPermissions",function(){return q}),r.d(n,"receiveUserPermission",function(){return V});var o={};r.r(o),r.d(o,"isRequestingEmbedPreview",function(){return re}),r.d(o,"getAuthors",function(){return ne}),r.d(o,"getUserQueryResults",function(){return oe}),r.d(o,"getEntitiesByKind",function(){return ie}),r.d(o,"getEntity",function(){return ae}),r.d(o,"getEntityRecord",function(){return ue}),r.d(o,"getEntityRecords",function(){return ce}),r.d(o,"getThemeSupports",function(){return se}),r.d(o,"getEmbedPreview",function(){return fe}),r.d(o,"isPreviewEmbedFallback",function(){return le}),r.d(o,"hasUploadPermissions",function(){return de}),r.d(o,"canUser",function(){return pe});var i={};r.r(i),r.d(i,"getAuthors",function(){return Ee}),r.d(i,"getEntityRecord",function(){return Oe}),r.d(i,"getEntityRecords",function(){return je}),r.d(i,"getThemeSupports",function(){return xe}),r.d(i,"getEmbedPreview",function(){return ke}),r.d(i,"hasUploadPermissions",function(){return _e}),r.d(i,"canUser",function(){return Pe});var a=r(7),u=r(5),c=r(28),s=r(17),f=r(15),l=r(2),d=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},p=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(f.a)({},o,i))}}},h=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var v=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(l.isObjectLike)(r)&&t.set(r,n)),n}};function y(e){return{type:"RECEIVE_ITEMS",items:Object(l.castArray)(e)}}var b=r(30),g=r(76),m=r.n(g),w=r(25);var E=v(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var o=r[n],i=e[o];switch(o){case"page":t[o]=Number(i);break;case"per_page":t.perPage=Number(i);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},o,i)).slice(1)}}return t}),O=new WeakMap;var j=Object(b.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=O.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new m.a,O.set(e,r);var o=function(e,t){var r=E(t),n=r.stableKey,o=r.page,i=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===i?0:(o-1)*i,c=-1===i?a.length:Math.min(u+i,a.length),s=[],f=u;f<c;f++){var l=a[f];s.push(e.items[l])}return s}(e,t);return r.set(t,o),o}),x=r(71),k=r(23),_=r.n(k),P=r(33),R=r.n(P);function I(e){return{type:"API_FETCH",request:e}}function S(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:e,args:r}}var T={API_FETCH:function(e){var t=e.request;return R()(t)},SELECT:Object(u.createRegistryControl)(function(e){return function(t){var r,n=t.selectorName,o=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(o))}})},A=_.a.mark(D);function L(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(l.castArray)(t),queryID:e}}function N(e){return{type:"ADD_ENTITIES",entities:e}}function U(e,t,r,n){var o,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},y(e),{query:t})}(r,n):y(r),Object(a.a)({},o,{kind:e,name:t,invalidateCache:i})}function M(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function C(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function D(e,t,r){var n,o,i,a,u;return _.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,X(e);case 2:if(n=c.sent,o=Object(l.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return i=o.key||K,a=r[i],c.next=10,I({path:"".concat(o.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,U(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}},A,this)}function q(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function V(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var F=_.a.mark(Q),B=_.a.mark(H),G=_.a.mark(X),K="id",W=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"}],Y=[{name:"postType",loadEntities:Q},{name:"taxonomy",loadEntities:H}];function Q(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},F,this)}function H(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},B,this)}var z=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Object(l.find)(W,{kind:e,name:t}),i="root"===e?"":Object(l.upperFirst)(Object(l.camelCase)(e)),a=Object(l.upperFirst)(Object(l.camelCase)(t))+(n?"s":""),u=n&&o.plural?Object(l.upperFirst)(Object(l.camelCase)(o.plural)):a;return"".concat(r).concat(i).concat(u)};function X(e){var t,r;return _.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,S("getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(l.find)(Y,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,N(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},G,this)}var J=Object(l.flowRight)([d(function(e){return"query"in e}),h(function(e){return e.query?Object(a.a)({},e,E(e.query)):e}),p("stableKey")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,o=t.perPage,i=t.key,a=void 0===i?K:i;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var o=(r-1)*n,i=Math.max(e.length,o+t.length),a=new Array(i),u=0;u<i;u++){var c=u>=o&&u<o+t.length;a[u]=c?t[u-o]:e[u]}return a}(e||[],Object(l.map)(t.items,a),n,o)}),Z=Object(x.b)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Object(a.a)({},e,Object(l.keyBy)(t.items,t.key||K))}return e},queries:J});var $=Object(u.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Object(a.a)({},e,Object(f.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:Object(a.a)({},e.byId,Object(l.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(l.map)(t.users,function(e){return e.id})))}}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Object(a.a)({},e,t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}(e.config,t),n=e.reducer;if(!n||r!==e.config){var o=Object(l.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(o).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],o=r[1],i=Object(u.combineReducers)(o.reduce(function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,function(e){return Object(l.flowRight)([d(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),h(function(t){return Object(a.a)({},t,{key:e.key||K})})])(Z)}(t)))},{}));return e[n]=i,e},{}))}var i=n(e.data,t);return i===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:i,config:r}},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return Object(a.a)({},e,Object(f.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),ee=r(49),te=r.n(ee),re=Object(u.createRegistrySelector)(function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}});function ne(e){return oe(e,"authors")}var oe=Object(b.a)(function(e,t){var r=e.users.queries[t];return Object(l.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ie(e,t){return Object(l.filter)(e.entities.config,{kind:t})}function ae(e,t,r){return Object(l.find)(e.entities.config,{kind:t,name:r})}function ue(e,t,r,n){return Object(l.get)(e.entities.data,[t,r,"items",n])}function ce(e,t,r,n){var o=Object(l.get)(e.entities.data,[t,r]);return o?j(o,n):[]}function se(e){return e.themeSupports}function fe(e,t){return e.embedPreviews[t]}function le(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function de(e){return te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(l.defaultTo)(pe(e,"create","media"),!0)}function pe(e,t,r,n){var o=Object(l.compact)([t,r,n]).join("/");return Object(l.get)(e,["userPermissions",o])}var he=_.a.mark(Ee),ve=_.a.mark(Oe),ye=_.a.mark(je),be=_.a.mark(xe),ge=_.a.mark(ke),me=_.a.mark(_e),we=_.a.mark(Pe);function Ee(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,L("authors",e);case 5:case"end":return t.stop()}},he,this)}function Oe(e,t,r){var n,o,i;return _.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,X(e);case 2:if(n=a.sent,o=Object(l.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,I({path:"".concat(o.baseURL,"/").concat(r,"?context=edit")});case 8:return i=a.sent,a.next=11,U(e,t,i);case 11:case"end":return a.stop()}},ve,this)}function je(e,t){var r,n,o,i,u,c=arguments;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,X(e);case 3:if(n=s.sent,o=Object(l.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(w.addQueryArgs)(o.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,I({path:i});case 10:return u=s.sent,s.next=13,U(e,t,Object.values(u),r);case 13:case"end":return s.stop()}},ye,this)}function xe(){var e;return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,M(e[0].theme_supports);case 5:case"end":return t.stop()}},be,this)}function ke(e){var t;return _.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,C(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,C(e,!1);case 12:case"end":return r.stop()}},ge,this,[[0,8]])}function _e(){return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Pe("create","media"),"t0",2);case 2:case"end":return e.stop()}},me,this)}function Pe(e,t,r){var n,o,i,a,u,c;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return o=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,I({path:o,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(l.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(l.get)(i,["headers","Allow"],""),u=Object(l.compact)([e,t,r]).join("/"),c=Object(l.includes)(a,n),s.next=19,V(u,c);case 19:case"end":return s.stop()}},we,this,[[5,11]])}je.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Re=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[z(r,n)]=function(e,t){return ue(e,r,n,t)},e[z(r,n,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return ce.apply(o,[e,r,n].concat(i))},e},{}),Ie=W.reduce(function(e,t){var r=t.kind,n=t.name;e[z(r,n)]=function(e){return Oe(r,n,e)};var o=z(r,n,"get",!0);return e[o]=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return je.apply(i,[r,n].concat(t))},e[o].shouldInvalidate=function(e){for(var t,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(t=je).shouldInvalidate.apply(t,[e,r,n].concat(i))},e},{}),Se=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[z(r,n,"save")]=function(e){return D(r,n,e)},e},{});Object(u.registerStore)("core",{reducer:$,controls:T,actions:Object(a.a)({},n,Se),selectors:Object(a.a)({},o,Re),resolvers:Object(a.a)({},i,Ie)})},37:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},38: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})},49:function(e,t){!function(){e.exports=this.wp.deprecated}()},5:function(e,t){!function(){e.exports=this.wp.data}()},54:function(e,t,r){var n=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},55:function(e,t){!function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof e,f=t.regeneratorRuntime;if(f)s&&(e.exports=f);else{(f=t.regeneratorRuntime=s?e.exports:{}).wrap=w;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},y={};y[a]=function(){return this};var b=Object.getPrototypeOf,g=b&&b(b(T([])));g&&g!==n&&o.call(g,a)&&(y=g);var m=x.prototype=O.prototype=Object.create(y);j.prototype=m.constructor=x,x.constructor=j,x[c]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===j||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(m),e},f.awrap=function(e){return{__await:e}},k(_.prototype),_.prototype[u]=function(){return this},f.AsyncIterator=_,f.async=function(e,t,r,n){var o=new _(w(e,t,r,n));return f.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},k(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=T,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(I),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function w(e,t,r,n){var o=t&&t.prototype instanceof O?t:O,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=E(e,t,r);if("normal"===c.type){if(n=r.done?h:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function E(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function O(){}function j(){}function x(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function _(e){var t;this._invoke=function(r,n){function i(){return new Promise(function(t,i){!function t(r,n,i,a){var u=E(e[r],e,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(u.arg)}(r,n,t,i)})}return t=t?t.then(i,i):i()}}function P(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,P(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=E(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:r,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},59: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},7: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}},71:function(e,t,r){"use strict";r.d(t,"c",function(){return u}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return l});var n=r(77),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(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 u(e,t,r){var o;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(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],l=f,d=!1;function p(){l===f&&(l=f.slice())}function h(){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 s}function v(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 p(),l.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,p();var r=l.indexOf(e);l.splice(r,1)}}}function y(e){if(!a(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,s=c(s,e)}finally{d=!1}for(var t=f=l,r=0;r<t.length;r++){(0,t[r])()}return e}return y({type:i.INIT}),(o={dispatch:y,subscribe:v,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,y({type:i.REPLACE})}})[n.a]=function(){var e,t=v;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(h())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},o}function c(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 s(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var a,u=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:i.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:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.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){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},i=0;i<u.length;i++){var s=u[i],f=r[s],l=e[s],d=f(l,t);if(void 0===d){var p=c(s,t);throw new Error(p)}o[s]=d,n=n||d!==l}return n?o:e}}function f(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(){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)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){f(e,t,r[t])})}return e}({},r,{dispatch:n=function(){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))}})}.apply(void 0,i)(r.dispatch)})}}}},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)}}function i(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),a=Array.isArray(t)?n:o,u=0;u<i.length;u++){var c=i[u];if(void 0===(a=a.get(c)))return;var s=t[c];if(void 0===(a=a.get(s)))return}var f=a.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,a.set("_ekm_value",f),r.set(t,f),f):void 0}var a=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,a;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(),i=[t,r],a=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var c=o[u];a.has(c)||a.set(c,new e),a=a.get(c);var s=t[c];a.has(s)||a.set(s,new e),a=a.get(s)}var f=a.get("_ekm_value");return f&&this._map.delete(f[0]),a.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);var t=i(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!==i(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,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}}])&&o(t.prototype,r),a&&o(t,a),e}();e.exports=a},77:function(e,t,r){"use strict";(function(e,n){var o,i=r(99);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(i.a)(o);t.a=a}).call(this,r(59),r(132)(e))},99: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})}}); |