(function(){var d,h=this,l=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b},m=function(a){return"string"==typeof a},aa=function(a,b,c){return a.call.apply(a.bind,arguments)},ba=function(a,b,c){if(!a)throw Error();if(2b?1:0};var ea=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(m(a))return m(b)&&1==b.length?a.indexOf(b,c):-1;for(;cparseFloat(B)){A=String(D);break a}}A=B} var ra=A,ma={},E=function(a){return na(a,function(){for(var b=0,c=da(String(ra)).split("."),e=da(String(a)).split("."),g=Math.max(c.length,e.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Da=function(a,b,c,e,g){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!e;this.j=g;this.key=++za;this.h=this.i=!1},R=function(a){a.h=!0;a.listener=null;a.a=null;a.src=null;a.j=null};var S=function(a){this.src=a;this.a={};this.b=0},Ea=function(a,b,c,e,g){var f=b.toString();b=a.a[f];b||(b=a.a[f]=[],a.b++);var k=T(b,c,e,g);-1c.keyCode||void 0!=c.returnValue)){a:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=b.a;g;g=g.parentNode)c.push(g);a=a.type;for(var f=c.length-1;0<=f;f--)b.a=c[f],g=Pa(c[f],a,!0,b),e=e&&g;for(f=0;f>>0),Ia=function(a){if("function"==l(a))return a;a[Qa]||(a[Qa]=function(b){return a.handleEvent(b)});return a[Qa]};var X=function(){M.call(this);this.b=new S(this);this.aa=this};t(X,M);X.prototype[P]=!0;X.prototype.addEventListener=function(a,b,c,e){V(this,a,b,c,e)};X.prototype.removeEventListener=function(a,b,c,e){Ma(this,a,b,c,e)}; var Sa=function(a,b){a=a.aa;var c=b.type||b;if(m(b))b=new N(b,a);else if(b instanceof N)b.b=b.b||a;else{var e=b;b=new N(c,a);ka(b,e)}a=b.a=a;Ra(a,c,!0,b);Ra(a,c,!1,b)},Ra=function(a,b,c,e){if(b=a.b.a[String(b)]){b=b.concat();for(var g=!0,f=0;f