UNPKG

mixfill

Version:
1 lines 3.11 kB
require=function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({mixfill:[function(a,b){b.exports=a("2genGb")},{}],"2genGb":[function(a,b){var c=a("./tests"),d=function(a){return"[object Array]"===Object.prototype.toString.call(a)},e=function(a){return!!(a&&a.constructor&&a.call&&a.apply)},f=document,g=f.getElementsByTagName("head")[0]||f.documentElement,h=function(a,b){var c,d=f.createElement("script"),e=function(a){b&&b(a)};d.src=a,d.async=!0,d.onload=d.onreadystatechange=function(){c||d.readyState&&!/loaded|complete/.test(d.readyState)||(c=1,d.onload=d.onreadystatechange=null,d.parentNode&&d.parentNode.removeChild(d),d=null,e())},d.onerror=function(){c=1,e(new Error("Script Error: "+a))},setTimeout(function(){c||(c=1,e(new Error("Timeout: "+a)))},1e4),g.insertBefore(d,g.firstChild)},i=function(a){var b=this;b.base=a,b.tests=c,b._need={},b.setBase=function(a){var b=this;return b.base=a,b},b.all=function(a){var b=this,c=b.tests,d=[];for(var e in c)c.hasOwnProperty(e)&&d.push(e);return b.need(d).load(a)},b.need=function(a){var b,c=this,f=c.tests;if(a)for(a=d(a)?a:[a],b=0;b<a.length;b++){var g=a[b],h=f[g];h&&!(h=f[g]=e(h)?Boolean(h()):h)&&(c._need[g]=!0)}return c},b.load=function(a){var b=this,c=b.base,d=b._need,e=b.tests,f=[],g=function(c){return a&&a(c),b};if(d){for(var i in d)d.hasOwnProperty(i)&&d[i]&&f.push(i);if(!f.length)return g();f.sort(),c=c.replace(/\/$/,"")+"/"+f.join("-")+".js",h(c,function(a){if(!a){b._need={};for(var c=0;c<f.length;c++)e[f[c]]&&delete e[f[c]]}g(a)})}else g();return b}};b.exports=i},{"./tests":3}],3:[function(a,b){var c={elementClassList:function(){return"classList"in document.createElement("_")},elementMatches:function(){return Element&&!function(a){a.matches=a.matchesSelector=a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||function(a){for(var b=(this.parentNode||this.document).querySelectorAll(a),c=-1;b[++c]&&b[c]!==this;);return!!b[c]}}(Element.prototype),!0},es5:function(){var a=Array.prototype,b=Date.prototype,c=String.prototype;return a.every&&a.filter&&a.forEach&&a.indexOf&&a.lastIndexOf&&a.map&&a.some&&a.reduce&&a.reduceRight&&Array.isArray&&Date.now&&Date.parse&&b.toJSON&&b.toISOString&&Function.prototype.bind&&Number.prototype.toFixed&&Object.keys&&c.split&&c.trim&&c.replace},es5Object:function(){var a=Object;return a.create&&a.getPrototypeOf&&a.getOwnPropertyNames&&a.isSealed&&a.isFrozen&&a.isExtensible&&a.getOwnPropertyDescriptor&&a.defineProperty&&a.defineProperties&&a.seal&&a.freeze&&a.preventExtensions},eventListener:function(){var a=window,b=a.Window,c=b?b.prototype:a;return"addEventListener"in c&&"removeEventListener"in c&&"dispatchEvent"in c},promise:function(){return"Promise"in window}};b.exports=c},{}]},{},[]);