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

es5-shim

Package Overview
Dependencies
Maintainers
3
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es5-shim - npm Package Compare versions

Comparing version 4.5.2 to 4.5.3

2

es5-sham.min.js
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/v4.5.1/LICENSE
* see https://github.com/es-shims/es5-shim/blob/v4.5.3/LICENSE
*/
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){var e=Function.call;var t=Object.prototype;var r=e.bind(t.hasOwnProperty);var n=e.bind(t.propertyIsEnumerable);var o=e.bind(t.toString);var i;var c;var f;var a;var l=r(t,"__defineGetter__");if(l){i=e.bind(t.__defineGetter__);c=e.bind(t.__defineSetter__);f=e.bind(t.__lookupGetter__);a=e.bind(t.__lookupSetter__)}if(!Object.getPrototypeOf){Object.getPrototypeOf=function getPrototypeOf(e){var r=e.__proto__;if(r||r===null){return r}else if(o(e.constructor)==="[object Function]"){return e.constructor.prototype}else if(e instanceof Object){return t}else{return null}}}var u=function doesGetOwnPropertyDescriptorWork(e){try{e.sentinel=0;return Object.getOwnPropertyDescriptor(e,"sentinel").value===0}catch(t){return false}};if(Object.defineProperty){var p=u({});var s=typeof document==="undefined"||u(document.createElement("div"));if(!s||!p){var b=Object.getOwnPropertyDescriptor}}if(!Object.getOwnPropertyDescriptor||b){var O="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function getOwnPropertyDescriptor(e,o){if(typeof e!=="object"&&typeof e!=="function"||e===null){throw new TypeError(O+e)}if(b){try{return b.call(Object,e,o)}catch(i){}}var c;if(!r(e,o)){return c}c={enumerable:n(e,o),configurable:true};if(l){var u=e.__proto__;var p=e!==t;if(p){e.__proto__=t}var s=f(e,o);var y=a(e,o);if(p){e.__proto__=u}if(s||y){if(s){c.get=s}if(y){c.set=y}return c}}c.value=e[o];c.writable=true;return c}}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function getOwnPropertyNames(e){return Object.keys(e)}}if(!Object.create){var y;var d=!({__proto__:null}instanceof Object);var j=function shouldUseActiveX(){if(!document.domain){return false}try{return!!new ActiveXObject("htmlfile")}catch(e){return false}};var v=function getEmptyViaActiveX(){var e;var t;t=new ActiveXObject("htmlfile");t.write("<script></script>");t.close();e=t.parentWindow.Object.prototype;t=null;return e};var _=function getEmptyViaIFrame(){var e=document.createElement("iframe");var t=document.body||document.documentElement;var r;e.style.display="none";t.appendChild(e);e.src="javascript:";r=e.contentWindow.Object.prototype;t.removeChild(e);e=null;return r};if(d||typeof document==="undefined"){y=function(){return{__proto__:null}}}else{y=function(){var e=j()?v():_();delete e.constructor;delete e.hasOwnProperty;delete e.propertyIsEnumerable;delete e.isPrototypeOf;delete e.toLocaleString;delete e.toString;delete e.valueOf;var t=function Empty(){};t.prototype=e;y=function(){return new t};return new t}}Object.create=function create(e,t){var r;var n=function Type(){};if(e===null){r=y()}else{if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("Object prototype may only be an Object or null")}n.prototype=e;r=new n;r.__proto__=e}if(t!==void 0){Object.defineProperties(r,t)}return r}}var w=function doesDefinePropertyWork(e){try{Object.defineProperty(e,"sentinel",{});return"sentinel"in e}catch(t){return false}};if(Object.defineProperty){var m=w({});var P=typeof document==="undefined"||w(document.createElement("div"));if(!m||!P){var E=Object.defineProperty,h=Object.defineProperties}}if(!Object.defineProperty||E){var g="Property description must be an object: ";var z="Object.defineProperty called on non-object: ";var T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function defineProperty(e,r,n){if(typeof e!=="object"&&typeof e!=="function"||e===null){throw new TypeError(z+e)}if(typeof n!=="object"&&typeof n!=="function"||n===null){throw new TypeError(g+n)}if(E){try{return E.call(Object,e,r,n)}catch(o){}}if("value"in n){if(l&&(f(e,r)||a(e,r))){var u=e.__proto__;e.__proto__=t;delete e[r];e[r]=n.value;e.__proto__=u}else{e[r]=n.value}}else{if(!l&&("get"in n||"set"in n)){throw new TypeError(T)}if("get"in n){i(e,r,n.get)}if("set"in n){c(e,r,n.set)}}return e}}if(!Object.defineProperties||h){Object.defineProperties=function defineProperties(e,t){if(h){try{return h.call(Object,e,t)}catch(r){}}Object.keys(t).forEach(function(r){if(r!=="__proto__"){Object.defineProperty(e,r,t[r])}});return e}}if(!Object.seal){Object.seal=function seal(e){if(Object(e)!==e){throw new TypeError("Object.seal can only be called on Objects.")}return e}}if(!Object.freeze){Object.freeze=function freeze(e){if(Object(e)!==e){throw new TypeError("Object.freeze can only be called on Objects.")}return e}}try{Object.freeze(function(){})}catch(x){Object.freeze=function(e){return function freeze(t){if(typeof t==="function"){return t}else{return e(t)}}}(Object.freeze)}if(!Object.preventExtensions){Object.preventExtensions=function preventExtensions(e){if(Object(e)!==e){throw new TypeError("Object.preventExtensions can only be called on Objects.")}return e}}if(!Object.isSealed){Object.isSealed=function isSealed(e){if(Object(e)!==e){throw new TypeError("Object.isSealed can only be called on Objects.")}return false}}if(!Object.isFrozen){Object.isFrozen=function isFrozen(e){if(Object(e)!==e){throw new TypeError("Object.isFrozen can only be called on Objects.")}return false}}if(!Object.isExtensible){Object.isExtensible=function isExtensible(e){if(Object(e)!==e){throw new TypeError("Object.isExtensible can only be called on Objects.")}var t="";while(r(e,t)){t+="?"}e[t]=true;var n=r(e,t);delete e[t];return n}}});
//# sourceMappingURL=es5-sham.map
/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/v4.5.1/LICENSE
* see https://github.com/es-shims/es5-shim/blob/v4.5.3/LICENSE
*/
(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function.prototype;var a=String;var o=a.prototype;var u=Number;var f=u.prototype;var s=r.slice;var l=r.splice;var v=r.push;var c=r.unshift;var h=r.concat;var p=i.call;var g=i.apply;var y=Math.max;var d=Math.min;var w=n.toString;var b=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var m;var T=Function.prototype.toString,D=function tryFunctionObject(t){try{T.call(t);return true}catch(r){return false}},x="[object Function]",S="[object GeneratorFunction]";m=function isCallable(t){if(typeof t!=="function"){return false}if(b){return D(t)}var r=w.call(t);return r===x||r===S};var O;var E=RegExp.prototype.exec,j=function tryRegexExec(t){try{E.call(t);return true}catch(r){return false}},I="[object RegExp]";O=function isRegex(t){if(typeof t!=="object"){return false}return b?j(t):w.call(t)===I};var M;var U=String.prototype.valueOf,F=function tryStringObject(t){try{U.call(t);return true}catch(r){return false}},N="[object String]";M=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return b?F(t):w.call(t)===N};var k=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var C=function(t){var r;if(k){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var R=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var A=u.isNaN||function(t){return t!==t};var P={ToInteger:function ToInteger(t){var r=+t;if(A(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*Math.floor(Math.abs(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(R(t)){return t}e=t.valueOf;if(m(e)){r=e.call(t);if(R(r)){return r}}n=t.toString;if(m(n)){r=n.call(t);if(R(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var $=function Empty(){};C(i,{bind:function bind(t){var r=this;if(!m(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=s.call(arguments,1);var i;var a=function(){if(this instanceof i){var a=r.apply(this,h.call(n,s.call(arguments)));if(e(a)===a){return a}return this}else{return r.apply(t,h.call(n,s.call(arguments)))}};var o=y(0,r.length-n.length);var u=[];for(var f=0;f<o;f++){v.call(u,"$"+f)}i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this, arguments); }")(a);if(r.prototype){$.prototype=r.prototype;i.prototype=new $;$.prototype=null}return i}});var J=p.bind(n.hasOwnProperty);var Y=p.bind(n.toString);var Z=p.bind(s);var z=g.bind(s);var G=p.bind(o.slice);var B=p.bind(o.split);var H=p.bind(o.indexOf);var W=p.bind(v);var L=p.bind(n.propertyIsEnumerable);var X=p.bind(r.sort);var q=t.isArray||function isArray(t){return Y(t)==="[object Array]"};var K=[].unshift(0)!==1;C(r,{unshift:function(){c.apply(this,arguments);return this.length}},K);C(t,{isArray:q});var Q=e("a");var V=Q[0]!=="a"||!(0 in Q);var _=function properlyBoxed(t){var r=true;var e=true;var n=false;if(t){try{t.call("foo",function(t,e,n){if(typeof n!=="object"){r=false}});t.call([1],function(){"use strict";e=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&r&&e};C(r,{forEach:function forEach(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=-1;var i=P.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in e){if(typeof a==="undefined"){t(e[n],n,r)}else{t.call(a,e[n],n,r)}}}}},!_(r.forEach));C(r,{map:function map(r){var e=P.ToObject(this);var n=V&&M(this)?B(this,""):e;var i=P.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!m(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u<i;u++){if(u in n){if(typeof o==="undefined"){a[u]=r(n[u],u,e)}else{a[u]=r.call(o,n[u],u,e)}}}return a}},!_(r.map));C(r,{filter:function filter(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=P.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u<n;u++){if(u in e){a=e[u];if(typeof o==="undefined"?t(a,u,r):t.call(o,a,u,r)){W(i,a)}}}return i}},!_(r.filter));C(r,{every:function every(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=P.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in e&&!(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return false}}return true}},!_(r.every));C(r,{some:function some(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=P.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in e&&(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return true}}return false}},!_(r.some));var tt=false;if(r.reduce){tt=typeof r.reduce.call("es5",function(t,r,e,n){return n})==="object"}C(r,{reduce:function reduce(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=P.ToUint32(e.length);if(!m(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in e){a=t(a,e[i],i,r)}}return a}},!tt);var rt=false;if(r.reduceRight){rt=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}C(r,{reduceRight:function reduceRight(t){var r=P.ToObject(this);var e=V&&M(this)?B(this,""):r;var n=P.ToUint32(e.length);if(!m(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in e){i=t(i,e[a],a,r)}}while(a--);return i}},!rt);var et=r.indexOf&&[0,1].indexOf(1,2)!==-1;C(r,{indexOf:function indexOf(t){var r=V&&M(this)?B(this,""):P.ToObject(this);var e=P.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=P.ToInteger(arguments[1])}n=n>=0?n:y(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},et);var nt=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;C(r,{lastIndexOf:function lastIndexOf(t){var r=V&&M(this)?B(this,""):P.ToObject(this);var e=P.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=d(n,P.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},nt);var it=function(){var t=[1,2];var r=t.splice();return t.length===2&&q(r)&&r.length===0}();C(r,{splice:function splice(t,r){if(arguments.length===0){return[]}else{return l.apply(this,arguments)}}},!it);var at=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();C(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=y(P.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=Z(arguments);if(e.length<2){W(e,this.length-t)}else{e[1]=P.ToInteger(r)}}return l.apply(this,e)}},!at);var ot=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var ut=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();C(r,{splice:function splice(t,r){var e=P.ToObject(this);var n=[];var i=P.ToUint32(e.length);var o=P.ToInteger(t);var u=o<0?y(i+o,0):d(o,i);var f=d(y(P.ToInteger(r),0),i-u);var s=0;var l;while(s<f){l=a(u+s);if(J(e,l)){n[s]=e[l]}s+=1}var v=Z(arguments,2);var c=v.length;var h;if(c<f){s=u;while(s<i-f){l=a(s+f);h=a(s+c);if(J(e,l)){e[h]=e[l]}else{delete e[h]}s+=1}s=i;while(s>i-f+c){delete e[s-1];s-=1}}else if(c>f){s=i-f;while(s>u){l=a(s+f-1);h=a(s+c-1);if(J(e,l)){e[h]=e[l]}else{delete e[h]}s-=1}}s=u;for(var p=0;p<v.length;++p){e[s]=v[p];s+=1}e.length=i-f+c;return n}},!ot||!ut);var ft=r.join;var st;try{st=Array.prototype.join.call("123",",")!=="1,2,3"}catch(lt){st=true}if(st){C(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return ft.call(M(this)?B(this,""):this,r)}},st)}var vt=[1,2].join(undefined)!=="1,2";if(vt){C(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return ft.call(this,r)}},vt)}var ct=function push(t){var r=P.ToObject(this);var e=P.ToUint32(r.length);var n=0;while(n<arguments.length){r[e+n]=arguments[n];n+=1}r.length=e+n;return e+n};var ht=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!J(t,0)}();C(r,{push:function push(t){if(q(this)){return v.apply(this,arguments)}return ct.apply(this,arguments)}},ht);var pt=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!J(t,0)}();C(r,{push:ct},pt);C(r,{slice:function(t,r){var e=M(this)?B(this,""):this;return z(e,arguments)}},V);var gt=function(){try{[1,2].sort(null);[1,2].sort({});return true}catch(t){}return false}();var yt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var dt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();C(r,{sort:function sort(t){if(typeof t==="undefined"){return X(this)}if(!m(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return X(this,t)}},gt||!dt||!yt);var wt=!{toString:null}.propertyIsEnumerable("toString");var bt=function(){}.propertyIsEnumerable("prototype");var mt=!J("x","0");var Tt=function(t){var r=t.constructor;return r&&r.prototype===t};var Dt={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true};var xt=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!Dt["$"+t]&&J(window,t)&&window[t]!==null&&typeof window[t]==="object"){Tt(window[t])}}catch(r){return true}}return false}();var St=function(t){if(typeof window==="undefined"||!xt){return Tt(t)}try{return Tt(t)}catch(r){return false}};var Ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Et=Ot.length;var jt=function isArguments(t){return Y(t)==="[object Arguments]"};var It=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!q(t)&&m(t.callee)};var Mt=jt(arguments)?jt:It;C(e,{keys:function keys(t){var r=m(t);var e=Mt(t);var n=t!==null&&typeof t==="object";var i=n&&M(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var o=[];var u=bt&&r;if(i&&mt||e){for(var f=0;f<t.length;++f){W(o,a(f))}}if(!e){for(var s in t){if(!(u&&s==="prototype")&&J(t,s)){W(o,a(s))}}}if(wt){var l=St(t);for(var v=0;v<Et;v++){var c=Ot[v];if(!(l&&c==="constructor")&&J(t,c)){W(o,c)}}}return o}});var Ut=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var Ft=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Nt=e.keys;C(e,{keys:function keys(t){if(Mt(t)){return Nt(Z(t))}else{return Nt(t)}}},!Ut||Ft);var kt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var Ct=new Date(-0x55d318d56a724);var Rt=new Date(14496624e5);var At=Ct.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var Pt;var $t;var Jt=Ct.getTimezoneOffset();if(Jt<-720){Pt=Ct.toDateString()!=="Tue Jan 02 -45875";$t=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Rt.toString())}else{Pt=Ct.toDateString()!=="Mon Jan 01 -45875";$t=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Rt.toString())}var Yt=p.bind(Date.prototype.getFullYear);var Zt=p.bind(Date.prototype.getMonth);var zt=p.bind(Date.prototype.getDate);var Gt=p.bind(Date.prototype.getUTCFullYear);var Bt=p.bind(Date.prototype.getUTCMonth);var Ht=p.bind(Date.prototype.getUTCDate);var Wt=p.bind(Date.prototype.getUTCDay);var Lt=p.bind(Date.prototype.getUTCHours);var Xt=p.bind(Date.prototype.getUTCMinutes);var qt=p.bind(Date.prototype.getUTCSeconds);var Kt=p.bind(Date.prototype.getUTCMilliseconds);var Qt=["Sun","Mon","Tue","Wed","Thu","Fri"];var Vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var _t=function daysInMonth(t,r){return zt(new Date(r,t,0))};C(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Yt(this);if(t<0&&Zt(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Yt(this);var r=Zt(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Yt(this);var r=Zt(this);var e=zt(this);if(t<0&&r>11){if(r===12){return e}var n=_t(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Gt(this);if(t<0&&Bt(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Gt(this);var r=Bt(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Gt(this);var r=Bt(this);var e=Ht(this);if(t<0&&r>11){if(r===12){return e}var n=_t(0,t+1);return n-e+1}return e}},kt);C(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Wt(this);var r=Ht(this);var e=Bt(this);var n=Gt(this);var i=Lt(this);var a=Xt(this);var o=qt(this);return Qt[t]+", "+(r<10?"0"+r:r)+" "+Vt[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},kt||At);C(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return Qt[t]+" "+Vt[e]+" "+(r<10?"0"+r:r)+" "+n}},kt||Pt);if(kt||$t){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var u=this.getTimezoneOffset();var f=Math.floor(Math.abs(u)/60);var s=Math.floor(Math.abs(u)%60);return Qt[t]+" "+Vt[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(s<10?"0"+s:s)};if(k){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var tr=-621987552e5;var rr="-000001";var er=Date.prototype.toISOString&&new Date(tr).toISOString().indexOf(rr)===-1;var nr=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";C(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Gt(this);var r=Bt(this);t+=Math.floor(r/12);r=(r%12+12)%12;var e=[r+1,Ht(this),Lt(this),Xt(this),qt(this)];t=(t<0?"-":t>9999?"+":"")+G("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=G("00"+e[n],-2)}return t+"-"+Z(e,0,2).join("-")+"T"+Z(e,2).join(":")+"."+G("000"+Kt(this),-3)+"Z"}},er||nr);var ir=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(tr).toJSON().indexOf(rr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!ir){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=P.ToPrimitive(r);if(typeof n==="number"&&!isFinite(n)){return null}var i=r.toISOString;if(!m(i)){throw new TypeError("toISOString property is not callable")}return i.call(r)}}var ar=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var or=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var ur=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(ur||or||!ar){var fr=Math.pow(2,31)-1;var sr=A(new Date(1970,0,1,0,0,0,fr+1).getTime());Date=function(t){var r=function Date(e,n,i,o,u,f,s){var l=arguments.length;var v;if(this instanceof t){var c=f;var h=s;if(sr&&l>=7&&s>fr){var p=Math.floor(s/fr)*fr;var g=Math.floor(p/1e3);c+=g;h-=g*1e3}v=l===1&&a(e)===e?new t(r.parse(e)):l>=7?new t(e,n,i,o,u,c,h):l>=6?new t(e,n,i,o,u,c):l>=5?new t(e,n,i,o,u):l>=4?new t(e,n,i,o):l>=3?new t(e,n,i):l>=2?new t(e,n):l>=1?new t(e):new t}else{v=t.apply(this,arguments)}if(!R(v)){C(v,{constructor:r},true)}return v};var e=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,r){var e=r>1?1:0;return n[r]+Math.floor((t-1969+e)/4)-Math.floor((t-1901+e)/100)+Math.floor((t-1601+e)/400)+365*(t-1970)};var o=function toUTC(r){var e=0;var n=r;if(sr&&n>fr){var i=Math.floor(n/fr)*fr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return u(new t(1970,0,1,0,0,e,n))};for(var f in t){if(J(t,f)){r[f]=t[f]}}C(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;C(r.prototype,{constructor:r},true);var s=function parse(r){var n=e.exec(r);if(n){var a=u(n[1]),f=u(n[2]||1)-1,s=u(n[3]||1)-1,l=u(n[4]||0),v=u(n[5]||0),c=u(n[6]||0),h=Math.floor(u(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),g=n[9]==="-"?1:-1,y=u(n[10]||0),d=u(n[11]||0),w;var b=v>0||c>0||h>0;if(l<(b?24:25)&&v<60&&c<60&&h<1e3&&f>-1&&f<12&&y<24&&d<60&&s>-1&&s<i(a,f+1)-i(a,f)){w=((i(a,f)+s)*24+l+y*g)*60;w=((w+v+d*g)*60+c)*1e3+h;if(p){w=o(w)}if(-864e13<=w&&w<=864e13){return w}}return NaN}return t.parse.apply(this,arguments)};C(r,{parse:s});return r}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var lr=f.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128");var vr={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<vr.size){n+=t*vr.data[e];vr.data[e]=n%vr.base;n=Math.floor(n/vr.base)}},divide:function divide(t){var r=vr.size,e=0;while(--r>=0){e+=vr.data[r];vr.data[r]=Math.floor(e/t);e=e%t*vr.base}},numToString:function numToString(){var t=vr.size;var r="";while(--t>=0){if(r!==""||t===0||vr.data[t]!==0){var e=a(vr.data[t]);if(r===""){r=e}else{r+=G("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var cr=function toFixed(t){var r,e,n,i,o,f,s,l;r=u(t);r=A(r)?0:Math.floor(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=u(this);if(A(e)){return"NaN"}if(e<=-1e21||e>=1e21){return a(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){o=vr.log(e*vr.pow(2,69,1))-69;f=o<0?e*vr.pow(2,-o,1):e/vr.pow(2,o,1);f*=4503599627370496;o=52-o;if(o>0){vr.multiply(0,f);s=r;while(s>=7){vr.multiply(1e7,0);s-=7}vr.multiply(vr.pow(10,s,1),0);s=o-1;while(s>=23){vr.divide(1<<23);s-=23}vr.divide(1<<s);vr.multiply(1,1);vr.divide(2);i=vr.numToString()}else{vr.multiply(0,f);vr.multiply(1<<-o,0);i=vr.numToString()+G("0.00000000000000000000",2,2+r)}}if(r>0){l=i.length;if(l<=r){i=n+G("0.0000000000000000000",0,r-l+2)+i}else{i=n+G(i,0,l-r)+"."+G(i,l-r)}}else{i=n+i}return i};C(f,{toFixed:cr},lr);var hr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var pr=f.toPrecision;C(f,{toPrecision:function toPrecision(t){return typeof t==="undefined"?pr.call(this):pr.call(this,t)}},hr);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var r=Math.pow(2,32)-1;o.split=function(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!O(e)){return B(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f,s,l,c;var h=new RegExp(e.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:P.ToUint32(n);s=h.exec(i);while(s){l=s.index+s[0].length;if(l>u){W(a,G(i,u,s.index));if(!t&&s.length>1){s[0].replace(f,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){s[t]=void 0}}})}if(s.length>1&&s.index<i.length){v.apply(a,Z(s,1))}c=s[0].length;u=l;if(a.length>=p){break}}if(h.lastIndex===s.index){h.lastIndex++}s=h.exec(i)}if(u===i.length){if(c||!h.test("")){W(a,"")}}else{W(a,G(i,u))}return a.length>p?G(a,0,p):a}})()}else if("0".split(void 0,0).length){o.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return B(this,t,r)}}var gr=o.replace;var yr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){W(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!yr){o.replace=function replace(t,r){var e=m(r);var n=O(t)&&/\)[*?]/.test(t.source);if(!e||!n){return gr.call(this,t,r)}else{var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;W(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return gr.call(this,t,i)}}}var dr=o.substr;var wr="".substr&&"0b".substr(-1)!=="b";C(o,{substr:function substr(t,r){var e=t;if(t<0){e=y(this.length+t,0)}return dr.call(this,e,r)}},wr);var br=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var mr="\u200b";var Tr="["+br+"]";var Dr=new RegExp("^"+Tr+Tr+"*");var xr=new RegExp(Tr+Tr+"*$");var Sr=o.trim&&(br.trim()||!mr.trim());C(o,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return a(this).replace(Dr,"").replace(xr,"")}},Sr);var Or=p.bind(String.prototype.trim);var Er=o.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;C(o,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=a(this);var e=a(t);var n=arguments.length>1?u(arguments[1]):NaN;var i=A(n)?Infinity:P.ToInteger(n);var o=d(y(i,0),r.length);var f=e.length;var s=o+f;while(s>0){s=y(0,s-f);var l=H(G(r,s,o+f),e);if(l!==-1){return s+l}}return-1}},Er);var jr=o.lastIndexOf;C(o,{lastIndexOf:function lastIndexOf(t){return jr.apply(this,arguments)}},o.lastIndexOf.length!==1);if(parseInt(br+"08")!==8||parseInt(br+"0x16")!==22){parseInt=function(t){var r=/^[\-+]?0[xX]/;return function parseInt(e,n){var i=Or(e);var a=u(n)||(r.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=Or(r);var n=t(e);return n===0&&G(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Ir=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=a(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=a(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=Ir}if(k){var Mr=function(t,r){if(L(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);e.enumerable=false;Object.defineProperty(t,r,e)}};Mr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Mr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Ur=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=Ur}});
(function(t,r){"use strict";if(typeof define==="function"&&define.amd){define(r)}else if(typeof exports==="object"){module.exports=r()}else{t.returnExports=r()}})(this,function(){var t=Array;var r=t.prototype;var e=Object;var n=e.prototype;var i=Function;var a=i.prototype;var o=String;var u=o.prototype;var f=Number;var s=f.prototype;var l=r.slice;var v=r.splice;var c=r.push;var h=r.unshift;var p=r.concat;var g=r.join;var y=a.call;var d=a.apply;var w=Math.max;var b=Math.min;var m=n.toString;var T=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var D;var x=Function.prototype.toString,S=function tryFunctionObject(t){try{x.call(t);return true}catch(r){return false}},O="[object Function]",E="[object GeneratorFunction]";D=function isCallable(t){if(typeof t!=="function"){return false}if(T){return S(t)}var r=m.call(t);return r===O||r===E};var j;var I=RegExp.prototype.exec,M=function tryRegexExec(t){try{I.call(t);return true}catch(r){return false}},U="[object RegExp]";j=function isRegex(t){if(typeof t!=="object"){return false}return T?M(t):m.call(t)===U};var F;var N=String.prototype.valueOf,k=function tryStringObject(t){try{N.call(t);return true}catch(r){return false}},C="[object String]";F=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return T?k(t):m.call(t)===C};var R=e.defineProperty&&function(){try{var t={};e.defineProperty(t,"x",{enumerable:false,value:t});for(var r in t){return false}return t.x===t}catch(n){return false}}();var A=function(t){var r;if(R){r=function(t,r,n,i){if(!i&&r in t){return}e.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:n})}}else{r=function(t,r,e,n){if(!n&&r in t){return}t[r]=e}}return function defineProperties(e,n,i){for(var a in n){if(t.call(n,a)){r(e,a,n[a],i)}}}}(n.hasOwnProperty);var P=function isPrimitive(t){var r=typeof t;return t===null||r!=="object"&&r!=="function"};var $=f.isNaN||function(t){return t!==t};var J={ToInteger:function ToInteger(t){var r=+t;if($(r)){r=0}else if(r!==0&&r!==1/0&&r!==-(1/0)){r=(r>0||-1)*Math.floor(Math.abs(r))}return r},ToPrimitive:function ToPrimitive(t){var r,e,n;if(P(t)){return t}e=t.valueOf;if(D(e)){r=e.call(t);if(P(r)){return r}}n=t.toString;if(D(n)){r=n.call(t);if(P(r)){return r}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return e(t)},ToUint32:function ToUint32(t){return t>>>0}};var Y=function Empty(){};A(a,{bind:function bind(t){var r=this;if(!D(r)){throw new TypeError("Function.prototype.bind called on incompatible "+r)}var n=l.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=d.call(r,this,p.call(n,l.call(arguments)));if(e(i)===i){return i}return this}else{return d.call(r,t,p.call(n,l.call(arguments)))}};var u=w(0,r.length-n.length);var f=[];for(var s=0;s<u;s++){c.call(f,"$"+s)}a=i("binder","return function ("+g.call(f,",")+"){ return binder.apply(this, arguments); }")(o);if(r.prototype){Y.prototype=r.prototype;a.prototype=new Y;Y.prototype=null}return a}});var Z=y.bind(n.hasOwnProperty);var z=y.bind(n.toString);var G=y.bind(l);var B=d.bind(l);var H=y.bind(u.slice);var W=y.bind(u.split);var L=y.bind(u.indexOf);var X=y.bind(c);var q=y.bind(n.propertyIsEnumerable);var K=y.bind(r.sort);var Q=t.isArray||function isArray(t){return z(t)==="[object Array]"};var V=[].unshift(0)!==1;A(r,{unshift:function(){h.apply(this,arguments);return this.length}},V);A(t,{isArray:Q});var _=e("a");var tt=_[0]!=="a"||!(0 in _);var rt=function properlyBoxed(t){var r=true;var e=true;var n=false;if(t){try{t.call("foo",function(t,e,n){if(typeof n!=="object"){r=false}});t.call([1],function(){"use strict";e=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&r&&e};A(r,{forEach:function forEach(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=-1;var i=J.ToUint32(e.length);var a;if(arguments.length>1){a=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n<i){if(n in e){if(typeof a==="undefined"){t(e[n],n,r)}else{t.call(a,e[n],n,r)}}}}},!rt(r.forEach));A(r,{map:function map(r){var e=J.ToObject(this);var n=tt&&F(this)?W(this,""):e;var i=J.ToUint32(n.length);var a=t(i);var o;if(arguments.length>1){o=arguments[1]}if(!D(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u<i;u++){if(u in n){if(typeof o==="undefined"){a[u]=r(n[u],u,e)}else{a[u]=r.call(o,n[u],u,e)}}}return a}},!rt(r.map));A(r,{filter:function filter(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=J.ToUint32(e.length);var i=[];var a;var o;if(arguments.length>1){o=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u<n;u++){if(u in e){a=e[u];if(typeof o==="undefined"?t(a,u,r):t.call(o,a,u,r)){X(i,a)}}}return i}},!rt(r.filter));A(r,{every:function every(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=J.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a<n;a++){if(a in e&&!(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return false}}return true}},!rt(r.every));A(r,{some:function some(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=J.ToUint32(e.length);var i;if(arguments.length>1){i=arguments[1]}if(!D(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a<n;a++){if(a in e&&(typeof i==="undefined"?t(e[a],a,r):t.call(i,e[a],a,r))){return true}}return false}},!rt(r.some));var et=false;if(r.reduce){et=typeof r.reduce.call("es5",function(t,r,e,n){return n})==="object"}A(r,{reduce:function reduce(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=J.ToUint32(e.length);if(!D(t)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var i=0;var a;if(arguments.length>=2){a=arguments[1]}else{do{if(i in e){a=e[i++];break}if(++i>=n){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;i<n;i++){if(i in e){a=t(a,e[i],i,r)}}return a}},!et);var nt=false;if(r.reduceRight){nt=typeof r.reduceRight.call("es5",function(t,r,e,n){return n})==="object"}A(r,{reduceRight:function reduceRight(t){var r=J.ToObject(this);var e=tt&&F(this)?W(this,""):r;var n=J.ToUint32(e.length);if(!D(t)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(n===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var i;var a=n-1;if(arguments.length>=2){i=arguments[1]}else{do{if(a in e){i=e[a--];break}if(--a<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(a<0){return i}do{if(a in e){i=t(i,e[a],a,r)}}while(a--);return i}},!nt);var it=r.indexOf&&[0,1].indexOf(1,2)!==-1;A(r,{indexOf:function indexOf(t){var r=tt&&F(this)?W(this,""):J.ToObject(this);var e=J.ToUint32(r.length);if(e===0){return-1}var n=0;if(arguments.length>1){n=J.ToInteger(arguments[1])}n=n>=0?n:w(0,e+n);for(;n<e;n++){if(n in r&&r[n]===t){return n}}return-1}},it);var at=r.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;A(r,{lastIndexOf:function lastIndexOf(t){var r=tt&&F(this)?W(this,""):J.ToObject(this);var e=J.ToUint32(r.length);if(e===0){return-1}var n=e-1;if(arguments.length>1){n=b(n,J.ToInteger(arguments[1]))}n=n>=0?n:e-Math.abs(n);for(;n>=0;n--){if(n in r&&t===r[n]){return n}}return-1}},at);var ot=function(){var t=[1,2];var r=t.splice();return t.length===2&&Q(r)&&r.length===0}();A(r,{splice:function splice(t,r){if(arguments.length===0){return[]}else{return v.apply(this,arguments)}}},!ot);var ut=function(){var t={};r.splice.call(t,0,0,1);return t.length===1}();A(r,{splice:function splice(t,r){if(arguments.length===0){return[]}var e=arguments;this.length=w(J.ToInteger(this.length),0);if(arguments.length>0&&typeof r!=="number"){e=G(arguments);if(e.length<2){X(e,this.length-t)}else{e[1]=J.ToInteger(r)}}return v.apply(this,e)}},!ut);var ft=function(){var r=new t(1e5);r[8]="x";r.splice(1,1);return r.indexOf("x")===7}();var st=function(){var t=256;var r=[];r[t]="a";r.splice(t+1,0,"b");return r[t]==="a"}();A(r,{splice:function splice(t,r){var e=J.ToObject(this);var n=[];var i=J.ToUint32(e.length);var a=J.ToInteger(t);var u=a<0?w(i+a,0):b(a,i);var f=b(w(J.ToInteger(r),0),i-u);var s=0;var l;while(s<f){l=o(u+s);if(Z(e,l)){n[s]=e[l]}s+=1}var v=G(arguments,2);var c=v.length;var h;if(c<f){s=u;var p=i-f;while(s<p){l=o(s+f);h=o(s+c);if(Z(e,l)){e[h]=e[l]}else{delete e[h]}s+=1}s=i;var g=i-f+c;while(s>g){delete e[s-1];s-=1}}else if(c>f){s=i-f;while(s>u){l=o(s+f-1);h=o(s+c-1);if(Z(e,l)){e[h]=e[l]}else{delete e[h]}s-=1}}s=u;for(var y=0;y<v.length;++y){e[s]=v[y];s+=1}e.length=i-f+c;return n}},!ft||!st);var lt=r.join;var vt;try{vt=Array.prototype.join.call("123",",")!=="1,2,3"}catch(ct){vt=true}if(vt){A(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return lt.call(F(this)?W(this,""):this,r)}},vt)}var ht=[1,2].join(undefined)!=="1,2";if(ht){A(r,{join:function join(t){var r=typeof t==="undefined"?",":t;return lt.call(this,r)}},ht)}var pt=function push(t){var r=J.ToObject(this);var e=J.ToUint32(r.length);var n=0;while(n<arguments.length){r[e+n]=arguments[n];n+=1}r.length=e+n;return e+n};var gt=function(){var t={};var r=Array.prototype.push.call(t,undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!Z(t,0)}();A(r,{push:function push(t){if(Q(this)){return c.apply(this,arguments)}return pt.apply(this,arguments)}},gt);var yt=function(){var t=[];var r=t.push(undefined);return r!==1||t.length!==1||typeof t[0]!=="undefined"||!Z(t,0)}();A(r,{push:pt},yt);A(r,{slice:function(t,r){var e=F(this)?W(this,""):this;return B(e,arguments)}},tt);var dt=function(){try{[1,2].sort(null);[1,2].sort({});return true}catch(t){}return false}();var wt=function(){try{[1,2].sort(/a/);return false}catch(t){}return true}();var bt=function(){try{[1,2].sort(undefined);return true}catch(t){}return false}();A(r,{sort:function sort(t){if(typeof t==="undefined"){return K(this)}if(!D(t)){throw new TypeError("Array.prototype.sort callback must be a function")}return K(this,t)}},dt||!bt||!wt);var mt=!{toString:null}.propertyIsEnumerable("toString");var Tt=function(){}.propertyIsEnumerable("prototype");var Dt=!Z("x","0");var xt=function(t){var r=t.constructor;return r&&r.prototype===t};var St={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true};var Ot=function(){if(typeof window==="undefined"){return false}for(var t in window){try{if(!St["$"+t]&&Z(window,t)&&window[t]!==null&&typeof window[t]==="object"){xt(window[t])}}catch(r){return true}}return false}();var Et=function(t){if(typeof window==="undefined"||!Ot){return xt(t)}try{return xt(t)}catch(r){return false}};var jt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var It=jt.length;var Mt=function isArguments(t){return z(t)==="[object Arguments]"};var Ut=function isArguments(t){return t!==null&&typeof t==="object"&&typeof t.length==="number"&&t.length>=0&&!Q(t)&&D(t.callee)};var Ft=Mt(arguments)?Mt:Ut;A(e,{keys:function keys(t){var r=D(t);var e=Ft(t);var n=t!==null&&typeof t==="object";var i=n&&F(t);if(!n&&!r&&!e){throw new TypeError("Object.keys called on a non-object")}var a=[];var u=Tt&&r;if(i&&Dt||e){for(var f=0;f<t.length;++f){X(a,o(f))}}if(!e){for(var s in t){if(!(u&&s==="prototype")&&Z(t,s)){X(a,o(s))}}}if(mt){var l=Et(t);for(var v=0;v<It;v++){var c=jt[v];if(!(l&&c==="constructor")&&Z(t,c)){X(a,c)}}}return a}});var Nt=e.keys&&function(){return e.keys(arguments).length===2}(1,2);var kt=e.keys&&function(){var t=e.keys(arguments);return arguments.length!==1||t.length!==1||t[0]!==1}(1);var Ct=e.keys;A(e,{keys:function keys(t){if(Ft(t)){return Ct(G(t))}else{return Ct(t)}}},!Nt||kt);var Rt=new Date(-0xc782b5b342b24).getUTCMonth()!==0;var At=new Date(-0x55d318d56a724);var Pt=new Date(14496624e5);var $t=At.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var Jt;var Yt;var Zt=At.getTimezoneOffset();if(Zt<-720){Jt=At.toDateString()!=="Tue Jan 02 -45875";Yt=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Pt.toString())}else{Jt=At.toDateString()!=="Mon Jan 01 -45875";Yt=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Pt.toString())}var zt=y.bind(Date.prototype.getFullYear);var Gt=y.bind(Date.prototype.getMonth);var Bt=y.bind(Date.prototype.getDate);var Ht=y.bind(Date.prototype.getUTCFullYear);var Wt=y.bind(Date.prototype.getUTCMonth);var Lt=y.bind(Date.prototype.getUTCDate);var Xt=y.bind(Date.prototype.getUTCDay);var qt=y.bind(Date.prototype.getUTCHours);var Kt=y.bind(Date.prototype.getUTCMinutes);var Qt=y.bind(Date.prototype.getUTCSeconds);var Vt=y.bind(Date.prototype.getUTCMilliseconds);var _t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var tr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var rr=function daysInMonth(t,r){return Bt(new Date(r,t,0))};A(Date.prototype,{getFullYear:function getFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=zt(this);if(t<0&&Gt(this)>11){return t+1}return t},getMonth:function getMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=zt(this);var r=Gt(this);if(t<0&&r>11){return 0}return r},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=zt(this);var r=Gt(this);var e=Bt(this);if(t<0&&r>11){if(r===12){return e}var n=rr(0,t+1);return n-e+1}return e},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Ht(this);if(t<0&&Wt(this)>11){return t+1}return t},getUTCMonth:function getUTCMonth(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Ht(this);var r=Wt(this);if(t<0&&r>11){return 0}return r},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Ht(this);var r=Wt(this);var e=Lt(this);if(t<0&&r>11){if(r===12){return e}var n=rr(0,t+1);return n-e+1}return e}},Rt);A(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Xt(this);var r=Lt(this);var e=Wt(this);var n=Ht(this);var i=qt(this);var a=Kt(this);var o=Qt(this);return _t[t]+", "+(r<10?"0"+r:r)+" "+tr[e]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Rt||$t);A(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();return _t[t]+" "+tr[e]+" "+(r<10?"0"+r:r)+" "+n}},Rt||Jt);if(Rt||Yt){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var r=this.getDate();var e=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var u=this.getTimezoneOffset();var f=Math.floor(Math.abs(u)/60);var s=Math.floor(Math.abs(u)%60);return _t[t]+" "+tr[e]+" "+(r<10?"0"+r:r)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(s<10?"0"+s:s)};if(R){e.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var er=-621987552e5;var nr="-000001";var ir=Date.prototype.toISOString&&new Date(er).toISOString().indexOf(nr)===-1;var ar=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";A(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Ht(this);var r=Wt(this);t+=Math.floor(r/12);r=(r%12+12)%12;var e=[r+1,Lt(this),qt(this),Kt(this),Qt(this)];t=(t<0?"-":t>9999?"+":"")+H("00000"+Math.abs(t),0<=t&&t<=9999?-4:-6);for(var n=0;n<e.length;++n){e[n]=H("00"+e[n],-2)}return t+"-"+G(e,0,2).join("-")+"T"+G(e,2).join(":")+"."+H("000"+Vt(this),-3)+"Z"}},ir||ar);var or=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(er).toJSON().indexOf(nr)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(t){return false}}();if(!or){Date.prototype.toJSON=function toJSON(t){var r=e(this);var n=J.ToPrimitive(r);if(typeof n==="number"&&!isFinite(n)){return null}var i=r.toISOString;if(!D(i)){throw new TypeError("toISOString property is not callable")}return i.call(r)}}var ur=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var fr=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var sr=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(sr||fr||!ur){var lr=Math.pow(2,31)-1;var vr=$(new Date(1970,0,1,0,0,0,lr+1).getTime());global.Date=function(t){var r=function Date(e,n,i,a,u,f,s){var l=arguments.length;var v;if(this instanceof t){var c=f;var h=s;if(vr&&l>=7&&s>lr){var p=Math.floor(s/lr)*lr;var g=Math.floor(p/1e3);c+=g;h-=g*1e3}v=l===1&&o(e)===e?new t(r.parse(e)):l>=7?new t(e,n,i,a,u,c,h):l>=6?new t(e,n,i,a,u,c):l>=5?new t(e,n,i,a,u):l>=4?new t(e,n,i,a):l>=3?new t(e,n,i):l>=2?new t(e,n):l>=1?new t(e):new t}else{v=t.apply(this,arguments)}if(!P(v)){A(v,{constructor:r},true)}return v};var e=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var n=[0,31,59,90,120,151,181,212,243,273,304,334,365];var i=function dayFromMonth(t,r){var e=r>1?1:0;return n[r]+Math.floor((t-1969+e)/4)-Math.floor((t-1901+e)/100)+Math.floor((t-1601+e)/400)+365*(t-1970)};var a=function toUTC(r){var e=0;var n=r;if(vr&&n>lr){var i=Math.floor(n/lr)*lr;var a=Math.floor(i/1e3);e+=a;n-=a*1e3}return f(new t(1970,0,1,0,0,e,n))};for(var u in t){if(Z(t,u)){r[u]=t[u]}}A(r,{now:t.now,UTC:t.UTC},true);r.prototype=t.prototype;A(r.prototype,{constructor:r},true);var s=function parse(r){var n=e.exec(r);if(n){var o=f(n[1]),u=f(n[2]||1)-1,s=f(n[3]||1)-1,l=f(n[4]||0),v=f(n[5]||0),c=f(n[6]||0),h=Math.floor(f(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),g=n[9]==="-"?1:-1,y=f(n[10]||0),d=f(n[11]||0),w;var b=v>0||c>0||h>0;if(l<(b?24:25)&&v<60&&c<60&&h<1e3&&u>-1&&u<12&&y<24&&d<60&&s>-1&&s<i(o,u+1)-i(o,u)){w=((i(o,u)+s)*24+l+y*g)*60;w=((w+v+d*g)*60+c)*1e3+h;if(p){w=a(w)}if(-864e13<=w&&w<=864e13){return w}}return NaN}return t.parse.apply(this,arguments)};A(r,{parse:s});return r}(Date)}if(!Date.now){Date.now=function now(){return(new Date).getTime()}}var cr=s.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128");var hr={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function multiply(t,r){var e=-1;var n=r;while(++e<hr.size){n+=t*hr.data[e];hr.data[e]=n%hr.base;n=Math.floor(n/hr.base)}},divide:function divide(t){var r=hr.size;var e=0;while(--r>=0){e+=hr.data[r];hr.data[r]=Math.floor(e/t);e=e%t*hr.base}},numToString:function numToString(){var t=hr.size;var r="";while(--t>=0){if(r!==""||t===0||hr.data[t]!==0){var e=o(hr.data[t]);if(r===""){r=e}else{r+=H("0000000",0,7-e.length)+e}}}return r},pow:function pow(t,r,e){return r===0?e:r%2===1?pow(t,r-1,e*t):pow(t*t,r/2,e)},log:function log(t){var r=0;var e=t;while(e>=4096){r+=12;e/=4096}while(e>=2){r+=1;e/=2}return r}};var pr=function toFixed(t){var r,e,n,i,a,u,s,l;r=f(t);r=$(r)?0:Math.floor(r);if(r<0||r>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}e=f(this);if($(e)){return"NaN"}if(e<=-1e21||e>=1e21){return o(e)}n="";if(e<0){n="-";e=-e}i="0";if(e>1e-21){a=hr.log(e*hr.pow(2,69,1))-69;u=a<0?e*hr.pow(2,-a,1):e/hr.pow(2,a,1);u*=4503599627370496;a=52-a;if(a>0){hr.multiply(0,u);s=r;while(s>=7){hr.multiply(1e7,0);s-=7}hr.multiply(hr.pow(10,s,1),0);s=a-1;while(s>=23){hr.divide(1<<23);s-=23}hr.divide(1<<s);hr.multiply(1,1);hr.divide(2);i=hr.numToString()}else{hr.multiply(0,u);hr.multiply(1<<-a,0);i=hr.numToString()+H("0.00000000000000000000",2,2+r)}}if(r>0){l=i.length;if(l<=r){i=n+H("0.0000000000000000000",0,r-l+2)+i}else{i=n+H(i,0,l-r)+"."+H(i,l-r)}}else{i=n+i}return i};A(s,{toFixed:pr},cr);var gr=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var yr=s.toPrecision;A(s,{toPrecision:function toPrecision(t){return typeof t==="undefined"?yr.call(this):yr.call(this,t)}},gr);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var t=typeof/()??/.exec("")[1]==="undefined";var r=Math.pow(2,32)-1;u.split=function(e,n){var i=String(this);if(typeof e==="undefined"&&n===0){return[]}if(!j(e)){return W(this,e,n)}var a=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f,s,l,v;var h=new RegExp(e.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?r:J.ToUint32(n);s=h.exec(i);while(s){l=s.index+s[0].length;if(l>u){X(a,H(i,u,s.index));if(!t&&s.length>1){s[0].replace(f,function(){for(var t=1;t<arguments.length-2;t++){if(typeof arguments[t]==="undefined"){s[t]=void 0}}})}if(s.length>1&&s.index<i.length){c.apply(a,G(s,1))}v=s[0].length;u=l;if(a.length>=p){break}}if(h.lastIndex===s.index){h.lastIndex++}s=h.exec(i)}if(u===i.length){if(v||!h.test("")){X(a,"")}}else{X(a,H(i,u))}return a.length>p?G(a,0,p):a}})()}else if("0".split(void 0,0).length){u.split=function split(t,r){if(typeof t==="undefined"&&r===0){return[]}return W(this,t,r)}}var dr=u.replace;var wr=function(){var t=[];"x".replace(/x(.)?/g,function(r,e){X(t,e)});return t.length===1&&typeof t[0]==="undefined"}();if(!wr){u.replace=function replace(t,r){var e=D(r);var n=j(t)&&/\)[*?]/.test(t.source);if(!e||!n){return dr.call(this,t,r)}else{var i=function(e){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(e)||[];t.lastIndex=i;X(a,arguments[n-2],arguments[n-1]);return r.apply(this,a)};return dr.call(this,t,i)}}}var br=u.substr;var mr="".substr&&"0b".substr(-1)!=="b";A(u,{substr:function substr(t,r){var e=t;if(t<0){e=w(this.length+t,0)}return br.call(this,e,r)}},mr);var Tr=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003"+"\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028"+"\u2029\ufeff";var Dr="\u200b";var xr="["+Tr+"]";var Sr=new RegExp("^"+xr+xr+"*");var Or=new RegExp(xr+xr+"*$");var Er=u.trim&&(Tr.trim()||!Dr.trim());A(u,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Sr,"").replace(Or,"")}},Er);var jr=y.bind(String.prototype.trim);var Ir=u.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;A(u,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var r=o(this);var e=o(t);var n=arguments.length>1?f(arguments[1]):NaN;var i=$(n)?Infinity:J.ToInteger(n);var a=b(w(i,0),r.length);var u=e.length;var s=a+u;while(s>0){s=w(0,s-u);var l=L(H(r,s,a+u),e);if(l!==-1){return s+l}}return-1}},Ir);var Mr=u.lastIndexOf;A(u,{lastIndexOf:function lastIndexOf(t){return Mr.apply(this,arguments)}},u.lastIndexOf.length!==1);if(parseInt(Tr+"08")!==8||parseInt(Tr+"0x16")!==22){parseInt=function(t){var r=/^[\-+]?0[xX]/;return function parseInt(e,n){var i=jr(e);var a=f(n)||(r.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(r){var e=jr(r);var n=t(e);return n===0&&H(e,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Ur=function toString(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var t=this.name;if(typeof t==="undefined"){t="Error"}else if(typeof t!=="string"){t=o(t)}var r=this.message;if(typeof r==="undefined"){r=""}else if(typeof r!=="string"){r=o(r)}if(!t){return r}if(!r){return t}return t+": "+r};Error.prototype.toString=Ur}if(R){var Fr=function(t,r){if(q(t,r)){var e=Object.getOwnPropertyDescriptor(t,r);e.enumerable=false;Object.defineProperty(t,r,e)}};Fr(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Fr(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Nr=function toString(){var t="/"+this.source+"/";if(this.global){t+="g"}if(this.ignoreCase){t+="i"}if(this.multiline){t+="m"}return t};RegExp.prototype.toString=Nr}});
//# sourceMappingURL=es5-shim.map
{
"name": "es5-shim",
"version": "4.5.2",
"version": "4.5.3",
"description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",

@@ -36,4 +36,4 @@ "homepage": "http://github.com/es-shims/es5-shim/",

"devDependencies": {
"eslint": "^1.10.3",
"@ljharb/eslint-config": "^1.6.1",
"eslint": "^2.0.0",
"@ljharb/eslint-config": "^2.0.0",
"jasmine-node": "^1.14.5",

@@ -40,0 +40,0 @@ "jscs": "^2.9.0",

@@ -12,2 +12,4 @@ #es5-shim <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>

legacy JavaScript engine.
**Note:** As `es5-shim.js` is designed to patch the native Javascript
engine, it should be the library that is loaded first.

@@ -170,2 +172,13 @@ `es5-sham.js` and `es5-sham.min.js` monkey-patch other ES5 methods as

### Example of applying ES compatability shims in a browser project
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.3/es5-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.3/es5-sham.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-sham.min.js"></script>
<script src="https://wzrd.in/standalone/es7-shim@latest"></script>
<script src="other-libs.js"></script>
```
[npm-url]: https://npmjs.org/package/es5-shim

@@ -172,0 +185,0 @@ [npm-version-svg]: http://versionbadg.es/es-shims/es5-shim.svg

@@ -7,3 +7,4 @@ /* global beforeEach, expect */

var key, a = [];
var key;
var a = [];
for (key in o) {

@@ -10,0 +11,0 @@ if (has.call(o, key)) {

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

Sorry, the diff of this file is not supported yet

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