(function(t){functione(){}functioni(t){functioni(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}functionn(e,i){t.fn[e]=function(n){if("string"==typeofn){for(vars=o.call(arguments,1),a=0,u=this.length;u>a;a++){varp=this[a],h=t.data(p,e);if(h)if(t.isFunction(h[n])&&"_"!==n.charAt(0)){varf=h[n].apply(h,s);if(void0!==f)returnf}elser("no such method '"+n+"' for "+e+" instance");elser("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+n+"'")}returnthis}returnthis.each(function(){varo=t.data(this,e);o?(o.option(n),o._init()):(o=newi(this,n),t.data(this,e,o))})}}if(t){varr="undefined"==typeofconsole?e:function(t){console.error(t)};returnt.bridget=function(t,e){i(e),n(t,e)},t.bridget}}varo=Array.prototype.slice;"function"==typeofdefine&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):"object"==typeofexports?i(require("jquery")):i(t.jQuery)})(window),function(t){functione(e){vari=t.event;returni.target=i.target||i.srcElement||e,i}vari=document.documentElement,o=function(){};i.addEventListener?o=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(o=function(t,i,o){t[i+o]=o.handleEvent?function(){vari=e(t);o.handleEvent.call(o,i)}:function(){vari=e(t);o.call(t,i)},t.attachEvent("on"+i,t[i+o])});varn=function(){};i.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{deletet[e+i]}catch(o){t[e+i]=void0}});varr={bind:o,unbind:n};"function"==typeofdefine&&define.amd?define("eventie/eventie",r):"object"==typeofexports?module.exports=r:t.eventie=r}(this),function(t){functione(t){"function"==typeoft&&(e.isReady?t():s.push(t))}functioni(t){vari="readystatechange"===t.type&&"complete"!==r.readyState;e.isReady||i||o()}functiono(){e.isReady=!0;for(vart=0,i=s.length;i>t;t++){varo=s[t];o()}}functionn(n){return"complete"===r.readyState?o():(n.bind(r,"DOMContentLoaded",i),n.bind(r,"readystatechange",i),n.bind(t,"load",i)),e}varr=t.document,s=[];e.isReady=!1,"function"==typeofdefine&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],n):"object"==typeofexports?module.exports=n(require("eventie")):t.docReady=n(t.eventie)}(window),function(){functiont(){}functione(t,e){for(vari=t.length;i--;)if(t[i].listener===e)returni;return-1}functioni(t){returnfunction(){returnthis[t].apply(this,arguments)}}varo=t.prototype,n=this,r=n.EventEmitter;o.getListeners=function(t){vare,i,o=this._getEvents();if(tinstanceofRegExp){e={};for(iino)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i])}elsee=o[t]||(o[t]=[]);returne},o.flattenListeners=function(t){vare,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);returni},o.getListenersAsObject=function(t){vare,i=this.getListeners(t);returniinstanceofArray&&(e={},e[t]=i),e||i},o.addListener=function(t,i){varo,n=this.getListenersAsObject(t),r="object"==typeofi;for(oinn)n.hasOwnProperty(o)&&-1===e(n[o],i)&&n[o].push(r?i:{listener:i,once:!1});returnthis},o.on=i("addListener"),o.addOnceListener=function(t,e){returnthis.addListener(t,{listener:e,once:!0})},o.once=i("addOnceListener"),o.defineEvent=function(t){returnthis.getListeners(t),this},o.defineEvents=function(t){for(vare=0;t.length>e;e+=1)this.defineEvent(t[e]);returnthis},o.removeListener=function(t,i){varo,n,r=this.getListenersAsObject(t);for(ninr)r.hasOwnProperty(n)&&(o=e(r[n],i),-1!==o&&r[n].splice(o,1));returnthis},o.off=i("removeListener"),o.addListeners=function(t,e){returnthis.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){returnthis.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,i){varo,n,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeofe||einstanceofRegExp)for(o=i.length;o--;)r.call(this,e,i[o]);elsefor(oine)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeofn?r.call(this,o,n):s.call(this,o,n));returnthis},o.removeEvent=function(t){vare,i=typeoft,o=this._getEvents();if("string"===i)de