New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@async-af/filter

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@async-af/filter - npm Package Compare versions

Comparing version 7.0.26 to 7.0.27

/*!
* @async-af/filter/esm v7.0.26
* @async-af/filter/esm v7.0.27
*

@@ -14,49 +14,39 @@ * AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?) filterAF method

var permissiveIsArrayLike = function permissiveIsArrayLike(obj) {
const permissiveIsArrayLike = function permissiveIsArrayLike(obj) {
return Array.isArray(obj) || obj != null && obj.length != null;
};
var promiseAllWithHoles = function promiseAllWithHoles(promises) {
return new Promise(function (resolve, reject) {
var length = promises.length >>> 0;
var result = Array(length);
var pending = length;
var i = length;
if (!length) return resolve(result);
const promiseAllWithHoles = promises => new Promise((resolve, reject) => {
const length = promises.length >>> 0;
const result = Array(length);
let pending = length;
let i = length;
if (!length) return resolve(result);
var settlePromise = function settlePromise(i) {
return Promise.resolve(promises[i]).then(function (value) {
if (i in promises) result[i] = value;
if (! --pending) resolve(result);
}, reject);
};
const settlePromise = i => Promise.resolve(promises[i]).then(value => {
if (i in promises) result[i] = value;
if (! --pending) resolve(result);
}, reject);
while (i--) {
settlePromise(i);
}
while (i--) settlePromise(i);
});
const serial = arr => function resolveSerially(resolved, i) {
const {
length
} = resolved;
if (!length) return Promise.resolve(resolved);
const hole = !(i in arr);
return Promise.resolve(arr[i]).then(el => {
if (!hole) resolved[i] = el;
if (i === length - 1) return resolved;
return resolveSerially(resolved, i + 1);
});
};
}(Array(arr.length >>> 0), 0);
var serial = function serial(arr) {
return function resolveSerially(resolved, i) {
var length = resolved.length;
if (!length) return Promise.resolve(resolved);
var hole = !(i in arr);
return Promise.resolve(arr[i]).then(function (el) {
if (!hole) resolved[i] = el;
if (i === length - 1) return resolved;
return resolveSerially(resolved, i + 1);
});
}(Array(arr.length >>> 0), 0);
const parallel = function parallel(arr, mapper) {
let thisArg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
return promiseAllWithHoles(arr, el => el).then(!mapper ? undefined : arr => promiseAllWithHoles(Array.prototype.map.call(arr, mapper, thisArg)));
};
var parallel = function parallel(arr, mapper) {
var thisArg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
return promiseAllWithHoles(arr, function (el) {
return el;
}).then(!mapper ? undefined : function (arr) {
return promiseAllWithHoles(Array.prototype.map.call(arr, mapper, thisArg));
});
};
/**

@@ -109,21 +99,11 @@ * creates a new `Array` with all elements that pass the test implemented by the provided callback function

var filterAF = function filterAF(callback$$1) {
var _this = this;
var thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
return this.then(function (arr) {
const filterAF = function filterAF(callback$$1) {
let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
return this.then(arr => {
if (!permissiveIsArrayLike(arr)) throw TypeError("filterAF cannot be called on ".concat(arr, ", only on an Array or array-like Object"));
if (typeof callback$$1 !== 'function') throw TypeError("".concat(callback$$1, " is not a function"));
return (_this.inSeries ? serial : parallel)(arr).then(function (arr) {
return (_this.inSeries ? arr.reduce(function (bools, el, i, arr) {
return bools.then(function (bools) {
bools[i] = callback$$1.call(thisArg, el, i, arr);
return Promise.all(bools);
});
}, Promise.all([])) : parallel(arr, callback$$1, thisArg)).then(function (bools) {
return arr.filter(function (_, i) {
return bools[i];
});
});
});
return (this.inSeries ? serial : parallel)(arr).then(arr => (this.inSeries ? arr.reduce((bools, el, i, arr) => bools.then(bools => {
bools[i] = callback$$1.call(thisArg, el, i, arr);
return Promise.all(bools);
}), Promise.all([])) : parallel(arr, callback$$1, thisArg)).then(bools => arr.filter((_, i) => bools[i])));
});

@@ -130,0 +110,0 @@ };

/*!
* @async-af/filter/esm/min v7.0.26
* @async-af/filter/esm/min v7.0.27
*

@@ -12,3 +12,3 @@ * AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?) filterAF method

*/
var r=r=>new Promise((e,n)=>{var t=r.length>>>0,o=Array(t),i=t,a=t;if(!t)return e(o);for(var l=t=>Promise.resolve(r[t]).then(n=>{t in r&&(o[t]=n),--i||e(o)},n);a--;)l(a)}),e=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return r(e).then(n?e=>r(Array.prototype.map.call(e,n,t)):void 0)};export default function(r){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(o=>{if(!(Array.isArray(i=o)||null!=i&&null!=i.length))throw TypeError("filterAF cannot be called on ".concat(o,", only on an Array or array-like Object"));var i;if("function"!=typeof r)throw TypeError("".concat(r," is not a function"));return(n.inSeries?r=>(function e(n,t){var o=n.length;if(!o)return Promise.resolve(n);var i=!(t in r);return Promise.resolve(r[t]).then(r=>(i||(n[t]=r),t===o-1?n:e(n,t+1)))})(Array(r.length>>>0),0):e)(o).then(o=>(n.inSeries?o.reduce((e,n,o,i)=>e.then(e=>(e[o]=r.call(t,n,o,i),Promise.all(e))),Promise.all([])):e(o,r,t)).then(r=>o.filter((e,n)=>r[n])))})};
const e=e=>new Promise((r,n)=>{const t=e.length>>>0,o=Array(t);let i=t,l=t;if(!t)return r(o);const a=t=>Promise.resolve(e[t]).then(n=>{t in e&&(o[t]=n),--i||r(o)},n);for(;l--;)a(l)}),r=function(r,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e(r).then(n?r=>e(Array.prototype.map.call(r,n,t)):void 0)};export default function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(o=>{if(!(Array.isArray(t=o)||null!=t&&null!=t.length))throw TypeError("filterAF cannot be called on ".concat(o,", only on an Array or array-like Object"));if("function"!=typeof e)throw TypeError("".concat(e," is not a function"));return(this.inSeries?e=>(function r(n,t){const{length:o}=n;if(!o)return Promise.resolve(n);const i=!(t in e);return Promise.resolve(e[t]).then(e=>(i||(n[t]=e),t===o-1?n:r(n,t+1)))})(Array(e.length>>>0),0):r)(o).then(t=>(this.inSeries?t.reduce((r,t,o,i)=>r.then(r=>(r[o]=e.call(n,t,o,i),Promise.all(r))),Promise.all([])):r(t,e,n)).then(e=>t.filter((r,n)=>e[n])))});var t};
//# sourceMappingURL=min.js.map
/*!
* @async-af/filter v7.0.26
* @async-af/filter v7.0.27
*

@@ -178,3 +178,5 @@ * AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?) filterAF method

const serial = arr => function resolveSerially(resolved, i) {
const length = resolved.length;
const {
length
} = resolved;
if (!length) return Promise.resolve(resolved);

@@ -189,3 +191,6 @@ const hole = !(i in arr);

const parallel = (arr, mapper, thisArg = undefined) => Object(_promiseAllWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr, el => el).then(!mapper ? undefined : arr => Object(_promiseAllWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(Array.prototype.map.call(arr, mapper, thisArg)));
const parallel = function parallel(arr, mapper) {
let thisArg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
return Object(_promiseAllWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr, el => el).then(!mapper ? undefined : arr => Object(_promiseAllWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(Array.prototype.map.call(arr, mapper, thisArg)));
};

@@ -255,6 +260,7 @@

const filterAF = function filterAF(callback, thisArg = undefined) {
const filterAF = function filterAF(callback) {
let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
return this.then(arr => {
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError(`filterAF cannot be called on ${arr}, only on an Array or array-like Object`);
if (typeof callback !== 'function') throw TypeError(`${callback} is not a function`);
if (!Object(_internal_permissiveIsArrayLike__WEBPACK_IMPORTED_MODULE_1__["default"])(arr)) throw TypeError("filterAF cannot be called on ".concat(arr, ", only on an Array or array-like Object"));
if (typeof callback !== 'function') throw TypeError("".concat(callback, " is not a function"));
return (this.inSeries ? _internal_resolve__WEBPACK_IMPORTED_MODULE_2__["serial"] : _internal_resolve__WEBPACK_IMPORTED_MODULE_2__["parallel"])(arr).then(arr => (this.inSeries ? arr.reduce((bools, el, i, arr) => bools.then(bools => {

@@ -261,0 +267,0 @@ bools[i] = callback.call(thisArg, el, i, arr);

/*!
* @async-af/filter/legacy/min v7.0.26
* @async-af/filter/legacy/min v7.0.27
*

@@ -12,3 +12,3 @@ * AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?) filterAF method

*/
var t,n;t="undefined"!=typeof self?self:this,n=function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=126)}([function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n,r){var e=r(30)("wks"),o=r(28),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n,r){t.exports=r(67)},function(t,n){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(10),o=r(25);t.exports=r(8)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(3),i=r(11),u=r(6),c=r(12),f=function(t,n,r){var s,a,l,p=t&f.F,v=t&f.G,h=t&f.S,d=t&f.P,y=t&f.B,m=t&f.W,x=v?o:o[n]||(o[n]={}),_=x.prototype,g=v?e:h?e[n]:(e[n]||{}).prototype;for(s in v&&(r=n),r)(a=!p&&g&&void 0!==g[s])&&c(x,s)||(l=a?g[s]:r[s],x[s]=v&&"function"!=typeof g[s]?r[s]:y&&a?i(l,e):m&&g[s]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((x.virtual||(x.virtual={}))[s]=l,t&f.R&&_&&!_[s]&&u(_,s,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,r){t.exports=!r(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports={}},function(t,n,r){var e=r(4),o=r(56),i=r(46),u=Object.defineProperty;n.f=r(8)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(13);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(47),o=r(20);t.exports=function(t){return e(o(t))}},function(t,n,r){"use strict";r.d(n,"b",function(){return u}),r.d(n,"a",function(){return c});var e=r(2),o=r.n(e),i=r(26),u=function(t){return function n(r,e){var i=r.length;if(!i)return o.a.resolve(r);var u=!(e in t);return o.a.resolve(t[e]).then(function(t){return u||(r[e]=t),e===i-1?r:n(r,e+1)})}(Array(t.length>>>0),0)},c=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return Object(i.a)(t,function(t){return t}).then(n?function(t){return Object(i.a)(Array.prototype.map.call(t,n,r))}:void 0)}},function(t,n,r){var e=r(10).f,o=r(12),i=r(1)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(5),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(30)("keys"),o=r(28);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n,r){"use strict";var e=r(13);t.exports.f=function(t){return new function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}(t)}},function(t,n,r){"use strict";n.a=function(t){return Array.isArray(t)||null!=t&&null!=t.length}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){"use strict";var e=r(2),o=r.n(e);n.a=function(t){return new o.a(function(n,r){var e=t.length>>>0,i=Array(e),u=e,c=e;if(!e)return n(i);for(var f=function(e){return o.a.resolve(t[e]).then(function(r){e in t&&(i[e]=r),--u||n(i)},r)};c--;)f(c)})}},function(t,n,r){var e=r(21),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!0},function(t,n,r){var e=r(0),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(14),o=r(1)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){"use strict";var e=r(29),o=r(7),i=r(48),u=r(6),c=r(9),f=r(65),s=r(17),a=r(58),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,h,d,y,m){f(r,n,h);var x,_,g,b=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",j="values"==d,S=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],T=P||b(d),M=d?j?b("entries"):T:void 0,L="Array"==n&&O.entries||P;if(L&&(g=a(L.call(new t)))!==Object.prototype&&g.next&&(s(g,w,!0),e||"function"==typeof g[l]||u(g,l,v)),j&&P&&"values"!==P.name&&(S=!0,T=function(){return P.call(this)}),e&&!m||!p&&!S&&O[l]||u(O,l,T),c[n]=T,c[w]=v,d)if(x={values:j?T:b("values"),keys:y?T:b("keys"),entries:M},m)for(_ in x)_ in O||i(O,_,x[_]);else o(o.P+o.F*(p||S),n,x);return x}},function(t,n,r){var e=r(0).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),o=r(13),i=r(1)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[i])?n:o(r)}},function(t,n,r){var e,o,i,u=r(11),c=r(59),f=r(34),s=r(19),a=r(0),l=a.process,p=a.setImmediate,v=a.clearImmediate,h=a.MessageChannel,d=a.Dispatch,y=0,m={},x=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},_=function(t){x.call(t.data)};p&&v||(p=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return m[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function(t){delete m[t]},"process"==r(14)(l)?e=function(t){l.nextTick(u(x,t,1))}:d&&d.now?e=function(t){d.now(u(x,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=_,e=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(e=function(t){a.postMessage(t+"","*")},a.addEventListener("message",_,!1)):e="onreadystatechange"in s("script")?function(t){f.appendChild(s("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:p,clear:v}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){var e=r(4),o=r(5),i=r(23);t.exports=function(t,n){if(e(t),o(n)&&n.constructor===t)return n;var r=i.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){var e=r(20);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(66)(!0);r(33)(String,"String",function(t){this._t=t+"",this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){r(62);for(var e=r(0),o=r(6),i=r(9),u=r(1)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=e[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,r){var e=r(57),o=r(31);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){var e=r(32),o=r(1)("iterator"),i=r(9);t.exports=r(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[e(t)]}},function(t,n){},function(t,n,r){var e=r(11),o=r(51),i=r(52),u=r(4),c=r(27),f=r(43),s={},a={};(n=t.exports=function(t,n,r,l,p){var v,h,d,y,m=p?function(){return t}:f(t),x=e(r,l,n?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(v=c(t.length);v>_;_++)if((y=n?x(u(h=t[_])[0],h[1]):x(t[_]))===s||y===a)return y}else for(d=m.call(t);!(h=d.next()).done;)if((y=o(d,x,h.value,n))===s||y===a)return y}).BREAK=s,n.RETURN=a},function(t,n,r){var e=r(5);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){t.exports=r(6)},function(t,n,r){var e=r(4),o=r(55),i=r(31),u=r(22)("IE_PROTO"),c=function(){},f=function(){var t,n=r(19)("iframe"),e=i.length;for(n.style.display="none",r(34).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[i[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:o(r,n)}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(4);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},function(t,n,r){var e=r(9),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},function(t,n,r){var e=r(6);t.exports=function(t,n,r){for(var o in n)r&&t[o]?t[o]=n[o]:e(t,o,n[o]);return t}},function(t,n,r){var e=r(1)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},function(t,n,r){var e=r(10),o=r(4),i=r(42);t.exports=r(8)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){t.exports=!r(8)&&!r(18)(function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(12),o=r(15),i=r(60)(!1),u=r(22)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),f=0,s=[];for(r in c)r!=u&&e(c,r)&&s.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(s,r)||s.push(r));return s}},function(t,n,r){var e=r(12),o=r(39),i=r(22)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(15),o=r(27),i=r(61);t.exports=function(t){return function(n,r,u){var c,f=e(n),s=o(f.length),a=i(u,s);if(t&&r!=r){for(;s>a;)if((c=f[a++])!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===r)return t||a||0;return!t&&-1}}},function(t,n,r){var e=r(21),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},function(t,n,r){"use strict";var e=r(63),o=r(64),i=r(9),u=r(15);t.exports=r(33)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(49),o=r(25),i=r(17),u={};r(6)(u,r(1)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},function(t,n,r){var e=r(21),o=r(20);t.exports=function(t){return function(n,r){var i,u,c=o(n)+"",f=e(r),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}}},function(t,n,r){r(44),r(40),r(41),r(68),r(71),r(72),t.exports=r(3).Promise},function(t,n,r){"use strict";var e,o,i,u,c=r(29),f=r(0),s=r(11),a=r(32),l=r(7),p=r(5),v=r(13),h=r(50),d=r(45),y=r(35),m=r(36).set,x=r(69)(),_=r(23),g=r(37),b=r(38),w=f.TypeError,j=f.process,S=f.Promise,O="process"==a(j),P=function(){},T=o=_.f,M=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[r(1)("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof n}catch(t){}}(),L=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},A=function(t,n){if(!t._n){t._n=!0;var r=t._c;x(function(){for(var e=t._v,o=1==t._s,i=0,u=function(n){var r,i,u,c=o?n.ok:n.fail,f=n.resolve,s=n.reject,a=n.domain;try{c?(o||(2==t._h&&F(t),t._h=1),!0===c?r=e:(a&&a.enter(),r=c(e),a&&(a.exit(),u=!0)),r===n.promise?s(w("Promise-chain cycle")):(i=L(r))?i.call(r,f,s):f(r)):s(e)}catch(t){a&&!u&&a.exit(),s(t)}};r.length>i;)u(r[i++]);t._c=[],t._n=!1,n&&!t._h&&E(t)})}},E=function(t){m.call(f,function(){var n,r,e,o=t._v,i=k(t);if(i&&(n=g(function(){O?j.emit("unhandledRejection",o,t):(r=f.onunhandledrejection)?r({promise:t,reason:o}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",o)}),t._h=O||k(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(f,function(){var n;O?j.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),A(n,!0))},R=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(n=L(t))?x(function(){var e={_w:r,_d:!1};try{n.call(t,s(R,e,1),s(C,e,1))}catch(t){C.call(e,t)}}):(r._v=t,r._s=1,A(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};M||(S=function(t){h(this,S,"Promise","_h"),v(t),e.call(this);try{t(s(R,this,1),s(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(53)(S.prototype,{then:function(t,n){var r=T(y(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=O?j.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=s(R,t,1),this.reject=s(C,t,1)},_.f=T=function(t){return t===S||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!M,{Promise:S}),r(17)(S,"Promise"),r(70)("Promise"),u=r(3).Promise,l(l.S+l.F*!M,"Promise",{reject:function(t){var n=T(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!M),"Promise",{resolve:function(t){return b(c&&this===u?S:this,t)}}),l(l.S+l.F*!(M&&r(54)(function(t){S.all(t).catch(P)})),"Promise",{all:function(t){var n=this,r=T(n),e=r.resolve,o=r.reject,i=g(function(){var r=[],i=0,u=1;d(t,!1,function(t){var c=i++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},o)}),--u||e(r)});return i.e&&o(i.v),r.promise},race:function(t){var n=this,r=T(n),e=r.reject,o=g(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=r(0),o=r(36).set,i=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(14)(u);t.exports=function(){var t,n,r,s=function(){var e,o;for(f&&(e=u.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(s)};else if(!i||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var a=c.resolve();r=function(){a.then(s)}}else r=function(){o.call(e,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(e){var o={fn:e,next:void 0};n&&(n.next=o),t||(t=o,r()),n=o}}},function(t,n,r){"use strict";var e=r(0),o=r(3),i=r(10),u=r(8),c=r(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:e[t];u&&n&&!n[c]&&i.f(n,c,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(7),o=r(3),i=r(0),u=r(35),c=r(38);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){"use strict";var e=r(7),o=r(23),i=r(37);e(e.S,"Promise",{try:function(t){var n=o.f(this),r=i(t);return(r.e?n.reject:n.resolve)(r.v),n.promise}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";r.r(n);var e=r(2),o=r.n(e),i=r(24),u=r(16);n.default=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(e){if(!Object(i.a)(e))throw TypeError("filterAF cannot be called on ".concat(e,", only on an Array or array-like Object"));if("function"!=typeof t)throw TypeError("".concat(t," is not a function"));return(n.inSeries?u.b:u.a)(e).then(function(e){return(n.inSeries?e.reduce(function(n,e,i,u){return n.then(function(n){return n[i]=t.call(r,e,i,u),o.a.all(n)})},o.a.all([])):Object(u.a)(e,t,r)).then(function(t){return e.filter(function(n,r){return t[r]})})})})}}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("filterAF",[],n):"object"==typeof exports?exports.filterAF=n():t.filterAF=n();
var e,n;e="undefined"!=typeof self?self:this,n=function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=25)}({0:function(e,n,t){"use strict";t.d(n,"b",function(){return o}),t.d(n,"a",function(){return u});var r=t(2),o=function(e){return function n(t,r){var o=t.length;if(!o)return Promise.resolve(t);var u=!(r in e);return Promise.resolve(e[r]).then(function(e){return u||(t[r]=e),r===o-1?t:n(t,r+1)})}(Array(e.length>>>0),0)},u=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return Object(r.a)(e,function(e){return e}).then(n?function(e){return Object(r.a)(Array.prototype.map.call(e,n,t))}:void 0)}},1:function(e,n,t){"use strict";n.a=function(e){return Array.isArray(e)||null!=e&&null!=e.length}},2:function(e,n,t){"use strict";n.a=function(e){return new Promise(function(n,t){var r=e.length>>>0,o=Array(r),u=r,i=r;if(!r)return n(o);for(var f=function(r){return Promise.resolve(e[r]).then(function(t){r in e&&(o[r]=t),--u||n(o)},t)};i--;)f(i)})}},25:function(e,n,t){"use strict";t.r(n);var r=t(1),o=t(0);n.default=function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(function(u){if(!Object(r.a)(u))throw TypeError("filterAF cannot be called on ".concat(u,", only on an Array or array-like Object"));if("function"!=typeof e)throw TypeError("".concat(e," is not a function"));return(n.inSeries?o.b:o.a)(u).then(function(r){return(n.inSeries?r.reduce(function(n,r,o,u){return n.then(function(n){return n[o]=e.call(t,r,o,u),Promise.all(n)})},Promise.all([])):Object(o.a)(r,e,t)).then(function(e){return r.filter(function(n,t){return e[t]})})})})}}}).default},"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("filterAF",[],n):"object"==typeof exports?exports.filterAF=n():e.filterAF=n();
//# sourceMappingURL=min.js.map
/*!
* @async-af/filter/min v7.0.26
* @async-af/filter/min v7.0.27
*

@@ -12,3 +12,3 @@ * AsyncAF (The asynciest of async libs there ever was or ever will be...AsyncAF!?) filterAF method

*/
var e,t;e="undefined"!=typeof self?self:this,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return i});var n=r(2);const o=e=>(function t(r,n){const o=r.length;if(!o)return Promise.resolve(r);const i=!(n in e);return Promise.resolve(e[n]).then(e=>(i||(r[n]=e),n===o-1?r:t(r,n+1)))})(Array(e.length>>>0),0),i=(e,t,r)=>Object(n.a)(e,e=>e).then(t?e=>Object(n.a)(Array.prototype.map.call(e,t,r)):void 0)},function(e,t,r){"use strict";t.a=function(e){return Array.isArray(e)||null!=e&&null!=e.length}},function(e,t,r){"use strict";t.a=(e=>new Promise((t,r)=>{const n=e.length>>>0,o=Array(n);let i=n,u=n;if(!n)return t(o);const f=n=>Promise.resolve(e[n]).then(r=>{n in e&&(o[n]=r),--i||t(o)},r);for(;u--;)f(u)}))},,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(1),o=r(0);t.default=function(e,t){return this.then(r=>{if(!Object(n.a)(r))throw TypeError(`filterAF cannot be called on ${r}, only on an Array or array-like Object`);if("function"!=typeof e)throw TypeError(`${e} is not a function`);return(this.inSeries?o.b:o.a)(r).then(r=>(this.inSeries?r.reduce((r,n,o,i)=>r.then(r=>(r[o]=e.call(t,n,o,i),Promise.all(r))),Promise.all([])):Object(o.a)(r,e,t)).then(e=>r.filter((t,r)=>e[r])))})}}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("filterAF",[],t):"object"==typeof exports?exports.filterAF=t():e.filterAF=t();
var e,t;e="undefined"!=typeof self?self:this,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return i});var n=r(2);const o=e=>(function t(r,n){const{length:o}=r;if(!o)return Promise.resolve(r);const i=!(n in e);return Promise.resolve(e[n]).then(e=>(i||(r[n]=e),n===o-1?r:t(r,n+1)))})(Array(e.length>>>0),0),i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return Object(n.a)(e,e=>e).then(t?e=>Object(n.a)(Array.prototype.map.call(e,t,r)):void 0)}},function(e,t,r){"use strict";t.a=function(e){return Array.isArray(e)||null!=e&&null!=e.length}},function(e,t,r){"use strict";t.a=(e=>new Promise((t,r)=>{const n=e.length>>>0,o=Array(n);let i=n,u=n;if(!n)return t(o);const f=n=>Promise.resolve(e[n]).then(r=>{n in e&&(o[n]=r),--i||t(o)},r);for(;u--;)f(u)}))},,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(1),o=r(0);t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.then(r=>{if(!Object(n.a)(r))throw TypeError("filterAF cannot be called on ".concat(r,", only on an Array or array-like Object"));if("function"!=typeof e)throw TypeError("".concat(e," is not a function"));return(this.inSeries?o.b:o.a)(r).then(r=>(this.inSeries?r.reduce((r,n,o,i)=>r.then(r=>(r[o]=e.call(t,n,o,i),Promise.all(r))),Promise.all([])):Object(o.a)(r,e,t)).then(e=>r.filter((t,r)=>e[r])))})}}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("filterAF",[],t):"object"==typeof exports?exports.filterAF=t():e.filterAF=t();
//# sourceMappingURL=min.js.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "7.0.26",
"version": "7.0.27",
"homepage": "https://async-af.js.org",

@@ -9,0 +9,0 @@ "bugs": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet