!function(o,j,w){"use strict";function M(t,e,i){return setTimeout(U(t,i),e)}function i(t,e,i){return Array.isArray(t)&&(r(t,i[e],i),1)}function r(t,e,i){if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==w)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",e=o.console&&(o.console.warn||o.console.log);return e&&e.call(o.console,n,t),i.apply(this,arguments)}}function t(t,e,i){var e=e.prototype,n=t.prototype=Object.create(e);n.constructor=t,n._super=e,i&&$(n,i)}function U(t,e){return function(){return t.apply(e,arguments)}}function O(t,e){return typeof t==ft?t.apply(e&&e[0]||w,e):t}function X(t,e){return t===w?e:t}function e(e,t,i){r(s(t),function(t){e.addEventListener(t,i,!1)})}function n(e,t,i){r(s(t),function(t){e.removeEventListener(t,i,!1)})}function q(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function l(t,e){return-1e[i]}):n.sort():n}function h(t,e){for(var i,n=e[0].toUpperCase()+e.slice(1),o=0;oC(o.y)?o.x:o.y,d.scale=s?function(t,e){return b(e[0],e[1],St)/b(t[0],t[1],St)}(s.pointers,e):1,d.rotation=s?function(t,e){return G(e[1],e[0],St)+G(t[1],t[0],St)}(s.pointers,e):0,d.maxPointers=!u.prevInput||d.pointers.length>u.prevInput.maxPointers?d.pointers.length:u.prevInput.maxPointers,u),p=d,f=y.lastInterval||p,v=p.timeStamp-f.timeStamp;p.eventType!=E&&(xtC(v.y)?v.x:v.y,n=Q(n,m),y.lastInterval=p):(a=f.velocity,l=f.velocityX,c=f.velocityY,n=f.direction),p.velocity=a,p.velocityX=l,p.velocityY=c,p.direction=n,r=h.element,q(d.srcEvent.target,r)&&(r=d.srcEvent.target),d.target=r,t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Y(t){for(var e=[],i=0;i=C(e)?t<0?S:_:e<0?T:D}function b(t,e,i){var n=e[(i=i||Et)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return Math.sqrt(n*n+e*e)}function G(t,e,i){var n=e[(i=i||Et)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return 180*Math.atan2(e,n)/Math.PI}function u(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,d.apply(this,arguments)}function J(){this.evEl=Pt,this.evWin=It,d.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function K(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,d.apply(this,arguments)}function p(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},d.apply(this,arguments)}function Z(){d.apply(this,arguments);var t=U(this.handler,this);this.touch=new p(this.manager,t),this.mouse=new u(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function tt(t){var e,i,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),i=this.lastTouches,setTimeout(function(){var t=i.indexOf(e);-1e.threshold&&o&e.direction},attrTest:function(t){return g.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),t(st,g,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[z]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),t(rt,f,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(A|E)&&!o)this.reset();else if(t.eventType&k)this.reset(),this._timer=M(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&A)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&A?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=mt(),this.manager.emit(this.options.event,this._input)))}}),t(at,g,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[z]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),t(lt,g,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:P|I,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(P|I)?e=t.overallVelocity:i&P?e=t.overallVelocityX:i&I&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&C(e)>this.options.velocity&&t.eventType&A},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),t(ct,f,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ut]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance'),this.nodes.$sldr=r('
').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?a.fixed:a.inline).addClass(a("fx-"+this.opts.effect)).addClass(a(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(c.open+" "+c.close+" "+c.prev+" "+c.next+" "+c.slideTo,function(t){var t=(arguments=Array.prototype.slice.call(arguments)).shift(),e=t.type;t.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(c.opening+" "+c.closing+" "+c.sliding+" "+c.loading+" "+c.loaded,function(t){t.stopPropagation()}).on(c.click,function(t){switch(t.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(a.hover);break;case"close":r(t.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var t=0;tthis.slides.total&&(i=this.slides.index+this.slides.visible>=this.slides.total,this.opts.infinite?t=i?0:this.slides.total-this.slides.visible:(t=this.slides.total-this.slides.visible,i&&(n=!1))),this.slides.index=t,this._loadContents(),n){var o,s=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;for(o in this.slides.widthPercentage&&(s+="%"),e&&(this.nodes.$sldr.addClass(a.noanimation),h.transitionend(this.nodes.$sldr,function(){r(this).removeClass(a.noanimation)},5)),r[d].effects)if(o==this.opts.effect){r[d].effects[o].call(this,s,e);break}this.nodes.$wrpr.trigger(c.sliding,[t,e])}},_initAnchors:function(){var e=this,t=r();if(this.$node.is("a"))for(var i in r[d].media)t=t.add(this.$node.filter(function(){if(e.opts.media[i]&&e.opts.media[i].filterAnchors){var t=e.opts.media[i].filterAnchors.call(e,r(this));if("boolean"==typeof t)return t}return r[d].media[i].filterAnchors.call(e,r(this))}));return t},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var n=this;this.nodes.$anchors.each(function(e){var t=r(this),i=r('
').data(l.anchor,t).appendTo(n.nodes.$sldr);t.data(l.slide,i).on(c.click,function(t){t.preventDefault(),n.open(e)})})},_initSlidesFromContent:function(){var n=this;this.$node.children().each(function(){var t,e=r(this);for(t in r('
').append(e).appendTo(n.nodes.$sldr),r[d].media){var i=null;if(i="boolean"!=typeof(i=n.opts.media[t]&&n.opts.media[t].filterSlides?n.opts.media[t].filterSlides.call(n,e):i)?r[d].media[t].filterSlides.call(n,e):i){r[d].media[t].initSlides.call(n,e),e.parent().addClass(a(t));break}}})},_loadContents:function(){var t=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){t._loadContent(t.slides.index-t.slides.visible,t.slides.index),t._loadContent(t.slides.index+t.slides.visible,t.slides.index+2*t.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(t,e){var s=this;this.nodes.$slides.slice(t,e).each(function(){var t=r(this);if(0==t.children().length){var e,i=t.data(l.anchor),n=i.attr("href");for(e in r[d].media){var o=null;if(o="boolean"!=typeof(o=s.opts.media[e]&&s.opts.media[e].filterAnchors?s.opts.media[e].filterAnchors.call(s,i):o)?r[d].media[e].filterAnchors.call(s,i):o){r[d].media[e].initAnchors.call(s,t,n),t.addClass(a(e));break}}t.trigger(c.loading,[t.data(l.anchor)])}})},_complementOptions:function(){var t;void 0===this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=r(this.opts.wrapper.target)),this.opts.show=h.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),r.isNumeric(this.opts.slides.width)?(this.slides.widthPercentage=!1,this.opts.slides.visible=h.complNumber(this.opts.slides.visible,1)):(t=!!h.isPercentage(this.opts.slides.width)&&h.getPercentage(this.opts.slides.width),this.slides.widthPercentage=!0,this.opts.slides.visible=h.complNumber(this.opts.slides.visible,t?Math.floor(100/t):1),this.opts.slides.width=t||Math.ceil(1e4/this.opts.slides.visible)/100),this.opts.slides.slide=h.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=h.isPercentage(this.opts.slides.offset)?h.getPercentage(this.opts.slides.offset):h.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,a("uid-"+this.__uniqueID)}},r.fn[d]=function(t,e,i,n){o.$wndw||(a=function(t){return"tos-"+t},l=function(t){return"tos-"+t},c=function(t){return t+".tos"},r.each([a,l,c],function(t,i){i.add=function(t){for(var e in t=t.split(" "))i[t[e]]=i(t[e])}}),a.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),l.add("slide anchor"),c.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),h={complObject:function(t,e){return t=r.isPlainObject(t)?t:e},complBoolean:function(t,e){return t="boolean"!=typeof t?e:t},complNumber:function(t,e){return t=r.isNumeric(t)?t:e},complString:function(t,e){return t="string"!=typeof t?e:t},isPercentage:function(t){return"string"==typeof t&&"%"==t.slice(-1)},getPercentage:function(t){return parseInt(t.slice(0,-1))},resizeRatio:function(t,e,i,n,o){var s;e.is(":visible")&&(s=e.width(),e=e.height(),(s=i&&i')}function r(e,t,i,n){t.on(l.click,function(t){t.preventDefault(),t.stopPropagation(),e.trigger(l[i],[n])})}var a,l,t="tosrus",e="buttons",c=!1;o[t].prototype["_addon_"+e]=function(){c||(a=o[t]._c,o[t]._d,l=o[t]._e,o[t]._f,o[t]._g,a.add("prev next close disabled"),c=!0);var i=this,n=this.opts[e];this.nodes.$prev=null,this.nodes.$next=null,this.nodes.$clse=null,void 0===(n="boolean"==typeof n||"string"==typeof n&&"inline"==n?{prev:n,next:n}:n).close&&(n.close=this.vars.fixed),this.nodes.$slides.length<2&&(n.prev=!1,n.next=!1),o.each({prev:"prev",next:"next",close:"clse"},function(e,t){n[e]&&("string"==typeof n[e]&&"inline"==n[e]?i.vars.fixed&&"close"!=e&&i.nodes.$slides.on(l.loading,function(){var t=s(e," "+a.inline)["prev"==e?"prependTo":"appendTo"](this);r(i.nodes.$wrpr,t,e,1),i.opts.infinite||("prev"==e&&o(this).is(":first-child")||"next"==e&&o(this).is(":last-child"))&&t.addClass(a.disabled)}):("string"==typeof n[e]&&(n[e]=o(n[e])),i.nodes["$"+t]=n[e]instanceof o?n[e]:s(e,"").appendTo(i.nodes.$wrpr),r(i.nodes.$wrpr,i.nodes["$"+t],e,null)))}),this.opts.infinite||(this.updateButtons(),this.nodes.$wrpr.on(l.sliding,function(){i.updateButtons()}))},o[t].prototype.updateButtons=function(){this.nodes.$prev&&this.nodes.$prev[(this.slides.index<1?"add":"remove")+"Class"](a.disabled),this.nodes.$next&&this.nodes.$next[(this.slides.index>=this.slides.total-this.slides.visible?"add":"remove")+"Class"](a.disabled)},o[t].defaults[e]={prev:!o[t].support.touch,next:!o[t].support.touch},o[t].addons.push(e),o[t].ui.push("prev"),o[t].ui.push("next"),o[t].ui.push("close")}(jQuery),function(t){var s,r,a,l,c,h;"function"==typeof Hammer&&(h=!(c="drag"),t[l="tosrus"].prototype._addon_drag=function(){h||(s=t[l]._c,t[l]._d,r=t[l]._e,a=t[l]._f,t[l]._g,h=!0);var e,i,n,o=this;this.opts[c]&&"slide"==this.opts.effect&&(Hammer.VERSION<2?t[l].deprecated("Older version of the Hammer library","version 2 or newer"):1=o.slides.total||"right"==i&&0==o.slides.index)&&(e/=2.5),o.nodes.$sldr.css("margin-left",Math.round(e))}).on("swipeleft swiperight",function(){n=!0}).on("panend",function(){var t;o.nodes.$sldr.removeClass(s.noanimation).addClass(s.fastanimation),a.transitionend(o.nodes.$sldr,function(){o.nodes.$sldr.removeClass(s.fastanimation)},o.conf.transitionDuration/2),o.nodes.$sldr.css("margin-left",0),"left"!=i&&"right"!=i||0<(t=n?o.slides.visible:(t=o.nodes.$slides.first().width(),Math.floor((Math.abs(e)+t/2)/t)))&&o.nodes.$wrpr.trigger(r["left"==i?"next":"prev"],[t]),i=!1})))},t[l].defaults[c]=t[l].support.touch,t[l].addons.push(c))}(jQuery),function(e){var o,s="tosrus",r="keys",a=!1;e[s].prototype._addon_keys=function(){a||(e[s]._c,e[s]._d,o=e[s]._e,e[s]._f,e[s]._g,o.add("keyup"),a=!0);var i=this,n=this.opts[r];if("boolean"==typeof n&&n&&(n={prev:!0,next:!0,close:!0}),e.isPlainObject(n)){for(var t in e[s].constants[r])"boolean"==typeof n[t]&&n[t]&&(n[t]=e[s].constants[r][t]);this.nodes.$slides.length<2&&(n.prev=!1,n.next=!1),e(document).on(o.keyup,function(t){if(i.vars.opened){var e=!1;switch(t.keyCode){case n.prev:e=o.prev;break;case n.next:e=o.next;break;case n.close:e=o.close}e&&(t.preventDefault(),t.stopPropagation(),i.nodes.$wrpr.trigger(e))}})}},e[s].defaults[r]=!1,e[s].constants[r]={prev:37,next:39,close:27},e[s].addons.push(r)}(jQuery),function(i){var n="tosrus";i[n].media.image={filterAnchors:function(t){return void 0!==t.attr("href")&&-1').on(i[n]._e.load,function(t){t.stopPropagation(),e.removeClass(i[n]._c.loading).trigger(i[n]._e.loaded)}).appendTo(e).attr("src",t)},filterSlides:function(t){return t.is("img")},initSlides:function(){}},i[n].defaults.media.image={}}(jQuery),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(l,c,h){(h=h||e||t.jQuery)&&(c.prototype.option||(c.prototype.option=function(t){h.isPlainObject(t)&&(this.options=h.extend(!0,this.options,t))}),h.fn[l]=function(t){var e,n,o,s,r,a;return"string"==typeof t?(e=i.call(arguments,1),o=e,r="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=h.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),s=void 0===s?i:s):d(r+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:e):(a=t,this.each(function(t,e){var i=h.data(e,l);i?(i.option(a),i._init()):(i=new c(e,a),h.data(e,l,i))}),this)},s(h))}function s(t){t&&!t.bridget&&(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return i=this._events=this._events||{},i=i[t]=i[t]||[],-1==i.indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),i=this._onceEvents=this._onceEvents||{},(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return e=t.indexOf(e),-1!=e&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o