WordPress/wp-includes/js/dist/core-data.min.js
jorgefilipecosta d69005e1d8 Block Editor: Update WordPress Packages.
The following package versions were changed:
@wordpress/a11y: 2.6.0 -> 2.7.0
@wordpress/annotations: 1.10.0 -> 1.11.0
@wordpress/api-fetch: 3.9.0 -> 3.10.0
@wordpress/autop: 2.5.1 -> 2.6.0
@wordpress/blob: 2.6.0 -> 2.7.0
@wordpress/block-directory: 1.3.0 -> 1.4.0
@wordpress/block-editor: 3.5.0 -> 3.6.0
@wordpress/block-library: 2.12.0 -> 2.13.0
@wordpress/block-serialization-default-parser: 3.4.1 -> 3.5.0
@wordpress/blocks: 6.10.0 -> 6.11.0
@wordpress/components: 9.0.0 -> 9.1.0
@wordpress/compose: 3.10.0 -> 3.11.0
@wordpress/core-data: 2.10.0 -> 2.11.0
@wordpress/custom-templated-path-webpack-plugin: 1.5.0 -> 1.6.0
@wordpress/data: 4.12.0 -> 4.13.0
@wordpress/data-controls: 1.6.0 -> 1.7.0
@wordpress/date: 3.7.0 -> 3.8.0
@wordpress/dependency-extraction-webpack-plugin: 2.1.0 -> 2.2.0
@wordpress/deprecated: 2.6.1 -> 2.7.0
@wordpress/dom: 2.7.0 -> 2.8.0
@wordpress/dom-ready: 2.6.0 -> 2.7.0
@wordpress/e2e-test-utils: 4.1.0 -> 4.2.0
@wordpress/edit-post: 3.11.0 -> 3.12.0
@wordpress/editor: 9.10.0 -> 9.11.0
@wordpress/element: 2.10.0 -> 2.11.0
@wordpress/escape-html: 1.6.0 -> 1.7.0
@wordpress/format-library: 1.12.0 -> 1.13.0
@wordpress/hooks: 2.6.0 -> 2.7.0
@wordpress/html-entities: 2.5.0 -> 2.6.0
@wordpress/i18n: 3.8.0 -> 3.9.0
@wordpress/is-shallow-equal: 1.7.0 -> 1.8.0
@wordpress/keyboard-shortcuts: 0.2.0 -> 1.0.0
@wordpress/keycodes: 2.8.0 -> 2.9.0
@wordpress/library-export-default-webpack-plugin: 1.5.0 -> 1.6.0
@wordpress/list-reusable-blocks: 1.11.0 -> 1.12.0
@wordpress/media-utils: 1.5.0 -> 1.6.0
@wordpress/notices: 1.11.0 -> 1.12.0
@wordpress/nux: 3.10.0 -> 3.11.0
@wordpress/plugins: 2.10.0 -> 2.11.0
@wordpress/priority-queue: 1.4.0 -> 1.5.0
@wordpress/redux-routine: 3.6.2 -> 3.7.0
@wordpress/rich-text: 3.10.0 -> 3.11.0
@wordpress/scripts: 6.2.0 -> 7.0.0
@wordpress/server-side-render: 1.6.0 -> 1.7.0
@wordpress/shortcode: 2.5.0 -> 2.6.0
@wordpress/token-list: 1.8.0 -> 1.9.0
@wordpress/url: 2.9.0 -> 2.10.0
@wordpress/viewport: 2.11.0 -> 2.12.0
@wordpress/wordcount: 2.6.2 -> 2.7.0
Added these new packages:
@wordpress/warning
@wordpress/primitives
@wordpress/icons
Re-added keyboard-shortcuts to script loader removed by mistake on revision 47198.

Props gziolo, itsjonq, youknowriad, mcsf, andraganescu.
Fixes #49358.
Built from https://develop.svn.wordpress.org/trunk@47199


