this.wp=this.wp||{},this.wp.coreData=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=387)}({10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},17:function(t,e,r){"use strict";var n=r(30);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=n[t];if(void 0===a)return r;var i=e(r[a],n);return i===r[a]?r:Object(o.a)({},r,Object(f.a)({},a,i))}}},y=function(t){return function(e){return function(r,n){return e(r,t(n))}}};var b=function(t){var e=new WeakMap;return function(r){var n;return e.has(r)?n=e.get(r):(n=t(r),Object(d.isObjectLike)(r)&&e.set(r,n)),n}};function g(t){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(t)}}var E=r(36),m=r(79),O=r.n(m),j=r(26);var w=b((function(t){for(var e={stableKey:"",page:1,perPage:10},r=Object.keys(t).sort(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=x.get(t);if(r){var n=r.get(e);if(void 0!==n)return n}else r=new O.a,x.set(t,r);var a=R(t,e);return r.set(e,a),a})),_=r(20),T=r.n(_),I=r(32),S=r.n(I);function A(t){return{type:"API_FETCH",request:t}}function U(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n4&&void 0!==arguments[4]&&arguments[4];return"postType"===t&&(r=Object(d.castArray)(r).map((function(t){return"auto-draft"===t.status?Object(o.a)({},t,{title:""}):t}))),a=n?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},g(t),{query:e})}(r,n):g(r),Object(o.a)({},a,{kind:t,name:e,invalidateCache:i})}function G(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function K(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function Q(t,e,r,n){var a,i,u,c,s,f,l,p,v,h=arguments;return T.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=h.length>4&&void 0!==h[4]?h[4]:{},y.next=3,U("getEntity",t,e);case 3:return i=y.sent,u=i.transientEdits,c=void 0===u?{}:u,s=i.mergedEdits,f=void 0===s?{}:s,y.next=10,U("getRawEntityRecord",t,e,r);case 10:return l=y.sent,y.next=13,U("getEditedEntityRecord",t,e,r);case 13:return p=y.sent,v={kind:t,name:e,recordId:r,edits:Object.keys(n).reduce((function(t,e){var r=l[e],a=p[e],i=f[e]?Object(d.merge)({},a,n[e]):n[e];return t[e]=Object(d.isEqual)(r,i)?void 0:i,t}),{}),transientEdits:c},y.abrupt("return",Object(o.a)({type:"EDIT_ENTITY_RECORD"},v,{meta:{undo:!a.undoIgnore&&Object(o.a)({},v,{edits:Object.keys(n).reduce((function(t,e){return t[e]=p[e],t}),{})})}}));case 16:case"end":return y.stop()}}),L)}function W(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getUndoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isUndo:!0}});case 7:case"end":return e.stop()}}),D)}function H(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getRedoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(o.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isRedo:!0}});case 7:case"end":return e.stop()}}),N)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(t,e,r){var n,a,i,u,c,s,f,l,p,v,h,y,b,g,E,m,O,j,w,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return n=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=n.isAutosave,i=void 0!==a&&a,R.next=3,ft(t);case 3:if(u=R.sent,c=Object(d.find)(u,{kind:t,name:e})){R.next=7;break}return R.abrupt("return");case 7:return s=c.key||at,f=r[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:t,name:e,recordId:f,isAutosave:i};case 11:return R.prev=11,y="".concat(c.baseURL).concat(f?"/"+f:""),R.next=15,U("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!i){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,U("getAutosave",b.type,b.id,E);case 23:return m=R.sent,O=Object(o.a)({},b,m,r),O=Object.keys(O).reduce((function(t,e){return["title","excerpt","content"].includes(e)&&(t[e]=Object(d.get)(O[e],"raw",O[e])),t}),{status:"auto-draft"===O.status?"draft":O.status}),R.next=28,A({path:"".concat(y,"/autosaves"),method:"POST",data:O});case 28:if(l=R.sent,b.id!==l.id){R.next=36;break}return j=Object(o.a)({},b,O,l),j=Object.keys(j).reduce((function(t,e){return["title","excerpt","content"].includes(e)?t[e]=Object(d.get)(j[e],"raw",j[e]):t[e]="status"===e?"auto-draft"===b.status&&"draft"===j.status?j.status:b.status:Object(d.get)(b[e],"raw",b[e]),t}),{}),R.next=34,B(t,e,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,tt(b.id,l);case 38:R.next=55;break;case 40:return w=r,"postType"===t&&b&&"auto-draft"===b.status&&(w.status||(w=Object(o.a)({},w,{status:"draft"})),w.title&&"Auto Draft"!==w.title||(w=Object(o.a)({},w,{title:""}))),R.next=44,U("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,U("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,B(t,e,Object(o.a)({},v,w),void 0,!0);case 50:return R.next=52,A({path:y,method:f?"PUT":"POST",data:w});case 52:return l=R.sent,R.next=55,B(t,e,l,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),p=R.t0,!v||!h){R.next=77;break}return R.next=63,B(t,e,v,void 0,!0);case 63:return R.t1=Q,R.t2=t,R.t3=e,R.t4=f,R.t5=o.a,R.t6={},R.t7=h,R.next=72,U("getEntityRecordEdits",t,e,f);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:t,name:e,recordId:f,error:p,isAutosave:i};case 79:return R.abrupt("return",l);case 80:case"end":return R.stop()}}),M,null,[[11,57]])}function J(t,e,r,n){var a,i;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,U("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,U("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,i=Object(o.a)({id:r},a),u.delegateYield(X(t,e,i,n),"t0",9);case 9:case"end":return u.stop()}}),V)}function Z(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function $(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function tt(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var et=T.a.mark(ut),rt=T.a.mark(ct),nt=T.a.mark(ft),at="id",it=[{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"}],ot=[{name:"postType",loadEntities:ut},{name:"taxonomy",loadEntities:ct}];function ut(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/types?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"postType",baseURL:"/wp/v2/"+t.rest_base,name:e,transientEdits:{blocks:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return e.stop()}}),et)}function ct(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/taxonomies?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"taxonomy",baseURL:"/wp/v2/"+t.rest_base,name:e}})));case 4:case"end":return e.stop()}}),rt)}var st=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(d.find)(it,{kind:t,name:e}),i="root"===t?"":Object(d.upperFirst)(Object(d.camelCase)(t)),o=Object(d.upperFirst)(Object(d.camelCase)(e))+(n?"s":""),u=n&&a.plural?Object(d.upperFirst)(Object(d.camelCase)(a.plural)):o;return"".concat(r).concat(i).concat(u)};function ft(t){var e,r;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U("getEntitiesByKind",t);case 2:if(!(e=n.sent)||0===e.length){n.next=5;break}return n.abrupt("return",e);case 5:if(r=Object(d.find)(ot,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return e=n.sent,n.next=13,Y(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}}),nt)}function dt(t,e,r,n){for(var a=(r-1)*n,i=Math.max(t.length,a+e.length),o=new Array(i),u=0;u=a&&u0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,r=e.type,n=e.page,a=e.perPage,i=e.key,o=void 0===i?at:i;return"RECEIVE_ITEMS"!==r?t:dt(t||[],Object(d.map)(e.items,o),n,a)})),pt=Object(u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||at;return Object(o.a)({},t,e.items.reduce((function(e,n){var a=n[r];return e[a]=function(t,e){if(!t)return e;var r=!1,n={};for(var a in e)Object(d.isEqual)(t[a],e[a])?n[a]=t[a]:(r=!0,n[a]=e[a]);return r?n:t}(t[a],n),e}),{}))}return t},queries:lt});function vt(t){return Object(d.flowRight)([v((function(e){return e.name&&e.kind&&e.name===t.name&&e.kind===t.kind})),y((function(e){return Object(o.a)({},e,{key:t.key||at})}))])(Object(u.combineReducers)({queriedData:pt,edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=Object(o.a)({},t),n=!0,a=!1,i=void 0;try{for(var u,c=function(){var t=u.value,n=t[e.key],a=r[n];if(!a)return"continue";var i=Object.keys(a).reduce((function(e,r){return Object(d.isEqual)(a[r],Object(d.get)(t[r],"raw",t[r]))||(e[r]=a[r]),e}),{});Object.keys(i).length?r[n]=i:delete r[n]},s=e.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)c()}catch(t){a=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r;case"EDIT_ENTITY_RECORD":var l=Object(o.a)({},t[e.recordId],e.edits);return Object.keys(l).forEach((function(t){void 0===l[t]&&delete l[t]})),Object(o.a)({},t,Object(f.a)({},e.recordId,l))}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Object(o.a)({},t,Object(f.a)({},e.recordId,{pending:"SAVE_ENTITY_RECORD_START"===e.type,error:e.error,isAutosave:e.isAutosave}))}return t}}))}function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(t),Object(s.a)(e.entities))}return t}var yt,bt=[];bt.offset=0;var gt=Object(u.combineReducers)({terms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TERMS":return Object(o.a)({},t,Object(f.a)({},e.taxonomy,e.terms))}return t},users:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_QUERY":return{byId:Object(o.a)({},t.byId,Object(d.keyBy)(e.users,"id")),queries:Object(o.a)({},t.queries,Object(f.a)({},e.queryID,Object(d.map)(e.users,(function(t){return t.id}))))}}return t},currentUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_CURRENT_USER":return e.currentUser}return t},taxonomies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TAXONOMIES":return e.taxonomies}return t},themeSupports:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_THEME_SUPPORTS":return Object(o.a)({},t,e.themeSupports)}return t},entities:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=ht(t.config,e),n=t.reducer;if(!n||r!==t.config){var a=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(t,e){var r=Object(c.a)(e,2),n=r[0],a=r[1],i=Object(u.combineReducers)(a.reduce((function(t,e){return Object(o.a)({},t,Object(f.a)({},e.name,vt(e)))}),{}));return t[n]=i,t}),{}))}var i=n(t.data,e);return i===t.data&&r===t.config&&n===t.reducer?t:{reducer:n,data:i,config:r}},undo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":if("CREATE_UNDO_LEVEL"===e.type?e=yt:yt=e,e.meta.isUndo||e.meta.isRedo){var r=Object(s.a)(t);return r.offset=t.offset+(e.meta.isUndo?-1:1),r}if(!e.meta.undo)return t;if(!Object.keys(e.edits).some((function(t){return!e.transientEdits[t]}))){var n=Object(s.a)(t);return n.flattenedUndo=Object(o.a)({},t.flattenedUndo,e.edits),n.offset=t.offset,n}var a=t.slice(0,t.offset||void 0);a.offset=0,a.pop(),a.push({kind:e.meta.undo.kind,name:e.meta.undo.name,recordId:e.meta.undo.recordId,edits:Object(o.a)({},t.flattenedUndo,e.meta.undo.edits)});var i=Object.values(e.meta.undo.edits).filter((function(t){return"function"!=typeof t})),u=Object.values(e.edits).filter((function(t){return"function"!=typeof t}));return p()(i,u)||a.push({kind:e.kind,name:e.name,recordId:e.recordId,edits:e.edits}),a}return t},embedPreviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_EMBED_PREVIEW":var r=e.url,n=e.preview;return Object(o.a)({},t,Object(f.a)({},r,n))}return t},userPermissions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_PERMISSION":return Object(o.a)({},t,Object(f.a)({},e.key,e.isAllowed))}return t},autosaves:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_AUTOSAVES":var r=e.postId,n=e.autosaves;return Object(o.a)({},t,Object(f.a)({},r,n))}return t}}),Et=r(37),mt=r.n(Et),Ot=Object(u.createRegistrySelector)((function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}}));function jt(t){return xt(t,"authors")}function wt(t){return t.currentUser}var xt=Object(E.a)((function(t,e){var r=t.users.queries[e];return Object(d.map)(r,(function(e){return t.users.byId[e]}))}),(function(t,e){return[t.users.queries[e],t.users.byId]}));function Rt(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function kt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function _t(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var Tt=Object(E.a)((function(t,e,r,n){var a=_t(t,e,r,n);return a&&Object.keys(a).reduce((function(t,e){return t[e]=Object(d.get)(a[e],"raw",a[e]),t}),{})}),(function(t){return[t.entities.data]}));function It(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?k(a,n):[]}function St(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var At=Object(E.a)((function(t,e,r,n){var a=kt(t,e,r).transientEdits,i=void 0===a?{}:a,o=St(t,e,r,n)||[];return Object.keys(o).reduce((function(t,e){return i[e]||(t[e]=o[e]),t}),{})}),(function(t){return[t.entities.config,t.entities.data]}));function Ut(t,e,r,n){return Lt(t,e,r,n)||Object.keys(At(t,e,r,n)).length>0}var Pt=Object(E.a)((function(t,e,r,n){return Object(o.a)({},Tt(t,e,r,n),St(t,e,r,n))}),(function(t){return[t.entities.data]}));function Ct(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"saving",n],{}),i=a.pending,o=a.isAutosave;return Boolean(i&&o)}function Lt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Dt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Nt(t){return t.undo.offset}function Mt(t){return t.undo[t.undo.length-2+Nt(t)]}function Vt(t){return t.undo[t.undo.length+Nt(t)]}function qt(t){return Boolean(Mt(t))}function Ft(t){return Boolean(Vt(t))}function Yt(t){return t.themeSupports}function Bt(t,e){return t.embedPreviews[e]}function Gt(t,e){var r=t.embedPreviews[e],n=''+e+"";return!!r&&r.html===n}function Kt(t){return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Qt(t,"create","media"),!0)}function Qt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Wt(t,e,r){return t.autosaves[r]}function Ht(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var zt=Object(u.createRegistrySelector)((function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}})),Xt=Object(E.a)((function(){return[]}),(function(t){return[t.undo.length,t.undo.offset]})),Jt=T.a.mark(ue),Zt=T.a.mark(ce),$t=T.a.mark(se),te=T.a.mark(fe),ee=T.a.mark(de),re=T.a.mark(le),ne=T.a.mark(pe),ae=T.a.mark(ve),ie=T.a.mark(he),oe=T.a.mark(ye);function ue(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,q("authors",t);case 5:case"end":return e.stop()}}),Jt)}function ce(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,F(t);case 5:case"end":return e.stop()}}),Zt)}function se(t,e,r){var n,a,i;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,ft(t);case 2:if(n=o.sent,a=Object(d.find)(n,{kind:t,name:e})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,A({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return i=o.sent,o.next=11,B(t,e,i);case 11:case"end":return o.stop()}}),$t)}function fe(t,e){var r,n,a,i,u,c=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,ft(t);case 3:if(n=s.sent,a=Object(d.find)(n,{kind:t,name:e})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(j.addQueryArgs)(a.baseURL,Object(o.a)({},r,{context:"edit"})),s.next=10,A({path:i});case 10:return u=s.sent,s.next=13,B(t,e,Object.values(u),r);case 13:case"end":return s.stop()}}),te)}function de(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,G(t[0].theme_supports);case 5:case"end":return e.stop()}}),ee)}function le(t){var e;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,K(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,K(t,!1);case 12:case"end":return r.stop()}}),re,null,[[0,8]])}function pe(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(ve("create","media"),"t0",2);case 2:case"end":return t.stop()}}),ne)}function ve(t,e,r){var n,a,i,o,u,c;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[t]){s.next=4;break}throw new Error("'".concat(t,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(e,"/").concat(r):"/wp/v2/".concat(e),s.prev=5,s.next=8,A({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 o=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),u=Object(d.compact)([t,e,r]).join("/"),c=Object(d.includes)(o,n),s.next=19,$(u,c);case 19:case"end":return s.stop()}}),ae,null,[[5,11]])}function he(t,e){var r,n,a;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,P("getPostType",t);case 2:return r=i.sent,n=r.rest_base,i.next=6,A({path:"/wp/v2/".concat(n,"/").concat(e,"/autosaves?context=edit")});case 6:if(!(a=i.sent)||!a.length){i.next=10;break}return i.next=10,tt(e,a);case 10:case"end":return i.stop()}}),ie)}function ye(t,e){return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P("getAutosaves",t,e);case 2:case"end":return r.stop()}}),oe)}fe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var be=it.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n)]=function(t,e){return _t(t,r,n,e)},t[st(r,n,"get",!0)]=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o1?a-1:0),o=1;o=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,i){null!==i&&"object"===n(i)&&(a=a[1]),t.call(r,a,i,e)}))}},{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(e.prototype,r),o&&a(e,o),t}();t.exports=o}});