/*! * https://github.com/es-shims/es5-shim * @license es5-shim Copyright 2009-2020 by contributors, MIT License * see https://github.com/es-shims/es5-shim/blob/master/LICENSE */ (function(t,e){"use strict";if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){var t=Array;var e=t.prototype;var r=Object;var n=r.prototype;var i=Function;var a=i.prototype;var o=String;var u=o.prototype;var f=Number;var l=f.prototype;var s=e.slice;var c=e.splice;var v=e.push;var h=e.unshift;var p=e.concat;var y=e.join;var d=a.call;var g=a.apply;var w=Math.max;var b=Math.min;var T=Math.floor;var m=Math.abs;var D=Math.pow;var S=n.toString;var x=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var O;var E=Function.prototype.toString,j=/^\s*class /,I=function isES6ClassFn(t){try{var e=E.call(t);var r=e.replace(/\/\/.*\n/g,"");var n=r.replace(/\/\*[.\s\S]*\*\//g,"");var i=n.replace(/\n/gm," ").replace(/ {2}/g," ");return j.test(i)}catch(a){return false}},U=function tryFunctionObject(t){try{if(I(t)){return false}E.call(t);return true}catch(e){return false}},$="[object Function]",F="[object GeneratorFunction]",O=function isCallable(t){if(!t){return false}if(typeof t!=="function"&&typeof t!=="object"){return false}if(x){return U(t)}if(I(t)){return false}var e=S.call(t);return e===$||e===F};var N;var M=RegExp.prototype.exec,C=function tryRegexExec(t){try{M.call(t);return true}catch(e){return false}},k="[object RegExp]";N=function isRegex(t){if(typeof t!=="object"){return false}return x?C(t):S.call(t)===k};var A;var R=String.prototype.valueOf,P=function tryStringObject(t){try{R.call(t);return true}catch(e){return false}},J="[object String]";A=function isString(t){if(typeof t==="string"){return true}if(typeof t!=="object"){return false}return x?P(t):S.call(t)===J};var Y=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:false,value:t});for(var e in t){return false}return t.x===t}catch(n){return false}}();var z=function(t){var e;if(Y){e=function(t,e,n,i){if(!i&&e in t){return}r.defineProperty(t,e,{configurable:true,enumerable:false,writable:true,value:n})}}else{e=function(t,e,r,n){if(!n&&e in t){return}t[e]=r}}return function defineProperties(r,n,i){for(var a in n){if(t.call(n,a)){e(r,a,n[a],i)}}}}(n.hasOwnProperty);var Z=function isPrimitive(t){var e=typeof t;return t===null||e!=="object"&&e!=="function"};var G=f.isNaN||function isActualNaN(t){return t!==t};var H={ToInteger:function ToInteger(t){var e=+t;if(G(e)){e=0}else if(e!==0&&e!==1/0&&e!==-(1/0)){e=(e>0||-1)*T(m(e))}return e},ToPrimitive:function ToPrimitive(t){var e,r,n;if(Z(t)){return t}r=t.valueOf;if(O(r)){e=r.call(t);if(Z(e)){return e}}n=t.toString;if(O(n)){e=n.call(t);if(Z(e)){return e}}throw new TypeError},ToObject:function(t){if(t==null){throw new TypeError("can't convert "+t+" to object")}return r(t)},ToUint32:function ToUint32(t){return t>>>0}};var W=function Empty(){};z(a,{bind:function bind(t){var e=this;if(!O(e)){throw new TypeError("Function.prototype.bind called on incompatible "+e)}var n=s.call(arguments,1);var a;var o=function(){if(this instanceof a){var i=g.call(e,this,p.call(n,s.call(arguments)));if(r(i)===i){return i}return this}else{return g.call(e,t,p.call(n,s.call(arguments)))}};var u=w(0,e.length-n.length);var f=[];for(var l=0;l0){e[r]=t[r]}return V(e,Q(arguments,1))};q=function arraySliceApplyIE(t,e){return V(L(t),e)}}}var _=d.bind(u.slice);var tt=d.bind(u.split);var et=d.bind(u.indexOf);var rt=d.bind(v);var nt=d.bind(n.propertyIsEnumerable);var it=d.bind(e.sort);var at=t.isArray||function isArray(t){return X(t)==="[object Array]"};var ot=[].unshift(0)!==1;z(e,{unshift:function(){h.apply(this,arguments);return this.length}},ot);z(t,{isArray:at});var ut=r("a");var ft=ut[0]!=="a"||!(0 in ut);var lt=function properlyBoxed(t){var e=true;var r=true;var n=false;if(t){try{t.call("foo",function(t,r,n){if(typeof n!=="object"){e=false}});t.call([1],function(){"use strict";r=typeof this==="string"},"x")}catch(i){n=true}}return!!t&&!n&&e&&r};z(e,{forEach:function forEach(t){var e=H.ToObject(this);var r=ft&&A(this)?tt(this,""):e;var n=-1;var i=H.ToUint32(r.length);var a;if(arguments.length>1){a=arguments[1]}if(!O(t)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++n1){o=arguments[1]}if(!O(e)){throw new TypeError("Array.prototype.map callback must be a function")}for(var u=0;u1){o=arguments[1]}if(!O(t)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var u=0;u1){i=arguments[1]}if(!O(t)){throw new TypeError("Array.prototype.every callback must be a function")}for(var a=0;a1){i=arguments[1]}if(!O(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 r){a=r[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 r){i=r[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 r){i=t(i,r[a],a,e)}}while(a--);return i}},!ct);var vt=e.indexOf&&[0,1].indexOf(1,2)!==-1;z(e,{indexOf:function indexOf(t){var e=ft&&A(this)?tt(this,""):H.ToObject(this);var r=H.ToUint32(e.length);if(r===0){return-1}var n=0;if(arguments.length>1){n=H.ToInteger(arguments[1])}n=n>=0?n:w(0,r+n);for(;n1){n=b(n,H.ToInteger(arguments[1]))}n=n>=0?n:r-m(n);for(;n>=0;n--){if(n in e&&t===e[n]){return n}}return-1}},ht);var pt=function(){var t=[1,2];var e=t.splice();return t.length===2&&at(e)&&e.length===0}();z(e,{splice:function splice(t,e){if(arguments.length===0){return[]}else{return c.apply(this,arguments)}}},!pt);var yt=function(){var t={};e.splice.call(t,0,0,1);return t.length===1}();z(e,{splice:function splice(t,e){if(arguments.length===0){return[]}var r=arguments;this.length=w(H.ToInteger(this.length),0);if(arguments.length>0&&typeof e!=="number"){r=L(arguments);if(r.length<2){rt(r,this.length-t)}else{r[1]=H.ToInteger(e)}}return c.apply(this,r)}},!yt);var dt=function(){var e=new t(1e5);e[8]="x";e.splice(1,1);return e.indexOf("x")===7}();var gt=function(){var t=256;var e=[];e[t]="a";e.splice(t+1,0,"b");return e[t]==="a"}();z(e,{splice:function splice(t,e){var r=H.ToObject(this);var n=[];var i=H.ToUint32(r.length);var a=H.ToInteger(t);var u=a<0?w(i+a,0):b(a,i);var f=arguments.length===0?0:arguments.length===1?i-u:b(w(H.ToInteger(e),0),i-u);var l=0;var s;while(ly){delete r[l-1];l-=1}}else if(v>f){l=i-f;while(l>u){s=o(l+f-1);h=o(l+v-1);if(B(r,s)){r[h]=r[s]}else{delete r[h]}l-=1}}l=u;for(var d=0;d=0&&!at(t)&&O(t.callee)};var Pt=At(arguments)?At:Rt;z(r,{keys:function keys(t){var e=O(t);var r=Pt(t);var n=t!==null&&typeof t==="object";var i=n&&A(t);if(!n&&!e&&!r){throw new TypeError("Object.keys called on a non-object")}var a=[];var u=It&&e;if(i&&Ut||r){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=qt(this);var e=Kt(this);if(t<0&&e>11){return 0}return e},getDate:function getDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=qt(this);var e=Kt(this);var r=Qt(this);if(t<0&&e>11){if(e===12){return r}var n=fe(0,t+1);return n-r+1}return r},getUTCFullYear:function getUTCFullYear(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Vt(this);if(t<0&&_t(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=Vt(this);var e=_t(this);if(t<0&&e>11){return 0}return e},getUTCDate:function getUTCDate(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=Vt(this);var e=_t(this);var r=te(this);if(t<0&&e>11){if(e===12){return r}var n=fe(0,t+1);return n-r+1}return r}},Zt);z(Date.prototype,{toUTCString:function toUTCString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=ee(this);var e=te(this);var r=_t(this);var n=Vt(this);var i=re(this);var a=ne(this);var o=ie(this);return oe[t]+", "+(e<10?"0"+e:e)+" "+ue[r]+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"}},Zt||Wt);z(Date.prototype,{toDateString:function toDateString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var e=this.getDate();var r=this.getMonth();var n=this.getFullYear();return oe[t]+" "+ue[r]+" "+(e<10?"0"+e:e)+" "+n}},Zt||Bt);if(Zt||Xt){Date.prototype.toString=function toString(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var t=this.getDay();var e=this.getDate();var r=this.getMonth();var n=this.getFullYear();var i=this.getHours();var a=this.getMinutes();var o=this.getSeconds();var u=this.getTimezoneOffset();var f=T(m(u)/60);var l=T(m(u)%60);return oe[t]+" "+ue[r]+" "+(e<10?"0"+e:e)+" "+n+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(o<10?"0"+o:o)+" GMT"+(u>0?"-":"+")+(f<10?"0"+f:f)+(l<10?"0"+l:l)};if(Y){r.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var le=-621987552e5;var se="-000001";var ce=Date.prototype.toISOString&&new Date(le).toISOString().indexOf(se)===-1;var ve=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z";var he=d.bind(Date.prototype.getTime);z(Date.prototype,{toISOString:function toISOString(){if(!isFinite(this)||!isFinite(he(this))){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var t=Vt(this);var e=_t(this);t+=T(e/12);e=(e%12+12)%12;var r=[e+1,te(this),re(this),ne(this),ie(this)];t=(t<0?"-":t>9999?"+":"")+_("00000"+m(t),0<=t&&t<=9999?-4:-6);for(var n=0;n=7&&l>we){var p=T(l/we)*we;var y=T(p/1e3);v+=y;h-=y*1e3}c=s===1&&o(r)===r?new t(e.parse(r)):s>=7?new t(r,n,i,a,u,v,h):s>=6?new t(r,n,i,a,u,v):s>=5?new t(r,n,i,a,u):s>=4?new t(r,n,i,a):s>=3?new t(r,n,i):s>=2?new t(r,n):s>=1?new t(r instanceof t?+r:r):new t}else{c=t.apply(this,arguments)}if(!Z(c)){z(c,{constructor:e},true)}return c};var r=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,e){var r=e>1?1:0;return n[e]+T((t-1969+r)/4)-T((t-1901+r)/100)+T((t-1601+r)/400)+365*(t-1970)};var a=function toUTC(e){var r=0;var n=e;if(be&&n>we){var i=T(n/we)*we;var a=T(i/1e3);r+=a;n-=a*1e3}return f(new t(1970,0,1,0,0,r,n))};for(var u in t){if(B(t,u)){e[u]=t[u]}}z(e,{now:t.now,UTC:t.UTC},true);e.prototype=t.prototype;z(e.prototype,{constructor:e},true);var l=function parse(e){var n=r.exec(e);if(n){var o=f(n[1]),u=f(n[2]||1)-1,l=f(n[3]||1)-1,s=f(n[4]||0),c=f(n[5]||0),v=f(n[6]||0),h=T(f(n[7]||0)*1e3),p=Boolean(n[4]&&!n[8]),y=n[9]==="-"?1:-1,d=f(n[10]||0),g=f(n[11]||0),w;var b=c>0||v>0||h>0;if(s<(b?24:25)&&c<60&&v<60&&h<1e3&&u>-1&&u<12&&d<24&&g<60&&l>-1&&l=0){r+=me.data[e];me.data[e]=T(r/t);r=r%t*me.base}},numToString:function numToString(){var t=me.size;var e="";while(--t>=0){if(e!==""||t===0||me.data[t]!==0){var r=o(me.data[t]);if(e===""){e=r}else{e+=_("0000000",0,7-r.length)+r}}}return e},pow:function pow(t,e,r){return e===0?r:e%2===1?pow(t,e-1,r*t):pow(t*t,e/2,r)},log:function log(t){var e=0;var r=t;while(r>=4096){e+=12;r/=4096}while(r>=2){e+=1;r/=2}return e}};var De=function toFixed(t){var e,r,n,i,a,u,l,s;e=f(t);e=G(e)?0:T(e);if(e<0||e>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}r=f(this);if(G(r)){return"NaN"}if(r<=-1e21||r>=1e21){return o(r)}n="";if(r<0){n="-";r=-r}i="0";if(r>1e-21){a=me.log(r*me.pow(2,69,1))-69;u=a<0?r*me.pow(2,-a,1):r/me.pow(2,a,1);u*=4503599627370496;a=52-a;if(a>0){me.multiply(0,u);l=e;while(l>=7){me.multiply(1e7,0);l-=7}me.multiply(me.pow(10,l,1),0);l=a-1;while(l>=23){me.divide(1<<23);l-=23}me.divide(1<0){s=i.length;if(s<=e){i=n+_("0.0000000000000000000",0,e-s+2)+i}else{i=n+_(i,0,s-e)+"."+_(i,s-e)}}else{i=n+i}return i};z(l,{toFixed:De},Te);var Se=function(){try{return 1..toPrecision(undefined)==="1"}catch(t){return true}}();var xe=l.toPrecision;z(l,{toPrecision:function toPrecision(t){return typeof t==="undefined"?xe.call(this):xe.call(this,t)}},Se);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 e=D(2,32)-1;u.split=function split(r,n){var i=String(this);if(typeof r==="undefined"&&n===0){return[]}if(!N(r)){return tt(this,r,n)}var a=[];var o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),u=0,f,l,s,c;var h=new RegExp(r.source,o+"g");if(!t){f=new RegExp("^"+h.source+"$(?!\\s)",o)}var p=typeof n==="undefined"?e:H.ToUint32(n);l=h.exec(i);while(l){s=l.index+l[0].length;if(s>u){rt(a,_(i,u,l.index));if(!t&&l.length>1){l[0].replace(f,function(){for(var t=1;t1&&l.index=p){break}}if(h.lastIndex===l.index){h.lastIndex++}l=h.exec(i)}if(u===i.length){if(c||!h.test("")){rt(a,"")}}else{rt(a,_(i,u))}return a.length>p?L(a,0,p):a}})()}else if("0".split(void 0,0).length){u.split=function split(t,e){if(typeof t==="undefined"&&e===0){return[]}return tt(this,t,e)}}var Oe=u.replace;var Ee=function(){var t=[];"x".replace(/x(.)?/g,function(e,r){rt(t,r)});return t.length===1&&typeof t[0]==="undefined"}();if(!Ee){u.replace=function replace(t,e){var r=O(e);var n=N(t)&&/\)[*?]/.test(t.source);if(!r||!n){return Oe.call(this,t,e)}else{var i=function(r){var n=arguments.length;var i=t.lastIndex;t.lastIndex=0;var a=t.exec(r)||[];t.lastIndex=i;rt(a,arguments[n-2],arguments[n-1]);return e.apply(this,a)};return Oe.call(this,t,i)}}}var je=u.substr;var Ie="".substr&&"0b".substr(-1)!=="b";z(u,{substr:function substr(t,e){var r=t;if(t<0){r=w(this.length+t,0)}return je.call(this,r,e)}},Ie);var Ue="\t\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 $e="\u200b";var Fe="["+Ue+"]";var Ne=new RegExp("^"+Fe+Fe+"*");var Me=new RegExp(Fe+Fe+"*$");var Ce=u.trim&&(Ue.trim()||!$e.trim());z(u,{trim:function trim(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return o(this).replace(Ne,"").replace(Me,"")}},Ce);var ke=d.bind(String.prototype.trim);var Ae=u.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;z(u,{lastIndexOf:function lastIndexOf(t){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var e=o(this);var r=o(t);var n=arguments.length>1?f(arguments[1]):NaN;var i=G(n)?Infinity:H.ToInteger(n);var a=b(w(i,0),e.length);var u=r.length;var l=a+u;while(l>0){l=w(0,l-u);var s=et(_(e,l,a+u),r);if(s!==-1){return l+s}}return-1}},Ae);var Re=u.lastIndexOf;z(u,{lastIndexOf:function lastIndexOf(t){return Re.apply(this,arguments)}},u.lastIndexOf.length!==1);if(parseInt(Ue+"08")!==8||parseInt(Ue+"0x16")!==22){parseInt=function(t){var e=/^[-+]?0[xX]/;return function parseInt(r,n){if(typeof r==="symbol"){""+r}var i=ke(String(r));var a=f(n)||(e.test(i)?16:10);return t(i,a)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(t){return function parseFloat(e){var r=ke(String(e));var n=t(r);return n===0&&_(r,0,1)==="-"?-0:n}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Pe=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 e=this.message;if(typeof e==="undefined"){e=""}else if(typeof e!=="string"){e=o(e)}if(!t){return e}if(!e){return t}return t+": "+e};Error.prototype.toString=Pe}if(Y){var Je=function(t,e){if(nt(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if(r.configurable){r.enumerable=false;Object.defineProperty(t,e,r)}}};Je(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Je(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Ye=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=Ye}}); //# sourceMappingURL=es5-shim.map