text: /*!
   * stuQuery v1.0.14
   */
  var eventcache={};function stuQuery(t){this.querySelector=function(t,e){var n,r,s,i,o,h,a=new Array;if(e.indexOf(":eq")>=0)for(n=e.split(" "),s=0;s<n.length;s++)if(0==s)h=this.getBy(t,n[s]);else{for(r=new Array,i=0;i<h.length;i++)r=r.concat(this.getBy(h[i],n[s]));h=r.splice(0)}else h=t.querySelectorAll(e);for(o=0;o<h.length;o++)a.push(h[o]);return a},this.getBy=function(e,n){var r=-1,s=new Array;if(n.indexOf(":eq")>0){var i=n.replace(/(.*)\:eq\(([0-9]+)\)/,"$1 $2").split(" ");n=i[0],r=parseInt(i[1])}if((t="."==n[0]?e.getElementsByClassName(n.substr(1)):"#"==n[0]?e.getElementById(n.substr(1)):e.getElementsByTagName(n))||(t=[]),t.nodeName&&"SELECT"==t.nodeName)s.push(t);else{for("number"!=typeof t.length&&(t=[t]),k=0;k<t.length;k++)s.push(t[k]);r>=0&&s.length>0&&(s=r<s.length?[s[r]]:[])}return s},this.matchSelector=function(t,e){if("."==e[0]){e=e.substr(1);for(var n=0;n<t.classList.length;n++)if(t.classList[n]==e)return!0}else if("#"==e[0]){if(t.id==e.substr(1))return!0}else if(t.tagName==e.toUpperCase())return!0;return!1},"string"==typeof t?this.e=this.querySelector(document,t):"object"==typeof t&&(this.e="number"==typeof t.length?t:[t]);for(var e in this.e)this[e]=this.e[e];return this.length=this.e?this.e.length:0,this}function NodeMatch(t,e){if(t&&t.length>0)for(var n=0;n<t.length;n++)if(t[n].node==e)return{success:!0,match:n};return{success:!1}}function storeEvents(t,e,n,r,s){eventcache[e]||(eventcache[e]=new Array),eventcache[e].push({node:t,fn:n,fn2:r,data:s})}function getEvent(t){if(eventcache[t.type]){var e=NodeMatch(eventcache[t.type],t.currentTarget);if(e.success)return e.match.data&&(t.data=eventcache[t.type][e.match].data),{fn:eventcache[t.type][e.match].fn,data:t}}return function(){return{fn:""}}}function getset(t,e,n,r){for(var s=[],i=0;i<t.length;i++){s.push(t[i].getAttribute(e));var o=!1;for(var h in r)typeof n===r[h]&&(o=!0);o&&(n?t[i].setAttribute(e,n):t[i].removeAttribute(e))}return 1==s.length&&(s=s[0]),void 0===n?s:t}function S(t){return new stuQuery(t)}stuQuery.prototype.ready=function(t){/in/.test(document.readyState)?setTimeout("S(document).ready("+t+")",9):t()},stuQuery.prototype.html=function(t){if("number"==typeof t&&(t=""+t),"string"!=typeof t&&1==this.length)return this[0].innerHTML;if("string"==typeof t)for(var e=0;e<this.length;e++)this[e].innerHTML=t;return this},stuQuery.prototype.append=function(t){if(!t&&1==this.length)return this[0].innerHTML;if(t)for(var e=0;e<this.length;e++){var n=document.createElement("template");n.innerHTML=t;var r=void 0===n.content?n:n.content;if(r.childNodes.length>0)for(;r.childNodes.length>0;)this[e].appendChild(r.childNodes[0]);else this[e].append(t)}return this},stuQuery.prototype.prepend=function(t){if(!t&&1==this.length)return this[0].innerHTML;if(t)for(var e=0;e<this.length;e++)this[e].innerHTML=t+this[e].innerHTML;return this},stuQuery.prototype.before=function(t){var e,n,r,s;for(e=0;e<this.length;e++)for((n=document.createElement("div")).innerHTML=t,r=n.childNodes,s=0;s<r.length;s++)this[e].parentNode.insertBefore(r[s],this[e]);return this},stuQuery.prototype.after=function(t){for(var e=0;e<this.length;e++)this[e].insertAdjacentHTML("afterend",t);return this},stuQuery.prototype.off=function(t){"function"!=typeof Element.prototype.removeEventListener&&(Element.prototype.removeEventListener=function(t,e){if(oListeners.hasOwnProperty(t)){for(var n=oListeners[t],r=-1,s=0;s<n.aEls.length;s++)if(n.aEls[s]===this){r=s;break}if(-1!==r)for(var i=0,o=n.aEvts[r];i<o.length;i++)o[i]===e&&o.splice(i,1)}});for(var e=0;e<this.length;e++){var n=NodeMatch(eventcache[t],this.e[e]);n.success&&(this[e].removeEventListener(t,eventcache[t][n.match].fn2,!1),eventcache[t].splice(n.match,1))}return this},stuQuery.prototype.on=function(t,e,n){var r=(t||window.event).split(/ /);if(this.cache=[4,5,6],"function"!=typeof e||n||(n=e,e=""),"function"!=typeof n)return this;if(this.length>0)for(var s,i=this,o=0;o<r.length;o++){t=r[o],s=function(n){var r=getEvent({currentTarget:this,type:t,data:e,originalEvent:n,preventDefault:function(){n.preventDefault&&n.preventDefault()},stopPropagation:function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),n.stopPropagation&&n.stopPropagation(),null!=n.cancelBubble&&(n.cancelBubble=!0)}});if("function"==typeof r.fn)return r.fn.call(i,r.data)};for(var h=0;h<this.length;h++)storeEvents(this[h],t,n,s,e),this[h].addEventListener?this[h].addEventListener(t,s,!1):this[h].attachEvent&&this[h].attachEvent(t,s)}return this},stuQuery.prototype.trigger=function(t){var e;events=t.split(/ /);for(var n=0;n<events.length;n++){document.createEvent?(e=document.createEvent("HTMLEvents")).initEvent(events[n],!0,!0):(e=document.createEventObject()).eventType=events[n],e.eventName=t;for(var r=0;r<this.length;r++)document.createEvent?this[r].dispatchEvent(e):this[r].fireEvent("on"+e.eventType,e)}return this},stuQuery.prototype.focus=function(){return 1==this.length&&this[0].focus(),this},stuQuery.prototype.blur=function(){return 1==this.length&&this[0].blur(),this},stuQuery.prototype.remove=function(){if(this.length<1)return this;for(var t=this.length-1;t>=0;t--){if(!this[t])return;"function"==typeof this[t].remove?this[t].remove():"function"==typeof this[t].parentElement.removeChild&&this[t].parentElement.removeChild(this[t])}return this},stuQuery.prototype.hasClass=function(t){for(var e=!0,n=0;n<this.length;n++)this[n].className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))||(e=!1);return e},stuQuery.prototype.toggleClass=function(t){for(var e=0;e<this.length;e++)this[e].className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))?this[e].className=this[e].className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)","g")," ").replace(/ $/,""):this[e].className=(this[e].className+" "+t).replace(/^ /,"");return this},stuQuery.prototype.addClass=function(t){for(var e=0;e<this.length;e++)this[e].className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))||(this[e].className=(this[e].className+" "+t).replace(/^ /,""));return this},stuQuery.prototype.removeClass=function(t){for(var e=0;e<this.length;e++)for(;this[e].className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"));)this[e].className=this[e].className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)","g")," ").replace(/ $/,"").replace(/^ /,"");return this},stuQuery.prototype.css=function(t){var e;if(1==this.length&&"string"==typeof t)return(e=window.getComputedStyle(this[0]))[t];for(var n=0;n<this.length;n++){if(e={},this[n].getAttribute("style"))for(var r=this[n].getAttribute("style").split(";"),s=0;s<r.length;s++){var i=r[s].split(":");2==i.length&&(e[i[0]]=i[1])}if("object"==typeof t){for(key in t)e[key]=t[key];var o="";for(key in e)o&&(o+=";"),e[key]&&(o+=key+":"+e[key]);this[n].setAttribute("style",o)}}return this},stuQuery.prototype.parent=function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e].parentElement);return S(t)},stuQuery.prototype.children=function(t){if("string"==typeof t){for(var e=[],n=0;n<this.length;n++)for(var r=0;r<this[n].children.length;r++)this.matchSelector(this[n].children[r],t)&&e.push(this[n].children[r]);return S(e)}for(n=0;n<this.length;n++)this[n]=this[n].children.length>t?this[n].children[t]:this[n];return this},stuQuery.prototype.find=function(t){for(var e=new Array,n=0;n<this.length;n++)e=e.concat(this.querySelector(this[n],t));return S(e)},stuQuery.prototype.attr=function(t,e){return getset(this,t,e,["string","number"])},stuQuery.prototype.prop=function(t,e){return getset(this,t,e,["boolean"])},stuQuery.prototype.clone=function(){var t=document.createElement("div");return t.appendChild(this[0].cloneNode(!0)),t.innerHTML},stuQuery.prototype.replaceWith=function(t){var e=document.createElement("span");e.innerHTML=t;for(var n=S(this.e),r=0;r<this.length;r++)n[0].parentNode.replaceChild(e,n[0]);return n},stuQuery.prototype.width=function(){if(!(this.length>1))return this[0].offsetWidth},stuQuery.prototype.height=function(){if(!(this.length>1))return this[0].offsetHeight},stuQuery.prototype.outerWidth=function(){if(!(this.length>1)){var t=getComputedStyle(this[0]);return this[0].offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)}},stuQuery.prototype.outerHeight=function(){if(!(this.length>1)){var t=getComputedStyle(this[0]);return this[0].offsetHeight+parseInt(t.marginTop)+parseInt(t.marginBottom)}},stuQuery.prototype.offset=function(){var t=this[0].getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},stuQuery.prototype.position=function(){if(!(this.length>1))return{left:this[0].offsetLeft,top:this[0].offsetTop}},stuQuery.prototype.ajax=function(t,e){if("string"!=typeof t)return!1;e||(e={});var n,r="",s="";if(t.indexOf("?")>0&&(urlbits=t.split("?"),urlbits.length&&(t=urlbits[0],s=urlbits[1])),"jsonp"==e.dataType&&(r="fn_"+(new Date).getTime(),window[r]=function(t){"function"==typeof e.success&&e.success.call(e.this?e.this:this,t,e)}),"boolean"!=typeof e.cache||e.cache||(s+=(s?"&":"")+(new Date).valueOf()),r&&(s+=(s?"&":"")+"callback="+r),e.data&&(s+=(s?"&":"")+e.data),e.url=t+(s?"?"+s:""),"jsonp"==e.dataType){var i=document.createElement("script");return i.src=e.url,document.body.appendChild(i),this}function o(t){"function"==typeof e.error&&e.error.call(e.this?e.this:this,t,e)}(n=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).addEventListener("load",window[r]||function(t){if(200===n.status){e.header=n.getAllResponseHeaders();var s=n.response||n.responseText;if("json"==e.dataType)try{s=JSON.parse(s.replace(/[\n\r]/g,"\\n").replace(/^([^\(]+)\((.*)\)([^\)]*)$/,function(t,e,n,s){return e==r?n:""}).replace(/\\n/g,"\n"))}catch(t){}if("script"==e.dataType){var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.innerHTML=s,document.head.appendChild(i)}e.statusText="success","function"==typeof e.success&&e.success.call(e.this?e.this:this,s,e)}else e.statusText="error",o(t);"function"==typeof e.complete&&e.complete.call(e.this?e.this:this,s,e)}),n.addEventListener("error",o),n.addEventListener("progress",function(t){"function"==typeof e.progress&&e.progress.call(e.this?e.this:this,t,e)}),e.beforeSend&&(n=e.beforeSend.call(e.this?e.this:this,n,e)),e.dataType&&(n.responseType=e.dataType);try{n.open("GET",e.url)}catch(t){o(t)}try{n.send()}catch(t){o(t)}return this},stuQuery.prototype.loadJSON=function(t,e,n){return n||(n={}),n.dataType="json",n.complete=e,this.ajax(t,n),this};