1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)n.d(e,u,function(r){return t[r]}.bind(null,u));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=323)}({175:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var e,u=n(176),o=(e=u)&&e.__esModule?e:{default:e};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return{type:o.default.fork,iterator:t,args:n}},r.join=function(t){return{type:o.default.join,task:t}},r.race=function(t){return{type:o.default.race,competitors:t}},r.delay=function(t){return new Promise(function(r){setTimeout(function(){return r(!0)},t)})},r.invoke=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return{type:o.default.call,func:t,context:null,args:n}},r.call=function(t,r){for(var n=arguments.length,e=Array(n>2?n-2:0),u=2;u<n;u++)e[u-2]=arguments[u];return{type:o.default.call,func:t,context:r,args:e}},r.apply=function(t,r,n){return{type:o.default.call,func:t,context:r,args:n}},r.cps=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return{type:o.default.cps,func:t,args:n}},r.subscribe=function(t){return{type:o.default.subscribe,channel:t}},r.createChannel=function(t){var r=[];return t(function(t){return r.forEach(function(r){return r(t)})}),{subscribe:function(t){return r.push(t),function(){return r.splice(r.indexOf(t),1)}}}}},176:function(t,r,n){"use strict";Object.defineProperty(r,"__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")};r.default=e},193:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.wrapControls=r.asyncControls=r.create=void 0;var e=n(175);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})});var u=f(n(294)),o=f(n(296)),c=f(n(298));function f(t){return t&&t.__esModule?t:{default:t}}r.create=u.default,r.asyncControls=o.default,r.wrapControls=c.default},2:function(t,r){!function(){t.exports=this.lodash}()},29:function(t,r,n){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return(u="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)})(t)}n.d(r,"a",function(){return u})},294:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=o(n(295)),u=o(n(95));function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}r.default=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],r=[].concat(c(t),c(e.default));return function t(n){var e,o,c,f=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],i=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],a=u.default.iterator(n)?n:regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n;case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)})();e=a,o=function(t){return function(r){try{var n=t?e.throw(r):e.next(r),u=n.value;if(n.done)return f(u);c(u)}catch(t){return i(t)}}},c=function n(e){r.some(function(r){return r(e,n,t,o(!1),o(!0))})},o(!1)()}}},295:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.array=r.object=r.error=r.any=void 0;var e,u=n(95),o=(e=u)&&e.__esModule?e:{default:e};var c=r.any=function(t,r,n,e){return e(t),!0},f=r.error=function(t,r,n,e,u){return!!o.default.error(t)&&(u(t.error),!0)},i=r.object=function(t,r,n,e,u){if(!o.default.all(t)||!o.default.obj(t.value))return!1;var c={},f=Object.keys(t.value),i=0,a=!1;return f.map(function(r){n(t.value[r],function(t){return function(t,r){a||(c[t]=r,++i===f.length&&e(c))}(r,t)},function(t){return r=t,void(a||(a=!0,u(r)));var r})}),!0},a=r.array=function(t,r,n,e,u){if(!o.default.all(t)||!o.default.array(t.value))return!1;var c=[],f=0,i=!1;return t.value.map(function(r,o){n(r,function(r){return function(r,n){i||(c[r]=n,++f===t.value.length&&e(c))}(o,r)},function(t){return r=t,void(i||(i=!0,u(r)));var r})}),!0},l=r.iterator=function(t,r,n,e,u){return!!o.default.iterator(t)&&(n(t,r,u),!0)};r.default=[f,l,a,i,c]},296:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.race=r.join=r.fork=r.promise=void 0;var e=c(n(95)),u=n(175),o=c(n(297));function c(t){return t&&t.__esModule?t:{default:t}}var f=r.promise=function(t,r,n,u,o){return!!e.default.promise(t)&&(t.then(r,o),!0)},i=new Map,a=r.fork=function(t,r,n){if(!e.default.fork(t))return!1;var c=Symbol("fork"),f=(0,o.default)();i.set(c,f),n(t.iterator.apply(null,t.args),function(t){return f.dispatch(t)},function(t){return f.dispatch((0,u.error)(t))});var a=f.subscribe(function(){a(),i.delete(c)});return r(c),!0},l=r.join=function(t,r,n,u,o){if(!e.default.join(t))return!1;var c,f=i.get(t.task);return f?c=f.subscribe(function(t){c(),r(t)}):o("join error : task not found"),!0},s=r.race=function(t,r,n,u,o){if(!e.default.race(t))return!1;var c,f=!1,i=function(t,n,e){f||(f=!0,t[n]=e,r(t))},a=function(t){f||o(t)};return e.default.array(t.competitors)?(c=t.competitors.map(function(){return!1}),t.competitors.forEach(function(t,r){n(t,function(t){return i(c,r,t)},a)})):function(){var r=Object.keys(t.competitors).reduce(function(t,r){return t[r]=!1,t},{});Object.keys(t.competitors).forEach(function(e){n(t.competitors[e],function(t){return i(r,e,t)},a)})}(),!0};r.default=[f,a,l,s,function(t,r){if(!e.default.subscribe(t))return!1;if(!e.default.channel(t.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var n=t.channel.subscribe(function(t){n&&n(),r(t)});return!0}]},297:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=function(){var t=[];return{subscribe:function(r){return t.push(r),function(){t=t.filter(function(t){return t!==r})}},dispatch:function(r){t.slice().forEach(function(t){return t(r)})}}}},298:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.cps=r.call=void 0;var e,u=n(95),o=(e=u)&&e.__esModule?e:{default:e};var c=r.call=function(t,r,n,e,u){if(!o.default.call(t))return!1;try{r(t.func.apply(t.context,t.args))}catch(t){u(t)}return!0},f=r.cps=function(t,r,n,e,u){var c;return!!o.default.cps(t)&&((c=t.func).call.apply(c,[null].concat(function(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}(t.args),[function(t,n){t?u(t):r(n)}])),!0)};r.default=[c,f]},323:function(t,r,n){"use strict";n.r(r);var e=n(29),u=n(193),o=n(2),c=n(86),f=n.n(c);function i(t){return Object(o.isPlainObject)(t)&&Object(o.isString)(t.type)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=Object(o.map)(t,function(t,r){return function(n,e,u,o,c){if(l=r,!i(a=n)||a.type!==l)return!1;var a,l,s=t(n);return f()(s)?s.then(o,function(t){return c(function(t){return t instanceof Error||(t=new Error(t)),t}(t))}):e(s),!0}});n.push(function(t,n){return!!i(t)&&(r(t),n(),!0)});var c=Object(u.create)(n);return function(t){return new Promise(function(n,u){return c(t,function(t){"object"===Object(e.a)(t)&&Object(o.isString)(t.type)&&r(t),n(t)},u)})}}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var n=a(t,r.dispatch);return function(t){return function(r){return(e=r)&&"Generator"===e[Symbol.toStringTag]?n(r):t(r);var e}}}}n.d(r,"default",function(){return l})},86:function(t,r){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},95:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=n(176),c=(e=o)&&e.__esModule?e:{default:e};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f}}).default; |