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