[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> core-data.min.js (source)

   1  /*! This file is auto-generated */
   2  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=458)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},107: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 o(e,t){var r=e._map,n=e._arrayTreeMap,a=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),c=Array.isArray(t)?n:a,u=0;u<o.length;u++){var i=o[u];if(void 0===(c=c.get(i)))return;var s=t[i];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(),o=[t,r],c=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var i=a[u];c.has(i)||c.set(i,new e),c=c.get(i);var s=t[i];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",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(a,o){null!==o&&"object"===n(o)&&(a=a[1]),e.call(r,a,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}}])&&a(t.prototype,r),c&&a(t,c),e}();e.exports=c},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(38);var a=r(28),o=r(39);function c(e,t){return Object(n.a)(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,o=[],c=!0,u=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{c||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(24);var a=r(42),o=r(28);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.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.")}()}},151:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38),a=r(42),o=r(28),c=r(39);function u(e){return Object(n.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(c.a)()}},16:function(e,t){e.exports=window.regeneratorRuntime},2:function(e,t){e.exports=window.lodash},209:function(e,t,r){"use strict";var n,a=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(e){return"string"==typeof e&&c.test(e)},i=[],s=0;s<256;++s)i.push((s+256).toString(16).substr(1));var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!u(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return f(n)}},24: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}))},25:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},26:function(e,t,r){"use strict";function n(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 a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(function(){return a}))},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);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(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},29:function(e,t){e.exports=window.wp.url},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){e.exports=window.wp.data},40:function(e,t,r){"use strict";var n,a;function o(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,i;function s(){r=a?new WeakMap:c()}function f(){var r,n,a,o,c,s=arguments.length;for(o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];for(c=t.apply(null,o),(r=i(c)).isUniqueByDependants||(r.lastDependants&&!u(c,r.lastDependants,0)&&r.clear(),r.lastDependants=c),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=a?function(e){var t,a,o,u,i,s=r,f=!0;for(t=0;t<e.length;t++){if(a=e[t],!(i=a)||"object"!=typeof i){f=!1;break}s.has(a)?s=s.get(a):(o=new WeakMap,s.set(a,o),s=o)}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}},42:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,"a",(function(){return n}))},458:function(e,t,r){"use strict";r.r(t),r.d(t,"store",(function(){return bn})),r.d(t,"EntityProvider",(function(){return Zr})),r.d(t,"useEntityId",(function(){return en})),r.d(t,"useEntityProp",(function(){return tn})),r.d(t,"useEntityBlockEditor",(function(){return rn})),r.d(t,"__experimentalFetchLinkSuggestions",(function(){return cn}));var n={};r.r(n),r.d(n,"__unstableAcquireStoreLock",(function(){return V})),r.d(n,"__unstableEnqueueLockRequest",(function(){return q})),r.d(n,"__unstableReleaseStoreLock",(function(){return F})),r.d(n,"__unstableProcessPendingLockRequests",(function(){return Y}));var a={};r.r(a),r.d(a,"receiveUserQuery",(function(){return pe})),r.d(a,"receiveCurrentUser",(function(){return be})),r.d(a,"addEntities",(function(){return ve})),r.d(a,"receiveEntityRecords",(function(){return ye})),r.d(a,"receiveCurrentTheme",(function(){return he})),r.d(a,"receiveThemeSupports",(function(){return Oe})),r.d(a,"receiveEmbedPreview",(function(){return ge})),r.d(a,"deleteEntityRecord",(function(){return me})),r.d(a,"editEntityRecord",(function(){return je})),r.d(a,"undo",(function(){return Ee})),r.d(a,"redo",(function(){return we})),r.d(a,"__unstableCreateUndoLevel",(function(){return _e})),r.d(a,"saveEntityRecord",(function(){return ke})),r.d(a,"__experimentalBatch",(function(){return xe})),r.d(a,"saveEditedEntityRecord",(function(){return Re})),r.d(a,"receiveUploadPermissions",(function(){return Se})),r.d(a,"receiveUserPermission",(function(){return Pe})),r.d(a,"receiveAutosaves",(function(){return Te}));var o={};r.r(o),r.d(o,"isRequestingEmbedPreview",(function(){return St})),r.d(o,"getAuthors",(function(){return Pt})),r.d(o,"__unstableGetAuthor",(function(){return Tt})),r.d(o,"getCurrentUser",(function(){return It})),r.d(o,"getUserQueryResults",(function(){return At})),r.d(o,"getEntitiesByKind",(function(){return Dt})),r.d(o,"getEntity",(function(){return Ct})),r.d(o,"getEntityRecord",(function(){return Ut})),r.d(o,"__experimentalGetEntityRecordNoResolver",(function(){return Lt})),r.d(o,"getRawEntityRecord",(function(){return Mt})),r.d(o,"hasEntityRecords",(function(){return Nt})),r.d(o,"getEntityRecords",(function(){return Vt})),r.d(o,"__experimentalGetDirtyEntityRecords",(function(){return qt})),r.d(o,"getEntityRecordEdits",(function(){return Ft})),r.d(o,"getEntityRecordNonTransientEdits",(function(){return Yt})),r.d(o,"hasEditsForEntityRecord",(function(){return Qt})),r.d(o,"getEditedEntityRecord",(function(){return Bt})),r.d(o,"isAutosavingEntityRecord",(function(){return Gt})),r.d(o,"isSavingEntityRecord",(function(){return Ht})),r.d(o,"isDeletingEntityRecord",(function(){return Kt})),r.d(o,"getLastEntitySaveError",(function(){return Wt})),r.d(o,"getLastEntityDeleteError",(function(){return zt})),r.d(o,"getUndoEdit",(function(){return Xt})),r.d(o,"getRedoEdit",(function(){return Jt})),r.d(o,"hasUndo",(function(){return Zt})),r.d(o,"hasRedo",(function(){return er})),r.d(o,"getCurrentTheme",(function(){return tr})),r.d(o,"getThemeSupports",(function(){return rr})),r.d(o,"getEmbedPreview",(function(){return nr})),r.d(o,"isPreviewEmbedFallback",(function(){return ar})),r.d(o,"canUser",(function(){return or})),r.d(o,"getAutosaves",(function(){return cr})),r.d(o,"getAutosave",(function(){return ur})),r.d(o,"hasFetchedAutosaves",(function(){return ir})),r.d(o,"getReferenceByDistinctEdits",(function(){return sr})),r.d(o,"__experimentalGetTemplateForLink",(function(){return fr}));var c={};r.r(c),r.d(c,"getAuthors",(function(){return Sr})),r.d(c,"__unstableGetAuthor",(function(){return Pr})),r.d(c,"getCurrentUser",(function(){return Tr})),r.d(c,"getEntityRecord",(function(){return Ir})),r.d(c,"getRawEntityRecord",(function(){return Ar})),r.d(c,"getEditedEntityRecord",(function(){return Dr})),r.d(c,"getEntityRecords",(function(){return Cr})),r.d(c,"getCurrentTheme",(function(){return Ur})),r.d(c,"getThemeSupports",(function(){return Lr})),r.d(c,"getEmbedPreview",(function(){return Mr})),r.d(c,"canUser",(function(){return Nr})),r.d(c,"getAutosaves",(function(){return Vr})),r.d(c,"getAutosave",(function(){return qr})),r.d(c,"__experimentalGetTemplateForLink",(function(){return Fr}));var u={};r.r(u),r.d(u,"__unstableGetPendingLockRequests",(function(){return Br})),r.d(u,"__unstableIsLockAvailable",(function(){return Gr}));var i=r(5),s=r(4),f=r(49),l=r(12),d=r(15),p=r(2),b=r(67),v=r.n(b),y=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},h=function(e){return function(t){return function(r,n){return t(r,e(n))}}};function O(e,t){if(!e)return t;var r=!1,n={};for(var a in t)Object(p.isEqual)(e[a],t[a])?n[a]=e[a]:(r=!0,n[a]=t[a]);if(!r)return e;for(var o in e)n.hasOwnProperty(o)||(n[o]=e[o]);return n}function g(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=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 o=t(r[a],n);return o===r[a]?r:m(m({},r),{},Object(i.a)({},a,o))}}},E=r(16),w=r.n(E),_=r(1),k=r(151),x=r(209),R=r(29);function S(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 P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t){return{type:"RECEIVE_ITEMS",items:Object(p.castArray)(e),persistedEdits:t}}function I(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(p.castArray)(r),kind:e,name:t,invalidateCache:n}}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return P(P({},T(e,r)),{},{query:t})}function D(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return C(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function C(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}var U=w.a.mark(V),L=w.a.mark(q),M=w.a.mark(F),N=w.a.mark(Y);function V(e,t,r){var n,a;return w.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=r.exclusive,o.delegateYield(q(e,t,{exclusive:n}),"t0",2);case 2:return a=o.t0,o.delegateYield(Y(),"t1",4);case 4:return o.next=6,Object(f.__unstableAwaitPromise)(a);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),U)}function q(e,t,r){var n,a,o;return w.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=r.exclusive,o=new Promise((function(e){a=e})),c.next=4,{type:"ENQUEUE_LOCK_REQUEST",request:{store:e,path:t,exclusive:n,notifyAcquired:a}};case 4:return c.abrupt("return",o);case 5:case"end":return c.stop()}}),L)}function F(e){return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"RELEASE_LOCK",lock:e};case 2:return t.delegateYield(Y(),"t0",3);case 3:case"end":return t.stop()}}),M)}function Y(){var e,t,r,n,a,o,c,u,i;return w.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,{type:"PROCESS_PENDING_LOCK_REQUESTS"};case 2:return f.next=4,s.controls.select("core","__unstableGetPendingLockRequests");case 4:e=f.sent,t=D(e),f.prev=6,t.s();case 8:if((r=t.n()).done){f.next=21;break}return n=r.value,a=n.store,o=n.path,c=n.exclusive,u=n.notifyAcquired,f.next=13,s.controls.select("core","__unstableIsLockAvailable",a,o,{exclusive:c});case 13:if(!f.sent){f.next=19;break}return i={store:a,path:o,exclusive:c},f.next=18,{type:"GRANT_LOCK_REQUEST",lock:i,request:n};case 18:u(i);case 19:f.next=8;break;case 21:f.next=26;break;case 23:f.prev=23,f.t0=f.catch(6),t.e(f.t0);case 26:return f.prev=26,t.f(),f.finish(26);case 29:case"end":return f.stop()}}),N,null,[[6,23,26,29]])}var Q=r(55);function B(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function G(e,t,r){return(G=B()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&Object(Q.a)(a,r.prototype),a}).apply(null,arguments)}var H=r(25),K=r(26),W=r(48),z=r(50),$=r.n(z);function X(e){return J.apply(this,arguments)}function J(){return(J=Object(W.a)(w.a.mark((function e(t){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$()({path:"/v1/batch",method:"POST",data:{validation:"require-all-validate",requests:t.map((function(e){return{path:e.path,body:e.data,method:e.method,headers:e.headers}}))}});case 2:if(!(r=e.sent).failed){e.next=5;break}return e.abrupt("return",r.responses.map((function(e){return{error:null==e?void 0:e.body}})));case 5:return e.abrupt("return",r.responses.map((function(e){var t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ee(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function ee(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 te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,t=0,r=[],n=new re;return{add:function(e){var a=++t;n.add(a);var o=function(e){return new Promise((function(t,o){r.push({input:e,resolve:t,reject:o}),n.delete(a)}))};return Object(p.isFunction)(e)?Promise.resolve(e(o)).finally((function(){n.delete(a)})):o(e)},run:function(){return Object(W.a)(w.a.mark((function t(){var a,o,c,u,i,s,f,d,b,v,y,h;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.size){t.next=3;break}return t.next=3,new Promise((function(e){var t=n.subscribe((function(){n.size||(t(),e())}))}));case 3:return t.prev=3,t.next=6,e(r.map((function(e){return e.input})));case 6:if((a=t.sent).length===r.length){t.next=9;break}throw new Error("run: Array returned by processor must be same size as input array.");case 9:t.next=16;break;case 11:t.prev=11,t.t0=t.catch(3),o=Z(r);try{for(o.s();!(c=o.n()).done;)(0,c.value.reject)(t.t0)}catch(e){o.e(e)}finally{o.f()}throw t.t0;case 16:u=!0,i=Z(Object(p.zip)(a,r));try{for(i.s();!(s=i.n()).done;)f=Object(l.a)(s.value,2),d=f[0],b=f[1],v=b.resolve,y=b.reject,null!=d&&d.error?(y(d.error),u=!1):v(null!==(h=null==d?void 0:d.output)&&void 0!==h?h:d)}catch(e){i.e(e)}finally{i.f()}return r=[],t.abrupt("return",u);case 21:case"end":return t.stop()}}),t,null,[[3,11]])})))()}}}var re=function(){function e(){Object(H.a)(this,e);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.set=G(Set,r),this.subscribers=new Set}return Object(K.a)(e,[{key:"size",get:function(){return this.set.size}},{key:"add",value:function(){var e;return(e=this.set).add.apply(e,arguments),this.subscribers.forEach((function(e){return e()})),this}},{key:"delete",value:function(){var e,t=(e=this.set).delete.apply(e,arguments);return this.subscribers.forEach((function(e){return e()})),t}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){t.subscribers.delete(e)}}}]),e}();var ne={REGULAR_FETCH:function(e){return Object(W.a)(w.a.mark((function t(){var r,n,a;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.url,t.next=3,window.fetch(r).then((function(e){return e.json()}));case 3:return n=t.sent,a=n.data,t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))()},GET_DISPATCH:Object(s.createRegistryControl)((function(e){var t=e.dispatch;return function(){return t}}))},ae=w.a.mark(me),oe=w.a.mark(je),ce=w.a.mark(Ee),ue=w.a.mark(we),ie=w.a.mark(ke),se=w.a.mark(xe),fe=w.a.mark(Re);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 de(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(i.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}function pe(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(p.castArray)(t),queryID:e}}function be(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function ve(e){return{type:"ADD_ENTITIES",entities:e}}function ye(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;return"postType"===e&&(r=Object(p.castArray)(r).map((function(e){return"auto-draft"===e.status?de(de({},e),{},{title:""}):e}))),de(de({},n?A(r,n,o):T(r,o)),{},{kind:e,name:t,invalidateCache:a})}function he(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Oe(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function ge(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function me(e,t,r,n){var a,o,c,u,i,s,l,d,b,v,y=arguments;return w.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return a=y.length>4&&void 0!==y[4]?y[4]:{},o=a.__unstableFetch,c=void 0===o?null:o,h.next=3,Fe(e);case 3:if(u=h.sent,i=Object(p.find)(u,{kind:e,name:t}),l=!1,i){h.next=8;break}return h.abrupt("return");case 8:return h.delegateYield(V("core",["entities","data",e,t,r],{exclusive:!0}),"t0",9);case 9:return d=h.t0,h.prev=10,h.next=13,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 13:if(h.prev=13,b="".concat(i.baseURL,"/").concat(r),n&&(b=Object(R.addQueryArgs)(b,n)),v={path:b,method:"DELETE"},!c){h.next=23;break}return h.next=20,Object(f.__unstableAwaitPromise)(c(v));case 20:l=h.sent,h.next=26;break;case 23:return h.next=25,Object(f.apiFetch)(v);case 25:l=h.sent;case 26:return h.next=28,I(e,t,r,!0);case 28:h.next=33;break;case 30:h.prev=30,h.t1=h.catch(13),s=h.t1;case 33:return h.next=35,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:s};case 35:return h.abrupt("return",l);case 36:return h.prev=36,h.delegateYield(F(d),"t2",38);case 38:return h.finish(36);case 39:case"end":return h.stop()}}),ae,null,[[10,,36,39],[13,30]])}function je(e,t,r,n){var a,o,c,u,i,f,l,d,b,v=arguments;return w.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,s.controls.select("core","getEntity",e,t);case 3:if(o=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return c=o.transientEdits,u=void 0===c?{}:c,i=o.mergedEdits,f=void 0===i?{}:i,y.next=9,s.controls.select("core","getRawEntityRecord",e,t,r);case 9:return l=y.sent,y.next=12,s.controls.select("core","getEditedEntityRecord",e,t,r);case 12:return d=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=l[t],a=d[t],o=f[t]?de(de({},a),n[t]):n[t];return e[t]=Object(p.isEqual)(r,o)?void 0:o,e}),{}),transientEdits:u},y.abrupt("return",de(de({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!a.undoIgnore&&de(de({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=d[t],e}),{})})}}));case 15:case"end":return y.stop()}}),oe)}function Ee(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.controls.select("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,de(de({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),ce)}function we(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.controls.select("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,de(de({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),ue)}function _e(){return{type:"CREATE_UNDO_LEVEL"}}function ke(e,t,r){var n,a,o,c,u,d,b,v,y,h,O,g,m,j,E,_,k,R,S,P,T,I,A,D,C,U,L,M,N=arguments;return w.a.wrap((function(w){for(;;)switch(w.prev=w.next){case 0:return n=N.length>3&&void 0!==N[3]?N[3]:{},a=n.isAutosave,o=void 0!==a&&a,c=n.__unstableFetch,u=void 0===c?null:c,w.next=3,Fe(e);case 3:if(d=w.sent,b=Object(p.find)(d,{kind:e,name:t})){w.next=7;break}return w.abrupt("return");case 7:return v=b.key||Ce,y=r[v],w.delegateYield(V("core",["entities","data",e,t,y||Object(x.a)()],{exclusive:!0}),"t0",10);case 10:h=w.t0,w.prev=11,O=0,g=Object.entries(r);case 13:if(!(O<g.length)){w.next=27;break}if(m=Object(l.a)(g[O],2),j=m[0],"function"!=typeof(E=m[1])){w.next=24;break}return w.t1=E,w.next=19,s.controls.select("core","getEditedEntityRecord",e,t,y);case 19:return w.t2=w.sent,_=(0,w.t1)(w.t2),w.next=23,je(e,t,y,Object(i.a)({},j,_),{undoIgnore:!0});case 23:r[j]=_;case 24:O++,w.next=13;break;case 27:return w.next=29,{type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:y,isAutosave:o};case 29:return w.prev=29,S="".concat(b.baseURL).concat(y?"/"+y:""),w.next=33,s.controls.select("core","getRawEntityRecord",e,t,y);case 33:if(P=w.sent,!o){w.next=65;break}return w.next=37,s.controls.select("core","getCurrentUser");case 37:return T=w.sent,I=T?T.id:void 0,w.next=41,s.controls.select("core","getAutosave",P.type,P.id,I);case 41:if(A=w.sent,D=de(de(de({},P),A),r),D=Object.keys(D).reduce((function(e,t){return["title","excerpt","content"].includes(t)&&(e[t]=Object(p.get)(D[t],"raw",D[t])),e}),{status:"auto-draft"===D.status?"draft":D.status}),C={path:"".concat(S,"/autosaves"),method:"POST",data:D},!u){w.next=51;break}return w.next=48,Object(f.__unstableAwaitPromise)(u(C));case 48:k=w.sent,w.next=54;break;case 51:return w.next=53,Object(f.apiFetch)(C);case 53:k=w.sent;case 54:if(P.id!==k.id){w.next=61;break}return U=de(de(de({},P),D),k),U=Object.keys(U).reduce((function(e,t){return["title","excerpt","content"].includes(t)?e[t]=Object(p.get)(U[t],"raw",U[t]):e[t]="status"===t?"auto-draft"===P.status&&"draft"===U.status?U.status:P.status:Object(p.get)(P[t],"raw",P[t]),e}),{}),w.next=59,ye(e,t,U,void 0,!0);case 59:w.next=63;break;case 61:return w.next=63,Te(P.id,k);case 63:w.next=79;break;case 65:if(L=r,b.__unstablePrePersist&&(L=de(de({},L),b.__unstablePrePersist(P,L))),M={path:S,method:y?"PUT":"POST",data:L},!u){w.next=74;break}return w.next=71,Object(f.__unstableAwaitPromise)(u(M));case 71:k=w.sent,w.next=77;break;case 74:return w.next=76,Object(f.apiFetch)(M);case 76:k=w.sent;case 77:return w.next=79,ye(e,t,k,void 0,!0,L);case 79:w.next=84;break;case 81:w.prev=81,w.t3=w.catch(29),R=w.t3;case 84:return w.next=86,{type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:y,error:R,isAutosave:o};case 86:return w.abrupt("return",k);case 87:return w.prev=87,w.delegateYield(F(h),"t4",89);case 89:return w.finish(87);case 90:case"end":return w.stop()}}),ie,null,[[11,,87,90],[29,81]])}function xe(e){var t,r,n,a,o,c,u;return w.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=te(),i.next=3,{type:"GET_DISPATCH"};case 3:return r=i.sent,n={saveEntityRecord:function(e,n,a,o){return t.add((function(t){return r("core").saveEntityRecord(e,n,a,de(de({},o),{},{__unstableFetch:t}))}))},saveEditedEntityRecord:function(e,n,a,o){return t.add((function(t){return r("core").saveEditedEntityRecord(e,n,a,de(de({},o),{},{__unstableFetch:t}))}))},deleteEntityRecord:function(e,n,a,o,c){return t.add((function(t){return r("core").deleteEntityRecord(e,n,a,o,de(de({},c),{},{__unstableFetch:t}))}))}},a=e.map((function(e){return e(n)})),i.next=8,Object(f.__unstableAwaitPromise)(Promise.all([t.run()].concat(Object(d.a)(a))));case 8:return o=i.sent,c=Object(k.a)(o),u=c.slice(1),i.abrupt("return",u);case 12:case"end":return i.stop()}}),se)}function Re(e,t,r,n){var a,o;return w.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,s.controls.select("core","hasEditsForEntityRecord",e,t,r);case 2:if(c.sent){c.next=4;break}return c.abrupt("return");case 4:return c.next=6,s.controls.select("core","getEntityRecordNonTransientEdits",e,t,r);case 6:return a=c.sent,o=de({id:r},a),c.delegateYield(ke(e,t,o,n),"t0",9);case 9:return c.abrupt("return",c.t0);case 10:case"end":return c.stop()}}),fe)}function Se(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function Pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function Te(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(p.castArray)(t)}}var Ie=w.a.mark(Ne),Ae=w.a.mark(Ve),De=w.a.mark(Fe),Ce="id",Ue=[{label:Object(_.__)("Base"),name:"__unstableBase",kind:"root",baseURL:""},{label:Object(_.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:function(e){return Object(p.get)(e,["title"],Object(_.__)("Site Title"))}},{label:Object(_.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems",label:Object(_.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies",label:Object(_.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:Object(_.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",plural:"widgets",transientEdits:{blocks:!0},label:Object(_.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",plural:"widgetTypes",label:Object(_.__)("Widget types")},{label:Object(_.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",plural:"comments",label:Object(_.__)("Comment")},{name:"menu",kind:"root",baseURL:"/__experimental/menus",plural:"menus",label:Object(_.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/__experimental/menu-items",plural:"menuItems",label:Object(_.__)("Menu Item")},{name:"menuLocation",kind:"root",baseURL:"/__experimental/menu-locations",plural:"menuLocations",label:Object(_.__)("Menu Location"),key:"name"}],Le=[{name:"postType",loadEntities:Ne},{name:"taxonomy",loadEntities:Ve}],Me=function(e,t){var r={};return"auto-draft"===(null==e?void 0:e.status)&&(t.status||r.status||(r.status="draft"),t.title&&"Auto Draft"!==t.title||r.title||null!=e&&e.title&&"Auto Draft"!==(null==e?void 0:e.title)||(r.title="")),r};function Ne(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.apiFetch)({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(p.map)(e,(function(e,t){var r=["wp_template","wp_template_part"].includes(t);return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t,label:e.labels.singular_name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},getTitle:function(e){var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)||(r?Object(p.startCase)(e.slug):String(e.id))},__unstablePrePersist:r?void 0:Me}})));case 4:case"end":return t.stop()}}),Ie)}function Ve(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.apiFetch)({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(p.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()}}),Ae)}var qe=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(p.find)(Ue,{kind:e,name:t}),o="root"===e?"":Object(p.upperFirst)(Object(p.camelCase)(e)),c=Object(p.upperFirst)(Object(p.camelCase)(t))+(n?"s":""),u=n&&a.plural?Object(p.upperFirst)(Object(p.camelCase)(a.plural)):c;return"".concat(r).concat(o).concat(u)};function Fe(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.controls.select("core","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(p.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,ve(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),De)}var Ye=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var Qe=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(p.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],o=e[a];switch(a){case"page":t[a]=Number(o);break;case"per_page":t.perPage=Number(o);break;case"include":t.include=Ye(o).map(Number);break;default:"_fields"===a&&(t.fields=Ye(o),o=t.fields.join()),t.stableKey+=(t.stableKey?"&":"")+Object(R.addQueryArgs)("",Object(i.a)({},a,o)).slice(1)}}return t}));function Be(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 Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(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,o=Math.max(e.length,a+t.length),c=new Array(o),u=0;u<o;u++){var i=u>=a&&u<a+t.length;c[u]=i?t[u-a]:e[u]}return c}var Ke=Object(p.flowRight)([y((function(e){return"query"in e})),h((function(e){return e.query?Ge(Ge({},e),Qe(e.query)):e})),j("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,o=t.key,c=void 0===o?Ce:o;return"RECEIVE_ITEMS"!==r?e:He(e||[],Object(p.map)(t.items,c),n,a)})),We=Object(s.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||Ce;return Ge(Ge({},e),t.items.reduce((function(t,n){var a=n[r];return t[a]=O(e[a],n),t}),{}));case"REMOVE_ITEMS":var n=Object(p.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,o=void 0===a?Ce:a;if("RECEIVE_ITEMS"!==r)return e;var c=!n||!Array.isArray(Qe(n).fields);return Ge(Ge({},e),t.items.reduce((function(t,r){var n=r[o];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 Ke(e,t);case"REMOVE_ITEMS":var r=Ge({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(p.forEach)(r,(function(e,t){r[t]=Object(p.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}}),ze=w.a.mark(nt),$e=w.a.mark(at);function Xe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Je(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Je(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function Je(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 Ze(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 et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t){var r,n=et({},e),a=n,o=Xe(t);try{for(o.s();!(r=o.n()).done;){var c=r.value;a.children=et(et({},a.children),{},Object(i.a)({},c,et({locks:[],children:{}},a.children[c]))),a=a.children[c]}}catch(e){o.e(e)}finally{o.f()}return n}function rt(e,t){var r,n=e,a=Xe(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,c=n.children[o];if(!c)return null;n=c}}catch(e){a.e(e)}finally{a.f()}return n}function nt(e,t){var r,n,a,o,c;return w.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=e,u.next=3,r;case 3:n=Xe(t),u.prev=4,n.s();case 6:if((a=n.n()).done){u.next=16;break}if(o=a.value,c=r.children[o]){u.next=11;break}return u.abrupt("break",16);case 11:return u.next=13,c;case 13:r=c;case 14:u.next=6;break;case 16:u.next=21;break;case 18:u.prev=18,u.t0=u.catch(4),n.e(u.t0);case 21:return u.prev=21,n.f(),u.finish(21);case 24:case"end":return u.stop()}}),ze,null,[[4,18,21,24]])}function at(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=Object.values(e.children);case 1:if(!t.length){n.next=8;break}return r=t.pop(),n.next=5,r;case 5:t.push.apply(t,Object(d.a)(Object.values(r.children))),n.next=1;break;case 8:case"end":return n.stop()}}),$e)}function ot(e,t){var r=e.exclusive;return!(!r||!t.length)||!(r||!t.filter((function(e){return e.exclusive})).length)}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}function ut(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(i.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}var it={requests:[],tree:{locks:[],children:{}}};var st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENQUEUE_LOCK_REQUEST":var r=t.request;return ut(ut({},e),{},{requests:[r].concat(Object(d.a)(e.requests))});case"GRANT_LOCK_REQUEST":var n=t.lock,a=t.request,o=a.store,c=a.path,u=[o].concat(Object(d.a)(c)),i=tt(e.tree,u),s=rt(i,u);return s.locks=[].concat(Object(d.a)(s.locks),[n]),ut(ut({},e),{},{requests:e.requests.filter((function(e){return e!==a})),tree:i});case"RELEASE_LOCK":var f=t.lock,l=[f.store].concat(Object(d.a)(f.path)),p=tt(e.tree,l),b=rt(p,l);return b.locks=b.locks.filter((function(e){return e!==f})),ut(ut({},e),{},{tree:p})}return e};function ft(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return lt(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lt(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function lt(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 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(i.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}function bt(e){return Object(p.flowRight)([y((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),h((function(t){return pt(pt({},t),{},{key:e.key||Ce})}))])(Object(s.combineReducers)({queriedData:We,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=pt({},e),a=ft(t.items);try{var o=function(){var e=r.value,a=e[t.key],o=n[a];if(!o)return"continue";var c=Object.keys(o).reduce((function(r,n){return Object(p.isEqual)(o[n],Object(p.get)(e[n],"raw",e[n]))||t.persistedEdits&&Object(p.isEqual)(o[n],t.persistedEdits[n])||(r[n]=o[n]),r}),{});Object.keys(c).length?n[a]=c:delete n[a]};for(a.s();!(r=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return n;case"EDIT_ENTITY_RECORD":var c=pt(pt({},e[t.recordId]),t.edits);return Object.keys(c).forEach((function(e){void 0===c[e]&&delete c[e]})),pt(pt({},e),{},Object(i.a)({},t.recordId,c))}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 pt(pt({},e),{},Object(i.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 pt(pt({},e),{},Object(i.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(d.a)(e),Object(d.a)(t.entities))}return e}var yt,ht=[];ht.offset=0;var Ot=Object(s.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 pt(pt({},e),{},Object(i.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:pt(pt({},e.byId),Object(p.keyBy)(t.users,"id")),queries:pt(pt({},e.queries),{},Object(i.a)({},t.queryID,Object(p.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 pt(pt({},e),{},Object(i.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 pt(pt({},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=vt(e.config,t),n=e.reducer;if(!n||r!==e.config){var a=Object(p.groupBy)(r,"kind");n=Object(s.combineReducers)(Object.entries(a).reduce((function(e,t){var r=Object(l.a)(t,2),n=r[0],a=r[1],o=Object(s.combineReducers)(a.reduce((function(e,t){return pt(pt({},e),{},Object(i.a)({},t.name,bt(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]:ht,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=yt:a||(yt=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:pt(pt({},t),{},{edits:pt(pt({},yt&&yt.edits),t.edits)})),a){if((r=Object(d.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=yt}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(d.a)(e)).flattenedUndo=pt(pt({},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:pt(pt({},e.flattenedUndo),t.meta.undo.edits)});var o=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 v()(o,c)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?pt(pt({},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 pt(pt({},e),{},Object(i.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return pt(pt({},e),{},Object(i.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return pt(pt({},e),{},Object(i.a)({},r,n))}return e},locks:st}),gt=r(40),mt=r(107),jt=r.n(mt),Et=new WeakMap;function wt(e,t){var r,n=Qe(t),a=n.stableKey,o=n.page,c=n.perPage,u=n.include,i=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:(o-1)*c,f=-1===c?r.length:Math.min(s+c,r.length),l=[],d=s;d<f;d++){var b=r[d];if(!Array.isArray(u)||u.includes(b)){if(!e.items.hasOwnProperty(b))return null;var v=e.items[b],y=void 0;if(Array.isArray(i)){y={};for(var h=0;h<i.length;h++){var O=i[h].split("."),g=Object(p.get)(v,O);Object(p.set)(y,O,g)}}else{if(!e.itemIsComplete[b])return null;y=v}l.push(y)}}return l}var _t=Object(gt.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Et.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new jt.a,Et.set(e,r);var a=wt(e,t);return r.set(t,a),a}));function kt(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 xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rt=[],St=Object(s.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function Pt(e,t){var r=Object(R.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return At(e,r)}function Tt(e,t){return Object(p.get)(e,["users","byId",t],null)}function It(e){return e.currentUser}var At=Object(gt.a)((function(e,t){var r=e.users.queries[t];return Object(p.map)(r,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function Dt(e,t){return Object(p.filter)(e.entities.config,{kind:t})}function Ct(e,t,r){return Object(p.find)(e.entities.config,{kind:t,name:r})}function Ut(e,t,r,n,a){var o=Object(p.get)(e.entities.data,[t,r,"queriedData"]);if(o){if(void 0===a){if(!o.itemIsComplete[n])return;return o.items[n]}var c=o.items[n];if(c&&a._fields){for(var u={},i=Ye(a._fields),s=0;s<i.length;s++){var f=i[s].split("."),l=Object(p.get)(c,f);Object(p.set)(u,f,l)}return u}return c}}function Lt(e,t,r,n){return Ut(e,t,r,n)}var Mt=Object(gt.a)((function(e,t,r,n){var a=Ut(e,t,r,n);return a&&Object.keys(a).reduce((function(e,t){return e[t]=Object(p.get)(a[t],"raw",a[t]),e}),{})}),(function(e){return[e.entities.data]}));function Nt(e,t,r,n){return Array.isArray(Vt(e,t,r,n))}function Vt(e,t,r,n){var a=Object(p.get)(e.entities.data,[t,r,"queriedData"]);return a?_t(a,n):Rt}var qt=Object(gt.a)((function(e){var t=e.entities.data,r=[];return Object.keys(t).forEach((function(n){Object.keys(t[n]).forEach((function(a){var o=Object.keys(t[n][a].edits).filter((function(t){return Qt(e,n,a,t)}));if(o.length){var c=Ct(e,n,a);o.forEach((function(t){var o,u=Bt(e,n,a,t);r.push({key:u[c.key||Ce],title:(null==c||null===(o=c.getTitle)||void 0===o?void 0:o.call(c,u))||"",name:a,kind:n})}))}}))})),r}),(function(e){return[e.entities.data]}));function Ft(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"edits",n])}var Yt=Object(gt.a)((function(e,t,r,n){var a=(Ct(e,t,r)||{}).transientEdits,o=Ft(e,t,r,n)||{};return a?Object.keys(o).reduce((function(e,t){return a[t]||(e[t]=o[t]),e}),{}):o}),(function(e){return[e.entities.config,e.entities.data]}));function Qt(e,t,r,n){return Ht(e,t,r,n)||Object.keys(Yt(e,t,r,n)).length>0}var Bt=Object(gt.a)((function(e,t,r,n){return xt(xt({},Mt(e,t,r,n)),Ft(e,t,r,n))}),(function(e){return[e.entities.data]}));function Gt(e,t,r,n){var a=Object(p.get)(e.entities.data,[t,r,"saving",n],{}),o=a.pending,c=a.isAutosave;return Boolean(o&&c)}function Ht(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function Kt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function Wt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"saving",n,"error"])}function zt(e,t,r,n){return Object(p.get)(e.entities.data,[t,r,"deleting",n,"error"])}function $t(e){return e.undo.offset}function Xt(e){return e.undo[e.undo.length-2+$t(e)]}function Jt(e){return e.undo[e.undo.length+$t(e)]}function Zt(e){return Boolean(Xt(e))}function er(e){return Boolean(Jt(e))}function tr(e){return e.themes[e.currentTheme]}function rr(e){return e.themeSupports}function nr(e,t){return e.embedPreviews[t]}function ar(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function or(e,t,r,n){var a=Object(p.compact)([t,r,n]).join("/");return Object(p.get)(e,["userPermissions",a])}function cr(e,t,r){return e.autosaves[r]}function ur(e,t,r,n){if(void 0!==n){var a=e.autosaves[r];return Object(p.find)(a,{author:n})}}var ir=Object(s.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),sr=Object(gt.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]}));function fr(e,t){var r=Vt(e,"postType","wp_template",{"find-template":t});return null!=r&&r.length?r[0]:null}var lr=function(e,t){return w.a.mark((function r(){var n,a,o,c=arguments;return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=c.length,a=new Array(n),o=0;o<n;o++)a[o]=c[o];return r.next=3,s.controls.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 dr(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return pr(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function pr(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 br(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 vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yr=w.a.mark(Sr),hr=w.a.mark(Pr),Or=w.a.mark(Tr),gr=w.a.mark(Ir),mr=w.a.mark(Cr),jr=w.a.mark(Ur),Er=w.a.mark(Lr),wr=w.a.mark(Mr),_r=w.a.mark(Nr),kr=w.a.mark(Vr),xr=w.a.mark(qr),Rr=w.a.mark(Fr);function Sr(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(R.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),n.next=3,Object(f.apiFetch)({path:t});case 3:return r=n.sent,n.next=6,pe(t,r);case 6:case"end":return n.stop()}}),yr)}function Pr(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t="/wp/v2/users?who=authors&include=".concat(e),n.next=3,Object(f.apiFetch)({path:t});case 3:return r=n.sent,n.next=6,pe("author",r);case 6:case"end":return n.stop()}}),hr)}function Tr(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.apiFetch)({path:"/wp/v2/users/me"});case 2:return e=t.sent,t.next=5,be(e);case 5:case"end":return t.stop()}}),Or)}function Ir(e,t){var r,n,a,o,c,u,i,l=arguments;return w.a.wrap((function(b){for(;;)switch(b.prev=b.next){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:"",n=l.length>3?l[3]:void 0,b.next=4,Fe(e);case 4:if(a=b.sent,o=Object(p.find)(a,{kind:e,name:t})){b.next=8;break}return b.abrupt("return");case 8:return b.delegateYield(V("core",["entities","data",e,t,r],{exclusive:!1}),"t0",9);case 9:if(c=b.t0,b.prev=10,void 0!==n&&n._fields&&(n=vr(vr({},n),{},{_fields:Object(p.uniq)([].concat(Object(d.a)(Ye(n._fields)||[]),[o.key||Ce])).join()})),u=Object(R.addQueryArgs)(o.baseURL+"/"+r,vr(vr({},n),{},{context:"edit"})),void 0===n){b.next=20;break}return n=vr(vr({},n),{},{include:[r]}),b.next=17,s.controls.select("core","hasEntityRecords",e,t,n);case 17:if(!b.sent){b.next=20;break}return b.abrupt("return");case 20:return b.next=22,Object(f.apiFetch)({path:u});case 22:return i=b.sent,b.next=25,ye(e,t,i,n);case 25:b.next=29;break;case 27:b.prev=27,b.t1=b.catch(10);case 29:return b.prev=29,b.delegateYield(F(c),"t2",31);case 31:return b.finish(29);case 32:case"end":return b.stop()}}),gr,null,[[10,27,29,32]])}var Ar=lr(Ir,"getEntityRecord"),Dr=lr(Ar,"getRawEntityRecord");function Cr(e,t){var r,n,a,o,c,u,i,s,l,b,v,y=arguments;return w.a.wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return r=y.length>2&&void 0!==y[2]?y[2]:{},h.next=3,Fe(e);case 3:if(n=h.sent,a=Object(p.find)(n,{kind:e,name:t})){h.next=7;break}return h.abrupt("return");case 7:return h.delegateYield(V("core",["entities","data",e,t],{exclusive:!1}),"t0",8);case 8:return o=h.t0,h.prev=9,r._fields&&(r=vr(vr({},r),{},{_fields:Object(p.uniq)([].concat(Object(d.a)(Ye(r._fields)||[]),[a.key||Ce])).join()})),u=Object(R.addQueryArgs)(a.baseURL,vr(vr({},r),{},{context:"edit"})),h.t1=Object,h.next=15,Object(f.apiFetch)({path:u});case 15:return h.t2=h.sent,i=h.t1.values.call(h.t1,h.t2),r._fields&&(i=i.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),h.next=20,ye(e,t,i,r);case 20:if(null!==(c=r)&&void 0!==c&&c._fields){h.next=42;break}s=a.key||Ce,l=dr(i),h.prev=23,l.s();case 25:if((b=l.n()).done){h.next=34;break}if(!(v=b.value)[s]){h.next=32;break}return h.next=30,{type:"START_RESOLUTION",selectorName:"getEntityRecord",args:[e,t,v[s]]};case 30:return h.next=32,{type:"FINISH_RESOLUTION",selectorName:"getEntityRecord",args:[e,t,v[s]]};case 32:h.next=25;break;case 34:h.next=39;break;case 36:h.prev=36,h.t3=h.catch(23),l.e(h.t3);case 39:return h.prev=39,l.f(),h.finish(39);case 42:return h.prev=42,h.delegateYield(F(o),"t4",44);case 44:return h.finish(42);case 45:case"end":return h.stop()}}),mr,null,[[9,,42,45],[23,36,39,42]])}function Ur(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,he(e[0]);case 5:case"end":return t.stop()}}),jr)}function Lr(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,Oe(e[0].theme_supports);case 5:case"end":return t.stop()}}),Er)}function Mr(e){var t;return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(f.apiFetch)({path:Object(R.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,ge(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,ge(e,!1);case 12:case"end":return r.stop()}}),wr,null,[[0,8]])}function Nr(e,t,r){var n,a,o,c,u,i;return w.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,Object(f.apiFetch)({path:a,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 c=Object(p.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(p.get)(o,["headers","Allow"],""),u=Object(p.compact)([e,t,r]).join("/"),i=Object(p.includes)(c,n),s.next=19,Pe(u,i);case 19:case"end":return s.stop()}}),_r,null,[[5,11]])}function Vr(e,t){var r,n,a;return w.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,s.controls.resolveSelect("core","getPostType",e);case 2:return r=o.sent,n=r.rest_base,o.next=6,Object(f.apiFetch)({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(a=o.sent)||!a.length){o.next=10;break}return o.next=10,Te(t,a);case 10:case"end":return o.stop()}}),kr)}function qr(e,t){return w.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.controls.resolveSelect("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),xr)}function Fr(e){var t,r;return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,{type:"REGULAR_FETCH",url:Object(R.addQueryArgs)(e,{"_wp-find-template":!0})};case 3:t=n.sent,n.next=8;break;case 6:n.prev=6,n.t0=n.catch(0);case 8:if(t){n.next=10;break}return n.abrupt("return");case 10:return n.next=12,Ir("postType","wp_template",t.id);case 12:return n.next=14,s.controls.select("core","getEntityRecord","postType","wp_template",t.id);case 14:if(!(r=n.sent)){n.next=18;break}return n.next=18,ye("postType","wp_template",[r],{"find-template":e});case 18:case"end":return n.stop()}}),Rr,null,[[0,6]])}function Yr(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Qr(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw o}}}}function Qr(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 Br(e){return e.locks.requests}function Gr(e,t,r,n){var a,o=n.exclusive,c=[t].concat(Object(d.a)(r)),u=e.locks.tree,i=Yr(nt(u,c));try{for(i.s();!(a=i.n()).done;){if(ot({exclusive:o},a.value.locks))return!1}}catch(e){i.e(e)}finally{i.f()}var s=rt(u,c);if(!s)return!0;var f,l=Yr(at(s));try{for(l.s();!(f=l.n()).done;){if(ot({exclusive:o},f.value.locks))return!1}}catch(e){l.e(e)}finally{l.f()}return!0}Cr.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name},Fr.shouldInvalidate=function(e){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name};var Hr=r(0),Kr=r(9);function Wr(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 zr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $r=[],Xr=zr(zr({},Ue.reduce((function(e,t){return e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Hr.createContext)()},e}),{})),Le.reduce((function(e,t){return e[t.name]={},e}),{})),Jr=function(e,t){if(!Xr[e])throw new Error("Missing entity config for kind: ".concat(e,"."));return Xr[e][t]||(Xr[e][t]={context:Object(Hr.createContext)()}),Xr[e][t]};function Zr(e){var t=e.kind,r=e.type,n=e.id,a=e.children,o=Jr(t,r).context.Provider;return Object(Hr.createElement)(o,{value:n},a)}function en(e,t){return Object(Hr.useContext)(Jr(e,t).context)}function tn(e,t,r,n){var a=en(e,t),o=null!=n?n:a,c=Object(s.useSelect)((function(n){var a=n("core"),c=a.getEntityRecord,u=a.getEditedEntityRecord,i=c(e,t,o),s=u(e,t,o);return i&&s?{value:s[r],fullValue:i[r]}:{}}),[e,t,o,r]),u=c.value,f=c.fullValue,l=Object(s.useDispatch)("core").editEntityRecord;return[u,Object(Hr.useCallback)((function(n){l(e,t,o,Object(i.a)({},r,n))}),[e,t,o,r]),f]}function rn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.id,a=en(e,t),o=null!=n?n:a,c=Object(s.useSelect)((function(r){var n=(0,r("core").getEditedEntityRecord)(e,t,o);return{blocks:n.blocks,content:n.content}}),[e,t,o]),u=c.content,i=c.blocks,f=Object(s.useDispatch)("core"),l=f.__unstableCreateUndoLevel,d=f.editEntityRecord;Object(Hr.useEffect)((function(){if(u&&"function"!=typeof u&&!i){var r=Object(Kr.parse)(u);d(e,t,o,{blocks:r},{undoIgnore:!0})}}),[u]);var p=Object(Hr.useCallback)((function(r,n){var a={blocks:r,selection:n.selection};if(i===a.blocks)return l(e,t,o);a.content=function(e){var t=e.blocks,r=void 0===t?[]:t;return Object(Kr.__unstableSerializeAndClean)(r)},d(e,t,o,a)}),[e,t,o,i]),b=Object(Hr.useCallback)((function(r,n){var a=n.selection;d(e,t,o,{blocks:r,selection:a})}),[e,t,o]);return[null!=i?i:$r,b,p]}var nn=r(57);function an(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 on(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?an(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var cn=function(){var e=Object(W.a)(w.a.mark((function e(t){var r,n,a,o,c,u,i,s,f,l,d,p,b,v,y,h=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h.length>1&&void 0!==h[1]?h[1]:{},n=h.length>2&&void 0!==h[2]?h[2]:{},a=r.isInitialSuggestions,o=void 0!==a&&a,c=r.type,u=void 0===c?void 0:c,i=r.subtype,s=void 0===i?void 0:i,f=r.page,l=void 0===f?void 0:f,d=r.perPage,p=void 0===d?o?3:20:d,b=n.disablePostFormats,v=void 0!==b&&b,y=[],u&&"post"!==u||y.push($()({path:Object(R.addQueryArgs)("/wp/v2/search",{search:t,page:l,per_page:p,type:"post",subtype:s})}).then((function(e){return e.map((function(e){return on(on({},e),{},{meta:{kind:"post-type",subtype:s}})}))})).catch((function(){return[]}))),u&&"term"!==u||y.push($()({path:Object(R.addQueryArgs)("/wp/v2/search",{search:t,page:l,per_page:p,type:"term",subtype:s})}).then((function(e){return e.map((function(e){return on(on({},e),{},{meta:{kind:"taxonomy",subtype:s}})}))})).catch((function(){return[]}))),v||u&&"post-format"!==u||y.push($()({path:Object(R.addQueryArgs)("/wp/v2/search",{search:t,page:l,per_page:p,type:"post-format",subtype:s})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(y).then((function(e){return e.reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return!!e.id})).slice(0,p).map((function(e){var t;return{id:e.id,url:e.url,title:Object(nn.decodeEntities)(e.title||"")||Object(_.__)("(no title)"),type:e.subtype||e.type,kind:null==e||null===(t=e.meta)||void 0===t?void 0:t.kind}}))})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function un(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 sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?un(Object(r),!0).forEach((function(t){Object(i.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fn=Ue.reduce((function(e,t){var r=t.kind,n=t.name;return e[qe(r,n)]=function(e,t){return Ut(e,r,n,t)},e[qe(r,n,"get",!0)]=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),c=1;c<t;c++)a[c-1]=arguments[c];return Vt.apply(o,[e,r,n].concat(a))},e}),{}),ln=Ue.reduce((function(e,t){var r=t.kind,n=t.name;e[qe(r,n)]=function(e){return Ir(r,n,e)};var a=qe(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 Cr.apply(c,[r,n].concat(t))},e[a].shouldInvalidate=function(e){for(var t,a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];return(t=Cr).shouldInvalidate.apply(t,[e,r,n].concat(o))},e}),{}),dn=Ue.reduce((function(e,t){var r=t.kind,n=t.name;return e[qe(r,n,"save")]=function(e){return ke(r,n,e)},e[qe(r,n,"delete")]=function(e,t){return me(r,n,e,t)},e}),{}),pn={reducer:Ot,controls:sn(sn({},ne),f.controls),actions:sn(sn(sn({},a),dn),n),selectors:sn(sn(sn({},o),fn),u),resolvers:sn(sn({},c),ln)},bn=Object(s.createReduxStore)("core",pn);Object(s.register)(bn)},48:function(e,t,r){"use strict";function n(e,t,r,n,a,o,c){try{var u=e[o](c),i=u.value}catch(e){return void r(e)}u.done?t(i):Promise.resolve(i).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var c=e.apply(t,r);function u(e){n(c,a,o,u,i,"next",e)}function i(e){n(c,a,o,u,i,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return a}))},49:function(e,t){e.exports=window.wp.dataControls},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},50:function(e,t){e.exports=window.wp.apiFetch},55:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,"a",(function(){return n}))},57:function(e,t){e.exports=window.wp.htmlEntities},67:function(e,t){e.exports=window.wp.isShallowEqual},9:function(e,t){e.exports=window.wp.blocks}});


Generated: Sat May 15 01:00:05 2021 Cross-referenced by PHPXref 0.7.1