git-svn-id: http://core.svn.wordpress.org/trunk@46999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-06 21:03:31 +00:00

2 lines
40 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.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 c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));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=418)}({0:function(e,t){!function(){e.exports=this.wp.element}()},17:function(e,t,r){"use strict";var n=r(33);function c(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 c}))},2:function(e,t){!function(){e.exports=this.lodash}()},22:function(e,t,r){"use strict";var n=r(37);var c=r(38);function o(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,c=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){c=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(c)throw o}}return r}}(e,t)||Object(c.a)()}r.d(t,"a",(function(){return o}))},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},26:function(e,t){!function(){e.exports=this.wp.url}()},33: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}))},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},36:function(e,t,r){"use strict";var n,c;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(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={},c="undefined"!=typeof WeakMap,t.a=function(e,t){var r,u;function s(){r=c?new WeakMap:i()}function f(){var r,n,c,o,i,s=arguments.length;for(o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];for(i=t.apply(null,o),(r=u(i)).isUniqueByDependants||(r.lastDependants&&!a(i,r.lastDependants,0)&&r.clear(),r.lastDependants=i),n=r.head;n;){if(a(n.args,o,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,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),u=c?function(e){var t,c,o,a,u,s=r,f=!0;for(t=0;t<e.length;t++){if(c=e[t],!(u=c)||"object"!=typeof u){f=!1;break}s.has(c)?s=s.get(c):(o=new WeakMap,s.set(c,o),s=o)}return s.has(n)||((a=i()).isUniqueByDependants=f,s.set(n,a)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},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}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.apiFetch}()},418:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return Q})),r.d(n,"receiveCurrentUser",(function(){return W})),r.d(n,"addEntities",(function(){return H})),r.d(n,"receiveEntityRecords",(function(){return z})),r.d(n,"receiveThemeSupports",(function(){return G})),r.d(n,"receiveEmbedPreview",(function(){return X})),r.d(n,"editEntityRecord",(function(){return J})),r.d(n,"undo",(function(){return Z})),r.d(n,"redo",(function(){return $})),r.d(n,"__unstableCreateUndoLevel",(function(){return ee})),r.d(n,"saveEntityRecord",(function(){return te})),r.d(n,"saveEditedEntityRecord",(function(){return re})),r.d(n,"receiveUploadPermissions",(function(){return ne})),r.d(n,"receiveUserPermission",(function(){return ce})),r.d(n,"receiveAutosaves",(function(){return oe}));var c={};r.r(c),r.d(c,"isRequestingEmbedPreview",(function(){return Ie})),r.d(c,"getAuthors",(function(){return De})),r.d(c,"getCurrentUser",(function(){return Ae})),r.d(c,"getUserQueryResults",(function(){return Ue})),r.d(c,"getEntitiesByKind",(function(){return Ce})),r.d(c,"getEntity",(function(){return Me})),r.d(c,"getEntityRecord",(function(){return Ne})),r.d(c,"getEntityRecordNoResolver",(function(){return Ve})),r.d(c,"getRawEntityRecord",(function(){return Le})),r.d(c,"getEntityRecords",(function(){return qe})),r.d(c,"getEntityRecordChangesByRecord",(function(){return Be})),r.d(c,"getEntityRecordEdits",(function(){return Ye})),r.d(c,"getEntityRecordNonTransientEdits",(function(){return Fe})),r.d(c,"hasEditsForEntityRecord",(function(){return Ke})),r.d(c,"getEditedEntityRecord",(function(){return Qe})),r.d(c,"isAutosavingEntityRecord",(function(){return We})),r.d(c,"isSavingEntityRecord",(function(){return He})),r.d(c,"getLastEntitySaveError",(function(){return ze})),r.d(c,"getUndoEdit",(function(){return Xe})),r.d(c,"getRedoEdit",(function(){return Je})),r.d(c,"hasUndo",(function(){return Ze})),r.d(c,"hasRedo",(function(){return $e})),r.d(c,"getThemeSupports",(function(){return et})),r.d(c,"getEmbedPreview",(function(){return tt})),r.d(c,"isPreviewEmbedFallback",(function(){return rt})),r.d(c,"hasUploadPermissions",(function(){return nt})),r.d(c,"canUser",(function(){return ct})),r.d(c,"getAutosaves",(function(){return ot})),r.d(c,"getAutosave",(function(){return it})),r.d(c,"hasFetchedAutosaves",(function(){return at})),r.d(c,"getReferenceByDistinctEdits",(function(){return ut}));var o={};r.r(o),r.d(o,"getAuthors",(function(){return jt})),r.d(o,"getCurrentUser",(function(){return mt})),r.d(o,"getEntityRecord",(function(){return wt})),r.d(o,"getEntityRecords",(function(){return kt})),r.d(o,"getThemeSupports",(function(){return xt})),r.d(o,"getEmbedPreview",(function(){return Rt})),r.d(o,"hasUploadPermissions",(function(){return Pt})),r.d(o,"canUser",(function(){return _t})),r.d(o,"getAutosaves",(function(){return St})),r.d(o,"getAutosave",(function(){return Tt}));var i=r(5),a=r(4),u=r(22),s=r(17),f=r(2),d=r(50),p=r.n(d);var l=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}};function b(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=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,c=n[e];if(void 0===c)return r;var o=t(r[c],n);return o===r[c]?r:v({},r,Object(i.a)({},c,o))}}},O=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var g=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(f.isObjectLike)(r)&&t.set(r,n)),n}};function h(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 E(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},E(e),{query:t})}var m=r(36),w=r(62),k=r.n(w),x=r(26);var R=g((function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var c=r[n],o=e[c];switch(c){case"page":t[c]=Number(o);break;case"per_page":t.perPage=Number(o);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(x.addQueryArgs)("",Object(i.a)({},c,o)).slice(1)}}return t})),P=new WeakMap;function _(e,t){var r=R(t),n=r.stableKey,c=r.page,o=r.perPage;if(!e.queries[n])return null;var i=e.queries[n];if(!i)return null;for(var a=-1===o?0:(c-1)*o,u=-1===o?i.length:Math.min(a+o,i.length),s=[],f=a;f<u;f++){var d=i[f];s.push(e.items[d])}return s}var S=Object(m.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=P.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new k.a,P.set(e,r);var c=_(e,t);return r.set(t,c),c})),T=r(23),I=r.n(T),D=r(40),A=r.n(D);function U(e){return{type:"API_FETCH",request:e}}function C(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}}function M(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:"RESOLVE_SELECT",selectorName:e,args:r}}var N={API_FETCH:function(e){var t=e.request;return A()(t)},SELECT:Object(a.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,c=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(c))}})),RESOLVE_SELECT:Object(a.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,c=t.args;return(r=e.__experimentalResolveSelect("core"))[n].apply(r,Object(s.a)(c))}}))},V=I.a.mark(J),L=I.a.mark(Z),q=I.a.mark($),B=I.a.mark(te),Y=I.a.mark(re);function F(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 K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(f.castArray)(t),queryID:e}}function W(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function H(e){return{type:"ADD_ENTITIES",entities:e}}function z(e,t,r,n){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(f.castArray)(r).map((function(e){return"auto-draft"===e.status?K({},e,{title:""}):e}))),K({},n?j(r,n):E(r),{kind:e,name:t,invalidateCache:c})}function G(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function X(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function J(e,t,r,n){var c,o,i,a,u,s,d,p,l,b=arguments;return I.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return c=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,C("getEntity",e,t);case 3:if(o=v.sent){v.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return i=o.transientEdits,a=void 0===i?{}:i,u=o.mergedEdits,s=void 0===u?{}:u,v.next=9,C("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,C("getEditedEntityRecord",e,t,r);case 12:return p=v.sent,l={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],c=p[t],o=s[t]?K({},c,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:a},v.abrupt("return",K({type:"EDIT_ENTITY_RECORD"},l,{meta:{undo:!c.undoIgnore&&K({},l,{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return v.stop()}}),V)}function Z(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,K({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),L)}function $(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,K({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),q)}function ee(){return{type:"CREATE_UNDO_LEVEL"}}function te(e,t,r){var n,c,o,a,s,d,p,l,b,v,y,O,g,h,E,j,m,w,k,x,R,P,_,S,T,D=arguments;return I.a.wrap((function(I){for(;;)switch(I.prev=I.next){case 0:return n=D.length>3&&void 0!==D[3]?D[3]:{isAutosave:!1},c=n.isAutosave,o=void 0!==c&&c,I.next=3,ve(e);case 3:if(a=I.sent,s=Object(f.find)(a,{kind:e,name:t})){I.next=7;break}return I.abrupt("return");case 7:d=s.key||se,p=r[d],l=0,b=Object.entries(r);case 10:if(!(l<b.length)){I.next=24;break}if(v=Object(u.a)(b[l],2),y=v[0],"function"!=typeof(O=v[1])){I.next=21;break}return I.t0=O,I.next=16,C("getEditedEntityRecord",e,t,p);case 16:return I.t1=I.sent,g=(0,I.t0)(I.t1),I.next=20,J(e,t,p,Object(i.a)({},y,g),{undoIgnore:!0});case 20:r[y]=g;case 21:l++,I.next=10;break;case 24:return I.next=26,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:p,isAutosave:o};case 26:return I.prev=26,w="".concat(s.baseURL).concat(p?"/"+p:""),I.next=30,C("getRawEntityRecord",e,t,p);case 30:if(k=I.sent,!o){I.next=55;break}return I.next=34,C("getCurrentUser");case 34:return x=I.sent,R=x?x.id:void 0,I.next=38,C("getAutosave",k.type,k.id,R);case 38:return P=I.sent,_=K({},k,{},P,{},r),_=Object.keys(_).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(_[t],"raw",_[t])),e}),{status:"auto-draft"===_.status?"draft":_.status}),I.next=43,U({path:"".concat(w,"/autosaves"),method:"POST",data:_});case 43:if(h=I.sent,k.id!==h.id){I.next=51;break}return S=K({},k,{},_,{},h),S=Object.keys(S).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(S[t],"raw",S[t]):e[t]="status"===t?"auto-draft"===k.status&&"draft"===S.status?S.status:k.status:Object(f.get)(k[t],"raw",k[t]),e}),{}),I.next=49,z(e,t,S,void 0,!0);case 49:I.next=53;break;case 51:return I.next=53,oe(k.id,h);case 53:I.next=70;break;case 55:return T=r,"postType"===e&&k&&"auto-draft"===k.status&&(T.status||(T=K({},T,{status:"draft"})),T.title&&"Auto Draft"!==T.title||(T=K({},T,{title:""}))),I.next=59,C("getEntityRecordNoResolver",e,t,p);case 59:return j=I.sent,I.next=62,C("getEntityRecordEdits",e,t,p);case 62:return m=I.sent,I.next=65,z(e,t,K({},j,{},T),void 0,!0);case 65:return I.next=67,U({path:w,method:p?"PUT":"POST",data:T});case 67:return h=I.sent,I.next=70,z(e,t,h,void 0,!0);case 70:I.next=93;break;case 72:if(I.prev=72,I.t2=I.catch(26),E=I.t2,!j||!m){I.next=93;break}return I.next=78,z(e,t,j,void 0,!0);case 78:return I.t3=J,I.t4=e,I.t5=t,I.t6=p,I.t7=K,I.t8={},I.t9=m,I.t10={},I.next=88,C("getEntityRecordEdits",e,t,p);case 88:return I.t11=I.sent,I.t12=(0,I.t7)(I.t8,I.t9,I.t10,I.t11),I.t13={undoIgnore:!0},I.next=93,(0,I.t3)(I.t4,I.t5,I.t6,I.t12,I.t13);case 93:return I.next=95,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:p,error:E,isAutosave:o};case 95:return I.abrupt("return",h);case 96:case"end":return I.stop()}}),B,null,[[26,72]])}function re(e,t,r,n){var c,o;return I.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,C("hasEditsForEntityRecord",e,t,r);case 2:if(i.sent){i.next=4;break}return i.abrupt("return");case 4:return i.next=6,C("getEntityRecordNonTransientEdits",e,t,r);case 6:return c=i.sent,o=K({id:r},c),i.delegateYield(te(e,t,o,n),"t0",9);case 9:case"end":return i.stop()}}),Y)}function ne(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function ce(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function oe(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(f.castArray)(t)}}var ie=I.a.mark(pe),ae=I.a.mark(le),ue=I.a.mark(ve),se="id",fe=[{name:"site",kind:"root",baseURL:"/wp/v2/settings"},{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"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas",transientEdits:{blocks:!0}},{name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"}],de=[{name:"postType",loadEntities:pe},{name:"taxonomy",loadEntities:le}];function pe(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(f.map)(e,(function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t,transientEdits:{blocks:!0,selectionStart:!0,selectionEnd:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return t.stop()}}),ie)}function le(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(f.map)(e,(function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}})));case 4:case"end":return t.stop()}}),ae)}var be=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],c=Object(f.find)(fe,{kind:e,name:t}),o="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),i=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),a=n&&c.plural?Object(f.upperFirst)(Object(f.camelCase)(c.plural)):i;return"".concat(r).concat(o).concat(a)};function ve(e){var t,r;return I.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C("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(f.find)(de,{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,H(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),ue)}function ye(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 Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r,n){for(var c=(r-1)*n,o=Math.max(e.length,c+t.length),i=new Array(o),a=0;a<o;a++){var u=a>=c&&a<c+t.length;i[a]=u?t[a-c]:e[a]}return i}var he=Object(f.flowRight)([l((function(e){return"query"in e})),O((function(e){return e.query?Oe({},e,{},R(e.query)):e})),y("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,c=t.perPage,o=t.key,i=void 0===o?se:o;return"RECEIVE_ITEMS"!==r?e:ge(e||[],Object(f.map)(t.items,i),n,c)})),Ee=Object(a.combineReducers)({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":var r=t.key||se;return Oe({},e,{},t.items.reduce((function(t,n){var c=n[r];return t[c]=function(e,t){if(!e)return t;var r=!1,n={};for(var c in t)Object(f.isEqual)(e[c],t[c])?n[c]=e[c]:(r=!0,n[c]=t[c]);return r?n:e}(e[c],n),t}),{}))}return e},queries:he});function je(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 me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e){return Object(f.flowRight)([l((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),O((function(t){return me({},t,{key:e.key||se})}))])(Object(a.combineReducers)({queriedData:Ee,edits: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":var r=me({},e),n=!0,c=!1,o=void 0;try{for(var a,u=function(){var e=a.value,n=e[t.key],c=r[n];if(!c)return"continue";var o=Object.keys(c).reduce((function(t,r){return Object(f.isEqual)(c[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=c[r]),t}),{});Object.keys(o).length?r[n]=o:delete r[n]},s=t.items[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)u()}catch(e){c=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(c)throw o}}return r;case"EDIT_ENTITY_RECORD":var d=me({},e[t.recordId],{},t.edits);return Object.keys(d).forEach((function(e){void 0===d[e]&&delete d[e]})),me({},e,Object(i.a)({},t.recordId,d))}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return me({},e,Object(i.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e}}))}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe,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}var xe,Re=[];Re.offset=0;var Pe=Object(a.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 me({},e,Object(i.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:me({},e.byId,{},Object(f.keyBy)(t.users,"id")),queries:me({},e.queries,Object(i.a)({},t.queryID,Object(f.map)(t.users,(function(e){return e.id}))))}}return e},currentUser: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_CURRENT_USER":return t.currentUser}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 me({},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=ke(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(f.groupBy)(r,"kind");n=Object(a.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(u.a)(t,2),n=r[0],c=r[1],o=Object(a.combineReducers)(c.reduce((function(e,t){return me({},e,Object(i.a)({},t.name,we(t)))}),{}));return e[n]=o,e}),{}))}var o=n(e.data,t);return o===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:o,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=xe:c||(xe=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:me({},t,{edits:me({},xe&&xe.edits,{},t.edits)})),c){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=xe}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(s.a)(e)).flattenedUndo=me({},e.flattenedUndo,{},t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:me({},e.flattenedUndo,{},t.meta.undo.edits)});var o=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),i=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(o,i)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?me({},e.flattenedUndo,{},t.edits):t.edits}),r}return e},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 me({},e,Object(i.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 me({},e,Object(i.a)({},t.key,t.isAllowed))}return e},autosaves: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_AUTOSAVES":var r=t.postId,n=t.autosaves;return me({},e,Object(i.a)({},r,n))}return e}}),_e=r(35),Se=r.n(_e);function Te(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}var Ie=Object(a.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function De(e){return Ue(e,"authors")}function Ae(e){return e.currentUser}var Ue=Object(m.a)((function(e,t){var r=e.users.queries[t];return Object(f.map)(r,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function Ce(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function Me(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Ne(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"queriedData","items",n])}function Ve(e,t,r,n){return Ne(e,t,r,n)}var Le=Object(m.a)((function(e,t,r,n){var c=Ne(e,t,r,n);return c&&Object.keys(c).reduce((function(e,t){return e[t]=Object(f.get)(c[t],"raw",c[t]),e}),{})}),(function(e){return[e.entities.data]}));function qe(e,t,r,n){var c=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return c?S(c,n):[]}var Be=Object(m.a)((function(e){var t=e.entities.data;return Object.keys(t).reduce((function(r,n){return Object.keys(t[n]).forEach((function(c){var o=Object.keys(t[n][c].edits).filter((function(t){return Ke(e,n,c,t)}));o.length&&(r[n]||(r[n]={}),r[n][c]||(r[n][c]={}),o.forEach((function(t){return r[n][c][t]={rawRecord:Le(e,n,c,t),edits:Fe(e,n,c,t)}})))})),r}),{})}),(function(e){return[e.entities.data]}));function Ye(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var Fe=Object(m.a)((function(e,t,r,n){var c=(Me(e,t,r)||{}).transientEdits,o=Ye(e,t,r,n)||{};return c?Object.keys(o).reduce((function(e,t){return c[t]||(e[t]=o[t]),e}),{}):o}),(function(e){return[e.entities.config,e.entities.data]}));function Ke(e,t,r,n){return He(e,t,r,n)||Object.keys(Fe(e,t,r,n)).length>0}var Qe=Object(m.a)((function(e,t,r,n){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Le(e,t,r,n),{},Ye(e,t,r,n))}),(function(e){return[e.entities.data]}));function We(e,t,r,n){var c=Object(f.get)(e.entities.data,[t,r,"saving",n],{}),o=c.pending,i=c.isAutosave;return Boolean(o&&i)}function He(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function ze(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"error"])}function Ge(e){return e.undo.offset}function Xe(e){return e.undo[e.undo.length-2+Ge(e)]}function Je(e){return e.undo[e.undo.length+Ge(e)]}function Ze(e){return Boolean(Xe(e))}function $e(e){return Boolean(Je(e))}function et(e){return e.themeSupports}function tt(e,t){return e.embedPreviews[t]}function rt(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function nt(e){return Se()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(ct(e,"create","media"),!0)}function ct(e,t,r,n){var c=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",c])}function ot(e,t,r){return e.autosaves[r]}function it(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(f.find)(c,{author:n})}}var at=Object(a.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),ut=Object(m.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset]}));function st(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 ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?st(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dt=I.a.mark(jt),pt=I.a.mark(mt),lt=I.a.mark(wt),bt=I.a.mark(kt),vt=I.a.mark(xt),yt=I.a.mark(Rt),Ot=I.a.mark(Pt),gt=I.a.mark(_t),ht=I.a.mark(St),Et=I.a.mark(Tt);function jt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,Q("authors",e);case 5:case"end":return t.stop()}}),dt)}function mt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,W(e);case 5:case"end":return t.stop()}}),pt)}function wt(e,t){var r,n,c,o,i=arguments;return I.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:"",a.next=3,ve(e);case 3:if(n=a.sent,c=Object(f.find)(n,{kind:e,name:t})){a.next=7;break}return a.abrupt("return");case 7:return a.next=9,U({path:"".concat(c.baseURL,"/").concat(r,"?context=edit")});case 9:return o=a.sent,a.next=12,z(e,t,o);case 12:case"end":return a.stop()}}),lt)}function kt(e,t){var r,n,c,o,i,a=arguments;return I.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:{},u.next=3,ve(e);case 3:if(n=u.sent,c=Object(f.find)(n,{kind:e,name:t})){u.next=7;break}return u.abrupt("return");case 7:return o=Object(x.addQueryArgs)(c.baseURL,ft({},r,{context:"edit"})),u.next=10,U({path:o});case 10:return i=u.sent,u.next=13,z(e,t,Object.values(i),r);case 13:case"end":return u.stop()}}),bt)}function xt(){var e;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,G(e[0].theme_supports);case 5:case"end":return t.stop()}}),vt)}function Rt(e){var t;return I.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,U({path:Object(x.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,X(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,X(e,!1);case 12:case"end":return r.stop()}}),yt,null,[[0,8]])}function Pt(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Se()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(_t("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Ot)}function _t(e,t,r){var n,c,o,i,a,u;return I.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 c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,U({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return i=Object(f.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(f.get)(o,["headers","Allow"],""),a=Object(f.compact)([e,t,r]).join("/"),u=Object(f.includes)(i,n),s.next=19,ce(a,u);case 19:case"end":return s.stop()}}),gt,null,[[5,11]])}function St(e,t){var r,n,c;return I.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,M("getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,U({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=o.sent)||!c.length){o.next=10;break}return o.next=10,oe(t,c);case 10:case"end":return o.stop()}}),ht)}function Tt(e,t){return I.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,M("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Et)}kt.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var It=r(0),Dt=r(9);function At(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 Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?At(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ct=Ut({},fe.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(It.createContext)()},e}),{}),{},de.reduce((function(e,t){return e[t.name]={},e}),{})),Mt=function(e,t){if(!Ct[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return Ct[e][t]||(Ct[e][t]={context:Object(It.createContext)()}),Ct[e][t]};function Nt(e){var t=e.kind,r=e.type,n=e.id,c=e.children,o=Mt(t,r).context.Provider;return Object(It.createElement)(o,{value:n},c)}function Vt(e,t){return Object(It.useContext)(Mt(e,t).context)}function Lt(e,t,r){var n=Vt(e,t),c=Object(a.useSelect)((function(c){var o=c("core"),i=o.getEntityRecord,a=o.getEditedEntityRecord;i(e,t,n);var u=a(e,t,n);return u&&u[r]}),[e,t,n,r]),o=Object(a.useDispatch)("core").editEntityRecord;return[c,Object(It.useCallback)((function(c){o(e,t,n,Object(i.a)({},r,c))}),[e,t,n,r])]}function qt(e,t,r){var n=Vt(e,t),c=Object(a.useSelect)((function(c){var o=c("core"),i=o.getEntityRecordNonTransientEdits,a=o.isSavingEntityRecord,u=Object.keys(i(e,t,n));return[r?u.some((function(e){return"string"==typeof r?e===r:r.includes(e)})):u.length>0,a(e,t,n),c]}),[e,t,n,r]),o=Object(u.a)(c,3),s=o[0],f=o[1],d=o[2],p=Object(a.useDispatch)("core").saveEntityRecord;return[s,f,Object(It.useCallback)((function(){var c=d("core").getEntityRecordNonTransientEdits(e,t,n);"string"==typeof r?c=Object(i.a)({},r,c[r]):r&&(c=Object.keys(c).reduce((function(e,t){return r.includes(t)&&(e[t]=c[t]),e}),{})),p(e,t,Ut({id:n},c))}),[e,t,n,r,d])]}function Bt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,o=void 0===c?"blocks":c,i=r.contentProp,s=Lt(e,t,void 0===i?"content":i),f=Object(u.a)(s,2),d=f[0],p=f[1],l=Object(a.useDispatch)("core").editEntityRecord,b=Vt(e,t),v=Object(It.useMemo)((function(){if(n&&l(e,t,b,n,{undoIgnore:!0}),"function"!=typeof d){var r=Object(Dt.parse)(d);return r.length?r:[]}}),[b]),y=Lt(e,t,o),O=Object(u.a)(y,2),g=O[0],h=void 0===g?v:g,E=O[1],j=Object(It.useCallback)((function(e){E(e),p((function(e){var t=e.blocks;return Object(Dt.serialize)(t)}))}),[E,p]);return[h,E,j]}function Yt(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 Ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"EntityProvider",(function(){return Nt})),r.d(t,"useEntityId",(function(){return Vt})),r.d(t,"useEntityProp",(function(){return Lt})),r.d(t,"__experimentalUseEntitySaving",(function(){return qt})),r.d(t,"useEntityBlockEditor",(function(){return Bt}));var Kt=fe.reduce((function(e,t){var r=t.kind,n=t.name;return e[be(r,n)]=function(e,t){return Ne(e,r,n,t)},e[be(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return qe.apply(c,[e,r,n].concat(o))},e}),{}),Qt=fe.reduce((function(e,t){var r=t.kind,n=t.name;e[be(r,n)]=function(e){return wt(r,n,e)};var c=be(r,n,"get",!0);return e[c]=function(){for(var e=arguments.length,t=new Array(e),c=0;c<e;c++)t[c]=arguments[c];return kt.apply(o,[r,n].concat(t))},e[c].shouldInvalidate=function(e){for(var t,c=arguments.length,o=new Array(c>1?c-1:0),i=1;i<c;i++)o[i-1]=arguments[i];return(t=kt).shouldInvalidate.apply(t,[e,r,n].concat(o))},e}),{}),Wt=fe.reduce((function(e,t){var r=t.kind,n=t.name;return e[be(r,n,"save")]=function(e){return te(r,n,e)},e}),{});Object(a.registerStore)("core",{reducer:Pe,controls:N,actions:Ft({},n,{},Wt),selectors:Ft({},c,{},Kt),resolvers:Ft({},o,{},Qt)})},5: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}))},50:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},62: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 c(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){var r=e._map,n=e._arrayTreeMap,c=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),i=Array.isArray(t)?n:c,a=0;a<o.length;a++){var u=o[a];if(void 0===(i=i.get(u)))return;var s=t[u];if(void 0===(i=i.get(s)))return}var f=i.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,i.set("_ekm_value",f),r.set(t,f),f):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 c=Object.keys(t).sort(),o=[t,r],i=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<c.length;a++){var u=c[a];i.has(u)||i.set(u,new e),i=i.get(u);var s=t[u];i.has(s)||i.set(s,new e),i=i.get(s)}var f=i.get("_ekm_value");return f&&this._map.delete(f[0]),i.set("_ekm_value",o),this._map.set(t,o),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=o(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!==o(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(c,o){null!==o&&"object"===n(o)&&(c=c[1]),e.call(r,c,o,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}}])&&c(t.prototype,r),i&&c(t,i),e}();e.exports=i},9:function(e,t){!function(){e.exports=this.wp.blocks}()}});