From e24683a8b5fce129e0f7370fe179e9be1df6e067 Mon Sep 17 00:00:00 2001 From: danyj Date: Thu, 28 Mar 2019 22:27:57 +0100 Subject: [PATCH] smooth scroll 1.4.9 passive listener fix --- assets/js/thz.site.min.js | 2 +- assets/js/thz.site.plugins.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/thz.site.min.js b/assets/js/thz.site.min.js index 8e75c2a..e762f6a 100644 --- a/assets/js/thz.site.min.js +++ b/assets/js/thz.site.min.js @@ -1,3 +1,3 @@ -window.onerror=function(t,e,i,n,o){var s=n?"\ncolumn: "+n:"";s+=o?"\nerror: "+o:"",e+=":"+i,console.log("Error: "+t+"\nurl: "+e+"\nline: "+i+s);for(var r=document.getElementsByClassName("thz-items-grid-holder"),a=null!==r?r.length:0,l=0;l").outerWidth(1).jquery||a.each(["Width","Height"],function(t,i){function n(t,e,i,n){return a.each(o,function(){e-=parseFloat(a.css(t,"padding"+this))||0,i&&(e-=parseFloat(a.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(a.css(t,"margin"+this))||0)}),e}var o="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),r={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+i]=function(t){return t===l?r["inner"+i].call(this):this.each(function(){a(this).css(s,n(this,t)+"px")})},a.fn["outer"+i]=function(t,e){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){a(this).css(s,n(this,t,!0,e)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(e=a.fn.removeData,function(t){return arguments.length?e.call(this,a.camelCase(t)):e.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(t,e,i){var n,o=a.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i){var n,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},hasScroll:function(t,e){if("hidden"===a(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",n=!1;return 0n.max?n.max:t)}function a(r){var a=f(),l=a._rgba=[];return r=r.toLowerCase(),v(t,function(t,e){var i,n=e.re.exec(r),o=n&&e.parse(n),s=e.space||"rgba";return o?(i=a[s](o),a[m[s].cache]=i[m[s].cache],l=a._rgba=i._rgba,!1):u}),l.length?("0,0,0,0"===l.join()&&h.extend(l,c.transparent),a):c[r]}function l(t,e,i){return 6*(i=(i+1)%1)<1?t+6*(e-t)*i:2*i<1?e:3*i<2?t+6*(e-t)*(2/3-i):t}var c,p=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],f=h.Color=function(t,e,i,n){return new h.Color.fn.parse(t,e,i,n)},m={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},r=f.support={},e=h("

")[0],v=h.each;e.style.cssText="background-color:rgba(1,1,1,.5)",r.rgba=-1s.mod/2?n+=s.mod:n-o>s.mod/2&&(n-=s.mod)),d((o-n)*r+n,e)))}),this[e](c)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=f(t)._rgba;return f(h.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=h.map(this._rgba,function(t,e){return null==t?2i;i++)null!==e[i]&&t.data(a+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;e.length>n;n++)null!==e[n]&&(void 0===(i=t.data(a+e[n]))&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=h("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return i.wrap(t),(i[0]===o||h.contains(i[0],o))&&h(o).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(h.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),h.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===e||h.contains(t[0],e))&&h(e).focus()),t},setTransition:function(n,t,o,s){return s=s||{},h.each(t,function(t,e){var i=n.cssUnit(e);0t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),h.each(i,function(t,e){h.easing["easeIn"+t]=e,h.easing["easeOut"+t]=function(t){return 1-e(1-t)},h.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}})}(jQuery),function(m){var g=/up|down|vertical/,v=/up|left|vertical|horizontal/;m.effects.effect.blind=function(t,e){var i,n,o,s=m(this),r=["position","top","bottom","left","right","height","width"],a=m.effects.setMode(s,t.mode||"hide"),l=t.direction||"up",c=g.test(l),h=c?"height":"width",u=c?"top":"left",d=v.test(l),p={},f="show"===a;s.parent().is(".ui-effects-wrapper")?m.effects.save(s.parent(),r):m.effects.save(s,r),s.show(),n=(i=m.effects.createWrapper(s).css({overflow:"hidden"}))[h](),o=parseFloat(i.css(u))||0,p[h]=f?n:0,d||(s.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),p[u]=f?o:n+o),f&&(i.css(h,0),d||i.css(u,o+n)),i.animate(p,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===a&&s.hide(),m.effects.restore(s,r),m.effects.removeWrapper(s),e()}})}}(jQuery),function(d){d.effects.effect.clip=function(t,e){var i,n,o,s=d(this),r=["position","top","bottom","left","right","height","width"],a="show"===d.effects.setMode(s,t.mode||"hide"),l="vertical"===(t.direction||"vertical"),c=l?"height":"width",h=l?"top":"left",u={};d.effects.save(s,r),s.show(),i=d.effects.createWrapper(s).css({overflow:"hidden"}),o=(n="IMG"===s[0].tagName?i:s)[c](),a&&(n.css(c,0),n.css(h,o/2)),u[c]=a?o:0,u[h]=a?0:o/2,n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){a||s.hide(),d.effects.restore(s,r),d.effects.removeWrapper(s),e()}})}}(jQuery),function(u){u.effects.effect.drop=function(t,e){var i,n=u(this),o=["position","top","bottom","left","right","opacity","height","width"],s=u.effects.setMode(n,t.mode||"hide"),r="show"===s,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a?"pos":"neg",h={opacity:r?1:0};u.effects.save(n,o),n.show(),u.effects.createWrapper(n),i=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===c?-i:i),h[l]=(r?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+i,n.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===s&&n.hide(),u.effects.restore(n,o),u.effects.removeWrapper(n),e()}})}}(jQuery),function(v){v.effects.effect.explode=function(t,e){function i(){g.push(this),g.length===c*h&&(u.css({visibility:"visible"}),v(g).remove(),d||u.hide(),e())}var n,o,s,r,a,l,c=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=c,u=v(this),d="show"===v.effects.setMode(u,t.mode||"hide"),p=u.show().css("visibility","hidden").offset(),f=Math.ceil(u.outerWidth()/h),m=Math.ceil(u.outerHeight()/c),g=[];for(n=0;n").css({position:"absolute",visibility:"visible",left:-o*f,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:s+(d?a*f:0),top:r+(d?l*m:0),opacity:d?0:1}).animate({left:s+(d?0:a*f),top:r+(d?0:l*m),opacity:d?1:0},t.duration||500,t.easing,i)}}(jQuery),function(o){o.effects.effect.fade=function(t,e){var i=o(this),n=o.effects.setMode(i,t.mode||"toggle");i.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}}(jQuery),function(v){v.effects.effect.fold=function(t,e){var i,n,o=v(this),s=["position","top","bottom","left","right","height","width"],r=v.effects.setMode(o,t.mode||"hide"),a="show"===r,l="hide"===r,c=t.size||15,h=/([0-9]+)%/.exec(c),u=!!t.horizFirst,d=a!==u,p=d?["width","height"]:["height","width"],f=t.duration/2,m={},g={};v.effects.save(o,s),o.show(),i=v.effects.createWrapper(o).css({overflow:"hidden"}),n=d?[i.width(),i.height()]:[i.height(),i.width()],h&&(c=parseInt(h[1],10)/100*n[l?0:1]),a&&i.css(u?{height:0,width:c}:{height:c,width:0}),m[p[0]]=a?n[0]:c,g[p[1]]=a?n[1]:0,i.animate(m,f,t.easing).animate(g,f,t.easing,function(){l&&o.hide(),v.effects.restore(o,s),v.effects.removeWrapper(o),e()})}}(jQuery),function(u){u.effects.effect.slide=function(t,e){var i,n=u(this),o=["position","top","bottom","left","right","width","height"],s=u.effects.setMode(n,t.mode||"show"),r="show"===s,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,h={};u.effects.save(n,o),n.show(),i=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),u.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,c?isNaN(i)?"-"+i:-i:i),h[l]=(r?c?"+=":"-=":c?"-=":"+=")+i,n.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===s&&n.hide(),u.effects.restore(n,o),u.effects.removeWrapper(n),e()}})}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?exports=e(require("jquery")):e(jQuery)}(function(e){function i(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}void 0!==e.easing&&(e.easing.jswing=e.easing.swing);var n=Math.pow,o=Math.sqrt,s=Math.sin,r=Math.cos,a=Math.PI,l=1.70158,c=1.525*l,h=2*a/3,u=2*a/4.5;e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-n(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-n(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-n(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-n(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-n(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-n(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-n(-2*t+2,5)/2},easeInSine:function(t){return 1-r(t*a/2)},easeOutSine:function(t){return s(t*a/2)},easeInOutSine:function(t){return-(r(a*t)-1)/2},easeInExpo:function(t){return 0===t?0:n(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-n(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?n(2,20*t-10)/2:(2-n(2,-20*t+10))/2},easeInCirc:function(t){return 1-o(1-n(t,2))},easeOutCirc:function(t){return o(1-n(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-o(1-n(2*t,2)))/2:(o(1-n(-2*t+2,2))+1)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-n(2,10*t-10)*s((10*t-10.75)*h)},easeOutElastic:function(t){return 0===t?0:1===t?1:n(2,-10*t)*s((10*t-.75)*h)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-n(2,20*t-10)*s((20*t-11.125)*u)/2:n(2,-20*t+10)*s((20*t-11.125)*u)/2+1},easeInBack:function(t){return(l+1)*t*t*t-l*t*t},easeOutBack:function(t){return 1+(l+1)*n(t-1,3)+l*n(t-1,2)},easeInOutBack:function(t){return t<.5?n(2*t,2)*(7.189819*t-c)/2:(n(2*t-2,2)*((c+1)*(2*t-2)+c)+2)/2},easeInBounce:function(t){return 1-i(1-t)},easeOutBounce:i,easeInOutBounce:function(t){return t<.5?(1-i(1-2*t))/2:(1+i(2*t-1))/2}})}),function(t){function e(){}function i(c){if(c){var h="undefined"==typeof console?e:function(t){console.error(t)};return c.bridget=function(t,e){var a,l,i;(i=e).prototype.option||(i.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),a=t,l=e,c.fn[a]=function(e){if("string"!=typeof e)return this.each(function(){var t=c.data(this,a);t?(t.option(e),t._init()):(t=new l(this,e),c.data(this,a,t))});for(var t=u.call(arguments,1),i=0,n=this.length;i
",i+="",y(".thz-items-grid-categories").append(i)}})}}),this.ThzMasonryCats())},ThzMasonryNewitems:function(t,e,i){var n=this,o=!!i&&i.replace(".","");i&&"category_all"!=i&&(t=t.sort(function(t,e){return y(e).hasClass(o)-y(t).hasClass(o)})),t.imagesLoaded(function(){t.find(".thz-grid-item-in").addClass("thz-new-grid-item"),!0===n.settings.masonry?(n.grid.append(t).isotope("appended",t),n.ThzMasnorySizeItems()):(n.grid.hasClass("thz-timeline-double")?t.each(function(t,e){y(e).hasClass("thz-timeline-item-left")?n.grid.find(".thz-timeline-left").append(e):n.grid.find(".thz-timeline-right").append(e)}):n.grid.append(t),n.ThzPozLoader()),n.ThzMasonryItemsEffects(t,e)})}}),y.fn[i]=function(t){return this.each(function(){y.data(this,"plugin_"+i)?e.prototype[t]&&y.data(this,"plugin_"+i)[t]():y.data(this,"plugin_"+i,new e(this,t))})}}(jQuery,window,document),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(n){"use strict";function o(t,e){this.$el=n(t),this.options=n.extend(!0,{},this.defaults,e),this.isVisible=!1,this.$hoverElem=this.$el.find(this.options.hoverElem),this.transitionProp="all "+this.options.speed+"ms "+this.options.easing,this.support=this._supportsTransitions(),this._loadEvents()}o.prototype={defaults:{speed:300,easing:"ease",hoverDelay:0,inverse:!1,hoverElem:"div"},constructor:o,_supportsTransitions:function(){if("undefined"!=typeof Modernizr)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;no+this.options.directionLockThreshold?this.directionLocked="h":o>=n+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);r=0}r=this.hasHorizontalScroll?r:0,a=this.hasVerticalScroll?a:0,e=this.x+r,i=this.y+a,(0-this.scrollerWidth;){for(this.pages[a]=[],o=t=0;o>-this.scrollerHeight;)this.pages[a][t]={x:d.max(c,this.maxScrollX),y:d.max(o,this.maxScrollY),width:h,height:u,cx:c-i,cy:o-n},o-=u,t++;c-=h,a++}else for(t=(s=this.options.snap).length,e=-1;athis.maxScrollX&&l++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||d.max(d.max(d.min(d.abs(this.x-this.startX),1e3),d.min(d.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,n=this.pages.length,o=0;if(d.abs(t-this.absStartX)=this.pages[i][0].cx){t=this.pages[i][0].x;break}for(n=this.pages[i].length;o=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i==this.currentPage.pageX&&((i+=this.directionX)<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o==this.currentPage.pageY&&((o+=this.directionY)<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},goToPage:function(t,e,i,n){n=n||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,s=this.pages[t][e].y;i=void 0===i?this.options.snapSpeed||d.max(d.max(d.min(d.abs(o-this.x),1e3),d.min(d.abs(s-this.y),1e3)),300):i,this.currentPage={x:o,y:s,pageX:t,pageY:e},this.scrollTo(o,s,i,n)},next:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;++i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this.goToPage(i,n,t,e)},prev:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;--i<0&&this.hasVerticalScroll&&(i=0,n--),this.goToPage(i,n,t,e)},_initKeys:function(t){var e,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(e in this.options.keyBindings)"string"==typeof this.options.keyBindings[e]&&(this.options.keyBindings[e]=this.options.keyBindings[e].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(e in i)this.options.keyBindings[e]=this.options.keyBindings[e]||i[e];m.addEvent(s,"keydown",this),this.on("destroy",function(){m.removeEvent(s,"keydown",this)})},_key:function(t){if(this.enabled){var e,i=this.options.snap,n=i?this.currentPage.pageX:this.x,o=i?this.currentPage.pageY:this.y,s=m.getTime(),r=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(d.round(e.x),d.round(e.y)),this.isInTransition=!1),this.keyAcceleration=s-r<200?d.min(this.keyAcceleration+.25,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?n+=i?1:this.wrapperWidth:o+=i?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?n-=i?1:this.wrapperWidth:o-=i?1:this.wrapperHeight;break;case this.options.keyBindings.end:n=i?this.pages.length-1:this.maxScrollX,o=i?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:o=n=0;break;case this.options.keyBindings.left:n+=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:o+=i?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:n-=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:o-=i?1:5+this.keyAcceleration>>0;break;default:return}i?this.goToPage(n,o):(0this.maxBoundaryX?t="scale"==this.options.shrink?(this.width=d.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",this.maxPosX+this.indicatorWidth-this.width):this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),ethis.maxBoundaryY?e="scale"==this.options.shrink?(this.height=d.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",this.maxPosY+this.indicatorHeight-this.height):this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=e,this.scroller.options.useTransform?this.indicatorStyle[m.style.transform]="translate("+t+"px,"+e+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=e+"px")},_pos:function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=this.options.listenX?d.round(t/this.sizeRatioX):this.scroller.x,e=this.options.listenY?d.round(e/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=t?250:500,n=t?0:300;t=t?"1":"0",this.wrapperStyle[m.style.transitionDuration]=i+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),n)}}},t.utils=m,"undefined"!=typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(function(){return t}):s.IScroll=t}(window,document,Math),function(e,i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t,e,e.document)}):"object"==typeof module&&module.exports?module.exports=i(require("jquery"),e,e.document):i(jQuery,e,e.document)}("undefined"!=typeof window?window:this,function(h,o,s,u){"use strict";var r,c,d,p,f,m,g=[],v=[],y=[],w=[],b=0,a=0,x=1,S=!1,T=h(o),k=T.scrollTop(),C=!1,_=!1,E=!1,z=!1,P=[],I=(new Date).getTime(),l=!0,A=!1,M=0,O="onwheel"in s?"wheel":s.onmousewheel!==u?"mousewheel":"DOMMouseScroll",L={section:".section",sectionName:"section-name",interstitialSection:"",easing:"easeOutExpo",scrollSpeed:1100,offset:0,scrollbars:!0,target:"html,body",standardScrollElements:!1,setHeights:!0,overflowScroll:!0,updateHash:!0,touchScroll:!0,delay:0,before:function(){},after:function(){},afterResize:function(){},afterRender:function(){}};function $(){return T.height()+L.offset}function j(t,e,i,n){if(a===t&&(i=!1),!0===z)return!0;if(v[t]){if(!(C=!1)===l&&(L.afterRender(),l=!1),i&&"function"==typeof L.before&&!1===L.before(t,y))return!0;if(x=1,M=g[t],!1===l&&t div").outerHeight()>$()){var l=a.attr("id"),c=new IScroll("#"+l,{mouseWheel:!0,interactiveScrollbars:!0,shrinkScrollbars:"scale",fadeScrollbars:!0,scrollbars:"custom",probeType:2,keyBindings:!0});c.on("scroll",function(){0!=this.y&&this.maxScrollY!=this.y||(c&&(c.destroy(),c=null),j(t,e,i,n),setTimeout(function(){a.find(".thz-section-holder").css({transform:""})},L.scrollSpeed))})}else j(t,e,i,n)}function H(o){function t(t){for(var e=0,i=o.slice(Math.max(o.length-t,1)),n=0;nparseInt(g[b]))}function l(){return!(w[b]&&(k=T.scrollTop(),d=$()+32,kMath.abs(f.touches.touchstart.x-f.touches.touchmove.x)&&(t.preventDefault(),f.touches.direction="y",f.options.timeStamp+f.options.timeGap<(new Date).getTime()&&0==f.touches.touchend&&(f.touches.touchend=!0,-1f.options.distance&&(f.touches.touchstart.yf.options.distance&&(f.touches.touchstart.yx?(e(parseInt(g[b])+d*x),x+=1):e(parseInt(g[b])+(y[b].outerHeight()-d))))},up:function(){0<=b&&(a()&&0s[0]&&(s[1]+1>s[0]&&i.push("-"),i.push(c(s[1])));return i.push("]"),i.join("")}function e(t){for(var e=t.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=e.length,n=[],o=0,s=0;o/,q])):e.push(["com",/^#[^\n\r]*/,q,"#"])),t.cStyleComments&&(i.push(["com",/^\/\/[^\n\r]*/,q]),i.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q])),t.regexLiterals&&i.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]),(n=t.types)&&i.push(["typ",n]),(t=(""+t.keywords).replace(/^ | $/g,"")).length&&i.push(["kwd",RegExp("^(?:"+t.replace(/[\s,]+/g,"|")+")\\b"),q]),e.push(["pln",/^\s+/,q," \r\n\t "]),i.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]),o(e,i)}function f(t,e){function o(t){switch(t.nodeType){case 1:if(r.test(t.className))break;if("BR"===t.nodeName)s(t),t.parentNode&&t.parentNode.removeChild(t);else for(t=t.firstChild;t;t=t.nextSibling)o(t);break;case 3:case 4:if(c){var e=t.nodeValue,i=e.match(a);if(i){var n=e.substring(0,i.index);t.nodeValue=n,(e=e.substring(i.index+i[0].length))&&t.parentNode.insertBefore(l.createTextNode(e),t.nextSibling),s(t),n||t.parentNode.removeChild(t)}}}}function s(t){for(;!t.nextSibling;)if(!(t=t.parentNode))return;var e;for(t=function t(e,i){var n=i?e.cloneNode(!1):e;if(o=e.parentNode){var o=t(o,1),s=e.nextSibling;o.appendChild(n);for(var r=s;r;r=s)s=r.nextSibling,o.appendChild(r)}return n}(t.nextSibling,0);(e=t.parentNode)&&1===e.nodeType;)t=e;n.push(t)}var i,r=/(?:^|\s)nocode(?:\s|$)/,a=/\r\n?|\n/,l=t.ownerDocument;t.currentStyle?i=t.currentStyle.whiteSpace:window.getComputedStyle&&(i=l.defaultView.getComputedStyle(t,q).getPropertyValue("white-space"));var c=i&&"pre"===i.substring(0,3);for(i=l.createElement("LI");t.firstChild;)i.appendChild(t.firstChild);for(var n=[i],h=0;h]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),e(o([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),e(o([],[["atv",/^[\S\s]+/]]),["uq.val"]),e(t({keywords:s,hashComments:!0,cStyleComments:!0,types:h}),["c","cc","cpp","cxx","cyc","m"]),e(t({keywords:"null,true,false"}),["json"]),e(t({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:h}),["cs"]),e(t({keywords:r,cStyleComments:!0}),["java"]),e(t({keywords:n,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]),e(t({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]),e(t({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]),e(t({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]),e(t({keywords:i,cStyleComments:!0,regexLiterals:!0}),["js"]),e(t({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),e(o([],[["str",/^[\S\s]+/]]),["regex"]),window.prettyPrintOne=function(t,e,i){var n=document.createElement("PRE");return n.innerHTML=t,i&&f(n,i),m({g:e,i:i,h:n}),n.innerHTML},window.prettyPrint=function(c){for(var t=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],e=0;e
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},g.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),o=n.length;o--;){var s=n[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focusin",a="hover"==s?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=i(t.template,t.whiteList,t.sanitizeFn)),t},g.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&m.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("tip-anim");var s="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,a=r.test(s);a&&(s=s.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=n[0].offsetWidth,h=n[0].offsetHeight;if(a){var u=s,d=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+h>d.bottom?"top":"top"==s&&l.top-hd.width?"left":"left"==s&&l.left-cr.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-s,h=e.left+s+i;cr.right&&(o.left=r.left+r.width-h)}return o},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},g.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var t=m.fn.tooltip;m.fn.tooltip=function(n){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.tooltip",e=new g(this,i)),"string"==typeof n&&e[n]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=t,this}}(jQuery),function(o){"use strict";var s=function(t,e){this.init("popover",t,e)};if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.3.7",s.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((s.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===typeContent&&(i=this.sanitizeHtml(i))),t.find(".thz-popover-title")[this.options.html?"html":"text"](e),t.find(".thz-popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("tip-anim top bottom left right in"),t.find(".thz-popover-title").html()||t.find(".thz-popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var t=o(this),e=t.data("bs.popover"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof n&&e[n]())})},o.fn.popover.Constructor=s,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(p){"use strict";var t=p.fn.tooltip,o=function(t,e){this.init("tooltip",t,e)};o.prototype=p.extend({},t.Constructor.prototype,{constructor:o,show:function(){var t,e,i,n,o,s,r=p.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(r),r.isDefaultPrevented())return;t=this.tip(),this.setContent(),this.options.animation&&t.addClass("tip-anim"),o="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement;var a=/\s?auto-dir?\s?/i,l=a.test(o);l&&(o=o.replace(a,"")||"top"),t.detach().css({top:0,left:0,display:"block"}).addClass(o),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),e=this.getPosition(),i=t[0].offsetWidth,n=t[0].offsetHeight;var c="rtl"===jQuery(document.querySelector("html")).attr("dir");if(l){var h=o,u=o.replace(/bottom-|top-/g,"")||"",d=o.replace(/left|right/g,"")||"";o="left"==u&&c?d+"right":"right"==u&&c?d+"left":o,t.removeClass(h).addClass(o)}switch(o){case"bottom":s={top:e.top+e.height,left:e.left+e.width/2-i/2};break;case"top":s={top:e.top-n,left:e.left+e.width/2-i/2};break;case"left":s={top:e.top+e.height/2-n/2,left:e.left-i};break;case"right":s={top:e.top+e.height/2-n/2,left:e.left+e.width};break;case"bottom-left":s={top:e.top+e.height,left:e.left};break;case"bottom-right":s={top:e.top+e.height,left:e.left+e.width-i};break;case"top-left":s={top:e.top-n,left:e.left};break;case"top-right":s={top:e.top-n,left:e.left+e.width-i}}this.applyPlacement(s,o),this.newArrow(o,i,c),this.$element.trigger("shown.bs")}},applyPlacement:function(t,e){var i=this.tip(),n=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),t.top+=s,t.left+=r,p.offset.setOffset(i[0],p.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.removeClass("is-hidden").addClass("in");var a=i[0].offsetWidth,l=i[0].offsetHeight;"top"==e&&l!=o&&(t.top=t.top+o-l);var c=this.getViewportAdjustedDelta(e,t,a,l);c.left?t.left+=c.left:t.top+=c.top;var h=/top|bottom/.test(e),u=h?2*c.left-n+a:2*c.top-o+l,d=h?"offsetWidth":"offsetHeight";this.replaceArrow(u,i[0][d],h)},newArrow:function(t,e,i){var n=this.tip().find(".thz-tip-arrow"),o=parseInt(n.css("width"),10),s=parseInt(n.css("height"),10),r=t.replace(/bottom-|top-/g,"")||"",a=t.replace(/left|right/g,"")||"";a&&"left"==r&&!i&&n.css("left",o/2),a&&"left"==r&&i&&n.css("right",e-o-o/2),a&&"right"==r&&n.css("left",e-o-o/2),"bottom-"==a&&n.css("top",s),"top-"==a&&n.css("bottom",s)},tip:function(){if(!this.$tip&&(this.$tip=p(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip}});var e=p.fn.tooltip;p.fn.tooltip=p.extend(function(n){return this.each(function(){var t=p(this),e=t.data("bs.tooltip"),i=p.extend({},o.defaults,t.data(),"object"==typeof n&&n);e||t.data("bs.tooltip",e=new o(this,i)),"string"==typeof n&&e[n]()})},p.fn.tooltip),p.fn.tooltip.noConflict=function(){return p.fn.tooltip=e,this}}(window.jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(h){var u,n,d,o,p,e,l="Close",c="BeforeClose",f="MarkupParse",m="Open",g=".mfp",v="mfp-ready",i="mfp-removing",r="mfp-prevent-close",t=function(){},a=!!window.jQuery,y=h(window),w=function(t,e){u.ev.on("mfp"+t+g,e)},b=function(t,e,i,n){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),n?e&&e.appendChild(o):(o=h(o),e&&o.appendTo(e)),o},x=function(t,e){u.ev.triggerHandler("mfp"+t,e),u.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),u.st.callbacks[t]&&u.st.callbacks[t].apply(u,h.isArray(e)?e:[e]))},S=function(t){return t===e&&u.currTemplate.closeBtn||(u.currTemplate.closeBtn=h(u.st.closeMarkup.replace("%title%",u.st.tClose)),e=t),u.currTemplate.closeBtn},s=function(){h.magnificPopup.instance||((u=new t).init(),h.magnificPopup.instance=u)};t.prototype={constructor:t,init:function(){var t=navigator.appVersion;u.isLowIE=u.isIE8=document.all&&!document.addEventListener,u.isAndroid=/android/gi.test(t),u.isIOS=/iphone|ipad|ipod/gi.test(t),u.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),u.probablyMobile=u.isAndroid||u.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=h(document),u.popupsCache={}},open:function(t){var e;if(!1===t.isObj){u.items=t.items.toArray(),u.index=0;var i,n=t.items;for(e=0;e(t||y.height())},_setFocus:function(){(u.st.focus?u.content.find(u.st.focus).eq(0):u.wrap).focus()},_onFocusIn:function(t){return t.target===u.wrap[0]||h.contains(u.wrap[0],t.target)?void 0:(u._setFocus(),!1)},_parseMarkup:function(o,t,e){var s;e.data&&(t=h.extend(e.data,t)),x(f,[o,t,e]),h.each(t,function(t,e){if(void 0===e||!1===e)return!0;if(1<(s=t.split("_")).length){var i=o.find(g+"-"+s[0]);if(0").attr("src",e).attr("class",i.attr("class"))):i.attr(s[1],e)}}else o.find(g+"-"+t).html(e)})},_getScrollbarSize:function(){if(void 0===u.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),u.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u.scrollbarSize}},h.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return s(),(t=t?h.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return h.magnificPopup.instance&&h.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(h.magnificPopup.defaults[t]=e.options),h.extend(this.proto,e.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:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},h.fn.magnificPopup=function(t){s();var e=h(this);if("string"==typeof t)if("open"===t){var i,n=a?e.data("magnificPopup"):e[0].magnificPopup,o=parseInt(arguments[1],10)||0;i=n.items?n.items[o]:(i=e,n.delegate&&(i=i.find(n.delegate)),i.eq(o)),u._openClick({mfpEl:i},e,n)}else u.isOpen&&u[t].apply(u,Array.prototype.slice.call(arguments,1));else t=h.extend(!0,{},t),a?e.data("magnificPopup",t):e[0].magnificPopup=t,u.addGroup(e,t);return e};var T,k,C,_="inline",E=function(){C&&(k.after(C.addClass(T)).detach(),C=null)};h.magnificPopup.registerModule(_,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){u.types.push(_),w(l+"."+_,function(){E()})},getInline:function(t,e){if(E(),t.src){var i=u.st.inline,n=h(t.src);if(n.length){var o=n[0].parentNode;o&&o.tagName&&(k||(T=i.hiddenClass,k=b(T),T="mfp-"+T),C=n.after(k).detach().removeClass(T)),u.updateStatus("ready")}else u.updateStatus("error",i.tNotFound),n=h("
");return t.inlineElement=n}return u.updateStatus("ready"),u._parseMarkup(e,{},t),e}}});var z,P="ajax",I=function(){z&&h(document.body).removeClass(z)},A=function(){I(),u.req&&u.req.abort()};h.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){u.types.push(P),z=u.st.ajax.cursor,w(l+"."+P,A),w("BeforeChange."+P,A)},getAjax:function(o){z&&h(document.body).addClass(z),u.updateStatus("loading");var t=h.extend({url:o.src,success:function(t,e,i){var n={data:t,xhr:i};x("ParseAjax",n),u.appendContent(h(n.data),P),o.finished=!0,I(),u._setFocus(),setTimeout(function(){u.wrap.addClass(v)},16),u.updateStatus("ready"),x("AjaxContentAdded")},error:function(){I(),o.finished=o.loadError=!0,u.updateStatus("error",u.st.ajax.tError.replace("%url%",o.src))}},u.st.ajax.settings);return u.req=h.ajax(t),""}}});var M;h.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var t=u.st.image,e=".image";u.types.push("image"),w(m+e,function(){"image"===u.currItem.type&&t.cursor&&h(document.body).addClass(t.cursor)}),w(l+e,function(){t.cursor&&h(document.body).removeClass(t.cursor),y.off("resize"+g)}),w("Resize"+e,u.resizeImage),u.isLowIE&&w("AfterChange",u.resizeImage)},resizeImage:function(){var t=u.currItem;if(t&&t.img&&u.st.image.verticalFit){var e=0;u.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",u.wH-e)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,M&&clearInterval(M),t.isCheckingImgSize=!1,x("ImageHasSize",t),t.imgHidden&&(u.content&&u.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(t){M&&clearInterval(M),M=setInterval(function(){return 0
',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(){u.types.push(L),w("BeforeChange",function(t,e,i){e!==i&&(e===L?$():i===L&&$(!0))}),w(l+"."+L,function(){$()})},getIframe:function(t,e){var i=t.src,n=u.st.iframe;h.each(n.patterns,function(){return-1',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 s=u.st.gallery,t=".mfp-gallery";return u.direction=!0,!(!s||!s.enabled)&&(p+=" mfp-gallery",w(m+t,function(){s.navigateByImgClick&&u.wrap.on("click"+t,".mfp-img",function(){return 1=u.index,u.index=t,u.updateItemHTML()},preloadNearbyImages:function(){var t,e=u.st.gallery.preload,i=Math.min(e[0],u.items.length),n=Math.min(e[1],u.items.length);for(t=1;t<=(u.direction?n:i);t++)u._preloadItem(u.index+t);for(t=1;t<=(u.direction?i:n);t++)u._preloadItem(u.index-t)},_preloadItem:function(t){if(t=j(t),!u.items[t].preloaded){var e=u.items[t];e.parsed||(e=u.parseEl(t)),x("LazyLoad",e),"image"===e.type&&(e.img=h('').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,x("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0}}}});var H="retina";h.magnificPopup.registerModule(H,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(1n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s];if(null!==r.triggerPoint){var a=n.oldScroll=r.triggerPoint;(a&&l||!a&&!l)&&(r.queueTrigger(o),t[r.group.id]=r.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?g.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?g.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n=s.oldScroll,h=!l&&!c,!m&&(l&&c)?(u.queueTrigger(s.backward),n[u.group.id]=u.group):!m&&h?(u.queueTrigger(s.forward),n[u.group.id]=u.group):m&&s.oldScroll>=u.triggerPoint&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return g.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},i.findOrCreateByElement=function(t){return i.findByElement(t)||new i(t)},i.refreshAll=function(){for(var t in o)o[t].refresh()},i.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),i.refreshAll()},g.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},g.Context=i}(),function(){"use strict";function r(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}function e(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},n=window.Waypoint;e.prototype.add=function(t){this.waypoints.push(t)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:r);for(var n=0,o=e.length;ne.outerHeight()-t.moveMax)return;if(("left"===n||"right"===n)&&i>e.parent().outerHeight()-t.moveMax)return;if("fixed"===n)return}t.scale;var s=function(t,e){t.velocity;var i="";if("fixed"===t.direction)return i;var n,o=t.scale;"up"===o&&((n=1+2e-4*e)<1&&(n=1),i="scale3d("+(n+=.001)+","+n+",1) ");"down"===o&&(1<(n=1-2e-4*e)&&(n=1),i="scale3d("+n+","+n+",1) ");return i}(t,i),r=(i-t.scrollTopMin)/(t.scrollTopMax-t.scrollTopMin),a=t.moveMax*r;"left"!==n&&"up"!==n||(a*=-1);var l=s+_("0px",(a=Math.round(a))+"px");"left"!==n&&"right"!==n||(l=s+_(a+"px","0px")),"fixed"===n&&(a=Math.round(t.parentTop-i),l=s+_("0px",(a*=-1)+"px")),e.hasClass("thz-animate")?e.off("thz:animation:done").on("thz:animation:done",function(t){e.addClass("thz-starting-parallax"),setTimeout(function(){e.css({transform:l+o})},1),setTimeout(function(){e.removeClass("thz-starting-parallax")},401)}):e.css({transform:l+o})}var a,l=(a={},function(t,e,i){i||(i="Don't call this twice without a uniqueId"),a[i]&&clearTimeout(a[i]),a[i]=setTimeout(t,e)});e(),o(),c.resize(function(){l(function(){e(),o()},150,"thzparallax resized")}),c.on("scroll touchmove",function(){requestAnimationFrame(s)})}}(jQuery),function(n){n.fn.ThzInfinity=function(h){var u=(h=n.extend({},{duration:60,direction:"up",onmobile:0},h),function(){if(!window.getComputedStyle)return!1;var t,e=document.createElement("p"),i={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};for(var n in document.body.insertBefore(e,null),i)void 0!==e.style[n]&&(e.style[n]="translate3d(1px,1px,1px)",t=window.getComputedStyle(e).getPropertyValue(i[n]));return document.body.removeChild(e),void 0!==t&&0=v.animationTime,l=a?1:r/v.animationTime;v.pulseAlgorithm&&(l=1<=(u=l)?1:u<=0?0:(1==v.pulseNormalize&&(v.pulseNormalize/=F(1)),F(u)));var c=s.x*l-s.lastX>>0,h=s.y*l-s.lastY>>0;i+=c,n+=h,s.lastX+=c,s.lastY+=h,a&&(y.splice(o,1),o--)}var u;m?window.scrollBy(i,n):(i&&(d.scrollLeft+=i),n&&(d.scrollTop+=n)),p||f||(y=[]),y.length?R(g,d,1e3/v.frameRate+1):w=!1};R(g,d,0),w=!0}}function t(t){d||g();var e=t.target;if(t.defaultPrevented||t.ctrlKey)return!0;if($(c,"embed")||$(e,"embed")&&/\.pdf/i.test(e.src)||$(c,"object")||e.shadowRoot)return!0;var i=-t.wheelDeltaX||t.deltaX||0,n=-t.wheelDeltaY||t.deltaY||0;r&&(t.wheelDeltaX&&j(t.wheelDeltaX,120)&&(i=t.wheelDeltaX/Math.abs(t.wheelDeltaX)*-120),t.wheelDeltaY&&j(t.wheelDeltaY,120)&&(n=t.wheelDeltaY/Math.abs(t.wheelDeltaY)*-120)),i||n||(n=-t.wheelDelta||0),1===t.deltaMode&&(i*=40,n*=40);var o=P(e);return o?!!function(t){if(t)return s.length||(s=[t,t,t]),t=Math.abs(t),s.push(t),s.shift(),clearTimeout(k),k=setTimeout(function(){try{localStorage.SS_deltaBuffer=s.join(",")}catch(t){}},1e3),!D(120)&&!D(100)}(n)||(1.2")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),1")[0];t.width=i.size,t.height=i.size,t.getContext("2d").drawImage(e,0,0,s,s),i.arcFill=i.ctx.createPattern(t,"no-repeat"),i.drawFrame(i.lastFrameValue)}var e,i=this,n=this.fill,o=this.ctx,s=this.size;if(!n)throw Error("The fill is not specified!");if("string"==typeof n&&(n={color:n}),n.color&&(this.arcFill=n.color),n.gradient){var r=n.gradient;if(1==r.length)this.arcFill=r[0];else if(1 The jQuery method "'+t+'" you called does not exist';var i,n,o=h.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},e),s=this.eq(0);if(!0===o.clone)i=function(){s=s.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},n=function(){s.remove()};else{var r,a=[],l="";i=function(){r=s.parents().addBack().filter(":hidden"),l+="visibility: hidden !important; display: "+o.display+" !important; ",!0===o.absolute&&(l+="position: absolute !important; "),r.each(function(){var t=h(this),e=t.attr("style");a.push(e),t.attr("style",e?e+";"+l:l)})},n=function(){r.each(function(t){var e=h(this),i=a[t];void 0===i?e.removeAttr("style"):e.attr("style",i)})}}if(i(),"transform"==t)var c=s.css("transform");else c=/(outer)/.test(t)?s[t](o.includeMargin):s[t]();return n(),c}})}),"undefined"!=typeof mejs&&function s(r,a,l){function c(e,t){if(!a[e]){if(!r[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(h)return h(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[e]={exports:{}};r[e][0].call(o.exports,function(t){return c(r[e][1][t]||t)},o,o.exports,s,r,a,l)}return a[e].exports}for(var h="function"==typeof require&&require,t=0;t"))&&b.css("position",o.css("position")),(y=function(){var t,e,i;if(!u&&(m=x.height(),t=parseInt(v.css("border-top-width"),10),e=parseInt(v.css("padding-top"),10),s=parseInt(v.css("padding-bottom"),10),r=v.offset().top+t+e,a=v.height(),p&&(d=p=!1,null==k&&(o.insertAfter(b),b.detach()),o.css({position:"",top:"",width:"",bottom:""}).removeClass(P),i=!0),l=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-C,c=o.outerHeight(!0),h=o.css("float"),b&&b.css({width:_(o),height:c,display:o.css("display"),"vertical-align":o.css("vertical-align"),float:h}),i))return n()})(),c!==a)return f=void 0,g=C,w=z,n=function(){var t,e,i,n;if(!u&&(i=!1,null!=w&&(--w<=0&&(w=z,y(),i=!0)),i||x.height()===m||y(),i=A.scrollTop(),null!=f&&(e=i-f),f=i,p?(S&&(n=a+r"),t&&r.append("
");var l=r.find("img:first"),s=r.find("img:last");r.append("
");var c=r.find(".twentytwenty-handle");(c.append(""),c.append(""),r.addClass("twentytwenty-container"),l.addClass("twentytwenty-before"),s.addClass("twentytwenty-after"),t)&&((t=r.find(".twentytwenty-overlay")).append("
"),t.append("
"));var h=function(t){var e,i,n,o,s=(e=t,i=l.width(),n=l.height(),{w:i+"px",h:n+"px",cw:e*i+"px",ch:e*n+"px"});c.css("vertical"===a?"top":"left","vertical"===a?s.ch:s.cw),o=s,"vertical"===a?l.css("clip","rect(0,"+o.w+","+o.ch+",0)"):l.css("clip","rect(0,"+o.cw+","+o.h+",0)"),r.css("height",o.h)};g(window).on("resize.twentytwenty",function(t){h(e)});var u=0,d=0;if(c.on("movestart",function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==a?t.preventDefault():(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===a&&t.preventDefault(),r.addClass("active"),u=r.offset().left,offsetY=r.offset().top,d=l.width(),imgHeight=l.height()}),c.on("moveend",function(t){r.removeClass("active")}),c.on("move",function(t){r.hasClass("active")&&((e="vertical"===a?(t.pageY-offsetY)/imgHeight:(t.pageX-u)/d)<0&&(e=0),1Previous',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('