!function(){functiont(e,i){if(window===this)returnnewt(e,i);switch(i=i||document,this.__islib__=!0,this.length=0,!0){caseeinstanceofHTMLElement:this[this.length++]=e;break;caseeinstanceofString||"string"==typeofe:if("<"==e[0]&&">"==e[e.length-1]){if(e=e.substring(1,e.length-1),e.replace(/^[^\#\.\$\[]*/,function(t){this[this.length++]=document.createElement(t)}.bind(this)),0===this.length)throw"Invalid Element Creation string";e.replace(/\#[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].id=t.substring(1,t.length),""}.bind(this)),e.replace(/\.[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].classList.add(t.substring(1,t.length)),""}.bind(this)),e.replace(/\$[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].name=t.substring(1,t.length),""}.bind(this)),e.replace(/\[[^\=]+\=(\"[^\"]*|\'[^\']*)\]/g,function(t){t=t.substring(1,t.length);varn=t.indexOf("=");returnthis[this.length-1].setAttribute(t.substring(0,n),t.substring(n+2,t.length-1)),""}.bind(this))}else{if(!1ini)throw"querySelectorAll must be supported for lib to work";for(varr=i.querySelectorAll(e),s=0;s<r.length;s++)this[this.length++]=r[s]}break;caseeinstanceofNumber||"number"==typeofe:if("_index"inwindow._&&einwindow._._index)returnwindow._._index[e];throw"Index not defined";caseeinstanceofArray||e&&e.constructor===Array:for(vars=0;s<e.length||0==s;s++)n.call(this,this,t(e[s]));break;caseeinstanceofObject||"object"==typeofe:if("__islib__"ine&&e.__islib__===!0)n.call(this,this,e);elseif("length"ine)for(vars=0;s<e.length||0==s;s++)n.call(this,this,t(e[s]));elsen.call(this,this,t(void0));break;caseeinstanceofFunction||"function"==typeofe:throw"lib cannot accept an input of type 'Function'";default:this[this.length++]=document}returnthis}varn=function(){if(0===arguments.length)returnnull;for(vart=0,n=0;n<arguments.length;n++)for(vare=0;e<arguments[n].length;e++)this[t++]=arguments[n][e];this.length=t};window._=t,t.prototype=window._.fn={index:function(t){if(!(tinstanceofNumber||"number"==typeoft))throw"Method index only accpets an argument of type Number.";return"_index"inwindow._||(window._._index={}),window._._index[t]=this,this},include:function(e){returnn.call(this,this,t(e)),this},exclude:function(n){for(vare=t(n),i=this.length,r=0,s=[];i--;)for(r=e.length;r--;)this[i]!==e[r]&&s.unshift(this[i]);returnt(s)},get:function(t){if(!(tinstanceofNumber||"number"==typeoft))throw"Method get only accepts an argument of type Number";returnthis[t]},remove:function(){for(vart=this.length;t--;this[t].parentNode.removeChild(this[t]));returnthis},each:function(n){if(!(ninstanceofFunction||"function"==typeofn))throw"Method each only accepts an argument of type Function";for(vare=this.length;e--;n(t(this[e])));returnthis},filter:function(n){if(!(ninstanceofFunction||"function"==typeofn))throw"Method each only accepts an argument of type Function";for(vare=[],i=0;i<this.length;i++)n(t(this[i]))&&e.push(this[i]);returnt(e)},child:function(n){for(vare=this.length,i=newArray(this.length),e=this.length;e--;i[e]=t(n,this[e]));returnt(i)},parent:function(){for(varn=[],e=!0,i=0;i<this.length;i++){for(n.push(this[i].parentNode),ii=i;i--;e=e&&n[i]===n[ii]);e||n.pop()}returnt(n)},appendTo:function(n){if(!n)throw"Method appendTo expects an argument";n=t(n);for(vare=0;e<this.length;e++)n[0].appendChild(this[e]);returnthis},append:function(n){if(!n)throw"Method append expects an argument";n=t(n);for(vare=0;e<n.length;e++)this[0].appendChild(n[e]);returnthis},toggleClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method toggleClass only accepts an argument of type String";for(varn=0;n<this.length;n++)this[n].classList.contains(t)?this[n].classList.remove(t):this[n].classList.add(t);returnthis},hasClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method hasClass only accepts an argument of type String";for(varn=0,e=!0;n<this.length&&e;)e&=this[n++].classList.contains(t);returne},addClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method addClass only accepts an argument of type String";for(varn=this.length;n--;this[n].classList.add(t));returnthis},dropClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method dropClass only accepts an argument of type String";for(varn=this.length;n--;this[n].classList.remove(t));returnthis},css:function(t){if(0==arguments.length)throw"Method css expects an arguments";if(1==arguments.length){if(tinstanceofString||"string"==typeoft){if(-1==selector.indexOf(":"))returnthis[0].style[t];t=t.split(";");for(varn=0;n<t.length;n++)for(vare=this.length;e--;this[e].style[t[n].split(":")[0].trim()]=t[n].split(":")[1].trim());}elseif(tinstanceofArray||t.constructor===Array){if(!(t[0]instanceofString))throw"Method css only accepts an input of String Arrays";for(varn=0;n<t.length-t.length%2;n+=2)if(t[n]instanceofString&&t[n+1]instanceofString)for(varn=this.length;n--;this[n].style[t[n]]=t[n+1]);}elseif(tinstanceofObject||"object"==typeoft)for(variint)for(varn=this.length;n--;this[n].style[i]=t[i]);}elsefor(varn=0;n<arguments.length-arguments.length%2;n+=2)if((arguments[n]instanceofString||"string"==typeofarguments[n])&&(arguments[n+1]instanceofString||"string"==typeofarguments[n+1]))for(varr=this.length;r--;this[r].style[arguments[n]]=arguments[n+1]);returnthis},attr:function(t){if(0==arguments.length)throw"Method attr expects an argument.";if(1==arguments.length){if(tinstanceofString||"string"==typeoft)returnthis[0].getAttribute(t);throw"Method attr can only accept a single argument of type String"}for(varn=0;n<arguments.length-arguments.length%2;n+=2)for(vare=this.length;e--;this[e].setAttribute(arguments[n],arguments[n+1]));returnthis},prop:function(t){if(0==arguments.length)throw"Method prop expects an argument.";if(1==arguments.length){if(tinstanceofString||"string"==typeoft)returnthis[0][t];throw"Method prop can only accept a single argument of type String"}for(varn=0;n<arguments.length-arguments.length%2;n+=2)for(vare=this.length;e--;this[e][arguments[n]]=arguments[n+1]);returnthis},text:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].innerText;for(varn=this.length;n--;this[n].innerText=t);returnthis},html:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].innerHTML;for(varn=this.length;n--;this[n].innerHTML=t);returnthis},value:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].value;for(varn=this.length;n--;this[n].value=t);returnthis},height:function(){returnthis[0].offsetHeight||this[0].clientHeight||this[0].scrollHeight},width:function(){returnthis[0].offsetWidth||this[0].clientWidth||this[0].scrollWidth},on:function(t,n){if(0==arguments.length)throw"Method on expects an argument";if(1==arguments.length&&(tinstanceofObject||"object"==typeoft))for(vareint)for(vari=this.length;i--;this[i].addEventListener(e.replace(/^on/,""),t[e]));elsefor(vari=0;i<arguments.length-arguments.length%2;i+=2)for(varr=this.length;r--;this[r].addEventListener(arguments[i].replace(/^on/,""),arguments[i+1]));returnthis},trigger:function(t,n){if(!(tinstanceofString||"string"==typeoft))throw"Method trigger only accepts a first argument of type String";switch(t=t.replace(/^on/,""),!0){case0==t.indexOf("key"):for(vare=0;e<this.length;e++){vari={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.relatedTarget=this[e];varr=newKeyboardEvent(t,i);this[e].dispatchEvent(r)}break;case"click"==t||"mouseup"==t||"mousedown"==t:for(vare=0;e<this.length;e++){vari={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.button=0,i.relatedTarget=this[e];varr=newMouseEvent(t,i);this[e].dispatchEvent(r)}break;case"contextmenu"==t:for(vare=0;e<this.length;e++){vari={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.button=2,i.relatedTarget=this[e];varr=newMouseEvent(t,i);this[e].dispatchEvent(r)}break;default:for(vare=0;e<this.length;e++){vari={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.relatedTarget=this[e];varr=newMouseEvent(t,i);this[e].dispatchEvent(r)}}returnthis}},window._.xhr=function(t,n,e,i){varr=newXMLHttpRequest;tinstanceofObject||"object"==typeoft?(r.open(t.type,t.url,!0),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&this.cb(r.responseText)}.bind(r),r.cb=t.callback,r.send(t.data||"")):(r.open(t,n,!0),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&this.cb(r.responseText)}.bind(r),r.cb=e,r.send(i||""))},window._.cors=function(t,n,e,i,r){vars="withCredentials"innewXMLHttpRequest?newXMLHttpRequest:null;if(null==s)throw"CORS not supported.";tinstanceofObject||"object"==typeoft?(s.open(t.type,t.url,!0),s.withCredentials=t.credentials,s.cb=t.callback,s.onload=function(){this.cb(s.responseText)}.bind(s),s.send(t.data||"")):(s.open(t,n,!0),s.withCredentials=i,s.cb=e,s.onload=function(){this.cb(s.responseText)}.bind(s),s.send(r||""))},window._.jsnop=function(t,n){vare=document.createElement("script"),i=Math.floor(100*Math.random())+1;tinstanceofObject||"object"==typeoft?(window["fnctn"+i]=t.callback,e.src=t.url+"fnctn"+i,_("head").append(e),e.onload=function(){_(this).remove()}):(window["fnctn"+i]=n,e.src=t+"fnctn"+i,_("head").append(e),e.onload=function(){_(this).remove()})}}();
!function(){vart=function(){if(0===arguments.length)returnnull;for(vart=0,n=0;n<arguments.length;n++)for(vare=0;e<arguments[n].length;e++)this[t++]=arguments[n][e];this.length=t};functionn(e,i){if(window===this)returnnewn(e,i);switch(i=i||document,this.__islib__=!0,this.length=0,!0){caseeinstanceofHTMLElement:this[this.length++]=e;break;caseeinstanceofString||"string"==typeofe:if("<"==e[0]&&">"==e[e.length-1]){if((e=e.substring(1,e.length-1)).replace(/^[^\#\.\$\[]*/,function(t){this[this.length++]=document.createElement(t)}.bind(this)),0===this.length)throw"Invalid Element Creation string";e.replace(/\#[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].id=t.substring(1,t.length),""}.bind(this)),e.replace(/\.[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].classList.add(t.substring(1,t.length)),""}.bind(this)),e.replace(/\$[^\#\.\$\[]*/g,function(t){returnthis[this.length-1].name=t.substring(1,t.length),""}.bind(this)),e.replace(/\[[^\=]+\=(\"[^\"]*|\'[^\']*)\]/g,function(t){varn=(t=t.substring(1,t.length)).indexOf("=");returnthis[this.length-1].setAttribute(t.substring(0,n),t.substring(n+2,t.length-1)),""}.bind(this))}else{if(!1ini)throw"querySelectorAll must be supported for lib to work";for(varr=i.querySelectorAll(e),s=0;s<r.length;s++)this[this.length++]=r[s]}break;caseeinstanceofNumber||"number"==typeofe:if("_index"inwindow._&&einwindow._._index)returnwindow._._index[e];throw"Index not defined";caseeinstanceofArray||e&&e.constructor===Array:for(s=0;s<e.length||0==s;s++)t.call(this,this,n(e[s]));break;caseeinstanceofObject||"object"==typeofe:if("__islib__"ine&&!0===e.__islib__)t.call(this,this,e);elseif("length"ine)for(s=0;s<e.length||0==s;s++)t.call(this,this,n(e[s]));elset.call(this,this,n(void0));break;caseeinstanceofFunction||"function"==typeofe:throw"lib cannot accept an input of type 'Function'";default:this[this.length++]=document}returnthis}window._=n,n.prototype=window._.fn={index:function(t){if(!(tinstanceofNumber||"number"==typeoft))throw"Method index only accpets an argument of type Number.";return"_index"inwindow._||(window._._index={}),window._._index[t]=this,this},include:function(e){returnt.call(this,this,n(e)),this},exclude:function(t){for(vare=n(t),i=this.length,r=0,s=[];i--;)for(r=e.length;r--;)this[i]!==e[r]&&s.unshift(this[i]);returnn(s)},get:function(t){if(!(tinstanceofNumber||"number"==typeoft))throw"Method get only accepts an argument of type Number";returnn(this[t])},raw:function(t){if(!(tinstanceofNumber||"number"==typeoft))throw"Method get only accepts an argument of type Number";returnthis[t]},remove:function(){for(vart=this.length;t--;this[t].parentNode.removeChild(this[t]));returnthis},each:function(t){if(!(tinstanceofFunction||"function"==typeoft))throw"Method each only accepts an argument of type Function";for(vare=this.length;e--;t(n(this[e])));returnthis},filter:function(t){if(!(tinstanceofFunction||"function"==typeoft))throw"Method each only accepts an argument of type Function";for(vare=[],i=0;i<this.length;i++)t(n(this[i]))&&e.push(this[i]);returnn(e)},child:function(t){vare=this.length,i=newArray(this.length);for(e=this.length;e--;i[e]=n(t,this[e]));returnn(i)},parent:function(){for(vart=[],e=!0,i=0;i<this.length;i++){t.push(this[i].parentNode);for(varr=i;i--;e=e&&t[i]!==t[r]);e||t.pop()}returnn(t)},sibling:function(t){for(vare=[],i=!0,r=0;r<this.length;r++)e.push(n(t,this[r]));vars=n(e),o=[];for(r=0;r<s.length;r++){o.push(s[r]);for(varh=r;r--;i=i&&o[r]!==o[h]);i||o.pop()}returnn(o)},appendTo:function(t){if(!t)throw"Method appendTo expects an argument";t=n(t);for(vare=0;e<this.length;e++)t[0].appendChild(this[e]);returnthis},append:function(t){if(!t)throw"Method append expects an argument";t=n(t);for(vare=0;e<t.length;e++)this[0].appendChild(t[e]);returnthis},prependTo:function(t){if(!t)throw"Method prependTo expects an argument";t=n(t);for(vare=0;e<this.length;e++)t[0].hasChildNodes()?t[0].insertBefore(this[e],t[0].childNodes[0]):t[0].appendChild(this[e]);returnthis},prepend:function(t){if(!t)throw"Method prepend expects an argument";t=n(t);for(vare=0;e<t.length;e++)this[0].hasChildNodes()?this[0].insertBefore(t[e],this[0].childNodes[0]):this[0].appendChild(t[e]);returnthis},toggleClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method toggleClass only accepts an argument of type String";for(varn=0;n<this.length;n++)this[n].classList.contains(t)?this[n].classList.remove(t):this[n].classList.add(t);returnthis},hasClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method hasClass only accepts an argument of type String";for(varn=0,e=!0;n<this.length&&e;)e&=this[n++].classList.contains(t);returne},addClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method addClass only accepts an argument of type String";for(varn=this.length;n--;this[n].classList.add(t));returnthis},dropClass:function(t){if(!(tinstanceofString||"string"==typeoft))throw"Method dropClass only accepts an argument of type String";for(varn=this.length;n--;this[n].classList.remove(t));returnthis},css:function(t){if(0==arguments.length)throw"Method css expects an arguments";if(1==arguments.length){if(tinstanceofString||"string"==typeoft){if(-1==selector.indexOf(":"))returnthis[0].style[t];t=t.split(";");for(varn=0;n<t.length;n++)for(vare=this.length;e--;this[e].style[t[n].split(":")[0].trim()]=t[n].split(":")[1].trim());}elseif(tinstanceofArray||t.constructor===Array){if(!(t[0]instanceofString))throw"Method css only accepts an input of String Arrays";for(n=0;n<t.length-t.length%2;n+=2)if(t[n]instanceofString&&t[n+1]instanceofString)for(n=this.length;n--;this[n].style[t[n]]=t[n+1]);}elseif(tinstanceofObject||"object"==typeoft)for(variint)for(n=this.length;n--;this[n].style[i]=t[i]);}elsefor(n=0;n<arguments.length-arguments.length%2;n+=2)if((arguments[n]instanceofString||"string"==typeofarguments[n])&&(arguments[n+1]instanceofString||"string"==typeofarguments[n+1]))for(varr=this.length;r--;this[r].style[arguments[n]]=arguments[n+1]);returnthis},attr:function(t){if(0==arguments.length)throw"Method attr expects an argument.";if(1==arguments.length){if(tinstanceofString||"string"==typeoft)returnthis[0].getAttribute(t);throw"Method attr can only accept a single argument of type String"}for(varn=0;n<arguments.length-arguments.length%2;n+=2)for(vare=this.length;e--;this[e].setAttribute(arguments[n],arguments[n+1]));returnthis},prop:function(t){if(0==arguments.length)throw"Method prop expects an argument.";if(1==arguments.length){if(tinstanceofString||"string"==typeoft)returnthis[0][t];throw"Method prop can only accept a single argument of type String"}for(varn=0;n<arguments.length-arguments.length%2;n+=2)for(vare=this.length;e--;this[e][arguments[n]]=arguments[n+1]);returnthis},text:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].innerText;for(varn=this.length;n--;this[n].innerText=t);returnthis},html:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].innerHTML;for(varn=this.length;n--;this[n].innerHTML=t);returnthis},value:function(t){if(!(tinstanceofString||"string"==typeoft))returnthis[0].value;for(varn=this.length;n--;this[n].value=t);returnthis},height:function(){returnthis[0].offsetHeight||this[0].clientHeight||this[0].scrollHeight},width:function(){returnthis[0].offsetWidth||this[0].clientWidth||this[0].scrollWidth},on:function(t,n){if(0==arguments.length)throw"Method on expects an argument";if(1==arguments.length&&(tinstanceofObject||"object"==typeoft))for(vareint)for(vari=this.length;i--;this[i].addEventListener(e.replace(/^on/,""),t[e]));elsefor(i=0;i<arguments.length-arguments.length%2;i+=2)for(varr=this.length;r--;this[r].addEventListener(arguments[i].replace(/^on/,""),arguments[i+1]));returnthis},trigger:function(t,n){if(!(tinstanceofString||"string"==typeoft))throw"Method trigger only accepts a first argument of type String";switch(t=t.replace(/^on/,""),!0){case0==t.indexOf("key"):for(vare=0;e<this.length;e++){vari={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.relatedTarget=this[e];varr=newKeyboardEvent(t,i);this[e].dispatchEvent(r)}break;case"click"==t||"mouseup"==t||"mousedown"==t:for(e=0;e<this.length;e++){i={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.button=0,i.relatedTarget=this[e];r=newMouseEvent(t,i);this[e].dispatchEvent(r)}break;case"contextmenu"==t:for(e=0;e<this.length;e++){i={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.button=2,i.relatedTarget=this[e];r=newMouseEvent(t,i);this[e].dispatchEvent(r)}break;default:for(e=0;e<this.length;e++){i={};(ninstanceofObject||"object"==typeofn)&&(i=n),i.relatedTarget=this[e];r=newMouseEvent(t,i);this[e].dispatchEvent(r)}}returnthis}},window._.xhr=function(t,n,e,i){varr=newXMLHttpRequest;tinstanceofObject||"object"==typeoft?(r.open(t.type,t.url,!0),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&this.cb(r.responseText)}.bind(r),r.cb=t.callback,r.send(t.data||"")):(r.open(t,n,!0),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&this.cb(r.responseText)}.bind(r),r.cb=e,r.send(i||""))},window._.cors=function(t,n,e,i,r){vars="withCredentials"innewXMLHttpRequest?newXMLHttpRequest:null;if(null==s)throw"CORS not supported.";tinstanceofObject||"object"==typeoft?(s.open(t.type,t.url,!0),s.withCredentials=t.credentials,s.cb=t.callback,s.onload=function(){this.cb(s.responseText)}.bind(s),s.send(t.data||"")):(s.open(t,n,!0),s.withCredentials=i,s.cb=e,s.onload=function(){this.cb(s.responseText)}.bind(s),s.send(r||""))},window._.jsnop=function(t,n){vare=document.createElement("script"),i=Math.floor(100*Math.random())+1;tinstanceofObject||"object"==typeoft?(window["fnctn"+i]=t.callback,e.src=t.url+"fnctn"+i,_("head").append(e),e.onload=function(){_(this).remove()}):(window["fnctn"+i]=n,e.src=t+"fnctn"+i,_("head").append(e),e.onload=function(){_(this).remove()})}}();