9 lines
8.8 KiB
JavaScript
9 lines
8.8 KiB
JavaScript
/*! This file is auto-generated */
|
|
!function(){"use strict";var r={9025:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.race=t.join=t.fork=t.promise=void 0;var n=c(e(9681)),u=e(7783),o=c(e(2451));function c(r){return r&&r.__esModule?r:{default:r}}var f=t.promise=function(r,t,e,u,o){return!!n.default.promise(r)&&(r.then(t,o),!0)},a=new Map,i=t.fork=function(r,t,e){if(!n.default.fork(r))return!1;var c=Symbol("fork"),f=(0,o.default)();a.set(c,f),e(r.iterator.apply(null,r.args),(function(r){return f.dispatch(r)}),(function(r){return f.dispatch((0,u.error)(r))}));var i=f.subscribe((function(){i(),a.delete(c)}));return t(c),!0},l=t.join=function(r,t,e,u,o){if(!n.default.join(r))return!1;var c,f=a.get(r.task);return f?c=f.subscribe((function(r){c(),t(r)})):o("join error : task not found"),!0},s=t.race=function(r,t,e,u,o){if(!n.default.race(r))return!1;var c,f=!1,a=function(r,e,n){f||(f=!0,r[e]=n,t(r))},i=function(r){f||o(r)};return n.default.array(r.competitors)?(c=r.competitors.map((function(){return!1})),r.competitors.forEach((function(r,t){e(r,(function(r){return a(c,t,r)}),i)}))):function(){var t=Object.keys(r.competitors).reduce((function(r,t){return r[t]=!1,r}),{});Object.keys(r.competitors).forEach((function(n){e(r.competitors[n],(function(r){return a(t,n,r)}),i)}))}(),!0};t.default=[f,i,l,s,function(r,t){if(!n.default.subscribe(r))return!1;if(!n.default.channel(r.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var e=r.channel.subscribe((function(r){e&&e(),t(r)}));return!0}]},7961:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.array=t.object=t.error=t.any=void 0;var n,u=e(9681),o=(n=u)&&n.__esModule?n:{default:n};var c=t.any=function(r,t,e,n){return n(r),!0},f=t.error=function(r,t,e,n,u){return!!o.default.error(r)&&(u(r.error),!0)},a=t.object=function(r,t,e,n,u){if(!o.default.all(r)||!o.default.obj(r.value))return!1;var c={},f=Object.keys(r.value),a=0,i=!1;return f.map((function(t){e(r.value[t],(function(r){return function(r,t){i||(c[r]=t,++a===f.length&&n(c))}(t,r)}),(function(r){return function(r,t){i||(i=!0,u(t))}(0,r)}))})),!0},i=t.array=function(r,t,e,n,u){if(!o.default.all(r)||!o.default.array(r.value))return!1;var c=[],f=0,a=!1;return r.value.map((function(t,o){e(t,(function(t){return function(t,e){a||(c[t]=e,++f===r.value.length&&n(c))}(o,t)}),(function(r){return function(r,t){a||(a=!0,u(t))}(0,r)}))})),!0},l=t.iterator=function(r,t,e,n,u){return!!o.default.iterator(r)&&(e(r,t,u),!0)};t.default=[f,l,i,a,c]},2165:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.cps=t.call=void 0;var n,u=e(9681),o=(n=u)&&n.__esModule?n:{default:n};var c=t.call=function(r,t,e,n,u){if(!o.default.call(r))return!1;try{t(r.func.apply(r.context,r.args))}catch(r){u(r)}return!0},f=t.cps=function(r,t,e,n,u){var c;return!!o.default.cps(r)&&((c=r.func).call.apply(c,[null].concat(function(r){if(Array.isArray(r)){for(var t=0,e=Array(r.length);t<r.length;t++)e[t]=r[t];return e}return Array.from(r)}(r.args),[function(r,e){r?u(r):t(e)}])),!0)};t.default=[c,f]},6288:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0});var n=o(e(7961)),u=o(e(9681));function o(r){return r&&r.__esModule?r:{default:r}}function c(r){if(Array.isArray(r)){for(var t=0,e=Array(r.length);t<r.length;t++)e[t]=r[t];return e}return Array.from(r)}t.default=function(){var r=[].concat(c(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),c(n.default));return function t(e){var n,o,c,f=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],a=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],i=u.default.iterator(e)?e:regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e;case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r,this)}))();n=i,o=function(r){return function(t){try{var e=r?n.throw(t):n.next(t),u=e.value;if(e.done)return f(u);c(u)}catch(r){return a(r)}}},c=function e(n){r.some((function(r){return r(n,e,t,o(!1),o(!0))}))},o(!1)()}}},2290:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapControls=t.asyncControls=t.create=void 0;var n=e(7783);Object.keys(n).forEach((function(r){"default"!==r&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[r]}})}));var u=f(e(6288)),o=f(e(9025)),c=f(e(2165));function f(r){return r&&r.__esModule?r:{default:r}}t.create=u.default,t.asyncControls=o.default,t.wrapControls=c.default},2451:function(r,t){Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var r=[];return{subscribe:function(t){return r.push(t),function(){r=r.filter((function(r){return r!==t}))}},dispatch:function(t){r.slice().forEach((function(r){return r(t)}))}}}},7783:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.createChannel=t.subscribe=t.cps=t.apply=t.call=t.invoke=t.delay=t.race=t.join=t.fork=t.error=t.all=void 0;var n,u=e(9851),o=(n=u)&&n.__esModule?n:{default:n};t.all=function(r){return{type:o.default.all,value:r}},t.error=function(r){return{type:o.default.error,error:r}},t.fork=function(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return{type:o.default.fork,iterator:r,args:e}},t.join=function(r){return{type:o.default.join,task:r}},t.race=function(r){return{type:o.default.race,competitors:r}},t.delay=function(r){return new Promise((function(t){setTimeout((function(){return t(!0)}),r)}))},t.invoke=function(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return{type:o.default.call,func:r,context:null,args:e}},t.call=function(r,t){for(var e=arguments.length,n=Array(e>2?e-2:0),u=2;u<e;u++)n[u-2]=arguments[u];return{type:o.default.call,func:r,context:t,args:n}},t.apply=function(r,t,e){return{type:o.default.call,func:r,context:t,args:e}},t.cps=function(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return{type:o.default.cps,func:r,args:e}},t.subscribe=function(r){return{type:o.default.subscribe,channel:r}},t.createChannel=function(r){var t=[];return r((function(r){return t.forEach((function(t){return t(r)}))})),{subscribe:function(r){return t.push(r),function(){return t.splice(t.indexOf(r),1)}}}}},9681:function(r,t,e){Object.defineProperty(t,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol?"symbol":typeof r},o=e(9851),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(r){return"object"===(void 0===r?"undefined":u(r))&&!!r},all:function(r){return f.obj(r)&&r.type===c.default.all},error:function(r){return f.obj(r)&&r.type===c.default.error},array:Array.isArray,func:function(r){return"function"==typeof r},promise:function(r){return r&&f.func(r.then)},iterator:function(r){return r&&f.func(r.next)&&f.func(r.throw)},fork:function(r){return f.obj(r)&&r.type===c.default.fork},join:function(r){return f.obj(r)&&r.type===c.default.join},race:function(r){return f.obj(r)&&r.type===c.default.race},call:function(r){return f.obj(r)&&r.type===c.default.call},cps:function(r){return f.obj(r)&&r.type===c.default.cps},subscribe:function(r){return f.obj(r)&&r.type===c.default.subscribe},channel:function(r){return f.obj(r)&&f.func(r.subscribe)}};t.default=f},9851:function(r,t){Object.defineProperty(t,"__esModule",{value:!0});var e={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};t.default=e}},t={};function e(n){var u=t[n];if(void 0!==u)return u.exports;var o=t[n]={exports:{}};return r[n](o,o.exports,e),o.exports}e.d=function(r,t){for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},e.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)};var n={};!function(){e.d(n,{default:function(){return c}});var r=e(2290);
|
|
/*!
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/
|
|
function t(r){return"[object Object]"===Object.prototype.toString.call(r)}function u(r){return!1!==t(e=r)&&(void 0===(n=e.constructor)||!1!==t(u=n.prototype)&&!1!==u.hasOwnProperty("isPrototypeOf"))&&"string"==typeof r.type;var e,n,u}function o(t={},e){const n=Object.entries(t).map((([r,t])=>(e,n,o,c,f)=>{if(i=r,!u(a=e)||a.type!==i)return!1;var a,i;const l=t(e);var s;return!(s=l)||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof s.then?c(l):l.then(c,f),!0}));n.push(((r,t)=>!!u(r)&&(e(r),t(),!0)));const o=(0,r.create)(n);return r=>new Promise(((t,n)=>o(r,(r=>{u(r)&&e(r),t(r)}),n)))}function c(r={}){return t=>{const e=o(r,t.dispatch);return r=>t=>{return(n=t)&&"function"==typeof n[Symbol.iterator]&&"function"==typeof n.next?e(t):r(t);var n}}}}(),(window.wp=window.wp||{}).reduxRoutine=n.default}(); |