Gutenberg - Version 8.9.1

Version Description

Download this release

Release Info

Developer youknowriad
Plugin Icon 128x128 Gutenberg
Version 8.9.1
Comparing to
See all releases

Code changes from version 8.9.0 to 8.9.1

build/core-data/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '65cc0631848156f020bc4efee6c5c316');
1
+ <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '7c1b3086aac36c0635659487cd7b9bfb');
build/core-data/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));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=412)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},106: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 a(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,a=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),c=Array.isArray(t)?n:a,u=0;u<i.length;u++){var o=i[u];if(void 0===(c=c.get(o)))return;var s=t[o];if(void 0===(c=c.get(s)))return}var f=c.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,c.set("_ekm_value",f),r.set(t,f),f):void 0}var c=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,c;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 a=Object.keys(t).sort(),i=[t,r],c=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var o=a[u];c.has(o)||c.set(o,new e),c=c.get(o);var s=t[o];c.has(s)||c.set(s,new e),c=c.get(s)}var f=c.get("_ekm_value");return f&&this._map.delete(f[0]),c.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(a,i){null!==i&&"object"===n(i)&&(a=a[1]),e.call(r,a,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}}])&&a(t.prototype,r),c&&a(t,c),e}();e.exports=c},11:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(37);var a=r(29),i=r(38);function c(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw i}}return r}}(e,t)||Object(a.a)(e,t)||Object(i.a)()}},12:function(e,t){!function(){e.exports=this.wp.blocks}()},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var a=r(35),i=r(29);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},28:function(e,t){!function(){e.exports=this.wp.url}()},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},34:function(e,t){!function(){e.exports=this.wp.dataControls}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},36:function(e,t){!function(){e.exports=this.wp.apiFetch}()},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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.deprecated}()},412:function(e,t,r){"use strict";r.r(t),r.d(t,"EntityProvider",(function(){return rr})),r.d(t,"useEntityId",(function(){return nr})),r.d(t,"useEntityProp",(function(){return ar})),r.d(t,"useEntityBlockEditor",(function(){return ir}));var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return B})),r.d(n,"receiveCurrentUser",(function(){return F})),r.d(n,"addEntities",(function(){return H})),r.d(n,"receiveEntityRecords",(function(){return Q})),r.d(n,"receiveCurrentTheme",(function(){return W})),r.d(n,"receiveThemeSupports",(function(){return K})),r.d(n,"receiveEmbedPreview",(function(){return G})),r.d(n,"deleteEntityRecord",(function(){return z})),r.d(n,"editEntityRecord",(function(){return $})),r.d(n,"undo",(function(){return X})),r.d(n,"redo",(function(){return J})),r.d(n,"__unstableCreateUndoLevel",(function(){return Z})),r.d(n,"saveEntityRecord",(function(){return ee})),r.d(n,"saveEditedEntityRecord",(function(){return te})),r.d(n,"receiveUploadPermissions",(function(){return re})),r.d(n,"receiveUserPermission",(function(){return ne})),r.d(n,"receiveAutosaves",(function(){return ae}));var a={};r.r(a),r.d(a,"isRequestingEmbedPreview",(function(){return Ye})),r.d(a,"getAuthors",(function(){return Be})),r.d(a,"getCurrentUser",(function(){return Fe})),r.d(a,"getUserQueryResults",(function(){return He})),r.d(a,"getEntitiesByKind",(function(){return Qe})),r.d(a,"getEntity",(function(){return We})),r.d(a,"getEntityRecord",(function(){return Ke})),r.d(a,"__experimentalGetEntityRecordNoResolver",(function(){return Ge})),r.d(a,"getRawEntityRecord",(function(){return ze})),r.d(a,"hasEntityRecords",(function(){return $e})),r.d(a,"getEntityRecords",(function(){return Xe})),r.d(a,"__experimentalGetDirtyEntityRecords",(function(){return Je})),r.d(a,"getEntityRecordEdits",(function(){return Ze})),r.d(a,"getEntityRecordNonTransientEdits",(function(){return et})),r.d(a,"hasEditsForEntityRecord",(function(){return tt})),r.d(a,"getEditedEntityRecord",(function(){return rt})),r.d(a,"isAutosavingEntityRecord",(function(){return nt})),r.d(a,"isSavingEntityRecord",(function(){return at})),r.d(a,"isDeletingEntityRecord",(function(){return it})),r.d(a,"getLastEntitySaveError",(function(){return ct})),r.d(a,"getLastEntityDeleteError",(function(){return ut})),r.d(a,"getUndoEdit",(function(){return st})),r.d(a,"getRedoEdit",(function(){return ft})),r.d(a,"hasUndo",(function(){return dt})),r.d(a,"hasRedo",(function(){return lt})),r.d(a,"getCurrentTheme",(function(){return pt})),r.d(a,"getThemeSupports",(function(){return bt})),r.d(a,"getEmbedPreview",(function(){return vt})),r.d(a,"isPreviewEmbedFallback",(function(){return yt})),r.d(a,"hasUploadPermissions",(function(){return Ot})),r.d(a,"canUser",(function(){return Et})),r.d(a,"getAutosaves",(function(){return ht})),r.d(a,"getAutosave",(function(){return gt})),r.d(a,"hasFetchedAutosaves",(function(){return mt})),r.d(a,"getReferenceByDistinctEdits",(function(){return jt}));var i={};r.r(i),r.d(i,"getAuthors",(function(){return Vt})),r.d(i,"getCurrentUser",(function(){return Lt})),r.d(i,"getEntityRecord",(function(){return qt})),r.d(i,"getRawEntityRecord",(function(){return Yt})),r.d(i,"getEditedEntityRecord",(function(){return Bt})),r.d(i,"getEntityRecords",(function(){return Ft})),r.d(i,"getCurrentTheme",(function(){return Ht})),r.d(i,"getThemeSupports",(function(){return Qt})),r.d(i,"getEmbedPreview",(function(){return Wt})),r.d(i,"hasUploadPermissions",(function(){return Kt})),r.d(i,"canUser",(function(){return Gt})),r.d(i,"getAutosaves",(function(){return zt})),r.d(i,"getAutosave",(function(){return $t}));var c=r(5),u=r(4),o=r(11),s=r(17),f=r(2),d=r(68),l=r.n(d),p=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},b=function(e){return function(t){return function(r,n){return t(r,e(n))}}};function v(e,t){if(!e)return t;var r=!1,n={};for(var a in t)Object(f.isEqual)(e[a],t[a])?n[a]=e[a]:(r=!0,n[a]=t[a]);if(!r)return e;for(var i in e)n.hasOwnProperty(i)||(n[i]=e[i]);return n}function y(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E=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,a=n[e];if(void 0===a)return r;var i=t(r[a],n);return i===r[a]?r:O({},r,Object(c.a)({},a,i))}}},h=r(20),g=r.n(h),m=r(1),j=r(28);function w(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function k(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(f.castArray)(r),kind:e,name:t,invalidateCache:n}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _({},R(e),{query:t})}var T=r(36),I=r.n(T);function P(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}}function A(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 D={API_FETCH:function(e){var t=e.request;return I()(t)},SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(a))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.__experimentalResolveSelect("core"))[n].apply(r,Object(s.a)(a))}}))},C=g.a.mark(z),U=g.a.mark($),M=g.a.mark(X),N=g.a.mark(J),V=g.a.mark(ee),L=g.a.mark(te);function q(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 Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(f.castArray)(t),queryID:e}}function F(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function H(e){return{type:"ADD_ENTITIES",entities:e}}function Q(e,t,r,n){var a=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?Y({},e,{title:""}):e}))),Y({},n?x(r,n):R(r),{kind:e,name:t,invalidateCache:a})}function W(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function K(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function G(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function z(e,t,r,n){var a,i,c,u,o;return g.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,be(e);case 2:if(a=s.sent,i=Object(f.find)(a,{kind:e,name:t}),u=!1,i){s.next=7;break}return s.abrupt("return");case 7:return s.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return s.prev=9,o="".concat(i.baseURL,"/").concat(r),n&&(o=Object(j.addQueryArgs)(o,n)),s.next=14,P({path:o,method:"DELETE"});case 14:return u=s.sent,s.next=17,k(e,t,r,!0);case 17:s.next=22;break;case 19:s.prev=19,s.t0=s.catch(9),c=s.t0;case 22:return s.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:c};case 24:return s.abrupt("return",u);case 25:case"end":return s.stop()}}),C,null,[[9,19]])}function $(e,t,r,n){var a,i,c,u,o,s,d,l,p,b=arguments;return g.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return a=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,S("getEntity",e,t);case 3:if(i=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 c=i.transientEdits,u=void 0===c?{}:c,o=i.mergedEdits,s=void 0===o?{}:o,v.next=9,S("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,S("getEditedEntityRecord",e,t,r);case 12:return l=v.sent,p={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],a=l[t],i=s[t]?Y({},a,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,i)?void 0:i,e}),{}),transientEdits:u},v.abrupt("return",Y({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&Y({},p,{edits:Object.keys(n).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return v.stop()}}),U)}function X(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Y({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),M)}function J(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Y({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),N)}function Z(){return{type:"CREATE_UNDO_LEVEL"}}function ee(e,t,r){var n,a,i,u,s,d,l,p,b,v,y,O,E,h,m,j,w,_,R,k,x,T,I,A,D,C=arguments;return g.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return n=C.length>3&&void 0!==C[3]?C[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,g.next=3,be(e);case 3:if(u=g.sent,s=Object(f.find)(u,{kind:e,name:t})){g.next=7;break}return g.abrupt("return");case 7:d=s.key||oe,l=r[d],p=0,b=Object.entries(r);case 10:if(!(p<b.length)){g.next=24;break}if(v=Object(o.a)(b[p],2),y=v[0],"function"!=typeof(O=v[1])){g.next=21;break}return g.t0=O,g.next=16,S("getEditedEntityRecord",e,t,l);case 16:return g.t1=g.sent,E=(0,g.t0)(g.t1),g.next=20,$(e,t,l,Object(c.a)({},y,E),{undoIgnore:!0});case 20:r[y]=E;case 21:p++,g.next=10;break;case 24:return g.next=26,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:l,isAutosave:i};case 26:return g.prev=26,_="".concat(s.baseURL).concat(l?"/"+l:""),g.next=30,S("getRawEntityRecord",e,t,l);case 30:if(R=g.sent,!i){g.next=55;break}return g.next=34,S("getCurrentUser");case 34:return k=g.sent,x=k?k.id:void 0,g.next=38,S("getAutosave",R.type,R.id,x);case 38:return T=g.sent,I=Y({},R,{},T,{},r),I=Object.keys(I).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(I[t],"raw",I[t])),e}),{status:"auto-draft"===I.status?"draft":I.status}),g.next=43,P({path:"".concat(_,"/autosaves"),method:"POST",data:I});case 43:if(h=g.sent,R.id!==h.id){g.next=51;break}return A=Y({},R,{},I,{},h),A=Object.keys(A).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(A[t],"raw",A[t]):e[t]="status"===t?"auto-draft"===R.status&&"draft"===A.status?A.status:R.status:Object(f.get)(R[t],"raw",R[t]),e}),{}),g.next=49,Q(e,t,A,void 0,!0);case 49:g.next=53;break;case 51:return g.next=53,ae(R.id,h);case 53:g.next=70;break;case 55:return D=r,"postType"===e&&R&&"auto-draft"===R.status&&(D.status||(D=Y({},D,{status:"draft"})),D.title&&"Auto Draft"!==D.title||(D=Y({},D,{title:""}))),g.next=59,S("__experimentalGetEntityRecordNoResolver",e,t,l);case 59:return j=g.sent,g.next=62,S("getEntityRecordEdits",e,t,l);case 62:return w=g.sent,g.next=65,Q(e,t,Y({},j,{},D),void 0,!0);case 65:return g.next=67,P({path:_,method:l?"PUT":"POST",data:D});case 67:return h=g.sent,g.next=70,Q(e,t,h,void 0,!0);case 70:g.next=93;break;case 72:if(g.prev=72,g.t2=g.catch(26),m=g.t2,!j||!w){g.next=93;break}return g.next=78,Q(e,t,j,void 0,!0);case 78:return g.t3=$,g.t4=e,g.t5=t,g.t6=l,g.t7=Y,g.t8={},g.t9=w,g.t10={},g.next=88,S("getEntityRecordEdits",e,t,l);case 88:return g.t11=g.sent,g.t12=(0,g.t7)(g.t8,g.t9,g.t10,g.t11),g.t13={undoIgnore:!0},g.next=93,(0,g.t3)(g.t4,g.t5,g.t6,g.t12,g.t13);case 93:return g.next=95,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:l,error:m,isAutosave:i};case 95:return g.abrupt("return",h);case 96:case"end":return g.stop()}}),V,null,[[26,72]])}function te(e,t,r,n){var a,i;return g.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,S("hasEditsForEntityRecord",e,t,r);case 2:if(c.sent){c.next=4;break}return c.abrupt("return");case 4:return c.next=6,S("getEntityRecordNonTransientEdits",e,t,r);case 6:return a=c.sent,i=Y({id:r},a),c.delegateYield(ee(e,t,i,n),"t0",9);case 9:case"end":return c.stop()}}),L)}function re(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function ne(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ae(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(f.castArray)(t)}}var ie=g.a.mark(de),ce=g.a.mark(le),ue=g.a.mark(be),oe="id",se=[{label:Object(m.__)("Base"),name:"__unstableBase",kind:"root",baseURL:""},{label:Object(m.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:function(e){return Object(f.get)(e,["title"],Object(m.__)("Site Title"))}},{label:Object(m.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems",label:Object(m.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies",label:Object(m.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/__experimental/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:Object(m.__)("Widget areas")},{label:Object(m.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",plural:"comments",label:Object(m.__)("Comment")},{name:"menu",kind:"root",baseURL:"/__experimental/menus",plural:"menus",label:Object(m.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/__experimental/menu-items",plural:"menuItems",label:Object(m.__)("Menu Item")},{name:"menuLocation",kind:"root",baseURL:"/__experimental/menu-locations",plural:"menuLocations",label:Object(m.__)("Menu Location"),key:"name"}],fe=[{name:"postType",loadEntities:de},{name:"taxonomy",loadEntities:le}];function de(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name,transientEdits:{blocks:!0,selectionStart:!0,selectionEnd:!0},mergedEdits:{meta:!0},getTitle:function(e){return"wp_template_part"===t||"wp_template"===t?Object(f.startCase)(e.slug):Object(f.get)(e,["title","rendered"],e.id)}}})));case 4:case"end":return t.stop()}}),ie)}function le(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name}})));case 4:case"end":return t.stop()}}),ce)}var pe=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],a=Object(f.find)(se,{kind:e,name:t}),i="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),c=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),u=n&&a.plural?Object(f.upperFirst)(Object(f.camelCase)(a.plural)):c;return"".concat(r).concat(i).concat(u)};function be(e){var t,r;return g.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(f.find)(fe,{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)}var ve=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ye=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(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n<r.length;n++){var a=r[n],i=e[a];switch(a){case"page":t[a]=Number(i);break;case"per_page":t.perPage=Number(i);break;case"include":t.include=ve(i).map(Number);break;case"_fields":t.fields=ve(i);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(j.addQueryArgs)("",Object(c.a)({},a,i)).slice(1)}}return t}));function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r,n){if(1===r&&-1===n)return t;for(var a=(r-1)*n,i=Math.max(e.length,a+t.length),c=new Array(i),u=0;u<i;u++){var o=u>=a&&u<a+t.length;c[u]=o?t[u-a]:e[u]}return c}var ge=Object(f.flowRight)([p((function(e){return"query"in e})),b((function(e){return e.query?Ee({},e,{},ye(e.query)):e})),E("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,a=t.perPage,i=t.key,c=void 0===i?oe:i;return"RECEIVE_ITEMS"!==r?e:he(e||[],Object(f.map)(t.items,c),n,a)})),me=Object(u.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||oe;return Ee({},e,{},t.items.reduce((function(t,n){var a=n[r];return t[a]=v(e[a],n),t}),{}));case"REMOVE_ITEMS":var n=Object(f.omit)(e,t.itemIds);return n}return e},itemIsComplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.query,a=t.key,i=void 0===a?oe:a;if("RECEIVE_ITEMS"!==r)return e;var c=!n||!Array.isArray(ye(n).fields);return Ee({},e,{},t.items.reduce((function(t,r){var n=r[i];return t[n]=e[n]||c,t}),{}))},queries: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 ge(e,t);case"REMOVE_ITEMS":var r=Ee({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(f.forEach)(r,(function(e,t){r[t]=Object(f.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function je(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _e(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 Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e){return Object(f.flowRight)([p((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),b((function(t){return Re({},t,{key:e.key||oe})}))])(Object(u.combineReducers)({queriedData:me,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,n=Re({},e),a=je(t.items);try{var i=function(){var e=r.value,a=e[t.key],i=n[a];if(!i)return"continue";var c=Object.keys(i).reduce((function(t,r){return Object(f.isEqual)(i[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=i[r]),t}),{});Object.keys(c).length?n[a]=c:delete n[a]};for(a.s();!(r=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}return n;case"EDIT_ENTITY_RECORD":var u=Re({},e[t.recordId],{},t.edits);return Object.keys(u).forEach((function(e){void 0===u[e]&&delete u[e]})),Re({},e,Object(c.a)({},t.recordId,u))}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 Re({},e,Object(c.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return Re({},e,Object(c.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,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 Te,Ie=[];Ie.offset=0;var Pe=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 Re({},e,Object(c.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:Re({},e.byId,{},Object(f.keyBy)(t.users,"id")),queries:Re({},e.queries,Object(c.a)({},t.queryID,Object(f.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}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},themes: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_THEME":return Re({},e,Object(c.a)({},t.currentTheme.stylesheet,t.currentTheme))}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 Re({},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=xe(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(f.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(o.a)(t,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(e,t){return Re({},e,Object(c.a)({},t.name,ke(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}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,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,a=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=Te:a||(Te=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:Re({},t,{edits:Re({},Te&&Te.edits,{},t.edits)})),a){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=Te}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=Re({},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:Re({},e.flattenedUndo,{},t.meta.undo.edits)});var i=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),c=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return l()(i,c)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?Re({},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 Re({},e,Object(c.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 Re({},e,Object(c.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 Re({},e,Object(c.a)({},r,n))}return e}}),Se=r(44),Ae=r(40),De=r.n(Ae),Ce=r(106),Ue=r.n(Ce),Me=new WeakMap;function Ne(e,t){var r,n=ye(t),a=n.stableKey,i=n.page,c=n.perPage,u=n.include,o=n.fields;if(Array.isArray(u)&&!a?r=u:e.queries[a]&&(r=e.queries[a]),!r)return null;for(var s=-1===c?0:(i-1)*c,f=-1===c?r.length:Math.min(s+c,r.length),d=[],l=s;l<f;l++){var p=r[l];if(!Array.isArray(u)||u.includes(p)){if(!e.items.hasOwnProperty(p))return null;var b=e.items[p],v=void 0;if(Array.isArray(o)){v={};for(var y=0;y<o.length;y++){var O=o[y];if(!b.hasOwnProperty(O))return null;v[O]=b[O]}}else{if(!e.itemIsComplete[p])return null;v=b}d.push(v)}}return d}var Ve=Object(Se.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Me.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ue.a,Me.set(e,r);var a=Ne(e,t);return r.set(t,a),a}));function Le(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 qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ye=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function Be(e){return He(e,"authors")}function Fe(e){return e.currentUser}var He=Object(Se.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 Qe(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function We(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Ke(e,t,r,n,a){var i=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return i?void 0===a?i.itemIsComplete[n]&&i.items[n]||null:(a=qe({},a,{include:[n]}),Object(f.first)(Ve(i,a))||null):null}function Ge(e,t,r,n){return Ke(e,t,r,n)}var ze=Object(Se.a)((function(e,t,r,n){var a=Ke(e,t,r,n);return a&&Object.keys(a).reduce((function(e,t){return e[t]=Object(f.get)(a[t],"raw",a[t]),e}),{})}),(function(e){return[e.entities.data]}));function $e(e,t,r,n){return Array.isArray(Xe(e,t,r,n))}function Xe(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return a?Ve(a,n):[]}var Je=Object(Se.a)((function(e){var t=e.entities.data,r=[];return Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(a){var i=Object.keys(t[n][a].edits).filter((function(t){return tt(e,n,a,t)}));if(i.length){var c=We(e,n,a);i.forEach((function(t){var i=rt(e,n,a,t);r.push({key:i[c.key||oe],title:c.getTitle?c.getTitle(i):"",name:a,kind:n})}))}}))})),r}),(function(e){return[e.entities.data]}));function Ze(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var et=Object(Se.a)((function(e,t,r,n){var a=(We(e,t,r)||{}).transientEdits,i=Ze(e,t,r,n)||{};return a?Object.keys(i).reduce((function(e,t){return a[t]||(e[t]=i[t]),e}),{}):i}),(function(e){return[e.entities.config,e.entities.data]}));function tt(e,t,r,n){return at(e,t,r,n)||Object.keys(et(e,t,r,n)).length>0}var rt=Object(Se.a)((function(e,t,r,n){return qe({},ze(e,t,r,n),{},Ze(e,t,r,n))}),(function(e){return[e.entities.data]}));function nt(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"saving",n],{}),i=a.pending,c=a.isAutosave;return Boolean(i&&c)}function at(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function it(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function ct(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"error"])}function ut(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"deleting",n,"error"])}function ot(e){return e.undo.offset}function st(e){return e.undo[e.undo.length-2+ot(e)]}function ft(e){return e.undo[e.undo.length+ot(e)]}function dt(e){return Boolean(st(e))}function lt(e){return Boolean(ft(e))}function pt(e){return e.themes[e.currentTheme]}function bt(e){return e.themeSupports}function vt(e,t){return e.embedPreviews[t]}function yt(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function Ot(e){return De()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(Et(e,"create","media"),!0)}function Et(e,t,r,n){var a=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",a])}function ht(e,t,r){return e.autosaves[r]}function gt(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(f.find)(a,{author:n})}}var mt=Object(u.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),jt=Object(Se.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),wt=r(34),_t=function(e,t){return g.a.mark((function r(){var n,a,i,c=arguments;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=c.length,a=new Array(n),i=0;i<n;i++)a[i]=c[i];return r.next=3,Object(wt.select)("core","hasStartedResolution",t,a);case 3:if(r.sent){r.next=6;break}return r.delegateYield(e.apply(void 0,a),"t0",6);case 6:case"end":return r.stop()}}),r)}))};function Rt(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 kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt=g.a.mark(Vt),Tt=g.a.mark(Lt),It=g.a.mark(qt),Pt=g.a.mark(Ft),St=g.a.mark(Ht),At=g.a.mark(Qt),Dt=g.a.mark(Wt),Ct=g.a.mark(Kt),Ut=g.a.mark(Gt),Mt=g.a.mark(zt),Nt=g.a.mark($t);function Vt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,B("authors",e);case 5:case"end":return t.stop()}}),xt)}function Lt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,F(e);case 5:case"end":return t.stop()}}),Tt)}function qt(e,t){var r,n,a,i,c,u,o=arguments;return g.a.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:"",n=o.length>3?o[3]:void 0,d.next=4,be(e);case 4:if(a=d.sent,i=Object(f.find)(a,{kind:e,name:t})){d.next=8;break}return d.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=kt({},n,{_fields:Object(f.uniq)([].concat(Object(s.a)(ve(n._fields)||[]),[i.key||oe])).join()})),c=Object(j.addQueryArgs)(i.baseURL+"/"+r,kt({},n,{context:"edit"})),void 0===n){d.next=17;break}return n=kt({},n,{include:[r]}),d.next=14,S("hasEntityRecords",e,t,n);case 14:if(!d.sent){d.next=17;break}return d.abrupt("return");case 17:return d.next=19,P({path:c});case 19:return u=d.sent,d.next=22,Q(e,t,u,n);case 22:case"end":return d.stop()}}),It)}var Yt=_t(qt,"getEntityRecord"),Bt=_t(Yt,"getRawEntityRecord");function Ft(e,t){var r,n,a,i,c,u=arguments;return g.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},o.next=3,be(e);case 3:if(n=o.sent,a=Object(f.find)(n,{kind:e,name:t})){o.next=7;break}return o.abrupt("return");case 7:return r._fields&&(r=kt({},r,{_fields:Object(f.uniq)([].concat(Object(s.a)(ve(r._fields)||[]),[a.key||oe])).join()})),i=Object(j.addQueryArgs)(a.baseURL,kt({},r,{context:"edit"})),o.t0=Object,o.next=12,P({path:i});case 12:return o.t1=o.sent,c=o.t0.values.call(o.t0,o.t1),r._fields&&(c=c.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),o.next=17,Q(e,t,c,r);case 17:case"end":return o.stop()}}),Pt)}function Ht(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,W(e[0]);case 5:case"end":return t.stop()}}),St)}function Qt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,K(e[0].theme_supports);case 5:case"end":return t.stop()}}),At)}function Wt(e){var t;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,G(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,G(e,!1);case 12:case"end":return r.stop()}}),Dt,null,[[0,8]])}function Kt(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return De()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Gt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Ct)}function Gt(e,t,r){var n,a,i,c,u,o;return g.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 a=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,P({path:a,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 c=Object(f.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(f.get)(i,["headers","Allow"],""),u=Object(f.compact)([e,t,r]).join("/"),o=Object(f.includes)(c,n),s.next=19,ne(u,o);case 19:case"end":return s.stop()}}),Ut,null,[[5,11]])}function zt(e,t){var r,n,a;return g.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,A("getPostType",e);case 2:return r=i.sent,n=r.rest_base,i.next=6,P({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,ae(t,a);case 10:case"end":return i.stop()}}),Mt)}function $t(e,t){return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,A("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Nt)}Ft.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Xt=r(0),Jt=r(12);function Zt(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 er=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},se.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Xt.createContext)()},e}),{}),{},fe.reduce((function(e,t){return e[t.name]={},e}),{})),tr=function(e,t){if(!er[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return er[e][t]||(er[e][t]={context:Object(Xt.createContext)()}),er[e][t]};function rr(e){var t=e.kind,r=e.type,n=e.id,a=e.children,i=tr(t,r).context.Provider;return Object(Xt.createElement)(i,{value:n},a)}function nr(e,t){return Object(Xt.useContext)(tr(e,t).context)}function ar(e,t,r,n){var a=nr(e,t),i=null!=n?n:a,o=Object(u.useSelect)((function(n){var a=n("core"),c=a.getEntityRecord,u=a.getEditedEntityRecord,o=c(e,t,i),s=u(e,t,i);return o&&s?{value:s[r],fullValue:o[r]}:{}}),[e,t,i,r]),s=o.value,f=o.fullValue,d=Object(u.useDispatch)("core").editEntityRecord;return[s,Object(Xt.useCallback)((function(n){d(e,t,i,Object(c.a)({},r,n))}),[e,t,i,r]),f]}function ir(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,a=r.blocksProp,i=void 0===a?"blocks":a,c=r.contentProp,s=void 0===c?"content":c,f=r.id,d=nr(e,t),l=null!=f?f:d,p=ar(e,t,s,l),b=Object(o.a)(p,2),v=b[0],y=b[1],O=Object(u.useDispatch)("core"),E=O.editEntityRecord;Object(Xt.useEffect)((function(){n&&E(e,t,l,n,{undoIgnore:!0})}),[l]);var h=Object(Xt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Jt.parse)(v);return e.length?e:[]}return[]}),[v]),g=ar(e,t,i,l),m=Object(o.a)(g,2),j=m[0],w=void 0===j?h:j,_=m[1],R=Object(Xt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(Jt.serialize)(t)}))}),[_,y]);return[w,_,R]}function cr(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 ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=se.reduce((function(e,t){var r=t.kind,n=t.name;return e[pe(r,n)]=function(e,t){return Ke(e,r,n,t)},e[pe(r,n,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),c=1;c<t;c++)i[c-1]=arguments[c];return Xe.apply(a,[e,r,n].concat(i))},e}),{}),sr=se.reduce((function(e,t){var r=t.kind,n=t.name;e[pe(r,n)]=function(e){return qt(r,n,e)};var a=pe(r,n,"get",!0);return e[a]=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ft.apply(i,[r,n].concat(t))},e[a].shouldInvalidate=function(e){for(var t,a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return(t=Ft).shouldInvalidate.apply(t,[e,r,n].concat(i))},e}),{}),fr=se.reduce((function(e,t){var r=t.kind,n=t.name;return e[pe(r,n,"save")]=function(e){return ee(r,n,e)},e[pe(r,n,"delete")]=function(e,t){return z(r,n,e,t)},e}),{});Object(u.registerStore)("core",{reducer:Pe,controls:D,actions:ur({},n,{},fr),selectors:ur({},a,{},or),resolvers:ur({},i,{},sr)})},44:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function c(){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={},a="undefined"!=typeof WeakMap,t.a=function(e,t){var r,o;function s(){r=a?new WeakMap:c()}function f(){var r,n,a,i,c,s=arguments.length;for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];for(c=t.apply(null,i),(r=o(c)).isUniqueByDependants||(r.lastDependants&&!u(c,r.lastDependants,0)&&r.clear(),r.lastDependants=c),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),o=a?function(e){var t,a,i,u,o,s=r,f=!0;for(t=0;t<e.length;t++){if(a=e[t],!(o=a)||"object"!=typeof o){f=!1;break}s.has(a)?s=s.get(a):(i=new WeakMap,s.set(a,i),s=i)}return s.has(n)||((u=c()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},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}))},68:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()}});
1
+ this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));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=412)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},106: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 a(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,a=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),c=Array.isArray(t)?n:a,u=0;u<i.length;u++){var o=i[u];if(void 0===(c=c.get(o)))return;var s=t[o];if(void 0===(c=c.get(s)))return}var f=c.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,c.set("_ekm_value",f),r.set(t,f),f):void 0}var c=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,c;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 a=Object.keys(t).sort(),i=[t,r],c=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var o=a[u];c.has(o)||c.set(o,new e),c=c.get(o);var s=t[o];c.has(s)||c.set(s,new e),c=c.get(s)}var f=c.get("_ekm_value");return f&&this._map.delete(f[0]),c.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(a,i){null!==i&&"object"===n(i)&&(a=a[1]),e.call(r,a,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}}])&&a(t.prototype,r),c&&a(t,c),e}();e.exports=c},11:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(37);var a=r(29),i=r(38);function c(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw i}}return r}}(e,t)||Object(a.a)(e,t)||Object(i.a)()}},12:function(e,t){!function(){e.exports=this.wp.blocks}()},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var a=r(35),i=r(29);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},28:function(e,t){!function(){e.exports=this.wp.url}()},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},34:function(e,t){!function(){e.exports=this.wp.dataControls}()},35:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},36:function(e,t){!function(){e.exports=this.wp.apiFetch}()},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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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.deprecated}()},412:function(e,t,r){"use strict";r.r(t),r.d(t,"EntityProvider",(function(){return rr})),r.d(t,"useEntityId",(function(){return nr})),r.d(t,"useEntityProp",(function(){return ar})),r.d(t,"useEntityBlockEditor",(function(){return ir}));var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return B})),r.d(n,"receiveCurrentUser",(function(){return F})),r.d(n,"addEntities",(function(){return H})),r.d(n,"receiveEntityRecords",(function(){return Q})),r.d(n,"receiveCurrentTheme",(function(){return W})),r.d(n,"receiveThemeSupports",(function(){return K})),r.d(n,"receiveEmbedPreview",(function(){return G})),r.d(n,"deleteEntityRecord",(function(){return z})),r.d(n,"editEntityRecord",(function(){return $})),r.d(n,"undo",(function(){return X})),r.d(n,"redo",(function(){return J})),r.d(n,"__unstableCreateUndoLevel",(function(){return Z})),r.d(n,"saveEntityRecord",(function(){return ee})),r.d(n,"saveEditedEntityRecord",(function(){return te})),r.d(n,"receiveUploadPermissions",(function(){return re})),r.d(n,"receiveUserPermission",(function(){return ne})),r.d(n,"receiveAutosaves",(function(){return ae}));var a={};r.r(a),r.d(a,"isRequestingEmbedPreview",(function(){return Ye})),r.d(a,"getAuthors",(function(){return Be})),r.d(a,"getCurrentUser",(function(){return Fe})),r.d(a,"getUserQueryResults",(function(){return He})),r.d(a,"getEntitiesByKind",(function(){return Qe})),r.d(a,"getEntity",(function(){return We})),r.d(a,"getEntityRecord",(function(){return Ke})),r.d(a,"__experimentalGetEntityRecordNoResolver",(function(){return Ge})),r.d(a,"getRawEntityRecord",(function(){return ze})),r.d(a,"hasEntityRecords",(function(){return $e})),r.d(a,"getEntityRecords",(function(){return Xe})),r.d(a,"__experimentalGetDirtyEntityRecords",(function(){return Je})),r.d(a,"getEntityRecordEdits",(function(){return Ze})),r.d(a,"getEntityRecordNonTransientEdits",(function(){return et})),r.d(a,"hasEditsForEntityRecord",(function(){return tt})),r.d(a,"getEditedEntityRecord",(function(){return rt})),r.d(a,"isAutosavingEntityRecord",(function(){return nt})),r.d(a,"isSavingEntityRecord",(function(){return at})),r.d(a,"isDeletingEntityRecord",(function(){return it})),r.d(a,"getLastEntitySaveError",(function(){return ct})),r.d(a,"getLastEntityDeleteError",(function(){return ut})),r.d(a,"getUndoEdit",(function(){return st})),r.d(a,"getRedoEdit",(function(){return ft})),r.d(a,"hasUndo",(function(){return dt})),r.d(a,"hasRedo",(function(){return lt})),r.d(a,"getCurrentTheme",(function(){return pt})),r.d(a,"getThemeSupports",(function(){return bt})),r.d(a,"getEmbedPreview",(function(){return vt})),r.d(a,"isPreviewEmbedFallback",(function(){return yt})),r.d(a,"hasUploadPermissions",(function(){return Ot})),r.d(a,"canUser",(function(){return Et})),r.d(a,"getAutosaves",(function(){return ht})),r.d(a,"getAutosave",(function(){return gt})),r.d(a,"hasFetchedAutosaves",(function(){return mt})),r.d(a,"getReferenceByDistinctEdits",(function(){return jt}));var i={};r.r(i),r.d(i,"getAuthors",(function(){return Vt})),r.d(i,"getCurrentUser",(function(){return Lt})),r.d(i,"getEntityRecord",(function(){return qt})),r.d(i,"getRawEntityRecord",(function(){return Yt})),r.d(i,"getEditedEntityRecord",(function(){return Bt})),r.d(i,"getEntityRecords",(function(){return Ft})),r.d(i,"getCurrentTheme",(function(){return Ht})),r.d(i,"getThemeSupports",(function(){return Qt})),r.d(i,"getEmbedPreview",(function(){return Wt})),r.d(i,"hasUploadPermissions",(function(){return Kt})),r.d(i,"canUser",(function(){return Gt})),r.d(i,"getAutosaves",(function(){return zt})),r.d(i,"getAutosave",(function(){return $t}));var c=r(5),u=r(4),o=r(11),s=r(17),f=r(2),d=r(68),l=r.n(d),p=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},b=function(e){return function(t){return function(r,n){return t(r,e(n))}}};function v(e,t){if(!e)return t;var r=!1,n={};for(var a in t)Object(f.isEqual)(e[a],t[a])?n[a]=e[a]:(r=!0,n[a]=t[a]);if(!r)return e;for(var i in e)n.hasOwnProperty(i)||(n[i]=e[i]);return n}function y(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 O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E=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,a=n[e];if(void 0===a)return r;var i=t(r[a],n);return i===r[a]?r:O({},r,Object(c.a)({},a,i))}}},h=r(20),g=r.n(h),m=r(1),j=r(28);function w(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e){return{type:"RECEIVE_ITEMS",items:Object(f.castArray)(e)}}function k(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(f.castArray)(r),kind:e,name:t,invalidateCache:n}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _({},R(e),{query:t})}var T=r(36),I=r.n(T);function P(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}}function A(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 D={API_FETCH:function(e){var t=e.request;return I()(t)},SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(a))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,a=t.args;return(r=e.__experimentalResolveSelect("core"))[n].apply(r,Object(s.a)(a))}}))},C=g.a.mark(z),U=g.a.mark($),M=g.a.mark(X),N=g.a.mark(J),V=g.a.mark(ee),L=g.a.mark(te);function q(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 Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(f.castArray)(t),queryID:e}}function F(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function H(e){return{type:"ADD_ENTITIES",entities:e}}function Q(e,t,r,n){var a=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?Y({},e,{title:""}):e}))),Y({},n?x(r,n):R(r),{kind:e,name:t,invalidateCache:a})}function W(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function K(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function G(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function z(e,t,r,n){var a,i,c,u,o;return g.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,be(e);case 2:if(a=s.sent,i=Object(f.find)(a,{kind:e,name:t}),u=!1,i){s.next=7;break}return s.abrupt("return");case 7:return s.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return s.prev=9,o="".concat(i.baseURL,"/").concat(r),n&&(o=Object(j.addQueryArgs)(o,n)),s.next=14,P({path:o,method:"DELETE"});case 14:return u=s.sent,s.next=17,k(e,t,r,!0);case 17:s.next=22;break;case 19:s.prev=19,s.t0=s.catch(9),c=s.t0;case 22:return s.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:c};case 24:return s.abrupt("return",u);case 25:case"end":return s.stop()}}),C,null,[[9,19]])}function $(e,t,r,n){var a,i,c,u,o,s,d,l,p,b=arguments;return g.a.wrap((function(v){for(;;)switch(v.prev=v.next){case 0:return a=b.length>4&&void 0!==b[4]?b[4]:{},v.next=3,S("getEntity",e,t);case 3:if(i=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 c=i.transientEdits,u=void 0===c?{}:c,o=i.mergedEdits,s=void 0===o?{}:o,v.next=9,S("getRawEntityRecord",e,t,r);case 9:return d=v.sent,v.next=12,S("getEditedEntityRecord",e,t,r);case 12:return l=v.sent,p={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=d[t],a=l[t],i=s[t]?Y({},a,{},n[t]):n[t];return e[t]=Object(f.isEqual)(r,i)?void 0:i,e}),{}),transientEdits:u},v.abrupt("return",Y({type:"EDIT_ENTITY_RECORD"},p,{meta:{undo:!a.undoIgnore&&Y({},p,{edits:Object.keys(n).reduce((function(e,t){return e[t]=l[t],e}),{})})}}));case 15:case"end":return v.stop()}}),U)}function X(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Y({type:"EDIT_ENTITY_RECORD"},e,{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),M)}function J(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S("getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,Y({type:"EDIT_ENTITY_RECORD"},e,{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),N)}function Z(){return{type:"CREATE_UNDO_LEVEL"}}function ee(e,t,r){var n,a,i,u,s,d,l,p,b,v,y,O,E,h,m,j,w,_,R,k,x,T,I,A,D,C=arguments;return g.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return n=C.length>3&&void 0!==C[3]?C[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,g.next=3,be(e);case 3:if(u=g.sent,s=Object(f.find)(u,{kind:e,name:t})){g.next=7;break}return g.abrupt("return");case 7:d=s.key||oe,l=r[d],p=0,b=Object.entries(r);case 10:if(!(p<b.length)){g.next=24;break}if(v=Object(o.a)(b[p],2),y=v[0],"function"!=typeof(O=v[1])){g.next=21;break}return g.t0=O,g.next=16,S("getEditedEntityRecord",e,t,l);case 16:return g.t1=g.sent,E=(0,g.t0)(g.t1),g.next=20,$(e,t,l,Object(c.a)({},y,E),{undoIgnore:!0});case 20:r[y]=E;case 21:p++,g.next=10;break;case 24:return g.next=26,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:l,isAutosave:i};case 26:return g.prev=26,_="".concat(s.baseURL).concat(l?"/"+l:""),g.next=30,S("getRawEntityRecord",e,t,l);case 30:if(R=g.sent,!i){g.next=55;break}return g.next=34,S("getCurrentUser");case 34:return k=g.sent,x=k?k.id:void 0,g.next=38,S("getAutosave",R.type,R.id,x);case 38:return T=g.sent,I=Y({},R,{},T,{},r),I=Object.keys(I).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(f.get)(I[t],"raw",I[t])),e}),{status:"auto-draft"===I.status?"draft":I.status}),g.next=43,P({path:"".concat(_,"/autosaves"),method:"POST",data:I});case 43:if(h=g.sent,R.id!==h.id){g.next=51;break}return A=Y({},R,{},I,{},h),A=Object.keys(A).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(f.get)(A[t],"raw",A[t]):e[t]="status"===t?"auto-draft"===R.status&&"draft"===A.status?A.status:R.status:Object(f.get)(R[t],"raw",R[t]),e}),{}),g.next=49,Q(e,t,A,void 0,!0);case 49:g.next=53;break;case 51:return g.next=53,ae(R.id,h);case 53:g.next=70;break;case 55:return D=r,"postType"===e&&R&&"auto-draft"===R.status&&(D.status||(D=Y({},D,{status:"draft"})),D.title&&"Auto Draft"!==D.title||(D=Y({},D,{title:""}))),g.next=59,S("__experimentalGetEntityRecordNoResolver",e,t,l);case 59:return j=g.sent,g.next=62,S("getEntityRecordEdits",e,t,l);case 62:return w=g.sent,g.next=65,Q(e,t,Y({},j,{},D),void 0,!0);case 65:return g.next=67,P({path:_,method:l?"PUT":"POST",data:D});case 67:return h=g.sent,g.next=70,Q(e,t,h,void 0,!0);case 70:g.next=93;break;case 72:if(g.prev=72,g.t2=g.catch(26),m=g.t2,!j||!w){g.next=93;break}return g.next=78,Q(e,t,j,void 0,!0);case 78:return g.t3=$,g.t4=e,g.t5=t,g.t6=l,g.t7=Y,g.t8={},g.t9=w,g.t10={},g.next=88,S("getEntityRecordEdits",e,t,l);case 88:return g.t11=g.sent,g.t12=(0,g.t7)(g.t8,g.t9,g.t10,g.t11),g.t13={undoIgnore:!0},g.next=93,(0,g.t3)(g.t4,g.t5,g.t6,g.t12,g.t13);case 93:return g.next=95,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:l,error:m,isAutosave:i};case 95:return g.abrupt("return",h);case 96:case"end":return g.stop()}}),V,null,[[26,72]])}function te(e,t,r,n){var a,i;return g.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,S("hasEditsForEntityRecord",e,t,r);case 2:if(c.sent){c.next=4;break}return c.abrupt("return");case 4:return c.next=6,S("getEntityRecordNonTransientEdits",e,t,r);case 6:return a=c.sent,i=Y({id:r},a),c.delegateYield(ee(e,t,i,n),"t0",9);case 9:case"end":return c.stop()}}),L)}function re(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function ne(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ae(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(f.castArray)(t)}}var ie=g.a.mark(de),ce=g.a.mark(le),ue=g.a.mark(be),oe="id",se=[{label:Object(m.__)("Base"),name:"__unstableBase",kind:"root",baseURL:""},{label:Object(m.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:function(e){return Object(f.get)(e,["title"],Object(m.__)("Site Title"))}},{label:Object(m.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems",label:Object(m.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies",label:Object(m.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/__experimental/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:Object(m.__)("Widget areas")},{label:Object(m.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",plural:"comments",label:Object(m.__)("Comment")},{name:"menu",kind:"root",baseURL:"/__experimental/menus",plural:"menus",label:Object(m.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/__experimental/menu-items",plural:"menuItems",label:Object(m.__)("Menu Item")},{name:"menuLocation",kind:"root",baseURL:"/__experimental/menu-locations",plural:"menuLocations",label:Object(m.__)("Menu Location"),key:"name"}],fe=[{name:"postType",loadEntities:de},{name:"taxonomy",loadEntities:le}];function de(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name,transientEdits:{blocks:!0,selectionStart:!0,selectionEnd:!0},mergedEdits:{meta:!0},getTitle:function(e){return"wp_template_part"===t||"wp_template"===t?Object(f.startCase)(e.slug):Object(f.get)(e,["title","rendered"],e.id)}}})));case 4:case"end":return t.stop()}}),ie)}function le(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({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,label:e.labels.singular_name}})));case 4:case"end":return t.stop()}}),ce)}var pe=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],a=Object(f.find)(se,{kind:e,name:t}),i="root"===e?"":Object(f.upperFirst)(Object(f.camelCase)(e)),c=Object(f.upperFirst)(Object(f.camelCase)(t))+(n?"s":""),u=n&&a.plural?Object(f.upperFirst)(Object(f.camelCase)(a.plural)):c;return"".concat(r).concat(i).concat(u)};function be(e){var t,r;return g.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(f.find)(fe,{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)}var ve=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ye=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(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n<r.length;n++){var a=r[n],i=e[a];switch(a){case"page":t[a]=Number(i);break;case"per_page":t.perPage=Number(i);break;case"include":t.include=ve(i).map(Number);break;case"_fields":t.fields=ve(i);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(j.addQueryArgs)("",Object(c.a)({},a,i)).slice(1)}}return t}));function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r,n){if(1===r&&-1===n)return t;for(var a=(r-1)*n,i=Math.max(e.length,a+t.length),c=new Array(i),u=0;u<i;u++){var o=u>=a&&u<a+t.length;c[u]=o?t[u-a]:e[u]}return c}var ge=Object(f.flowRight)([p((function(e){return"query"in e})),b((function(e){return e.query?Ee({},e,{},ye(e.query)):e})),E("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,a=t.perPage,i=t.key,c=void 0===i?oe:i;return"RECEIVE_ITEMS"!==r?e:he(e||[],Object(f.map)(t.items,c),n,a)})),me=Object(u.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||oe;return Ee({},e,{},t.items.reduce((function(t,n){var a=n[r];return t[a]=v(e[a],n),t}),{}));case"REMOVE_ITEMS":var n=Object(f.omit)(e,t.itemIds);return n}return e},itemIsComplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.query,a=t.key,i=void 0===a?oe:a;if("RECEIVE_ITEMS"!==r)return e;var c=!n||!Array.isArray(ye(n).fields);return Ee({},e,{},t.items.reduce((function(t,r){var n=r[i];return t[n]=e[n]||c,t}),{}))},queries: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 ge(e,t);case"REMOVE_ITEMS":var r=Ee({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(f.forEach)(r,(function(e,t){r[t]=Object(f.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function je(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return we(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _e(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 Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e){return Object(f.flowRight)([p((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),b((function(t){return Re({},t,{key:e.key||oe})}))])(Object(u.combineReducers)({queriedData:me,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,n=Re({},e),a=je(t.items);try{var i=function(){var e=r.value,a=e[t.key],i=n[a];if(!i)return"continue";var c=Object.keys(i).reduce((function(t,r){return Object(f.isEqual)(i[r],Object(f.get)(e[r],"raw",e[r]))||(t[r]=i[r]),t}),{});Object.keys(c).length?n[a]=c:delete n[a]};for(a.s();!(r=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}return n;case"EDIT_ENTITY_RECORD":var u=Re({},e[t.recordId],{},t.edits);return Object.keys(u).forEach((function(e){void 0===u[e]&&delete u[e]})),Re({},e,Object(c.a)({},t.recordId,u))}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 Re({},e,Object(c.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return Re({},e,Object(c.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,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 Te,Ie=[];Ie.offset=0;var Pe=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 Re({},e,Object(c.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:Re({},e.byId,{},Object(f.keyBy)(t.users,"id")),queries:Re({},e.queries,Object(c.a)({},t.queryID,Object(f.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}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},themes: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_THEME":return Re({},e,Object(c.a)({},t.currentTheme.stylesheet,t.currentTheme))}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 Re({},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=xe(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(f.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(o.a)(t,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(e,t){return Re({},e,Object(c.a)({},t.name,ke(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}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,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,a=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=Te:a||(Te=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:Re({},t,{edits:Re({},Te&&Te.edits,{},t.edits)})),a){if((r=Object(s.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=Te}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=Re({},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:Re({},e.flattenedUndo,{},t.meta.undo.edits)});var i=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),c=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return l()(i,c)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?Re({},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 Re({},e,Object(c.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 Re({},e,Object(c.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 Re({},e,Object(c.a)({},r,n))}return e}}),Se=r(44),Ae=r(40),De=r.n(Ae),Ce=r(106),Ue=r.n(Ce),Me=new WeakMap;function Ne(e,t){var r,n=ye(t),a=n.stableKey,i=n.page,c=n.perPage,u=n.include,o=n.fields;if(Array.isArray(u)&&!a?r=u:e.queries[a]&&(r=e.queries[a]),!r)return null;for(var s=-1===c?0:(i-1)*c,f=-1===c?r.length:Math.min(s+c,r.length),d=[],l=s;l<f;l++){var p=r[l];if(!Array.isArray(u)||u.includes(p)){if(!e.items.hasOwnProperty(p))return null;var b=e.items[p],v=void 0;if(Array.isArray(o)){v={};for(var y=0;y<o.length;y++){var O=o[y];if(!b.hasOwnProperty(O))return null;v[O]=b[O]}}else{if(!e.itemIsComplete[p])return null;v=b}d.push(v)}}return d}var Ve=Object(Se.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Me.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ue.a,Me.set(e,r);var a=Ne(e,t);return r.set(t,a),a}));function Le(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 qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ye=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function Be(e){return He(e,"authors")}function Fe(e){return e.currentUser}var He=Object(Se.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 Qe(e,t){return Object(f.filter)(e.entities.config,{kind:t})}function We(e,t,r){return Object(f.find)(e.entities.config,{kind:t,name:r})}function Ke(e,t,r,n,a){var i=Object(f.get)(e.entities.data,[t,r,"queriedData"]);if(i){if(void 0===a){if(!i.itemIsComplete[n])return;return i.items[n]}return a=qe({},a,{include:[n]}),Object(f.first)(Ve(i,a))}}function Ge(e,t,r,n){return Ke(e,t,r,n)}var ze=Object(Se.a)((function(e,t,r,n){var a=Ke(e,t,r,n);return a&&Object.keys(a).reduce((function(e,t){return e[t]=Object(f.get)(a[t],"raw",a[t]),e}),{})}),(function(e){return[e.entities.data]}));function $e(e,t,r,n){return Array.isArray(Xe(e,t,r,n))}function Xe(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"queriedData"]);return a?Ve(a,n):[]}var Je=Object(Se.a)((function(e){var t=e.entities.data,r=[];return Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(a){var i=Object.keys(t[n][a].edits).filter((function(t){return tt(e,n,a,t)}));if(i.length){var c=We(e,n,a);i.forEach((function(t){var i=rt(e,n,a,t);r.push({key:i[c.key||oe],title:c.getTitle?c.getTitle(i):"",name:a,kind:n})}))}}))})),r}),(function(e){return[e.entities.data]}));function Ze(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"edits",n])}var et=Object(Se.a)((function(e,t,r,n){var a=(We(e,t,r)||{}).transientEdits,i=Ze(e,t,r,n)||{};return a?Object.keys(i).reduce((function(e,t){return a[t]||(e[t]=i[t]),e}),{}):i}),(function(e){return[e.entities.config,e.entities.data]}));function tt(e,t,r,n){return at(e,t,r,n)||Object.keys(et(e,t,r,n)).length>0}var rt=Object(Se.a)((function(e,t,r,n){return qe({},ze(e,t,r,n),{},Ze(e,t,r,n))}),(function(e){return[e.entities.data]}));function nt(e,t,r,n){var a=Object(f.get)(e.entities.data,[t,r,"saving",n],{}),i=a.pending,c=a.isAutosave;return Boolean(i&&c)}function at(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function it(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function ct(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"saving",n,"error"])}function ut(e,t,r,n){return Object(f.get)(e.entities.data,[t,r,"deleting",n,"error"])}function ot(e){return e.undo.offset}function st(e){return e.undo[e.undo.length-2+ot(e)]}function ft(e){return e.undo[e.undo.length+ot(e)]}function dt(e){return Boolean(st(e))}function lt(e){return Boolean(ft(e))}function pt(e){return e.themes[e.currentTheme]}function bt(e){return e.themeSupports}function vt(e,t){return e.embedPreviews[t]}function yt(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function Ot(e){return De()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(f.defaultTo)(Et(e,"create","media"),!0)}function Et(e,t,r,n){var a=Object(f.compact)([t,r,n]).join("/");return Object(f.get)(e,["userPermissions",a])}function ht(e,t,r){return e.autosaves[r]}function gt(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(f.find)(a,{author:n})}}var mt=Object(u.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),jt=Object(Se.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),wt=r(34),_t=function(e,t){return g.a.mark((function r(){var n,a,i,c=arguments;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=c.length,a=new Array(n),i=0;i<n;i++)a[i]=c[i];return r.next=3,Object(wt.select)("core","hasStartedResolution",t,a);case 3:if(r.sent){r.next=6;break}return r.delegateYield(e.apply(void 0,a),"t0",6);case 6:case"end":return r.stop()}}),r)}))};function Rt(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 kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt=g.a.mark(Vt),Tt=g.a.mark(Lt),It=g.a.mark(qt),Pt=g.a.mark(Ft),St=g.a.mark(Ht),At=g.a.mark(Qt),Dt=g.a.mark(Wt),Ct=g.a.mark(Kt),Ut=g.a.mark(Gt),Mt=g.a.mark(zt),Nt=g.a.mark($t);function Vt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,B("authors",e);case 5:case"end":return t.stop()}}),xt)}function Lt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,F(e);case 5:case"end":return t.stop()}}),Tt)}function qt(e,t){var r,n,a,i,c,u,o=arguments;return g.a.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:"",n=o.length>3?o[3]:void 0,d.next=4,be(e);case 4:if(a=d.sent,i=Object(f.find)(a,{kind:e,name:t})){d.next=8;break}return d.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=kt({},n,{_fields:Object(f.uniq)([].concat(Object(s.a)(ve(n._fields)||[]),[i.key||oe])).join()})),c=Object(j.addQueryArgs)(i.baseURL+"/"+r,kt({},n,{context:"edit"})),void 0===n){d.next=17;break}return n=kt({},n,{include:[r]}),d.next=14,S("hasEntityRecords",e,t,n);case 14:if(!d.sent){d.next=17;break}return d.abrupt("return");case 17:return d.next=19,P({path:c});case 19:return u=d.sent,d.next=22,Q(e,t,u,n);case 22:case"end":return d.stop()}}),It)}var Yt=_t(qt,"getEntityRecord"),Bt=_t(Yt,"getRawEntityRecord");function Ft(e,t){var r,n,a,i,c,u=arguments;return g.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},o.next=3,be(e);case 3:if(n=o.sent,a=Object(f.find)(n,{kind:e,name:t})){o.next=7;break}return o.abrupt("return");case 7:return r._fields&&(r=kt({},r,{_fields:Object(f.uniq)([].concat(Object(s.a)(ve(r._fields)||[]),[a.key||oe])).join()})),i=Object(j.addQueryArgs)(a.baseURL,kt({},r,{context:"edit"})),o.t0=Object,o.next=12,P({path:i});case 12:return o.t1=o.sent,c=o.t0.values.call(o.t0,o.t1),r._fields&&(c=c.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),o.next=17,Q(e,t,c,r);case 17:case"end":return o.stop()}}),Pt)}function Ht(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,W(e[0]);case 5:case"end":return t.stop()}}),St)}function Qt(){var e;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,K(e[0].theme_supports);case 5:case"end":return t.stop()}}),At)}function Wt(e){var t;return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,P({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,G(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,G(e,!1);case 12:case"end":return r.stop()}}),Dt,null,[[0,8]])}function Kt(){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return De()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Gt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Ct)}function Gt(e,t,r){var n,a,i,c,u,o;return g.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 a=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,P({path:a,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 c=Object(f.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(f.get)(i,["headers","Allow"],""),u=Object(f.compact)([e,t,r]).join("/"),o=Object(f.includes)(c,n),s.next=19,ne(u,o);case 19:case"end":return s.stop()}}),Ut,null,[[5,11]])}function zt(e,t){var r,n,a;return g.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,A("getPostType",e);case 2:return r=i.sent,n=r.rest_base,i.next=6,P({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,ae(t,a);case 10:case"end":return i.stop()}}),Mt)}function $t(e,t){return g.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,A("getAutosaves",e,t);case 2:case"end":return r.stop()}}),Nt)}Ft.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Xt=r(0),Jt=r(12);function Zt(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 er=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},se.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Xt.createContext)()},e}),{}),{},fe.reduce((function(e,t){return e[t.name]={},e}),{})),tr=function(e,t){if(!er[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return er[e][t]||(er[e][t]={context:Object(Xt.createContext)()}),er[e][t]};function rr(e){var t=e.kind,r=e.type,n=e.id,a=e.children,i=tr(t,r).context.Provider;return Object(Xt.createElement)(i,{value:n},a)}function nr(e,t){return Object(Xt.useContext)(tr(e,t).context)}function ar(e,t,r,n){var a=nr(e,t),i=null!=n?n:a,o=Object(u.useSelect)((function(n){var a=n("core"),c=a.getEntityRecord,u=a.getEditedEntityRecord,o=c(e,t,i),s=u(e,t,i);return o&&s?{value:s[r],fullValue:o[r]}:{}}),[e,t,i,r]),s=o.value,f=o.fullValue,d=Object(u.useDispatch)("core").editEntityRecord;return[s,Object(Xt.useCallback)((function(n){d(e,t,i,Object(c.a)({},r,n))}),[e,t,i,r]),f]}function ir(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,a=r.blocksProp,i=void 0===a?"blocks":a,c=r.contentProp,s=void 0===c?"content":c,f=r.id,d=nr(e,t),l=null!=f?f:d,p=ar(e,t,s,l),b=Object(o.a)(p,2),v=b[0],y=b[1],O=Object(u.useDispatch)("core"),E=O.editEntityRecord;Object(Xt.useEffect)((function(){n&&E(e,t,l,n,{undoIgnore:!0})}),[l]);var h=Object(Xt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Jt.parse)(v);return e.length?e:[]}return[]}),[v]),g=ar(e,t,i,l),m=Object(o.a)(g,2),j=m[0],w=void 0===j?h:j,_=m[1],R=Object(Xt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(Jt.serialize)(t)}))}),[_,y]);return[w,_,R]}function cr(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 ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var or=se.reduce((function(e,t){var r=t.kind,n=t.name;return e[pe(r,n)]=function(e,t){return Ke(e,r,n,t)},e[pe(r,n,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),c=1;c<t;c++)i[c-1]=arguments[c];return Xe.apply(a,[e,r,n].concat(i))},e}),{}),sr=se.reduce((function(e,t){var r=t.kind,n=t.name;e[pe(r,n)]=function(e){return qt(r,n,e)};var a=pe(r,n,"get",!0);return e[a]=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ft.apply(i,[r,n].concat(t))},e[a].shouldInvalidate=function(e){for(var t,a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return(t=Ft).shouldInvalidate.apply(t,[e,r,n].concat(i))},e}),{}),fr=se.reduce((function(e,t){var r=t.kind,n=t.name;return e[pe(r,n,"save")]=function(e){return ee(r,n,e)},e[pe(r,n,"delete")]=function(e,t){return z(r,n,e,t)},e}),{});Object(u.registerStore)("core",{reducer:Pe,controls:D,actions:ur({},n,{},fr),selectors:ur({},a,{},or),resolvers:ur({},i,{},sr)})},44:function(e,t,r){"use strict";var n,a;function i(e){return[e]}function c(){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={},a="undefined"!=typeof WeakMap,t.a=function(e,t){var r,o;function s(){r=a?new WeakMap:c()}function f(){var r,n,a,i,c,s=arguments.length;for(i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];for(c=t.apply(null,i),(r=o(c)).isUniqueByDependants||(r.lastDependants&&!u(c,r.lastDependants,0)&&r.clear(),r.lastDependants=c),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),o=a?function(e){var t,a,i,u,o,s=r,f=!0;for(t=0;t<e.length;t++){if(a=e[t],!(o=a)||"object"!=typeof o){f=!1;break}s.has(a)?s=s.get(a):(i=new WeakMap,s.set(a,i),s=i)}return s.has(n)||((u=c()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},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}))},68:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()}});
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 8.9.0 =
4
 
5
  ### Features
1
  == Changelog ==
2
 
3
+ = 8.9.1 =
4
+
5
+ ### Bug Fixes
6
+
7
+
8
  = 8.9.0 =
9
 
10
  ### Features
gutenberg.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.3
7
  * Requires PHP: 5.6
8
- * Version: 8.9.0
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '8.9.0' );
17
- define( 'GUTENBERG_GIT_COMMIT', '744e376d4862ad84bec342f93dd1b01f9a2d2986' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.3
7
  * Requires PHP: 5.6
8
+ * Version: 8.9.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '8.9.1' );
17
+ define( 'GUTENBERG_GIT_COMMIT', 'bb17d4a3a1f35e51fc60b6619c14e7165357c630' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: matveb, joen, karmatosed
3
  Requires at least: 5.4.0
4
  Tested up to: 5.5
5
  Requires PHP: 5.6
6
- Stable tag: 8.8.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -57,4 +57,4 @@ View <a href="https://developer.wordpress.org/block-editor/principles/versions-i
57
 
58
  == Changelog ==
59
 
60
- To read the changelog for Gutenberg 8.9.0, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v8.9.0">release page</a>.
3
  Requires at least: 5.4.0
4
  Tested up to: 5.5
5
  Requires PHP: 5.6
6
+ Stable tag: 8.9.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
57
 
58
  == Changelog ==
59
 
60
+ To read the changelog for Gutenberg 8.9.1, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v8.9.1">release page</a>.