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