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=function(t,e){var r=w(e),n=r.stableKey,a=r.page,i=r.perPage;if(!t.queries[n])return null;var o=t.queries[n];if(!o)return null;for(var u=-1===i?0:(a-1)*i,c=-1===i?o.length:Math.min(u+i,o.length),s=[],f=u;f1?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 B(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function G(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function K(t,e,r,n){var a,i,u,c,s,f,l,p,v,h=arguments;return _.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,A("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,A("getRawEntityRecord",t,e,r);case 10:return l=y.sent,y.next=13,A("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()}},C)}function Q(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A("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()}},L)}function W(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A("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()}},D)}function H(){return{type:"CREATE_UNDO_LEVEL"}}function z(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 _.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,st(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||nt,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,A("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!i){R.next=40;break}return R.next=19,A("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,A("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,S({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,Y(t,e,j,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,$(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,A("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,A("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,Y(t,e,Object(o.a)({},v,w),void 0,!0);case 50:return R.next=52,S({path:y,method:f?"PUT":"POST",data:w});case 52:return l=R.sent,R.next=55,Y(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,Y(t,e,v,void 0,!0);case 63:return R.t1=K,R.t2=t,R.t3=e,R.t4=f,R.t5=o.a,R.t6={},R.t7=h,R.next=72,A("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()}},N,null,[[11,57]])}function X(t,e,r,n){var a,i;return _.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,A("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,A("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,i=Object(o.a)({id:r},a),u.delegateYield(z(t,e,i,n),"t0",9);case 9:case"end":return u.stop()}},M)}function J(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function Z(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function $(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var tt=_.a.mark(ot),et=_.a.mark(ut),rt=_.a.mark(st),nt="id",at=[{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"}],it=[{name:"postType",loadEntities:ot},{name:"taxonomy",loadEntities:ut}];function ot(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({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()}},tt)}function ut(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({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()}},et)}var ct=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)(at,{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 st(t){var e,r;return _.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,A("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)(it,{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,F(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}},rt)}var ft=Object(d.flowRight)([v(function(t){return"query"in t}),y(function(t){return t.query?Object(o.a)({},t,w(t.query)):t}),h("stableKey")])(function(){var t=arguments.length>0&&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?nt:i;return"RECEIVE_ITEMS"!==r?t:function(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]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||nt;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:ft});var lt,pt=[];pt.offset=0;var vt=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=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at,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}(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,function(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||nt})})])(Object(u.combineReducers)({queriedData:dt,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}}))}(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]:pt,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=lt:lt=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}}),ht=r(37),yt=r.n(ht),bt=Object(u.createRegistrySelector)(function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}});function gt(t){return mt(t,"authors")}function Et(t){return t.currentUser}var mt=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 Ot(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function jt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function wt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var xt=Object(E.a)(function(t,e,r,n){var a=wt(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 Rt(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?R(a,n):[]}function kt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var _t=Object(E.a)(function(t,e,r,n){var a=jt(t,e,r).transientEdits,i=void 0===a?{}:a,o=kt(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 Tt(t,e,r,n){return At(t,e,r,n)||Object.keys(_t(t,e,r,n)).length>0}var It=Object(E.a)(function(t,e,r,n){return Object(o.a)({},xt(t,e,r,n),kt(t,e,r,n))},function(t){return[t.entities.data]});function St(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 At(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Ut(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Pt(t){return t.undo.offset}function Ct(t){return t.undo[t.undo.length-2+Pt(t)]}function Lt(t){return t.undo[t.undo.length+Pt(t)]}function Dt(t){return Boolean(Ct(t))}function Nt(t){return Boolean(Lt(t))}function Mt(t){return t.themeSupports}function Vt(t,e){return t.embedPreviews[e]}function qt(t,e){var r=t.embedPreviews[e],n=''+e+"";return!!r&&r.html===n}function Ft(t){return yt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Yt(t,"create","media"),!0)}function Yt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Bt(t,e,r){return t.autosaves[r]}function Gt(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var Kt=Object(u.createRegistrySelector)(function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}}),Qt=Object(E.a)(function(){return[]},function(t){return[t.undo.length,t.undo.offset]}),Wt=_.a.mark(ne),Ht=_.a.mark(ae),zt=_.a.mark(ie),Xt=_.a.mark(oe),Jt=_.a.mark(ue),Zt=_.a.mark(ce),$t=_.a.mark(se),te=_.a.mark(fe),ee=_.a.mark(de),re=_.a.mark(le);function ne(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,V("authors",t);case 5:case"end":return e.stop()}},Wt)}function ae(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,q(t);case 5:case"end":return e.stop()}},Ht)}function ie(t,e,r){var n,a,i;return _.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,st(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,S({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return i=o.sent,o.next=11,Y(t,e,i);case 11:case"end":return o.stop()}},zt)}function oe(t,e){var r,n,a,i,u,c=arguments;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,st(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,S({path:i});case 10:return u=s.sent,s.next=13,Y(t,e,Object.values(u),r);case 13:case"end":return s.stop()}},Xt)}function ue(){var t;return _.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,B(t[0].theme_supports);case 5:case"end":return e.stop()}},Jt)}function ce(t){var e;return _.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,S({path:Object(j.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,G(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,G(t,!1);case 12:case"end":return r.stop()}},Zt,null,[[0,8]])}function se(){return _.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return yt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(fe("create","media"),"t0",2);case 2:case"end":return t.stop()}},$t)}function fe(t,e,r){var n,a,i,o,u,c;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[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,S({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,Z(u,c);case 19:case"end":return s.stop()}},te,null,[[5,11]])}function de(t,e){var r,n,a;return _.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,U("getPostType",t);case 2:return r=i.sent,n=r.rest_base,i.next=6,S({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,$(e,a);case 10:case"end":return i.stop()}},ee)}function le(t,e){return _.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,U("getAutosaves",t,e);case 2:case"end":return r.stop()}},re)}oe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var pe=at.reduce(function(t,e){var r=e.kind,n=e.name;return t[ct(r,n)]=function(t,e){return wt(t,r,n,e)},t[ct(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}});