es5-shim.min.js 22 KB

1
  1. !function(a,b){"use strict";"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.returnExports=b()}(this,function(){var a,b,c=Array,d=c.prototype,e=Object,f=e.prototype,g=Function,h=g.prototype,i=String,j=i.prototype,k=Number,l=k.prototype,m=d.slice,n=d.splice,o=d.push,p=d.unshift,q=d.concat,r=d.join,s=h.call,t=h.apply,u=Math.max,v=Math.min,w=f.toString,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Function.prototype.toString,z=/^\s*class /,A=function(a){try{var b=y.call(a),c=b.replace(/\/\/.*\n/g,""),d=c.replace(/\/\*[.\s\S]*\*\//g,""),e=d.replace(/\n/gm," ").replace(/ {2}/g," ");return z.test(e)}catch(a){return!1}},B=function(a){try{return!A(a)&&(y.call(a),!0)}catch(a){return!1}},C="[object Function]",D="[object GeneratorFunction]",a=function(a){if(!a)return!1;if("function"!=typeof a&&"object"!=typeof a)return!1;if(x)return B(a);if(A(a))return!1;var b=w.call(a);return b===C||b===D},E=RegExp.prototype.exec,F=function(a){try{return E.call(a),!0}catch(a){return!1}},G="[object RegExp]";b=function(a){return"object"==typeof a&&(x?F(a):w.call(a)===G)};var H,I=String.prototype.valueOf,J=function(a){try{return I.call(a),!0}catch(a){return!1}},K="[object String]";H=function(a){return"string"==typeof a||"object"==typeof a&&(x?J(a):w.call(a)===K)};var L=e.defineProperty&&function(){try{var a={};e.defineProperty(a,"x",{enumerable:!1,value:a});for(var b in a)return!1;return a.x===a}catch(a){return!1}}(),M=function(a){var b;return b=L?function(a,b,c,d){!d&&b in a||e.defineProperty(a,b,{configurable:!0,enumerable:!1,writable:!0,value:c})}:function(a,b,c,d){!d&&b in a||(a[b]=c)},function(c,d,e){for(var f in d)a.call(d,f)&&b(c,f,d[f],e)}}(f.hasOwnProperty),N=function(a){var b=typeof a;return null===a||"object"!==b&&"function"!==b},O=k.isNaN||function(a){return a!==a},P={ToInteger:function(a){var b=+a;return O(b)?b=0:0!==b&&b!==1/0&&b!==-(1/0)&&(b=(b>0||-1)*Math.floor(Math.abs(b))),b},ToPrimitive:function(b){var c,d,e;if(N(b))return b;if(d=b.valueOf,a(d)&&(c=d.call(b),N(c)))return c;if(e=b.toString,a(e)&&(c=e.call(b),N(c)))return c;throw new TypeError},ToObject:function(a){if(null==a)throw new TypeError("can't convert "+a+" to object");return e(a)},ToUint32:function(a){return a>>>0}},Q=function(){};M(h,{bind:function(b){var c=this;if(!a(c))throw new TypeError("Function.prototype.bind called on incompatible "+c);for(var d,f=m.call(arguments,1),h=function(){if(this instanceof d){var a=t.call(c,this,q.call(f,m.call(arguments)));return e(a)===a?a:this}return t.call(c,b,q.call(f,m.call(arguments)))},i=u(0,c.length-f.length),j=[],k=0;k<i;k++)o.call(j,"$"+k);return d=g("binder","return function ("+r.call(j,",")+"){ return binder.apply(this, arguments); }")(h),c.prototype&&(Q.prototype=c.prototype,d.prototype=new Q,Q.prototype=null),d}});var R=s.bind(f.hasOwnProperty),S=s.bind(f.toString),T=s.bind(m),U=t.bind(m),V=s.bind(j.slice),W=s.bind(j.split),X=s.bind(j.indexOf),Y=s.bind(o),Z=s.bind(f.propertyIsEnumerable),$=s.bind(d.sort),_=c.isArray||function(a){return"[object Array]"===S(a)},aa=1!==[].unshift(0);M(d,{unshift:function(){return p.apply(this,arguments),this.length}},aa),M(c,{isArray:_});var ba=e("a"),ca="a"!==ba[0]||!(0 in ba),da=function(a){var b=!0,c=!0,d=!1;if(a)try{a.call("foo",function(a,c,d){"object"!=typeof d&&(b=!1)}),a.call([1],function(){"use strict";c="string"==typeof this},"x")}catch(a){d=!0}return!!a&&!d&&b&&c};M(d,{forEach:function(b){var c,d=P.ToObject(this),e=ca&&H(this)?W(this,""):d,f=-1,g=P.ToUint32(e.length);if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++f<g;)f in e&&("undefined"==typeof c?b(e[f],f,d):b.call(c,e[f],f,d))}},!da(d.forEach)),M(d,{map:function(b){var d,e=P.ToObject(this),f=ca&&H(this)?W(this,""):e,g=P.ToUint32(f.length),h=c(g);if(arguments.length>1&&(d=arguments[1]),!a(b))throw new TypeError("Array.prototype.map callback must be a function");for(var i=0;i<g;i++)i in f&&("undefined"==typeof d?h[i]=b(f[i],i,e):h[i]=b.call(d,f[i],i,e));return h}},!da(d.map)),M(d,{filter:function(b){var c,d,e=P.ToObject(this),f=ca&&H(this)?W(this,""):e,g=P.ToUint32(f.length),h=[];if(arguments.length>1&&(d=arguments[1]),!a(b))throw new TypeError("Array.prototype.filter callback must be a function");for(var i=0;i<g;i++)i in f&&(c=f[i],("undefined"==typeof d?b(c,i,e):b.call(d,c,i,e))&&Y(h,c));return h}},!da(d.filter)),M(d,{every:function(b){var c,d=P.ToObject(this),e=ca&&H(this)?W(this,""):d,f=P.ToUint32(e.length);if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.every callback must be a function");for(var g=0;g<f;g++)if(g in e&&!("undefined"==typeof c?b(e[g],g,d):b.call(c,e[g],g,d)))return!1;return!0}},!da(d.every)),M(d,{some:function(b){var c,d=P.ToObject(this),e=ca&&H(this)?W(this,""):d,f=P.ToUint32(e.length);if(arguments.length>1&&(c=arguments[1]),!a(b))throw new TypeError("Array.prototype.some callback must be a function");for(var g=0;g<f;g++)if(g in e&&("undefined"==typeof c?b(e[g],g,d):b.call(c,e[g],g,d)))return!0;return!1}},!da(d.some));var ea=!1;d.reduce&&(ea="object"==typeof d.reduce.call("es5",function(a,b,c,d){return d})),M(d,{reduce:function(b){var c=P.ToObject(this),d=ca&&H(this)?W(this,""):c,e=P.ToUint32(d.length);if(!a(b))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===e&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var f,g=0;if(arguments.length>=2)f=arguments[1];else for(;;){if(g in d){f=d[g++];break}if(++g>=e)throw new TypeError("reduce of empty array with no initial value")}for(;g<e;g++)g in d&&(f=b(f,d[g],g,c));return f}},!ea);var fa=!1;d.reduceRight&&(fa="object"==typeof d.reduceRight.call("es5",function(a,b,c,d){return d})),M(d,{reduceRight:function(b){var c=P.ToObject(this),d=ca&&H(this)?W(this,""):c,e=P.ToUint32(d.length);if(!a(b))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===e&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var f,g=e-1;if(arguments.length>=2)f=arguments[1];else for(;;){if(g in d){f=d[g--];break}if(--g<0)throw new TypeError("reduceRight of empty array with no initial value")}if(g<0)return f;do g in d&&(f=b(f,d[g],g,c));while(g--);return f}},!fa);var ga=d.indexOf&&[0,1].indexOf(1,2)!==-1;M(d,{indexOf:function(a){var b=ca&&H(this)?W(this,""):P.ToObject(this),c=P.ToUint32(b.length);if(0===c)return-1;var d=0;for(arguments.length>1&&(d=P.ToInteger(arguments[1])),d=d>=0?d:u(0,c+d);d<c;d++)if(d in b&&b[d]===a)return d;return-1}},ga);var ha=d.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;M(d,{lastIndexOf:function(a){var b=ca&&H(this)?W(this,""):P.ToObject(this),c=P.ToUint32(b.length);if(0===c)return-1;var d=c-1;for(arguments.length>1&&(d=v(d,P.ToInteger(arguments[1]))),d=d>=0?d:c-Math.abs(d);d>=0;d--)if(d in b&&a===b[d])return d;return-1}},ha);var ia=function(){var a=[1,2],b=a.splice();return 2===a.length&&_(b)&&0===b.length}();M(d,{splice:function(a,b){return 0===arguments.length?[]:n.apply(this,arguments)}},!ia);var ja=function(){var a={};return d.splice.call(a,0,0,1),1===a.length}();M(d,{splice:function(a,b){if(0===arguments.length)return[];var c=arguments;return this.length=u(P.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof b&&(c=T(arguments),c.length<2?Y(c,this.length-a):c[1]=P.ToInteger(b)),n.apply(this,c)}},!ja);var ka=function(){var a=new c(1e5);return a[8]="x",a.splice(1,1),7===a.indexOf("x")}(),la=function(){var a=256,b=[];return b[a]="a",b.splice(a+1,0,"b"),"a"===b[a]}();M(d,{splice:function(a,b){for(var c,d=P.ToObject(this),e=[],f=P.ToUint32(d.length),g=P.ToInteger(a),h=g<0?u(f+g,0):v(g,f),j=v(u(P.ToInteger(b),0),f-h),k=0;k<j;)c=i(h+k),R(d,c)&&(e[k]=d[c]),k+=1;var l,m=T(arguments,2),n=m.length;if(n<j){k=h;for(var o=f-j;k<o;)c=i(k+j),l=i(k+n),R(d,c)?d[l]=d[c]:delete d[l],k+=1;k=f;for(var p=f-j+n;k>p;)delete d[k-1],k-=1}else if(n>j)for(k=f-j;k>h;)c=i(k+j-1),l=i(k+n-1),R(d,c)?d[l]=d[c]:delete d[l],k-=1;k=h;for(var q=0;q<m.length;++q)d[k]=m[q],k+=1;return d.length=f-j+n,e}},!ka||!la);var ma,na=d.join;try{ma="1,2,3"!==Array.prototype.join.call("123",",")}catch(a){ma=!0}ma&&M(d,{join:function(a){var b="undefined"==typeof a?",":a;return na.call(H(this)?W(this,""):this,b)}},ma);var oa="1,2"!==[1,2].join(void 0);oa&&M(d,{join:function(a){var b="undefined"==typeof a?",":a;return na.call(this,b)}},oa);var pa=function(a){for(var b=P.ToObject(this),c=P.ToUint32(b.length),d=0;d<arguments.length;)b[c+d]=arguments[d],d+=1;return b.length=c+d,c+d},qa=function(){var a={},b=Array.prototype.push.call(a,void 0);return 1!==b||1!==a.length||"undefined"!=typeof a[0]||!R(a,0)}();M(d,{push:function(a){return _(this)?o.apply(this,arguments):pa.apply(this,arguments)}},qa);var ra=function(){var a=[],b=a.push(void 0);return 1!==b||1!==a.length||"undefined"!=typeof a[0]||!R(a,0)}();M(d,{push:pa},ra),M(d,{slice:function(a,b){var c=H(this)?W(this,""):this;return U(c,arguments)}},ca);var sa=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(a){}return!1}(),ta=function(){try{return[1,2].sort(/a/),!1}catch(a){}return!0}(),ua=function(){try{return[1,2].sort(void 0),!0}catch(a){}return!1}();M(d,{sort:function(b){if("undefined"==typeof b)return $(this);if(!a(b))throw new TypeError("Array.prototype.sort callback must be a function");return $(this,b)}},sa||!ua||!ta);var va=!{toString:null}.propertyIsEnumerable("toString"),wa=function(){}.propertyIsEnumerable("prototype"),xa=!R("x","0"),ya=function(a){var b=a.constructor;return b&&b.prototype===a},za={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},Aa=function(){if("undefined"==typeof window)return!1;for(var a in window)try{!za["$"+a]&&R(window,a)&&null!==window[a]&&"object"==typeof window[a]&&ya(window[a])}catch(a){return!0}return!1}(),Ba=function(a){if("undefined"==typeof window||!Aa)return ya(a);try{return ya(a)}catch(a){return!1}},Ca=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Da=Ca.length,Ea=function(a){return"[object Arguments]"===S(a)},Fa=function(b){return null!==b&&"object"==typeof b&&"number"==typeof b.length&&b.length>=0&&!_(b)&&a(b.callee)},Ga=Ea(arguments)?Ea:Fa;M(e,{keys:function(b){var c=a(b),d=Ga(b),e=null!==b&&"object"==typeof b,f=e&&H(b);if(!e&&!c&&!d)throw new TypeError("Object.keys called on a non-object");var g=[],h=wa&&c;if(f&&xa||d)for(var j=0;j<b.length;++j)Y(g,i(j));if(!d)for(var k in b)h&&"prototype"===k||!R(b,k)||Y(g,i(k));if(va)for(var l=Ba(b),m=0;m<Da;m++){var n=Ca[m];l&&"constructor"===n||!R(b,n)||Y(g,n)}return g}});var Ha=e.keys&&function(){return 2===e.keys(arguments).length}(1,2),Ia=e.keys&&function(){var a=e.keys(arguments);return 1!==arguments.length||1!==a.length||1!==a[0]}(1),Ja=e.keys;M(e,{keys:function(a){return Ja(Ga(a)?T(a):a)}},!Ha||Ia);var Ka,La,Ma=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Na=new Date(-0x55d318d56a724),Oa=new Date(14496624e5),Pa="Mon, 01 Jan -45875 11:59:59 GMT"!==Na.toUTCString(),Qa=Na.getTimezoneOffset();Qa<-720?(Ka="Tue Jan 02 -45875"!==Na.toDateString(),La=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Oa.toString())):(Ka="Mon Jan 01 -45875"!==Na.toDateString(),La=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Oa.toString()));var Ra=s.bind(Date.prototype.getFullYear),Sa=s.bind(Date.prototype.getMonth),Ta=s.bind(Date.prototype.getDate),Ua=s.bind(Date.prototype.getUTCFullYear),Va=s.bind(Date.prototype.getUTCMonth),Wa=s.bind(Date.prototype.getUTCDate),Xa=s.bind(Date.prototype.getUTCDay),Ya=s.bind(Date.prototype.getUTCHours),Za=s.bind(Date.prototype.getUTCMinutes),$a=s.bind(Date.prototype.getUTCSeconds),_a=s.bind(Date.prototype.getUTCMilliseconds),ab=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],bb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cb=function(a,b){return Ta(new Date(b,a,0))};M(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ra(this);return a<0&&Sa(this)>11?a+1:a},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ra(this),b=Sa(this);return a<0&&b>11?0:b},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ra(this),b=Sa(this),c=Ta(this);if(a<0&&b>11){if(12===b)return c;var d=cb(0,a+1);return d-c+1}return c},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ua(this);return a<0&&Va(this)>11?a+1:a},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ua(this),b=Va(this);return a<0&&b>11?0:b},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Ua(this),b=Va(this),c=Wa(this);if(a<0&&b>11){if(12===b)return c;var d=cb(0,a+1);return d-c+1}return c}},Ma),M(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=Xa(this),b=Wa(this),c=Va(this),d=Ua(this),e=Ya(this),f=Za(this),g=$a(this);return ab[a]+", "+(b<10?"0"+b:b)+" "+bb[c]+" "+d+" "+(e<10?"0"+e:e)+":"+(f<10?"0"+f:f)+":"+(g<10?"0"+g:g)+" GMT"}},Ma||Pa),M(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=this.getDay(),b=this.getDate(),c=this.getMonth(),d=this.getFullYear();return ab[a]+" "+bb[c]+" "+(b<10?"0"+b:b)+" "+d}},Ma||Ka),(Ma||La)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var a=this.getDay(),b=this.getDate(),c=this.getMonth(),d=this.getFullYear(),e=this.getHours(),f=this.getMinutes(),g=this.getSeconds(),h=this.getTimezoneOffset(),i=Math.floor(Math.abs(h)/60),j=Math.floor(Math.abs(h)%60);return ab[a]+" "+bb[c]+" "+(b<10?"0"+b:b)+" "+d+" "+(e<10?"0"+e:e)+":"+(f<10?"0"+f:f)+":"+(g<10?"0"+g:g)+" GMT"+(h>0?"-":"+")+(i<10?"0"+i:i)+(j<10?"0"+j:j)},L&&e.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var db=-621987552e5,eb="-000001",fb=Date.prototype.toISOString&&new Date(db).toISOString().indexOf(eb)===-1,gb=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),hb=s.bind(Date.prototype.getTime);M(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(hb(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var a=Ua(this),b=Va(this);a+=Math.floor(b/12),b=(b%12+12)%12;var c=[b+1,Wa(this),Ya(this),Za(this),$a(this)];a=(a<0?"-":a>9999?"+":"")+V("00000"+Math.abs(a),0<=a&&a<=9999?-4:-6);for(var d=0;d<c.length;++d)c[d]=V("00"+c[d],-2);return a+"-"+T(c,0,2).join("-")+"T"+T(c,2).join(":")+"."+V("000"+_a(this),-3)+"Z"}},fb||gb);var ib=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&new Date(db).toJSON().indexOf(eb)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(a){return!1}}();ib||(Date.prototype.toJSON=function(b){var c=e(this),d=P.ToPrimitive(c);if("number"==typeof d&&!isFinite(d))return null;var f=c.toISOString;if(!a(f))throw new TypeError("toISOString property is not callable");return f.call(c)});var jb=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),kb=!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")),lb=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(lb||kb||!jb){var mb=Math.pow(2,31)-1,nb=O(new Date(1970,0,1,0,0,0,mb+1).getTime());Date=function(a){var b=function(c,d,e,f,g,h,j){var k,l=arguments.length;if(this instanceof a){var m=h,n=j;if(nb&&l>=7&&j>mb){var o=Math.floor(j/mb)*mb,p=Math.floor(o/1e3);m+=p,n-=1e3*p}k=1===l&&i(c)===c?new a(b.parse(c)):l>=7?new a(c,d,e,f,g,m,n):l>=6?new a(c,d,e,f,g,m):l>=5?new a(c,d,e,f,g):l>=4?new a(c,d,e,f):l>=3?new a(c,d,e):l>=2?new a(c,d):l>=1?new a(c instanceof a?+c:c):new a}else k=a.apply(this,arguments);return N(k)||M(k,{constructor:b},!0),k},c=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),d=[0,31,59,90,120,151,181,212,243,273,304,334,365],e=function(a,b){var c=b>1?1:0;return d[b]+Math.floor((a-1969+c)/4)-Math.floor((a-1901+c)/100)+Math.floor((a-1601+c)/400)+365*(a-1970)},f=function(b){var c=0,d=b;if(nb&&d>mb){var e=Math.floor(d/mb)*mb,f=Math.floor(e/1e3);c+=f,d-=1e3*f}return k(new a(1970,0,1,0,0,c,d))};for(var g in a)R(a,g)&&(b[g]=a[g]);M(b,{now:a.now,UTC:a.UTC},!0),b.prototype=a.prototype,M(b.prototype,{constructor:b},!0);var h=function(b){var d=c.exec(b);if(d){var g,h=k(d[1]),i=k(d[2]||1)-1,j=k(d[3]||1)-1,l=k(d[4]||0),m=k(d[5]||0),n=k(d[6]||0),o=Math.floor(1e3*k(d[7]||0)),p=Boolean(d[4]&&!d[8]),q="-"===d[9]?1:-1,r=k(d[10]||0),s=k(d[11]||0),t=m>0||n>0||o>0;return l<(t?24:25)&&m<60&&n<60&&o<1e3&&i>-1&&i<12&&r<24&&s<60&&j>-1&&j<e(h,i+1)-e(h,i)&&(g=60*(24*(e(h,i)+j)+l+r*q),g=1e3*(60*(g+m+s*q)+n)+o,p&&(g=f(g)),-864e13<=g&&g<=864e13)?g:NaN}return a.parse.apply(this,arguments)};return M(b,{parse:h}),b}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var ob=l.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),pb={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(a,b){for(var c=-1,d=b;++c<pb.size;)d+=a*pb.data[c],pb.data[c]=d%pb.base,d=Math.floor(d/pb.base)},divide:function(a){for(var b=pb.size,c=0;--b>=0;)c+=pb.data[b],pb.data[b]=Math.floor(c/a),c=c%a*pb.base},numToString:function(){for(var a=pb.size,b="";--a>=0;)if(""!==b||0===a||0!==pb.data[a]){var c=i(pb.data[a]);""===b?b=c:b+=V("0000000",0,7-c.length)+c}return b},pow:function a(b,c,d){return 0===c?d:c%2===1?a(b,c-1,d*b):a(b*b,c/2,d)},log:function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b}},qb=function(a){var b,c,d,e,f,g,h,j;if(b=k(a),b=O(b)?0:Math.floor(b),b<0||b>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(c=k(this),O(c))return"NaN";if(c<=-1e21||c>=1e21)return i(c);if(d="",c<0&&(d="-",c=-c),e="0",c>1e-21)if(f=pb.log(c*pb.pow(2,69,1))-69,g=f<0?c*pb.pow(2,-f,1):c/pb.pow(2,f,1),g*=4503599627370496,f=52-f,f>0){for(pb.multiply(0,g),h=b;h>=7;)pb.multiply(1e7,0),h-=7;for(pb.multiply(pb.pow(10,h,1),0),h=f-1;h>=23;)pb.divide(1<<23),h-=23;pb.divide(1<<h),pb.multiply(1,1),pb.divide(2),e=pb.numToString()}else pb.multiply(0,g),pb.multiply(1<<-f,0),e=pb.numToString()+V("0.00000000000000000000",2,2+b);return b>0?(j=e.length,e=j<=b?d+V("0.0000000000000000000",0,b-j+2)+e:d+V(e,0,j-b)+"."+V(e,j-b)):e=d+e,e};M(l,{toFixed:qb},ob);var rb=function(){try{return"1"===1..toPrecision(void 0)}catch(a){return!0}}(),sb=l.toPrecision;M(l,{toPrecision:function(a){return"undefined"==typeof a?sb.call(this):sb.call(this,a)}},rb),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var a="undefined"==typeof/()??/.exec("")[1],c=Math.pow(2,32)-1;j.split=function(d,e){var f=String(this);if("undefined"==typeof d&&0===e)return[];if(!b(d))return W(this,d,e);var g,h,i,j,k=[],l=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),m=0,n=new RegExp(d.source,l+"g");a||(g=new RegExp("^"+n.source+"$(?!\\s)",l));var p="undefined"==typeof e?c:P.ToUint32(e);for(h=n.exec(f);h&&(i=h.index+h[0].length,!(i>m&&(Y(k,V(f,m,h.index)),!a&&h.length>1&&h[0].replace(g,function(){for(var a=1;a<arguments.length-2;a++)"undefined"==typeof arguments[a]&&(h[a]=void 0)}),h.length>1&&h.index<f.length&&o.apply(k,T(h,1)),j=h[0].length,m=i,k.length>=p)));)n.lastIndex===h.index&&n.lastIndex++,h=n.exec(f);return m===f.length?!j&&n.test("")||Y(k,""):Y(k,V(f,m)),k.length>p?T(k,0,p):k}}():"0".split(void 0,0).length&&(j.split=function(a,b){return"undefined"==typeof a&&0===b?[]:W(this,a,b)});var tb=j.replace,ub=function(){var a=[];return"x".replace(/x(.)?/g,function(b,c){Y(a,c)}),1===a.length&&"undefined"==typeof a[0]}();ub||(j.replace=function(c,d){var e=a(d),f=b(c)&&/\)[*?]/.test(c.source);if(e&&f){var g=function(a){var b=arguments.length,e=c.lastIndex;c.lastIndex=0;var f=c.exec(a)||[];return c.lastIndex=e,Y(f,arguments[b-2],arguments[b-1]),d.apply(this,f)};return tb.call(this,c,g)}return tb.call(this,c,d)});var vb=j.substr,wb="".substr&&"b"!=="0b".substr(-1);M(j,{substr:function(a,b){var c=a;return a<0&&(c=u(this.length+a,0)),vb.call(this,c,b)}},wb);var xb="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",yb="​",zb="["+xb+"]",Ab=new RegExp("^"+zb+zb+"*"),Bb=new RegExp(zb+zb+"*$"),Cb=j.trim&&(xb.trim()||!yb.trim());M(j,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return i(this).replace(Ab,"").replace(Bb,"")}},Cb);var Db=s.bind(String.prototype.trim),Eb=j.lastIndexOf&&"abcあい".lastIndexOf("あい",2)!==-1;M(j,{lastIndexOf:function(a){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");for(var b=i(this),c=i(a),d=arguments.length>1?k(arguments[1]):NaN,e=O(d)?1/0:P.ToInteger(d),f=v(u(e,0),b.length),g=c.length,h=f+g;h>0;){h=u(0,h-g);var j=X(V(b,h,f+g),c);if(j!==-1)return h+j}return-1}},Eb);var Fb=j.lastIndexOf;if(M(j,{lastIndexOf:function(a){return Fb.apply(this,arguments)}},1!==j.lastIndexOf.length),8===parseInt(xb+"08")&&22===parseInt(xb+"0x16")||(parseInt=function(a){var b=/^[\-+]?0[xX]/;return function(c,d){var e=Db(c),f=k(d)||(b.test(e)?16:10);return a(e,f)}}(parseInt)),1/parseFloat("-0")!==-(1/0)&&(parseFloat=function(a){return function(b){var c=Db(b),d=a(c);return 0===d&&"-"===V(c,0,1)?-0:d}}(parseFloat)),"RangeError: test"!==String(new RangeError("test"))){var Gb=function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");var a=this.name;"undefined"==typeof a?a="Error":"string"!=typeof a&&(a=i(a));var b=this.message;return"undefined"==typeof b?b="":"string"!=typeof b&&(b=i(b)),a?b?a+": "+b:a:b};Error.prototype.toString=Gb}if(L){var Hb=function(a,b){if(Z(a,b)){var c=Object.getOwnPropertyDescriptor(a,b);c.enumerable=!1,Object.defineProperty(a,b,c)}};Hb(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),Hb(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var Ib=function(){var a="/"+this.source+"/";return this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),a};RegExp.prototype.toString=Ib}});