[];b.listeners[a].push({callback:h,_listener:c})}elseconsole.log("Failed to _attach event:"+a+" on "+b)};f=function(b,a,h){if(typeofb.detachEvent!=="undefined"){varc=b.KIS_0_6_0;if(c&&c.listeners&&c.listeners[a])for(vare=c.listeners[a],f=e.length,i=0;i<f;i++)if(e[i].callback===h){b.detachEvent("on"+a,e[i]._listener);e.splice(i,1);e.length===0&&deletec.listeners[a];break}}}}e=function(b,a,h,g){varj,k;if(typeofb==="undefined"){console.log(arguments);console.log(a);returnfalse}if(a.match(/^([\w\-]+)$/))g===
"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,f=Object,e=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(b){for(vara=0,d=this.length;a<d;a++)if(ainthis&&this[a]===b)returna;return-1},b=function(b,a){this.name=b;this.code=DOMException[b];this.message=a},d=function(d,c){if(c==="")thrownewb("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(c))thrownewb("INVALID_CHARACTER_ERR",
"String contains an invalid character");returna.call(d,c)},h=function(b){for(vara=e.call(b.className),a=a?a.split(/\s+/):[],d=0,c=a.length;d<c;d++)this.push(a[d]);this._updateClassName=function(){b.className=this.toString()}},g=h.prototype=[],j=function(){returnnewh(this)};b.prototype=Error.prototype;g.item=function(a){returnthis[a]||null};g.contains=function(a){returnd(this,a+"")!==-1};g.add=function(a){a=a+"";if(d(this,a)===-1){this.push(a);this._updateClassName()}};g.remove=function(a){a=
(function(){functionc(a,b,d){varc,e;if(typeofa.hasAttribute!=="undefined"){a.hasAttribute(b)&&(c=a.getAttribute(b));e=true}elseif(typeofa[b]!=="undefined"){c=a[b];e=false}elseif(b==="class"&&typeofa.className!=="undefined"){b="className";c=a.className;e=false}if(typeofc==="undefined"&&(typeofd==="undefined"||d===null)){console.log(d);console.log(a);console.log("Element does not have the selected attribute");returnnull}if(typeofd==="undefined")returnc;typeofd!=="undefined"&&d!==null?e===
c;returnnull}if(a.style[e[b]]){a.style[e[b]]=c;returnnull}console.log("Property "+b+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(a){$_.each(function(b){b.classList.add(a)})},removeClass:function(a){$_.each(function(b){b.classList.remove(a)})},hide:function(){this.css("display","none")},show:function(a){typeofa==="undefined"&&(a="block");this.css("display",a)},attr:function(a,b){vard=this.el;if(d.length>1&&typeofb==="undefined"){console.log(d);console.log("Must be a singular element")}elseif(d.length>