Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=0;n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=new Array(c),o=0;o>>0;if("function"!=typeof e)throw new TypeError;for(var n=[],o=arguments[1],i=0;i>>0;if(0===o)return-1;var i=+t||0;if(Math.abs(i)===1/0&&(i=0),i>=o)return-1;for(r=Math.max(i>=0?i:o-Math.abs(i),0);r>>0,n=arguments.length>=2?arguments[1]:void 0,o=0;o1){var n=Object(arguments[1]);for(var o in n)e.call(n,o)&&(r[o]=n[o])}return r}}()),!window.addEventListener&&function(e,t,r,n,o,i,c){e[n]=t[n]=r[n]=function(e,t){var r=this;c.unshift([r,e,t,function(e){e.currentTarget=r,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},e.target=e.srcElement||r,t.call(r,e)}]),this.attachEvent("on"+e,c[0][3])},e[o]=t[o]=r[o]=function(e,t){for(var r=0,n;n=c[r];++r)if(n[0]==this&&n[1]==e&&n[2]==t)return this.detachEvent("on"+e,c.splice(r,1)[0][3])},e[i]=t[i]=r[i]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]),function(){var regExp=function(e){return new RegExp("(^| )"+e+"( |$)")},forEach=function(e,t,r){for(var n=0;n=0&&t.item(r)!==this;);return r>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}return null}),window.document.querySelectorAll||(document.querySelectorAll=document.body.querySelectorAll=Object.querySelectorAll=function querySelectorAllPolyfill(e,t,r,n,o){var i=document,c=i.createStyleSheet();for(o=i.all,t=[],r=(e=e.replace(/\[for\b/gi,"[htmlFor").split(",")).length;r--;){for(c.addRule(e[r],"k:v"),n=o.length;n--;)o[n].currentStyle.k&&t.push(o[n]);c.removeRule(0)}return t}),!window.getComputedStyle&&document.documentMode<=8&&(window.getComputedStyle=function getComputedStylePolyfill(e){return e.currentStyle}),function(){if(document.documentMode<=8){var e=Array.prototype.slice;Array.prototype.slice=function(){if(this instanceof Array)return e.apply(this,arguments);for(var t=[],r=arguments.length>=1?arguments[0]:0,n=arguments.length>=2?arguments[1]:this.length,o=r;o0?1:-1)*Math.floor(Math.abs(t)):t},t=Math.pow(2,53)-1,toLength=function(e){var r=toInteger(e);return Math.min(Math.max(r,0),t)};return function from(e){var t=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=arguments.length>1?arguments[1]:void 0,o;if(void 0!==n){if(!isCallable(n))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var i=toLength(r.length),c=isCallable(t)?Object(new t(i)):new Array(i),a=0,l;a