Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

attadux

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attadux - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

cjs/middleware/workers.js

9

cjs/middleware/index.js
'use strict';
exports.__esModule = true;
exports.createValidatorMiddleware = exports.createEnhancerMiddleware = undefined;
exports.createWorkerMiddleware = exports.createValidatorMiddleware = exports.createEnhancerMiddleware = undefined;

@@ -14,5 +14,10 @@ var _enhancers = require('./enhancers');

var _workers = require('./workers');
var _workers2 = _interopRequireDefault(_workers);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports.createEnhancerMiddleware = _enhancers2['default'];
exports.createValidatorMiddleware = _validators2['default'];
exports.createValidatorMiddleware = _validators2['default'];
exports.createWorkerMiddleware = _workers2['default'];

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.attadux={})}(this,function(t){"use strict";var n=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]};var r=function(t){return function r(e){return 0===arguments.length||n(e)?r:t.apply(this,arguments)}};var e=function(t){return function e(u,o){switch(arguments.length){case 0:return e;case 1:return n(u)?e:r(function(n){return t(u,n)});default:return n(u)&&n(o)?e:n(u)?r(function(n){return t(n,o)}):n(o)?r(function(n){return t(u,n)}):t(u,o)}}},u=e(function(t,n){return t.apply(this,n)});var o=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,s){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,s,f){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}};var i=function t(r,e,u){return function(){for(var i=[],a=0,c=r,s=0;e.length>s||arguments.length>a;){var f;s>=e.length||n(e[s])&&arguments.length>a?(f=arguments[a],a+=1):f=e[s],i[s]=f,n(f)||(c-=1),s+=1}return c>0?o(c,t(r,i,u)):u.apply(this,i)}},a=e(function(t,n){return 1===t?r(n):o(t,i(t,[],n))}),c=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};var s=function(t){return"function"==typeof t["@@transducer/step"]};var f=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!c(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(s(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}};var l=function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u};var p=function(t){return"[object String]"===Object.prototype.toString.call(t)},y=r(function(t){return!!c(t)||!!t&&("object"==typeof t&&(!p(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),h=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();var d=function(t){return new h(t)},v=e(function(t,n){return o(t.length,function(){return t.apply(n,arguments)})});function g(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function b(t,n,r,e){return t["@@transducer/result"](r[e](v(t["@@transducer/step"],t),n))}var m="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var j=function(t,n,r){if("function"==typeof t&&(t=d(t)),y(r))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return b(t,n,r,"fantasy-land/reduce");if(null!=r[m])return g(t,n,r[m]());if("function"==typeof r.next)return g(t,n,r);if("function"==typeof r.reduce)return b(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")},O=function(){return this.xf["@@transducer/init"]()},S=function(t){return this.xf["@@transducer/result"](t)},A=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}(),w=e(function(t,n){return new A(t,n)});var x=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},E=Object.prototype.toString,_=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return x("callee",t)}},k=!{toString:null}.propertyIsEnumerable("toString"),N=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],P=function(){return arguments.propertyIsEnumerable("length")}(),C=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1},M=r("function"!=typeof Object.keys||P?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=P&&_(t);for(n in t)!x(n,t)||u&&"length"===n||(e[e.length]=n);if(k)for(r=N.length-1;r>=0;)x(n=N[r],t)&&!C(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),F=e(f(["fantasy-land/map","map"],w,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return a(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return j(function(r,e){return r[e]=t(n[e]),r},{},M(n));default:return l(t,n)}})),q=e(function(t,n){return n>t?n:t}),T=e(function(t,n){for(var r=n,e=0;t.length>e;){if(null==r)return;r=r[t[e]],e+=1}return r}),L=e(function(t,n){return T([t],n)}),U=e(function(t,n){return F(L(t),n)});var I=function(t){return function u(o,i,a){switch(arguments.length){case 0:return u;case 1:return n(o)?u:e(function(n,r){return t(o,n,r)});case 2:return n(o)&&n(i)?u:n(o)?e(function(n,r){return t(n,i,r)}):n(i)?e(function(n,r){return t(o,n,r)}):r(function(n){return t(o,i,n)});default:return n(o)&&n(i)&&n(a)?u:n(o)&&n(i)?e(function(n,r){return t(n,r,a)}):n(o)&&n(a)?e(function(n,r){return t(n,i,r)}):n(i)&&n(a)?e(function(n,r){return t(o,n,r)}):n(o)?r(function(n){return t(n,i,a)}):n(i)?r(function(n){return t(o,n,a)}):n(a)?r(function(n){return t(o,i,n)}):t(o,i,a)}}},R=I(j),D=r(function(t){for(var n=M(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),z=r(function t(n){return n=F(function(n){return"function"==typeof n?n:t(n)},n),a(R(q,0,U("length",D(n))),function(){var t=arguments;return F(function(n){return u(n,t)},n)})}),B=r(function(t){return a(t.length,t)}),V=e(x),$=Number.isInteger||function(t){return t<<0===t},Z=I(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),W=r(function(t){return null==t}),G=I(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var o=!W(e)&&x(u,e)?e[u]:$(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,o)}if($(u)&&c(e)){var i=[].concat(e);return i[u]=r,i}return Z(u,r,e)}),H=e(function(t,n){return n(t)});var X=function(t){return"[object Object]"===Object.prototype.toString.call(t)},J=r(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():c(t)?[]:p(t)?"":X(t)?{}:_(t)?function(){return arguments}():void 0});var K=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r};var Y=function(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1};var Q=function(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]},tt=e(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),nt=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function rt(t,n,r,e){var u=K(t),o=K(n);function i(t,n){return et(t,n,r.slice(),e.slice())}return!Y(function(t,n){return!Y(i,n,t)},o,u)}function et(t,n,r,e){if(tt(t,n))return!0;var u=nt(t);if(u!==nt(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===Q(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!tt(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!tt(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return e[o]===n;o-=1}switch(u){case"Map":return t.size===n.size&&rt(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&rt(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=M(t);if(i.length!==M(n).length)return!1;var a=r.concat([t]),c=e.concat([n]);for(o=i.length-1;o>=0;){var s=i[o];if(!x(s,n)||!et(n[s],t[s],a,c))return!1;o-=1}return!0}var ut=et,ot=e(function(t,n){return ut(t,n,[],[])}),it=r(function(t){return null!=t&&ot(t,J(t))}),at=I(function(t,n,r){return t(r[n])}),ct=B(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),st=I(function(t,n,r){return n.length>0&&t(T(n,r))}),ft=I(function(t,n,r){return ot(n,r[t])}),lt=I(function(t,n,r){return t(r)?r:n(r)}),pt=I(function(t,n,r){return t(r)?n(r):r}),yt=e(function(t,n){for(var r={},e=0;t.length>e;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),ht=e(function t(n,r){var e,u,o,i={};for(u in r)i[u]="function"===(o=typeof(e=n[u]))?e(r[u]):e&&"object"===o?t(e,r[u]):r[u];return i}),dt=I(function(t,n,r){var e,u={};for(e in n)x(e,n)&&(u[e]=x(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)x(e,r)&&!x(e,u)&&(u[e]=r[e]);return u}),vt=I(function t(n,r,e){return dt(function(r,e,u){return X(e)&&X(u)?t(n,e,u):n(r,e,u)},r,e)}),gt=e(function(t,n){return vt(function(t,n,r){return r},t,n)}),bt=e(function(t,n){return a(R(q,0,U("length",n)),function(){var r=arguments,e=this;return t.apply(e,l(function(t){return t.apply(e,r)},n))})}),mt=e(function(t,n){var r={};return r[t]=n,r});var jt=function(t,n){var r,e=(t=t||[]).length,u=(n=n||[]).length,o=[];for(r=0;e>r;)o[o.length]=t[r],r+=1;for(r=0;u>r;)o[o.length]=n[r],r+=1;return o},Ot=e(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:j(function(t,r){return jt(t,F(r,n))},[],t)});var St=r(function(t){return[t]});var At="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var o in u)x(o,u)&&(n[o]=u[o]);r+=1}return n},wt=r(function(t){return At.apply(null,[{}].concat(t))});var xt=function(t){return"[object Function]"===Object.prototype.toString.call(t)};var Et=function(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;t.length>r;){if(0===(u=t[r])&&1/u===e)return r;r+=1}return-1}if(n!=n){for(;t.length>r;){if("number"==typeof(u=t[r])&&u!=u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;t.length>r;){if(ot(t[r],n))return r;r+=1}return-1};var _t=function(t,n){return Et(n,t,0)>=0};var kt=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'},Nt=function(t){return(10>t?"0":"")+t},Pt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Nt(t.getUTCMonth()+1)+"-"+Nt(t.getUTCDate())+"T"+Nt(t.getUTCHours())+":"+Nt(t.getUTCMinutes())+":"+Nt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var Ct=function(t){return function(){return!t.apply(this,arguments)}};var Mt=function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u},Ft=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},t}(),qt=e(f(["filter"],e(function(t,n){return new Ft(t,n)}),function(t,n){return X(n)?j(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},M(n)):Mt(t,n)})),Tt=e(function(t,n){return qt(Ct(t),n)});var Lt=function t(n,r){var e=function(e){var u=r.concat([n]);return _t(e,u)?"<Circular>":t(e,u)},u=function(t,n){return l(function(n){return kt(n)+": "+e(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+l(e,n).join(", ")+"))";case"[object Array]":return"["+l(e,n).concat(u(n,Tt(function(t){return/^\d+$/.test(t)},M(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+e(n.valueOf())+")":""+n;case"[object Date]":return"new Date("+(isNaN(n.valueOf())?e(NaN):kt(Pt(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+e(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+e(n.valueOf())+")":kt(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var o=""+n;if("[object Object]"!==o)return o}return"{"+u(n,M(n)).join(", ")+"}"}},Ut=r(function(t){return Lt(t,[])}),It=e(function(t,n){return a(t+1,function(){var r=arguments[t];if(null!=r&&xt(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ut(r)+' does not have a method named "'+n+'"')})}),Rt=It(1,"split"),Dt=e(function(t,n){var r=0>t?n.length+t:t;return p(n)?n.charAt(r):n[r]}),zt=Dt(0),Bt=e(function(t,n){var r=a(t,n);return a(t,function(){return j(Ot,F(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Vt=r(function(t){return Bt(t.length,t)}),$t=e(function(t,n){return t||n}),Zt=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:Vt($t)(t,n)}),Wt=r(function(t){return function(){return t}}),Gt={"@@functional/placeholder":!0},Ht=I(function(t,n,r){return a(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Xt=e(function(t,n){return null==n||n!=n?t:n});var Jt=r(function(t){return t}),Kt=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});var Yt=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}};var Qt=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return c(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}},tn=I(Qt("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),nn=r(Qt("tail",tn(1,1/0)));var rn=function(){if(0===arguments.length)throw Error("pipe requires at least one argument");return o(arguments[0].length,R(Yt,arguments[0],nn(arguments)))},en=r(function(t){return p(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});var un=function(){if(0===arguments.length)throw Error("compose requires at least one argument");return rn.apply(this,en(arguments))},on=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)_t(t[e],n)||_t(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),an=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),cn=e(function(t,n){return At({},t,n)}),sn=B(function(t,n){return rn(cn,H(Tt(an(Function),t)),ht(qt(an(Function),t)),bt(cn,[Jt,bt(H,[Jt,un(z,yt(Gt,t),on(M(qt(an(Function),t))),M)])]))(n)});var fn,ln,pn=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},yn=function(t){return function n(r){return 0===arguments.length||pn(r)?n:t.apply(this,arguments)}},hn=yn(function(t){return t}),dn=function(t){return function n(r,e){switch(arguments.length){case 0:return n;case 1:return pn(r)?n:yn(function(n){return t(r,n)});default:return pn(r)&&pn(e)?n:pn(r)?yn(function(n){return t(n,e)}):pn(e)?yn(function(n){return t(r,n)}):t(r,e)}}},vn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},gn=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!vn(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(function(t){return"function"==typeof t["@@transducer/step"]}(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}},bn=yn(function(t){return!!vn(t)||!!t&&("object"==typeof t&&(!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),mn=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),jn=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,s){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,s,f){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}},On=dn(function(t,n){return jn(t.length,function(){return t.apply(n,arguments)})}),Sn=function(){function t(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function n(t,n,r,e){return t["@@transducer/result"](r[e](On(t["@@transducer/step"],t),n))}var r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(e,u,o){if("function"==typeof e&&(e=mn(e)),bn(o))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(e,u,o);if("function"==typeof o["fantasy-land/reduce"])return n(e,u,o,"fantasy-land/reduce");if(null!=o[r])return t(e,u,o[r]());if("function"==typeof o.next)return t(e,u,o);if("function"==typeof o.reduce)return n(e,u,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}(),An=function(){return this.xf["@@transducer/init"]()},wn=function(t){return this.xf["@@transducer/result"](t)},xn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=An,t.prototype["@@transducer/result"]=wn,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},dn(function(n,r){return new t(n,r)})}(),En=dn(function(t,n){return 1===t?yn(n):jn(t,function t(n,r,e){return function(){for(var u=[],o=0,i=n,a=0;r.length>a||arguments.length>o;){var c;a>=r.length||pn(r[a])&&arguments.length>o?(c=arguments[o],o+=1):c=r[a],u[a]=c,pn(c)||(i-=1),a+=1}return i>0?jn(i,t(n,u,e)):e.apply(this,u)}}(t,[],n))}),_n=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},kn=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return _n("callee",t)}}(),Nn=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(){return arguments.propertyIsEnumerable("length")}(),e=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1};return yn("function"!=typeof Object.keys||r?function(u){if(Object(u)!==u)return[];var o,i,a=[],c=r&&kn(u);for(o in u)!_n(o,u)||c&&"length"===o||(a[a.length]=o);if(t)for(i=n.length-1;i>=0;)_n(o=n[i],u)&&!e(a,o)&&(a[a.length]=o),i-=1;return a}:function(t){return Object(t)!==t?[]:Object.keys(t)})}(),Pn=dn(gn(["fantasy-land/map","map"],xn,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return En(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Sn(function(r,e){return r[e]=t(n[e]),r},{},Nn(n));default:return function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u}(t,n)}})),Cn=(fn=Sn,function t(n,r,e){switch(arguments.length){case 0:return t;case 1:return pn(n)?t:dn(function(t,r){return fn(n,t,r)});case 2:return pn(n)&&pn(r)?t:pn(n)?dn(function(t,n){return fn(t,r,n)}):pn(r)?dn(function(t,r){return fn(n,t,r)}):yn(function(t){return fn(n,r,t)});default:return pn(n)&&pn(r)&&pn(e)?t:pn(n)&&pn(r)?dn(function(t,n){return fn(t,n,e)}):pn(n)&&pn(e)?dn(function(t,n){return fn(t,r,n)}):pn(r)&&pn(e)?dn(function(t,r){return fn(n,t,r)}):pn(n)?yn(function(t){return fn(t,r,e)}):pn(r)?yn(function(t){return fn(n,t,e)}):pn(e)?yn(function(t){return fn(n,r,t)}):fn(n,r,e)}}),Mn=yn(function(t){return En(t.length,t)}),Fn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=An,t.prototype["@@transducer/result"]=wn,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},dn(function(n,r){return new t(n,r)})}(),qn=dn(gn(["filter"],Fn,function(t,n){return"[object Object]"===Object.prototype.toString.call(n)?Sn(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},Nn(n)):function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u}(t,n)})),Tn=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r},Ln=dn(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),Un=yn(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),In=dn(function(t,n){return function t(n,r,e,u){if(Ln(n,r))return!0;if(Un(n)!==Un(r))return!1;if(null==n||null==r)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof r.equals)return"function"==typeof n.equals&&n.equals(r)&&"function"==typeof r.equals&&r.equals(n);switch(Un(n)){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(null==(o=(n.constructor+"").match(/^function (\w*)/))?"":o[1]))return n===r;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof r||!Ln(n.valueOf(),r.valueOf()))return!1;break;case"Date":if(!Ln(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(n.source!==r.source||n.global!==r.global||n.ignoreCase!==r.ignoreCase||n.multiline!==r.multiline||n.sticky!==r.sticky||n.unicode!==r.unicode)return!1;break;case"Map":case"Set":if(!t(Tn(n.entries()),Tn(r.entries()),e,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o,i=Nn(n);if(i.length!==Nn(r).length)return!1;for(var a=e.length-1;a>=0;){if(e[a]===n)return u[a]===r;a-=1}for(e.push(n),u.push(r),a=i.length-1;a>=0;){var c=i[a];if(!_n(c,r)||!t(r[c],n[c],e,u))return!1;a-=1}return e.pop(),u.pop(),!0}(t,n,[],[])}),Rn=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=An,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r;return this.f(n)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},dn(function(n,r){return new t(n,r)})}(),Dn=dn(gn(["all"],Rn,function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),zn=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validate=void 0;var r=p(hn),e=p(Pn),u=p(Cn),o=p(Mn),i=p(qn),a=p(In),c=p(Dn),s="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},f=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},l=function(){return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var r=[],e=!0,u=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){u=!0,o=t}finally{try{!e&&a.return&&a.return()}finally{if(u)throw o}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function p(t){return t&&t.__esModule?t:{default:t}}function y(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var h=n.validate=(0,o.default)(function(t,n,r,o){return(0,u.default)(function(u,p){var d=o[p],v=r[p];if(Array.isArray(v))return f({},u,y({},p,function(t,n,r){return(0,c.default)((0,a.default)(!0),r)?t():n((0,i.default)(function(t){return!0!==t},r))}(function(){return t(d)},n,(0,e.default)(function(t){return function(t,n,r,e){var u=l(t,2),o=u[1];return!!(0,u[0])(n,r)||("function"==typeof o?o(n,e):o)}(t,d,o,p)},v))));if("object"===(void 0===v?"undefined":s(v)))return f({},u,y({},p,h(t,n,v,d)));if("function"==typeof v){var g=v(d);return f({},u,y({},p,h(t,n,g,d)))}return f({},u,y({},p,t([])))},{},Object.keys(o))});n.default=(0,o.default)(function(t,n){return h(function(){return!0},r.default,t,n)})}),Bn=(ln=zn)&&ln.__esModule&&Object.prototype.hasOwnProperty.call(ln,"default")?ln.default:ln;var Vn=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},$n=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=Vn(this.xf["@@transducer/step"](t,!0))),t},t}(),Zn=e(function(t,n){return new $n(t,n)}),Wn=e(f(["any"],Zn,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),Gn=e(function(t,n){return[t,n]}),Hn=e(function(t,n){return t&&n}),Xn=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:Vt(Hn)(t,n)}),Jn=Dt(-1),Kn=e(_t),Yn=e(function(t,n){return a(n.length,function(){for(var r=[],e=0;n.length>e;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),Qn=r(function(t){var n=[];for(var r in t)x(r,t)&&(n[n.length]=[r,t[r]]);return n}),tr=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})}),nr=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=Vn(this.xf["@@transducer/step"](t,!1))),t},t}(),rr=e(f(["all"],e(function(t,n){return new nr(t,n)}),function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0}));var er=r(function(t){return function n(r){for(var e,u,o,i=[],a=0,c=r.length;c>a;){if(y(r[a]))for(o=0,u=(e=t?n(r[a]):r[a]).length;u>o;)i[i.length]=e[o],o+=1;else i[i.length]=r[a];a+=1}return i}}(!0));function ur(t,n,r){var e,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?t in r._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(u in r._items){var o=t?1:0;return!!r._items[u][o]||(n&&(r._items[u][o]=!0),!1)}return n&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?!!_t(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in r._items?!!_t(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}var or=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!ur(t,!0,this)},t.prototype.has=function(t){return ur(t,!1,this)},t}(),ir=e(function(t,n){for(var r,e,u=new or,o=[],i=0;n.length>i;)r=t(e=n[i]),u.add(r)&&o.push(e),i+=1;return o})(Jt),ar=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),cr=r(function(t){return!t}),sr=Vt(cr);var fr=function(t){return RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))};var lr=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},pr=e(function(t,n){if(!lr(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ut(t));return fr(t).test(n)}),yr=pr(/^(?:[A-Z])([A-Z0-9_\-.]+)([A-Z0-9])$/i),hr=un(ot("Object"),T(["constructor","name"]),Xt("")),dr=sr(W),vr=sr(it),gr=un(cr,pr(/^\s*$/)),br=tr([gr,Zt(an(Number),an(String)),dr]),mr=ar([an(Boolean),an(Number),an(String),an(RegExp),an(Date)]),jr=B(function(t,n){return un(dr,T(t))(n)}),Or=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Sr=lt(an(Array),Array),Ar=lt(an(Function),Wt),wr=lt(an(String),toString),xr=function(t,n){var r;return Or({},t,((r={})[n[0]]=n[1],r))},Er=function(t,n){if(nt(t)!==nt(n)||W(n)){if(an(Array,t)&&!W(n))return[].concat(t,Sr(n));if(!hr(t))return t}else{if(mr(n)||an(Function,n))return n;if(an(Array,t))return[].concat(t,Sr(n))}return gt(t,n)},_r=e(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),kr=un(D,L("types")),Nr=function(t,n){return an(Array,t)?[].concat(t,Sr(n)):n},Pr=Ht(tr([un(cr,mr),un(cr,an(Array)),an(Object)]),un(Object.freeze,R(xr,{}),Tt(Wn(Zt(W,it))),F(function(t){var n=t[0],r=t[1];return an(Array,r)?[n,Object.freeze(_r(r.filter(mr),r.filter(mr)))]:hr(r)?[n,un(Ht(it,Wt(null),Object.freeze),qt(mr))(r)]:mr(r)?[n,r]:null}),Qn,Tt(it)),Wt({})),Cr=B(function(t,n){var r=t.namespace,e=t.store;return _r(n,n.map(function(t){return(r||"")+"/"+(e||"")+"/"+t}))}),Mr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Fr=ar([W,it]),qr=B(function(t,n){var r=n.initialState,e=void 0===r?{}:r,u=n.stateMachinesPropName,o=void 0===u?["states"]:u;return un(lt(jr(o),G(o,{})),Xt(e))(t)}),Tr=un(ir,qt(br),er,F(D),D),Lr=un(ir,qt(br),er,F(M),D),Ur=un(ir,er,F(Lr),D,L("machines")),Ir=bt(on,[Ur,kr]),Rr=un(rr(an(String)),M),Dr=un(rr(tr([hr,Zt(it,un(rr(rr(an(String))),Qn))])),D),zr=(un(rr(it),Ir),Yn(on,[Tr,M])),Br=(B(function(t,n,r){return un(V(wr(t)),Xt({}),T([wr(n)]),Xt({}))(r)}),B(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return un(Object.freeze,R(xr,{}),F(function(r){var e=r[1];return[r[0],yt(un(F(zt),qt(un(Kn(Gt,D(n)),zt)),qt(un(V(Gt,t),Jn)),qt(rr(an(String))),Qn)(e),e)]}),qt(Xn(un(an(String),zt),un(hr,Jn))),Qn)(t)})),Vr=B(function(t,n){return un(Object.freeze,R(xr,{}),F(function(t){return[t[0],Br(t[1],n.types)]}),Qn)(t)}),$r=Ht(tr([an(String),Kn("."),yr]),Rt("."),un(pt(it,Wt(["states"])),qt(gr),pt(an(String),Array))),Zr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.machines,r=void 0===n?{}:n,e=t.stateMachinesPropName;return un(gt(F(Wt("initial"),r)),yt(M(r)),Xt({}),T(Sr(e)))},Wr=B(function(t,n,r){var e=r.machines,u=void 0===e?{}:e,o=Zr({machines:u,stateMachinesPropName:r.stateMachinesPropName})(t);return un(R(xr,{}),F(function(t){var r=t[0],e=t[1];return un(Gn(r),lt(dr,Wt(o[r])),L(n.type),Xt({}),L(o[r]))(e)}),Qn)(u)}),Gr=B(function(t,n,r){var e=r.machines,u=Zr({machines:e,stateMachinesPropName:r.stateMachinesPropName})(t);return un(Wn(function(t){var r=t[0],e=t[1];return un(dr,L(n.type),Xt({}),L(Gt,e),L(r))(u)}),Qn)(e)}),Hr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Xr=function(t,n){return W(t)?L("initialState",n):t},Jr=B(function(t,n,r,e){return t(Xr(r,n),e,n)}),Kr=B(function(t,n,r,e){var u=qr(Xr(r,n),n),o=G(n.stateMachinesPropName,Wr(u,e,n),{});return Hr({},t(Hr({},u,o),e,n),o)}),Yr=B(function(t,n,r,e,u){return n.reducer(t.reducer(Xr(r),e,u),e,u)}),Qr=bt(Jr,[un(Xt(Jt),T(["options","reducer"])),Jt]),te=bt(Kr,[un(Xt(Jt),T(["options","reducer"])),Jt]),ne=tn(0,-1),re=e(function(t,n){var r={};return o(n.length,function(){var e=t.apply(this,arguments);return x(e,r)||(r[e]=n.apply(this,arguments)),r[e]})})(function(){return Ut(arguments)}),ee=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),ue=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},oe=un(ot(!0),L("needsExtraction")),ie=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return re(bt(Jn(n),ne(n)))},ae=I(function(t,n,r){return Xt(t,T(n,r))}),ce=I(function(t,n,r){return r.replace(t,n)}),se=Wt(!0),fe=r(function(t){var n=R(q,0,F(function(t){return t[0].length},t));return o(n,function(){for(var n=0;t.length>n;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})});function le(t,n,r){t.addEventListener("message",function(e){var u=e.data,o=u.id;if("RPC"===u.type&&null!=o)if(u.method){var i=n[u.method];null==i?t.postMessage({type:"RPC",id:o,error:"NO_SUCH_METHOD"}):Promise.resolve().then(function(){return i.apply(null,u.params)}).then(function(n){t.postMessage({type:"RPC",id:o,result:n})}).catch(function(n){t.postMessage({type:"RPC",id:o,error:""+n})})}else{var a=r[o];if(null==a)throw Error("Unknown callback "+o);delete r[o],u.error?a[1](Error(u.error)):a[0](u.result)}})}var pe="undefined"!=typeof Worker&&null!==Worker&&"undefined"!=typeof Blob&&null!==Blob,ye=fe([[an(Function),It(0,"toString")],[an(String),Jt],[se,Wt("")]]),he=rn(ce(/^(\s*)\(/m,"export const run = ("),ce(/^(\s*)const/m,"export const"),ce(/^(\s*)function\s*\(/m,"export function run("),ce(/^(\s*)function\s+/m,"export function "),ce(/^(\s*)function\*\s+/m,"export function* "),ce(/^(\s*)async\s+\(/m,"export const run = async ("),ce(/^(\s*)async\s+function\s*\(/m,"export async function run(")),de=rn(ye,he,lt(pr(/^\s*$/),function(t){return function(t,n){var r=this,e={},u="__xpo"+(""+Math.random()).substring(2)+"__";"function"==typeof t&&(t="("+Function.prototype.toString.call(t)+")("+u+")"),t=function(t,n,r){return t=(t=t.replace(/^(\s*)export\s+default\s+/m,function(t,e){return r.default=!0,""+e+n+".default="})).replace(/^(\s*)export\s+((?:async\s*)?function(?:\s*\*)?|const|let|var)(\s+)([a-zA-Z$_][a-zA-Z0-9$_]*)/gm,function(t,e,u,o,i){return r[i]=!0,""+e+n+"."+i+"="+u+o+i}),"var "+n+"={};\n"+t+"\n"+n+";"}(t,u,e)+"\n("+Function.prototype.toString.call(le)+")(self,"+u+",{})";var o,i=URL.createObjectURL(new Blob([t])),a=new Worker(i,n),c=a.terminate,s={},f=0;for(o in a.kill=function(t){a.postMessage({type:"KILL",signal:t}),setTimeout(a.terminate)},a.terminate=function(){URL.revokeObjectURL(i),c.call(r)},a.call=function(t,n){return new Promise(function(r,e){var u="rpc"+ ++f;s[u]=[r,e],a.postMessage({type:"RPC",id:u,method:t,params:n})})},a.rpcMethods={},le(a,a.rpcMethods,s),a.expose=function(t){a[o]=function(){return a.call(t,[].slice.call(arguments))}},e)o in a||a.expose(o);return a}(""+t)})),ve=bt(ct,[un(Ar,ae({},["options","workers"])),Jt]),ge=rn(ve,F(pe?de:rn(ye,he)),Tt(pr(/^\s*$/))),be=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=Vn(this.xf["@@transducer/step"](t,n))),t},t}(),me=e(f(["find"],e(function(t,n){return new be(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}})),je=bt(ct,[un(Ar,ae({},["options","queries"])),Jt]),Oe=un(Tt(W),F(function(t){return an(Array,t)?(me(an(Function),t)||Jt)(me(an(String),t)||""):an(String,t)?t:null}),je),Se=un(qt(an(String)),F(Ht(an(Array),me(an(String)),Wt(null))),L("queries")),Ae=bt(G(["consts","queries"]),[Se,Jt]),we=e(Ct(f(["any"],Zn,Wn)));var xe=function(t){return"[object Number]"===Object.prototype.toString.call(t)},Ee=r(function(t){return null!=t&&xe(t.length)?t.length:NaN}),_e=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),ke=r(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),Ne="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Pe=r(!("function"==typeof String.prototype.trim)||Ne.trim()?function(t){var n=RegExp("^["+Ne+"]["+Ne+"]*"),r=RegExp("["+Ne+"]["+Ne+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()}),Ce=It(0,"toUpperCase"),Me=Pr({VALIDATION_LEVELS:["STRICT","CANCEL","PRUNE","LOG"]}).VALIDATION_LEVELS,Fe=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},qe=Kn(Gt,M(Me)),Te=un(lt(qe,Wt("CANCEL")),Ce,Pe,wr),Le=B(function(t,n){return un(R(function(n,r){var e,u=r[0],o=r[1],i=hr(o)?Le(t[u],o):o;return hr(i)&&it(i)?n:Fe({},n,((e={})[u]=!0===i?t[u]:i,e))},{}),Tt(un(an(Array),Dt(1))),ke)(n)}),Ue=un(R(function(t,n){var r,e=n[0],u=n[1],o=hr(u)?Ue(u):u;return hr(o)&&it(o)?t:Fe({},t,((r={})[e]=o,r))},{}),Tt(function(t){return!0===t[1]}),ke),Ie=function(t){return un(Xt(se),L(Gt,t),L("type"))},Re=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(Wn(Zt(Xn(hr,t),an(Array))),_e)(n)},De={namespace:Jt,store:Jt,validationLevel:Te,stateMachinesPropName:$r,consts:Pr},ze={consts:{},creators:{},machines:{},queries:{},workers:{},selectors:{},stateMachinesPropName:"states",types:[],validationLevel:"CANCEL",validators:{}},Be={validationLevel:[[qe,"must be: STRICT, CANCEL, PRUNE, or LOG. CANCEL is the default."]],store:[[br,"must be a (non-blank) string"]],namespace:[[br,"must be a (non-blank) string"]],stateMachinesPropName:[[Zt(br,Xn(an(Array),rr(br))),"must be a string (or array of strings)"]],consts:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],creators:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],machines:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],selectors:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],types:[[Xn(an(Array),rr(an(String))),"must be an object (or a function returning an object)"]],validators:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],enhancers:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],queries:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],workers:[[Zt(hr,an(Function)),"must be an object (or a function returning an object)"]],reducer:[[an(Function),"must be a function"]],initialState:[[ar([mr,hr,an(Function)]),"must be an object, a function returning an object, or a primitive value"]]},Ve={store:[[br,"must be a (non-blank) string"]],namespace:[[br,"must be a (non-blank) string"]],types:[[hr,"must be an object"],[un(rr(un(ot(1),Ee,ir)),F(function(t){var n=t[1];return[t[0],un(Jn,Rt("/"))(n)]}),qt(rr(an(String))),Qn),"each key and value are identical"]],machines:[[un(rr(hr),D),"must be an object"],[un(rr(vr),D),"must not be empty"],[un(rr(tr([Rr,Dr])),D),"each machine contains nested objects (states) whose inputs and transitions are strings"],[un(rr(zr),D),"each transition value must also be a state"]],stateMachinesPropName:[[Xn(an(Array),rr(br)),'must be an array of strings (representing the path to the "current state" prop)']]},$e=un(it,on(["store","namespace","validators","types"]),M),Ze=ar([sr(hr),un(it,M),un(we($e),D)]),We=e(function(t,n){return n.match(t)||[]}),Ge=e(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),He=B(function(t,n){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;n>e;e++)r[e-1]=arguments[e];return br(t)&&r.length?Ge(We(/(%?)(%([jods]))/g,t),F(fe([[Zt(an(Number),an(String)),Jt],[Zt(an(Array),hr),JSON.stringify]]))(r)).reduce(function(t,n){return t.replace(n[0],n[1])},t).replace(/%{2,2}/g,"%"):t}(t,n)}),Xe=un(F(He("These inputs are not valid Action Types: %o")),qt(vr),F(Ir),D,qt($e)),Je=un(F(He("These violations of the schema rules for the middleware were found: %o")),qt(vr),F(un(Ue,Bn(Ve))),D,qt($e)),Ke=un(rr(function(t){return ot(t[0],L("store",t[1]))}),Qn,qt($e)),Ye=function(t){if(Ze(t))return"No ducks have been provided! To create the Attadux middleware please provide an Object containing one or more ducks";if(!Ke(t))return"The name of each duck should match its 'store' prop, otherwise it will not be possible to find the correct duck for each dispatched action";var n=Xe(t);if(vr(n))return He("Invalid State Machines: %o",n);var r=Je(t);return vr(r)?He("Invalid Ducks: %o",r):null},Qe=un(R(function(t,n){return Z(n.store,n,t)},{}),qt($e),Kt(Jt)),tu=function(t){return un(Xt({}),Ht(gr,L(Gt,qt($e,t)),Wt({})),Zt(Dt(1),zt),Rt("/"),L("type"))},nu=un(wt,Ot([un(mt("stateMachinesPropName"),Wt(["states"])),un(bt(gt,[un(ht(De),yt(M(De)),Ae),un(mt("types"),bt(Cr,[Jt,L("types")]))]),L("validatedOptions")),un(pt(vr,mt("invalidOptions")),Ue,L("validationsResult")),un(mt("options"),L("validatedOptions"))]),St,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=yt(M(Be),t),r=Bn(Be,n);return{validationsResult:r,validatedOptions:Le(n,r)}}),ru=un(lt(ft("validationLevel","PRUNE"),ht({validators:F(function(t){return un(Ue,t)})})),bt(gt,[Jt,Ht(st(W,["options","validators"]),Wt({}),un(mt("validators"),F(Bn),bt(ct,[un(Ar,T(["options","validators"])),Jt])))])),eu=bt(gt,[Jt,Ht(st(W,["options","queries"]),Wt({}),un(mt("queries"),Oe))]),uu=bt(gt,[Jt,Ht(st(W,["options","workers"]),Wt({}),un(mt("workers"),ge))]),ou=bt(gt,[Jt,Ht(st(W,["options","machines"]),Wt({}),un(mt("machines"),bt(Vr,[bt(ct,[un(Ar,T(["options","machines"])),Jt]),Jt])))]),iu=bt(gt,[Jt,un(mt("initialState"),bt(gt,[bt(ct,[un(Ar,T(["options","initialState"])),Jt]),Ht(at(it,"machines"),Wt({}),un(H({}),bt(G,[L("stateMachinesPropName"),un(function(){return R(function(t,n){var r;return Mr({},t,((r={})[n]="initial",r))},{},M((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{}))},L("machines"))])))]))]),au=bt(gt,[Jt,Ht(st(W,["options","selectors"]),Wt({}),un(mt("selectors"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(R(function(t,n){var r;return ue({},t,((r={})[n[0]]=n[1].justAddDuckSelectors(t),r))},t),Qn,ee(oe))(t)},bt(ct,[un(Ar,T(["options","selectors"])),Jt])))]),cu=bt(gt,[Jt,Ht(st(W,["options","enhancers"]),Wt({}),un(mt("enhancers"),un(F(Ht(V("type"),B(function(t,n){return un(yt(M(t)),sn(t))(n)}),sn)),bt(ct,[un(Ar,T(["options","enhancers"])),Jt]))))]),su=bt(gt,[Jt,Ht(st(W,["options","creators"]),Wt({}),un(mt("creators"),bt(ct,[un(Ar,T(["options","creators"])),Jt])))]),fu=bt(gt,[Jt,Ht(Zt(st(W,["options","reducer"]),at(it,"machines")),un(mt("reducer"),Qr),un(mt("reducer"),te))]),lu=bt(gt,[Jt,Ht(at(W,"validators"),Wt({}),un(z({isPayloadValid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(cr,Re,H(n),Ie(t))(n)}},getValidationErrors:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(it,Wt(null)),Ue,H(n),Ie(t))(n)}},pruneInvalidFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(it,Wt(null)),Le(n),function(t){return t(n)},Ie(t))(n)}}}),L("validators")))]),pu=e(function(t,n){return a(t,function(){for(var r,e=1,u=n,o=0;t>=e&&"function"==typeof u;)u=u.apply(this,Array.prototype.slice.call(arguments,o,r=e===t?arguments.length:o+u.length)),e+=1,o=r;return u})}),yu=I(function(t,n,r){for(var e=0,u=r.length,o=[],i=[n];u>e;)i=t(i[0],r[e]),o[e]=i[1],e+=1;return[i[0],o]}),hu=e(function(t,n){if(c(t)){if(c(n))return t.concat(n);throw new TypeError(Ut(n)+" is not an array")}if(p(t)){if(p(n))return t+n;throw new TypeError(Ut(n)+" is not a string")}if(null!=t&&xt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&xt(t.concat))return t.concat(n);throw new TypeError(Ut(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),du=I(function(t,n,r){return vt(function(n,r,e){return t(r,e)},n,r)}),vu=B(function(t,n,r){var e=n.options;return fe([[un(Wn(an(Function)),F(L(r)),Gn(e)),Wt(bt(du(Er),[Ar(e[r]),bt(Ar(t[r]),[Jt,Ar(e[r])])]))],[un(W,L(r)),Wt(e[r])],[se,un(du(Er,e[r]),L(r))]])(t)}),gu=function(t){return un(bt(gt,[Jt,un(mt("reducer"),(n=t,r=n.options,un(Ht(rr(V("reducer")),un(Yr(r),Jn),un(me(V("reducer")),Gn(r))),Gn(r))))]),R(gt,{}),hu([ze,t.options]),St,H(t),Ar);var n,r},bu=B(function(t,n,r){return un(gt(r),wt,Jn,yu(function(t,n){var r=n[0],e=n[1],u=un(mt(r),pt(an(Function),H(r)),e)(t);return[gt(t,u),u]},n))(t)}),mu=un(Object.freeze,fu,uu,lu,su,cu,au,iu,ou,ru,eu,nu,gt(ze)),ju=bt(un,[Wt(mu),function(t){var n=gu(t);return function(r){var e=n(r),u=[["consts",un(du(Nr,Gt,e.consts),T(["options","consts"]))],["types",un(ir,hu(e.types),T(["options","types"]))],["initialState",vu(e)],["machines",vu(e)],["creators",vu(e)],["selectors",vu(e)],["queries",vu(e)],["enhancers",vu(e)],["validators",vu(e)],["workers",vu(e)]];return bu(u,t,e)}}]),Ou=pu(2,ju),Su=Wt(!1);t.createRow=Qe,t.createDuck=mu,t.extendDuck=Ou,t.createExtenderForDuck=ju,t.createSelector=ie,t.createDuckSelector=function(t){return{needsExtraction:!0,justAddDuckSelectors:function(){var n=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return Array.isArray(n)?ie.apply(void 0,n):n}}},t.createEnhancerMiddleware=function(t){var n=Ye(t);if(n)throw Error(n);var r=tu(t);return function(t){var n=t.dispatch;return function(t){return function(e){var u=r(e).enhancers,o=(void 0===u?{}:u)[e.type];if(!an(Function,o))return t(e);var i=o(e);return Zt(W,it)(i)?t(e):(i.type!==e.type&&n(i),t(i))}}}},t.createValidatorMiddleware=function(t){var n=Ye(t);if(n)throw Error(n);var r=tu(t);return function(t){var n=t.getState;return function(t){return function(e){var u,o=r(e),i=o.machines,a=o.isPayloadValid,c=void 0===a?se:a,s=o.getValidationErrors,f=void 0===s?Wt(null):s,l=o.pruneInvalidFields,p=void 0===l?Wt(e):l,y=o.stateMachinesPropName,h=void 0===y?"states":y,d=o.validationLevel,v=void 0===d?Me.CANCEL:d;if(Fr(i))return t(e);var g=((u={})[Me.CANCEL]=lt(c,Su),u[Me.LOG]=bt(cn,[Jt,un(Ht(W,Wt({}),mt("validationErrors")),f)]),u[Me.PRUNE]=p,u[Me.STRICT]=lt(bt(Gr,[n,Jt,Wt({machines:i,stateMachinesPropName:h})]),Su),u),b=ct(un(Xt(Jt),L(v))(g),e);return b&&t(b)}}}},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.attadux={})}(this,function(t){"use strict";var n=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]};var r=function(t){return function r(e){return 0===arguments.length||n(e)?r:t.apply(this,arguments)}};var e=function(t){return function e(u,o){switch(arguments.length){case 0:return e;case 1:return n(u)?e:r(function(n){return t(u,n)});default:return n(u)&&n(o)?e:n(u)?r(function(n){return t(n,o)}):n(o)?r(function(n){return t(u,n)}):t(u,o)}}},u=e(function(t,n){return t.apply(this,n)});var o=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}};var i=function t(r,e,u){return function(){for(var i=[],a=0,c=r,f=0;e.length>f||arguments.length>a;){var s;f>=e.length||n(e[f])&&arguments.length>a?(s=arguments[a],a+=1):s=e[f],i[f]=s,n(s)||(c-=1),f+=1}return c>0?o(c,t(r,i,u)):u.apply(this,i)}},a=e(function(t,n){return 1===t?r(n):o(t,i(t,[],n))}),c=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};var f=function(t){return"function"==typeof t["@@transducer/step"]};var s=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!c(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(f(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}};var l=function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u};var p=function(t){return"[object String]"===Object.prototype.toString.call(t)},y=r(function(t){return!!c(t)||!!t&&("object"==typeof t&&(!p(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),h=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();var d=function(t){return new h(t)},v=e(function(t,n){return o(t.length,function(){return t.apply(n,arguments)})});function g(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function b(t,n,r,e){return t["@@transducer/result"](r[e](v(t["@@transducer/step"],t),n))}var m="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var j=function(t,n,r){if("function"==typeof t&&(t=d(t)),y(r))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return b(t,n,r,"fantasy-land/reduce");if(null!=r[m])return g(t,n,r[m]());if("function"==typeof r.next)return g(t,n,r);if("function"==typeof r.reduce)return b(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")},O=function(){return this.xf["@@transducer/init"]()},S=function(t){return this.xf["@@transducer/result"](t)},w=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}(),A=e(function(t,n){return new w(t,n)});var x=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},E=Object.prototype.toString,k=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return x("callee",t)}},_=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(){return arguments.propertyIsEnumerable("length")}(),C=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1},M=r("function"!=typeof Object.keys||N?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=N&&k(t);for(n in t)!x(n,t)||u&&"length"===n||(e[e.length]=n);if(_)for(r=P.length-1;r>=0;)x(n=P[r],t)&&!C(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),F=e(s(["fantasy-land/map","map"],A,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return a(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return j(function(r,e){return r[e]=t(n[e]),r},{},M(n));default:return l(t,n)}})),q=e(function(t,n){return n>t?n:t}),T=e(function(t,n){for(var r=n,e=0;t.length>e;){if(null==r)return;r=r[t[e]],e+=1}return r}),L=e(function(t,n){return T([t],n)}),U=e(function(t,n){return F(L(t),n)});var I=function(t){return function u(o,i,a){switch(arguments.length){case 0:return u;case 1:return n(o)?u:e(function(n,r){return t(o,n,r)});case 2:return n(o)&&n(i)?u:n(o)?e(function(n,r){return t(n,i,r)}):n(i)?e(function(n,r){return t(o,n,r)}):r(function(n){return t(o,i,n)});default:return n(o)&&n(i)&&n(a)?u:n(o)&&n(i)?e(function(n,r){return t(n,r,a)}):n(o)&&n(a)?e(function(n,r){return t(n,i,r)}):n(i)&&n(a)?e(function(n,r){return t(o,n,r)}):n(o)?r(function(n){return t(n,i,a)}):n(i)?r(function(n){return t(o,n,a)}):n(a)?r(function(n){return t(o,i,n)}):t(o,i,a)}}},R=I(j),D=r(function(t){for(var n=M(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),z=r(function t(n){return n=F(function(n){return"function"==typeof n?n:t(n)},n),a(R(q,0,U("length",D(n))),function(){var t=arguments;return F(function(n){return u(n,t)},n)})}),B=r(function(t){return a(t.length,t)}),V=e(x),$=Number.isInteger||function(t){return t<<0===t},W=I(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),Z=r(function(t){return null==t}),G=I(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var o=!Z(e)&&x(u,e)?e[u]:$(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,o)}if($(u)&&c(e)){var i=[].concat(e);return i[u]=r,i}return W(u,r,e)}),H=e(function(t,n){return n(t)});var X=function(t){return"[object Object]"===Object.prototype.toString.call(t)},J=r(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():c(t)?[]:p(t)?"":X(t)?{}:k(t)?function(){return arguments}():void 0});var K=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r};var Y=function(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1};var Q=function(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]},tt=e(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),nt=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function rt(t,n,r,e){var u=K(t),o=K(n);function i(t,n){return et(t,n,r.slice(),e.slice())}return!Y(function(t,n){return!Y(i,n,t)},o,u)}function et(t,n,r,e){if(tt(t,n))return!0;var u=nt(t);if(u!==nt(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===Q(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!tt(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!tt(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var o=r.length-1;o>=0;){if(r[o]===t)return e[o]===n;o-=1}switch(u){case"Map":return t.size===n.size&&rt(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&rt(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=M(t);if(i.length!==M(n).length)return!1;var a=r.concat([t]),c=e.concat([n]);for(o=i.length-1;o>=0;){var f=i[o];if(!x(f,n)||!et(n[f],t[f],a,c))return!1;o-=1}return!0}var ut=et,ot=e(function(t,n){return ut(t,n,[],[])}),it=r(function(t){return null!=t&&ot(t,J(t))}),at=I(function(t,n,r){return t(r[n])}),ct=B(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),ft=I(function(t,n,r){return n.length>0&&t(T(n,r))}),st=I(function(t,n,r){return ot(n,r[t])}),lt=I(function(t,n,r){return t(r)?r:n(r)}),pt=I(function(t,n,r){return t(r)?n(r):r}),yt=e(function(t,n){for(var r={},e=0;t.length>e;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),ht=e(function t(n,r){var e,u,o,i={};for(u in r)i[u]="function"===(o=typeof(e=n[u]))?e(r[u]):e&&"object"===o?t(e,r[u]):r[u];return i}),dt=I(function(t,n,r){var e,u={};for(e in n)x(e,n)&&(u[e]=x(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)x(e,r)&&!x(e,u)&&(u[e]=r[e]);return u}),vt=I(function t(n,r,e){return dt(function(r,e,u){return X(e)&&X(u)?t(n,e,u):n(r,e,u)},r,e)}),gt=e(function(t,n){return vt(function(t,n,r){return r},t,n)}),bt=e(function(t,n){return a(R(q,0,U("length",n)),function(){var r=arguments,e=this;return t.apply(e,l(function(t){return t.apply(e,r)},n))})}),mt=e(function(t,n){var r={};return r[t]=n,r});var jt=function(t,n){var r,e=(t=t||[]).length,u=(n=n||[]).length,o=[];for(r=0;e>r;)o[o.length]=t[r],r+=1;for(r=0;u>r;)o[o.length]=n[r],r+=1;return o},Ot=e(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:j(function(t,r){return jt(t,F(r,n))},[],t)});var St=r(function(t){return[t]});var wt="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var o in u)x(o,u)&&(n[o]=u[o]);r+=1}return n},At=r(function(t){return wt.apply(null,[{}].concat(t))});var xt=function(t){return"[object Function]"===Object.prototype.toString.call(t)};var Et=function(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;t.length>r;){if(0===(u=t[r])&&1/u===e)return r;r+=1}return-1}if(n!=n){for(;t.length>r;){if("number"==typeof(u=t[r])&&u!=u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;t.length>r;){if(ot(t[r],n))return r;r+=1}return-1};var kt=function(t,n){return Et(n,t,0)>=0};var _t=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'},Pt=function(t){return(10>t?"0":"")+t},Nt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Pt(t.getUTCMonth()+1)+"-"+Pt(t.getUTCDate())+"T"+Pt(t.getUTCHours())+":"+Pt(t.getUTCMinutes())+":"+Pt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var Ct=function(t){return function(){return!t.apply(this,arguments)}};var Mt=function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u},Ft=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=S,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},t}(),qt=e(s(["filter"],e(function(t,n){return new Ft(t,n)}),function(t,n){return X(n)?j(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},M(n)):Mt(t,n)})),Tt=e(function(t,n){return qt(Ct(t),n)});var Lt=function t(n,r){var e=function(e){var u=r.concat([n]);return kt(e,u)?"<Circular>":t(e,u)},u=function(t,n){return l(function(n){return _t(n)+": "+e(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+l(e,n).join(", ")+"))";case"[object Array]":return"["+l(e,n).concat(u(n,Tt(function(t){return/^\d+$/.test(t)},M(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+e(n.valueOf())+")":""+n;case"[object Date]":return"new Date("+(isNaN(n.valueOf())?e(NaN):_t(Nt(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+e(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+e(n.valueOf())+")":_t(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var o=""+n;if("[object Object]"!==o)return o}return"{"+u(n,M(n)).join(", ")+"}"}},Ut=r(function(t){return Lt(t,[])}),It=e(function(t,n){return a(t+1,function(){var r=arguments[t];if(null!=r&&xt(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ut(r)+' does not have a method named "'+n+'"')})}),Rt=It(1,"split"),Dt=e(function(t,n){var r=0>t?n.length+t:t;return p(n)?n.charAt(r):n[r]}),zt=Dt(0),Bt=e(function(t,n){var r=a(t,n);return a(t,function(){return j(Ot,F(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Vt=r(function(t){return Bt(t.length,t)}),$t=e(function(t,n){return t||n}),Wt=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:Vt($t)(t,n)}),Zt=r(function(t){return function(){return t}}),Gt={"@@functional/placeholder":!0},Ht=I(function(t,n,r){return a(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Xt=e(function(t,n){return null==n||n!=n?t:n});var Jt=r(function(t){return t}),Kt=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});var Yt=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}};var Qt=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return c(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}},tn=I(Qt("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),nn=r(Qt("tail",tn(1,1/0)));var rn=function(){if(0===arguments.length)throw Error("pipe requires at least one argument");return o(arguments[0].length,R(Yt,arguments[0],nn(arguments)))},en=r(function(t){return p(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});var un=function(){if(0===arguments.length)throw Error("compose requires at least one argument");return rn.apply(this,en(arguments))},on=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)kt(t[e],n)||kt(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),an=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),cn=e(function(t,n){return wt({},t,n)}),fn=B(function(t,n){return rn(cn,H(Tt(an(Function),t)),ht(qt(an(Function),t)),bt(cn,[Jt,bt(H,[Jt,un(z,yt(Gt,t),on(M(qt(an(Function),t))),M)])]))(n)});var sn,ln,pn=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},yn=function(t){return function n(r){return 0===arguments.length||pn(r)?n:t.apply(this,arguments)}},hn=yn(function(t){return t}),dn=function(t){return function n(r,e){switch(arguments.length){case 0:return n;case 1:return pn(r)?n:yn(function(n){return t(r,n)});default:return pn(r)&&pn(e)?n:pn(r)?yn(function(n){return t(n,e)}):pn(e)?yn(function(n){return t(r,n)}):t(r,e)}}},vn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},gn=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!vn(u)){for(var o=0;t.length>o;){if("function"==typeof u[t[o]])return u[t[o]].apply(u,e);o+=1}if(function(t){return"function"==typeof t["@@transducer/step"]}(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}},bn=yn(function(t){return!!vn(t)||!!t&&("object"==typeof t&&(!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),mn=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),jn=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,o){return n.apply(this,arguments)};case 6:return function(t,r,e,u,o,i){return n.apply(this,arguments)};case 7:return function(t,r,e,u,o,i,a){return n.apply(this,arguments)};case 8:return function(t,r,e,u,o,i,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,u,o,i,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,o,i,a,c,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}},On=dn(function(t,n){return jn(t.length,function(){return t.apply(n,arguments)})}),Sn=function(){function t(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function n(t,n,r,e){return t["@@transducer/result"](r[e](On(t["@@transducer/step"],t),n))}var r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(e,u,o){if("function"==typeof e&&(e=mn(e)),bn(o))return function(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(e,u,o);if("function"==typeof o["fantasy-land/reduce"])return n(e,u,o,"fantasy-land/reduce");if(null!=o[r])return t(e,u,o[r]());if("function"==typeof o.next)return t(e,u,o);if("function"==typeof o.reduce)return n(e,u,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}(),wn=function(){return this.xf["@@transducer/init"]()},An=function(t){return this.xf["@@transducer/result"](t)},xn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=wn,t.prototype["@@transducer/result"]=An,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},dn(function(n,r){return new t(n,r)})}(),En=dn(function(t,n){return 1===t?yn(n):jn(t,function t(n,r,e){return function(){for(var u=[],o=0,i=n,a=0;r.length>a||arguments.length>o;){var c;a>=r.length||pn(r[a])&&arguments.length>o?(c=arguments[o],o+=1):c=r[a],u[a]=c,pn(c)||(i-=1),a+=1}return i>0?jn(i,t(n,u,e)):e.apply(this,u)}}(t,[],n))}),kn=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},_n=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return kn("callee",t)}}(),Pn=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(){return arguments.propertyIsEnumerable("length")}(),e=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1};return yn("function"!=typeof Object.keys||r?function(u){if(Object(u)!==u)return[];var o,i,a=[],c=r&&_n(u);for(o in u)!kn(o,u)||c&&"length"===o||(a[a.length]=o);if(t)for(i=n.length-1;i>=0;)kn(o=n[i],u)&&!e(a,o)&&(a[a.length]=o),i-=1;return a}:function(t){return Object(t)!==t?[]:Object.keys(t)})}(),Nn=dn(gn(["fantasy-land/map","map"],xn,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return En(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Sn(function(r,e){return r[e]=t(n[e]),r},{},Pn(n));default:return function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u}(t,n)}})),Cn=(sn=Sn,function t(n,r,e){switch(arguments.length){case 0:return t;case 1:return pn(n)?t:dn(function(t,r){return sn(n,t,r)});case 2:return pn(n)&&pn(r)?t:pn(n)?dn(function(t,n){return sn(t,r,n)}):pn(r)?dn(function(t,r){return sn(n,t,r)}):yn(function(t){return sn(n,r,t)});default:return pn(n)&&pn(r)&&pn(e)?t:pn(n)&&pn(r)?dn(function(t,n){return sn(t,n,e)}):pn(n)&&pn(e)?dn(function(t,n){return sn(t,r,n)}):pn(r)&&pn(e)?dn(function(t,r){return sn(n,t,r)}):pn(n)?yn(function(t){return sn(t,r,e)}):pn(r)?yn(function(t){return sn(n,t,e)}):pn(e)?yn(function(t){return sn(n,r,t)}):sn(n,r,e)}}),Mn=yn(function(t){return En(t.length,t)}),Fn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=wn,t.prototype["@@transducer/result"]=An,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},dn(function(n,r){return new t(n,r)})}(),qn=dn(gn(["filter"],Fn,function(t,n){return"[object Object]"===Object.prototype.toString.call(n)?Sn(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},Pn(n)):function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u}(t,n)})),Tn=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r},Ln=dn(function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}),Un=yn(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),In=dn(function(t,n){return function t(n,r,e,u){if(Ln(n,r))return!0;if(Un(n)!==Un(r))return!1;if(null==n||null==r)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof r.equals)return"function"==typeof n.equals&&n.equals(r)&&"function"==typeof r.equals&&r.equals(n);switch(Un(n)){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===(null==(o=(n.constructor+"").match(/^function (\w*)/))?"":o[1]))return n===r;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof r||!Ln(n.valueOf(),r.valueOf()))return!1;break;case"Date":if(!Ln(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(n.source!==r.source||n.global!==r.global||n.ignoreCase!==r.ignoreCase||n.multiline!==r.multiline||n.sticky!==r.sticky||n.unicode!==r.unicode)return!1;break;case"Map":case"Set":if(!t(Tn(n.entries()),Tn(r.entries()),e,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o,i=Pn(n);if(i.length!==Pn(r).length)return!1;for(var a=e.length-1;a>=0;){if(e[a]===n)return u[a]===r;a-=1}for(e.push(n),u.push(r),a=i.length-1;a>=0;){var c=i[a];if(!kn(c,r)||!t(r[c],n[c],e,u))return!1;a-=1}return e.pop(),u.pop(),!0}(t,n,[],[])}),Rn=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=wn,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r;return this.f(n)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},dn(function(n,r){return new t(n,r)})}(),Dn=dn(gn(["all"],Rn,function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),zn=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validate=void 0;var r=p(hn),e=p(Nn),u=p(Cn),o=p(Mn),i=p(qn),a=p(In),c=p(Dn),f="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},s=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},l=function(){return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var r=[],e=!0,u=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){u=!0,o=t}finally{try{!e&&a.return&&a.return()}finally{if(u)throw o}}return r}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function p(t){return t&&t.__esModule?t:{default:t}}function y(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var h=n.validate=(0,o.default)(function(t,n,r,o){return(0,u.default)(function(u,p){var d=o[p],v=r[p];if(Array.isArray(v))return s({},u,y({},p,function(t,n,r){return(0,c.default)((0,a.default)(!0),r)?t():n((0,i.default)(function(t){return!0!==t},r))}(function(){return t(d)},n,(0,e.default)(function(t){return function(t,n,r,e){var u=l(t,2),o=u[1];return!!(0,u[0])(n,r)||("function"==typeof o?o(n,e):o)}(t,d,o,p)},v))));if("object"===(void 0===v?"undefined":f(v)))return s({},u,y({},p,h(t,n,v,d)));if("function"==typeof v){var g=v(d);return s({},u,y({},p,h(t,n,g,d)))}return s({},u,y({},p,t([])))},{},Object.keys(o))});n.default=(0,o.default)(function(t,n){return h(function(){return!0},r.default,t,n)})}),Bn=(ln=zn)&&ln.__esModule&&Object.prototype.hasOwnProperty.call(ln,"default")?ln.default:ln;var Vn=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},$n=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=Vn(this.xf["@@transducer/step"](t,!0))),t},t}(),Wn=e(function(t,n){return new $n(t,n)}),Zn=e(s(["any"],Wn,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),Gn=e(function(t,n){return[t,n]}),Hn=e(function(t,n){return t&&n}),Xn=e(function(t,n){return xt(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:Vt(Hn)(t,n)}),Jn=Dt(-1),Kn=e(kt),Yn=e(function(t,n){return a(n.length,function(){for(var r=[],e=0;n.length>e;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),Qn=r(function(t){var n=[];for(var r in t)x(r,t)&&(n[n.length]=[r,t[r]]);return n}),tr=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})}),nr=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=Vn(this.xf["@@transducer/step"](t,!1))),t},t}(),rr=e(s(["all"],e(function(t,n){return new nr(t,n)}),function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0}));var er=r(function(t){return function n(r){for(var e,u,o,i=[],a=0,c=r.length;c>a;){if(y(r[a]))for(o=0,u=(e=t?n(r[a]):r[a]).length;u>o;)i[i.length]=e[o],o+=1;else i[i.length]=r[a];a+=1}return i}}(!0));function ur(t,n,r){var e,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?t in r._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(u in r._items){var o=t?1:0;return!!r._items[u][o]||(n&&(r._items[u][o]=!0),!1)}return n&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?!!kt(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in r._items?!!kt(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}var or=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!ur(t,!0,this)},t.prototype.has=function(t){return ur(t,!1,this)},t}(),ir=e(function(t,n){for(var r,e,u=new or,o=[],i=0;n.length>i;)r=t(e=n[i]),u.add(r)&&o.push(e),i+=1;return o})(Jt),ar=r(function(t){return a(R(q,0,U("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),cr=r(function(t){return!t}),fr=Vt(cr);var sr=function(t){return RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))};var lr=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},pr=e(function(t,n){if(!lr(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ut(t));return sr(t).test(n)}),yr=pr(/^(?:[A-Z])([A-Z0-9_\-.]+)([A-Z0-9])$/i),hr=un(ot("Object"),T(["constructor","name"]),Xt("")),dr=fr(Z),vr=fr(it),gr=un(cr,pr(/^\s*$/)),br=tr([gr,Wt(an(Number),an(String)),dr]),mr=ar([an(Boolean),an(Number),an(String),an(RegExp),an(Date)]),jr=B(function(t,n){return un(dr,T(t))(n)}),Or=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Sr=lt(an(Array),Array),wr=lt(an(Function),Zt),Ar=lt(an(String),toString),xr=function(t,n){var r;return Or({},t,((r={})[n[0]]=n[1],r))},Er=function(t,n){if(nt(t)!==nt(n)||Z(n)){if(an(Array,t)&&!Z(n))return[].concat(t,Sr(n));if(!hr(t))return t}else{if(mr(n)||an(Function,n))return n;if(an(Array,t))return[].concat(t,Sr(n))}return gt(t,n)},kr=e(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),_r=un(D,L("types")),Pr=function(t,n){return an(Array,t)?[].concat(t,Sr(n)):n},Nr=Ht(tr([un(cr,mr),un(cr,an(Array)),an(Object)]),un(Object.freeze,R(xr,{}),Tt(Zn(Wt(Z,it))),F(function(t){var n=t[0],r=t[1];return an(Array,r)?[n,Object.freeze(kr(r.filter(mr),r.filter(mr)))]:hr(r)?[n,un(Ht(it,Zt(null),Object.freeze),qt(mr))(r)]:mr(r)?[n,r]:null}),Qn,Tt(it)),Zt({})),Cr=B(function(t,n){var r=t.namespace,e=t.store;return kr(n,n.map(function(t){return(r||"")+"/"+(e||"")+"/"+t}))}),Mr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Fr=ar([Z,it]),qr=B(function(t,n){var r=n.initialState,e=void 0===r?{}:r,u=n.stateMachinesPropName,o=void 0===u?["states"]:u;return un(lt(jr(o),G(o,{})),Xt(e))(t)}),Tr=un(ir,qt(br),er,F(D),D),Lr=un(ir,qt(br),er,F(M),D),Ur=un(ir,er,F(Lr),D,L("machines")),Ir=bt(on,[Ur,_r]),Rr=un(rr(an(String)),M),Dr=un(rr(tr([hr,Wt(it,un(rr(rr(an(String))),Qn))])),D),zr=(un(rr(it),Ir),Yn(on,[Tr,M])),Br=(B(function(t,n,r){return un(V(Ar(t)),Xt({}),T([Ar(n)]),Xt({}))(r)}),B(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return un(Object.freeze,R(xr,{}),F(function(r){var e=r[1];return[r[0],yt(un(F(zt),qt(un(Kn(Gt,D(n)),zt)),qt(un(V(Gt,t),Jn)),qt(rr(an(String))),Qn)(e),e)]}),qt(Xn(un(an(String),zt),un(hr,Jn))),Qn)(t)})),Vr=B(function(t,n){return un(Object.freeze,R(xr,{}),F(function(t){return[t[0],Br(t[1],n.types)]}),Qn)(t)}),$r=Ht(tr([an(String),Kn("."),yr]),Rt("."),un(pt(it,Zt(["states"])),qt(gr),pt(an(String),Array))),Wr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.machines,r=void 0===n?{}:n,e=t.stateMachinesPropName;return un(gt(F(Zt("initial"),r)),yt(M(r)),Xt({}),T(Sr(e)))},Zr=B(function(t,n,r){var e=r.machines,u=void 0===e?{}:e,o=Wr({machines:u,stateMachinesPropName:r.stateMachinesPropName})(t);return un(R(xr,{}),F(function(t){var r=t[0],e=t[1];return un(Gn(r),lt(dr,Zt(o[r])),L(n.type),Xt({}),L(o[r]))(e)}),Qn)(u)}),Gr=B(function(t,n,r){var e=r.machines,u=Wr({machines:e,stateMachinesPropName:r.stateMachinesPropName})(t);return un(Zn(function(t){var r=t[0],e=t[1];return un(dr,L(n.type),Xt({}),L(Gt,e),L(r))(u)}),Qn)(e)}),Hr=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Xr=function(t,n){return Z(t)?L("initialState",n):t},Jr=B(function(t,n,r,e){return t(Xr(r,n),e,n)}),Kr=B(function(t,n,r,e){var u=qr(Xr(r,n),n),o=G(n.stateMachinesPropName,Zr(u,e,n),{});return Hr({},t(Hr({},u,o),e,n),o)}),Yr=B(function(t,n,r,e,u){return n.reducer(t.reducer(Xr(r),e,u),e,u)}),Qr=bt(Jr,[un(Xt(Jt),T(["options","reducer"])),Jt]),te=bt(Kr,[un(Xt(Jt),T(["options","reducer"])),Jt]),ne=tn(0,-1),re=e(function(t,n){var r={};return o(n.length,function(){var e=t.apply(this,arguments);return x(e,r)||(r[e]=n.apply(this,arguments)),r[e]})})(function(){return Ut(arguments)}),ee=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),ue=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},oe=un(ot(!0),L("needsExtraction")),ie=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return re(bt(Jn(n),ne(n)))},ae=I(function(t,n,r){return Xt(t,T(n,r))}),ce=I(function(t,n,r){return r.replace(t,n)}),fe=Zt(!0),se=r(function(t){var n=R(q,0,F(function(t){return t[0].length},t));return o(n,function(){for(var n=0;t.length>n;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})});function le(t,n,r){t.addEventListener("message",function(e){var u=e.data,o=u.id;if("RPC"===u.type&&null!=o)if(u.method){var i=n[u.method];null==i?t.postMessage({type:"RPC",id:o,error:"NO_SUCH_METHOD"}):Promise.resolve().then(function(){return i.apply(null,u.params)}).then(function(n){t.postMessage({type:"RPC",id:o,result:n})}).catch(function(n){t.postMessage({type:"RPC",id:o,error:""+n})})}else{var a=r[o];if(null==a)throw Error("Unknown callback "+o);delete r[o],u.error?a[1](Error(u.error)):a[0](u.result)}})}var pe="undefined"!=typeof Worker&&null!==Worker&&"undefined"!=typeof Blob&&null!==Blob,ye=se([[an(Function),It(0,"toString")],[an(String),Jt],[fe,Zt("")]]),he=rn(ce(/^(\s*)\(/m,"export const run = ("),ce(/^(\s*)const/m,"export const"),ce(/^(\s*)function\s*\(/m,"export function run("),ce(/^(\s*)function\s+/m,"export function "),ce(/^(\s*)function\*\s+/m,"export function* "),ce(/^(\s*)async\s+\(/m,"export const run = async ("),ce(/^(\s*)async\s+function\s*\(/m,"export async function run(")),de=rn(ye,he,lt(pr(/^\s*$/),function(t){return function(t,n){var r=this,e={},u="__xpo"+(""+Math.random()).substring(2)+"__";"function"==typeof t&&(t="("+Function.prototype.toString.call(t)+")("+u+")"),t=function(t,n,r){return t=(t=t.replace(/^(\s*)export\s+default\s+/m,function(t,e){return r.default=!0,""+e+n+".default="})).replace(/^(\s*)export\s+((?:async\s*)?function(?:\s*\*)?|const|let|var)(\s+)([a-zA-Z$_][a-zA-Z0-9$_]*)/gm,function(t,e,u,o,i){return r[i]=!0,""+e+n+"."+i+"="+u+o+i}),"var "+n+"={};\n"+t+"\n"+n+";"}(t,u,e)+"\n("+Function.prototype.toString.call(le)+")(self,"+u+",{})";var o,i=URL.createObjectURL(new Blob([t])),a=new Worker(i,n),c=a.terminate,f={},s=0;for(o in a.kill=function(t){a.postMessage({type:"KILL",signal:t}),setTimeout(a.terminate)},a.terminate=function(){URL.revokeObjectURL(i),c.call(r)},a.call=function(t,n){return new Promise(function(r,e){var u="rpc"+ ++s;f[u]=[r,e],a.postMessage({type:"RPC",id:u,method:t,params:n})})},a.rpcMethods={},le(a,a.rpcMethods,f),a.expose=function(t){a[o]=function(){return a.call(t,[].slice.call(arguments))}},e)o in a||a.expose(o);return a}(""+t)})),ve=bt(ct,[un(wr,ae({},["options","workers"])),Jt]),ge=rn(ve,F(pe?de:rn(ye,he)),Tt(pr(/^\s*$/))),be=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=O,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=Vn(this.xf["@@transducer/step"](t,n))),t},t}(),me=e(s(["find"],e(function(t,n){return new be(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}})),je=bt(ct,[un(wr,ae({},["options","queries"])),Jt]),Oe=un(Tt(Z),F(function(t){return an(Array,t)?(me(an(Function),t)||Jt)(me(an(String),t)||""):an(String,t)?t:null}),je),Se=un(qt(an(String)),F(Ht(an(Array),me(an(String)),Zt(null))),L("queries")),we=bt(G(["consts","queries"]),[Se,Jt]),Ae=e(Ct(s(["any"],Wn,Zn)));var xe=function(t){return"[object Number]"===Object.prototype.toString.call(t)},Ee=r(function(t){return null!=t&&xe(t.length)?t.length:NaN}),ke=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),_e=r(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),Pe="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Ne=r(!("function"==typeof String.prototype.trim)||Pe.trim()?function(t){var n=RegExp("^["+Pe+"]["+Pe+"]*"),r=RegExp("["+Pe+"]["+Pe+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()}),Ce=It(0,"toUpperCase"),Me=Nr({VALIDATION_LEVELS:["STRICT","CANCEL","PRUNE","LOG"]}).VALIDATION_LEVELS,Fe=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},qe=Kn(Gt,M(Me)),Te=un(lt(qe,Zt("CANCEL")),Ce,Ne,Ar),Le=B(function(t,n){return un(R(function(n,r){var e,u=r[0],o=r[1],i=hr(o)?Le(t[u],o):o;return hr(i)&&it(i)?n:Fe({},n,((e={})[u]=!0===i?t[u]:i,e))},{}),Tt(un(an(Array),Dt(1))),_e)(n)}),Ue=un(R(function(t,n){var r,e=n[0],u=n[1],o=hr(u)?Ue(u):u;return hr(o)&&it(o)?t:Fe({},t,((r={})[e]=o,r))},{}),Tt(function(t){return!0===t[1]}),_e),Ie=function(t){return un(Xt(fe),L(Gt,t),L("type"))},Re=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(Zn(Wt(Xn(hr,t),an(Array))),ke)(n)},De={namespace:Jt,store:Jt,validationLevel:Te,stateMachinesPropName:$r,consts:Nr},ze={consts:{},creators:{},machines:{},queries:{},workers:{},selectors:{},stateMachinesPropName:"states",types:[],validationLevel:"CANCEL",validators:{}},Be={validationLevel:[[qe,"must be: STRICT, CANCEL, PRUNE, or LOG. CANCEL is the default."]],store:[[br,"must be a (non-blank) string"]],namespace:[[br,"must be a (non-blank) string"]],stateMachinesPropName:[[Wt(br,Xn(an(Array),rr(br))),"must be a string (or array of strings)"]],consts:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],creators:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],machines:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],selectors:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],types:[[Xn(an(Array),rr(an(String))),"must be an object (or a function returning an object)"]],validators:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],enhancers:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],queries:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],workers:[[Wt(hr,an(Function)),"must be an object (or a function returning an object)"]],reducer:[[an(Function),"must be a function"]],initialState:[[ar([mr,hr,an(Function)]),"must be an object, a function returning an object, or a primitive value"]]},Ve={store:[[br,"must be a (non-blank) string"]],namespace:[[br,"must be a (non-blank) string"]],types:[[hr,"must be an object"],[un(rr(un(ot(1),Ee,ir)),F(function(t){var n=t[1];return[t[0],un(Jn,Rt("/"))(n)]}),qt(rr(an(String))),Qn),"each key and value are identical"]],machines:[[un(rr(hr),D),"must be an object"],[un(rr(vr),D),"must not be empty"],[un(rr(tr([Rr,Dr])),D),"each machine contains nested objects (states) whose inputs and transitions are strings"],[un(rr(zr),D),"each transition value must also be a state"]],stateMachinesPropName:[[Xn(an(Array),rr(br)),'must be an array of strings (representing the path to the "current state" prop)']]},$e=un(it,on(["store","namespace","validators","types"]),M),We=ar([fr(hr),un(it,M),un(Ae($e),D)]),Ze=e(function(t,n){return n.match(t)||[]}),Ge=e(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),He=B(function(t,n){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;n>e;e++)r[e-1]=arguments[e];return br(t)&&r.length?Ge(Ze(/(%?)(%([jods]))/g,t),F(se([[Wt(an(Number),an(String)),Jt],[Wt(an(Array),hr),JSON.stringify]]))(r)).reduce(function(t,n){return t.replace(n[0],n[1])},t).replace(/%{2,2}/g,"%"):t}(t,n)}),Xe=un(F(He("These inputs are not valid Action Types: %o")),qt(vr),F(Ir),D,qt($e)),Je=un(F(He("These violations of the schema rules for the middleware were found: %o")),qt(vr),F(un(Ue,Bn(Ve))),D,qt($e)),Ke=un(rr(function(t){return ot(t[0],L("store",t[1]))}),Qn,qt($e)),Ye=function(t){if(We(t))return"No ducks have been provided! To create the Attadux middleware please provide an Object containing one or more ducks";if(!Ke(t))return"The name of each duck should match its 'store' prop, otherwise it will not be possible to find the correct duck for each dispatched action";var n=Xe(t);if(vr(n))return He("Invalid State Machines: %o",n);var r=Je(t);return vr(r)?He("Invalid Ducks: %o",r):null},Qe=un(R(function(t,n){return W(n.store,n,t)},{}),qt($e),Kt(Jt)),tu=function(t){return un(Xt({}),Ht(gr,L(Gt,qt($e,t)),Zt({})),Wt(Dt(1),zt),Rt("/"),L("type"))},nu=un(At,Ot([un(mt("stateMachinesPropName"),Zt(["states"])),un(bt(gt,[un(ht(De),yt(M(De)),we),un(mt("types"),bt(Cr,[Jt,L("types")]))]),L("validatedOptions")),un(pt(vr,mt("invalidOptions")),Ue,L("validationsResult")),un(mt("options"),L("validatedOptions"))]),St,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=yt(M(Be),t),r=Bn(Be,n);return{validationsResult:r,validatedOptions:Le(n,r)}}),ru=un(lt(st("validationLevel","PRUNE"),ht({validators:F(function(t){return un(Ue,t)})})),bt(gt,[Jt,Ht(ft(Z,["options","validators"]),Zt({}),un(mt("validators"),F(Bn),bt(ct,[un(wr,T(["options","validators"])),Jt])))])),eu=bt(gt,[Jt,Ht(ft(Z,["options","queries"]),Zt({}),un(mt("queries"),Oe))]),uu=bt(gt,[Jt,Ht(ft(Z,["options","workers"]),Zt({}),un(mt("workers"),ge))]),ou=bt(gt,[Jt,Ht(ft(Z,["options","machines"]),Zt({}),un(mt("machines"),bt(Vr,[bt(ct,[un(wr,T(["options","machines"])),Jt]),Jt])))]),iu=bt(gt,[Jt,un(mt("initialState"),bt(gt,[bt(ct,[un(wr,T(["options","initialState"])),Jt]),Ht(at(it,"machines"),Zt({}),un(H({}),bt(G,[L("stateMachinesPropName"),un(function(){return R(function(t,n){var r;return Mr({},t,((r={})[n]="initial",r))},{},M((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{}))},L("machines"))])))]))]),au=bt(gt,[Jt,Ht(ft(Z,["options","selectors"]),Zt({}),un(mt("selectors"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(R(function(t,n){var r;return ue({},t,((r={})[n[0]]=n[1].justAddDuckSelectors(t),r))},t),Qn,ee(oe))(t)},bt(ct,[un(wr,T(["options","selectors"])),Jt])))]),cu=bt(gt,[Jt,Ht(ft(Z,["options","enhancers"]),Zt({}),un(mt("enhancers"),un(F(Ht(V("type"),B(function(t,n){return un(yt(M(t)),fn(t))(n)}),fn)),bt(ct,[un(wr,T(["options","enhancers"])),Jt]))))]),fu=bt(gt,[Jt,Ht(ft(Z,["options","creators"]),Zt({}),un(mt("creators"),bt(ct,[un(wr,T(["options","creators"])),Jt])))]),su=bt(gt,[Jt,Ht(Wt(ft(Z,["options","reducer"]),at(it,"machines")),un(mt("reducer"),Qr),un(mt("reducer"),te))]),lu=bt(gt,[Jt,Ht(at(Z,"validators"),Zt({}),un(z({isPayloadValid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(cr,Re,H(n),Ie(t))(n)}},getValidationErrors:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(it,Zt(null)),Ue,H(n),Ie(t))(n)}},pruneInvalidFields:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return un(pt(it,Zt(null)),Le(n),function(t){return t(n)},Ie(t))(n)}}}),L("validators")))]),pu=e(function(t,n){return a(t,function(){for(var r,e=1,u=n,o=0;t>=e&&"function"==typeof u;)u=u.apply(this,Array.prototype.slice.call(arguments,o,r=e===t?arguments.length:o+u.length)),e+=1,o=r;return u})}),yu=I(function(t,n,r){for(var e=0,u=r.length,o=[],i=[n];u>e;)i=t(i[0],r[e]),o[e]=i[1],e+=1;return[i[0],o]}),hu=e(function(t,n){if(c(t)){if(c(n))return t.concat(n);throw new TypeError(Ut(n)+" is not an array")}if(p(t)){if(p(n))return t+n;throw new TypeError(Ut(n)+" is not a string")}if(null!=t&&xt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&xt(t.concat))return t.concat(n);throw new TypeError(Ut(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),du=I(function(t,n,r){return vt(function(n,r,e){return t(r,e)},n,r)}),vu=B(function(t,n,r){var e=n.options;return se([[un(Zn(an(Function)),F(L(r)),Gn(e)),Zt(bt(du(Er),[wr(e[r]),bt(wr(t[r]),[Jt,wr(e[r])])]))],[un(Z,L(r)),Zt(e[r])],[fe,un(du(Er,e[r]),L(r))]])(t)}),gu=function(t){return un(bt(gt,[Jt,un(mt("reducer"),(n=t,r=n.options,un(Ht(rr(V("reducer")),un(Yr(r),Jn),un(me(V("reducer")),Gn(r))),Gn(r))))]),R(gt,{}),hu([ze,t.options]),St,H(t),wr);var n,r},bu=B(function(t,n,r){return un(gt(r),At,Jn,yu(function(t,n){var r=n[0],e=n[1],u=un(mt(r),pt(an(Function),H(r)),e)(t);return[gt(t,u),u]},n))(t)}),mu=un(Object.freeze,su,uu,lu,fu,cu,au,iu,ou,ru,eu,nu,gt(ze)),ju=bt(un,[Zt(mu),function(t){var n=gu(t);return function(r){var e=n(r),u=[["consts",un(du(Pr,Gt,e.consts),T(["options","consts"]))],["types",un(ir,hu(e.types),T(["options","types"]))],["initialState",vu(e)],["machines",vu(e)],["creators",vu(e)],["selectors",vu(e)],["queries",vu(e)],["enhancers",vu(e)],["validators",vu(e)],["workers",vu(e)]];return bu(u,t,e)}}]),Ou=pu(2,ju),Su=Zt(!1),wu=I(function(t,n,r){return an(t,r[n])}),Au=I(function(t,n,r){return null!=r&&x(n,r)?r[n]:t});var xu=un(Dt(1),Rt("/"));t.createRow=Qe,t.createDuck=mu,t.extendDuck=Ou,t.createExtenderForDuck=ju,t.createSelector=ie,t.createDuckSelector=function(t){return{needsExtraction:!0,justAddDuckSelectors:function(){var n=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return Array.isArray(n)?ie.apply(void 0,n):n}}},t.createEnhancerMiddleware=function(t){var n=Ye(t);if(n)throw Error(n);var r=tu(t);return function(t){var n=t.dispatch;return function(t){return function(e){var u=r(e).enhancers,o=(void 0===u?{}:u)[e.type];if(!an(Function,o))return t(e);var i=o(e);return Wt(Z,it)(i)?t(e):(i.type!==e.type&&n(i),t(i))}}}},t.createValidatorMiddleware=function(t){var n=Ye(t);if(n)throw Error(n);var r=tu(t);return function(t){var n=t.getState;return function(t){return function(e){var u,o=r(e),i=o.machines,a=o.isPayloadValid,c=void 0===a?fe:a,f=o.getValidationErrors,s=void 0===f?Zt(null):f,l=o.pruneInvalidFields,p=void 0===l?Zt(e):l,y=o.stateMachinesPropName,h=void 0===y?"states":y,d=o.validationLevel,v=void 0===d?Me.CANCEL:d;if(Fr(i))return t(e);var g=((u={})[Me.CANCEL]=lt(c,Su),u[Me.LOG]=bt(cn,[Jt,un(Ht(Z,Zt({}),mt("validationErrors")),s)]),u[Me.PRUNE]=p,u[Me.STRICT]=lt(bt(Gr,[n,Jt,Zt({machines:i,stateMachinesPropName:h})]),Su),u),b=ct(un(Xt(Jt),L(v))(g),e);return b&&t(b)}}}},t.createWorkerMiddleware=function(t){var n=Ye(t);if(n)throw Error(n);var r=tu(t);return function(t){var n=t.dispatch,e=t.getState;return function(t){return function(u){return o=function*(){if(T(["meta","worker"])(u)){var o=r(u).workers,i=void 0===o?{}:o,a=rn(T(["meta","worker"]),lt(an(String),Zt(u.type)),Au(Promise.resolve))(u)(i),c=xu(u.type),f={action:u,state:c?e()[c]:{}},s=void 0;an(Function,a)?s=yield a(f):wu(Function,"run",a)&&(s=yield a.run(f)),L("type",s)&&n(s)}return t(u)}(),new Promise(function(t,n){function r(u,i){try{var a=o[i?"throw":"next"](u)}catch(t){return void n(t)}a.done?t(a.value):Promise.resolve(a.value).then(r,e)}function e(t){r(t,1)}r()});var o}}}},Object.defineProperty(t,"__esModule",{value:!0})});
import createEnhancerMiddleware from './enhancers';
import createValidatorMiddleware from './validators';
import createWorkerMiddleware from './workers';
export { createEnhancerMiddleware, createValidatorMiddleware };
export { createEnhancerMiddleware, createValidatorMiddleware, createWorkerMiddleware };
{
"name": "attadux",
"version": "0.1.9",
"version": "0.1.10",
"description": "Implementation of the redux-modular-ducks, forked from the extensible-duck implementation and extended to include spected validators, state machines, helpers, and to follow a broader/looser definition of constants",

@@ -5,0 +5,0 @@ "main": "cjs/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc