WordPress/wp-includes/js/dist/core-data.min.js
2018-10-30 03:09:58 +00:00

1 line
25 KiB
JavaScript

this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=308)}({120: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,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},19:function(e,t,n){"use strict";var r=n(31);function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return u})},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t,n){"use strict";var r=n(36);var u=n(37);function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,u=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(u)throw i}}return n}(e,t)||Object(u.a)()}n.d(t,"a",function(){return i})},29:function(e,t){!function(){e.exports=this.wp.url}()},308:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"receiveUserQuery",function(){return T}),n.d(r,"addEntities",function(){return A}),n.d(r,"receiveEntityRecords",function(){return M}),n.d(r,"receiveThemeSupports",function(){return C}),n.d(r,"receiveEmbedPreview",function(){return N}),n.d(r,"saveEntityRecord",function(){return U});var u={};n.r(u),n.d(u,"isRequestingEmbedPreview",function(){return J}),n.d(u,"getAuthors",function(){return Z}),n.d(u,"getUserQueryResults",function(){return $}),n.d(u,"getEntitiesByKind",function(){return ee}),n.d(u,"getEntity",function(){return te}),n.d(u,"getEntityRecord",function(){return ne}),n.d(u,"getEntityRecords",function(){return re}),n.d(u,"getThemeSupports",function(){return ue}),n.d(u,"getEmbedPreview",function(){return ie}),n.d(u,"isPreviewEmbedFallback",function(){return oe});var i={};n.r(i),n.d(i,"getAuthors",function(){return le}),n.d(i,"getEntityRecord",function(){return pe}),n.d(i,"getEntityRecords",function(){return ve}),n.d(i,"getThemeSupports",function(){return he}),n.d(i,"getEmbedPreview",function(){return be});var o=n(8),a=n(5),c=n(24),s=n(19),f=n(15),d=n(2),l=function(e){return function(t){return function(n,r){return void 0===n||e(r)?t(n,r):n}}},p=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,u=r[e];if(void 0===u)return n;var i=t(n[u],r);return i===n[u]?n:Object(o.a)({},n,Object(f.a)({},u,i))}}},v=function(e){return function(t){return function(n,r){return t(n,e(r))}}};var h=function(e){var t=new WeakMap;return function(n){var r;return t.has(n)?r=t.get(n):(r=e(n),Object(d.isObjectLike)(n)&&t.set(n,r)),r}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=n(33),g=n(65),m=n.n(g),w=n(29);var O=h(function(e){for(var t={stableKey:"",page:1,perPage:10},n=Object.keys(e).sort(),r=0;r<n.length;r++){var u=n[r],i=e[u];switch(u){case"page":t[u]=Number(i);break;case"per_page":t.perPage=Number(i);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},u,i)).slice(1)}}return t}),E=new WeakMap;var j=Object(y.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E.get(e);if(n){var r=n.get(t);if(void 0!==r)return r}else n=new m.a,E.set(e,n);var u=function(e,t){var n=O(t),r=n.stableKey,u=n.page,i=n.perPage;if(!e.queries[r])return null;var o=e.queries[r];if(!o)return null;for(var a=-1===i?0:(u-1)*i,c=-1===i?o.length:Math.min(a+i,o.length),s=[],f=a;f<c;f++){var d=o[f];s.push(e.items[d])}return s}(e,t);return n.set(t,u),u}),x=n(55),k=n(32),R=n.n(k);function _(e){return{type:"API_FETCH",request:e}}function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:"SELECT",selectorName:e,args:n}}var S={API_FETCH:function(e){var t=e.request;return R()(t)},SELECT:function(e){var t,n=e.selectorName,r=e.args;return(t=Object(a.select)("core"))[n].apply(t,Object(s.a)(r))}},P=regeneratorRuntime.mark(U);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 M(e,t,n,r){var u,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return u=r?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},b(e),{query:t})}(n,r):b(n),Object(o.a)({},u,{kind:e,name:t,invalidateCache:i})}function C(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function N(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function U(e,t,n){var r,u,i,o,a;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,H(e);case 2:if(r=c.sent,u=Object(d.find)(r,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return i=u.key||V,o=n[i],c.next=10,_({path:"".concat(u.baseURL).concat(o?"/"+o:""),method:o?"PUT":"POST",data:n});case 10:return a=c.sent,c.next=13,M(e,t,a,void 0,!0);case 13:return c.abrupt("return",a);case 14:case"end":return c.stop()}},P,this)}var q=regeneratorRuntime.mark(W),D=regeneratorRuntime.mark(F),L=regeneratorRuntime.mark(H),V="id",B=[{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"}],K=[{name:"postType",loadEntities:W},{name:"taxonomy",loadEntities:F}];function W(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_({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()}},q,this)}function F(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_({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()}},D,this)}var Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=Object(d.find)(B,{kind:e,name:t}),i="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),o=Object(d.upperFirst)(Object(d.camelCase)(t))+(r?"s":""),a=r&&u.plural?Object(d.upperFirst)(Object(d.camelCase)(u.plural)):o;return"".concat(n).concat(i).concat(a)};function H(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,I("getEntitiesByKind",e);case 2:if(!(t=r.sent)||0===t.length){r.next=5;break}return r.abrupt("return",t);case 5:if(n=Object(d.find)(K,{name:e})){r.next=8;break}return r.abrupt("return",[]);case 8:return r.next=10,n.loadEntities();case 10:return t=r.sent,r.next=13,A(t);case 13:return r.abrupt("return",t);case 14:case"end":return r.stop()}},L,this)}var Y=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(o.a)({},e,O(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,n=t.type,r=t.page,u=t.perPage,i=t.key,o=void 0===i?V:i;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){for(var u=(n-1)*r,i=Math.max(e.length,u+t.length),o=new Array(i),a=0;a<i;a++){var c=a>=u&&a<u+t.length;o[a]=c?t[a-u]:e[a]}return o}(e||[],Object(d.map)(t.items,o),r,u)}),z=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(o.a)({},e,Object(d.keyBy)(t.items,t.key||V))}return e},queries:Y});var G=Object(a.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(o.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(o.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(o.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(o.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,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return Object(s.a)(e).concat(Object(s.a)(t.entities))}return e}(e.config,t),r=e.reducer;if(!r||n!==e.config){var u=Object(d.groupBy)(n,"kind");r=Object(a.combineReducers)(Object.entries(u).reduce(function(e,t){var n=Object(c.a)(t,2),r=n[0],u=n[1],i=Object(a.combineReducers)(u.reduce(function(e,t){return Object(o.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(o.a)({},t,{key:e.key||V})})])(z)}(t)))},{}));return e[r]=i,e},{}))}var i=r(e.data,t);return i===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:i,config:n}},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 n=t.url,r=t.preview;return Object(o.a)({},e,Object(f.a)({},n,r))}return e}}),X="core";function J(e,t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object(a.select)("core/data").isResolving(X,e,n)}("getEmbedPreview",t)}function Z(e){return $(e,"authors")}var $=Object(y.a)(function(e,t){var n=e.users.queries[t];return Object(d.map)(n,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function ee(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function te(e,t,n){return Object(d.find)(e.entities.config,{kind:t,name:n})}function ne(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"items",r])}function re(e,t,n,r){var u=Object(d.get)(e.entities.data,[t,n]);return u?j(u,r):[]}function ue(e){return e.themeSupports}function ie(e,t){return e.embedPreviews[t]}function oe(e,t){var n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}var ae=regeneratorRuntime.mark(le),ce=regeneratorRuntime.mark(pe),se=regeneratorRuntime.mark(ve),fe=regeneratorRuntime.mark(he),de=regeneratorRuntime.mark(be);function le(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_({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()}},ae,this)}function pe(e,t,n){var r,u,i;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,H(e);case 2:if(r=o.sent,u=Object(d.find)(r,{kind:e,name:t})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,_({path:"".concat(u.baseURL,"/").concat(n,"?context=edit")});case 8:return i=o.sent,o.next=11,M(e,t,i);case 11:case"end":return o.stop()}},ce,this)}function ve(e,t){var n,r,u,i,a,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,H(e);case 3:if(r=s.sent,u=Object(d.find)(r,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(w.addQueryArgs)(u.baseURL,Object(o.a)({},n,{context:"edit"})),s.next=10,_({path:i});case 10:return a=s.sent,s.next=13,M(e,t,Object.values(a),n);case 13:case"end":return s.stop()}},se,this)}function he(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,C(e[0].theme_supports);case 5:case"end":return t.stop()}},fe,this)}function be(e){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=n.sent,n.next=6,N(e,t);case 6:n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(0),n.next=12,N(e,!1);case 12:case"end":return n.stop()}},de,this,[[0,8]])}ve.shouldInvalidate=function(e,t,n){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&n===e.name};var ye=B.reduce(function(e,t){var n=t.kind,r=t.name;return e[Q(n,r)]=function(e,t){return ne(e,n,r,t)},e[Q(n,r,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return re.apply(u,[e,n,r].concat(i))},e},{}),ge=B.reduce(function(e,t){var n=t.kind,r=t.name;e[Q(n,r)]=function(e){return pe(n,r,e)};var u=Q(n,r,"get",!0);return e[u]=function(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];return ve.apply(i,[n,r].concat(t))},e[u].shouldInvalidate=function(e){for(var t,u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];return(t=ve).shouldInvalidate.apply(t,[e,n,r].concat(i))},e},{}),me=B.reduce(function(e,t){var n=t.kind,r=t.name;return e[Q(n,r,"save")]=function(e){return U(n,r,e)},e},{}),we=Object(a.registerStore)(X,{reducer:G,controls:S,actions:Object(o.a)({},r,me),selectors:Object(o.a)({},u,ye),resolvers:Object(o.a)({},i,ge)});t.default=we},31:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},33:function(e,t,n){"use strict";var r,u;function i(e){return[e]}function o(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},u="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function f(){n=u?new WeakMap:a()}function d(){var n,r,u,i,o,a=arguments.length;for(i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];for(o=t.apply(null,i),(n=s(o)).isUniqueByDependants||(n.lastDependants&&!c(o,n.lastDependants,0)&&n.clear(),n.lastDependants=o),r=n.head;r;){if(c(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=i),s=u?function(e){var t,u,i,c,s=n,f=!0;for(t=0;t<e.length;t++){if(!o(u=e[t])){f=!1;break}s.has(u)?s=s.get(u):(i=new WeakMap,s.set(u,i),s=i)}return s.has(r)||((c=a()).isUniqueByDependants=f,s.set(r,c)),s.get(r)}:function(){return n},d.getDependants=t,d.clear=f,f(),d}},36:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},37:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},5:function(e,t){!function(){e.exports=this.wp.data}()},52:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},55:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return d});var r=n(66),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function o(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 a(e,t,n){var u;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"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===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(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 n=d.indexOf(e);d.splice(n,1)}}}function b(e){if(!o(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,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:i.INIT}),(u={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:i.REPLACE})}})[r.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 n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e},u}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"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),n={},r=0;r<t.length;r++){var u=t[r];0,"function"==typeof e[u]&&(n[u]=e[u])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:i.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===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.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.')})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,u={},i=0;i<a.length;i++){var s=a[i],f=n[s],d=e[s],l=f(d,t);if(void 0===l){var p=c(s,t);throw new Error(p)}u[s]=l,r=r||l!==d}return r?u:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(u)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}({},n,{dispatch:r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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,i)(n.dispatch)})}}}},65:function(e,t,n){"use strict";function r(e){return(r="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 u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){var n=e._map,r=e._arrayTreeMap,u=e._objectTreeMap;if(n.has(t))return n.get(t);for(var i=Object.keys(t).sort(),o=Array.isArray(t)?r:u,a=0;a<i.length;a++){var c=i[a];if(void 0===(o=o.get(c)))return;var s=t[c];if(void 0===(o=o.get(s)))return}var f=o.get("_ekm_value");return f?(n.delete(f[0]),f[0]=t,o.set("_ekm_value",f),n.set(t,f),f):void 0}var o=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 n=[];t.forEach(function(e,t){n.push([t,e])}),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(e,[{key:"set",value:function(t,n){if(null===t||"object"!==r(t))return this._map.set(t,n),this;for(var u=Object.keys(t).sort(),i=[t,n],o=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<u.length;a++){var c=u[a];o.has(c)||o.set(c,new e),o=o.get(c);var s=t[c];o.has(s)||o.set(s,new e),o=o.get(s)}var f=o.get("_ekm_value");return f&&this._map.delete(f[0]),o.set("_ekm_value",i),this._map.set(t,i),this}},{key:"get",value:function(e){if(null===e||"object"!==r(e))return this._map.get(e);var t=i(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==r(e)?this._map.has(e):void 0!==i(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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(u,i){null!==i&&"object"===r(i)&&(u=u[1]),e.call(n,u,i,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}}]),e}();e.exports=o},66:function(e,t,n){"use strict";(function(e,r){var u,i=n(83);u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(i.a)(u);t.a=o}).call(this,n(52),n(120)(e))},8:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(15);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},u=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(u=u.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),u.forEach(function(t){Object(r.a)(e,t,n[t])})}return e}},83:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})}});