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 o=Object(arguments[1]);for(var i in o)t.call(o,i)&&(n[i]=o[i])}return n}}()),!window.addEventListener&&function(e,t,r,n,o,i,c){e.addEventListener=t.addEventListener=r.addEventListener=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.removeEventListener=t.removeEventListener=r.removeEventListener=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.dispatchEvent=t.dispatchEvent=r.dispatchEvent=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=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 e(t,r,n,o,i){var c=document,a=c.createStyleSheet();for(i=c.all,r=[],n=(t=t.replace(/\[for\b/gi,"[htmlFor").split(",")).length;n--;){for(a.addRule(t[n],"k:v"),o=i.length;o--;)i[o].currentStyle.k&&r.push(i[o]);a.removeRule(0)}return r}),!window.getComputedStyle&&document.documentMode<=8&&(window.getComputedStyle=function e(t){return t.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;o