diff --git a/CHANGES b/CHANGES index c4a7b098..c6533d73 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4.5.1 + - [Fix] Make sure preexisting + broken `Array#` methods that throw don’t break the runtime (#377) + - [Dev Deps] update `jscs` + 4.5.0 - [New] `parseFloat('-0')` should return -0 in Opera 12 (#371) - [New] Provide and replace Date UTC methods (#360) diff --git a/component.json b/component.json index e230f5e7..7096633a 100644 --- a/component.json +++ b/component.json @@ -2,7 +2,7 @@ "name": "es5-shim", "repo": "es-shims/es5-shim", "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines", - "version": "v4.5.0", + "version": "v4.5.1", "keywords": [ "shim", "es5", diff --git a/es5-sham.min.js b/es5-sham.min.js index 72181126..2bac8ebe 100644 --- a/es5-sham.min.js +++ b/es5-sham.min.js @@ -1,7 +1,7 @@ /*! * 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.0/LICENSE + * see https://github.com/es-shims/es5-shim/blob/v4.5.1/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("");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 diff --git a/es5-shim.map b/es5-shim.map index 880138cb..c4fe9b2e 100644 --- a/es5-shim.map +++ b/es5-shim.map @@ -1 +1 @@ -{"version":3,"sources":["es5-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","$Array","Array","ArrayPrototype","prototype","$Object","Object","ObjectPrototype","FunctionPrototype","Function","$String","String","StringPrototype","$Number","Number","NumberPrototype","array_slice","slice","array_splice","splice","array_push","push","array_unshift","unshift","array_concat","concat","call","apply","max","Math","min","to_string","toString","hasToStringTag","Symbol","toStringTag","isCallable","fnToStr","tryFunctionObject","value","e","fnClass","genClass","strClass","isRegex","regexExec","RegExp","exec","tryRegexExec","regexClass","isString","strValue","valueOf","tryStringObject","stringClass","supportsDescriptors","defineProperty","obj","enumerable","_","x","defineProperties","has","object","name","method","forceAssign","configurable","writable","map","hasOwnProperty","isPrimitive","input","type","isActualNaN","isNaN","ES","ToInteger","num","n","floor","abs","ToPrimitive","val","toStr","TypeError","ToObject","o","ToUint32","Empty","bind","that","target","args","arguments","bound","binder","result","boundLength","length","boundArgs","i","join","owns","arraySlice","arraySliceApply","strSlice","strSplit","split","strIndexOf","indexOf","pushCall","isEnum","propertyIsEnumerable","arraySort","sort","isArray","hasUnshiftReturnValueBug","boxedString","splitString","properlyBoxesContext","properlyBoxed","properlyBoxesNonStrict","properlyBoxesStrict","__","context","forEach","callbackfn","self","T","filter","every","some","reduceCoercesToObject","reduce","___","list","reduceRightCoercesToObject","reduceRight","hasFirefox2IndexOfBug","searchElement","hasFirefox2LastIndexOfBug","lastIndexOf","spliceNoopReturnsEmptyArray","a","start","deleteCount","spliceWorksWithEmptyObject","spliceWorksWithLargeSparseArrays","arr","spliceWorksWithSmallSparseArrays","O","A","len","relativeStart","actualStart","actualDeleteCount","k","from","items","itemCount","to","originalJoin","hasStringJoinBug","separator","sep","hasJoinUndefinedBug","undefined","pushShim","item","pushIsNotGeneric","pushUndefinedIsWeird","end","sortIgnoresNonFunctions","sortThrowsOnRegex","sortIgnoresUndefined","compareFn","hasDontEnumBug","hasProtoEnumBug","hasStringEnumBug","equalsConstructorPrototype","ctor","constructor","blacklistedKeys","$window","$console","$parent","$self","$frame","$frames","$frameElement","$webkitIndexedDB","$webkitStorageInfo","$external","hasAutomationEqualityBug","window","equalsConstructorPrototypeIfNotBuggy","dontEnums","dontEnumsLength","isStandardArguments","isArguments","isLegacyArguments","callee","keys","isFn","isArgs","isObject","isStr","theKeys","skipProto","skipConstructor","j","dontEnum","keysWorksWithArguments","keysHasArgumentsLengthBug","argKeys","originalKeys","hasNegativeMonthYearBug","Date","getUTCMonth","aNegativeTestDate","aPositiveTestDate","hasToUTCStringFormatBug","toUTCString","hasToDateStringFormatBug","hasToStringFormatBug","timeZoneOffset","getTimezoneOffset","toDateString","test","originalGetFullYear","getFullYear","originalGetMonth","getMonth","originalGetDate","getDate","originalGetUTCFullYear","getUTCFullYear","originalGetUTCMonth","originalGetUTCDate","getUTCDate","originalGetUTCDay","getUTCDay","originalGetUTCHours","getUTCHours","originalGetUTCMinutes","getUTCMinutes","originalGetUTCSeconds","getUTCSeconds","originalGetUTCMilliseconds","getUTCMilliseconds","dayName","monthName","daysInMonth","month","year","date","days","day","hour","minute","second","getDay","getHours","getMinutes","getSeconds","timezoneOffset","hoursOffset","minutesOffset","negativeDate","negativeYearString","hasNegativeDateBug","toISOString","hasSafari51DateBug","isFinite","RangeError","dateToJSONIsSupported","toJSON","NaN","key","tv","toISO","supportsExtendedYears","parse","acceptsInvalidDates","doesNotParseY2KNewYear","maxSafeUnsigned32Bit","pow","hasSafariSignedIntBug","getTime","NativeDate","DateShim","Y","M","D","h","m","s","ms","seconds","millis","msToShift","sToShift","isoDateExpression","months","dayFromMonth","t","toUTC","now","UTC","parseShim","string","match","millisecond","isLocalTime","Boolean","signOffset","hourOffset","minuteOffset","hasMinutesOrSecondsOrMilliseconds","hasToFixedBugs","toFixed","toFixedHelpers","base","size","data","multiply","c","c2","divide","numToString","acc","log","x2","toFixedShim","fractionDigits","f","z","hasToPrecisionUndefinedBug","toPrecision","originalToPrecision","precision","compliantExecNpcg","maxSafe32BitInt","limit","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separator2","lastIndex","lastLength","separatorCopy","source","splitLimit","index","replace","str_replace","replaceReportsGroupsCorrectly","groups","group","searchValue","replaceValue","hasCapturingGroups","wrappedReplaceValue","originalLastIndex","string_substr","substr","hasNegativeSubstrBug","normalizedStart","ws","zeroWidth","wsRegexChars","trimBeginRegexp","trimEndRegexp","hasTrimWhitespaceBug","trim","hasLastIndexBug","searchString","S","searchStr","numPos","pos","Infinity","searchLen","originalLastIndexOf","parseInt","origParseInt","hexRegex","str","radix","defaultedRadix","parseFloat","origParseFloat","inputString","errorToStringShim","msg","message","Error","ensureNonEnumerable","prop","desc","getOwnPropertyDescriptor","regexToString","global"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAcR,GAAIC,GAASC,KACb,IAAIC,GAAiBF,EAAOG,SAC5B,IAAIC,GAAUC,MACd,IAAIC,GAAkBF,EAAQD,SAC9B,IAAII,GAAoBC,SAASL,SACjC,IAAIM,GAAUC,MACd,IAAIC,GAAkBF,EAAQN,SAC9B,IAAIS,GAAUC,MACd,IAAIC,GAAkBF,EAAQT,SAC9B,IAAIY,GAAcb,EAAec,KACjC,IAAIC,GAAef,EAAegB,MAClC,IAAIC,GAAajB,EAAekB,IAChC,IAAIC,GAAgBnB,EAAeoB,OACnC,IAAIC,GAAerB,EAAesB,MAClC,IAAIC,GAAOlB,EAAkBkB,IAC7B,IAAIC,GAAQnB,EAAkBmB,KAC9B,IAAIC,GAAMC,KAAKD,GACf,IAAIE,GAAMD,KAAKC,GAGf,IAAIC,G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EAAO,YACJ,UAAWA,KAAS,SAAU,CACjCA,EAAOtD,EAAQsD,GAEnB,GAAI+U,GAAM/Y,KAAKgZ,OACf,UAAWD,KAAQ,YAAa,CAC5BA,EAAM,OACH,UAAWA,KAAQ,SAAU,CAChCA,EAAMrY,EAAQqY,GAElB,IAAK/U,EAAM,CACP,MAAO+U,GAEX,IAAKA,EAAK,CACN,MAAO/U,GAEX,MAAOA,GAAO,KAAO+U,EAGzBE,OAAM7Y,UAAU4B,SAAW8W,GAG/B,GAAIvV,EAAqB,CACrB,GAAI2V,IAAsB,SAAUzV,EAAK0V,GACrC,GAAInS,EAAOvD,EAAK0V,GAAO,CACnB,GAAIC,GAAO9Y,OAAO+Y,yBAAyB5V,EAAK0V,EAChDC,GAAK1V,WAAa,KAClBpD,QAAOkD,eAAeC,EAAK0V,EAAMC,IAGzCF,IAAoBD,MAAM7Y,UAAW,UACrC,IAAI6Y,MAAM7Y,UAAU4Y,UAAY,GAAI,CAClCC,MAAM7Y,UAAU4Y,QAAU,GAE5BE,GAAoBD,MAAM7Y,UAAW,QAGzC,GAAIO,OAAO,UAAY,SAAU,CAC7B,GAAI2Y,IAAgB,QAAStX,YACzB,GAAIwW,GAAM,IAAMxY,KAAKoW,OAAS,GAC9B,IAAIpW,KAAKuZ,OAAQ,CACbf,GAAO,IAEX,GAAIxY,KAAK2V,WAAY,CACjB6C,GAAO,IAEX,GAAIxY,KAAK4V,UAAW,CAChB4C,GAAO,IAEX,MAAOA,GAGX1V,QAAO1C,UAAU4B,SAAWsX"} \ No newline at end of file +{"version":3,"sources":["es5-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","$Array","Array","ArrayPrototype","prototype","$Object","Object","ObjectPrototype","FunctionPrototype","Function","$String","String","StringPrototype","$Number","Number","NumberPrototype","array_slice","slice","array_splice","splice","array_push","push","array_unshift","unshift","array_concat","concat","call","apply","max","Math","min","to_string","toString","hasToStringTag","Symbol","toStringTag","isCallable","fnToStr","tryFunctionObject","value","e","fnClass","genClass","strClass","isRegex","regexExec","RegExp","exec","tryRegexExec","regexClass","isString","strValue","valueOf","tryStringObject","stringClass","supportsDescriptors","defineProperty","obj","enumerable","_","x","defineProperties","has","object","name","method","forceAssign","configurable","writable","map","hasOwnProperty","isPrimitive","input","type","isActualNaN","isNaN","ES","ToInteger","num","n","floor","abs","ToPrimitive","val","toStr","TypeError","ToObject","o","ToUint32","Empty","bind","that","target","args","arguments","bound","binder","result","boundLength","length","boundArgs","i","join","owns","arraySlice","arraySliceApply","strSlice","strSplit","split","strIndexOf","indexOf","pushCall","isEnum","propertyIsEnumerable","arraySort","sort","isArray","hasUnshiftReturnValueBug","boxedString","splitString","properlyBoxesContext","properlyBoxed","properlyBoxesNonStrict","properlyBoxesStrict","threwException","__","context","forEach","callbackfn","self","T","filter","every","some","reduceCoercesToObject","reduce","___","list","reduceRightCoercesToObject","reduceRight","hasFirefox2IndexOfBug","searchElement","hasFirefox2LastIndexOfBug","lastIndexOf","spliceNoopReturnsEmptyArray","a","start","deleteCount","spliceWorksWithEmptyObject","spliceWorksWithLargeSparseArrays","arr","spliceWorksWithSmallSparseArrays","O","A","len","relativeStart","actualStart","actualDeleteCount","k","from","items","itemCount","to","originalJoin","hasStringJoinBug","separator","sep","hasJoinUndefinedBug","undefined","pushShim","item","pushIsNotGeneric","pushUndefinedIsWeird","end","sortIgnoresNonFunctions","sortThrowsOnRegex","sortIgnoresUndefined","compareFn","hasDontEnumBug","hasProtoEnumBug","hasStringEnumBug","equalsConstructorPrototype","ctor","constructor","blacklistedKeys","$window","$console","$parent","$self","$frame","$frames","$frameElement","$webkitIndexedDB","$webkitStorageInfo","$external","hasAutomationEqualityBug","window","equalsConstructorPrototypeIfNotBuggy","dontEnums","dontEnumsLength","isStandardArguments","isArguments","isLegacyArguments","callee","keys","isFn","isArgs","isObject","isStr","theKeys","skipProto","skipConstructor","j","dontEnum","keysWorksWithArguments","keysHasArgumentsLengthBug","argKeys","originalKeys","hasNegativeMonthYearBug","Date","getUTCMonth","aNegativeTestDate","aPositiveTestDate","hasToUTCStringFormatBug","toUTCString","hasToDateStringFormatBug","hasToStringFormatBug","timeZoneOffset","getTimezoneOffset","toDateString","test","originalGetFullYear","getFullYear","originalGetMonth","getMonth","originalGetDate","getDate","originalGetUTCFullYear","getUTCFullYear","originalGetUTCMonth","originalGetUTCDate","getUTCDate","originalGetUTCDay","getUTCDay","originalGetUTCHours","getUTCHours","originalGetUTCMinutes","getUTCMinutes","originalGetUTCSeconds","getUTCSeconds","originalGetUTCMilliseconds","getUTCMilliseconds","dayName","monthName","daysInMonth","month","year","date","days","day","hour","minute","second","getDay","getHours","getMinutes","getSeconds","timezoneOffset","hoursOffset","minutesOffset","negativeDate","negativeYearString","hasNegativeDateBug","toISOString","hasSafari51DateBug","isFinite","RangeError","dateToJSONIsSupported","toJSON","NaN","key","tv","toISO","supportsExtendedYears","parse","acceptsInvalidDates","doesNotParseY2KNewYear","maxSafeUnsigned32Bit","pow","hasSafariSignedIntBug","getTime","NativeDate","DateShim","Y","M","D","h","m","s","ms","seconds","millis","msToShift","sToShift","isoDateExpression","months","dayFromMonth","t","toUTC","now","UTC","parseShim","string","match","millisecond","isLocalTime","Boolean","signOffset","hourOffset","minuteOffset","hasMinutesOrSecondsOrMilliseconds","hasToFixedBugs","toFixed","toFixedHelpers","base","size","data","multiply","c","c2","divide","numToString","acc","log","x2","toFixedShim","fractionDigits","f","z","hasToPrecisionUndefinedBug","toPrecision","originalToPrecision","precision","compliantExecNpcg","maxSafe32BitInt","limit","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separator2","lastIndex","lastLength","separatorCopy","source","splitLimit","index","replace","str_replace","replaceReportsGroupsCorrectly","groups","group","searchValue","replaceValue","hasCapturingGroups","wrappedReplaceValue","originalLastIndex","string_substr","substr","hasNegativeSubstrBug","normalizedStart","ws","zeroWidth","wsRegexChars","trimBeginRegexp","trimEndRegexp","hasTrimWhitespaceBug","trim","hasLastIndexBug","searchString","S","searchStr","numPos","pos","Infinity","searchLen","originalLastIndexOf","parseInt","origParseInt","hexRegex","str","radix","defaultedRadix","parseFloat","origParseFloat","inputString","errorToStringShim","msg","message","Error","ensureNonEnumerable","prop","desc","getOwnPropertyDescriptor","regexToString","global"],"mappings":";;;;;CAaC,SAAUA,EAAMC,GACb,YAGA,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE5CD,OAAOD,OACJ,UAAWG,WAAY,SAAU,CAIpCC,OAAOD,QAAUH,QACd,CAEHD,EAAKM,cAAgBL,OAE3BM,KAAM,WAcR,GAAIC,GAASC,KACb,IAAIC,GAAiBF,EAAOG,SAC5B,IAAIC,GAAUC,MACd,IAAIC,GAAkBF,EAAQD,SAC9B,IAAII,GAAoBC,SAASL,SACjC,IAAIM,GAAUC,MACd,IAAIC,GAAkBF,EAAQN,SAC9B,IAAIS,GAAUC,MACd,IAAIC,GAAkBF,EAAQT,SAC9B,IAAIY,GAAcb,EAAec,KACjC,IAAIC,GAAef,EAAegB,MAClC,IAAIC,GAAajB,EAAekB,IAChC,IAAIC,GAAgBnB,EAAeoB,OACnC,IAAIC,GAAerB,EAAesB,MAClC,IAAIC,GAAOlB,EAAkBkB,IAC7B,IAAIC,GAAQnB,EAAkBmB,KAC9B,IAAIC,GAAMC,KAAKD,GACf,IAAIE,GAAMD,KAAKC,GAGf,IAAIC,GAAYxB,EAAgByB,QAEhC,IAAIC,SAAwBC,UAAW,kBAAqBA,QAAOC,cAAgB,QACnF,IAAIC,EAA6D,IAAIC,GAAU5B,SAASL,UAAU4B,SAAUM,EAAoB,QAASA,mBAAkBC,GAAS,IAAMF,EAAQX,KAAKa,EAAQ,OAAO,MAAQ,MAAOC,GAAK,MAAO,SAAYC,EAAU,oBAAqBC,EAAW,4BAA8BN,GAAa,QAASA,YAAWG,GAAS,SAAWA,KAAU,WAAY,CAAE,MAAO,OAAS,GAAIN,EAAgB,CAAE,MAAOK,GAAkBC,GAAU,GAAII,GAAWZ,EAAUL,KAAKa,EAAQ,OAAOI,KAA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CACrB,GAAI4V,IAAsB,SAAU1V,EAAK2V,GACrC,GAAIpS,EAAOvD,EAAK2V,GAAO,CACnB,GAAIC,GAAO/Y,OAAOgZ,yBAAyB7V,EAAK2V,EAChDC,GAAK3V,WAAa,KAClBpD,QAAOkD,eAAeC,EAAK2V,EAAMC,IAGzCF,IAAoBD,MAAM9Y,UAAW,UACrC,IAAI8Y,MAAM9Y,UAAU6Y,UAAY,GAAI,CAClCC,MAAM9Y,UAAU6Y,QAAU,GAE5BE,GAAoBD,MAAM9Y,UAAW,QAGzC,GAAIO,OAAO,UAAY,SAAU,CAC7B,GAAI4Y,IAAgB,QAASvX,YACzB,GAAIyW,GAAM,IAAMzY,KAAKqW,OAAS,GAC9B,IAAIrW,KAAKwZ,OAAQ,CACbf,GAAO,IAEX,GAAIzY,KAAK4V,WAAY,CACjB6C,GAAO,IAEX,GAAIzY,KAAK6V,UAAW,CAChB4C,GAAO,IAEX,MAAOA,GAGX3V,QAAO1C,UAAU4B,SAAWuX"} \ No newline at end of file diff --git a/es5-shim.min.js b/es5-shim.min.js index bd2ec1a8..ffe3b7c9 100644 --- a/es5-shim.min.js +++ b/es5-shim.min.js @@ -1,7 +1,7 @@ /*! * 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.0/LICENSE + * see https://github.com/es-shims/es5-shim/blob/v4.5.1/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;f1){a=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n1){o=arguments[1]}if(!m(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u1){o=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a=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=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(;n1){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(si-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=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;f11){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=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=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<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;t1&&s.index=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.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;f1){a=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n1){o=arguments[1]}if(!m(r)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u1){o=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a1){i=arguments[1]}if(!m(t)){throw new TypeError("Array.prototype.some callback must be a function")}for(var a=0;a=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=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(;n1){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(si-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=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;f11){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=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=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<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;t1&&s.index=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}}); //# sourceMappingURL=es5-shim.map diff --git a/package.json b/package.json index 101e9727..c309db25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "es5-shim", - "version": "4.5.0", + "version": "4.5.1", "description": "ECMAScript 5 compatibility shims for legacy JavaScript engines", "homepage": "http://github.com/es-shims/es5-shim/", "contributors": [