function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(n){mejs.YouTubeApi.flashReady(n)}(function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}})(jQuery),function(n){n.fn.jflickrfeed=function(t,i){var r,u,f;t=n.extend(!0,{flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},t);r=t.flickrbase+t.feedapi+"?";u=!0;for(f in t.qstrings)u||(r+="&"),r+=f+"="+t.qstrings[f],u=!1;return n(this).each(function(){var f=n(this),u=this;n.getJSON(r,function(r){n.each(r.items,function(n,i){var e,o,r,s,h;if(n<t.limit){if(t.cleanDescription&&(e=/<p>(.*?)<\/p>/g,o=i.description,e.test(o)&&(i.description=o.match(e)[2],i.description!=undefined&&(i.description=i.description.replace("<p>","").replace("<\/p>","")))),i.image_s=i.media.m.replace("_m","_s"),i.image_q=i.media.m.replace("_m","_q"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media,t.useTemplate){r=t.itemTemplate;for(s in i)h=new RegExp("{{"+s+"}}","g"),r=r.replace(h,i[s]);f.append(r)}t.itemCallback.call(u,i)}});n.isFunction(i)&&i.call(u,r)})})}}(jQuery);!function(n,t){"use strict";var r,it=n.document,p=it.documentElement,i=n.Modernizr,o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},w="Moz Webkit O Ms".split(" "),f=function(n){var i,r=p.style,t,u;if("string"==typeof r[n])return n;for(n=o(n),t=0,u=w.length;u>t;t++)if(i=w[t]+n,"string"==typeof r[i])return i},s=f("transform"),b=f("transitionProperty"),e={csstransforms:function(){return!!s},csstransforms3d:function(){var n=!!f("perspective"),r,i;return n&&"webkitPerspective"in p.style&&(r=t("<style>@media (transform-3d),(-webkit-transform-3d){#modernizr{height:3px}}<\/style>").appendTo("head"),i=t('<div id="modernizr" />').appendTo("html"),n=3===i.height(),i.remove(),r.remove()),n},csstransitions:function(){return!!b}},h,c,k,l,d,g,a,u,nt,tt,v,y;if(i)for(r in e)i.hasOwnProperty(r)||i.addTest(r,e[r]);else{i=n.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};c=" ";for(r in e)h=e[r](),i[r]=h,c+=" "+(h?"":"no-")+r;t("html").addClass(c)}i.csstransforms&&(k=i.csstransforms3d?{translate:function(n){return"translate3d("+n[0]+"px, "+n[1]+"px, 0) "},scale:function(n){return"scale3d("+n+", "+n+", 1) "}}:{translate:function(n){return"translate("+n[0]+"px, "+n[1]+"px) "},scale:function(n){return"scale("+n+") "}},l=function(n,i,r){var u,o,f=t.data(n,"isoTransform")||{},h={},e={};h[i]=r;t.extend(f,h);for(u in f)o=f[u],e[u]=k[u](o);var c=e.translate||"",l=e.scale||"",a=c+l;t.data(n,"isoTransform",f);n.style[s]=a},t.cssNumber.scale=!0,t.cssHooks.scale={set:function(n,t){l(n,"scale",t)},get:function(n){var i=t.data(n,"isoTransform");return i&&i.scale?i.scale:1}},t.fx.step.scale=function(n){t.cssHooks.scale.set(n.elem,n.now+n.unit)},t.cssNumber.translate=!0,t.cssHooks.translate={set:function(n,t){l(n,"translate",t)},get:function(n){var i=t.data(n,"isoTransform");return i&&i.translate?i.translate:[0,0]}});i.csstransitions&&(d={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[b],g=f("transitionDuration"));u=t.event;nt=t.event.handle?"handle":"dispatch";u.special.smartresize={setup:function(){t(this).bind("resize",u.special.smartresize.handler)},teardown:function(){t(this).unbind("resize",u.special.smartresize.handler)},handler:function(n,t){var i=this,r=arguments;n.type="smartresize";a&&clearTimeout(a);a=setTimeout(function(){u[nt].apply(i,r)},"execAsap"===t?0:100)}};t.fn.smartresize=function(n){return n?this.bind("smartresize",n):this.trigger("smartresize",["execAsap"])};t.Isotope=function(n,i,r){this.element=t(i);this._create(n);this._init(r)};tt=["width","height"];v=t(n);t.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1};t.Isotope.prototype={_create:function(n){var e,r,i,u,o,s,f;this.options=t.extend({},t.Isotope.settings,n);this.styleQueue=[];this.elemCount=0;e=this.element[0].style;this.originalStyle={};r=tt.slice(0);for(i in this.options.containerStyle)r.push(i);for(u=0,o=r.length;o>u;u++)i=r[u],this.originalStyle[i]=e[i]||"";this.element.css(this.options.containerStyle);this._updateAnimationEngine();this._updateUsingTransforms();s={"original-order":function(n,t){return t.elemCount++,t.elemCount},random:function(){return Math.random()}};this.options.getSortData=t.extend(this.options.getSortData,s);this.reloadItems();this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};f=this;setTimeout(function(){f.element.addClass(f.options.containerClass)},0);this.options.resizable&&v.bind("smartresize.isotope",function(){f.resize()});this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(n){var i=this.options.itemSelector,t=i?n.filter(i).add(n.find(i)):n,r={position:"absolute"};return t=t.filter(function(n,t){return 1===t.nodeType}),this.usingTransforms&&(r.left=0,r.top=0),t.css(r).addClass(this.options.itemClass),this.updateSortData(t,!0),t},_init:function(n){this.$filteredAtoms=this._filter(this.$allAtoms);this._sort();this.reLayout(n)},option:function(n){var i,r;if(t.isPlainObject(n)){this.options=t.extend(!0,this.options,n);for(r in n)i="_update"+o(r),this[i]&&this[i]()}},_updateAnimationEngine:function(){var n,t=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");switch(t){case"css":case"none":n=!1;break;case"jquery":n=!0;break;default:n=!i.csstransitions}this.isUsingJQueryAnimation=n;this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var n=this.usingTransforms=this.options.transformsEnabled&&i.csstransforms&&i.csstransitions&&!this.isUsingJQueryAnimation;n||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale);this.getPositionStyles=n?this._translate:this._positionAbs},_filter:function(n){var t=""===this.options.filter?"*":this.options.filter,e;if(!t)return n;var i=this.options.hiddenClass,u="."+i,f=n.filter(u),r=f;return"*"!==t&&(r=f.filter(t),e=n.not(u).not(t).addClass(i),this.styleQueue.push({$el:e,style:this.options.hiddenStyle})),this.styleQueue.push({$el:r,style:this.options.visibleStyle}),r.removeClass(i),n.filter(t)},updateSortData:function(n,i){var u,r,e=this,f=this.options.getSortData;n.each(function(){u=t(this);r={};for(var n in f)r[n]=i||"original-order"!==n?f[n](u,e):t.data(this,"isotope-sort-data")[n];t.data(this,"isotope-sort-data",r)})},_sort:function(){var t=this.options.sortBy,n=this._getSorter,i=this.options.sortAscending?1:-1,r=function(r,u){var f=n(r,t),e=n(u,t);return f===e&&"original-order"!==t&&(f=n(r,"original-order"),e=n(u,"original-order")),(f>e?1:e>f?-1:0)*i};this.$filteredAtoms.sort(r)},_getSorter:function(n,i){return t.data(n,"isotope-sort-data")[i]},_translate:function(n,t){return{translate:[n,t]}},_positionAbs:function(n,t){return{left:n,top:t}},_pushPosition:function(n,t,i){t=Math.round(t+this.offset.left);i=Math.round(i+this.offset.top);var r=this.getPositionStyles(t,i);this.styleQueue.push({$el:n,style:r});this.options.itemPositionDataEnabled&&n.data("isotope-item-position",{x:t,y:i})},layout:function(n,t){var i=this.options.layoutMode,r;(this["_"+i+"Layout"](n),this.options.resizesContainer)&&(r=this["_"+i+"GetContainerSize"](),this.styleQueue.push({$el:this.element,style:r}));this._processStyleQueue(n,t);this.isLaidOut=!0},_processStyleQueue:function(n,r){var l,f,e,o,s=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",u=this.options.animationOptions,a=this.options.onLayout,b;if(f=function(n,t){t.$el[s](t.style,u)},this._isInserting&&this.isUsingJQueryAnimation)f=function(n,t){l=t.$el.hasClass("no-transition")?"css":s;t.$el[l](t.style,u)};else if(r||a||u.complete){var v=!1,y=[r,a,u.complete],p=this;if(e=!0,o=function(){if(!v){for(var t,i=0,r=y.length;r>i;i++)t=y[i],"function"==typeof t&&t.call(p.element,n,p);v=!0}},this.isUsingJQueryAnimation&&"animate"===s)u.complete=o,e=!1;else if(i.csstransitions){for(var c,k=0,w=this.styleQueue[0],h=w&&w.$el;!h||!h.length;){if(c=this.styleQueue[k++],!c)return;h=c.$el}b=parseFloat(getComputedStyle(h[0])[g]);b>0&&(f=function(n,t){t.$el[s](t.style,u).one(d,o)},e=!1)}}t.each(this.styleQueue,f);e&&o();this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(n){this["_"+this.options.layoutMode+"Reset"]();this.layout(this.$filteredAtoms,n)},addItems:function(n,t){var i=this._getAtoms(n);this.$allAtoms=this.$allAtoms.add(i);t&&t(i)},insert:function(n,t){this.element.append(n);var i=this;this.addItems(n,function(n){var r=i._filter(n);i._addHideAppended(r);i._sort();i.reLayout();i._revealAppended(r,t)})},appended:function(n,t){var i=this;this.addItems(n,function(n){i._addHideAppended(n);i.layout(n);i._revealAppended(n,t)})},_addHideAppended:function(n){this.$filteredAtoms=this.$filteredAtoms.add(n);n.addClass("no-transition");this._isInserting=!0;this.styleQueue.push({$el:n,style:this.options.hiddenStyle})},_revealAppended:function(n,t){var i=this;setTimeout(function(){n.removeClass("no-transition");i.styleQueue.push({$el:n,style:i.options.visibleStyle});i._isInserting=!1;i._processStyleQueue(n,t)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(n,t){this.$allAtoms=this.$allAtoms.not(n);this.$filteredAtoms=this.$filteredAtoms.not(n);var r=this,i=function(){n.remove();t&&t.call(r.element)};n.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:n,style:this.options.hiddenStyle}),this._sort(),this.reLayout(i)):i()},shuffle:function(n){this.updateSortData(this.$allAtoms);this.options.sortBy="random";this._sort();this.reLayout(n)},destroy:function(){var r=this.usingTransforms,n=this.options,i,t;this.$allAtoms.removeClass(n.hiddenClass+" "+n.itemClass).each(function(){var n=this.style;n.position="";n.top="";n.left="";n.opacity="";r&&(n[s]="")});i=this.element[0].style;for(t in this.originalStyle)i[t]=this.originalStyle[t];this.element.unbind(".isotope").undelegate("."+n.hiddenClass,"click").removeClass(n.containerClass).removeData("isotope");v.unbind(".isotope")},_getSegments:function(n){var t,i=this.options.layoutMode,r=n?"rowHeight":"columnWidth",u=n?"height":"width",s=n?"rows":"cols",f=this.element[u](),e=this.options[i]&&this.options[i][r]||this.$filteredAtoms["outer"+o(u)](!0)||f;t=Math.floor(f/e);t=Math.max(t,1);this[i][s]=t;this[i][r]=e},_checkIfSegmentsChanged:function(n){var t=this.options.layoutMode,i=n?"rows":"cols",r=this[t][i];return this._getSegments(n),this[t][i]!==r},_masonryReset:function(){this.masonry={};this._getSegments();var n=this.masonry.cols;for(this.masonry.colYs=[];n--;)this.masonry.colYs.push(0)},_masonryLayout:function(n){var r=this,i=r.masonry;n.each(function(){var f=t(this),u=Math.ceil(f.outerWidth(!0)/i.columnWidth),o,n,s,e;if(u=Math.min(u,i.cols),1===u)r._masonryPlaceBrick(f,i.colYs);else{for(s=i.cols+1-u,e=[],n=0;s>n;n++)o=i.colYs.slice(n,n+u),e[n]=Math.max.apply(Math,o);r._masonryPlaceBrick(f,e)}})},_masonryPlaceBrick:function(n,t){for(var e,o,s,h,r=Math.min.apply(Math,t),u=0,i=0,f=t.length;f>i;i++)if(t[i]===r){u=i;break}for(e=this.masonry.columnWidth*u,o=r,this._pushPosition(n,e,o),s=r+n.outerHeight(!0),h=this.masonry.cols+1-f,i=0;h>i;i++)this.masonry.colYs[u+i]=s},_masonryGetContainerSize:function(){var n=Math.max.apply(Math,this.masonry.colYs);return{height:n}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(n){var r=this,u=this.element.width(),i=this.fitRows;n.each(function(){var n=t(this),f=n.outerWidth(!0),e=n.outerHeight(!0);0!==i.x&&f+i.x>u&&(i.x=0,i.y=i.height);r._pushPosition(n,i.x,i.y);i.height=Math.max(i.y+e,i.height);i.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0};this._getSegments();this._getSegments(!0)},_cellsByRowLayout:function(n){var r=this,i=this.cellsByRow;n.each(function(){var n=t(this),u=i.index%i.cols,f=Math.floor(i.index/i.cols),e=(u+.5)*i.columnWidth-n.outerWidth(!0)/2,o=(f+.5)*i.rowHeight-n.outerHeight(!0)/2;r._pushPosition(n,e,o);i.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(n){var i=this;n.each(function(){var n=t(this);i._pushPosition(n,0,i.straightDown.y);i.straightDown.y+=n.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={};this._getSegments(!0);var n=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];n--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(n){var r=this,i=r.masonryHorizontal;n.each(function(){var f=t(this),u=Math.ceil(f.outerHeight(!0)/i.rowHeight),o,n,s,e;if(u=Math.min(u,i.rows),1===u)r._masonryHorizontalPlaceBrick(f,i.rowXs);else{for(s=i.rows+1-u,e=[],n=0;s>n;n++)o=i.rowXs.slice(n,n+u),e[n]=Math.max.apply(Math,o);r._masonryHorizontalPlaceBrick(f,e)}})},_masonryHorizontalPlaceBrick:function(n,t){for(var e,o,s,h,r=Math.min.apply(Math,t),u=0,i=0,f=t.length;f>i;i++)if(t[i]===r){u=i;break}for(e=r,o=this.masonryHorizontal.rowHeight*u,this._pushPosition(n,e,o),s=r+n.outerWidth(!0),h=this.masonryHorizontal.rows+1-f,i=0;h>i;i++)this.masonryHorizontal.rowXs[u+i]=s},_masonryHorizontalGetContainerSize:function(){var n=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:n}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(n){var r=this,u=this.element.height(),i=this.fitColumns;n.each(function(){var n=t(this),e=n.outerWidth(!0),f=n.outerHeight(!0);0!==i.y&&f+i.y>u&&(i.x=i.width,i.y=0);r._pushPosition(n,i.x,i.y);i.width=Math.max(i.x+e,i.width);i.y+=f})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0};this._getSegments();this._getSegments(!0)},_cellsByColumnLayout:function(n){var r=this,i=this.cellsByColumn;n.each(function(){var n=t(this),u=Math.floor(i.index/i.rows),f=i.index%i.rows,e=(u+.5)*i.columnWidth-n.outerWidth(!0)/2,o=(f+.5)*i.rowHeight-n.outerHeight(!0)/2;r._pushPosition(n,e,o);i.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(n){var i=this;n.each(function(){var n=t(this);i._pushPosition(n,i.straightAcross.x,0);i.straightAcross.x+=n.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}};t.fn.imagesLoaded=function(n){function u(){n.call(i,r)}function f(n){var i=n.target;i.src!==o&&-1===t.inArray(i,s)&&(s.push(i),--e<=0&&(setTimeout(u),r.unbind(".imagesLoaded",f)))}var i=this,r=i.find("img").add(i.filter("img")),e=r.length,o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",s=[];return e||u(),r.bind("load.imagesLoaded error.imagesLoaded",f).each(function(){var n=this.src;this.src=o;this.src=n}),i};y=function(t){n.console&&n.console.error(t)};t.fn.isotope=function(n,i){if("string"==typeof n){var r=Array.prototype.slice.call(arguments,1);this.each(function(){var i=t.data(this,"isotope");return i?t.isFunction(i[n])&&"_"!==n.charAt(0)?void i[n].apply(i,r):void y("no such method '"+n+"' for isotope instance"):void y("cannot call methods on isotope prior to initialization; attempted to call method '"+n+"'")})}else this.each(function(){var r=t.data(this,"isotope");r?(r.option(n),r._init(i)):t.data(this,"isotope",new t.Isotope(n,this,i))});return this}}(window,jQuery),function(n,t){t.extend(t.Isotope.prototype,{_sloppyMasonryReset:function(){var n=this.element.width(),t=this.options.sloppyMasonry&&this.options.sloppyMasonry.columnWidth||this.$filteredAtoms.outerWidth(!0)||n;for(this.sloppyMasonry={cols:Math.round(n/t),columnWidth:t},n=this.sloppyMasonry.cols,this.sloppyMasonry.colYs=[];n--;)this.sloppyMasonry.colYs.push(0)},_sloppyMasonryLayout:function(n){var r=this,i=r.sloppyMasonry;n.each(function(){var f=t(this),u=Math.round(f.outerWidth(!0)/i.columnWidth),u=Math.min(u,i.cols),o,e,s,n;if(1===u)r._sloppyMasonryPlaceBrick(f,i.colYs);else{for(o=i.cols+1-u,e=[],n=0;n<o;n++)s=i.colYs.slice(n,n+u),e[n]=Math.max.apply(Math,s);r._sloppyMasonryPlaceBrick(f,e)}})},_sloppyMasonryPlaceBrick:function(n,t){for(var r=Math.min.apply(Math,t),f=0,i=0,u=t.length;i<u;i++)if(t[i]===r){f=i;break}for(this._pushPosition(n,this.sloppyMasonry.columnWidth*f,r),r+=n.outerHeight(!0),u=this.sloppyMasonry.cols+1-u,i=0;i<u;i++)this.sloppyMasonry.colYs[f+i]=r},_sloppyMasonryGetContainerSize:function(){return{height:Math.max.apply(Math,this.sloppyMasonry.colYs)}},_sloppyMasonryResizeChanged:function(){return!0}})}(this,this.jQuery),function(n,t){var i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";n.fn.imagesLoaded=function(r){function l(){var t=n(c),i=n(o);u&&(o.length?u.reject(f,t,i):u.resolve(f));n.isFunction(r)&&r.call(e,f,t,i)}function a(n){s(n.target,"error"===n.type)}function s(t,r){t.src===i||-1!==n.inArray(t,h)||(h.push(t),r?o.push(t):c.push(t),n.data(t,"imagesLoaded",{isBroken:r,src:t.src}),v&&u.notifyWith(n(t),[r,f,n(c),n(o)]),f.length===h.length&&(setTimeout(l),f.unbind(".imagesLoaded",a)))}var e=this,u=n.isFunction(n.Deferred)?n.Deferred():0,v=n.isFunction(u.notify),f=e.find("img").add(e.filter("img")),h=[],c=[],o=[];return n.isPlainObject(r)&&n.each(r,function(n,t){"callback"===n?r=t:u&&u[n](t)}),f.length?f.bind("load.imagesLoaded error.imagesLoaded",a).each(function(r,u){var e=u.src,f=n.data(u,"imagesLoaded");f&&f.src===e?s(u,f.isBroken):u.complete&&u.naturalWidth!==t?s(u,0===u.naturalWidth||0===u.naturalHeight):(u.readyState||u.complete)&&(u.src=i,u.src=e)}):l(),u?u.promise(e):e}}(jQuery),function(n){var h="Close",wt="BeforeClose",ii="AfterClose",ri="BeforeAppend",rt="MarkupParse",ut="Open",bt="Change",ft="mfp",u="."+ft,w="mfp-ready",kt="mfp-removing",et="mfp-prevent-close",t,b=function(){},ot=!!window.jQuery,st,f=n(window),c,o,k,l,dt,r=function(n,i){t.ev.on(ft+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(ft+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===dt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),dt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new b,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(n.transition!==undefined)return!0;while(t.length)if(t.pop()+"Transition"in n)return!0;return!1},d,v,g,nt,lt,s,ni,vt,ti,tt,pt,it;b.prototype={constructor:b,init:function(){var i=navigator.appVersion;t.isIE7=i.indexOf("MSIE 7.")!==-1;t.isIE8=i.indexOf("MSIE 8.")!==-1;t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var h,b,a,k,v,d,y,g,p;if(c||(c=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,b=s.items,h=0;h<b.length;h++)if(a=b[h],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=h;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen){t.updateItemHTML();return}for(t.types=[],l="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos=t.st.fixedContentPos==="auto"?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,h=0;h<k.length;h++)v=k[h],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);if(i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(rt,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),l+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(l+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),t.st.fixedBgPos!==!1&&(t.st.fixedBgPos!=="auto"||t.fixedContentPos)||t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey)o.on("keyup"+u,function(n){n.keyCode===27&&t.close()});f.on("resize"+u,function(){t.updateSize()});return t.st.closeOnContentClick||(l+=" mfp-auto-cursor"),l&&t.wrap.addClass(l),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||c),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(w),t._setFocus()):t.bgOverlay.addClass(w);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ut),s},close:function(){t.isOpen&&(i(wt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(kt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(h);r=kt+" "+w+" ";t.bgOverlay.detach();t.wrap.detach();t.container.empty();t.st.mainClass&&(r+=t.st.mainClass+" ");t._removeClassFromMFP(r);t.fixedContentPos&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;i("BeforeChange",[t.currItem?t.currItem.type:"",r]);t.currItem=u;t.currTemplate[r]||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);k&&k!==u.type&&t.container.removeClass("mfp-"+k+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(bt,u);k=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var u=t.items[r],o,e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;f<e.length;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;if(i||(i={}),r="click.magnificPopup",i.mainEl=n,i.items){i.isObj=!0;n.off(r).on(r,u)}else if(i.isObj=!1,i.delegate)n.off(r).on(r,i.delegate,u);else{i.items=n;n.off(r).on(r,u)}},_openClick:function(i,r,u){var o=u.midClick!==undefined?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||!(i.which===2||i.ctrlKey||i.metaKey)){if(e=u.disableOn!==undefined?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(f.width()<e)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){st!==n&&t.container.removeClass("mfp-s-"+st);r||n!=="loading"||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);st=n}},_checkIfClose:function(i){if(!n(i).hasClass(et)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(rt,[t,r,f]);n.each(r,function(n,i){var r,f;if(i===undefined||i===!1)return!0;e=n.split("_");e.length>1?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],f==="replaceWith"?r[0]!==i[0]&&r.replaceWith(i):f==="img"?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(t.scrollbarSize===undefined){var n=document.createElement("div");n.id="mfp-sbm";n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),typeof i=="string"?i==="open"?(f=ot?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),ot?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};d="inline";lt=function(){nt&&(g.after(nt.addClass(v)).detach(),nt=null)};n.magnificPopup.registerModule(d,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(d);r(h+"."+d,function(){lt()})},getInline:function(i,r){var f,u,o;return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(g||(v=f.hiddenClass,g=e(v),v="mfp-"+v),nt=u.after(g).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y="ajax",p,at=function(){p&&c.removeClass(p)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(y,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(y);p=t.st.ajax.cursor;r(h+"."+y,gt);r("BeforeChange."+y,gt)},getAjax:function(r){p&&c.addClass(p);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),y);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(w)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&i.data.title!==undefined)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ut+i,function(){t.currItem.type==="image"&&n.cursor&&c.addClass(n.cursor)});r(h+i,function(){n.cursor&&c.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){if(u.naturalWidth>0){t._onImageHasSize(n);return}i>200&&clearInterval(s);i++;i===3?r(10):i===40?r(50):i===100&&r(500)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,e<200?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return(l.length&&(f=document.createElement("img"),f.className="mfp-img",r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize)?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return vt===undefined&&(vt=document.createElement("p").style.MozTransform!==undefined),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var f=t.st.zoom,o=".zoom",u;if(f.enabled&&t.supportsTransition){var c=f.duration,l=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")},e,n;r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u){s();return}n=l(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},c)},16)}});r(wt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=c,!u){if(u=t._getItemToZoom(),!u)return;n=l(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(h+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return t.currItem.type==="image"},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(ot?r.innerHeight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(h+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return this.id&&(u=typeof this.id=="string"?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:n<0?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);if(t.direction=!0,!u||!u.enabled)return!1;l+=" mfp-gallery";r(ut+i,function(){if(u.navigateByImgClick)t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1});o.on("keydown"+i,function(n){n.keyCode===37?t.prev():n.keyCode===39&&t.next()})});r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))});r(rt+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""});r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(et),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(et),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}});r(bt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)});r(h+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;n<=(t.direction?u:r);n++)t._preloadItem(t.index+n);for(n=1;n<=(t.direction?r:u);n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);u.type==="image"&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var l=n(this),s,a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){(r(),h||c>1)||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()}(window.jQuery||window.Zepto);eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}('7(A 3c.3q!=="9"){3c.3q=9(e){9 t(){}t.5S=e;p 5R t}}(9(e,t,n){h r={1N:9(t,n){h r=c;r.$k=e(n);r.6=e.4M({},e.37.2B.6,r.$k.v(),t);r.2A=t;r.4L()},4L:9(){9 r(e){h n,r="";7(A t.6.33==="9"){t.6.33.R(c,[e])}l{1A(n 38 e.d){7(e.d.5M(n)){r+=e.d[n].1K}}t.$k.2y(r)}t.3t()}h t=c,n;7(A t.6.2H==="9"){t.6.2H.R(c,[t.$k])}7(A t.6.2O==="2Y"){n=t.6.2O;e.5K(n,r)}l{t.3t()}},3t:9(){h e=c;e.$k.v("d-4I",e.$k.2x("2w")).v("d-4F",e.$k.2x("H"));e.$k.z({2u:0});e.2t=e.6.q;e.4E();e.5v=0;e.1X=14;e.23()},23:9(){h e=c;7(e.$k.25().N===0){p b}e.1M();e.4C();e.$S=e.$k.25();e.E=e.$S.N;e.4B();e.$G=e.$k.17(".d-1K");e.$K=e.$k.17(".d-1p");e.3u="U";e.13=0;e.26=[0];e.m=0;e.4A();e.4z()},4z:9(){h e=c;e.2V();e.2W();e.4t();e.30();e.4r();e.4q();e.2p();e.4o();7(e.6.2o!==b){e.4n(e.6.2o)}7(e.6.O===j){e.6.O=4Q}e.19();e.$k.17(".d-1p").z("4i","4h");7(!e.$k.2m(":3n")){e.3o()}l{e.$k.z("2u",1)}e.5O=b;e.2l();7(A e.6.3s==="9"){e.6.3s.R(c,[e.$k])}},2l:9(){h e=c;7(e.6.1Z===j){e.1Z()}7(e.6.1B===j){e.1B()}e.4g();7(A e.6.3w==="9"){e.6.3w.R(c,[e.$k])}},3x:9(){h e=c;7(A e.6.3B==="9"){e.6.3B.R(c,[e.$k])}e.3o();e.2V();e.2W();e.4f();e.30();e.2l();7(A e.6.3D==="9"){e.6.3D.R(c,[e.$k])}},3F:9(){h e=c;t.1c(9(){e.3x()},0)},3o:9(){h e=c;7(e.$k.2m(":3n")===b){e.$k.z({2u:0});t.18(e.1C);t.18(e.1X)}l{p b}e.1X=t.4d(9(){7(e.$k.2m(":3n")){e.3F();e.$k.4b({2u:1},2M);t.18(e.1X)}},5x)},4B:9(){h e=c;e.$S.5n(\'<L H="d-1p">\').4a(\'<L H="d-1K"><\/L>\');e.$k.17(".d-1p").4a(\'<L H="d-1p-49">\');e.1H=e.$k.17(".d-1p-49");e.$k.z("4i","4h")},1M:9(){h e=c,t=e.$k.1I(e.6.1M),n=e.$k.1I(e.6.2i);7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.2i)}},2V:9(){h t=c,n,r;7(t.6.2Z===b){p b}7(t.6.48===j){t.6.q=t.2t=1;t.6.1h=b;t.6.1s=b;t.6.1O=b;t.6.22=b;t.6.1Q=b;t.6.1R=b;p b}n=e(t.6.47).1f();7(n>(t.6.1s[0]||t.2t)){t.6.q=t.2t}7(t.6.1h!==b){t.6.1h.5g(9(e,t){p e[0]-t[0]});1A(r=0;r<t.6.1h.N;r+=1){7(t.6.1h[r][0]<=n){t.6.q=t.6.1h[r][1]}}}l{7(n<=t.6.1s[0]&&t.6.1s!==b){t.6.q=t.6.1s[1]}7(n<=t.6.1O[0]&&t.6.1O!==b){t.6.q=t.6.1O[1]}7(n<=t.6.22[0]&&t.6.22!==b){t.6.q=t.6.22[1]}7(n<=t.6.1Q[0]&&t.6.1Q!==b){t.6.q=t.6.1Q[1]}7(n<=t.6.1R[0]&&t.6.1R!==b){t.6.q=t.6.1R[1]}}7(t.6.q>t.E&&t.6.46===j){t.6.q=t.E}},4r:9(){h n=c,r,i;7(n.6.2Z!==j){p b}i=e(t).1f();n.3d=9(){7(e(t).1f()!==i){7(n.6.O!==b){t.18(n.1C)}t.5d(r);r=t.1c(9(){i=e(t).1f();n.3x()},n.6.45)}};e(t).44(n.3d)},4f:9(){h e=c;e.2g(e.m);7(e.6.O!==b){e.3j()}},43:9(){h t=c,n=0,r=t.E-t.6.q;t.$G.2f(9(i){h s=e(c);s.z({1f:t.M}).v("d-1K",3p(i));7(i%t.6.q===0||i===r){7(!(i>r)){n+=1}}s.v("d-24",n)})},42:9(){h e=c,t=e.$G.N*e.M;e.$K.z({1f:t*2,T:0});e.43()},2W:9(){h e=c;e.40();e.42();e.3Z();e.3v()},40:9(){h e=c;e.M=1F.4O(e.$k.1f()/e.6.q)},3v:9(){h e=c,t=(e.E*e.M-e.6.q*e.M)*-1;7(e.6.q>e.E){e.D=0;t=0;e.3z=0}l{e.D=e.E-e.6.q;e.3z=t}p t},3Y:9(){p 0},3Z:9(){h t=c,n=0,r=0,i,s,o;t.J=[0];t.3E=[];1A(i=0;i<t.E;i+=1){r+=t.M;t.J.2D(-r);7(t.6.12===j){s=e(t.$G[i]);o=s.v("d-24");7(o!==n){t.3E[n]=t.J[i];n=o}}}},4t:9(){h t=c;7(t.6.2a===j||t.6.1v===j){t.B=e(\'<L H="d-5A"/>\').5m("5l",!t.F.15).5c(t.$k)}7(t.6.1v===j){t.3T()}7(t.6.2a===j){t.3S()}},3S:9(){h t=c,n=e(\'<L H="d-4U"/>\');t.B.1o(n);t.1u=e("<L/>",{"H":"d-1n",2y:t.6.2U[0]||""});t.1q=e("<L/>",{"H":"d-U",2y:t.6.2U[1]||""});n.1o(t.1u).1o(t.1q);n.w("2X.B 21.B",\'L[H^="d"]\',9(e){e.1l()});n.w("2n.B 28.B",\'L[H^="d"]\',9(n){n.1l();7(e(c).1I("d-U")){t.U()}l{t.1n()}})},3T:9(){h t=c;t.1k=e(\'<L H="d-1v"/>\');t.B.1o(t.1k);t.1k.w("2n.B 28.B",".d-1j",9(n){n.1l();7(3p(e(c).v("d-1j"))!==t.m){t.1g(3p(e(c).v("d-1j")),j)}})},3P:9(){h t=c,n,r,i,s,o,u;7(t.6.1v===b){p b}t.1k.2y("");n=0;r=t.E-t.E%t.6.q;1A(s=0;s<t.E;s+=1){7(s%t.6.q===0){n+=1;7(r===s){i=t.E-t.6.q}o=e("<L/>",{"H":"d-1j"});u=e("<3N><\/3N>",{4R:t.6.39===j?n:"","H":t.6.39===j?"d-59":""});o.1o(u);o.v("d-1j",r===s?i:s);o.v("d-24",n);t.1k.1o(o)}}t.35()},35:9(){h t=c;7(t.6.1v===b){p b}t.1k.17(".d-1j").2f(9(){7(e(c).v("d-24")===e(t.$G[t.m]).v("d-24")){t.1k.17(".d-1j").Z("2d");e(c).I("2d")}})},3e:9(){h e=c;7(e.6.2a===b){p b}7(e.6.2e===b){7(e.m===0&&e.D===0){e.1u.I("1b");e.1q.I("1b")}l 7(e.m===0&&e.D!==0){e.1u.I("1b");e.1q.Z("1b")}l 7(e.m===e.D){e.1u.Z("1b");e.1q.I("1b")}l 7(e.m!==0&&e.m!==e.D){e.1u.Z("1b");e.1q.Z("1b")}}},30:9(){h e=c;e.3P();e.3e();7(e.B){7(e.6.q>=e.E){e.B.3K()}l{e.B.3J()}}},55:9(){h e=c;7(e.B){e.B.3k()}},U:9(e){h t=c;7(t.1E){p b}t.m+=t.6.12===j?t.6.q:1;7(t.m>t.D+(t.6.12===j?t.6.q-1:0)){7(t.6.2e===j){t.m=0;e="2k"}l{t.m=t.D;p b}}t.1g(t.m,e)},1n:9(e){h t=c;7(t.1E){p b}7(t.6.12===j&&t.m>0&&t.m<t.6.q){t.m=0}l{t.m-=t.6.12===j?t.6.q:1}7(t.m<0){7(t.6.2e===j){t.m=t.D;e="2k"}l{t.m=0;p b}}t.1g(t.m,e)},1g:9(e,n,r){h i=c,s;7(i.1E){p b}7(A i.6.1Y==="9"){i.6.1Y.R(c,[i.$k])}7(e>=i.D){e=i.D}l 7(e<=0){e=0}i.m=i.d.m=e;7(i.6.2o!==b&&r!=="4e"&&i.6.q===1&&i.F.1x===j){i.1t(0);7(i.F.1x===j){i.1L(i.J[e])}l{i.1r(i.J[e],1)}i.2r();i.4l();p b}s=i.J[e];7(i.F.1x===j){i.1T=b;7(n===j){i.1t("1w");t.1c(9(){i.1T=j},i.6.1w)}l 7(n==="2k"){i.1t(i.6.2v);t.1c(9(){i.1T=j},i.6.2v)}l{i.1t("1m");t.1c(9(){i.1T=j},i.6.1m)}i.1L(s)}l{7(n===j){i.1r(s,i.6.1w)}l 7(n==="2k"){i.1r(s,i.6.2v)}l{i.1r(s,i.6.1m)}}i.2r()},2g:9(e){h t=c;7(A t.6.1Y==="9"){t.6.1Y.R(c,[t.$k])}7(e>=t.D||e===-1){e=t.D}l 7(e<=0){e=0}t.1t(0);7(t.F.1x===j){t.1L(t.J[e])}l{t.1r(t.J[e],1)}t.m=t.d.m=e;t.2r()},2r:9(){h e=c;e.26.2D(e.m);e.13=e.d.13=e.26[e.26.N-2];e.26.5f(0);7(e.13!==e.m){e.35();e.3e();e.2l();7(e.6.O!==b){e.3j()}}7(A e.6.3y==="9"&&e.13!==e.m){e.6.3y.R(c,[e.$k])}},X:9(){h e=c;e.3A="X";t.18(e.1C)},3j:9(){h e=c;7(e.3A!=="X"){e.19()}},19:9(){h e=c;e.3A="19";7(e.6.O===b){p b}t.18(e.1C);e.1C=t.4d(9(){e.U(j)},e.6.O)},1t:9(e){h t=c;7(e==="1m"){t.$K.z(t.2z(t.6.1m))}l 7(e==="1w"){t.$K.z(t.2z(t.6.1w))}l 7(A e!=="2Y"){t.$K.z(t.2z(e))}},2z:9(e){p{"-1G-1a":"2C "+e+"1z 2s","-1W-1a":"2C "+e+"1z 2s","-o-1a":"2C "+e+"1z 2s",1a:"2C "+e+"1z 2s"}},3H:9(){p{"-1G-1a":"","-1W-1a":"","-o-1a":"",1a:""}},3I:9(e){p{"-1G-P":"1i("+e+"V, C, C)","-1W-P":"1i("+e+"V, C, C)","-o-P":"1i("+e+"V, C, C)","-1z-P":"1i("+e+"V, C, C)",P:"1i("+e+"V, C,C)"}},1L:9(e){h t=c;t.$K.z(t.3I(e))},3L:9(e){h t=c;t.$K.z({T:e})},1r:9(e,t){h n=c;n.29=b;n.$K.X(j,j).4b({T:e},{54:t||n.6.1m,3M:9(){n.29=j}})},4E:9(){h e=c,r="1i(C, C, C)",i=n.56("L"),s,o,u,a;i.2w.3O="  -1W-P:"+r+"; -1z-P:"+r+"; -o-P:"+r+"; -1G-P:"+r+"; P:"+r;s=/1i\\(C, C, C\\)/g;o=i.2w.3O.5i(s);u=o!==14&&o.N===1;a="5z"38 t||t.5Q.4P;e.F={1x:u,15:a}},4q:9(){h e=c;7(e.6.27!==b||e.6.1U!==b){e.3Q();e.3R()}},4C:9(){h e=c,t=["s","e","x"];e.16={};7(e.6.27===j&&e.6.1U===j){t=["2X.d 21.d","2N.d 3U.d","2n.d 3V.d 28.d"]}l 7(e.6.27===b&&e.6.1U===j){t=["2X.d","2N.d","2n.d 3V.d"]}l 7(e.6.27===j&&e.6.1U===b){t=["21.d","3U.d","28.d"]}e.16.3W=t[0];e.16.2K=t[1];e.16.2J=t[2]},3R:9(){h t=c;t.$k.w("5y.d",9(e){e.1l()});t.$k.w("21.3X",9(t){p e(t.1d).2m("5C, 5E, 5F, 5N")})},3Q:9(){9 s(e){7(e.2b!==W){p{x:e.2b[0].2c,y:e.2b[0].41}}7(e.2b===W){7(e.2c!==W){p{x:e.2c,y:e.41}}7(e.2c===W){p{x:e.52,y:e.53}}}}9 o(t){7(t==="w"){e(n).w(r.16.2K,a);e(n).w(r.16.2J,f)}l 7(t==="Q"){e(n).Q(r.16.2K);e(n).Q(r.16.2J)}}9 u(n){h u=n.3h||n||t.3g,a;7(u.5a===3){p b}7(r.E<=r.6.q){p}7(r.29===b&&!r.6.3f){p b}7(r.1T===b&&!r.6.3f){p b}7(r.6.O!==b){t.18(r.1C)}7(r.F.15!==j&&!r.$K.1I("3b")){r.$K.I("3b")}r.11=0;r.Y=0;e(c).z(r.3H());a=e(c).2h();i.2S=a.T;i.2R=s(u).x-a.T;i.2P=s(u).y-a.5o;o("w");i.2j=b;i.2L=u.1d||u.4c}9 a(o){h u=o.3h||o||t.3g,a,f;r.11=s(u).x-i.2R;r.2I=s(u).y-i.2P;r.Y=r.11-i.2S;7(A r.6.2E==="9"&&i.3C!==j&&r.Y!==0){i.3C=j;r.6.2E.R(r,[r.$k])}7((r.Y>8||r.Y<-8)&&r.F.15===j){7(u.1l!==W){u.1l()}l{u.5L=b}i.2j=j}7((r.2I>10||r.2I<-10)&&i.2j===b){e(n).Q("2N.d")}a=9(){p r.Y/5};f=9(){p r.3z+r.Y/5};r.11=1F.3v(1F.3Y(r.11,a()),f());7(r.F.1x===j){r.1L(r.11)}l{r.3L(r.11)}}9 f(n){h s=n.3h||n||t.3g,u,a,f;s.1d=s.1d||s.4c;i.3C=b;7(r.F.15!==j){r.$K.Z("3b")}7(r.Y<0){r.1y=r.d.1y="T"}l{r.1y=r.d.1y="3i"}7(r.Y!==0){u=r.4j();r.1g(u,b,"4e");7(i.2L===s.1d&&r.F.15!==j){e(s.1d).w("3a.4k",9(t){t.4S();t.4T();t.1l();e(t.1d).Q("3a.4k")});a=e.4N(s.1d,"4V").3a;f=a.4W();a.4X(0,0,f)}}o("Q")}h r=c,i={2R:0,2P:0,4Y:0,2S:0,2h:14,4Z:14,50:14,2j:14,51:14,2L:14};r.29=j;r.$k.w(r.16.3W,".d-1p",u)},4j:9(){h e=c,t=e.4m();7(t>e.D){e.m=e.D;t=e.D}l 7(e.11>=0){t=0;e.m=0}p t},4m:9(){h t=c,n=t.6.12===j?t.3E:t.J,r=t.11,i=14;e.2f(n,9(s,o){7(r-t.M/20>n[s+1]&&r-t.M/20<o&&t.34()==="T"){i=o;7(t.6.12===j){t.m=e.4p(i,t.J)}l{t.m=s}}l 7(r+t.M/20<o&&r+t.M/20>(n[s+1]||n[s]-t.M)&&t.34()==="3i"){7(t.6.12===j){i=n[s+1]||n[n.N-1];t.m=e.4p(i,t.J)}l{i=n[s+1];t.m=s+1}}});p t.m},34:9(){h e=c,t;7(e.Y<0){t="3i";e.3u="U"}l{t="T";e.3u="1n"}p t},4A:9(){h e=c;e.$k.w("d.U",9(){e.U()});e.$k.w("d.1n",9(){e.1n()});e.$k.w("d.19",9(t,n){e.6.O=n;e.19();e.32="19"});e.$k.w("d.X",9(){e.X();e.32="X"});e.$k.w("d.1g",9(t,n){e.1g(n)});e.$k.w("d.2g",9(t,n){e.2g(n)})},2p:9(){h e=c;7(e.6.2p===j&&e.F.15!==j&&e.6.O!==b){e.$k.w("57",9(){e.X()});e.$k.w("58",9(){7(e.32!=="X"){e.19()}})}},1Z:9(){h t=c,n,r,i,s,o;7(t.6.1Z===b){p b}1A(n=0;n<t.E;n+=1){r=e(t.$G[n]);7(r.v("d-1e")==="1e"){4s}i=r.v("d-1K");s=r.17(".5b");7(A s.v("1J")!=="2Y"){r.v("d-1e","1e");4s}7(r.v("d-1e")===W){s.3K();r.I("4u").v("d-1e","5e")}7(t.6.4v===j){o=i>=t.m}l{o=j}7(o&&i<t.m+t.6.q&&s.N){t.4w(r,s)}}},4w:9(e,n){9 o(){e.v("d-1e","1e").Z("4u");n.5h("v-1J");7(r.6.4x==="4y"){n.5j(5k)}l{n.3J()}7(A r.6.2T==="9"){r.6.2T.R(c,[r.$k])}}9 u(){i+=1;7(r.2Q(n.3l(0))||s===j){o()}l 7(i<=2q){t.1c(u,2q)}l{o()}}h r=c,i=0,s;7(n.5p("5q")==="5r"){n.z("5s-5t","5u("+n.v("1J")+")");s=j}l{n[0].1J=n.v("1J")}u()},1B:9(){9 s(){h r=e(n.$G[n.m]).2G();n.1H.z("2G",r+"V");7(!n.1H.1I("1B")){t.1c(9(){n.1H.I("1B")},0)}}9 o(){i+=1;7(n.2Q(r.3l(0))){s()}l 7(i<=2q){t.1c(o,2q)}l{n.1H.z("2G","")}}h n=c,r=e(n.$G[n.m]).17("5w"),i;7(r.3l(0)!==W){i=0;o()}l{s()}},2Q:9(e){h t;7(!e.3M){p b}t=A e.4D;7(t!=="W"&&e.4D===0){p b}p j},4g:9(){h t=c,n;7(t.6.2F===j){t.$G.Z("2d")}t.1D=[];1A(n=t.m;n<t.m+t.6.q;n+=1){t.1D.2D(n);7(t.6.2F===j){e(t.$G[n]).I("2d")}}t.d.1D=t.1D},4n:9(e){h t=c;t.4G="d-"+e+"-5B";t.4H="d-"+e+"-38"},4l:9(){9 a(e){p{2h:"5D",T:e+"V"}}h e=c,t=e.4G,n=e.4H,r=e.$G.1S(e.m),i=e.$G.1S(e.13),s=1F.4J(e.J[e.m])+e.J[e.13],o=1F.4J(e.J[e.m])+e.M/2,u="5G 5H 5I 5J";e.1E=j;e.$K.I("d-1P").z({"-1G-P-1P":o+"V","-1W-4K-1P":o+"V","4K-1P":o+"V"});i.z(a(s,10)).I(t).w(u,9(){e.3m=j;i.Q(u);e.31(i,t)});r.I(n).w(u,9(){e.36=j;r.Q(u);e.31(r,n)})},31:9(e,t){h n=c;e.z({2h:"",T:""}).Z(t);7(n.3m&&n.36){n.$K.Z("d-1P");n.3m=b;n.36=b;n.1E=b}},4o:9(){h e=c;e.d={2A:e.2A,5P:e.$k,S:e.$S,G:e.$G,m:e.m,13:e.13,1D:e.1D,15:e.F.15,F:e.F,1y:e.1y}},3G:9(){h r=c;r.$k.Q(".d d 21.3X");e(n).Q(".d d");e(t).Q("44",r.3d)},1V:9(){h e=c;7(e.$k.25().N!==0){e.$K.3r();e.$S.3r().3r();7(e.B){e.B.3k()}}e.3G();e.$k.2x("2w",e.$k.v("d-4I")||"").2x("H",e.$k.v("d-4F"))},5T:9(){h e=c;e.X();t.18(e.1X);e.1V();e.$k.5U()},5V:9(t){h n=c,r=e.4M({},n.2A,t);n.1V();n.1N(r,n.$k)},5W:9(e,t){h n=c,r;7(!e){p b}7(n.$k.25().N===0){n.$k.1o(e);n.23();p b}n.1V();7(t===W||t===-1){r=-1}l{r=t}7(r>=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)',62,382,"||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document".split("|"),0,{})),function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var u=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='<p>x<\/p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}<\/style>';u.appendChild(r.childNodes[1])}return t&&n.extend(i,t),this.each(function(){var r=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"],t;i.customSelector&&r.push(i.customSelector);t=n(this).find(r.join(","));t=t.not("object object");t.each(function(){var t=n(this),i;if((this.tagName.toLowerCase()!=="embed"||!t.parent("object").length)&&!t.parent(".fluid-width-video-wrapper").length){var r=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),u=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),f=r/u;t.attr("id")||(i="fitvid"+Math.floor(Math.random()*999999),t.attr("id",i));t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",f*100+"%");t.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(n){n.fn.appear=function(t,i){var r=n.extend({data:undefined,one:!0,accX:0,accY:0},i);return this.each(function(){var i=n(this);if(i.appeared=!1,!t){i.trigger("appear",r.data);return}var u=n(window),f=function(){if(!i.is(":visible")){i.appeared=!1;return}var n=u.scrollLeft(),t=u.scrollTop(),f=i.offset(),e=f.left,o=f.top,s=r.accX,h=r.accY,c=i.height(),l=u.height(),a=i.width(),v=u.width();o+c+h>=t&&o<=t+l+h&&e+a+s>=n&&e<=n+v+s?i.appeared||i.trigger("appear",r.data):i.appeared=!1},e=function(){if(i.appeared=!0,r.one){u.unbind("scroll",f);var e=n.inArray(f,n.fn.appear.checks);e>=0&&n.fn.appear.checks.splice(e,1)}t.apply(this,arguments)};if(r.one)i.one("appear",r.data,e);else i.bind("appear",r.data,e);u.scroll(f);n.fn.appear.checks.push(f);f()})};n.extend(n.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=n.fn.appear.checks.length;if(t>0)while(t--)n.fn.appear.checks[t]()},run:function(){n.fn.appear.timeout&&clearTimeout(n.fn.appear.timeout);n.fn.appear.timeout=setTimeout(n.fn.appear.checkAll,20)}});n.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,i){var r=n.fn[i];r&&(n.fn[i]=function(){var t=r.apply(this,arguments);return n.fn.appear.run(),t})})}(jQuery),function(n,t,i,r){function f(t,i){this.element=t;this.options=n.extend({},h,i);this._defaults=h;this._name=u;this.init()}var u="stellar",h={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(n){n.hide()},showElement:function(n){n.show()}},e={scroll:{getLeft:function(n){return n.scrollLeft()},setLeft:function(n,t){n.scrollLeft(t)},getTop:function(n){return n.scrollTop()},setTop:function(n,t){n.scrollTop(t)}},position:{getLeft:function(n){return parseInt(n.css("left"),10)*-1},getTop:function(n){return parseInt(n.css("top"),10)*-1}},margin:{getLeft:function(n){return parseInt(n.css("margin-left"),10)*-1},getTop:function(n){return parseInt(n.css("margin-top"),10)*-1}},transform:{getLeft:function(n){var t=getComputedStyle(n[0])[o];return t!=="none"?parseInt(t.match(/(-?[0-9]+)/g)[4],10)*-1:0},getTop:function(n){var t=getComputedStyle(n[0])[o];return t!=="none"?parseInt(t.match(/(-?[0-9]+)/g)[5],10)*-1:0}}},c={position:{setLeft:function(n,t){n.css("left",t)},setTop:function(n,t){n.css("top",t)}},transform:{setPosition:function(n,t,i,r,u){n[0].style[o]="translate3d("+(t-i)+"px, "+(r-u)+"px, 0)"}}},v=function(){var u=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=n("script")[0].style,t="",r;for(r in i)if(u.test(r)){t=r.match(u)[0];break}return"WebkitOpacity"in i&&(t="Webkit"),"KhtmlOpacity"in i&&(t="Khtml"),function(n){return t+(t.length>0?n.charAt(0).toUpperCase()+n.slice(1):n)}}(),o=v("transform"),l=n("<div />",{style:"background:#fff"}).css("background-position-x")!==r,s=l?function(n,t,i){n.css({"background-position-x":t,"background-position-y":i})}:function(n,t,i){n.css("background-position",t+" "+i)},y=l?function(n){return[n.css("background-position-x"),n.css("background-position-y")]}:function(n){return n.css("background-position").split(" ")},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,1e3/60)};f.prototype={init:function(){this.options.name=u+"_"+Math.floor(Math.random()*1e9);this._defineElements();this._defineGetters();this._defineSetters();this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:!0});this.options.scrollProperty==="scroll"?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===i.body&&(this.element=t);this.$scrollElement=n(this.element);this.$element=this.element===t?n("body"):this.$scrollElement;this.$viewportElement=this.options.viewportElement!==r?n(this.options.viewportElement):this.$scrollElement[0]===t||this.options.scrollProperty==="scroll"?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var n=this,t=e[n.options.scrollProperty];this._getScrollLeft=function(){return t.getLeft(n.$scrollElement)};this._getScrollTop=function(){return t.getTop(n.$scrollElement)}},_defineSetters:function(){var t=this,r=e[t.options.scrollProperty],i=c[t.options.positionProperty],u=r.setLeft,f=r.setTop;this._setScrollLeft=typeof u=="function"?function(n){u(t.$scrollElement,n)}:n.noop;this._setScrollTop=typeof f=="function"?function(n){f(t.$scrollElement,n)}:n.noop;this._setPosition=i.setPosition||function(n,r,u,f,e){t.options.horizontalScrolling&&i.setLeft(n,r,u);t.options.verticalScrolling&&i.setTop(n,f,e)}},_handleWindowLoadAndResize:function(){var i=this,r=n(t);i.options.responsive&&r.bind("load."+this.name,function(){i.refresh()});r.bind("resize."+this.name,function(){i._detectViewport();i.options.responsive&&i.refresh()})},refresh:function(i){var r=this,u=r._getScrollLeft(),f=r._getScrollTop();i&&i.firstLoad||this._reset();this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();i&&i.firstLoad&&/WebKit/.test(navigator.userAgent)&&n(t).load(function(){var n=r._getScrollLeft(),t=r._getScrollTop();r._setScrollLeft(n+1);r._setScrollTop(t+1);r._setScrollLeft(n);r._setScrollTop(t)});this._setScrollLeft(u);this._setScrollTop(f)},_detectViewport:function(){var n=this.$viewportElement.offset(),t=n!==null&&n!==r;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=t?n.top:0;this.viewportOffsetLeft=t?n.left:0},_findParticles:function(){var t=this,u=this._getScrollLeft(),f=this._getScrollTop(),i;if(this.particles!==r)for(i=this.particles.length-1;i>=0;i--)this.particles[i].$element.data("stellar-elementIsActive",r);(this.particles=[],this.options.parallaxElements)&&this.$element.find("[data-stellar-ratio]").each(function(){var i=n(this),f,e,o,s,h,c,u,l,a,v=0,y=0,p=0,w=0;if(i.data("stellar-elementIsActive")){if(i.data("stellar-elementIsActive")!==this)return}else i.data("stellar-elementIsActive",this);t.options.showElement(i);i.data("stellar-startingLeft")?(i.css("left",i.data("stellar-startingLeft")),i.css("top",i.data("stellar-startingTop"))):(i.data("stellar-startingLeft",i.css("left")),i.data("stellar-startingTop",i.css("top")));o=i.position().left;s=i.position().top;h=i.css("margin-left")==="auto"?0:parseInt(i.css("margin-left"),10);c=i.css("margin-top")==="auto"?0:parseInt(i.css("margin-top"),10);l=i.offset().left-h;a=i.offset().top-c;i.parents().each(function(){var t=n(this);if(t.data("stellar-offset-parent")===!0)return v=p,y=w,u=t,!1;p+=t.position().left;w+=t.position().top});f=i.data("stellar-horizontal-offset")!==r?i.data("stellar-horizontal-offset"):u!==r&&u.data("stellar-horizontal-offset")!==r?u.data("stellar-horizontal-offset"):t.horizontalOffset;e=i.data("stellar-vertical-offset")!==r?i.data("stellar-vertical-offset"):u!==r&&u.data("stellar-vertical-offset")!==r?u.data("stellar-vertical-offset"):t.verticalOffset;t.particles.push({$element:i,$offsetParent:u,isFixed:i.css("position")==="fixed",horizontalOffset:f,verticalOffset:e,startingPositionLeft:o,startingPositionTop:s,startingOffsetLeft:l,startingOffsetTop:a,parentOffsetLeft:v,parentOffsetTop:y,stellarRatio:i.data("stellar-ratio")!==r?i.data("stellar-ratio"):1,width:i.outerWidth(!0),height:i.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var i=this,u=this._getScrollLeft(),f=this._getScrollTop(),t;(this.backgrounds=[],this.options.parallaxBackgrounds)&&(t=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(t=t.add(this.$element)),t.each(function(){var t=n(this),e=y(t),h,c,l,a,v,p,o,w=0,b=0,k=0,d=0;if(t.data("stellar-backgroundIsActive")){if(t.data("stellar-backgroundIsActive")!==this)return}else t.data("stellar-backgroundIsActive",this);t.data("stellar-backgroundStartingLeft")?s(t,t.data("stellar-backgroundStartingLeft"),t.data("stellar-backgroundStartingTop")):(t.data("stellar-backgroundStartingLeft",e[0]),t.data("stellar-backgroundStartingTop",e[1]));l=t.css("margin-left")==="auto"?0:parseInt(t.css("margin-left"),10);a=t.css("margin-top")==="auto"?0:parseInt(t.css("margin-top"),10);v=t.offset().left-l-u;p=t.offset().top-a-f;t.parents().each(function(){var t=n(this);if(t.data("stellar-offset-parent")===!0)return w=k,b=d,o=t,!1;k+=t.position().left;d+=t.position().top});h=t.data("stellar-horizontal-offset")!==r?t.data("stellar-horizontal-offset"):o!==r&&o.data("stellar-horizontal-offset")!==r?o.data("stellar-horizontal-offset"):i.horizontalOffset;c=t.data("stellar-vertical-offset")!==r?t.data("stellar-vertical-offset"):o!==r&&o.data("stellar-vertical-offset")!==r?o.data("stellar-vertical-offset"):i.verticalOffset;i.backgrounds.push({$element:t,$offsetParent:o,isFixed:t.css("background-attachment")==="fixed",horizontalOffset:h,verticalOffset:c,startingValueLeft:e[0],startingValueTop:e[1],startingBackgroundPositionLeft:isNaN(parseInt(e[0],10))?0:parseInt(e[0],10),startingBackgroundPositionTop:isNaN(parseInt(e[1],10))?0:parseInt(e[1],10),startingPositionLeft:t.position().left,startingPositionTop:t.position().top,startingOffsetLeft:v,startingOffsetTop:p,parentOffsetLeft:w,parentOffsetTop:b,stellarRatio:t.data("stellar-background-ratio")===r?1:t.data("stellar-background-ratio")})}))},_reset:function(){for(var t,r,u,i,n=this.particles.length-1;n>=0;n--)t=this.particles[n],r=t.$element.data("stellar-startingLeft"),u=t.$element.data("stellar-startingTop"),this._setPosition(t.$element,r,r,u,u),this.options.showElement(t.$element),t.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(n=this.backgrounds.length-1;n>=0;n--)i=this.backgrounds[n],i.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),s(i.$element,i.startingValueLeft,i.startingValueTop)},destroy:function(){this._reset();this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name);this._animationLoop=n.noop;n(t).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var i=this,r=n(t);r.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name);typeof this.options.horizontalOffset=="function"?(this.horizontalOffset=this.options.horizontalOffset(),r.bind("resize.horizontal-"+this.name,function(){i.horizontalOffset=i.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset;typeof this.options.verticalOffset=="function"?(this.verticalOffset=this.options.verticalOffset(),r.bind("resize.vertical-"+this.name,function(){i.verticalOffset=i.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var r=this._getScrollLeft(),u=this._getScrollTop(),n,f,t,l,a,v=!0,y=!0,e,o,h,c,i;if(this.currentScrollLeft!==r||this.currentScrollTop!==u||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=r,this.currentScrollTop=u,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,i=this.particles.length-1;i>=0;i--)n=this.particles[i],f=n.isFixed?1:0,this.options.horizontalScrolling?(e=(r+n.horizontalOffset+this.viewportOffsetLeft+n.startingPositionLeft-n.startingOffsetLeft+n.parentOffsetLeft)*-(n.stellarRatio+f-1)+n.startingPositionLeft,h=e-n.startingPositionLeft+n.startingOffsetLeft):(e=n.startingPositionLeft,h=n.startingOffsetLeft),this.options.verticalScrolling?(o=(u+n.verticalOffset+this.viewportOffsetTop+n.startingPositionTop-n.startingOffsetTop+n.parentOffsetTop)*-(n.stellarRatio+f-1)+n.startingPositionTop,c=o-n.startingPositionTop+n.startingOffsetTop):(o=n.startingPositionTop,c=n.startingOffsetTop),this.options.hideDistantElements&&(y=!this.options.horizontalScrolling||h+n.width>(n.isFixed?0:r)&&h<(n.isFixed?0:r)+this.viewportWidth+this.viewportOffsetLeft,v=!this.options.verticalScrolling||c+n.height>(n.isFixed?0:u)&&c<(n.isFixed?0:u)+this.viewportHeight+this.viewportOffsetTop),y&&v?(n.isHidden&&(this.options.showElement(n.$element),n.isHidden=!1),this._setPosition(n.$element,e,n.startingPositionLeft,o,n.startingPositionTop)):n.isHidden||(this.options.hideElement(n.$element),n.isHidden=!0);for(i=this.backgrounds.length-1;i>=0;i--)t=this.backgrounds[i],f=t.isFixed?0:1,l=this.options.horizontalScrolling?(r+t.horizontalOffset-this.viewportOffsetLeft-t.startingOffsetLeft+t.parentOffsetLeft-t.startingBackgroundPositionLeft)*(f-t.stellarRatio)+"px":t.startingValueLeft,a=this.options.verticalScrolling?(u+t.verticalOffset-this.viewportOffsetTop-t.startingOffsetTop+t.parentOffsetTop-t.startingBackgroundPositionTop)*(f-t.stellarRatio)+"px":t.startingValueTop,s(t.$element,l,a)}},_handleScrollEvent:function(){var i=this,n=!1,r=function(){i._repositionElements();n=!1},t=function(){n||(a(r),n=!0)};this.$scrollElement.bind("scroll."+this.name,t);t()},_startAnimationLoop:function(){var n=this;this._animationLoop=function(){a(n._animationLoop);n._repositionElements()};this._animationLoop()}};n.fn[u]=function(t){var i=arguments;return t===r||typeof t=="object"?this.each(function(){n.data(this,"plugin_"+u)||n.data(this,"plugin_"+u,new f(this,t))}):typeof t=="string"&&t[0]!=="_"&&t!=="init"?this.each(function(){var r=n.data(this,"plugin_"+u);r instanceof f&&typeof r[t]=="function"&&r[t].apply(r,Array.prototype.slice.call(i,1));t==="destroy"&&n.data(this,"plugin_"+u,null)}):void 0};n[u]=function(){var i=n(t);return i.stellar.apply(i,Array.prototype.slice.call(arguments,0))};n[u].scrollProperty=e;n[u].positionProperty=c;t.Stellar=f}(jQuery,this,document);!function(n){var r,i,o="0.4.2",e="hasOwnProperty",f=/[\.\/]/,s="*",h=function(){},c=function(n,t){return n-t},u={n:{}},t=function(n,u){var e,y;n=String(n);var f,p=i,a=Array.prototype.slice.call(arguments,2),o=t.listeners(n),l=0,h=[],v={},s=[],w=r;for(r=n,i=0,e=0,y=o.length;y>e;e++)"zIndex"in o[e]&&(h.push(o[e].zIndex),o[e].zIndex<0&&(v[o[e].zIndex]=o[e]));for(h.sort(c);h[l]<0;)if(f=v[h[l++]],s.push(f.apply(u,a)),i)return i=p,s;for(e=0;y>e;e++)if(f=o[e],"zIndex"in f)if(f.zIndex==h[l]){if(s.push(f.apply(u,a)),i)break;do if(l++,f=v[h[l]],f&&s.push(f.apply(u,a)),i)break;while(f)}else v[f.zIndex]=f;else if(s.push(f.apply(u,a)),i)break;return i=p,r=w,s.length?s:null};t._events=u;t.listeners=function(n){for(var t,a,o,r,y,h,p=n.split(f),e=u,c=[e],l=[],i=0,v=p.length;v>i;i++){for(h=[],r=0,y=c.length;y>r;r++)for(e=c[r].n,a=[e[p[i]],e[s]],o=2;o--;)t=a[o],t&&(h.push(t),l=l.concat(t.f||[]));c=h}return l};t.on=function(n,t){if(n=String(n),"function"!=typeof t)return function(){};for(var e=n.split(f),i=u,r=0,o=e.length;o>r;r++)i=i.n,i=i.hasOwnProperty(e[r])&&i[e[r]]||(i[e[r]]={n:{}});for(i.f=i.f||[],r=0,o=i.f.length;o>r;r++)if(i.f[r]==t)return h;return i.f.push(t),function(n){+n==+n&&(t.zIndex=+n)}};t.f=function(n){var i=[].slice.call(arguments,1);return function(){t.apply(null,[n,null].concat(i).concat([].slice.call(arguments,0)))}};t.stop=function(){i=1};t.nt=function(n){return n?new RegExp("(?:\\.|\\/|^)"+n+"(?:\\.|\\/|$)").test(r):r};t.nts=function(){return r.split(f)};t.off=t.unbind=function(n,i){var r,h,a,c,p,o,w,v,l,y;if(!n)return t._events=u={n:{}},void 0;for(v=n.split(f),l=[u],c=0,p=v.length;p>c;c++)for(o=0;o<l.length;o+=a.length-2){if(a=[o,1],r=l[o].n,v[c]!=s)r[v[c]]&&a.push(r[v[c]]);else for(h in r)r[e](h)&&a.push(r[h]);l.splice.apply(l,a)}for(c=0,p=l.length;p>c;c++)for(r=l[c];r.n;){if(i){if(r.f){for(o=0,w=r.f.length;w>o;o++)if(r.f[o]==i){r.f.splice(o,1);break}r.f.length||delete r.f}for(h in r.n)if(r.n[e](h)&&r.n[h].f){for(y=r.n[h].f,o=0,w=y.length;w>o;o++)if(y[o]==i){y.splice(o,1);break}y.length||delete r.n[h].f}}else{delete r.f;for(h in r.n)r.n[e](h)&&r.n[h].f&&delete r.n[h].f}r=r.n}};t.once=function(n,i){var r=function(){return t.unbind(n,r),i.apply(this,arguments)};return t.on(n,r)};t.version=o;t.toString=function(){return"You are running Eve "+o};"undefined"!=typeof module&&module.exports?module.exports=t:"undefined"!=typeof define?define("eve",[],function(){return t}):n.eve=t}(this),function(n,t){"function"==typeof define&&define.amd?define(["eve"],function(i){return t(n,i)}):t(n,n.eve)}(this,function(n,t){var i=function(t){var r={},u=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(n){setTimeout(n,16)},e=Array.isArray||function(n){return n instanceof Array||"[object Array]"==Object.prototype.toString.call(n)},o=0,s="M"+(+new Date).toString(36),h=function(){return s+(o++).toString(36)},c=Date.now||function(){return+new Date},l=function(n){var t=this,i;if(null==n)return t.s;i=t.s-n;t.b+=t.dur*i;t.B+=t.dur*i;t.s=n},a=function(n){var t=this;return null==n?t.spd:(t.spd=n,void 0)},v=function(n){var t=this;return null==n?t.dur:(t.s=t.s*n/t.dur,t.dur=n,void 0)},y=function(){var n=this;delete r[n.id];t("mina.stop."+n.id,n)},p=function(){var n=this;n.pdif||(delete r[n.id],n.pdif=n.get()-n.b)},w=function(){var n=this;n.pdif&&(n.b=n.get()-n.pdif,delete n.pdif,r[n.id]=n)},f=function(){var h=0,o,s,n,c,i,l;for(o in r)if(r.hasOwnProperty(o)){if(n=r[o],c=n.get(),h++,n.s=(c-n.b)/(n.dur/n.spd),n.s>=1&&(delete r[o],n.s=1,h--,function(n){setTimeout(function(){t("mina.finish."+n.id,n)})}(n)),e(n.start))for(s=[],i=0,l=n.start.length;l>i;i++)s[i]=+n.start[i]+(n.end[i]-n.start[i])*n.easing(n.s);else s=+n.start+(n.end-n.start)*n.easing(n.s);n.set(s)}h&&u(f)},i=function(n,t,e,o,s,c,b){var d={id:h(),start:n,end:t,b:e,s:0,dur:o-e,spd:1,get:s,set:c,easing:b||i.linear,status:l,speed:a,duration:v,stop:y,pause:p,resume:w},g,k;r[d.id]=d;k=0;for(g in r)if(r.hasOwnProperty(g)&&(k++,2==k))break;return 1==k&&u(f),d};return i.time=c,i.getById=function(n){return r[n]||null},i.linear=function(n){return n},i.easeout=function(n){return Math.pow(n,1.7)},i.easein=function(n){return Math.pow(n,.48)},i.easeinout=function(n){if(1==n)return 1;if(0==n)return 0;var i=.48-n/1.04,r=Math.sqrt(.1734+i*i),u=r-i,e=Math.pow(Math.abs(u),1/3)*(0>u?-1:1),f=-r-i,o=Math.pow(Math.abs(f),1/3)*(0>f?-1:1),t=e+o+.5;return 3*(1-t)*t*t+t*t*t},i.backin=function(n){if(1==n)return 1;var t=1.70158;return n*n*((t+1)*n-t)},i.backout=function(n){if(0==n)return 0;n-=1;var t=1.70158;return n*n*((t+1)*n+t)+1},i.elastic=function(n){return n==!!n?n:Math.pow(2,-10*n)*Math.sin((n-.075)*2*Math.PI/.3)+1},i.bounce=function(n){var i,r=7.5625,t=2.75;return 1/t>n?i=r*n*n:2/t>n?(n-=1.5/t,i=r*n*n+.75):2.5/t>n?(n-=2.25/t,i=r*n*n+.9375):(n-=2.625/t,i=r*n*n+.984375),i},n.mina=i,i}("undefined"==typeof t?function(){}:t),r=function(){function r(n,t){if(n){if(n.tagName)return o(n);if(n instanceof v)return n;if(null==t)return n=e.doc.querySelector(n),o(n)}return n=null==n?"100%":n,t=null==t?"100%":t,new d(n,t)}function u(n,t){var i,r;if(t){if("string"==typeof n&&(n=u(n)),"string"==typeof t)return"xlink:"==t.substring(0,6)?n.getAttributeNS(yi,t.substring(6)):"xml:"==t.substring(0,4)?n.getAttributeNS(ft,t.substring(4)):n.getAttribute(t);for(i in t)t[l](i)&&(r=c(t[i]),r?"xlink:"==i.substring(0,6)?n.setAttributeNS(yi,i.substring(6),r):"xml:"==i.substring(0,4)?n.setAttributeNS(ft,i.substring(4),r):n.setAttribute(i,r):n.removeAttribute(i))}else n=e.doc.createElementNS(ft,n);return n}function f(n,t){return t=c.prototype.toLowerCase.call(t),"finite"==t?isFinite(n):"array"==t&&(n instanceof Array||Array.isArray&&Array.isArray(n))?!0:"null"==t&&null===n||t==typeof n&&null!==n||"object"==t&&n===Object(n)||li.call(n).slice(8,-1).toLowerCase()==t}function kt(n){var i,t;if("function"==typeof n||Object(n)!==n)return n;i=new n.constructor;for(t in n)n[l](t)&&(i[t]=kt(n[t]));return i}function tr(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return n.push(n.splice(i,1)[0])}function tt(n,t,i){function r(){var o=Array.prototype.slice.call(arguments,0),u=o.join("␀"),f=r.cache=r.cache||{},e=r.count=r.count||[];return f[l](u)?(tr(e,u),i?i(f[u]):f[u]):(e.length>=1e3&&delete f[e.shift()],e.push(u),f[u]=n.apply(t,o),i?i(f[u]):f[u])}return r}function st(n,t,i,r,u,f){if(null==u){var e=n-i,o=t-r;return e||o?(180+180*s.atan2(-o,-e)/vt+360)%360:0}return st(n,t,u,f)-st(i,r,u,f)}function ot(n){return n%360*vt/180}function ht(n){return 180*n/vt%360}function b(n,t,i,r,u,f){return null==t&&"[object SVGMatrix]"==li.call(n)?(this.a=n.a,this.b=n.b,this.c=n.c,this.d=n.d,this.e=n.e,this.f=n.f,void 0):(null!=n?(this.a=+n,this.b=+t,this.c=+i,this.d=+r,this.e=+u,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0),void 0)}function ct(n){var t=[];return n=n.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(n,i,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==i&&1==r.length&&r.push(0,0),"scale"==i&&(2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==i?t.push(["m",1,0,s.tan(ot(r[0])),1,0,0]):"skewY"==i?t.push(["m",1,s.tan(ot(r[0])),0,1,0,0]):t.push([i.charAt(0)].concat(r)),n}),t}function dt(n,t){var v=ki(n),r=new b,a,y;if(v)for(a=0,y=v.length;y>a;a++){var p,w,o,s,u,i=v[a],f=i.length,h=c(i[0]).toLowerCase(),l=i[0]!=h,e=l?r.invert():0;"t"==h&&2==f?r.translate(i[1],0):"t"==h&&3==f?l?(p=e.x(0,0),w=e.y(0,0),o=e.x(i[1],i[2]),s=e.y(i[1],i[2]),r.translate(o-p,s-w)):r.translate(i[1],i[2]):"r"==h?2==f?(u=u||t,r.rotate(i[1],u.x+u.width/2,u.y+u.height/2)):4==f&&(l?(o=e.x(i[2],i[3]),s=e.y(i[2],i[3]),r.rotate(i[1],o,s)):r.rotate(i[1],i[2],i[3])):"s"==h?2==f||3==f?(u=u||t,r.scale(i[1],i[f-1],u.x+u.width/2,u.y+u.height/2)):4==f?l?(o=e.x(i[2],i[3]),s=e.y(i[2],i[3]),r.scale(i[1],i[1],o,s)):r.scale(i[1],i[1],i[2],i[3]):5==f&&(l?(o=e.x(i[3],i[4]),s=e.y(i[3],i[4]),r.scale(i[1],i[2],o,s)):r.scale(i[1],i[2],i[3],i[4])):"m"==h&&7==f&&r.add(i[1],i[2],i[3],i[4],i[5],i[6])}return r}function gt(n,t){var u,i;if(null==t){if(u=!0,t="linearGradient"==n.type||"radialGradient"==n.type?n.node.getAttribute("gradientTransform"):"pattern"==n.type?n.node.getAttribute("patternTransform"):n.node.getAttribute("transform"),!t)return new b;t=ct(t)}else t=r._.rgTransform.test(t)?c(t).replace(/\.{3}|\u2026/g,n._.transform||w):ct(t),f(t,"array")&&(t=r.path?r.path.toString.call(t):c(t)),n._.transform=t;return i=dt(t,n.getBBox(1)),u?i:(n.matrix=i,void 0)}function p(n){var t=r._.someDefs;if(t&&di(t.ownerDocument.documentElement,t))return t;var u=n.node.ownerSVGElement&&o(n.node.ownerSVGElement)||n.node.parentNode&&o(n.node.parentNode)||r.select("svg")||r(0,0),f=u.select("defs"),i=null==f?!1:f.node;return i||(i=h("defs",u.node).node),r._.someDefs=i,i}function ni(n,t,i){function f(n){return null==n?w:n==+n?n:(u(o,{width:n}),o.getBBox().width)}function e(n){return null==n?w:n==+n?n:(u(o,{height:n}),o.getBBox().height)}function r(r,u){null==t?s[r]=u(n.attr(r)):r==t&&(s=u(null==i?n.attr(r):i))}var h=p(n),s={},o=h.querySelector(".svg---mgr");switch(o||(o=u("rect"),u(o,{width:10,height:10,"class":"svg---mgr"}),h.appendChild(o)),n.type){case"rect":r("rx",f);r("ry",e);case"image":r("width",f);r("height",e);case"text":r("x",f);r("y",e);break;case"circle":r("cx",f);r("cy",e);r("r",f);break;case"ellipse":r("cx",f);r("cy",e);r("rx",f);r("ry",e);break;case"line":r("x1",f);r("x2",f);r("y1",e);r("y2",e);break;case"marker":r("refX",f);r("markerWidth",f);r("refY",e);r("markerHeight",e);break;case"radialGradient":r("fx",f);r("fy",e);break;case"tspan":r("dx",f);r("dy",e);break;default:r(t,f)}return s}function ti(n){var r;f(n,"array")||(n=Array.prototype.slice.call(arguments,0));for(var t=0,u=0,i=this.node;this[t];)delete this[t++];for(t=0;t<n.length;t++)"set"==n[t].type?n[t].forEach(function(n){i.appendChild(n.node)}):i.appendChild(n[t].node);for(r=i.childNodes,t=0;t<r.length;t++)this[u++]=o(r[t]);return this}function v(n){var i,r,t;if(n.snap in et)return et[n.snap];r=this.id=pt();try{i=n.ownerSVGElement}catch(u){}if(this.node=n,i&&(this.paper=new d(i)),this.type=n.tagName,this.anims={},this._={transform:[]},n.snap=r,et[r]=this,"g"==this.type){this.add=ti;for(t in d.prototype)d.prototype[l](t)&&(this[t]=d.prototype[t])}}function ii(n){for(var t,i=0,r=n.length;r>i;i++)if(t=t||n[i])return t}function k(n){this.node=n}function h(n,t){var r=u(n),i;return t.appendChild(r),i=o(r),i.type=n,i}function d(n,t){var i,r,f,s=d.prototype,o;if(n&&"svg"==n.tagName){if(n.snap in et)return et[n.snap];i=new v(n);r=n.getElementsByTagName("desc")[0];f=n.getElementsByTagName("defs")[0];r||(r=u("desc"),r.appendChild(e.doc.createTextNode("Created with Snap")),i.node.appendChild(r));f||(f=u("defs"),i.node.appendChild(f));i.defs=f;for(o in s)s[l](o)&&(i[o]=s[o]);i.paper=i.root=i}else i=h("svg",e.doc.body),u(i.node,{height:t,version:1.1,width:n,xmlns:ft});return i}function o(n){return n?n instanceof v||n instanceof k?n:"svg"==n.tagName?new d(n):new v(n):n}function ri(){return this.selectAll("stop")}function ui(n,t){var f=u("stop"),i={offset:+t+"%"};return n=r.color(n),i["stop-color"]=n.hex,n.opacity<1&&(i["stop-opacity"]=n.opacity),u(f,i),this.node.appendChild(f),this}function fi(){if("linearGradient"==this.type){var t=u(this.node,"x1")||0,f=u(this.node,"x2")||1,i=u(this.node,"y1")||0,e=u(this.node,"y2")||0;return r._.box(t,i,s.abs(f-t),s.abs(e-i))}var o=this.node.cx||.5,h=this.node.cy||.5,n=this.node.r||0;return r._.box(o-n,h-n,2*n,2*n)}function ei(n,i){function a(n,t){for(var r=(t-c)/(n-h),i=h;n>i;i++)e[i].offset=+(+c+r*(i-h)).toFixed(2);h=n;c=t}var s,f=ii(t("snap.util.grad.parse",null,i)),r,l;if(!f)return null;f.params.unshift(n);s="l"==f.type.toLowerCase()?oi.apply(0,f.params):si.apply(0,f.params);f.type!=f.type.toLowerCase()&&u(s.node,{gradientUnits:"userSpaceOnUse"});var e=f.stops,o=e.length,c=0,h=0;for(o--,r=0;o>r;r++)"offset"in e[r]&&a(r,e[r].offset);for(e[o].offset=e[o].offset||100,a(o,e[o].offset),r=0;o>=r;r++)l=e[r],s.addStop(l.color,l.offset);return s}function oi(n,t,i,r,f){var e=h("linearGradient",n);return e.stops=ri,e.addStop=ui,e.getBBox=fi,null!=t&&u(e.node,{x1:t,y1:i,x2:r,y2:f}),e}function si(n,t,i,r,f,e){var o=h("radialGradient",n);return o.stops=ri,o.addStop=ui,o.getBBox=fi,null!=t&&u(o.node,{cx:t,cy:i,r:r}),null!=f&&null!=e&&u(o.node,{fx:f,fy:e}),o}function hi(n){return function(i){var f,e,s;(t.stop(),i instanceof k&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,p(this).appendChild(i),i=o(i)),i instanceof v)?"radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type?(i.node.id||u(i.node,{id:i.id}),f=ut(i.node.id)):f=i.attr(n):(f=r.color(i),f.error)?(e=ei(p(this),i),e?(e.node.id||u(e.node,{id:e.id}),f=ut(e.node.id)):f=i):f=c(f);s={};s[n]=f;u(this.node,s);this.node.style[n]=w}}function ci(n){for(var t,i=[],u=n.childNodes,r=0,f=u.length;f>r;r++)t=u[r],3==t.nodeType&&i.push(t.nodeValue),"tspan"==t.tagName&&(1==t.childNodes.length&&3==t.firstChild.nodeType?i.push(t.firstChild.nodeValue):i.push(ci(t)));return i}var e,pi,ki,di,gi,bt,nr;r.version="0.2.0";r.toString=function(){return"Snap v"+this.version};r._={};e={win:n,doc:n.document};r._.glob=e;var l="hasOwnProperty",c=String,y=parseFloat,it=parseInt,s=Math,lt=s.max,rt=s.min,at=s.abs,vt=(s.pow,s.PI),w=(s.round,""),ir=" ",li=Object.prototype.toString,rr=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,ur=/^url\(#?([^)]+)\)$/,a="\t\n\x0b\f\r   ᠎             　\u2028\u2029",ai=new RegExp("[,"+a+"]+"),yt=(new RegExp("["+a+"]","g"),new RegExp("["+a+"]*,["+a+"]*")),fr={hs:1,rg:1},er=new RegExp("([a-z])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),or=new RegExp("([rstm])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),vi=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+a+"]*,?["+a+"]*","ig"),sr=0,hr="S"+(+new Date).toString(36),pt=function(){return hr+(sr++).toString(36)},yi="http://www.w3.org/1999/xlink",ft="http://www.w3.org/2000/svg",et={},ut=r.url=function(n){return"url('#"+n+"')"};r._.$=u;r._.id=pt;r.format=function(){var n=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(n,i,r){var u=r;return i.replace(t,function(n,t,i,r,f){t=t||r;u&&(t in u&&(u=u[t]),"function"==typeof u&&f&&(u=u()))}),u=(null==u||u==r?n:u)+""};return function(t,r){return c(t).replace(n,function(n,t){return i(n,t,r)})}}();pi=function(){function n(){this.parentNode.removeChild(this)}return function(t,i){var r=e.doc.createElement("img"),u=e.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em";r.onload=function(){i.call(r);r.onload=r.onerror=null;u.removeChild(r)};r.onerror=n;u.appendChild(r);r.src=t}}();r._.clone=kt;r._.cacher=tt;r.rad=ot;r.deg=ht;r.angle=st;r.is=f;r.snapTo=function(n,t,i){var u,r;if(i=f(i,"finite")?i:10,f(n,"array")){for(u=n.length;u--;)if(at(n[u]-t)<=i)return n[u]}else{if(n=+n,r=t%n,i>r)return t-r;if(r>n-i)return t-r+n}return t},function(n){function t(n){return n[0]*n[0]+n[1]*n[1]}function i(n){var i=s.sqrt(t(n));n[0]&&(n[0]/=i);n[1]&&(n[1]/=i)}n.add=function(n,t,i,r,u,f){var o,s,h,c,e=[[],[],[]],a=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],l=[[n,i,u],[t,r,f],[0,0,1]];for(n&&n instanceof b&&(l=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),o=0;3>o;o++)for(s=0;3>s;s++){for(c=0,h=0;3>h;h++)c+=a[o][h]*l[h][s];e[o][s]=c}return this.a=e[0][0],this.b=e[1][0],this.c=e[0][1],this.d=e[1][1],this.e=e[0][2],this.f=e[1][2],this};n.invert=function(){var n=this,t=n.a*n.d-n.b*n.c;return new b(n.d/t,-n.b/t,-n.c/t,n.a/t,(n.c*n.f-n.d*n.e)/t,(n.b*n.e-n.a*n.f)/t)};n.clone=function(){return new b(this.a,this.b,this.c,this.d,this.e,this.f)};n.translate=function(n,t){return this.add(1,0,0,1,n,t)};n.scale=function(n,t,i,r){return null==t&&(t=n),(i||r)&&this.add(1,0,0,1,i,r),this.add(n,0,0,t,0,0),(i||r)&&this.add(1,0,0,1,-i,-r),this};n.rotate=function(n,t,i){n=ot(n);t=t||0;i=i||0;var r=+s.cos(n).toFixed(9),u=+s.sin(n).toFixed(9);return this.add(r,u,-u,r,t,i),this.add(1,0,0,1,-t,-i)};n.x=function(n,t){return n*this.a+t*this.c+this.e};n.y=function(n,t){return n*this.b+t*this.d+this.f};n.get=function(n){return+this[c.fromCharCode(97+n)].toFixed(4)};n.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};n.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};n.split=function(){var n={},r,u,f;return n.dx=this.e,n.dy=this.f,r=[[this.a,this.c],[this.b,this.d]],n.scalex=s.sqrt(t(r[0])),i(r[0]),n.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*n.shear,r[1][1]-r[0][1]*n.shear],n.scaley=s.sqrt(t(r[1])),i(r[1]),n.shear/=n.scaley,u=-r[0][1],f=r[1][1],0>f?(n.rotate=ht(s.acos(f)),0>u&&(n.rotate=360-n.rotate)):n.rotate=ht(s.asin(u)),n.isSimple=!(+n.shear.toFixed(9)||n.scalex.toFixed(9)!=n.scaley.toFixed(9)&&n.rotate),n.isSuperSimple=!+n.shear.toFixed(9)&&n.scalex.toFixed(9)==n.scaley.toFixed(9)&&!n.rotate,n.noRotation=!+n.shear.toFixed(9)&&!n.rotate,n};n.toTransformString=function(n){var t=n||this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:w)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:w)+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:w)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(b.prototype);r.Matrix=b;r.getRGB=tt(function(n){if(!n||(n=c(n)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:nt};if("none"==n)return{r:-1,g:-1,b:-1,hex:"none",toString:nt};if(!(fr[l](n.toLowerCase().substring(0,2))||"#"==n.charAt())&&(n=wt(n)),!n)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:nt};var u,e,o,h,a,t,i=n.match(rr);return i?(i[2]&&(o=it(i[2].substring(5),16),e=it(i[2].substring(3,5),16),u=it(i[2].substring(1,3),16)),i[3]&&(o=it((a=i[3].charAt(3))+a,16),e=it((a=i[3].charAt(2))+a,16),u=it((a=i[3].charAt(1))+a,16)),i[4]&&(t=i[4].split(yt),u=y(t[0]),"%"==t[0].slice(-1)&&(u*=2.55),e=y(t[1]),"%"==t[1].slice(-1)&&(e*=2.55),o=y(t[2]),"%"==t[2].slice(-1)&&(o*=2.55),"rgba"==i[1].toLowerCase().slice(0,4)&&(h=y(t[3])),t[3]&&"%"==t[3].slice(-1)&&(h/=100)),i[5]?(t=i[5].split(yt),u=y(t[0]),"%"==t[0].slice(-1)&&(u/=100),e=y(t[1]),"%"==t[1].slice(-1)&&(e/=100),o=y(t[2]),"%"==t[2].slice(-1)&&(o/=100),("deg"==t[0].slice(-3)||"°"==t[0].slice(-1))&&(u/=360),"hsba"==i[1].toLowerCase().slice(0,4)&&(h=y(t[3])),t[3]&&"%"==t[3].slice(-1)&&(h/=100),r.hsb2rgb(u,e,o,h)):i[6]?(t=i[6].split(yt),u=y(t[0]),"%"==t[0].slice(-1)&&(u/=100),e=y(t[1]),"%"==t[1].slice(-1)&&(e/=100),o=y(t[2]),"%"==t[2].slice(-1)&&(o/=100),("deg"==t[0].slice(-3)||"°"==t[0].slice(-1))&&(u/=360),"hsla"==i[1].toLowerCase().slice(0,4)&&(h=y(t[3])),t[3]&&"%"==t[3].slice(-1)&&(h/=100),r.hsl2rgb(u,e,o,h)):(u=rt(s.round(u),255),e=rt(s.round(e),255),o=rt(s.round(o),255),h=rt(lt(h,0),1),i={r:u,g:e,b:o,toString:nt},i.hex="#"+(16777216|o|e<<8|u<<16).toString(16).slice(1),i.opacity=f(h,"finite")?h:1,i)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:nt}},r);r.hsb=tt(function(n,t,i){return r.hsb2rgb(n,t,i).hex});r.hsl=tt(function(n,t,i){return r.hsl2rgb(n,t,i).hex});r.rgb=tt(function(n,t,i,r){if(f(r,"finite")){var u=s.round;return"rgba("+[u(n),u(t),u(i),+r.toFixed(2)]+")"}return"#"+(16777216|i|t<<8|n<<16).toString(16).slice(1)});var wt=function(n){var t=e.doc.getElementsByTagName("head")[0],i="rgb(255, 0, 0)";return wt=tt(function(n){if("red"==n.toLowerCase())return i;t.style.color=i;t.style.color=n;var r=e.doc.defaultView.getComputedStyle(t,w).getPropertyValue("color");return r==i?null:r}),wt(n)},cr=function(){return"hsb("+[this.h,this.s,this.b]+")"},lr=function(){return"hsl("+[this.h,this.s,this.l]+")"},nt=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},wi=function(n,t,i){if(null==t&&f(n,"object")&&"r"in n&&"g"in n&&"b"in n&&(i=n.b,t=n.g,n=n.r),null==t&&f(n,string)){var u=r.getRGB(n);n=u.r;t=u.g;i=u.b}return(n>1||t>1||i>1)&&(n/=255,t/=255,i/=255),[n,t,i]},bi=function(n,t,i,u){n=s.round(255*n);t=s.round(255*t);i=s.round(255*i);var e={r:n,g:t,b:i,opacity:f(u,"finite")?u:1,hex:r.rgb(n,t,i),toString:nt};return f(u,"finite")&&(e.opacity=u),e};return r.color=function(n){var t;return f(n,"object")&&"h"in n&&"s"in n&&"b"in n?(t=r.hsb2rgb(n),n.r=t.r,n.g=t.g,n.b=t.b,n.opacity=1,n.hex=t.hex):f(n,"object")&&"h"in n&&"s"in n&&"l"in n?(t=r.hsl2rgb(n),n.r=t.r,n.g=t.g,n.b=t.b,n.opacity=1,n.hex=t.hex):(f(n,"string")&&(n=r.getRGB(n)),f(n,"object")&&"r"in n&&"g"in n&&"b"in n&&!("error"in n)?(t=r.rgb2hsl(n),n.h=t.h,n.s=t.s,n.l=t.l,t=r.rgb2hsb(n),n.v=t.b):(n={hex:"none"},n.r=n.g=n.b=n.h=n.s=n.v=n.l=-1,n.error=1)),n.toString=nt,n},r.hsb2rgb=function(n,t,i,r){f(n,"object")&&"h"in n&&"s"in n&&"b"in n&&(i=n.b,t=n.s,n=n.h,r=n.o);n*=360;var o,s,h,e,u;return n=n%360/60,u=i*t,e=u*(1-at(n%2-1)),o=s=h=i-u,n=~~n,o+=[u,e,0,0,e,u][n],s+=[e,u,u,e,0,0][n],h+=[0,0,e,u,u,e][n],bi(o,s,h,r)},r.hsl2rgb=function(n,t,i,r){f(n,"object")&&"h"in n&&"s"in n&&"l"in n&&(i=n.l,t=n.s,n=n.h);(n>1||t>1||i>1)&&(n/=360,t/=100,i/=100);n*=360;var o,s,h,e,u;return n=n%360/60,u=2*t*(.5>i?i:1-i),e=u*(1-at(n%2-1)),o=s=h=i-u/2,n=~~n,o+=[u,e,0,0,e,u][n],s+=[e,u,u,e,0,0][n],h+=[0,0,e,u,u,e][n],bi(o,s,h,r)},r.rgb2hsb=function(n,t,i){i=wi(n,t,i);n=i[0];t=i[1];i=i[2];var f,e,u,r;return u=lt(n,t,i),r=u-rt(n,t,i),f=0==r?null:u==n?(t-i)/r:u==t?(i-n)/r+2:(n-t)/r+4,f=(f+360)%6/6,e=0==r?0:r/u,{h:f,s:e,b:u,toString:cr}},r.rgb2hsl=function(n,t,i){i=wi(n,t,i);n=i[0];t=i[1];i=i[2];var e,s,u,f,o,r;return f=lt(n,t,i),o=rt(n,t,i),r=f-o,e=0==r?null:f==n?(t-i)/r:f==t?(i-n)/r+2:(n-t)/r+4,e=(e+360)%6/6,u=(f+o)/2,s=0==r?0:.5>u?r/(2*u):r/(2-2*u),{h:e,s:s,l:u,toString:lr}},r.parsePathString=function(n){var i,u,t;return n?(i=r.path(n),i.arr)?r.path.clone(i.arr):(u={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[],f(n,"array")&&f(n[0],"array")&&(t=r.path.clone(n)),t.length||c(n).replace(er,function(n,i,r){var f=[],e=i.toLowerCase();if(r.replace(vi,function(n,t){t&&f.push(+t)}),"m"==e&&f.length>2&&(t.push([i].concat(f.splice(0,2))),e="l",i="m"==i?"l":"L"),"o"==e&&1==f.length&&t.push([i,f[0]]),"r"==e)t.push([i].concat(f));else for(;f.length>=u[e]&&(t.push([i].concat(f.splice(0,u[e]))),u[e]););}),t.toString=r.path.toString,i.arr=r.path.clone(t),t):null},ki=r.parseTransformString=function(n){if(!n)return null;var t=[];return f(n,"array")&&f(n[0],"array")&&(t=r.path.clone(n)),t.length||c(n).replace(or,function(n,i,r){var u=[];i.toLowerCase();r.replace(vi,function(n,t){t&&u.push(+t)});t.push([i].concat(u))}),t.toString=r.path.toString,t},r._.svgTransform2string=ct,r._.rgTransform=new RegExp("^[a-z]["+a+"]*-?\\.?\\d","i"),r._.transform2matrix=dt,r._unit2px=ni,di=e.doc.contains||e.doc.compareDocumentPosition?function(n,t){var r=9==n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n==i||!(!i||1!=i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t;)if(t=t.parentNode,t==n)return!0;return!1},r._.getSomeDefs=p,r.select=function(n){return o(e.doc.querySelector(n))},r.selectAll=function(n){for(var i=e.doc.querySelectorAll(n),u=(r.set||Array)(),t=0;t<i.length;t++)u.push(o(i[t]));return u},function(n){function y(n){function r(n,t){var i=u(n.node,t);i=i&&i.match(y);i=i&&i[2];i&&"#"==i.charAt()&&(i=i.substring(1),i&&(f[i]=(f[i]||[]).concat(function(i){var r={};r[t]=ut(i);u(n.node,r)})))}function v(n){var t=u(n.node,"xlink:href");t&&"#"==t.charAt()&&(t=t.substring(1),t&&(f[t]=(f[t]||[]).concat(function(t){n.attr("xlink:href","#"+t)})))}for(var c,o,s,a,t,l=n.selectAll("*"),y=/^\s*url\(("|'|)(.*)\1\)\s*$/,e=[],f={},i=0,h=l.length;h>i;i++)t=l[i],r(t,"fill"),r(t,"stroke"),r(t,"filter"),r(t,"mask"),r(t,"clip-path"),v(t),c=u(t.node,"id"),c&&(u(t.node,{id:t.id}),e.push({old:c,id:t.id}));for(i=0,h=e.length;h>i;i++)if(o=f[e[i].old],o)for(s=0,a=o.length;a>s;s++)o[s](e[i].id)}function w(n,t,i){return function(r){var u=r.slice(n,t);return 1==u.length&&(u=u[0]),i?i(u):u}}function a(n){return function(){var i=n?"<"+this.type:"",f=this.node.attributes,r=this.node.childNodes,t,u;if(n)for(t=0,u=f.length;u>t;t++)i+=" "+f[t].name+'="'+f[t].value.replace(/"/g,'\\"')+'"';if(r.length){for(n&&(i+=">"),t=0,u=r.length;u>t;t++)3==r[t].nodeType?i+=r[t].nodeValue:1==r[t].nodeType&&(i+=o(r[t]).toString());n&&(i+="<\/"+this.type+">")}else n&&(i+="/>");return i}}var v,s,e;n.attr=function(n,i){var r=this,e,u;if(r.node,!n)return r;if(f(n,"string")){if(!(arguments.length>1))return ii(t("snap.util.getattr."+n,r));e={};e[n]=i;n=e}for(u in n)n[l](u)&&t("snap.util.attr."+u,r,n[u]);return r};n.getBBox=function(n){var t=this,i;return("use"==t.type&&(t=t.original),t.removed)?{}:(i=t._,n?(i.bboxwt=r.path.get[t.type]?r.path.getBBox(t.realPath=r.path.get[t.type](t)):r._.box(t.node.getBBox()),r._.box(i.bboxwt)):(t.realPath=(r.path.get[t.type]||r.path.get.deflt)(t),i.bbox=r.path.getBBox(r.path.map(t.realPath,t.matrix)),r._.box(i.bbox)))};v=function(){return this.string};n.transform=function(n){var f=this._;if(null==n){var i=new b(this.node.getCTM()),t=gt(this),r=t.toTransformString(),e=c(t)==c(this.matrix)?f.transform:r;return{string:e,globalMatrix:i,localMatrix:t,diffMatrix:i.clone().add(t.invert()),global:i.toTransformString(),local:r,toString:v}}return n instanceof b&&(n=n.toTransformString()),gt(this,n),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?u(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?u(this.node,{patternTransform:this.matrix}):u(this.node,{transform:this.matrix})),this};n.parent=function(){return o(this.node.parentNode)};n.append=n.add=function(n){if(n){if("set"==n.type){var t=this;return n.forEach(function(n){t.add(n)}),this}n=o(n);this.node.appendChild(n.node);n.paper=this.paper}return this};n.appendTo=function(n){return n&&(n=o(n),n.append(this)),this};n.prepend=function(n){if(n){n=o(n);var t=n.parent();this.node.insertBefore(n.node,this.node.firstChild);this.add&&this.add();n.paper=this.paper;this.parent()&&this.parent().add();t&&t.add()}return this};n.prependTo=function(n){return n=o(n),n.prepend(this),this};n.before=function(n){var t,i;return"set"==n.type?(t=this,n.forEach(function(n){var i=n.parent();t.node.parentNode.insertBefore(n.node,t.node);i&&i.add()}),this.parent().add(),this):(n=o(n),i=n.parent(),this.node.parentNode.insertBefore(n.node,this.node),this.parent()&&this.parent().add(),i&&i.add(),n.paper=this.paper,this)};n.after=function(n){n=o(n);var t=n.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(n.node,this.node.nextSibling):this.node.parentNode.appendChild(n.node),this.parent()&&this.parent().add(),t&&t.add(),n.paper=this.paper,this};n.insertBefore=function(n){n=o(n);var t=this.parent();return n.node.parentNode.insertBefore(this.node,n.node),this.paper=n.paper,t&&t.add(),n.parent()&&n.parent().add(),this};n.insertAfter=function(n){n=o(n);var t=this.parent();return n.node.parentNode.insertBefore(this.node,n.node.nextSibling),this.paper=n.paper,t&&t.add(),n.parent()&&n.parent().add(),this};n.remove=function(){var n=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,n&&n.add(),this};n.select=function(n){return o(this.node.querySelector(n))};n.selectAll=function(n){for(var i=this.node.querySelectorAll(n),u=(r.set||Array)(),t=0;t<i.length;t++)u.push(o(i[t]));return u};n.asPX=function(n,t){return null==t&&(t=this.attr(n)),+ni(this,n,t)};n.use=function(){var n,t=this.node.id;return t||(t=this.id,u(this.node,{id:t})),n="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?h(this.type,this.node.parentNode):h("use",this.node.parentNode),u(n.node,{"xlink:href":"#"+t}),n.original=this,n};n.clone=function(){var n=o(this.node.cloneNode(!0));return u(n.node,"id")&&u(n.node,{id:n.id}),y(n),n.insertAfter(this),n};n.toDefs=function(){var n=p(this);return n.appendChild(this.node),this};n.pattern=function(n,t,i,r){var e=h("pattern",p(this));return null==n&&(n=this.getBBox()),f(n,"object")&&"x"in n&&(t=n.y,i=n.width,r=n.height,n=n.x),u(e.node,{x:n,y:t,width:i,height:r,patternUnits:"userSpaceOnUse",id:e.id,viewBox:[n,t,i,r].join(" ")}),e.node.appendChild(this.node),e};n.marker=function(n,t,i,r,e,o){var s=h("marker",p(this));return null==n&&(n=this.getBBox()),f(n,"object")&&"x"in n&&(t=n.y,i=n.width,r=n.height,e=n.refX||n.cx,o=n.refY||n.cy,n=n.x),u(s.node,{viewBox:[n,t,i,r].join(ir),markerWidth:i,markerHeight:r,orient:"auto",refX:e||0,refY:o||0,id:s.id}),s.node.appendChild(this.node),s};s=function(n,t,r,u){"function"!=typeof r||r.length||(u=r,r=i.linear);this.attr=n;this.dur=t;r&&(this.easing=r);u&&(this.callback=u)};r.animation=function(n,t,i,r){return new s(n,t,i,r)};n.inAnim=function(){var n=this,i=[],t;for(t in n.anims)n.anims[l](t)&&!function(n){i.push({anim:new s(n._attrs,n.dur,n.easing,n._callback),curStatus:n.status(),status:function(t){return n.status(t)},stop:function(){n.stop()}})}(n.anims[t]);return i};r.animate=function(n,r,u,f,e,o){"function"!=typeof e||e.length||(o=e,e=i.linear);var s=i.time(),h=i(n,r,s,s+f,i.time,u,e);return o&&t.once("mina.finish."+h.id,o),h};n.stop=function(){for(var t=this.inAnim(),n=0,i=t.length;i>n;n++)t[n].stop();return this};n.animate=function(n,r,u,e){var a,tt,g,h;"function"!=typeof u||u.length||(e=u,u=i.linear);n instanceof s&&(e=n.callback,u=n.easing,r=u.dur,n=n.attr);var v,k,nt,p,y=[],d=[],b={},o=this;for(a in n)n[l](a)&&(o.equal?(p=o.equal(a,c(n[a])),v=p.from,k=p.to,nt=p.f):(v=+o.attr(a),k=+n[a]),tt=f(v,"array")?v.length:1,b[a]=w(y.length,y.length+tt,nt),y=y.concat(v),d=d.concat(k));return g=i.time(),h=i(y,d,g,g+r,i.time,function(n){var i={},t;for(t in b)b[l](t)&&(i[t]=b[t](n));o.attr(i)},u),o.anims[h.id]=h,h._attrs=n,h._callback=e,t.once("mina.finish."+h.id,function(){delete o.anims[h.id];e&&e.call(o)}),t.once("mina.stop."+h.id,function(){delete o.anims[h.id]}),o};e={};n.data=function(n,i){var u=e[this.id]=e[this.id]||{},f;if(0==arguments.length)return t("snap.data.get."+this.id,this,u,null),u;if(1==arguments.length){if(r.is(n,"object")){for(f in n)n[l](f)&&this.data(f,n[f]);return this}return t("snap.data.get."+this.id,this,u[n],n),u[n]}return u[n]=i,t("snap.data.set."+this.id,this,i,n),this};n.removeData=function(n){return null==n?e[this.id]={}:e[this.id]&&delete e[this.id][n],this};n.outerSVG=n.toString=a(1);n.innerSVG=a()}(v.prototype),r.parse=function(n){var t=e.doc.createDocumentFragment(),r=!0,i=e.doc.createElement("div");if(n=c(n),n.match(/^\s*<\s*svg(?:\s|>)/)||(n="<svg>"+n+"<\/svg>",r=!1),i.innerHTML=n,n=i.getElementsByTagName("svg")[0])if(r)t=n;else for(;n.firstChild;)t.appendChild(n.firstChild);return i.innerHTML=w,new k(t)},k.prototype.select=v.prototype.select,k.prototype.selectAll=v.prototype.selectAll,r.fragment=function(){for(var n,u=Array.prototype.slice.call(arguments,0),t=e.doc.createDocumentFragment(),i=0,f=u.length;f>i;i++)n=u[i],n.node&&n.node.nodeType&&t.appendChild(n.node),n.nodeType&&t.appendChild(n),"string"==typeof n&&t.appendChild(r.parse(n).node);return new k(t)},function(n){n.el=function(n,t){return h(n,this.node).attr(t)};n.rect=function(n,t,i,r,u,e){var o;return null==e&&(e=u),f(n,"object")&&"x"in n?o=n:null!=n&&(o={x:n,y:t,width:i,height:r},null!=u&&(o.rx=u,o.ry=e)),this.el("rect",o)};n.circle=function(n,t,i){var r;return f(n,"object")&&"cx"in n?r=n:null!=n&&(r={cx:n,cy:t,r:i}),this.el("circle",r)};n.image=function(n,t,i,r,e){var s=h("image",this.node),o;return f(n,"object")&&"src"in n?s.attr(n):null!=n&&(o={"xlink:href":n,preserveAspectRatio:"none"},null!=t&&null!=i&&(o.x=t,o.y=i),null!=r&&null!=e?(o.width=r,o.height=e):pi(n,function(){u(s.node,{width:this.offsetWidth,height:this.offsetHeight})}),u(s.node,o)),s};n.ellipse=function(n,t,i,r){var u=h("ellipse",this.node);return f(n,"object")&&"cx"in n?u.attr(n):null!=n&&u.attr({cx:n,cy:t,rx:i,ry:r}),u};n.path=function(n){var t=h("path",this.node);return f(n,"object")&&!f(n,"array")?t.attr(n):n&&t.attr({d:n}),t};n.group=n.g=function(t){var i=h("g",this.node),r;i.add=ti;for(r in n)n[l](r)&&(i[r]=n[r]);return 1==arguments.length&&t&&!t.type?i.attr(t):arguments.length&&i.add(Array.prototype.slice.call(arguments,0)),i};n.text=function(n,t,i){var r=h("text",this.node);return f(n,"object")?r.attr(n):null!=n&&r.attr({x:n,y:t,text:i||""}),r};n.line=function(n,t,i,r){var u=h("line",this.node);return f(n,"object")?u.attr(n):null!=n&&u.attr({x1:n,x2:i,y1:t,y2:r}),u};n.polyline=function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments,0));var t=h("polyline",this.node);return f(n,"object")&&!f(n,"array")?t.attr(n):null!=n&&t.attr({points:n}),t};n.polygon=function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments,0));var t=h("polygon",this.node);return f(n,"object")&&!f(n,"array")?t.attr(n):null!=n&&t.attr({points:n}),t},function(){n.gradient=function(n){return ei(this.defs,n)};n.gradientLinear=function(n,t,i,r){return oi(this.defs,n,t,i,r)};n.gradientRadial=function(n,t,i,r,u){return si(this.defs,n,t,i,r,u)};n.toString=function(){var i,n=e.doc.createDocumentFragment(),t=e.doc.createElement("div"),r=this.node.cloneNode(!0);return n.appendChild(t),t.appendChild(r),u(r,{xmlns:ft}),i=t.innerHTML,n.removeChild(n.firstChild),i};n.clear=function(){for(var t,n=this.node.firstChild;n;)t=n.nextSibling,"defs"!=n.tagName&&n.parentNode.removeChild(n),n=t}}()}(d.prototype),r.ajax=function(n,i,r,u){var e=new XMLHttpRequest,o=pt(),h,s;if(e){if(f(i,"function"))u=r,r=i,i=null;else if(f(i,"object")){h=[];for(s in i)i.hasOwnProperty(s)&&h.push(encodeURIComponent(s)+"="+encodeURIComponent(i[s]));i=h.join("&")}return e.open(i?"POST":"GET",n,!0),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r&&(t.once("snap.ajax."+o+".0",r),t.once("snap.ajax."+o+".200",r),t.once("snap.ajax."+o+".304",r)),e.onreadystatechange=function(){4==e.readyState&&t("snap.ajax."+o+"."+e.status,u,e)},4==e.readyState?e:(e.send(i),e)}},r.load=function(n,t,i){r.ajax(n,function(n){var u=r.parse(n.responseText);i?t.call(i,u):t(u)})},t.on("snap.util.attr.mask",function(n){if(n instanceof v||n instanceof k){if(t.stop(),n instanceof k&&1==n.node.childNodes.length&&(n=n.node.firstChild,p(this).appendChild(n),n=o(n)),"mask"==n.type)var i=n;else i=h("mask",p(this)),i.node.appendChild(n.node),!i.node.id&&u(i.node,{id:i.id});u(this.node,{mask:ut(i.id)})}}),function(n){t.on("snap.util.attr.clip",n);t.on("snap.util.attr.clip-path",n);t.on("snap.util.attr.clipPath",n)}(function(n){if(n instanceof v||n instanceof k){if(t.stop(),"clipPath"==n.type)var i=n;else i=h("clipPath",p(this)),i.node.appendChild(n.node),!i.node.id&&u(i.node,{id:i.id});u(this.node,{"clip-path":ut(i.id)})}}),t.on("snap.util.attr.fill",hi("fill")),t.on("snap.util.attr.stroke",hi("stroke")),gi=/^([lr])(?:\(([^)]*)\))?(.*)$/i,t.on("snap.util.grad.parse",function(n){var i;if(n=c(n),i=n.match(gi),!i)return null;var u=i[1],t=i[2],r=i[3];return t=t.split(/\s*,\s*/).map(function(n){return+n==n?+n:n}),1==t.length&&0==t[0]&&(t=[]),r=r.split("-"),r=r.map(function(n){n=n.split(":");var t={color:n[0]};return n[1]&&(t.offset=n[1]),t}),{type:u,params:t,stops:r}}),t.on("snap.util.attr.d",function(n){t.stop();f(n,"array")&&f(n[0],"array")&&(n=r.path.toString.call(n));n=c(n);n.match(/[ruo]/i)&&(n=r.path.toAbsolute(n));u(this.node,{d:n})})(-1),t.on("snap.util.attr.#text",function(n){t.stop();n=c(n);for(var i=e.doc.createTextNode(n);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(i)})(-1),t.on("snap.util.attr.path",function(n){t.stop();this.attr({d:n})})(-1),t.on("snap.util.attr.viewBox",function(n){var i;i=f(n,"object")&&"x"in n?[n.x,n.y,n.width,n.height].join(" "):f(n,"array")?n.join(" "):n;u(this.node,{viewBox:i});t.stop()})(-1),t.on("snap.util.attr.transform",function(n){this.transform(n);t.stop()})(-1),t.on("snap.util.attr.r",function(n){"rect"==this.type&&(t.stop(),u(this.node,{rx:n,ry:n}))})(-1),t.on("snap.util.attr.textpath",function(n){var r,i,e,h,s;if(t.stop(),"text"==this.type){if(!n&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),delete this.textPath,void 0}if(f(n,"string")?(h=p(this),s=o(h.parentNode).path(n),h.appendChild(s.node),r=s.id,s.attr({id:r})):(n=o(n),n instanceof v&&(r=n.attr("id"),r||(r=n.id,n.attr({id:r})))),r)if(i=this.textPath,e=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=u("textPath",{"xlink:href":"#"+r});e.firstChild;)i.appendChild(e.firstChild);e.appendChild(i);this.textPath=o(i)}}})(-1),t.on("snap.util.attr.text",function(n){var i,r,o;if("text"==this.type){for(i=this.node,r=function(n){var t=u("tspan"),i;if(f(n,"array"))for(i=0;i<n.length;i++)t.appendChild(r(n[i]));else t.appendChild(e.doc.createTextNode(n));return t.normalize&&t.normalize(),t};i.firstChild;)i.removeChild(i.firstChild);for(o=r(n);o.firstChild;)i.appendChild(o.firstChild)}t.stop()})(-1),bt={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0},t.on("snap.util.attr",function(n){var i=t.nt(),r={},f,e;i=i.substring(i.lastIndexOf(".")+1);r[i]=n;f=i.replace(/-(\w)/gi,function(n,t){return t.toUpperCase()});e=i.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()});bt[l](e)?this.node.style[f]=null==n?w:n:u(this.node,r)}),t.on("snap.util.getattr.transform",function(){return t.stop(),this.transform()})(-1),t.on("snap.util.getattr.textpath",function(){return t.stop(),this.textPath})(-1),function(){function n(n){return function(){t.stop();var i=e.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==i?i:r(e.doc.getElementById(i.match(ur)[1]))}}function i(n){return function(i){var r,f;return(t.stop(),r="marker"+n.charAt(0).toUpperCase()+n.substring(1),""==i||!i)?(this.node.style[r]="none",void 0):"marker"==i.type?(f=i.node.id,f||u(i.node,{id:i.id}),this.node.style[r]=ut(f),void 0):void 0}}t.on("snap.util.getattr.marker-end",n("end"))(-1);t.on("snap.util.getattr.markerEnd",n("end"))(-1);t.on("snap.util.getattr.marker-start",n("start"))(-1);t.on("snap.util.getattr.markerStart",n("start"))(-1);t.on("snap.util.getattr.marker-mid",n("mid"))(-1);t.on("snap.util.getattr.markerMid",n("mid"))(-1);t.on("snap.util.attr.marker-end",i("end"))(-1);t.on("snap.util.attr.markerEnd",i("end"))(-1);t.on("snap.util.attr.marker-start",i("start"))(-1);t.on("snap.util.attr.markerStart",i("start"))(-1);t.on("snap.util.attr.marker-mid",i("mid"))(-1);t.on("snap.util.attr.markerMid",i("mid"))(-1)}(),t.on("snap.util.getattr.r",function(){if("rect"==this.type&&u(this.node,"rx")==u(this.node,"ry"))return(t.stop(),u(this.node,"rx"))})(-1),t.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){t.stop();var n=ci(this.node);return 1==n.length?n[0]:n}})(-1),t.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),t.on("snap.util.getattr.viewBox",function(){t.stop();var n=u(this.node,"viewBox").split(ai);return r._.box(+n[0],+n[1],+n[2],+n[3])})(-1),t.on("snap.util.getattr.points",function(){var n=u(this.node,"points");return t.stop(),n.split(ai)}),t.on("snap.util.getattr.path",function(){var n=u(this.node,"d");return t.stop(),n}),t.on("snap.util.getattr",function(){var n=t.nt(),i;return n=n.substring(n.lastIndexOf(".")+1),i=n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()}),bt[l](i)?e.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue(i):u(this.node,n)}),nr=function(n){var r=n.getBoundingClientRect(),u=n.ownerDocument,t=u.body,i=u.documentElement,f=i.clientTop||t.clientTop||0,e=i.clientLeft||t.clientLeft||0,o=r.top+(g.win.pageYOffset||i.scrollTop||t.scrollTop)-f,s=r.left+(g.win.pageXOffset||i.scrollLeft||t.scrollLeft)-e;return{y:o,x:s}},r.getElementByPoint=function(n,t){var s=this,i=(s.canvas,e.doc.elementFromPoint(n,t)),f,r,u;return e.win.opera&&"svg"==i.tagName&&(f=nr(i),r=i.createSVGRect(),r.x=n-f.x,r.y=t-f.y,r.width=r.height=1,u=i.getIntersectionList(r,null),u.length&&(i=u[u.length-1])),i?o(i):null},r.plugin=function(n){n(r,v,d,e)},e.win.Snap=r,r}();return r.plugin(function(n,t){function c(n){var t=c.ps=c.ps||{};return t[n]?t[n].sleep=100:t[n]={sleep:100},setTimeout(function(){for(var i in t)t[fi](i)&&i!=n&&(t[i].sleep--,!t[i].sleep&&delete t[i])}),t[n]}function a(n,t,r,u){return null==n&&(n=t=r=u=0),null==t&&(t=n.y,r=n.width,u=n.height,n=n.x),{x:n,y:t,width:r,w:r,height:u,h:u,x2:n+r,y2:t+u,cx:n+r/2,cy:t+u/2,r1:i.min(r,u)/2,r2:i.max(r,u)/2,r0:i.sqrt(r*r+u*u)/2,path:s(n,t,r,u),vb:[n,t,r,u].join(" ")}}function v(){return this.join(",").replace(ei,"$1")}function l(n){var t=ot(n);return t.toString=v,t}function tt(n,t,i,r,u,f,e,o,s){return null==s?y(n,t,i,r,u,f,e,o):b(n,t,i,r,u,f,e,o,kt(n,t,i,r,u,f,e,o,s))}function it(i,r){function u(n){return+(+n).toFixed(3)}return n._.cacher(function(n,f,e){n instanceof t&&(n=n.attr("d"));n=w(n);for(var h,c,o,v,s,l="",y={},a=0,p=0,k=n.length;k>p;p++){if(o=n[p],"M"==o[0])h=+o[1],c=+o[2];else{if(v=tt(h,c,o[1],o[2],o[3],o[4],o[5],o[6]),a+v>f){if(r&&!y.start){if(s=tt(h,c,o[1],o[2],o[3],o[4],o[5],o[6],f-a),l+=["C"+u(s.start.x),u(s.start.y),u(s.m.x),u(s.m.y),u(s.x),u(s.y)],e)return l;y.start=l;l=["M"+u(s.x),u(s.y)+"C"+u(s.n.x),u(s.n.y),u(s.end.x),u(s.end.y),u(o[5]),u(o[6])].join();a+=v;h=+o[5];c=+o[6];continue}if(!i&&!r)return tt(h,c,o[1],o[2],o[3],o[4],o[5],o[6],f-a)}a+=v;h=+o[5];c=+o[6]}l+=o.shift()+o}return y.end=l,s=i?a:r?y:b(h,c,o[0],o[1],o[2],o[3],o[4],o[5],1)},null,n._.clone)}function b(n,t,r,u,e,o,s,c,l){var a=1-l,y=h(a,3),p=h(a,2),v=l*l,w=v*l,nt=y*n+3*p*l*r+3*a*l*l*e+w*s,tt=y*t+3*p*l*u+3*a*l*l*o+w*c,b=n+2*l*(r-n)+v*(e-2*r+n),k=t+2*l*(u-t)+v*(o-2*u+t),d=r+2*l*(e-r)+v*(s-2*e+r),g=u+2*l*(o-u)+v*(c-2*o+u),it=a*n+l*r,rt=a*t+l*u,ut=a*e+l*s,ft=a*o+l*c,et=90-180*i.atan2(b-d,k-g)/f;return{x:nt,y:tt,m:{x:b,y:k},n:{x:d,y:g},start:{x:it,y:rt},end:{x:ut,y:ft},alpha:et}}function rt(t,i,r,u,f,e,o,s){n.is(t,"array")||(t=[t,i,r,u,f,e,o,s]);var h=yt.apply(null,t);return a(h.min.x,h.min.y,h.max.x-h.min.x,h.max.y-h.min.y)}function o(n,t,i){return t>=n.x&&t<=n.x+n.width&&i>=n.y&&i<=n.y+n.height}function ht(n,t){return n=a(n),t=a(t),o(t,n.x,n.y)||o(t,n.x2,n.y)||o(t,n.x,n.y2)||o(t,n.x2,n.y2)||o(n,t.x,t.y)||o(n,t.x2,t.y)||o(n,t.x,t.y2)||o(n,t.x2,t.y2)||(n.x<t.x2&&n.x>t.x||t.x<n.x2&&t.x>n.x)&&(n.y<t.y2&&n.y>t.y||t.y<n.y2&&t.y>n.y)}function ct(n,t,i,r,u){var f=-3*t+9*i-9*r+3*u,e=n*f+6*t-12*i+6*r;return n*e-3*t+3*i}function y(n,t,r,u,f,e,o,s,h){null==h&&(h=1);h=h>1?1:0>h?0:h;for(var l=h/2,w=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],a=0,c=0;12>c;c++){var v=l*w[c]+l,y=ct(v,n,r,f,o),p=ct(v,t,u,e,s),k=y*y+p*p;a+=b[c]*i.sqrt(k)}return l*a}function kt(n,t,i,r,u,f,o,s,h){if(!(0>h||y(n,t,i,r,u,f,o,s)<h)){for(var v=1,a=v/2,l=v-a,c=y(n,t,i,r,u,f,o,s,l);e(c-h)>.01;)a/=2,l+=(h>c?1:-1)*a,c=y(n,t,i,r,u,f,o,s,l);return l}}function dt(n,t,i,f,e,o,s,h){if(!(r(n,i)<u(e,s)||u(n,i)>r(e,s)||r(t,f)<u(o,h)||u(t,f)>r(o,h))){var p=(n*f-t*i)*(e-s)-(n-i)*(e*h-o*s),w=(n*f-t*i)*(o-h)-(t-f)*(e*h-o*s),a=(n-i)*(o-h)-(t-f)*(e-s);if(a){var v=p/a,y=w/a,c=+v.toFixed(2),l=+y.toFixed(2);if(!(c<+u(n,i).toFixed(2)||c>+r(n,i).toFixed(2)||c<+u(e,s).toFixed(2)||c>+r(e,s).toFixed(2)||l<+u(t,f).toFixed(2)||l>+r(t,f).toFixed(2)||l<+u(o,h).toFixed(2)||l>+r(o,h).toFixed(2)))return{x:v,y:y}}}}function gt(n,t,i){var ut=rt(n),ft=rt(t),s,h,k,d;if(!ht(ut,ft))return i?0:[];for(var et=y.apply(0,n),ot=y.apply(0,t),a=~~(et/5),v=~~(ot/5),g=[],nt=[],it={},tt=i?0:[],r=0;a+1>r;r++)s=b.apply(0,n.concat(r/a)),g.push({x:s.x,y:s.y,t:r/a});for(r=0;v+1>r;r++)s=b.apply(0,t.concat(r/v)),nt.push({x:s.x,y:s.y,t:r/v});for(r=0;a>r;r++)for(h=0;v>h;h++){var f=g[r],c=g[r+1],o=nt[h],l=nt[h+1],p=e(c.x-f.x)<.001?"y":"x",w=e(l.x-o.x)<.001?"y":"x",u=dt(f.x,f.y,c.x,c.y,o.x,o.y,l.x,l.y);if(u){if(it[u.x.toFixed(4)]==u.y.toFixed(4))continue;it[u.x.toFixed(4)]=u.y.toFixed(4);k=f.t+e((u[p]-f[p])/(c[p]-f[p]))*(c.t-f.t);d=o.t+e((u[w]-o[w])/(l[w]-o[w]))*(l.t-o.t);k>=0&&1>=k&&d>=0&&1>=d&&(i?tt++:tt.push({x:u.x,y:u.y,t1:k,t2:d}))}}return tt}function ni(n,t){return ut(n,t)}function ti(n,t){return ut(n,t,1)}function ut(n,t,i){var l,v,nt,a,r,u,tt;n=w(n);t=w(t);for(var f,e,o,s,y,p,b,k,h,c,d=i?0:[],g=0,it=n.length;it>g;g++)if(l=n[g],"M"==l[0])f=y=l[1],e=p=l[2];else for("C"==l[0]?(h=[f,e].concat(l.slice(1)),f=h[6],e=h[7]):(h=[f,e,f,e,y,p,y,p],f=y,e=p),v=0,nt=t.length;nt>v;v++)if(a=t[v],"M"==a[0])o=b=a[1],s=k=a[2];else if("C"==a[0]?(c=[o,s].concat(a.slice(1)),o=c[6],s=c[7]):(c=[o,s,o,s,b,k,b,k],o=b,s=k),r=gt(h,c,i),i)d+=r;else{for(u=0,tt=r.length;tt>u;u++)r[u].segment1=g,r[u].segment2=v,r[u].bez1=h,r[u].bez2=c;d=d.concat(r)}return d}function ii(n,t,i){var r=lt(n);return o(r,t,i)&&1==ut(n,[["M",t,i],["H",r.x2+10]],1)%2}function lt(n){var h=c(n),e;if(h.bbox)return ot(h.bbox);if(!n)return a();n=w(n);for(var t,o=0,s=0,i=[],f=[],l=0,b=n.length;b>l;l++)(t=n[l],"M"==t[0])?(o=t[1],s=t[2],i.push(o),f.push(s)):(e=yt(o,s,t[1],t[2],t[3],t[4],t[5],t[6]),i=i.concat(e.min.x,e.max.x),f=f.concat(e.min.y,e.max.y),o=t[5],s=t[6]);var v=u.apply(0,i),y=u.apply(0,f),k=r.apply(0,i),d=r.apply(0,f),p=a(v,y,k-v,d-y);return h.bbox=ot(p),p}function s(n,t,i,r,u){if(u)return[["M",n+u,t],["l",i-2*u,0],["a",u,u,0,0,1,u,u],["l",0,r-2*u],["a",u,u,0,0,1,-u,u],["l",2*u-i,0],["a",u,u,0,0,1,-u,-u],["l",0,2*u-r],["a",u,u,0,0,1,u,-u],["z"]];var f=[["M",n,t],["l",i,0],["l",0,r],["l",-i,0],["z"]];return f.toString=v,f}function p(n,t,i,r,u){if(null==u&&null==r&&(r=i),null!=u)var f=Math.PI/180,o=n+i*Math.cos(-r*f),s=n+i*Math.cos(-u*f),h=t+i*Math.sin(-r*f),c=t+i*Math.sin(-u*f),e=[["M",o,h],["A",i,i,0,+(u-r>180),0,s,c]];else e=[["M",n,t],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];return e.toString=v,e}function ri(t){var w=c(t),b=String.prototype.toLowerCase,u,d,f,i,s,g,h,nt,a;if(w.rel)return l(w.rel);n.is(t,"array")&&n.is(t&&t[0],"array")||(t=n.parsePathString(t));var r=[],o=0,e=0,y=0,p=0,k=0;for("M"==t[0][0]&&(o=t[0][1],e=t[0][2],y=o,p=e,k++,r.push(["M",o,e])),u=k,d=t.length;d>u;u++){if(f=r[u]=[],i=t[u],i[0]!=b.call(i[0]))switch(f[0]=b.call(i[0]),f[0]){case"a":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=+(i[6]-o).toFixed(3);f[7]=+(i[7]-e).toFixed(3);break;case"v":f[1]=+(i[1]-e).toFixed(3);break;case"m":y=i[1];p=i[2];default:for(s=1,g=i.length;g>s;s++)f[s]=+(i[s]-(s%2?o:e)).toFixed(3)}else for(f=r[u]=[],"m"==i[0]&&(y=i[1]+o,p=i[2]+e),h=0,nt=i.length;nt>h;h++)r[u][h]=i[h];a=r[u].length;switch(r[u][0]){case"z":o=y;e=p;break;case"h":o+=+r[u][a-1];break;case"v":e+=+r[u][a-1];break;default:o+=+r[u][a-2];e+=+r[u][a-1]}}return r.toString=v,w.rel=l(r),r}function ft(t){var b=c(t),a,tt;if(b.abs)return l(b.abs);if(wt(t,"array")&&wt(t&&t[0],"array")||(t=n.parsePathString(t)),!t||!t.length)return[["M",0,0]];var h,u=[],f=0,e=0,y=0,w=0,g=0;"M"==t[0][0]&&(f=+t[0][1],e=+t[0][2],y=f,w=e,g++,u[0]=["M",f,e]);for(var r,i,nt=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),k=g,it=t.length;it>k;k++){if(u.push(r=[]),i=t[k],h=i[0],h!=h.toUpperCase())switch(r[0]=h.toUpperCase(),r[0]){case"A":r[1]=i[1];r[2]=i[2];r[3]=i[3];r[4]=i[4];r[5]=i[5];r[6]=+(i[6]+f);r[7]=+(i[7]+e);break;case"V":r[1]=+i[1]+e;break;case"H":r[1]=+i[1]+f;break;case"R":for(var o=[f,e].concat(i.slice(1)),s=2,d=o.length;d>s;s++)o[s]=+o[s]+f,o[++s]=+o[s]+e;u.pop();u=u.concat(pt(o,nt));break;case"O":u.pop();o=p(f,e,i[1],i[2]);o.push(o[0]);u=u.concat(o);break;case"U":u.pop();u=u.concat(p(f,e,i[1],i[2],i[3]));r=["U"].concat(u[u.length-1].slice(-2));break;case"M":y=+i[1]+f;w=+i[2]+e;default:for(s=1,d=i.length;d>s;s++)r[s]=+i[s]+(s%2?f:e)}else if("R"==h)o=[f,e].concat(i.slice(1)),u.pop(),u=u.concat(pt(o,nt)),r=["R"].concat(i.slice(-2));else if("O"==h)u.pop(),o=p(f,e,i[1],i[2]),o.push(o[0]),u=u.concat(o);else if("U"==h)u.pop(),u=u.concat(p(f,e,i[1],i[2],i[3])),r=["U"].concat(u[u.length-1].slice(-2));else for(a=0,tt=i.length;tt>a;a++)r[a]=i[a];if(h=h.toUpperCase(),"O"!=h)switch(r[0]){case"Z":f=y;e=w;break;case"H":f=r[1];break;case"V":e=r[1];break;case"M":y=r[r.length-2];w=r[r.length-1];default:f=r[r.length-2];e=r[r.length-1]}}return u.toString=v,b.abs=l(u),u}function k(n,t,i,r){return[n,t,i,r,i,r]}function at(n,t,i,r,u,f){var e=1/3,o=2/3;return[e*n+o*i,e*t+o*r,e*u+o*i,e*f+o*r,u,f]}function vt(t,r,u,o,s,h,c,l,a,v){var g,ht=120*f/180,ut=f/180*(+s||0),w=[],ft=n._.cacher(function(n,t,r){var u=n*i.cos(r)-t*i.sin(r),f=n*i.sin(r)+t*i.cos(r);return{x:u,y:f}}),et;if(v)p=v[0],y=v[1],it=v[2],rt=v[3];else{g=ft(t,r,-ut);t=g.x;r=g.y;g=ft(l,a,-ut);l=g.x;a=g.y;var k=(i.cos(f/180*s),i.sin(f/180*s),(t-l)/2),d=(r-a)/2,tt=k*k/(u*u)+d*d/(o*o);tt>1&&(tt=i.sqrt(tt),u=tt*u,o=tt*o);var ot=u*u,st=o*o,ct=(h==c?-1:1)*i.sqrt(e((ot*st-ot*d*d-st*k*k)/(ot*d*d+st*k*k))),it=ct*u*d/o+(t+l)/2,rt=ct*-o*k/u+(r+a)/2,p=i.asin(((r-rt)/o).toFixed(9)),y=i.asin(((a-rt)/o).toFixed(9));p=it>t?f-p:p;y=it>l?f-y:y;0>p&&(p=2*f+p);0>y&&(y=2*f+y);c&&p>y&&(p-=2*f);!c&&y>p&&(y-=2*f)}if(et=y-p,e(et)>ht){var dt=y,gt=l,ni=a;y=p+ht*(c&&y>p?1:-1);l=it+u*i.cos(y);a=rt+o*i.sin(y);w=vt(l,a,u,o,s,0,c,gt,ni,[y,dt,it,rt])}et=y-p;var ti=i.cos(p),ii=i.sin(p),ri=i.cos(y),ui=i.sin(y),lt=i.tan(et/4),at=4/3*u*lt,yt=4/3*o*lt,pt=[t,r],nt=[t+at*ii,r-yt*ti],wt=[l+at*ui,a-yt*ri],bt=[l,a];if(nt[0]=2*pt[0]-nt[0],nt[1]=2*pt[1]-nt[1],v)return[nt,wt,bt].concat(w);w=[nt,wt,bt].concat(w).join().split(",");for(var kt=[],b=0,fi=w.length;fi>b;b++)kt[b]=b%2?ft(w[b-1],w[b],ut).y:ft(w[b],w[b+1],ut).x;return kt}function d(n,t,i,r,u,f,e,o,s){var c=1-s;return{x:h(c,3)*n+3*h(c,2)*s*i+3*c*s*s*u+h(s,3)*e,y:h(c,3)*t+3*h(c,2)*s*r+3*c*s*s*f+h(s,3)*o}}function yt(n,t,f,o,s,h,c,l){var v,w=s-2*f+n-(c-2*s+f),a=2*(f-n)-2*(s-f),g=n-f,y=(-a+i.sqrt(a*a-4*w*g))/2/w,p=(-a-i.sqrt(a*a-4*w*g))/2/w,b=[t,l],k=[n,c];return e(y)>"1e12"&&(y=.5),e(p)>"1e12"&&(p=.5),y>0&&1>y&&(v=d(n,t,f,o,s,h,c,l,y),k.push(v.x),b.push(v.y)),p>0&&1>p&&(v=d(n,t,f,o,s,h,c,l,p),k.push(v.x),b.push(v.y)),w=h-2*o+t-(l-2*h+o),a=2*(o-t)-2*(h-o),g=t-o,y=(-a+i.sqrt(a*a-4*w*g))/2/w,p=(-a-i.sqrt(a*a-4*w*g))/2/w,e(y)>"1e12"&&(y=.5),e(p)>"1e12"&&(p=.5),y>0&&1>y&&(v=d(n,t,f,o,s,h,c,l,y),k.push(v.x),b.push(v.y)),p>0&&1>p&&(v=d(n,t,f,o,s,h,c,l,p),k.push(v.x),b.push(v.y)),{min:{x:u.apply(0,k),y:u.apply(0,b)},max:{x:r.apply(0,k),y:r.apply(0,b)}}}function w(n,t){var y=!t&&c(n);if(!t&&y.curve)return l(y.curve);for(var u=ft(n),i=t&&ft(t),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w=function(n,t){var i,r;if(!n)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(n[0]in{T:1,Q:1})&&(t.qx=t.qy=null),n[0]){case"M":t.X=n[1];t.Y=n[2];break;case"A":n=["C"].concat(vt.apply(0,[t.x,t.y].concat(n.slice(1))));break;case"S":i=t.x+(t.x-(t.bx||t.x));r=t.y+(t.y-(t.by||t.y));n=["C",i,r].concat(n.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x));t.qy=t.y+(t.y-(t.qy||t.y));n=["C"].concat(at(t.x,t.y,t.qx,t.qy,n[1],n[2]));break;case"Q":t.qx=n[1];t.qy=n[2];n=["C"].concat(at(t.x,t.y,n[1],n[2],n[3],n[4]));break;case"L":n=["C"].concat(k(t.x,t.y,n[1],n[2]));break;case"H":n=["C"].concat(k(t.x,t.y,n[1],t.y));break;case"V":n=["C"].concat(k(t.x,t.y,t.x,n[1]));break;case"Z":n=["C"].concat(k(t.x,t.y,t.X,t.Y))}return n},b=function(n,t){if(n[t].length>7){n[t].shift();for(var f=n[t];f.length;)n.splice(t++,0,["C"].concat(f.splice(0,6)));n.splice(t,1);p=r(u.length,i&&i.length||0)}},d=function(n,t,f,e,o){n&&t&&"M"==n[o][0]&&"M"!=t[o][0]&&(t.splice(o,0,["M",e.x,e.y]),f.bx=0,f.by=0,f.x=n[o][1],f.y=n[o][2],p=r(u.length,i&&i.length||0))},f=0,p=r(u.length,i&&i.length||0);p>f;f++){u[f]=w(u[f],e);b(u,f);i&&(i[f]=w(i[f],o));i&&b(i,f);d(u,i,e,o,f);d(i,u,o,e,f);var s=u[f],h=i&&i[f],a=s.length,v=i&&h.length;e.x=s[a-2];e.y=s[a-1];e.bx=g(s[a-4])||e.x;e.by=g(s[a-3])||e.y;o.bx=i&&(g(h[v-4])||o.x);o.by=i&&(g(h[v-3])||o.y);o.x=i&&h[v-2];o.y=i&&h[v-1]}return i||(y.curve=l(u)),i?[u,i]:u}function ui(n,t){if(!t)return n;var f,e,u,i,o,s,r;for(n=w(n),u=0,o=n.length;o>u;u++)for(r=n[u],i=1,s=r.length;s>i;i+=2)f=t.x(r[i],r[i+1]),e=t.y(r[i],r[i+1]),r[i]=f,r[i+1]=e;return n}function pt(n,t){for(var i,f=[],r=0,u=n.length;u-2*!t>r;r+=2)i=[{x:+n[r-2],y:+n[r-1]},{x:+n[r],y:+n[r+1]},{x:+n[r+2],y:+n[r+3]},{x:+n[r+4],y:+n[r+5]}],t?r?u-4==r?i[3]={x:+n[0],y:+n[1]}:u-2==r&&(i[2]={x:+n[0],y:+n[1]},i[3]={x:+n[2],y:+n[3]}):i[0]={x:+n[u-2],y:+n[u-1]}:u-4==r?i[3]=i[2]:r||(i[0]={x:+n[r],y:+n[r+1]}),f.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y]);return f}var et=t.prototype,wt=n.is,ot=n._.clone,fi="hasOwnProperty",ei=/,?([a-z]),?/gi,g=parseFloat,i=Math,f=i.PI,u=i.min,r=i.max,h=i.pow,e=i.abs,oi=it(1),bt=it(),st=it(0,1),nt=n._unit2px,si={path:function(n){return n.attr("path")},circle:function(n){var t=nt(n);return p(t.cx,t.cy,t.r)},ellipse:function(n){var t=nt(n);return p(t.cx,t.cy,t.rx,t.ry)},rect:function(n){var t=nt(n);return s(t.x,t.y,t.width,t.height,t.rx,t.ry)},image:function(n){var t=nt(n);return s(t.x,t.y,t.width,t.height)},text:function(n){var t=n.node.getBBox();return s(t.x,t.y,t.width,t.height)},g:function(n){var t=n.node.getBBox();return s(t.x,t.y,t.width,t.height)},symbol:function(n){var t=n.getBBox();return s(t.x,t.y,t.width,t.height)},line:function(n){return"M"+[n.attr("x1"),n.attr("y1"),n.attr("x2"),n.attr("y2")]},polyline:function(n){return"M"+n.attr("points")},polygon:function(n){return"M"+n.attr("points")+"z"},svg:function(n){var t=n.node.getBBox();return s(t.x,t.y,t.width,t.height)},deflt:function(n){var t=n.node.getBBox();return s(t.x,t.y,t.width,t.height)}};n.path=c;n.path.getTotalLength=oi;n.path.getPointAtLength=bt;n.path.getSubpath=function(n,t,i){if(this.getTotalLength(n)-i<1e-6)return st(n,t).end;var r=st(n,i,1);return t?st(r,t).end:r};et.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()};et.getPointAtLength=function(n){return bt(this.attr("d"),n)};et.getSubpath=function(t,i){return n.path.getSubpath(this.attr("d"),t,i)};n._.box=a;n.path.findDotsAtSegment=b;n.path.bezierBBox=rt;n.path.isPointInsideBBox=o;n.path.isBBoxIntersect=ht;n.path.intersection=ni;n.path.intersectionNumber=ti;n.path.isPointInside=ii;n.path.getBBox=lt;n.path.get=si;n.path.toRelative=ri;n.path.toAbsolute=ft;n.path.toCubic=w;n.path.map=ui;n.path.toString=v;n.path.clone=l}),r.plugin(function(n){var i=Math.max,u=Math.min,r=function(n){if(this.items=[],this.length=0,this.type="set",n)for(var t=0,i=n.length;i>t;t++)n[t]&&(this[this.items.length]=this.items[this.items.length]=n[t],this.length++)},t=r.prototype;t.push=function(){for(var n,t,i=0,r=arguments.length;r>i;i++)n=arguments[i],n&&(t=this.items.length,this[t]=this.items[t]=n,this.length++);return this};t.pop=function(){return this.length&&delete this[this.length--],this.items.pop()};t.forEach=function(n,t){for(var i=0,r=this.items.length;r>i;i++)if(n.call(t,this.items[i],i)===!1)return this;return this};t.remove=function(){for(;this.length;)this.pop().remove();return this};t.attr=function(n){for(var t=0,i=this.items.length;i>t;t++)this.items[t].attr(n);return this};t.clear=function(){for(;this.length;)this.pop()};t.splice=function(n,t){var e;n=0>n?i(this.length+n,0):n;t=i(0,u(this.length-n,t));for(var o=[],h=[],s=[],f=2;f<arguments.length;f++)s.push(arguments[f]);for(f=0;t>f;f++)h.push(this[n+f]);for(;f<this.length-n;f++)o.push(this[n+f]);for(e=s.length,f=0;f<e+o.length;f++)this.items[n+f]=this[n+f]=e>f?s[f]:o[f-e];for(f=this.items.length=this.length-=t-e;this[f];)delete this[f++];return new r(h)};t.exclude=function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]==n)return this.splice(t,1),!0;return!1};t.insertAfter=function(n){for(var t=this.items.length;t--;)this.items[t].insertAfter(n);return this};t.getBBox=function(){for(var r,n=[],t=[],f=[],e=[],o=this.items.length;o--;)this.items[o].removed||(r=this.items[o].getBBox(),n.push(r.x),t.push(r.y),f.push(r.x+r.width),e.push(r.y+r.height));return n=u.apply(0,n),t=u.apply(0,t),f=i.apply(0,f),e=i.apply(0,e),{x:n,y:t,x2:f,y2:e,width:f-n,height:e-t,cx:n+(f-n)/2,cy:t+(e-t)/2}};t.clone=function(n){n=new r;for(var t=0,i=this.items.length;i>t;t++)n.push(this.items[t].clone());return n};t.toString=function(){return"Snap‘s set"};t.type="set";n.set=function(){var n=new r;return arguments.length&&n.push.apply(n,Array.prototype.slice.call(arguments,0)),n}}),r.plugin(function(n,t){function f(n){var t=n[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4==n.length?[t,0,n[2],n[3]]:[t,0];case"s":return 5==n.length?[t,1,1,n[3],n[4]]:3==n.length?[t,1,1]:[t,1]}}function h(t,u,e){u=i(u).replace(/\.{3}|\u2026/g,t);t=n.parseTransformString(t)||[];u=n.parseTransformString(u)||[];for(var h,y,s,c,p=Math.max(t.length,u.length),a=[],v=[],l=0;p>l;l++){if(s=t[l]||f(u[l]),c=u[l]||f(s),s[0]!=c[0]||"r"==s[0].toLowerCase()&&(s[2]!=c[2]||s[3]!=c[3])||"s"==s[0].toLowerCase()&&(s[3]!=c[3]||s[4]!=c[4])){t=n._.transform2matrix(t,e());u=n._.transform2matrix(u,e());a=[["m",t.a,t.b,t.c,t.d,t.e,t.f]];v=[["m",u.a,u.b,u.c,u.d,u.e,u.f]];break}for(a[l]=[],v[l]=[],h=0,y=Math.max(s.length,c.length);y>h;h++)h in s&&(a[l][h]=s[h]),h in c&&(v[l][h]=c[h])}return{from:r(a),to:r(v),f:o(a)}}function e(n){return n}function c(n){return function(t){return+t.toFixed(3)+n}}function l(t){return n.rgb(t[0],t[1],t[2])}function o(n){for(var i,e,r,u,s=0,o=[],t=0,f=n.length;f>t;t++){for(r="[",u=['"'+n[t][0]+'"'],i=1,e=n[t].length;e>i;i++)u[i]="val["+s+++"]";r+=u+"]";o[t]=r}return Function("val","return Snap.path.toString.call(["+o+"])")}function r(n){for(var i,u,r=[],t=0,f=n.length;f>t;t++)for(i=1,u=n[t].length;u>i;i++)r.push(n[t][i]);return r}var u={},s=/[a-z]+$/i,i=String;u.stroke=u.fill="colour";t.prototype.equal=function(t,f){var a,y,v=i(this.attr(t)||""),b=this,p,w;return v==+v&&f==+f?{from:+v,to:+f,f:e}:"colour"==u[t]?(a=n.color(v),y=n.color(f),{from:[a.r,a.g,a.b,a.opacity],to:[y.r,y.g,y.b,y.opacity],f:l}):"transform"==t||"gradientTransform"==t||"patternTransform"==t?(f instanceof n.Matrix&&(f=f.toTransformString()),n._.rgTransform.test(f)||(f=n._.svgTransform2string(f)),h(v,f,function(){return b.getBBox(1)})):"d"==t||"path"==t?(a=n.path.toCubic(v,f),{from:r(a[0]),to:r(a[1]),f:o(a[0])}):"points"==t?(a=i(v).split(","),y=i(f).split(","),{from:a,to:y,f:function(n){return n}}):(p=v.match(s),w=i(f).match(s),p&&p==w?{from:parseFloat(v),to:parseFloat(f),f:c(p)}:{from:this.asPX(t),to:this.asPX(t,f),f:e})}}),r.plugin(function(n,i,r,u){for(var e,o=i.prototype,p="hasOwnProperty",h=("createTouch"in u.doc),v=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],c={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},s=function(n){var t="y"==n?"scrollTop":"scrollLeft";return u.doc.documentElement[t]||u.doc.body[t]},w=function(){this.returnValue=!1},b=function(){return this.originalEvent.preventDefault()},k=function(){this.cancelBubble=!0},d=function(){return this.originalEvent.stopPropagation()},g=function(){return u.doc.addEventListener?function(n,t,i,r){var u=h&&c[t]?c[t]:t,f=function(u){var v=s("y"),y=s("x"),f,e,o,l,a;if(h&&c[p](t))for(f=0,e=u.targetTouches&&u.targetTouches.length;e>f;f++)if(u.targetTouches[f].target==n||n.contains(u.targetTouches[f].target)){o=u;u=u.targetTouches[f];u.originalEvent=o;u.preventDefault=b;u.stopPropagation=d;break}return l=u.clientX+y,a=u.clientY+v,i.call(r,u,l,a)};return t!==u&&n.addEventListener(t,f,!1),n.addEventListener(u,f,!1),function(){return t!==u&&n.removeEventListener(t,f,!1),n.removeEventListener(u,f,!1),!0}}:u.doc.attachEvent?function(n,t,i,r){var f=function(n){n=n||u.win.event;var t=s("y"),f=s("x"),e=n.clientX+f,o=n.clientY+t;return n.preventDefault=n.preventDefault||w,n.stopPropagation=n.stopPropagation||k,i.call(r,n,e,o)};return n.attachEvent("on"+t,f),function(){return n.detachEvent("on"+t,f),!0}}:void 0}(),f=[],l=function(i){for(var u,l,c,r,e=i.clientX,o=i.clientY,v=s("y"),y=s("x"),a=f.length;a--;){if(r=f[a],h){for(l=i.touches&&i.touches.length;l--;)if(u=i.touches[l],u.identifier==r.el._drag.id||r.el.node.contains(u.target)){e=u.clientX;o=u.clientY;(i.originalEvent?i.originalEvent:i).preventDefault();break}}else i.preventDefault();c=r.el.node;n._.glob;c.nextSibling;c.parentNode;c.style.display;e+=y;o+=v;t("snap.drag.move."+r.el.id,r.move_scope||r.el,e-r.el._drag.x,o-r.el._drag.y,e,o,i)}},a=function(i){n.unmousemove(l).unmouseup(a);for(var r,u=f.length;u--;)r=f[u],r.el._drag={},t("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,i);f=[]},y=v.length;y--;)!function(t){n[t]=o[t]=function(i,r){return n.is(i,"function")&&(this.events=this.events||[],this.events.push({name:t,f:i,unbind:g(this.shape||this.node||u.doc,t,i,r||this)})),this};n["un"+t]=o["un"+t]=function(n){for(var i=this.events||[],r=i.length;r--;)if(i[r].name==t&&(i[r].f==n||!n))return i[r].unbind(),i.splice(r,1),!i.length&&delete this.events,this;return this}}(v[y]);o.hover=function(n,t,i,r){return this.mouseover(n,i).mouseout(t,r||i)};o.unhover=function(n,t){return this.unmouseover(n).unmouseout(t)};e=[];o.drag=function(i,r,u,o,s,h){function v(e,c,v){(e.originalEvent||e).preventDefault();this._drag.x=c;this._drag.y=v;this._drag.id=e.identifier;!f.length&&n.mousemove(l).mouseup(a);f.push({el:this,move_scope:o,start_scope:s,end_scope:h});r&&t.on("snap.drag.start."+this.id,r);i&&t.on("snap.drag.move."+this.id,i);u&&t.on("snap.drag.end."+this.id,u);t("snap.drag.start."+this.id,s||o||this,c,v,e)}if(!arguments.length){var c;return this.drag(function(n,t){this.attr({transform:c+(c?"T":"t")+[n,t]})},function(){c=this.transform().local})}return this._drag={},e.push({el:this,start:v}),this.mousedown(v),this};o.undrag=function(){for(var i=e.length;i--;)e[i].el==this&&(this.unmousedown(e[i].start),e.splice(i,1),t.unbind("snap.drag.*."+this.id));return!e.length&&n.unmousemove(l).unmouseup(a),this}}),r.plugin(function(n,i,r){var e=(i.prototype,r.prototype),o=/^\s*url\((.+)\)/,f=String,u=n._.$;n.filter={};e.filter=function(t){var r=this;"svg"!=r.type&&(r=r.paper);var o=n.parse(f(t)),s=n._.id(),e=(r.node.offsetWidth,r.node.offsetHeight,u("filter"));return u(e,{id:s,filterUnits:"userSpaceOnUse"}),e.appendChild(o.node),r.defs.appendChild(e),new i(e)};t.on("snap.util.getattr.filter",function(){var i,r;return t.stop(),i=u(this.node,"filter"),i?(r=f(i).match(o),r&&n.select(r[1])):void 0});t.on("snap.util.attr.filter",function(r){if(r instanceof i&&"filter"==r.type){t.stop();var f=r.node.id;f||(u(r.node,{id:r.id}),f=r.id);u(this.node,{filter:n.url(f)})}r&&"none"!=r||(t.stop(),this.node.removeAttribute("filter"))});n.filter.blur=function(t,i){null==t&&(t=2);var r=null==i?t:[t,i];return n.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})};n.filter.blur.toString=function(){return this()};n.filter.shadow=function(t,i,r,u){return u=u||"#000",null==r&&(r=4),"string"==typeof r&&(u=r,r=4),null==t&&(t=0,i=2),null==i&&(i=t),u=n.color(u),n.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/><\/feMerge>',{color:u,dx:t,dy:i,blur:r})};n.filter.shadow.toString=function(){return this()};n.filter.grayscale=function(t){return null==t&&(t=1),n.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})};n.filter.grayscale.toString=function(){return this()};n.filter.sepia=function(t){return null==t&&(t=1),n.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})};n.filter.sepia.toString=function(){return this()};n.filter.saturate=function(t){return null==t&&(t=1),n.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-t})};n.filter.saturate.toString=function(){return this()};n.filter.hueRotate=function(t){return t=t||0,n.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t})};n.filter.hueRotate.toString=function(){return this()};n.filter.invert=function(t){return null==t&&(t=1),n.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/><\/feComponentTransfer>',{amount:t,amount2:1-t})};n.filter.invert.toString=function(){return this()};n.filter.brightness=function(t){return null==t&&(t=1),n.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/><\/feComponentTransfer>',{amount:t})};n.filter.brightness.toString=function(){return this()};n.filter.contrast=function(t){return null==t&&(t=1),n.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/><\/feComponentTransfer>',{amount:t,amount2:.5-t/2})};n.filter.contrast.toString=function(){return this()}}),r});var mejs=mejs||{};mejs.version="2.14.2";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var u=0,t,f="",r="",i,e,o=document.getElementsByTagName("script"),s=o.length,h=n.length;u<s;u++){for(i=o[u].src,t=i.lastIndexOf("/"),t>-1?(e=i.substring(t+1),i=i.substring(0,t+1)):(e=i,i=""),t=0;t<h;t++)if(r=n[t],r=e.indexOf(r),r>-1){f=i;break}if(f!=="")break}return f},secondsToTimeCode:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);var u=Math.floor(n/3600)%24,f=Math.floor(n/60)%60,e=Math.floor(n%60);return n=Math.floor((n%1*r).toFixed(3)),(t||u>0?(u<10?"0"+u:u)+":":"")+(f<10?"0"+f:f)+":"+(e<10?"0"+e:e)+(i?":"+(n<10?"0"+n:n):"")},timeCodeToSeconds:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);n=n.split(":");t=parseInt(n[0],10);var f=parseInt(n[1],10),e=parseInt(n[2],10),u=0;return i&&(u=parseInt(n[3])/r),t*3600+f*60+e+u},convertSMPTEtoSeconds:function(n){var t;if(typeof n!="string")return!1;n=n.replace(",",".");var r=0,u=n.indexOf(".")!=-1?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){t.readyState==4?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){if(n=document.getElementById(n)){for(var t in n)typeof n[t]=="function"&&(n[t]=null);n.parentNode.removeChild(n)}}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var u=[0,0,0],f;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[n]=="object"){if((i=this.nav.plugins[n].description)&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[t]&&!this.nav.mimeTypes[t].enabledPlugin))for(u=i.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),n=0;n<u.length;n++)u[n]=parseInt(u[n].match(/\d+/),10)}else if(typeof window.ActiveXObject!="undefined")try{(f=new ActiveXObject(i))&&(u=r(f))}catch(e){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var t=[];return(n=n.GetVariable("$version"))&&(n=n.split(" ")[1].split(","),t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),t});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){for(;n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]);)t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var n=this,u=document,r=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),i,f=["source","track","audio","video"];for(n.isiPad=t.match(/ipad/i)!==null,n.isiPhone=t.match(/iphone/i)!==null,n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=t.match(/android/i)!==null,n.isBustedAndroid=t.match(/android 2\.[12]/)!==null,n.isBustedNativeHTTPS=location.protocol==="https:"&&(t.match(/android [12]\./)!==null||t.match(/macintosh.* version.* safari/)!==null),n.isIE=r.appName.toLowerCase().indexOf("microsoft")!=-1||r.appName.toLowerCase().match(/trident/gi)!==null,n.isChrome=t.match(/chrome/gi)!==null,n.isFirefox=t.match(/firefox/gi)!==null,n.isWebkit=t.match(/webkit/gi)!==null,n.isGecko=t.match(/gecko/gi)!==null&&!n.isWebkit&&!n.isIE,n.isOpera=t.match(/opera/gi)!==null,n.hasTouch=("ontouchstart"in window),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=0;r<f.length;r++)i=document.createElement(f[r]);n.supportsMediaTag=typeof i.canPlayType!="undefined"||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(e){n.supportsMediaTag=!1}n.hasSemiNativeFullScreen=typeof i.webkitEnterFullscreen!="undefined";n.hasNativeFullscreen=typeof i.requestFullscreen!="undefined";n.hasWebkitNativeFullScreen=typeof i.webkitRequestFullScreen!="undefined";n.hasMozNativeFullScreen=typeof i.mozRequestFullScreen!="undefined";n.hasMsNativeFullScreen=typeof i.msRequestFullscreen!="undefined";n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasSemiNativeFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return i.mozRequestFullScreen?u.mozFullScreen:i.webkitRequestFullScreen?u.webkitIsFullScreen:i.hasMsNativeFullScreen?u.msFullscreenElement!==null:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasSemiNativeFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasSemiNativeFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var i,t=this.getElementsByTagName("source");t.length>0;)this.removeChild(t[0]);if(typeof n=="string")this.src=n;else for(t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.src=i.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){this.pluginApi!=null&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){this.pluginApi!=null&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if(typeof n=="string")this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(n);break}},setCurrentTime:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.setVolume(n*100):this.pluginApi.setVolume(n),this.volume=n)},setMuted:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent("volumechange")):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement.style&&(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");this.pluginApi!=null&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,r,i=this.events[n];if(i)for(r=Array.prototype.slice.call(arguments,1),t=0;t<i.length;t++)i[t].apply(null,r)},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(n){return this.hasAttribute(n)?this.attributes[n]:""},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(n,t,i){this.pluginMediaElements[n]=t;this.htmlMediaElements[n]=i},unregisterPluginElement:function(n){delete this.pluginMediaElements[n];delete this.htmlMediaElements[n]},initPlugin:function(n){var t=this.pluginMediaElements[n],i=this.htmlMediaElements[n];if(t){switch(t.pluginType){case"flash":t.pluginElement=t.pluginApi=document.getElementById(n);break;case"silverlight":t.pluginElement=document.getElementById(t.id);t.pluginApi=t.pluginElement.Content.MediaElementJS}t.pluginApi!=null&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u;if(n=this.pluginMediaElements[n]){t={type:t,target:n};for(r in i)n[r]=i[r],t[r]=i[r];u=i.bufferedTime||0;t.target.buffered=t.buffered={start:function(){return 0},end:function(){return u},length:1};n.dispatchEvent(t.type,t)}}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var s=mejs.MediaElementDefaults,r=typeof n=="string"?document.getElementById(n):n,u=r.tagName.toLowerCase(),c=u==="audio"||u==="video",e=c?r.getAttribute("src"):r.getAttribute("href");u=r.getAttribute("poster");var o=r.getAttribute("autoplay"),f=r.getAttribute("preload"),h=r.getAttribute("controls"),i;for(i in t)s[i]=t[i];return e=typeof e=="undefined"||e===null||e==""?null:e,u=typeof u=="undefined"||u===null?"":u,f=typeof f=="undefined"||f===null||f==="false"?"none":f,o=!(typeof o=="undefined"||o===null||o==="false"),h=!(typeof h=="undefined"||h===null||h==="false"),i=this.determinePlayback(r,s,mejs.MediaFeatures.supportsMediaTag,c,e),i.url=i.url!==null?mejs.Utility.absolutizeUrl(i.url):"",i.method=="native"?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,s,o,f)):i.method!==""?this.createPlugin(i,s,u,o,f,h):(this.createErrorMessage(i,s,u),this)},determinePlayback:function(n,t,i,r,u){var e=[],f,s,h,o={method:"",url:"",htmlMediaElement:n,isVideo:n.tagName.toLowerCase()!="audio"},c;if(typeof t.type!="undefined"&&t.type!=="")if(typeof t.type=="string")e.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)e.push({type:t.type[f],url:u});else if(u!==null)h=this.formatType(u,n.getAttribute("type")),e.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],s.nodeType==1&&s.tagName.toLowerCase()=="source"&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),s=s.getAttribute("media"),(!s||!window.matchMedia||window.matchMedia&&window.matchMedia(s).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&e[0].url!==null&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return n.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""}),i&&(t.mode==="auto"||t.mode==="auto_plugin"||t.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(f=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(f,n),n.style.display="none",o.htmlMediaElement=n=f),f=0;f<e.length;f++)if(n.canPlayType(e[f].type).replace(/no/,"")!==""||n.canPlayType(e[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")!==""||n.canPlayType(e[f].type.replace(/m4a/,"mp4")).replace(/no/,"")!==""){o.method="native";o.url=e[f].url;break}if(o.method==="native"&&(o.url!==null&&(n.src=o.url),t.mode!=="auto_plugin"))return o}if(t.mode==="auto"||t.mode==="auto_plugin"||t.mode==="shim")for(f=0;f<e.length;f++)for(h=e[f].type,n=0;n<t.plugins.length;n++)for(u=t.plugins[n],s=mejs.plugins[u],i=0;i<s.length;i++)if(c=s[i],c.version==null||mejs.PluginDetector.hasPluginVersion(u,c.version))for(r=0;r<c.types.length;r++)if(h==c.types[r])return o.method=u,o.url=e[f].url,o;return t.mode==="auto_plugin"&&o.method==="native"?o:(o.method===""&&e.length>0&&(o.url=e[0].url),o)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){return n=n.split("?")[0],n=n.substring(n.lastIndexOf(".")+1).toLowerCase(),(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(n)?"video":"audio")+"/"+this.getTypeFromExtension(n)},getTypeFromExtension:function(n){switch(n){case"mp4":case"m4v":case"m4a":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div");u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(f){}u.innerHTML=t.customError?t.customError:i!==""?'<a href="'+n.url+'"><img src="'+i+'" width="100%" height="100%" /><\/a>':'<a href="'+n.url+'"><span>'+mejs.i18n.t("Download File")+"<\/span><\/a>";r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var v,e;i=n.htmlMediaElement;var l=1,a=1,h="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(h,n.method,n.url),c=document.createElement("div"),s;for(o.tagName=i.tagName,s=0;s<i.attributes.length;s++)v=i.attributes[s],v.specified==!0&&o.setAttribute(v.name,v.value);for(s=i.parentNode;s!==null&&s.tagName.toLowerCase()!=="body"&&s.parentNode!=null;){if(s.parentNode.tagName.toLowerCase()==="p"){s.parentNode.parentNode.insertBefore(s,s.parentNode);break}s=s.parentNode}n.isVideo?(l=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:i.getAttribute("width")!==null?i.getAttribute("width"):t.defaultVideoWidth,a=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:i.getAttribute("height")!==null?i.getAttribute("height"):t.defaultVideoHeight,l=mejs.Utility.encodeUrl(l),a=mejs.Utility.encodeUrl(a)):t.enablePluginDebug&&(l=320,a=240);o.success=t.success;mejs.MediaPluginBridge.registerPluginElement(h,o,i);c.className="me-plugin";c.id=h+"_container";n.isVideo?i.parentNode.insertBefore(c,i):document.body.insertBefore(c,document.body.childNodes[0]);r=["id="+h,"isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+l,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+a,"pseudostreamstart="+t.pseudoStreamingStartQueryParam];n.url!==null&&(n.method=="flash"?r.push("file="+mejs.Utility.encodeUrl(n.url)):r.push("file="+n.url));t.enablePluginDebug&&r.push("debug=true");t.enablePluginSmoothing&&r.push("smoothing=true");t.enablePseudoStreaming&&r.push("pseudostreaming=true");f&&r.push("controls=true");t.pluginVars&&(r=r.concat(t.pluginVars));switch(n.method){case"silverlight":c.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+l+'" height="'+a+'" class="mejs-shim"><param name="initParams" value="'+r.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(n=document.createElement("div"),c.appendChild(n),n.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+l+'" height="'+a+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+r.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):c.innerHTML='<embed id="'+h+'" name="'+h+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+r.join("&")+'" width="'+l+'" height="'+a+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":n.url.lastIndexOf("youtu.be")!=-1?(n=n.url.substr(n.url.lastIndexOf("/")+1),n.indexOf("?")!=-1&&(n=n.substr(0,n.indexOf("?")))):n=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:c,containerId:c.id,pluginMediaElement:o,pluginId:h,videoId:n,height:a,width:l};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case"vimeo":t=h+"_player";o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1);c.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+t+'" width="'+l+'" height="'+a+'" frameborder="0" class="mejs-shim" id="'+t+'"><\/iframe>';typeof $f=="function"?(e=$f(c.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){n={type:i,target:t};i=="timeupdate"&&(t.currentTime=n.currentTime=r.seconds,t.duration=n.duration=r.duration);t.dispatchEvent(n.type,n)}e.playVideo=function(){e.api("play")};e.pauseVideo=function(){e.api("pause")};e.seekTo=function(n){e.api("seekTo",n)};e.addEvent("play",function(){n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){n(e,o,"pause")});e.addEvent("finish",function(){n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});o.pluginApi=e;mejs.MediaPluginBridge.initPlugin(h)})):console.warn("You need to include froogaloop for vimeo to work")}return i.style.display="none",i.removeAttribute("autoplay"),o},updateNative:function(n,t){var i=n.htmlMediaElement,r;for(r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){var n,t;this.isIframeStarted||(n=document.createElement("script"),n.src="//www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(),this.iframeQueue.push(n))},createIframe:function(n){var i=n.pluginMediaElement,t=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0},events:{onReady:function(){n.pluginMediaElement.pluginApi=t;mejs.MediaPluginBridge.initPlugin(n.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,t,i)}}})},createEvent:function(n,t,i){if(i={type:i,target:t},n&&n.getDuration){t.currentTime=i.currentTime=n.getCurrentTime();t.duration=i.duration=n.getDuration();i.paused=t.paused;i.ended=t.ended;i.muted=n.isMuted();i.volume=n.getVolume()/100;i.bytesTotal=n.getVideoBytesTotal();i.bufferedBytes=n.getVideoBytesLoaded();var r=i.bufferedBytes/i.bytesTotal*i.duration;i.target.buffered=i.buffered={start:function(){return 0},end:function(){return r},length:1}}t.dispatchEvent(i.type,i)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=!0;this.iframeQueue.length>0;)this.createIframe(this.iframeQueue.pop())},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],t=document.getElementById(n),i=r.pluginMediaElement;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);n=r.containerId+"_callback";window[n]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",n);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t){var i={locale:{language:"",strings:{}},methods:{}};i.getLanguage=function(){return(i.locale.language||window.navigator.userLanguage||window.navigator.language).substr(0,2).toLowerCase()};typeof mejsL10n!="undefined"&&(i.locale.language=mejsL10n.language);i.methods.checkPlain=function(n){var t,r,i={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};n=String(n);for(t in i)i.hasOwnProperty(t)&&(r=RegExp(t,"g"),n=n.replace(r,i[t]));return n};i.methods.t=function(n,t){return i.locale.strings&&i.locale.strings[t.context]&&i.locale.strings[t.context][n]&&(n=i.locale.strings[t.context][n]),i.methods.checkPlain(n)};i.t=function(n,t){if(typeof n=="string"&&n.length>0){var r=i.getLanguage();return t=t||{context:r},i.methods.t(n,t)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."};};t.i18n=i}(document,mejs),function(n){typeof mejsL10n!="undefined"&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings),function(n){typeof n.de=="undefined"&&(n.de={Fullscreen:"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus",Close:"Schließen"})}(mejs.i18n.locale.strings),function(n){typeof n.zh=="undefined"&&(n.zh={Fullscreen:"全螢幕","Go Fullscreen":"全屏模式","Turn off Fullscreen":"退出全屏模式",Close:"關閉"})}(mejs.i18n.locale.strings);typeof jQuery!="undefined"?mejs.$=jQuery:typeof ender!="undefined"&&(mejs.$=ender),function(n){mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(n){return n.duration*.05},defaultSeekForwardInterval:function(n){return n.duration*.05},audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(n,t){t.paused||t.ended?n.play():n.pause()}},{keys:[38],action:function(n,t){t.setVolume(Math.min(t.volume+.1,1))}},{keys:[40],action:function(n,t){t.setVolume(Math.max(t.volume-.1,0))}},{keys:[37,227],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.currentTime-n.options.defaultSeekBackwardInterval(t),0);t.setCurrentTime(i)}}},{keys:[39,228],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.currentTime+n.options.defaultSeekForwardInterval(t),t.duration);t.setCurrentTime(i)}}},{keys:[70],action:function(n){typeof n.enterFullScreen!="undefined"&&(n.isFullScreen?n.exitFullScreen():n.enterFullScreen())}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){return(this instanceof mejs.MediaElementPlayer)?(this.$media=this.$node=n(t),this.node=this.media=this.$media[0],typeof this.node.player!="undefined")?this.node.player:(this.node.player=this,typeof i=="undefined"&&(i=this.$node.data("mejsoptions")),this.options=n.extend({},mejs.MepDefaults,i),this.id="mep_"+mejs.mepIndex++,mejs.players[this.id]=this,this.init(),this):new mejs.MediaElementPlayer(t,i)};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,i=mejs.MediaFeatures,u=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),r=t.media.tagName.toLowerCase();t.isDynamic=r!=="audio"&&r!=="video";t.isVideo=t.isDynamic?t.options.isVideo:r!=="audio"&&t.options.isVideo;i.isiPad&&t.options.iPadUseNativeControls||i.isiPhone&&t.options.iPhoneUseNativeControls?(t.$media.attr("controls","controls"),i.isiPad&&t.media.getAttribute("autoplay")!==null&&t.play()):i.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),t.container=n('<div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'"><div class="mejs-inner"><div class="mejs-mediaelement"><\/div><div class="mejs-layers"><\/div><div class="mejs-controls"><\/div><div class="mejs-clear"><\/div><\/div><\/div>').addClass(t.$media[0].className).insertBefore(t.$media),t.container.addClass((i.isAndroid?"mejs-android ":"")+(i.isiOS?"mejs-ios ":"")+(i.isiPad?"mejs-ipad ":"")+(i.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),i.isiOS?(i=t.$media.clone(),t.container.find(".mejs-mediaelement").append(i),t.$media.remove(),t.$node=t.$media=i,t.node=t.media=i[0]):t.container.find(".mejs-mediaelement").append(t.$media),t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),i=t.isVideo?"video":"audio",r=i.substring(0,1).toUpperCase()+i.substring(1),t.width=t.options[i+"Width"]>0||t.options[i+"Width"].toString().indexOf("%")>-1?t.options[i+"Width"]:t.media.style.width!==""&&t.media.style.width!==null?t.media.style.width:t.media.getAttribute("width")!==null?t.$media.attr("width"):t.options["default"+r+"Width"],t.height=t.options[i+"Height"]>0||t.options[i+"Height"].toString().indexOf("%")>-1?t.options[i+"Height"]:t.media.style.height!==""&&t.media.style.height!==null?t.media.style.height:t.$media[0].getAttribute("height")!==null?t.$media.attr("height"):t.options["default"+r+"Height"],t.setPlayerSize(t.width,t.height),u.pluginWidth=t.width,u.pluginHeight=t.height);mejs.MediaElement(t.$media[0],u);typeof t.container!="undefined"&&t.controlsAreVisible&&t.container.trigger("controlsshown")},showControls:function(n){var t=this;n=typeof n=="undefined"||n;t.controlsAreVisible||(n?(t.controls.css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.css("visibility","visible").css("display","block"),t.container.find(".mejs-control").css("visibility","visible").css("display","block"),t.controlsAreVisible=!0,t.container.trigger("controlsshown")),t.setControlsSize())},hideControls:function(t){var i=this;t=typeof t=="undefined"||t;!i.controlsAreVisible||i.options.alwaysShowControls||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block")})):(i.controls.css("visibility","hidden").css("display","block"),i.container.find(".mejs-control").css("visibility","hidden").css("display","block"),i.controlsAreVisible=!1,i.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(n){var t=this;n=typeof n!="undefined"?n:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){this.controlsTimer!==null&&(clearTimeout(this.controlsTimer),delete this.controlsTimer,this.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){this.killControlsTimer();this.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){this.showControls(!1);this.controlsEnabled=!0},meReady:function(n,t){var i=this,r=mejs.MediaFeatures,u=t.getAttribute("autoplay"),f;if(u=!(typeof u=="undefined"||u===null||u==="false"),!i.created){if(i.created=!0,i.media=n,i.domNode=t,!(r.isAndroid&&i.options.AndroidUseNativeControls)&&!(r.isiPad&&i.options.iPadUseNativeControls)&&!(r.isiPhone&&i.options.iPhoneUseNativeControls)){i.buildposter(i,i.controls,i.layers,i.media);i.buildkeyboard(i,i.controls,i.layers,i.media);i.buildoverlays(i,i.controls,i.layers,i.media);i.findTracks();for(f in i.options.features)if(r=i.options.features[f],i["build"+r])try{i["build"+r](i,i.controls,i.layers,i.media)}catch(e){}i.container.trigger("controlsready");i.setPlayerSize(i.width,i.height);i.setControlsSize();i.isVideo&&(mejs.MediaFeatures.hasTouch?i.$media.bind("touchstart",function(){i.controlsAreVisible?i.hideControls(!1):i.controlsEnabled&&i.showControls(!1)}):(i.clickToPlayPauseCallback=function(){i.options.clickToPlayPause&&(i.media.paused?i.play():i.pause())},i.media.addEventListener("click",i.clickToPlayPauseCallback,!1),i.container.bind("mouseenter mouseover",function(){i.controlsEnabled&&(i.options.alwaysShowControls||(i.killControlsTimer("enter"),i.showControls(),i.startControlsTimer(2500)))}).bind("mousemove",function(){i.controlsEnabled&&(i.controlsAreVisible||i.showControls(),i.options.alwaysShowControls||i.startControlsTimer(2500))}).bind("mouseleave",function(){!i.controlsEnabled||i.media.paused||i.options.alwaysShowControls||i.startControlsTimer(1e3)})),i.options.hideVideoControlsOnLoad&&i.hideControls(!1),u&&!i.options.alwaysShowControls&&i.hideControls(),i.options.enableAutosize&&i.media.addEventListener("loadedmetadata",function(n){i.options.videoHeight<=0&&i.domNode.getAttribute("height")===null&&!isNaN(n.target.videoHeight)&&(i.setPlayerSize(n.target.videoWidth,n.target.videoHeight),i.setControlsSize(),i.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));n.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==i.id||!i.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;i.hasFocus=!0},!1);i.media.addEventListener("ended",function(){if(i.options.autoRewind)try{i.media.setCurrentTime(0)}catch(n){}i.media.pause();i.setProgressRail&&i.setProgressRail();i.setCurrentRail&&i.setCurrentRail();i.options.loop?i.play():!i.options.alwaysShowControls&&i.controlsEnabled&&i.showControls()},!1);i.media.addEventListener("loadedmetadata",function(){i.updateDuration&&i.updateDuration();i.updateCurrent&&i.updateCurrent();i.isFullScreen||(i.setPlayerSize(i.width,i.height),i.setControlsSize())},!1);setTimeout(function(){i.setPlayerSize(i.width,i.height);i.setControlsSize()},50);i.globalBind("resize",function(){i.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||i.setPlayerSize(i.width,i.height);i.setControlsSize()});i.media.pluginType=="youtube"&&i.container.find(".mejs-overlay-play").hide()}u&&n.pluginType=="native"&&i.play();i.options.success&&(typeof i.options.success=="string"?window[i.options.success](i.media,i.domNode,i):i.options.success(i.media,i.domNode,i))}},handleError:function(n){this.controls.hide();this.options.error&&this.options.error(n)},setPlayerSize:function(t,i){if(typeof t!="undefined"&&(this.width=t),typeof i!="undefined"&&(this.height=i),this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"||parseInt(this.$node.css("max-width").replace(/px/,""),10)/this.$node.offsetParent().width()==1||this.$node[0].currentStyle&&this.$node[0].currentStyle.maxWidth==="100%"){var r=this.isVideo?this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:this.options.defaultVideoWidth:this.options.defaultAudioWidth,f=this.isVideo?this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.options.defaultVideoHeight:this.options.defaultAudioHeight,u=this.container.parent().closest(":visible").width();r=this.isVideo||!this.options.autosizeProgress?parseInt(u*f/r,10):f;isNaN(r)&&(r=this.container.parent().closest(":visible").height());this.container.parent()[0].tagName.toLowerCase()==="body"&&(u=n(window).width(),r=n(window).height());r!=0&&u!=0&&(this.container.width(u).height(r),this.$media.add(this.container.find(".mejs-shim")).width("100%").height("100%"),this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(u,r),this.layers.children(".mejs-layer").width("100%").height("100%"))}else this.container.width(this.width).height(this.height),this.layers.children(".mejs-layer").width(this.width).height(this.height);u=this.layers.find(".mejs-overlay-play");r=u.find(".mejs-overlay-button");u.height(this.container.height()-this.controls.height());r.css("margin-top","-"+(r.height()/2-this.controls.height()/2).toString()+"px")},setControlsSize:function(){var f=0,t=0,i=this.controls.find(".mejs-time-rail"),r=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var e=i.siblings(),o=e.last(),u=null;if(!(!this.container.is(":visible")||!i.length||!i.is(":visible"))){this.options&&!this.options.autosizeProgress&&(t=parseInt(i.css("width")));t!==0&&t||(e.each(function(){var t=n(this);t.css("position")!="absolute"&&t.is(":visible")&&(f+=n(this).outerWidth(!0))}),t=this.controls.width()-f-(i.outerWidth(!0)-i.width()));do i.width(t),r.width(t-(r.outerWidth(!0)-r.width())),o.css("position")!="absolute"&&(u=o.position(),t--);while(u!=null&&u.top>0&&t>0);this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()}},buildposter:function(t,i,r,u){var f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r);i=t.$media.attr("poster");t.options.poster!==""&&(i=t.options.poster);i!==""&&i!=null?this.setPoster(i):f.hide();u.addEventListener("play",function(){f.hide()},!1);t.options.showPosterWhenEnded&&t.options.autoRewind&&u.addEventListener("ended",function(){f.show()},!1)},setPoster:function(t){var i=this.container.find(".mejs-poster"),r=i.find("img");r.length==0&&(r=n('<img width="100%" height="100%" />').appendTo(i));r.attr("src",t);i.css({"background-image":"url("+t+")"})},buildoverlays:function(t,i,r,u){var s=this;if(t.isVideo){var f=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span><\/span><\/div><\/div>').hide().appendTo(r),e=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"><\/div><\/div>').hide().appendTo(r),o=n('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"><\/div><\/div>').appendTo(r).bind("click touchstart",function(){s.options.clickToPlayPause&&u.paused&&u.play()});u.addEventListener("play",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("playing",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("seeking",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("seeked",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||o.show()},!1);u.addEventListener("waiting",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("loadeddata",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("error",function(){f.hide();i.find(".mejs-time-buffering").hide();e.show();e.find("mejs-overlay-error").html("Error loading this resource")},!1)}},buildkeyboard:function(t,i,r,u){this.globalBind("keydown",function(n){var i,e;if(t.hasFocus&&t.options.enableKeyboard)for(i=0,e=t.options.keyActions.length;i<e;i++)for(var r=t.options.keyActions[i],f=0,o=r.keys.length;f<o;f++)if(n.keyCode==r.keys[f])return n.preventDefault(),r.action(t,u,n.keyCode),!1;return!0});this.globalBind("click",function(i){t.hasFocus=n(i.target).closest(".mejs-container").length!=0})},findTracks:function(){var t=this,i=t.$media.find("track");t.tracks=[];i.each(function(i,r){r=n(r);t.tracks.push({srclang:r.attr("srclang")?r.attr("srclang").toLowerCase():"",src:r.attr("src"),kind:r.attr("kind"),label:r.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(n){this.container[0].className="mejs-container "+n;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(n){}},load:function(){this.isLoaded||this.media.load();this.isLoaded=!0},setMuted:function(n){this.media.setMuted(n)},setCurrentTime:function(n){this.media.setCurrentTime(n)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(n){this.media.setVolume(n)},getVolume:function(){return this.media.volume},setSrc:function(n){this.media.setSrc(n)},remove:function(){var t,n;for(t in this.options.features)if(n=this.options.features[t],this["clean"+n])try{this["clean"+n](this)}catch(i){}this.isDynamic?this.$node.insertBefore(this.container):(this.$media.prop("controls",!0),this.$node.clone().show().insertBefore(this.container),this.$node.remove());this.media.pluginType!=="native"&&this.media.remove();delete mejs.players[this.id];typeof this.container=="object"&&this.container.remove();this.globalUnbind();delete this.node.player}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;f.indexOf(".")===0?(u.d.push(f),u.w.push(f)):u[i.test(t)?"w":"d"].push(f)}),u.d=u.d.join(" "),u.w=u.w.join(" "),u}var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(i,r,u){i=t(i,this.id);i.d&&n(document).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){i=t(i,this.id);i.d&&n(document).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();typeof jQuery!="undefined"&&(jQuery.fn.mediaelementplayer=function(n){return n===!1?this.each(function(){var n=jQuery(this).data("mediaelementplayer");n&&n.remove();jQuery(this).removeData("mediaelementplayer")}):this.each(function(){jQuery(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,n))}),this});n(document).ready(function(){n(".mejs-player").mediaelementplayer()});window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(n){n.extend(mejs.MepDefaults,{playpauseText:mejs.i18n.t("Play/Pause")});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){var f=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+this.id+'" title="'+this.options.playpauseText+'" aria-label="'+this.options.playpauseText+'"><\/button><\/div>').appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1});u.addEventListener("play",function(){f.removeClass("mejs-play").addClass("mejs-pause")},!1);u.addEventListener("playing",function(){f.removeClass("mejs-play").addClass("mejs-pause")},!1);u.addEventListener("pause",function(){f.removeClass("mejs-pause").addClass("mejs-play")},!1);u.addEventListener("paused",function(){f.removeClass("mejs-pause").addClass("mejs-play")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+this.id+'" title="'+this.options.stopText+'" aria-label="'+this.options.stopText+'"><\/button><\/div>').appendTo(i).click(function(){u.paused||u.pause();u.currentTime>0&&(u.setCurrentTime(0),u.pause(),i.find(".mejs-time-current").width("0px"),i.find(".mejs-time-handle").css("left","0px"),i.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0)),r.find(".mejs-poster").show())})}})}(mejs.$),function(n){n.extend(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){var f,e;n('<div class="mejs-time-rail"><span class="mejs-time-total"><span class="mejs-time-buffering"><\/span><span class="mejs-time-loaded"><\/span><span class="mejs-time-current"><\/span><span class="mejs-time-handle"><\/span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00<\/span><span class="mejs-time-float-corner"><\/span><\/span><\/span><\/div>').appendTo(i);i.find(".mejs-time-buffering").hide();f=this;e=i.find(".mejs-time-total");r=i.find(".mejs-time-loaded");var c=i.find(".mejs-time-current"),l=i.find(".mejs-time-handle"),o=i.find(".mejs-time-float"),a=i.find(".mejs-time-float-current"),h=function(n){n=n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.pageX;var i=e.offset(),r=e.outerWidth(!0),t=0,f=t=0;u.duration&&(n<i.left?n=i.left:n>r+i.left&&(n=r+i.left),f=n-i.left,t=f/r,t=t<=.02?0:t*u.duration,s&&t!==u.currentTime&&u.setCurrentTime(t),mejs.MediaFeatures.hasTouch||(o.css("left",f),a.html(mejs.Utility.secondsToTimeCode(t)),o.show()))},s=!1;e.bind("mousedown touchstart",function(n){if(n.which===1||n.which===0)return s=!0,h(n),f.globalBind("mousemove.dur touchmove.dur",function(n){h(n)}),f.globalBind("mouseup.dur touchend.dur",function(){s=!1;o.hide();f.globalUnbind(".dur")}),!1}).bind("mouseenter",function(){f.globalBind("mousemove.dur",function(n){h(n)});mejs.MediaFeatures.hasTouch||o.show()}).bind("mouseleave",function(){s||(f.globalUnbind(".dur"),o.hide())});u.addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);f.loaded=r;f.total=e;f.current=c;f.handle=l},setProgressRail:function(n){var t=n!=undefined?n.target:this.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(0)/t.duration:t&&t.bytesTotal!=undefined&&t.bytesTotal>0&&t.bufferedBytes!=undefined?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&n.total!=0&&(i=n.loaded/n.total);i!==null&&(i=Math.min(1,Math.max(0,i)),this.loaded&&this.total&&this.loaded.width(this.total.width()*i))},setCurrentRail:function(){if(this.media.currentTime!=undefined&&this.media.duration&&this.total&&this.handle){var n=Math.round(this.total.width()*this.media.currentTime/this.media.duration),t=n-Math.round(this.handle.outerWidth(!0)/2);this.current.width(n);this.handle.css("left",t)}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){n('<div class="mejs-time"><span class="mejs-currenttime">'+(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00")+"<\/span><\/div>").appendTo(i);this.currenttime=this.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){t.updateCurrent()},!1)},buildduration:function(t,i,r,u){i.children().last().find(".mejs-currenttime").length>0?n(this.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span>").appendTo(i.find(".mejs-time")):(i.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),n('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span><\/div>").appendTo(i));this.durationD=this.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){this.currenttime&&this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){this.container.toggleClass("mejs-long-video",this.media.duration>3600);this.durationD&&(this.options.duration>0||this.media.duration)&&this.durationD.html(mejs.Utility.secondsToTimeCode(this.options.duration>0?this.options.duration:this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){if(!((mejs.MediaFeatures.isAndroid||mejs.MediaFeatures.isiOS)&&this.options.hideVolumeOnTouchDevices)){var f=this,h=f.isVideo?f.options.videoVolume:f.options.audioVolume,s=h=="horizontal"?n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><\/div><div class="mejs-horizontal-volume-slider"><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/div>').appendTo(i):n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><div class="mejs-volume-slider"><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/div><\/div>').appendTo(i),o=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),e=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),l=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),c=function(n,t){if(o.is(":visible")||typeof t!="undefined")if(n=Math.max(0,n),n=Math.min(n,1),n==0?s.removeClass("mejs-mute").addClass("mejs-unmute"):s.removeClass("mejs-unmute").addClass("mejs-mute"),h=="vertical"){var i=e.height(),r=e.position(),u=i-i*n;l.css("top",Math.round(r.top+u-l.height()/2));y.height(i-u);y.css("top",r.top+u)}else i=e.width(),r=e.position(),i=i*n,l.css("left",Math.round(r.left+i-l.width()/2)),y.width(Math.round(i));else o.show(),c(n,!0),o.hide()},p=function(n){var t=null,i=e.offset();if(h=="vertical"){if(t=e.height(),parseInt(e.css("top").replace(/px/,""),10),t=(t-(n.pageY-i.top))/t,i.top==0||i.left==0)return}else t=e.width(),t=(n.pageX-i.left)/t;t=Math.max(0,t);t=Math.min(t,1);c(t);t==0?u.setMuted(!0):u.setMuted(!1);u.setVolume(t)},a=!1,v=!1;s.hover(function(){o.show();v=!0},function(){v=!1;a||h!="vertical"||o.hide()});o.bind("mouseover",function(){v=!0}).bind("mousedown",function(n){return p(n),f.globalBind("mousemove.vol",function(n){p(n)}),f.globalBind("mouseup.vol",function(){a=!1;f.globalUnbind(".vol");v||h!="vertical"||o.hide()}),a=!0,!1});s.find("button").click(function(){u.setMuted(!u.muted)});u.addEventListener("volumechange",function(){a||(u.muted?(c(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(c(u.volume),s.removeClass("mejs-unmute").addClass("mejs-mute")))},!1);f.container.is(":visible")&&(c(t.options.startVolume),t.options.startVolume===0&&u.setMuted(!0),u.pluginType==="native"&&u.setVolume(t.options.startVolume))}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});n.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,buildfullscreen:function(t,i,r,u){var f,e,s,h,l;if(t.isVideo){if(t.isInIframe=window.location!=window.parent.location,mejs.MediaFeatures.hasTrueNativeFullScreen&&(r=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},mejs.MediaFeatures.hasMozNativeFullScreen?t.globalBind(mejs.MediaFeatures.fullScreenEventName,r):t.container.bind(mejs.MediaFeatures.fullScreenEventName,r)),f=this,e=n('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+f.id+'" title="'+f.options.fullscreenText+'" aria-label="'+f.options.fullscreenText+'"><\/button><\/div>').appendTo(i),f.media.pluginType!=="native"&&(f.options.usePluginFullScreen||mejs.MediaFeatures.isFirefox))if(s=null,function(){var n=document.createElement("x"),i=document.documentElement,t=window.getComputedStyle;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",i.appendChild(n),t=t&&t(n,"").pointerEvents==="auto",i.removeChild(n),!!t):!1}()&&!mejs.MediaFeatures.isOpera){var c=!1,a=function(){if(c){for(var n in o)o[n].hide();e.css("pointer-events","");f.controls.css("pointer-events","");f.media.removeEventListener("click",f.clickToPlayPauseCallback);c=!1}},o={};for(i=["top","left","right","bottom"],l=function(){var i=e.offset().left-f.container.offset().left,n=e.offset().top-f.container.offset().top,u=e.outerWidth(!0),t=e.outerHeight(!0),r=f.container.width(),s=f.container.height();for(h in o)o[h].css({position:"absolute",top:0,left:0});o.top.width(r).height(n);o.left.width(i).height(t).css({top:n});o.right.width(r-i-u).height(t).css({top:n,left:i+u});o.bottom.width(r).height(s-t-n).css({top:n+t})},f.globalBind("resize",function(){l()}),h=0,r=i.length;h<r;h++)o[i[h]]=n('<div class="mejs-fullscreen-hover" />').appendTo(f.container).mouseover(a).hide();e.on("mouseover",function(){if(!f.isFullScreen){var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!1);e.css("pointer-events","none");f.controls.css("pointer-events","none");f.media.addEventListener("click",f.clickToPlayPauseCallback);for(h in o)o[h].show();l();c=!0}});u.addEventListener("fullscreenchange",function(){f.isFullScreen=!f.isFullScreen;f.isFullScreen?f.media.removeEventListener("click",f.clickToPlayPauseCallback):f.media.addEventListener("click",f.clickToPlayPauseCallback);a()});f.globalBind("mousemove",function(n){if(c){var t=e.offset();(n.pageY<t.top||n.pageY>t.top+e.outerHeight(!0)||n.pageX<t.left||n.pageX>t.left+e.outerWidth(!0))&&(e.css("pointer-events",""),f.controls.css("pointer-events",""),c=!1)}})}else e.on("mouseover",function(){s!==null&&(clearTimeout(s),delete s);var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}).on("mouseout",function(){s!==null&&(clearTimeout(s),delete s);s=setTimeout(function(){u.hideFullscreenButton()},1500)});else e.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen?t.exitFullScreen():t.enterFullScreen()});t.fullscreenBtn=e;f.globalBind("keydown",function(n){(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&n.keyCode==27&&t.exitFullScreen()})}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this,i;if(!(t.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||t.options.usePluginFullScreen))){if(n(document.documentElement).addClass("mejs-fullscreen"),normalHeight=t.container.height(),normalWidth=t.container.width(),t.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen)mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function r(){if(t.isNativeFullScreen){var u=(window.devicePixelRatio||1)*n(window).width(),i=screen.width;Math.abs(i-u)>i*.002?t.exitFullScreen():setTimeout(r,500)}},500);else if(mejs.MediaFeatures.hasSemiNativeFullScreen){t.media.webkitEnterFullscreen();return}if(t.isInIframe&&(i=t.options.newWindowCallback(this),i!==""))if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){t.isNativeFullScreen||(t.pause(),window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no"))},250);else{t.pause();window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);t.media.pluginType==="native"?t.$media.width("100%").height("100%"):(t.container.find(".mejs-shim").width("100%").height("100%"),t.media.setVideoSize(n(window).width(),n(window).height()));t.layers.children("div").width("100%").height("100%");t.fullscreenBtn&&t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=!0}},exitFullScreen:function(){clearTimeout(this.containerSizeTimeout);this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox?this.media.setFullscreen(!1):(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),n(document.documentElement).removeClass("mejs-fullscreen"),this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight),this.media.pluginType==="native"?this.$media.width(normalWidth).height(normalHeight):(this.container.find(".mejs-shim").width(normalWidth).height(normalHeight),this.media.setVideoSize(normalWidth,normalHeight)),this.layers.children("div").width(normalWidth).height(normalHeight),this.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),this.setControlsSize(),this.isFullScreen=!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,buildtracks:function(t,i,r,u){if(t.tracks.length!=0){var f;if(this.domNode.textTracks)for(f=this.domNode.textTracks.length-1;f>=0;f--)this.domNode.textTracks[f].mode="hidden";for(t.chapters=n('<div class="mejs-chapters mejs-layer"><\/div>').prependTo(r).hide(),t.captions=n('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover"><span class="mejs-captions-text"><\/span><\/div><\/div>').prependTo(r).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=n('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+this.id+'" title="'+this.options.tracksText+'" aria-label="'+this.options.tracksText+'"><\/button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("None")+"<\/label><\/li><\/ul><\/div><\/div>").appendTo(i),f=i=0;f<t.tracks.length;f++)t.tracks[f].kind=="subtitles"&&i++;for(this.options.toggleCaptionsButtonWhenOnlyOne&&i==1?t.captionsButton.on("click",function(){t.setTrack(t.selectedTrack==null?t.tracks[0].srclang:"none")}):t.captionsButton.hover(function(){n(this).find(".mejs-captions-selector").css("visibility","visible")},function(){n(this).find(".mejs-captions-selector").css("visibility","hidden")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)}),t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){u.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,f=0;f<t.tracks.length;f++)t.tracks[f].kind=="subtitles"&&t.addTrackButton(t.tracks[f].srclang,t.tracks[f].label);t.loadNextTrack();u.addEventListener("timeupdate",function(){t.displayCaptions()},!1);t.options.slidesSelector!=""&&(t.slidesContainer=n(t.options.slidesSelector),u.addEventListener("timeupdate",function(){t.displaySlides()},!1));u.addEventListener("loadedmetadata",function(){t.displayChapters()},!1);t.container.hover(function(){t.hasChapters&&(t.chapters.css("visibility","visible"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).css("visibility","hidden");n(this).css("display","block")})});t.node.getAttribute("autoplay")!==null&&t.chapters.css("visibility","hidden")}},setTrack:function(n){var t;if(n=="none")this.selectedTrack=null,this.captionsButton.removeClass("mejs-captions-enabled");else for(t=0;t<this.tracks.length;t++)if(this.tracks[t].srclang==n){this.selectedTrack==null&&this.captionsButton.addClass("mejs-captions-enabled");this.selectedTrack=this.tracks[t];this.captions.attr("lang",this.selectedTrack.srclang);this.displayCaptions();break}},loadNextTrack:function(){this.trackToLoad++;this.trackToLoad<this.tracks.length?(this.isLoadingTrack=!0,this.loadTrack(this.trackToLoad)):(this.isLoadingTrack=!1,this.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t];n.ajax({url:i.src,dataType:"text",success:function(n){i.entries=typeof n=="string"&&/<tt\s+xml/ig.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvvt.parse(n);i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack();i.kind=="chapters"&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);i.kind=="slides"&&r.setupSlides(i)},error:function(){r.loadNextTrack()}})},enableTrackButton:function(t,i){i===""&&(i=mejs.language.codes[t]||t);this.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);this.options.startLanguage==t&&n("#"+this.id+"_captions_"+t).click();this.adjustLanguageBox()},addTrackButton:function(t,i){i===""&&(i=mejs.language.codes[t]||t);this.captionsButton.find("ul").append(n('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+this.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+this.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=!1;if(this.options.hideCaptionsButtonWhenEmpty){for(i=0;i<this.tracks.length;i++)if(this.tracks[i].kind=="subtitles"){n=!0;break}n||(this.captionsButton.hide(),this.setControlsSize())}},displayCaptions:function(){if(typeof this.tracks!="undefined"){var n,t=this.selectedTrack;if(t!=null&&t.isLoaded)for(n=0;n<t.entries.times.length;n++)if(this.media.currentTime>=t.entries.times[n].start&&this.media.currentTime<=t.entries.times[n].stop){this.captionsText.html(t.entries.text[n]);this.captions.show().height(0);return}this.captions.hide()}},setupSlides:function(n){this.slides=n;this.slides.entries.imgs=[this.slides.entries.text.length];this.showSlide(0)},showSlide:function(t){if(!(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined")){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];typeof i=="undefined"||typeof i.fadeIn=="undefined"?r.slides.entries.imgs[t]=i=n('<img src="'+u+'">').on("load",function(){i.appendTo(r.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if(typeof this.slides!="undefined")for(var t=this.slides,n=0;n<t.entries.times.length;n++)if(this.media.currentTime>=t.entries.times[n].start&&this.media.currentTime<=t.entries.times[n].stop){this.showSlide(n);break}},displayChapters:function(){for(var n=0;n<this.tracks.length;n++)if(this.tracks[n].kind=="chapters"&&this.tracks[n].isLoaded){this.drawChapters(this.tracks[n]);this.hasChapters=!0;break}},drawChapters:function(t){var u=this,i,r,f=r=0;for(u.chapters.empty(),i=0;i<t.entries.times.length;i++)r=t.entries.times[i].stop-t.entries.times[i].start,r=Math.floor(r/u.media.duration*100),(r+f>100||i==t.entries.times.length-1&&r+f<100)&&(r=100-f),u.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+r.toString()+'%;"><div class="mejs-chapter-block'+(i==t.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+t.entries.text[i]+'<\/span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[i].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop)+"<\/span><\/div><\/div>")),f+=r;u.chapters.find("div.mejs-chapter").click(function(){u.media.setCurrentTime(parseFloat(n(this).attr("rel")));u.media.paused&&u.media.play()});u.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){var i=0,f,u,r;for(t=mejs.TrackFormatParser.split2(t,/\r?\n/),f={text:[],times:[]};i<t.length;i++)if(this.pattern_identifier.exec(t[i])&&(i++,(u=this.pattern_timecode.exec(t[i]))&&i<t.length)){for(i++,r=t[i],i++;t[i]!==""&&i<t.length;)r=r+"\n"+t[i],i++;r=n.trim(r).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");f.text.push(r);f.times.push({start:mejs.Utility.convertSMPTEtoSeconds(u[1])==0?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}return f}},dfxp:{parse:function(t){var i,u,f,r,e,o;if(t=n(t).filter("tt"),i=0,i=t.children("div").eq(0),u=i.find("p"),i=t.find("#"+i.attr("style")),t={text:[],times:[]},i.length&&(r=i.removeAttr("id").get(0).attributes,r.length))for(f={},i=0;i<r.length;i++)f[r[i].name.split(":")[1]]=r[i].value;for(i=0;i<u.length;i++){if(r={start:null,stop:null,style:null},u.eq(i).attr("begin")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("begin"))),!r.start&&u.eq(i-1).attr("end")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i-1).attr("end"))),u.eq(i).attr("end")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("end"))),!r.stop&&u.eq(i+1).attr("begin")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i+1).attr("begin"))),f){e="";for(o in f)e+=o+":"+f[o]+";"}e&&(r.style=e);r.start==0&&(r.start=.2);t.times.push(r);r=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");t.text.push(r);t.times.start==0&&(t.times.start=2)}return t}},split2:function(n,t){return n.split(t)}};"x\n\ny".split(/\n/gi).length!=3&&(mejs.TrackFormatParser.split2=function(n,t){for(var u=[],i="",r=0;r<n.length;r++)i+=n.substring(r,r+1),t.test(i)&&(u.push(i.replace(t,"")),i="");return u.push(i),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return typeof n.enterFullScreen=="undefined"?null:n.isFullScreen?mejs.i18n.t("Turn off Fullscreen"):mejs.i18n.t("Go Fullscreen")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return n.media.muted?mejs.i18n.t("Unmute"):mejs.i18n.t("Mute")},click:function(n){n.media.muted?n.setMuted(!1):n.setMuted(!0)}},{isSeparator:!0},{render:function(){return mejs.i18n.t("Download Video")},click:function(n){window.location.href=n.media.currentSrc}}]});n.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(t){t.contextMenu=n('<div class="mejs-contextmenu"><\/div>').appendTo(n("body")).hide();t.container.bind("contextmenu",function(n){if(t.isContextMenuEnabled)return n.preventDefault(),t.renderContextMenu(n.clientX-1,n.clientY-1),!1});t.container.bind("click",function(){t.contextMenu.hide()});t.contextMenu.bind("mouseleave",function(){t.startContextMenuTimer()})},cleancontextmenu:function(n){n.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var n=this;n.killContextMenuTimer();n.contextMenuTimer=setTimeout(function(){n.hideContextMenu();n.killContextMenuTimer()},750)},killContextMenuTimer:function(){var n=this.contextMenuTimer;n!=null&&(clearTimeout(n),delete n)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;u<s;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),o!=null&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+Math.random()*1e6+'">'+o+"<\/div>"));r.contextMenu.empty().append(n(f)).css({top:i,left:t}).show();r.contextMenu.find(".mejs-contextmenu-item").each(function(){var i=n(this),u=parseInt(i.data("itemindex"),10),t=r.options.contextMenuItems[u];typeof t.show!="undefined"&&t.show(i,r);i.click(function(){typeof t.click!="undefined"&&t.click(r);r.contextMenu.hide()})});setTimeout(function(){r.killControlsTimer("rev3")},100)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});n.extend(MediaElementPlayer.prototype,{buildpostroll:function(t,i,r){var u=this.container.find('link[rel="postroll"]').attr("href");typeof u!="undefined"&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+this.options.postrollCloseText+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),this.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:u,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});t.postroll.show()},!1))}})}(mejs.$);jQuery(function(n){function r(){var n=250,t=mina.easeinout;[].slice.call(document.querySelectorAll(".shape-item")).forEach(function(i){var f=Snap(i.querySelector("svg")),r=f.select("path"),u={from:r.attr("d"),to:i.getAttribute("data-path-hover")};i.addEventListener("mouseenter",function(){r.animate({path:u.to},n,t)});i.addEventListener("mouseleave",function(){r.animate({path:u.from},n,t)})})}var t,i;n(document).on("click",".fhmm .dropdown-menu",function(n){n.stopPropagation()});(function(n){var t=n(".project-feed"),i=n(".project-feed-filter");n(window).smartresize(function(){t.isotope({filter:"*",resizable:!0,layoutMode:"sloppyMasonry",itemSelector:".project-item"})});t.imagesLoaded(function(){n(window).smartresize()});i.find("a").click(function(){var r=n(this).attr("data-filter");return i.find("a").removeClass("btn-primary").addClass("btn-default"),n(this).addClass("btn-primary").removeClass("btn-default"),t.isotope({filter:r,animationOptions:{animationDuration:750,easing:"linear",queue:!1}}),!1})})(jQuery);n(".popup-link").magnificPopup({type:"image",removalDelay:300,mainClass:"mfp-fade"});n(".flickr-feed").jflickrfeed({limit:9,qstrings:{id:"52617155@N08"},itemTemplate:'<li><a href="{{link}}" target="_blank"><img src="{{image_s}}" alt="{{title}}" /><\/a><\/li>'},function(){n(".flickr-feed li:nth-child(3n)").addClass("nomargin")});t=n("#owl-carousel");t.owlCarousel({items:4,itemsDesktop:[1e3,4],itemsDesktopSmall:[900,2],itemsTablet:[600,2],itemsMobile:[480,1],pagination:!1});n("#carousel-next").click(function(){t.trigger("owl.next")});n("#carousel-prev").click(function(){t.trigger("owl.prev")}),function(n){var t=n(".owl-carousel-3");t.owlCarousel({items:3,itemsDesktop:[1e3,2],itemsDesktopSmall:[900,2],itemsTablet:[600,2],itemsMobile:[480,1],pagination:!1});n("#carousel-next-alt").click(function(){t.trigger("owl.next")});n("#carousel-prev-alt").click(function(){t.trigger("owl.prev")})}(jQuery);n(".owl-slider").owlCarousel({navigation:!0,slideSpeed:300,paginationSpeed:400,singleItem:!0,navigationText:["<i class='fa fa-chevron-left'><\/i>","<i class='fa fa-chevron-right'><\/i>"],pagination:!0,autoPlay:!1});n(".video-holder, .audio-holder").fitVids();n(".title-accent > h3").each(function(){var t=n(this);t.html(t.html().replace(/^(\w+)/,"<span>$1<\/span>"))});n("#back-top").hide();n(window).width()>991&&(n("body").append('<div id="back-top"><a href="#top"><i class="fa fa-chevron-up"><\/i><\/a><\/div>'),n(window).scroll(function(){n(this).scrollTop()>100?n("#back-top").fadeIn():n("#back-top").fadeOut()}),n("#back-top a").click(function(t){return t.preventDefault(),n("body,html").animate({scrollTop:0},400),!1}));i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);i==!1&&n("[data-animation]").each(function(){var t=n(this);t.addClass("animation");!n("html").hasClass("no-csstransitions")&&n(window).width()>767?t.appear(function(){var n=t.attr("data-animation-delay")?t.attr("data-animation-delay"):1;n>1&&t.css("animation-delay",n+"ms");t.addClass(t.attr("data-animation"));setTimeout(function(){t.addClass("animation-visible")},n)},{accX:0,accY:-170}):t.addClass("animation-visible")});n(window).on("scroll",function(){});r();n("audio,video").mediaelementplayer({videoWidth:"100%",videoHeight:"100%",audioWidth:"100%",features:["playpause","progress","tracks","volume"],videoVolume:"horizontal"}),function(){var t=n(".masonry-feed");n(window).smartresize(function(){t.isotope({resizable:!0,layoutMode:"sloppyMasonry",itemSelector:".masonry-item"})});t.imagesLoaded(function(){n(window).smartresize()})}()});$(window).load(function(){$(".parallax-bg").get(0)&&$(window).width()>991&&(Modernizr.touch?$(".parallax-bg").addClass("disabled"):$(window).stellar({responsive:!0,scrollProperty:"scroll",parallaxElements:!1,horizontalScrolling:!1,horizontalOffset:0,verticalOffset:0}))})