(function(){vare=e||window.$_;typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(c){varc=(c.HTMLElement||c.Element).prototype,g=Object,f=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(d){for(varb=0,a=this.length;b<a;b++)if(binthis&&this[b]===d)returnb;return-1},e=function(d,b){this.name=d;this.code=DOMException[d];this.message=b},d=function(d,b){if(b==="")thrownewe("SYNTAX_ERR","An invalid or illegal string was specified");
if(/\s/.test(b))thrownewe("INVALID_CHARACTER_ERR","String contains an invalid character");returna.call(d,b)},b=function(d){for(varb=f.call(d.className),b=b?b.split(/\s+/):[],a=0,i=b.length;a<i;a++)this.push(b[a]);this._updateClassName=function(){d.className=this.toString()}},i=b.prototype=[],l=function(){returnnewb(this)};e.prototype=Error.prototype;i.item=function(d){returnthis[d]||null};i.contains=function(b){b+="";returnd(this,b)!==-1};i.add=function(b){b+="";d(this,b)===-1&&(this.push(b),
b,a){varc,f;if(typeofd.hasAttribute!=="undefined")d.hasAttribute(b)&&(c=d.getAttribute(b)),f=true;elseif(typeofd[b]!=="undefined")c=d[b],f=false;elseif(b==="class"&&typeofd.className!=="undefined")b="className",c=d.className,f=false;if(typeofc==="undefined"&&(typeofa==="undefined"||a===null))console.log(a),console.log(d),console.log("Element does not have the selected attribute");else{if(typeofa==="undefined")returnc;typeofa!=="undefined"&&a!==null?f===true?d.setAttribute(b,a):d[b]=a:a===
a:console.log("Property "+b+" nor an equivalent seems to exist")}vara,h;a=/^([\w\-]+)$/;h=/\.([\w\-]+)$/;e.ext("dom",{addClass:function(d){e.each(function(b){b.classList.add(d)})},removeClass:function(d){e.each(function(b){b.classList.remove(d)})},hide:function(){this.css("display","none")},show:function(d){typeofd==="undefined"&&(d="block");this.css("display",d)},attr:function(d,b){vara=this.el;if(a.length>1&&typeofb==="undefined")console.log(a),console.log("Must be a singular element");elseif(a.length>
this.el;if(e.type(d)!=="string")returne(d);elseif(d.match(/#([\w\-]+$)/))returne(e.$(d));else{varc,f=b.length,g=[];if(d.match(a))for(c=0;c<f;c++)b[c].tagName.toLowerCase()==d.toLowerCase()&&g.push(b[c]);elseif(d.match(h)){d=d.replace(".","");for(c=0;c<f;c++)b[c].classList.contains(d)&&g.push(b[c])}elseconsole.log(d+" is not a valid filter");returne(g.length==1?g[0]:g)}}})})();(function(){e.ext("store",{get:function(c){returnJSON.parse(localStorage.getItem(c))},set:function(c,g){typeofg!==
a),d.attachEvent("on"+b,c),i=d.KIS_0_3_0=d.KIS_0_3_0||{},d=i,d.listeners=d.listeners||{},d.listeners[b]=d.listeners[b]||[],d.listeners[b].push({callback:a,listener:c})):console.log("Failed to attach event:"+b+" on "+d)},g=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],g=f.length,h=0;h<g;h++)if(f[h].callback===c){a.detachEvent("on"+b,f[h].listener);f.splice(h,1);f.length===0&&deletee.listeners[b];break}}});f=function(a,