-
Notifications
You must be signed in to change notification settings - Fork 0
/
array-some-x.min.js
15 lines (15 loc) · 16.3 KB
/
array-some-x.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*!
{
"author": "Graham Fairweather",
"copywrite": "Copyright (c) 2017",
"date": "2019-09-05T00:01:31.849Z",
"describe": "",
"description": "Tests whether some element passes the provided function.",
"file": "array-some-x.min.js",
"hash": "af72d8b32f367d0b3788",
"license": "MIT",
"version": "3.1.2"
}
*/
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.arraySomeX=n():t.arraySomeX=n()}(function(){"use strict";var t,n={}.constructor,e=n.prototype,r=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return r?r(e,"$$globalThis$$",{get:i,configurable:!0}):e.__defineGetter__("$$globalThis$$",i),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete e.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";var r=Object.prototype.toString;if(e(3)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&i.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n,e){"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,e){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object Date]"===o.call(t))}},function(t,n,e){"use strict";(function(n){var r=n.Symbol,o=e(5);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,e(4))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),e=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.r(n);var o=function(t){return"object"===r(t)?null===t:"function"!=typeof t},i=e(1),u=e.n(i),c={}.constructor("a"),s="a"===c[0]&&0 in c,f=function(){}.bind,a="function"==typeof f&&function(){var t=null,n=null,e=null,r=[];try{var o=f.apply(function(r,o){return e=this,t=r,n=o,arguments},[r,1]),i=o(2);return 1===o.length&&2===i.length&&1===t&&2===n&&e===r}catch(t){return!1}}()&&function(){var t=null,n=null,e=null,r=[1,2,3],o=function(o,i){return t=o,n=i,e=this,r};try{var i=f.apply(o,[null]),u=new i(1,2);return i.length===o.length&&u===r&&1===t&&2===n&&e!==r}catch(t){return!1}}(),l="".split,p=Math.max,y=o.bind,d=o.call,b=a?y.call(d,l):function(t,n){return l.call(t,n)},g=function(t){return u()(t)?b(t,""):t},v=function(t,n){var e=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return e;for(var r=s?t:g(t),i=r.length,u=p(0,n)||0;u<i;u+=1)e[e.length]=t[u];return e};function h(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=v.bind,w=v.call,S={},j=S.constructor,O=S.toString,T=function(t,n){return t>=n?t:n},x=function(t){if("function"!=typeof t&&"[object Function]"!==O.apply(t))throw new TypeError("bind called on incompatible "+t)},$=[function(t){return function(){return t.apply(this,v(arguments))}},function(t,n){return function(e){return t.apply(this,v(arguments,n,[e]))}},function(t,n){return function(e,r){return t.apply(this,v(arguments,n,[e,r]))}},function(t,n){return function(e,r,o){return t.apply(this,v(arguments,n,[e,r,o]))}},function(t,n){return function(e,r,o,i){return t.apply(this,v(arguments,n,[e,r,o,i]))}},function(t,n){return function(e,r,o,i,u){return t.apply(this,v(arguments,n,[e,r,o,i,u]))}},function(t,n){return function(e,r,o,i,u,c){return t.apply(this,v(arguments,n,[e,r,o,i,u,c]))}},function(t,n){return function(e,r,o,i,u,c,s){return t.apply(this,v(arguments,n,[e,r,o,i,u,c,s]))}},function(t,n){return function(e,r,o,i,u,c,s,f){return t.apply(this,v(arguments,n,[e,r,o,i,u,c,s,f]))}}],E=function(t){var n=h(t,3),e=n[0],r=n[1],o=n[2],i=T(0,r.length-T(0,o.length-2)),u=$[i],c=u?u(e,i):$[0](e);if(r.prototype){var s=function(){};s.prototype=r.prototype,c.prototype=new s,s.prototype=null}return c},P=function(t,n){var e=t.apply(this,n);return j(e)===e?e:this},F=a?w.bind(m):function(t,n){x(t);var e,r=arguments,o=function(){var o=v(arguments,0,v(r,2));return this instanceof e?P.apply(this,[t,o]):t.apply(n,o)};return e=E([o,t,r])},_=TypeError,M=F.apply,N=F(F.call,M),C=F(M,{}.toString),k=function(t){if("function"!=typeof t&&"[object Function]"!==C(t))throw new _(t+" is not a function");return t},D=function(t,n){return N(k(t),n,v(arguments[2]))},A=function(t){try{return{threw:!1,value:D(t,this,v(arguments,1))}}catch(t){return{threw:!0,value:t}}},I=function(t){return null==t},B=function(t){if(I(t))throw new TypeError("Cannot call method on ".concat(t));return t},X={}.constructor,q=function(t){return X(B(t))},G=function(t){return!!t},L={}.toString,z=function(t){return function(t){if("function"!=typeof t&&"[object Function]"!==D(L,t))throw new TypeError("methodize called on incompatible "+t)}(t),function(){return D(t,arguments[0],v(arguments,1))}},H=z({}.toString),R=function(t){return null===t?"[object Null]":void 0===t?"[object Undefined]":H(t)},U=e(0),V=e.n(U);for(var J=A(function(){return function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&V()(Symbol(""))}.bind(void 0)),K=!1===J.threw&&!0===J.value,Q=K&&V()(Symbol.toStringTag),W="Cannot convert a Symbol value to a string".constructor,Y=function(t){if(V()(t))throw new TypeError("Cannot convert a Symbol value to a string");return W(t)},Z=function(t){return Y(B(t))},tt=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:""},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],nt="",et=tt.length,rt=0;rt<et;rt+=1)tt[rt].es2016&&tt[rt].string,tt[rt].es2018&&(nt+=tt[rt].string);var ot=nt,it=new(0,/none/.constructor)("^[".concat(ot,"]+")),ut=z("".replace),ct=function(t){return ut(Z(t),it,"")},st=new(0,/none/.constructor)("[".concat(ot,"]+$")),ft=z("".replace),at=function(t){return ft(Z(t),st,"")},lt=function(t){return ct(at(t))},pt=new(0,/none/.constructor)("[".concat(ot,"]+"),"g"),yt=z(" ".replace),dt=function(t){return yt(lt(t),pt," ")},bt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,gt=z("".replace),vt=function(t,n){return gt(Z(t),bt,arguments.length>1?Y(n):"")},ht=A.constructor,mt=z(A.toString),wt=/^class /,St=z(wt.test),jt=!1===A(function(){return ht('"use strict"; return class My {};')()}).threw,Ot=function(t){return St(wt,dt(vt(mt(t)," ")))},Tt=function(t){var n=A(Ot,t);return!1===n.threw&&n.value},xt=function(t,n){return!o(t)&&(Q?function(t,n){return!(jt&&!1===n&&Tt(t)||!1!==A(function(){return mt(t)}).threw)}(t,G(n)):(!jt||!1!==G(n)||!Tt(t))&&function(t){var n=R(t);return"[object Function]"===n||"[object GeneratorFunction]"===n||"[object AsyncFunction]"===n}(t))},$t=K&&Symbol.prototype.toString,Et="function"==typeof $t&&V.a,Pt="".constructor,Ft=function(t){return Et&&Et(t)?$t.call(t):Pt(t)},_t=function(t,n){if(!1===xt(t)){var e=arguments.length>1?Ft(n):"".concat(o(t)?Ft(t):"#<Object>"," is not a function");throw new TypeError(e)}return t},Mt=e(2),Nt=e.n(Mt),Ct="string".constructor,kt=(0).constructor,Dt=K&&Symbol.toPrimitive,At=K&&Symbol.prototype.valueOf,It=["toString","valueOf"],Bt=["valueOf","toString"],Xt=function(t,n){B(t),function(t){if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"')}(n);for(var e="string"===n?It:Bt,r=0;r<2;r+=1){var i=t[e[r]];if(xt(i)){var u=D(i,t);if(o(u))return u}}throw new TypeError("No default value")},qt=function(t,n){if(n){if(t===Ct)return"string";if(t===kt)return"number"}return"default"},Gt=function(t){if(K){if(Dt)return function(t,n){var e=t[n];if(!1===I(e)){if(!1===xt(e))throw new TypeError("".concat(e," returned for property ").concat(n," of object ").concat(t," is not a function"));return e}}(t,Dt);if(V()(t))return At}},Lt=function(t){var n=t.exoticToPrim,e=t.input,r=t.hint,i=D(n,e,[r]);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")},zt=function(t,n){var e="default"===n&&(Nt()(t)||V()(t))?"string":n;return Xt(t,"default"===e?"number":e)},Ht=function(t,n){if(o(t))return t;var e=qt(n,arguments.length>1),r=Gt(t);return void 0===r?zt(t,e):Lt({exoticToPrim:r,input:t,hint:e})},Rt=parseInt,Ut=(0).constructor,Vt=z("".charAt),Jt=/^[-+]?0[xX]/,Kt=z(Jt.test),Qt=function(t,n){var e=ct(Y(t));return""===Vt(e,0)?NaN:Rt(e,Ut(n)||(Kt(Jt,e)?16:10))},Wt=2..constructor,Yt=z("Cannot convert a Symbol value to a number".slice),Zt=/^0b[01]+$/i,tn=Zt.constructor,nn=z(Zt.test),en=/^0o[0-7]+$/i,rn=new tn("[
]","g"),on=/^[-+]0x[0-9a-f]+$/i,un=function(t,n){return Qt(Yt(t,2),n)},cn=function(t,n){return function(t){return nn(Zt,t)}(n)?t(un(n,2)):function(t){return nn(en,t)}(n)?t(un(n,8)):null},sn=function(t,n){var e=cn(t,n);if(null!==e)return e;if(function(t){return nn(rn,t)}(n)||function(t){return nn(on,t)}(n))return NaN;var r=lt(n);return r!==n?t(r):null},fn=function t(n){var e=function(t){if(V()(t))throw new TypeError("Cannot convert a Symbol value to a number");return t}(Ht(n,Wt));if("string"==typeof e){var r=sn(t,e);if(null!==r)return r}return Wt(e)},an=function(t){return t!=t},ln=function(t){return"number"==typeof t&&!1===an(t)&&t!==1/0&&t!==-1/0},pn=function(t){var n=fn(t);return 0===n||an(n)?n:n>0?1:-1},yn=Math.abs,dn=Math.floor,bn=function(t){var n=fn(t);return an(n)?0:0===n||!1===ln(n)?n:pn(n)*dn(yn(n))},gn=function(t){var n=bn(t);return n<=0?0:n>9007199254740991?9007199254740991:n},vn=z("".split),hn=function(t){return t},mn=s?hn:function(t){return u()(t)?vn(t,""):hn(t)},wn=function(t,n){var e=q(t);_t(n);var r=mn(e),o=gn(r.length);if(o)for(var i=arguments[2],u=0;u<o;u+=1)if(D(n,i,[r[u],u,e]))return!0;return!1};e.d(n,"implementation",function(){return Pn});var Sn,jn,On=[].some,Tn="function"==typeof On&&z(On),xn="undefined"!=typeof document&&document,$n=function(){return!1===G(this)}(),En=G(Tn)&&(Sn=0,!1===(jn=A(function(){return Tn([1,2],function(t){return Sn+=t,!1})})).threw&&!1===jn.value&&3===Sn)&&function(){var t="",n=A(function(){return Tn(q("abc"),function(n,e){return t+=n,1===e})});return!1===n.threw&&!0===n.value&&"ab"===t}()&&function(){var t=0,n=A(function(){var n=function(){return arguments}(1,2,3);return Tn(n,function(n,e){return t+=n,2===e})});return!1===n.threw&&!0===n.value&&6===t}()&&function(){var t=0,n=A(function(){return Tn({0:1,1:2,3:3,4:4,length:4},function(n){return t+=n,!1})});return!1===n.threw&&!1===n.value&&6===t}()&&function(){if(xn){var t=null,n=xn.createDocumentFragment(),e=xn.createElement("div");n.appendChild(e);var r=A(function(){return Tn(n.childNodes,function(n){return t=n,n})});return!1===r.threw&&!0===r.value&&t===e}return!0}()&&function(){if($n){var t=null,n=function(){t="string"==typeof this},e=A(function(){return Tn([1],n,"x")});return!1===e.threw&&!1===e.value&&!0===t}return!0}()&&function(){var t={},n=A(function(){return Function("nativeSome","spy","castBoolean",'return nativeSome("foo", function (_, __, context) {if (castBoolean(context) === false || typeof context !== "object") {spy.value = true;}});')(Tn,t,G)});return!1===n.threw&&!1===n.value&&!0!==t.value}();console.log(En);var Pn=function(t,n){var e=q(t);_t(n);var r=function(){var t=arguments[1];return!!(t in arguments[2]&&D(n,this,[arguments[0],t,e]))};return wn(e,r,arguments[2])},Fn=En?function(t,n){return Tn(B(t),_t(n),arguments[2])}:Pn;n.default=Fn}])});
//# sourceMappingURL=array-some-x.min.js.map