WordPress/wp-includes/js/dist/core-data.min.js

1 line
27 KiB
JavaScript

this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=311)}({121:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},15: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})},18:function(e,t,r){"use strict";var n=r(33);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||Object(n.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(t,"a",function(){return i})},2:function(e,t){!function(){e.exports=this.lodash}()},22:function(e,t){!function(){e.exports=this.wp.url}()},25:function(e,t,r){"use strict";var n=r(34);var i=r(35);function o(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}(e,t)||Object(i.a)()}r.d(t,"a",function(){return o})},28:function(e,t,r){"use strict";var n,i;function o(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function u(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var r,c;function s(){r=i?new WeakMap:a()}function f(){var r,n,i,o,a,s=arguments.length;for(o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];for(a=t.apply(null,o),(r=c(a)).isUniqueByDependants||(r.lastDependants&&!u(a,r.lastDependants,0)&&r.clear(),r.lastDependants=a),n=r.head;n;){if(u(n.args,o,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),c=i?function(e){var t,i,o,u,c,s=r,f=!0;for(t=0;t<e.length;t++){if(i=e[t],!(c=i)||"object"!=typeof c){f=!1;break}s.has(i)?s=s.get(i):(o=new WeakMap,s.set(i,o),s=o)}return s.has(n)||((u=a()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},31:function(e,t){!function(){e.exports=this.wp.apiFetch}()},311:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",function(){return T}),r.d(n,"addEntities",function(){return A}),r.d(n,"receiveEntityRecords",function(){return U}),r.d(n,"receiveThemeSupports",function(){return M}),r.d(n,"receiveEmbedPreview",function(){return C}),r.d(n,"saveEntityRecord",function(){return N}),r.d(n,"receiveUploadPermissions",function(){return D}),r.d(n,"receiveUserPermission",function(){return q});var i={};r.r(i),r.d(i,"isRequestingEmbedPreview",function(){return ee}),r.d(i,"getAuthors",function(){return te}),r.d(i,"getUserQueryResults",function(){return re}),r.d(i,"getEntitiesByKind",function(){return ne}),r.d(i,"getEntity",function(){return ie}),r.d(i,"getEntityRecord",function(){return oe}),r.d(i,"getEntityRecords",function(){return ae}),r.d(i,"getThemeSupports",function(){return ue}),r.d(i,"getEmbedPreview",function(){return ce}),r.d(i,"isPreviewEmbedFallback",function(){return se}),r.d(i,"hasUploadPermissions",function(){return fe}),r.d(i,"canUser",function(){return de});var o={};r.r(o),r.d(o,"getAuthors",function(){return ge}),r.d(o,"getEntityRecord",function(){return we}),r.d(o,"getEntityRecords",function(){return Ee}),r.d(o,"getThemeSupports",function(){return Oe}),r.d(o,"getEmbedPreview",function(){return je}),r.d(o,"hasUploadPermissions",function(){return xe}),r.d(o,"canUser",function(){return ke});var a=r(8),u=r(5),c=r(25),s=r(18),f=r(15),d=r(2),l=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},p=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,i=n[e];if(void 0===i)return r;var o=t(r[i],n);return o===r[i]?r:Object(a.a)({},r,Object(f.a)({},i,o))}}},v=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var h=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=r(28),m=r(68),g=r.n(m),w=r(22);var E=h(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var i=r[n],o=e[i];switch(i){case"page":t[i]=Number(o);break;case"per_page":t.perPage=Number(o);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},i,o)).slice(1)}}return t}),O=new WeakMap;var j=Object(y.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=O.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new g.a,O.set(e,r);var i=function(e,t){var r=E(t),n=r.stableKey,i=r.page,o=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===o?0:(i-1)*o,c=-1===o?a.length:Math.min(u+o,a.length),s=[],f=u;f<c;f++){var d=a[f];s.push(e.items[d])}return s}(e,t);return r.set(t,i),i}),x=r(65),k=r(31),R=r.n(k);function I(e){return{type:"API_FETCH",request:e}}function _(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:e,args:r}}var P={API_FETCH:function(e){var t=e.request;return R()(t)},SELECT:Object(u.createRegistryControl)(function(e){return function(t){var r,n=t.selectorName,i=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(i))}})},S=regeneratorRuntime.mark(N);function T(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(d.castArray)(t),queryID:e}}function A(e){return{type:"ADD_ENTITIES",entities:e}}function U(e,t,r,n){var i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return i=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},b(e),{query:t})}(r,n):b(r),Object(a.a)({},i,{kind:e,name:t,invalidateCache:o})}function M(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function C(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function N(e,t,r){var n,i,o,a,u;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,z(e);case 2:if(n=c.sent,i=Object(d.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return o=i.key||K,a=r[o],c.next=10,I({path:"".concat(i.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,U(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}},S,this)}function D(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function q(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var V=regeneratorRuntime.mark(Q),L=regeneratorRuntime.mark(Y),B=regeneratorRuntime.mark(z),K="id",W=[{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"}],F=[{name:"postType",loadEntities:Q},{name:"taxonomy",loadEntities:Y}];function Q(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},V,this)}function Y(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},L,this)}var H=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],i=Object(d.find)(W,{kind:e,name:t}),o="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),a=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),u=n&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):a;return"".concat(r).concat(o).concat(u)};function z(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_("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(d.find)(F,{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,A(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},B,this)}var G=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(a.a)({},e,E(e.query)):e}),p("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,i=t.perPage,o=t.key,a=void 0===o?K:o;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var i=(r-1)*n,o=Math.max(e.length,i+t.length),a=new Array(o),u=0;u<o;u++){var c=u>=i&&u<i+t.length;a[u]=c?t[u-i]:e[u]}return a}(e||[],Object(d.map)(t.items,a),n,i)}),X=Object(x.b)({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":return Object(a.a)({},e,Object(d.keyBy)(t.items,t.key||K))}return e},queries:G});var J=Object(u.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Object(a.a)({},e,Object(f.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:Object(a.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(d.map)(t.users,function(e){return e.id})))}}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Object(a.a)({},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=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}(e.config,t),n=e.reducer;if(!n||r!==e.config){var i=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(i).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],i=r[1],o=Object(u.combineReducers)(i.reduce(function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,function(e){return Object(d.flowRight)([l(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),v(function(t){return Object(a.a)({},t,{key:e.key||K})})])(X)}(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}},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 Object(a.a)({},e,Object(f.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 Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),Z=r(49),$=r.n(Z),ee=Object(u.createRegistrySelector)(function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}});function te(e){return re(e,"authors")}var re=Object(y.a)(function(e,t){var r=e.users.queries[t];return Object(d.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ne(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function ie(e,t,r){return Object(d.find)(e.entities.config,{kind:t,name:r})}function oe(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"items",n])}function ae(e,t,r,n){var i=Object(d.get)(e.entities.data,[t,r]);return i?j(i,n):[]}function ue(e){return e.themeSupports}function ce(e,t){return e.embedPreviews[t]}function se(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function fe(e){return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(de(e,"create","media"),!0)}function de(e,t,r,n){var i=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",i])}var le=regeneratorRuntime.mark(ge),pe=regeneratorRuntime.mark(we),ve=regeneratorRuntime.mark(Ee),he=regeneratorRuntime.mark(Oe),be=regeneratorRuntime.mark(je),ye=regeneratorRuntime.mark(xe),me=regeneratorRuntime.mark(ke);function ge(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,T("authors",e);case 5:case"end":return t.stop()}},le,this)}function we(e,t,r){var n,i,o;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,z(e);case 2:if(n=a.sent,i=Object(d.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,I({path:"".concat(i.baseURL,"/").concat(r,"?context=edit")});case 8:return o=a.sent,a.next=11,U(e,t,o);case 11:case"end":return a.stop()}},pe,this)}function Ee(e,t){var r,n,i,o,u,c=arguments;return regeneratorRuntime.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,z(e);case 3:if(n=s.sent,i=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return o=Object(w.addQueryArgs)(i.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,I({path:o});case 10:return u=s.sent,s.next=13,U(e,t,Object.values(u),r);case 13:case"end":return s.stop()}},ve,this)}function Oe(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,M(e[0].theme_supports);case 5:case"end":return t.stop()}},he,this)}function je(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,I({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,C(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,C(e,!1);case 12:case"end":return r.stop()}},be,this,[[0,8]])}function xe(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return $()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(ke("create","media"),"t0",2);case 2:case"end":return e.stop()}},ye,this)}function ke(e,t,r){var n,i,o,a,u,c;return regeneratorRuntime.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 i=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,I({path:i,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(d.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(d.get)(o,["headers","Allow"],""),u=Object(d.compact)([e,t,r]).join("/"),c=Object(d.includes)(a,n),s.next=19,q(u,c);case 19:case"end":return s.stop()}},me,this,[[5,11]])}Ee.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Re=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[H(r,n)]=function(e,t){return oe(e,r,n,t)},e[H(r,n,"get",!0)]=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return ae.apply(i,[e,r,n].concat(o))},e},{}),Ie=W.reduce(function(e,t){var r=t.kind,n=t.name;e[H(r,n)]=function(e){return we(r,n,e)};var i=H(r,n,"get",!0);return e[i]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Ee.apply(o,[r,n].concat(t))},e[i].shouldInvalidate=function(e){for(var t,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(t=Ee).shouldInvalidate.apply(t,[e,r,n].concat(o))},e},{}),_e=W.reduce(function(e,t){var r=t.kind,n=t.name;return e[H(r,n,"save")]=function(e){return N(r,n,e)},e},{});Object(u.registerStore)("core",{reducer:J,controls:P,actions:Object(a.a)({},n,_e),selectors:Object(a.a)({},i,Re),resolvers:Object(a.a)({},o,Ie)})},33:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},35:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",function(){return n})},49:function(e,t){!function(){e.exports=this.wp.deprecated}()},5:function(e,t){!function(){e.exports=this.wp.data}()},51:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},65:function(e,t,r){"use strict";r.d(t,"c",function(){return u}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return d});var n=r(69),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,r){var i;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],d=f,l=!1;function p(){d===f&&(d=f.slice())}function v(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var r=d.indexOf(e);d.splice(r,1)}}}function b(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,s=c(s,e)}finally{l=!1}for(var t=f=d,r=0;r<t.length;r++){(0,t[r])()}return e}return b({type:o.INIT}),(i={dispatch:b,subscribe:h,getState:v,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,b({type:o.REPLACE})}})[n.a]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(v())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},i}function c(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];0,"function"==typeof e[i]&&(r[i]=e[i])}var a,u=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,i={},o=0;o<u.length;o++){var s=u[o],f=r[s],d=e[s],l=f(d,t);if(void 0===l){var p=c(s,t);throw new Error(p)}i[s]=l,n=n||l!==d}return n?i:e}}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){f(e,t,r[t])})}return e}({},r,{dispatch:n=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,o)(r.dispatch)})}}}},68: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 i(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,i=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),a=Array.isArray(t)?n:i,u=0;u<o.length;u++){var c=o[u];if(void 0===(a=a.get(c)))return;var s=t[c];if(void 0===(a=a.get(s)))return}var f=a.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,a.set("_ekm_value",f),r.set(t,f),f):void 0}var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach(function(e,t){r.push([t,e])}),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var t,r,a;return t=e,(r=[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var i=Object.keys(t).sort(),o=[t,r],a=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<i.length;u++){var c=i[u];a.has(c)||a.set(c,new e),a=a.get(c);var s=t[c];a.has(s)||a.set(s,new e),a=a.get(s)}var f=a.get("_ekm_value");return f&&this._map.delete(f[0]),a.set("_ekm_value",o),this._map.set(t,o),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=o(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):void 0!==o(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(i,o){null!==o&&"object"===n(o)&&(i=i[1]),e.call(r,i,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}}])&&i(t.prototype,r),a&&i(t,a),e}();e.exports=a},69:function(e,t,r){"use strict";(function(e,n){var i,o=r(88);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(51),r(121)(e))},8:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(15);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){Object(n.a)(e,t,r[t])})}return e}},88:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})}});