");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.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 c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',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(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',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 c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('
').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});(function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function n(e,i){t.fn[e]=function(n){if("string"==typeof n){for(var s=o.call(arguments,1),a=0,u=this.length;u>a;a++){var p=this[a],h=t.data(p,e);if(h)if(t.isFunction(h[n])&&"_"!==n.charAt(0)){var f=h[n].apply(h,s);if(void 0!==f)return f}else r("no such method '"+n+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+n+"'")}return this}return this.each(function(){var o=t.data(this,e);o?(o.option(n),o._init()):(o=new i(this,n),t.data(this,e,o))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),n(t,e)},t.bridget}}var o=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):"object"==typeof exports?i(require("jquery")):i(t.jQuery)})(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,o=function(){};i.addEventListener?o=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(o=function(t,i,o){t[i+o]=o.handleEvent?function(){var i=e(t);o.handleEvent.call(o,i)}:function(){var i=e(t);o.call(t,i)},t.attachEvent("on"+i,t[i+o])});var n=function(){};i.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(o){t[e+i]=void 0}});var r={bind:o,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(this),function(t){function e(t){"function"==typeof t&&(e.isReady?t():s.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==r.readyState;e.isReady||i||o()}function o(){e.isReady=!0;for(var t=0,i=s.length;i>t;t++){var o=s[t];o()}}function n(n){return"complete"===r.readyState?o():(n.bind(r,"DOMContentLoaded",i),n.bind(r,"readystatechange",i),n.bind(t,"load",i)),e}var r=t.document,s=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],n):"object"==typeof exports?module.exports=n(require("eventie")):t.docReady=n(t.eventie)}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var o=t.prototype,n=this,r=n.EventEmitter;o.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp){e={};for(i in o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i])}else e=o[t]||(o[t]=[]);return e},o.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},o.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},o.addListener=function(t,i){var o,n=this.getListenersAsObject(t),r="object"==typeof i;for(o in n)n.hasOwnProperty(o)&&-1===e(n[o],i)&&n[o].push(r?i:{listener:i,once:!1});return this},o.on=i("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=i("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,i){var o,n,r=this.getListenersAsObject(t);for(n in r)r.hasOwnProperty(n)&&(o=e(r[n],i),-1!==o&&r[n].splice(o,1));return this},o.off=i("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r.call(this,o,n):s.call(this,o,n));return this},o.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"===i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},o.removeAllListeners=i("removeEvent"),o.emitEvent=function(t,e){var i,o,n,r,s=this.getListenersAsObject(t);for(n in s)if(s.hasOwnProperty(n))for(o=s[n].length;o--;)i=s[n][o],i.once===!0&&this.removeListener(t,i.listener),r=i.listener.apply(this,e||[]),r===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},o.trigger=i("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},o._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:n.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof o[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,n=0,r=i.length;r>n;n++)if(e=i[n]+t,"string"==typeof o[e])return e}}var i="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){}function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var o=s[e];t[o]=0}return t}function n(i){function n(){if(!d){d=!0;var o=t.getComputedStyle;if(p=function(){var t=o?function(t){return o(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||r("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? "+"See http://bit.ly/getsizebug1"),i}}(),h=i("boxSizing")){var n=document.createElement("div");n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[h]="border-box";var s=document.body||document.documentElement;s.appendChild(n);var a=p(n);f=200===e(a.width),s.removeChild(n)}}}function a(t){if(n(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=p(t);if("none"===i.display)return o();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var a=r.isBorderBox=!(!h||!i[h]||"border-box"!==i[h]),d=0,l=s.length;l>d;d++){var c=s[d],y=i[c];y=u(t,y);var m=parseFloat(y);r[c]=isNaN(m)?0:m}var g=r.paddingLeft+r.paddingRight,v=r.paddingTop+r.paddingBottom,_=r.marginLeft+r.marginRight,I=r.marginTop+r.marginBottom,L=r.borderLeftWidth+r.borderRightWidth,z=r.borderTopWidth+r.borderBottomWidth,b=a&&f,x=e(i.width);x!==!1&&(r.width=x+(b?0:g+L));var S=e(i.height);return S!==!1&&(r.height=S+(b?0:v+z)),r.innerWidth=r.width-(g+L),r.innerHeight=r.height-(v+z),r.outerWidth=r.width+_,r.outerHeight=r.height+I,r}}function u(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var o=e.style,n=o.left,r=e.runtimeStyle,s=r&&r.left;return s&&(r.left=e.currentStyle.left),o.left=i,i=o.pixelLeft,o.left=n,s&&(r.left=s),i}var p,h,f,d=!1;return a}var r="undefined"==typeof console?i:function(t){console.error(t)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("desandro-get-style-property")):t.getSize=n(t.getStyleProperty)}(window),function(t){function e(t,e){return t[s](e)}function i(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function o(t,e){i(t);for(var o=t.parentNode.querySelectorAll(e),n=0,r=o.length;r>n;n++)if(o[n]===t)return!0;return!1}function n(t,o){return i(t),e(t,o)}var r,s=function(){if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,o=e.length;o>i;i++){var n=e[i],r=n+"MatchesSelector";if(t[r])return r}}();if(s){var a=document.createElement("div"),u=e(a,"div");r=u?e:n}else r=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return r}):"object"==typeof exports?module.exports=r:window.matchesSelector=r}(Element.prototype),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function n(t,n,r){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=r("transition"),p=r("transform"),h=u&&p,f=!!r("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[u],l=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var t={},e=0,i=l.length;i>e;e++){var o=l[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=n(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var o=c[i]||i;e[o]=t[i]}},a.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,o=e.isOriginTop,n=parseInt(t[i?"left":"right"],10),r=parseInt(t[o?"top":"bottom"],10);n=isNaN(n)?0:n,r=isNaN(r)?0:r;var a=this.layout.size;n-=i?a.paddingLeft:a.paddingRight,r-=o?a.paddingTop:a.paddingBottom,this.position.x=n,this.position.y=r},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var y=f?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),s=n===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return this.layoutPosition(),void 0;var a=t-i,u=e-o,p={},h=this.layout.options;a=h.isOriginLeft?a:-a,u=h.isOriginTop?u:-u,p.transform=y(a,u),this.transition({to:p,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=h?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(t),void 0;var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var m=p&&o(p)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:m,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(d,this,!1))},a.prototype.transition=a.prototype[u?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(v)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!u||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var r=t.getComputedStyle,s=r?function(t){return r(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property")):(t.Outlayer={},t.Outlayer.Item=n(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===f.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=l(e,t);-1!==i&&e.splice(i,1)}function r(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function s(i,s,f,l,c,y){function m(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!d(t))return u&&u.error("Bad "+this.constructor.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var o=++g;this.element.outlayerGUID=o,v[o]=this,this._create(),this.options.isInitLayout&&this.layout()}var g=0,v={};return m.namespace="outlayer",m.Item=y,m.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"1s",hiddenStyle:{opacity:0,transform:"scale(0.005) rotateX(180deg)"},visibleStyle:{opacity:1,transform:"scale(1) rotateX(0deg)"}},e(m.prototype,f.prototype),m.prototype.option=function(t){e(this.options,t)},m.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},m.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},m.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;r>n;n++){var s=e[n],a=new i(s,this);o.push(a)}return o},m.prototype._filterFindItemElements=function(t){t=o(t);for(var e=this.options.itemSelector,i=[],n=0,r=t.length;r>n;n++){var s=t[n];if(d(s))if(e){c(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),u=0,p=a.length;p>u;u++)i.push(a[u])}else i.push(s)}return i},m.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},m.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},m.prototype._init=m.prototype.layout,m.prototype._resetLayout=function(){this.getSize()},m.prototype.getSize=function(){this.size=l(this.element)},m.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):d(o)&&(i=o),this[t]=i?l(i)[e]:o):this[t]=0},m.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},m.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i];n.isIgnored||e.push(n)}return e},m.prototype._layoutItems=function(t,e){function i(){o.emitEvent("layoutComplete",[o,t])}var o=this;if(!t||!t.length)return i(),void 0;this._itemsOn(t,"layout",i);for(var n=[],r=0,s=t.length;s>r;r++){var a=t[r],u=this._getItemLayoutPosition(a);u.item=a,u.isInstant=e||a.isLayoutInstant,n.push(u)}this._processLayoutQueue(n)},m.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},m.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},m.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},m.prototype._postLayout=function(){this.resizeContainer()},m.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},m.prototype._getContainerSize=h,m.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},m.prototype._itemsOn=function(t,e,i){function o(){return n++,n===r&&i.call(s),!0}for(var n=0,r=t.length,s=this,a=0,u=t.length;u>a;a++){var p=t[a];p.on(e,o)}},m.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},m.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},m.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var o=t[e];this.ignore(o)}}},m.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var o=t[e];n(o,this.stamps),this.unignore(o)}},m.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o(t)):void 0},m.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},m.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},m.prototype._manageStamp=h,m.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=l(t),n={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return n},m.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},m.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},m.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},m.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},m.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},m.prototype.needsResizeLayout=function(){var t=l(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},m.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},m.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},m.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},m.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.reveal()}},m.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.hide()}},m.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];if(o.element===t)return o}},m.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i],r=this.getItem(n);r&&e.push(r)}return e}},m.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,r=e.length;r>i;i++){var s=e[i];s.remove(),n(s,this.items)}}},m.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];o.destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete v[n],delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace)},m.data=function(t){var e=t&&t.outlayerGUID;return e&&v[e]},m.create=function(t,i){function o(){m.apply(this,arguments)}return Object.create?o.prototype=Object.create(m.prototype):e(o.prototype,m.prototype),o.prototype.constructor=o,o.defaults=e({},m.defaults),e(o.defaults,i),o.prototype.settings={},o.namespace=t,o.data=m.data,o.Item=function(){y.apply(this,arguments)},o.Item.prototype=new y,s(function(){for(var e=r(t),i=a.querySelectorAll(".js-"+e),n="data-"+e+"-options",s=0,h=i.length;h>s;s++){var f,d=i[s],l=d.getAttribute(n);try{f=l&&JSON.parse(l)}catch(c){u&&u.error("Error parsing "+n+" on "+d.nodeName.toLowerCase()+(d.id?"#"+d.id:"")+": "+c);continue}var y=new o(d,f);p&&p.data(d,t,y)}}),p&&p.bridget&&p.bridget(t,o),o},m.Item=y,m}var a=t.document,u=t.console,p=t.jQuery,h=function(){},f=Object.prototype.toString,d="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},l=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],s):"object"==typeof exports?module.exports=s(require("eventie"),require("doc-ready"),require("wolfy87-eventemitter"),require("get-size"),require("desandro-matches-selector"),require("./item")):t.Outlayer=s(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){function e(t){function e(){t.Item.apply(this,arguments)}e.prototype=new t.Item,e.prototype._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window),function(t){function e(t,e){function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}return function(){function t(t){return function(){return e.prototype[t].apply(this.isotope,arguments)}}for(var o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,r=o.length;r>n;n++){var s=o[n];i.prototype[s]=t(s)}}(),i.prototype.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!==this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},i.prototype.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=new i,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window),function(t){function e(t,e){var o=t.create("masonry");return o.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},o.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},o.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},o.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,o=e&&1>e?"round":"ceil",n=Math[o](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this._getColGroup(n),s=Math.min.apply(Math,r),a=i(r,s),u={x:this.columnWidth*a,y:s},p=s+t.size.outerHeight,h=this.cols+1-r.length,f=0;h>f;f++)this.colYs[a+f]=p;return u},o.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;i>o;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},o.prototype._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this.options.isOriginLeft?o.left:o.right,r=n+i.outerWidth,s=Math.floor(n/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this.options.isOriginTop?o.top:o.bottom)+i.outerHeight,p=s;a>=p;p++)this.colYs[p]=Math.max(u,this.colYs[p])},o.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},o.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},o}var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++){var n=t[i];if(n===e)return i}return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t,i){var o=t.create("masonry"),n=o.prototype._getElementOffset,r=o.prototype.layout,s=o.prototype._getMeasurement;e(o.prototype,i.prototype),o.prototype._getElementOffset=n,o.prototype.layout=r,o.prototype._getMeasurement=s;var a=o.prototype.measureColumns;o.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var u=o.prototype._manageStamp;return o.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,u.apply(this,arguments)},o}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],i):"object"==typeof exports?module.exports=i(require("../layout-mode"),require("masonry-layout")):i(t.Isotope.LayoutMode,t.Masonry)}(window),function(t){function e(t){var e=t.create("fitRows");return e.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},e.prototype._getContainerSize=function(){return{height:this.maxY}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window),function(t){function e(t){var e=t.create("vertical",{horizontalAlignment:0});return e.prototype._resetLayout=function(){this.y=0},e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e.prototype._getContainerSize=function(){return{height:this.y}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===h.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=f(e,t);-1!==i&&e.splice(i,1)}function r(t,i,r,u,h){function f(t,e){return function(i,o){for(var n=0,r=t.length;r>n;n++){var s=t[n],a=i.sortData[s],u=o.sortData[s];if(a>u||u>a){var p=void 0!==e[s]?e[s]:e,h=p?1:-1;return(a>u?1:-1)*h}}return 0}}var d=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=u,d.LayoutMode=h,d.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var e in h.modes)this._initLayoutMode(e)},d.prototype.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},d.prototype._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0,o=e.length;o>i;i++){var n=e[i];n.id=this.itemGUID++}return this._updateItemsSortData(e),e},d.prototype._initLayoutMode=function(t){var i=h.modes[t],o=this.options[t]||{};this.options[t]=i.options?e(i.options,o):o,this.modes[t]=new i(this)},d.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},d.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},d.prototype.arrange=function(t){function e(){o.reveal(i.needReveal),o.hide(i.needHide)}this.option(t),this._getIsInstant();var i=this._filter(this.items);this.filteredItems=i.matches;var o=this;this._isInstant?this._noTransition(e):e(),this._sort(),this._layout()},d.prototype._init=d.prototype.arrange,d.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t,t},d.prototype._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],r=this._getFilterTest(e),s=0,a=t.length;a>s;s++){var u=t[s];if(!u.isIgnored){var p=r(u);p&&i.push(u),p&&u.isHidden?o.push(u):p||u.isHidden||n.push(u)}}return{matches:i,needReveal:o,needHide:n}},d.prototype._getFilterTest=function(t){return s&&this.options.isJQueryFiltering?function(e){return s(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return r(e.element,t)}},d.prototype.updateSortData=function(t){var e;t?(t=o(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},d.prototype._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=l(i)}},d.prototype._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&e>i;i++){var o=t[i];o.updateSortData()}};var l=function(){function t(t){if("string"!=typeof t)return t;var i=a(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),r=n&&n[1],s=e(r,o),u=d.sortDataParsers[i[1]];return t=u?function(t){return t&&u(s(t))}:function(t){return t&&s(t)}}function e(t,e){var i;return i=t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&p(i)}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d.prototype._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=f(e,this.options.sortAscending);this.filteredItems.sort(i),t!==this.sortHistory[0]&&this.sortHistory.unshift(t)}},d.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw Error("No layout mode: "+t);return e.options=this.options[t],e},d.prototype._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},d.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d.prototype._manageStamp=function(t){this._mode()._manageStamp(t)},d.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},d.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.prototype.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},d.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},d.prototype._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.prototype.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;n>i;i++)o=e[i],this.element.appendChild(o.element);var r=this._filter(e).matches;for(i=0;n>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;n>i;i++)delete e[i].isLayoutInstant;this.reveal(r)}};var c=d.prototype.remove;return d.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(c.call(this,t),e&&e.length)for(var i=0,r=e.length;r>i;i++){var s=e[i];n(s,this.filteredItems)}},d.prototype.shuffle=function(){for(var t=0,e=this.items.length;e>t;t++){var i=this.items[t];i.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},d.prototype._noTransition=function(t){var e=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.call(this);return this.options.transitionDuration=e,i},d.prototype.getFilteredItemElements=function(){for(var t=[],e=0,i=this.filteredItems.length;i>e;e++)t.push(this.filteredItems[e].element);return t},d}var s=t.jQuery,a=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=document.documentElement,p=u.textContent?function(t){return t.textContent}:function(t){return t.innerText},h=Object.prototype.toString,f=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],r):"object"==typeof exports?module.exports=r(require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):t.Isotope=r(t.Outlayer,t.getSize,t.matchesSelector,t.Isotope.Item,t.Isotope.LayoutMode)}(window);(function($){var defaults={cursorcolor:'255,255,255',opacity:0.5,cursor:'crosshair',zindex:2147483647,zoomviewsize:[480,395],zoomviewposition:'right',zoomviewmargin:10,zoomviewborder:'none',magnification:1.925};var imagezoomCursor,imagezoomView,settings,imageWidth,imageHeight,offset;var methods={init:function(options){$this=$(this),imagezoomCursor=$('.imagezoom-cursor'),imagezoomView=$('.imagezoom-view'),$(document).on('mouseenter',$this.selector,function(e){var data=$(this).data();settings=$.extend({},defaults,options,data),offset=$(this).offset(),imageWidth=$(this).width(),imageHeight=$(this).height(),cursorSize=[(settings.zoomviewsize[0]/settings.magnification),(settings.zoomviewsize[1]/settings.magnification)];if(data.imagezoom==!0){imageSrc=$(this).attr('src')}else{imageSrc=$(this).get(0).getAttribute('data-imagezoom')}
var posX=e.pageX,posY=e.pageY,zoomViewPositionX;$('body').prepend('
');if(settings.zoomviewposition=='right'){zoomViewPositionX=(offset.left+imageWidth+settings.zoomviewmargin)}else{zoomViewPositionX=(offset.left-imageWidth-settings.zoomviewmargin)}
$(imagezoomView.selector).css({'position':'absolute','left':zoomViewPositionX,'top':offset.top,'width':cursorSize[0]*settings.magnification,'height':cursorSize[1]*settings.magnification,'background':'#000','z-index':2147483647,'overflow':'hidden','border':settings.zoomviewborder});$(imagezoomView.selector).children('img').css({'position':'absolute','width':imageWidth*settings.magnification,'height':imageHeight*settings.magnification,});$(imagezoomCursor.selector).css({'position':'absolute','width':cursorSize[0],'height':cursorSize[1],'background-color':'rgb('+settings.cursorcolor+')','z-index':settings.zindex,'opacity':settings.opacity,'cursor':settings.cursor});$(imagezoomCursor.selector).css({'top':posY-(cursorSize[1]/2),'left':posX});$(document).on('mousemove',document.body,methods.cursorPos)})},cursorPos:function(e){var posX=e.pageX,posY=e.pageY;if(posY
(offset.top+imageHeight)||posX>(offset.left+imageWidth)){$(imagezoomCursor.selector).remove();$(imagezoomView.selector).remove();return}
if(posX-(cursorSize[0]/2)offset.left+imageWidth){posX=(offset.left+imageWidth)-(cursorSize[0]/2)}
if(posY-(cursorSize[1]/2)offset.top+imageHeight){posY=(offset.top+imageHeight)-(cursorSize[1]/2)}
$(imagezoomCursor.selector).css({'top':posY-(cursorSize[1]/2),'left':posX-(cursorSize[0]/2)});$(imagezoomView.selector).children('img').css({'top':((offset.top-posY)+(cursorSize[1]/2))*settings.magnification,'left':((offset.left-posX)+(cursorSize[0]/2))*settings.magnification});$(imagezoomCursor.selector).mouseleave(function(){$(this).remove()})}};$.fn.imageZoom=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{$.error(method)}}
$(document).ready(function(){$('[data-imagezoom]').imageZoom()})})(jQuery);(function($){$.fn.jflickrfeed=function(settings,callback){settings=$.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(){}},settings);var url=settings.flickrbase+settings.feedapi+'?';var first=!0;for(var key in settings.qstrings){if(!first)
url+='&';url+=key+'='+settings.qstrings[key];first=!1}
return $(this).each(function(){var $container=$(this);var container=this;$.getJSON(url,function(data){$.each(data.items,function(i,item){if(i(.*?)<\/p>/g;var input=item.description;if(regex.test(input)){item.description=input.match(regex)[2]
if(item.description!=undefined)
item.description=item.description.replace('','').replace('
','')}}
item.image_s=item.media.m.replace('_m','_s');item.image_t=item.media.m.replace('_m','_t');item.image_m=item.media.m.replace('_m','_m');item.image=item.media.m.replace('_m','');item.image_b=item.media.m.replace('_m','_b');delete item.media;if(settings.useTemplate){var template=settings.itemTemplate;for(var key in item){var rgx=new RegExp('{{'+key+'}}','g');template=template.replace(rgx,item[key])}
$container.append(template)}
settings.itemCallback.call(container,item)}});if($.isFunction(callback)){callback.call(container,data)}})})}})(jQuery);(function($){"use strict";function gMap(){if(jQuery('.google-map').length){jQuery('.google-map').each(function(){var mapName=$(this).attr('id');var mapLat=$(this).data('map-lat');var mapLng=$(this).data('map-lng');var iconPath=$(this).data('icon-path');var mapZoom=$(this).data('map-zoom');var mapTitle=$(this).data('map-title');if(!mapZoom){var mapZoom=15};var map;map=new GMaps({div:'#'+mapName,scrollwheel:!1,lat:mapLat,lng:mapLng,zoom:mapZoom});if(iconPath){map.addMarker({icon:iconPath,lat:mapLat,lng:mapLng,title:mapTitle});map.addMarker({icon:iconPath,lat:41.375066,lng:-74.177262,title:"South Bloming Grove"})}})}}
jQuery(document).on('ready',function(){(function($){gMap()})(jQuery)})})(window.jQuery);(function($){"use strict";function revolutionSliderActiver(){if($('.rev_slider_wrapper #slider1').length){jQuery("#slider1").revolution({sliderType:"standard",sliderLayout:"auto",dottedOverlay:"yes",delay:5000,navigation:{arrows:{enable:!0,left:{h_align:"left",v_align:"center",h_offset:60,v_offset:0},right:{h_align:"right",v_align:"center",h_offset:60,v_offset:0}}},gridwidth:[1200,940,720,480],gridheight:[550,550,550,500],lazyType:"none",parallax:{type:"mouse",origo:"slidercenter",speed:2000,levels:[2,3,4,5,6,7,12,16,10,50],},shadow:0,spinner:"off",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",hideThumbsOnMobile:"off",hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,debugMode:!1,fallbacks:{simplifyAll:"off",nextSlideOnWindowFocus:"off",disableFocusListener:!1,}})}}
function GalleryFancyboxActivator(){var galleryFcb=$('.fancybox');if(galleryFcb.length){galleryFcb.fancybox({openEffect:'elastic',closeEffect:'elastic',helpers:{media:{}}})}}
function selectMenu(){if($('.select-menu').length){$('.select-menu').selectmenu()}}
function tooltip(){if($('.tool_tip').length){$('.tool_tip').tooltip()};$}
function testimonialsCarosuleGardener(){if($('.testimonials-slider').length){$('.testimonials-slider').owlCarousel({loop:!0,margin:30,nav:!0,navText:['',''],dots:!1,autoplay:!0,responsive:{0:{items:1,loop:!0,dots:!1},480:{items:1,loop:!0,dots:!1},768:{items:2,loop:!0,dots:!1},1000:{items:3,loop:!0}}})}}
function clientCarousel(){if($('.client-carousel').length){$('.client-carousel.owl-carousel').owlCarousel({loop:!0,margin:30,nav:!0,navText:['',''],dots:!1,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,responsive:{0:{items:1,autoWidth:!1},380:{items:2,autoWidth:!1},540:{items:3,autoWidth:!1},740:{items:4,autoWidth:!1},1000:{items:5,autoWidth:!1}}})}}
function gallerycarousel(){if($('.gallery_carousel').length){$('.gallery_carousel').owlCarousel({loop:!0,margin:0,nav:!1,dots:!1,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,responsive:{0:{items:1,autoWidth:!1},380:{items:2,autoWidth:!1},540:{items:3,autoWidth:!1},740:{items:4,autoWidth:!1},1000:{items:5,autoWidth:!1}}})}}
function galleryslide(){if($('.gallery_slide').length){$('.gallery_slide').owlCarousel({loop:!0,margin:0,items:1,nav:!1,dots:!0,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0})}}
function testimonialsarousel(){if($('.testimonial-carousel').length){$('.testimonial-carousel').owlCarousel({loop:!0,margin:0,items:1,nav:!0,navText:['',''],dots:!0,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0})}}
function testimonialsarousel2(){if($('.testimonial-carousel2').length){$('.testimonial-carousel2').owlCarousel({loop:!0,margin:0,items:1,nav:!0,navText:['',''],dots:!0,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0})}}
function feedbackcarousel(){if($('.feedback-carousel').length){$('.feedback-carousel').owlCarousel({loop:!0,margin:0,items:1,nav:!1,dots:!0,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0})}}
function teamcarousel(){if($('.team_carousel').length){$('.team_carousel').owlCarousel({loop:!0,margin:30,nav:!0,navText:['',''],dots:!1,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,responsive:{0:{items:1,autoWidth:!1},540:{items:2,autoWidth:!1},740:{items:3,autoWidth:!1},992:{items:4,autoWidth:!1}}})}}
function twocolumncarousel(){if($('.two-column-carousel').length){$('.two-column-carousel').owlCarousel({loop:!0,margin:30,nav:!1,dots:!0,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,responsive:{0:{items:1,dots:!1,autoWidth:!1},540:{items:1,dots:!1,autoWidth:!1},740:{items:1,dots:!1,autoWidth:!1},992:{items:2,autoWidth:!1}}})}}
function factCounter(){if($('.fact-counter').length){$('.fact-counter .counter-column.animated').each(function(){var $t=$(this),n=$t.find(".count-text").attr("data-stop"),r=parseInt($t.find(".count-text").attr("data-speed"),10);if(!$t.hasClass("counted")){$t.addClass("counted");$({countNum:$t.find(".count-text").text()}).animate({countNum:n},{duration:r,easing:"linear",step:function(){$t.find(".count-text").text(Math.floor(this.countNum))},complete:function(){$t.find(".count-text").text(this.countNum)}})}})}}
function fleetGallery(){if($('.mixit-gallery').length){$('.mixit-gallery').mixItUp()}}
function typed(){if($(".typed").length){$(".typed").typed({stringsElement:$('.typed-strings'),typeSpeed:200,backDelay:1500,loop:!0,contentType:'html',loopCount:!1,callback:function(){null},resetCallback:function(){newTyped()}})}}
function singleFeaturedHover(){if($('.single-our-feature').length){$('.single-our-feature').hover(function(){var bgHover=$(this).data('hover-background');$(this).css({'background-image':'url('+bgHover+')'})},function(){$(this).css({'background-image':''})})}}
function respnsiveVideo(){if($('.responsive-video-box').length){$('.responsive-video-box').fitVids()}}
function priceFilter(){if($('.price-ranger').length){$('.price-ranger #slider-range').slider({range:!0,min:10,max:200,values:[11,99],slide:function(event,ui){$('.price-ranger .ranger-min-max-block .min').val('$'+ui.values[0]);$('.price-ranger .ranger-min-max-block .max').val('$'+ui.values[1])}});$('.price-ranger .ranger-min-max-block .min').val('$'+$('.price-ranger #slider-range').slider('values',0));$('.price-ranger .ranger-min-max-block .max').val('$'+$('.price-ranger #slider-range').slider('values',1))}}
function cartTouchSpin(){if($('.quantity-spinner').length){$("input.quantity-spinner").TouchSpin({verticalbuttons:!0})}}
function videoFancybox(){if($("a.video-fancybox").length){$("a.video-fancybox").click(function(){$.fancybox({'padding':0,'autoScale':!1,'transitionIn':'none','transitionOut':'none','title':this.title,'width':680,'height':495,'href':this.href.replace(new RegExp("watch\\?v=","i"),'v/'),'type':'swf',openEffect:'elastic',closeEffect:'elastic',helpers:{media:{}},'swf':{'wmode':'transparent','allowfullscreen':'true'}});return!1})}}
function selectDropdown(){if($(".selectmenu").length){$(".selectmenu").selectmenu();var changeSelectMenu=function(event,item){$(this).trigger('change',item)};$(".selectmenu").selectmenu({change:changeSelectMenu})}}
function tabbox(){if($('.tabs-box').length){$('.tabs-box .tab-buttons .tab-btn').click(function(e){e.preventDefault();var target=$($(this).attr('data-tab'));target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');$(this).addClass('active-btn');target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');$(target).fadeIn(300);$(target).addClass('active-tab')})}}
function imgbxslider(){if($('.img-slide-box').length){$('.img-slide-box').bxSlider({adaptiveHeight:!0,auto:!0,controls:!1,maxSlides:1,minSlides:1,moveSlides:1,pause:5000,speed:700})}}
function handlePreloader(){if($('.preloader').length){$('.preloader').delay(200).fadeOut(500)}}
function scrollToTop(){if($('.scroll-top').length){$(window).scroll(function(){if($(this).scrollTop()>200){$('.scroll-top').fadeIn()}else{$('.scroll-top').fadeOut()}});$('.scroll-top').click(function(){$('html, body').animate({scrollTop:0},1500);return!1})}}
function singleProduct(){$('.flexslider').flexslider({animation:"slide",controlNav:"thumbnails"})}
function themeMenu(){if($("#main_menu").length){$("#main_menu").menuzord({animation:"zoom-out"})}}
function thmLightBox(){if($('.img-popup').length){var groups={};$('.img-popup').each(function(){var id=parseInt($(this).attr('data-group'),10);if(!groups[id]){groups[id]=[]}
groups[id].push(this)});$.each(groups,function(){$(this).magnificPopup({type:'image',closeOnContentClick:!0,closeBtnInside:!1,gallery:{enabled:!0}})})}}
function galleryMasonaryLayout(){if($('.masonary-layout').length){$('.masonary-layout').isotope({layoutMode:'masonry'})}
if($('.post-filter').length){$('.post-filter li').children('span').click(function(){var Self=$(this);var selector=Self.parent().attr('data-filter');$('.post-filter li').children('span').parent().removeClass('active');Self.parent().addClass('active');$('.filter-layout').isotope({filter:selector,animationOptions:{duration:500,easing:'linear',queue:!1}});return!1})}
if($('.post-filter.has-dynamic-filter-counter').length){var activeFilterItem=$('.post-filter.has-dynamic-filter-counter').find('li');activeFilterItem.each(function(){var filterElement=$(this).data('filter');console.log(filterElement);var count=$('.gallery-content').find(filterElement).length;$(this).children('span').append(''+count+'')})}}
if($('.latest-project-carousel').length){$('.latest-project-carousel').owlCarousel({loop:!0,margin:30,nav:!0,navText:['',''],dots:!1,autoWidth:!1,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,responsive:{0:{items:1,autoWidth:!1},480:{items:1,autoWidth:!1},600:{items:2,autoWidth:!1},768:{items:3,autoWidth:!1},1000:{items:3,autoWidth:!1}}})};if($('.accordion-box').length){$('.accordion-box .acc-btn').click(function(){if($(this).hasClass('active')!==!0){$('.accordion-box .acc-btn').removeClass('active')}
if($(this).next('.acc-content').is(':visible')){$(this).removeClass('active');$(this).next('.acc-content').slideUp(500)}else{$(this).addClass('active');$('.accordion-box .acc-content').slideUp(500);$(this).next('.acc-content').slideDown(500)}})}
if($('.wow').length){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0});wow.init()}
jQuery(document).on('ready',function(){(function($){revolutionSliderActiver();selectMenu();tooltip();fleetGallery();GalleryFancyboxActivator();typed();singleFeaturedHover();respnsiveVideo();priceFilter();cartTouchSpin();videoFancybox();selectDropdown();tabbox();imgbxslider();handlePreloader();scrollToTop();singleProduct();themeMenu();testimonialsCarosuleGardener();thmLightBox();galleryMasonaryLayout()})(jQuery)});jQuery(window).on('load',function(){(function($){clientCarousel();gallerycarousel();galleryslide();testimonialsarousel();testimonialsarousel2();feedbackcarousel();teamcarousel();twocolumncarousel()})(jQuery)});jQuery(window).on('scroll',function(){(function($){stickyHeader();factCounter()})(jQuery)})})(window.jQuery);if(ajaxurl===undefined)var ajaxurl="https://www.gunesliakademi.com/wp-admin/admin-ajax.php";var kc_front=(function($){jQuery.extend(jQuery.easing,{easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},});var $window=$(window);var windowHeight=$window.height();$window.resize(function(){windowHeight=$window.height();kc_front.row_action(!0)});$.fn.kc_parallax=function(){var $this=$(this),el_top;$this.each(function(){el_top=$this.offset().top});function update(){var pos=$window.scrollTop();$this.each(function(){var $el=$(this),top=$el.offset().top,height=$el.outerHeight(!0);if(top+heightpos+windowHeight||$this.data('kc-parallax')!==!0)
return;$this.css('backgroundPosition',"50% "+Math.round((el_top-pos)*0.4)+"px")})}
$window.on('scroll resize',update).trigger('update')};$.fn.viewportChecker=function(useroptions){var options={classToAdd:'visible',offset:100,callbackFunction:function(elem){}};$.extend(options,useroptions);var $elem=this,windowHeight=$(window).height();this.checkElements=function(){var scrollElem=((navigator.userAgent.toLowerCase().indexOf('webkit')!=-1)?window:'html'),viewportTop=$(scrollElem).scrollTop(),viewportBottom=(viewportTop+windowHeight);$elem.each(function(){var $obj=$(this);if($obj.hasClass(options.classToAdd)&&options.classToAdd!=''){return}
var elemTop=Math.round($obj.offset().top)+options.offset,elemBottom=elemTop+($obj.height());if((elemTopviewportTop)&&this.done!=!0){$obj.addClass(options.classToAdd);options.callbackFunction($obj)}})};$(window).scroll(this.checkElements);this.checkElements();$(window).resize(function(e){windowHeight=e.currentTarget.innerHeight})};$(document).ready(function($){kc_front.init($)});return{win_height:0,win_width:0,body:$('body'),init:function(){$('section[data-kc-parallax="true"]').each(function(){$(this).kc_parallax()});this.accordion();this.tabs();this.youtube_row_background.init();if(window.location.href.indexOf('#')>-1){$('a[href="#'+window.location.href.split('#')[1]+'"]').trigger('click')}
$('.kc_button').add('.kc_tooltip').kcTooltip();$('.kc-close-but').on('click',function(){$(this).parent().parent().hide('slow',function(){$(this).remove()})});this.google_maps();this.blog.masonry();this.image_gallery.masonry();this.carousel_images();this.carousel_post();this.countdown_timer();this.piechar.init();this.progress_bar.run();this.ajax_action();this.pretty_photo();this.tooltips();this.image_fade();this.smooth_scroll();this.animate();this.row_action(!0)},refresh:function(el){setTimeout(function(el){kc_front.piechar.update(el);kc_front.progress_bar.update(el);kc_front.image_gallery.masonry(el);if($('.kc_video_play').length>0){kc_video_play.refresh(el)}},100,el)},viewport:function(st){var d=document;if(d.compatMode==='BackCompat'){if(st=='height')return d.body.clientHeight;else return d.body.clientWidth}else{if(st=='height')return d.documentElement.clientHeight;else return d.documentElement.clientWidth}},row_action:function(force){var d=document;[].forEach.call(d.querySelectorAll('section[data-kc-fullwidth]'),function(el){var kc_clfw=d.querySelectorAll('.kc_clfw')[0],rect;if(typeof kc_clfw==='undefined')
return;rect=kc_clfw.getBoundingClientRect();el.style.left=(-rect.left)+'px';if(el.getAttribute('data-kc-fullwidth')=='row'){el.style.paddingLeft=rect.left+'px';el.style.paddingRight=(kc_front.viewport('width')-rect.width-rect.left)+'px';el.style.width=rect.width+'px'}else{el.style.paddingLeft='0px';el.style.width=kc_front.viewport('width')+'px'}
if(el.nextElementSibling!==null&&el.nextElementSibling.tagName=='SCRIPT'){if(el.nextElementSibling.innerHTML=='kc_front.row_action(true);'){el.parentNode.removeChild(el.nextElementSibling)}}})},google_maps:function(wrp){$('.kc_google_maps').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});var $_this=$(this);if($_this.data('wheel')=='disable'){$_this.click(function(){$_this.find('iframe').css("pointer-events","auto")});$_this.mouseleave(function(){$_this.find('iframe').css("pointer-events","none")})}
$_this.find('.close').on('click',function(){$_this.find('.map_popup_contact_form').toggleClass("hidden");$_this.find('.show_contact_form').fadeIn('slow')});$_this.find('.show_contact_form').on('click',function(){$_this.find('.map_popup_contact_form').toggleClass("hidden");$_this.find('.show_contact_form').fadeOut('slow')})})},accordion:function(wrp){$('.kc_accordion_wrapper').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});var active=$(this).data('tab-active')!==undefined?($(this).data('tab-active')-1):0;if($(this).data('closeall')==!0)
active='100000';$(this).find('>div.kc_accordion_section>h3.kc_accordion_header>a, >div.kc_accordion_section>h3.kc_accordion_header>.ui-accordion-header-icon').off('click').on('click',function(e){var wrp=$(this).closest('.kc_accordion_wrapper'),section=$(this).closest('.kc_accordion_section'),allowopenall=(!0===wrp.data('allowopenall'))?!0:!1,closeall=(!0===wrp.data('closeall'))?!0:!1,changed=section.find('>h3.kc_accordion_header').hasClass('ui-state-active'),clickitself=!1;if(allowopenall===!1){if(!section.find('>h3.kc_accordion_header').hasClass('ui-state-active')){wrp.find('>.kc_accordion_section>.kc_accordion_content').slideUp();wrp.find('>.kc_accordion_section>h3.kc_accordion_header').removeClass('ui-state-active');wrp.find('>.kc_accordion_section.kc-section-active').removeClass('kc-section-active');section.find('>.kc_accordion_content').stop().slideDown('normal',function(){$(this).css({height:''})});section.find('>h3.kc_accordion_header').addClass('ui-state-active');section.addClass('kc-section-active')}else{wrp.find('>.kc_accordion_section>.kc_accordion_content').slideUp();wrp.find('>.kc_accordion_section>h3.kc_accordion_header').removeClass('ui-state-active');wrp.find('>.kc_accordion_section>.kc-section-active').removeClass('kc-section-active');section.removeClass('kc-section-active')}}else{if(section.find('>h3.kc_accordion_header').hasClass('ui-state-active')){section.find('>.kc_accordion_content').stop().slideUp();section.find('>h3.kc_accordion_header').removeClass('ui-state-active');section.removeClass('kc-section-active')}else{section.find('>.kc_accordion_content').stop().slideDown('normal',function(){$(this).css({height:''})});section.find('>h3.kc_accordion_header').addClass('ui-state-active');section.addClass('kc-section-active')}}
if(changed!=section.find('>h3.kc_accordion_header').hasClass('ui-state-active'))
kc_front.refresh(section.find('>.kc_accordion_content'));e.preventDefault();var index=$(this).closest('.kc_accordion_section');index=index.parent().find('>.kc_accordion_section').index(index.get(0));$(this).closest('.kc_accordion_wrapper').data({'tab-active':(index+1)})}).eq(active).trigger('click')})},tabs:function(wrp){$('.kc_tabs > .kc_wrapper').each(function(index){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});var $_this=$(this),tab_group=$_this.parent('.kc_tabs.group'),tab_event=('yes'===tab_group.data('open-on-mouseover'))?'mouseover':'click',effect_option=('yes'===tab_group.data('effect-option'))?!0:!1,active_section=parseInt(tab_group.data('tab-active'))-1;$(this).find('>.ui-tabs-nav>li').off('click').on('click',function(e){e.preventDefault()}).off(tab_event).on(tab_event,function(e){if($(this).hasClass('ui-tabs-active')){e.preventDefault();return}
var labels=$(this).closest('.kc_tabs_nav,.ui-tabs-nav').find('>li'),index=labels.index(this),tab_list=$(this).closest('.kc_wrapper').find('>.kc_tab'),new_panel=tab_list.eq(index);labels.removeClass('ui-tabs-active');$(this).addClass('ui-tabs-active');tab_list.removeClass('ui-tabs-body-active').removeClass('kc-section-active');new_panel.addClass('ui-tabs-body-active').addClass('kc-section-active');if(effect_option===!0)
new_panel.css({'opacity':0}).animate({opacity:1});e.preventDefault();$(this).closest('.kc_tabs').data({'tab-active':(index+1)})}).eq(active_section).trigger(tab_event)});$('.kc_tabs.kc-tabs-slider').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});$(this).find('.kc-tabs-slider-nav li').each(function(index){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});$(this).on('click',index,function(e){$(this).parent().find('.kc-title-active').removeClass('kc-title-active');$(this).addClass('kc-title-active');console.log(e.data);$(this).closest('.kc-tabs-slider').find('.owl-carousel').trigger('owl.goTo',e.data);e.preventDefault();$(this).closest('.kc_tabs').data({'active':e.data})});if(index===0)
$(this).addClass('kc-title-active')})});kc_front.owl_slider()},counterup:function(){$('.counterup').each(function(index){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});$(this).counterUp({delay:100,time:2000})})},youtube_row_background:{init:function(){$('.kc_row, .kc_column').each(function(){var $row=$(this),youtubeUrl,youtubeId;if($row.data('kc-video-bg')){youtubeUrl=$row.data('kc-video-bg');youtubeId=kc_front.youtube_row_background.getID(youtubeUrl);if(youtubeId){$row.find('.kc_wrap-video-bg').remove();kc_front.youtube_row_background.add($row,youtubeId)}}else{$row.find('.kc_wrap-video-bg').remove()}})},getID:function(url){if('undefined'===typeof(url)){return!1}
var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);if(null!==id){return id[1]}
return!1},add:function($obj,youtubeId,counter){if(YT===undefined)
return;if('undefined'===typeof(YT.Player)){counter='undefined'===typeof(counter)?0:counter;if(counter>100){console.warn('Too many attempts to load YouTube api');return}
setTimeout(function(){kc_front.youtube_row_background.add($obj,youtubeId,counter++)},100);return}
var player,$container=$obj.prepend('').find('.ifr_inner'),options=$obj.data('kc-video-options'),playerVars={playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1};options=options?JSON.parse('{"'+options.replace(/&/g,'","').replace(/=/g,'":"')+'"}',function(key,value){return key===""?value:decodeURIComponent(value)}):{};if(typeof options=='object')playerVars=$.extend(playerVars,options);player=new YT.Player($container[0],{width:'100%',height:'100%',videoId:youtubeId,playerVars:playerVars,events:{onReady:function(e){if($obj.data('kc-video-mute')=='yes')
e.target.mute().setLoop(!0);e.target.playVideo()}}});kc_front.youtube_row_background.resize($obj);$(window).on('resize',function(){kc_front.youtube_row_background.resize($obj)})},resize:function($obj){var ratio=1.77,ifr_w,ifr_h,marginLeft,marginTop,inner_width=$obj.innerWidth(),inner_height=$obj.innerHeight();if((inner_width/inner_height)0){imgs.each(function(ind){var tmpImg=new Image();tmpImg.onload=function(){ready++;if(ready==total){new Masonry(wrp.get(0),{itemSelector:'.post-grid',columnWidth:'.post-grid',})}};tmpImg.src=$(this).attr('src')})}else{new Masonry(wrp.get(0),{itemSelector:'.post-grid',columnWidth:'.post-grid',})}})},},image_gallery:{masonry:function(){$('.kc_image_gallery').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});if(('yes'===$(this).data('image_masonry'))){var imgs=$(this).find('img'),total=imgs.length,ready=0,el=$(this);$(this).data({'total':total});imgs.each(function(ind){var tmpImg=new Image();tmpImg.onload=function(){ready++;if(ready==total){new Masonry(el.get(0),{itemSelector:'.item-grid',columnWidth:'.item-grid',})}};tmpImg.src=$(this).attr('src')})}});kc_front.pretty_photo()},},image_fade:function(){$('.image_fadein_slider .image_fadein').each(function(){if($(this).data('loaded')!==!0)
$(this).data({'loaded':!0});else return;var delay=$(this).data('delay')?$(this).data('delay'):'3000';window.kc_front.image_fade_delay(delay,$(this).find('img').first())})},image_fade_delay:function(delay,img){if(img===undefined)
return;img.parent().find('.active').removeClass('active');img.addClass('active');if(img.next().length>0)
img=img.next();else img=img.parent().find('img').first();var time_out=setTimeout(window.kc_front.image_fade_delay,delay,delay,img)},carousel_images:function(wrp){$('.kc-carousel-images').each(function(index){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});var options=$(this).data('owl-i-options'),_auto_play=('yes'===options.autoplay)?!0:!1,_delay=(options.delay!==undefined)?options.delay:8,_navigation=('yes'===options.navigation)?!0:!1,_pagination=('yes'===options.pagination)?!0:!1,_speed=options.speed,_items=options.items,_auto_height=('yes'===options.autoheight)?!0:!1,_num_thumb=(options.num_thumb!==undefined)?options.num_thumb:5,_show_thumb=('yes'===options.showthumb)?!0:!1,_progress_bar=('yes'===options.progressbar)?!0:!1,_singleItem=!1,_tablet=!1,_mobile=!1;if(options.tablet>0){_tablet=[999,options.tablet]}
if(options.mobile>0){_mobile=[479,options.mobile]}
var progressBar=function(){};var moved=function(){};var pauseOnDragging=function(){};if(!0===_auto_height||!0===_progress_bar||!0===_show_thumb)
_singleItem=!0;if(_auto_play)
_auto_play=parseInt(_delay)*1000;if(!0===_progress_bar){var time=_delay;var $progressBar,$bar,$elem,isPause,tick,percentTime;progressBar=function(elem){$elem=elem;buildProgressBar();start()};var buildProgressBar=function(){$progressBar=$("",{class:"progressBar"});$bar=$("
",{class:"bar"});$progressBar.append($bar).prependTo($elem)};var start=function(){percentTime=0;isPause=!1;tick=setInterval(interval,10)};var interval=function(){if(isPause===!1){percentTime+=1/time;$bar.css({width:percentTime+"%"});if(percentTime>=100){$elem.trigger('owl.next')}}};pauseOnDragging=function(){isPause=!0};moved=function(){clearTimeout(tick);start()}}
if(!0!==_show_thumb){$(this).owlCarousel({autoPlay:_auto_play,navigation:_navigation,pagination:_pagination,slideSpeed:_speed,paginationSpeed:_speed,singleItem:_singleItem,autoHeight:_auto_height,items:_items,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:_tablet,itemsTabletSmall:_tablet,itemsMobile:_mobile,afterInit:progressBar,afterMove:moved,startDragging:pauseOnDragging})}else{var sync1=$(this);var sync2=sync1.next('.kc-sync2');var syncPosition=function(el){var current=this.currentItem;$(sync2).find(".owl-item").removeClass("synced").eq(current).addClass("synced");if($(sync2).data("owlCarousel")!==undefined){center(current)}};sync2.on("click",".owl-item",function(e){e.preventDefault();var number=$(this).data("owlItem");sync1.trigger("owl.goTo",number)});var center=function(number){var sync2visible=sync2.data("owlCarousel").owl.visibleItems;var num=number;var found=!1;for(var i in sync2visible){if(num===sync2visible[i]){found=!0}}
if(found===!1){if(num>sync2visible[sync2visible.length-1]){sync2.trigger("owl.goTo",num-sync2visible.length+2)}else{if(num-1===-1){num=0}
sync2.trigger("owl.goTo",num)}}else if(num===sync2visible[sync2visible.length-1]){sync2.trigger("owl.goTo",sync2visible[1])}else if(num===sync2visible[0]){sync2.trigger("owl.goTo",num-1)}};sync1.owlCarousel({autoPlay:_auto_play,singleItem:_singleItem,slideSpeed:_speed,paginationSpeed:_speed,navigation:_navigation,pagination:_pagination,afterAction:syncPosition,responsiveRefreshRate:200,autoHeight:_auto_height,afterInit:progressBar,afterMove:moved,startDragging:pauseOnDragging});sync2.owlCarousel({items:_num_thumb,itemsDesktop:[1199,15],itemsDesktopSmall:[979,12],itemsTablet:[768,6],itemsMobile:[479,5],pagination:_pagination,responsiveRefreshRate:100,afterInit:function(el){el.find(".owl-item").eq(0).addClass("synced")}})}});kc_front.pretty_photo()},update_option:function(data_options){$.post(top.kc_ajax_url,{'security':top.kc_ajax_nonce,'action':'kc_update_option','options':top.kc.tools.base64.encode(JSON.stringify(data_options))},function(result){})},carousel_post:function(wrp){kc_front.owl_slider('.kc-owl-post-carousel')},tooltips:function(){$('.kc_tooltip').each(function(){if($(this).data('kc-loaded')!==!0)
$(this).data({'kc-loaded':!0});else return;$(this).kcTooltip()})},countdown_timer:function(){$('.kc-countdown-timer').each(function(index){var countdown_data=$(this).data('countdown');$(this).countdown(countdown_data.date,function(event){$(this).html(event.strftime(countdown_data.template))})})},piechar:{init:function(){$('.kc_piechart').each(function(index){$(this).viewportChecker({callbackFunction:function(elm){kc_front.piechar.load(elm)},classToAdd:'kc-pc-loaded'})})},load:function(el){if(el.parent('div').width()<10)
return 0;var _size=el.data('size'),_linecap=('yes'===el.data('linecap'))?'round':'square',_barColor=el.data('barcolor'),_trackColor=el.data('trackcolor'),_autowidth=el.data('autowidth'),_linewidth=el.data('linewidth');if('yes'===_autowidth){_size=el.parent('div').width();el.data('size',_size)}
var percent_width=el.find('.percent').width()+el.find('.percent:after').width();var percent_height=el.find('.percent').height();el.easyPieChart({barColor:_barColor,trackColor:_trackColor,lineCap:_linecap,easing:'easeOutBounce',onStep:function(from,to,percent){$(this.el).find('.percent').text(Math.round(percent));$(this.el).find('.percent').show();$(this.el).css({'width':_size,'height':_size})},scaleLength:0,lineWidth:_linewidth,size:_size,})},update:function(el){el.find('.kc_piechart').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});kc_front.piechar.load($(this))})}},progress_bar:{run:function(){$('.kc_progress_bars').each(function(){$(this).viewportChecker({callbackFunction:function(el){kc_front.progress_bar.update(el)},classToAdd:'kc-pb-loaded'})})},update:function(el){$('.kc-progress-bar .kc-ui-progress').each(function(){if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});$(this).css({width:'5%'}).stop().animate({width:this.getAttribute('data-value')+'%'},{duration:parseInt(this.getAttribute('data-speed')),easing:'easeInOutQuart',step:function(st,tl){if(tl.now/tl.end>0.3)
this.getElementsByClassName('ui-label')[0].style.opacity=tl.now/tl.end}}).find('.ui-label').css({opacity:0})})}},ajax_action:function(){$('.kc_facebook_recent_post').each(function(){if(this.getAttribute('data-cfg')===null||this.getAttribute('data-cfg')===undefined||this.getAttribute('data-cfg')==='')
return;var $_this=$(this),data_send={action:'kc_facebook_recent_post',cfg:$(this).data('cfg')};this.removeAttribute('data-cfg');$.ajax({url:kc_script_data.ajax_url,method:'POST',dataType:'json',data:data_send,success:function(response_data){$_this.find('ul').html(response_data.html).before(response_data.header_html)}})});$('.kc_wrap_instagram').each(function(index){if(this.getAttribute('data-cfg')===null||this.getAttribute('data-cfg')===undefined||this.getAttribute('data-cfg')==='')
return;var $_this=$(this),data_send={action:'kc_instagrams_feed',cfg:$(this).data('cfg')};this.removeAttribute('data-cfg');$.ajax({url:kc_script_data.ajax_url,method:'POST',dataType:'json',data:data_send,success:function(response_data){$_this.find('ul').html(response_data.html)}})});$('.kc_twitter_feed').each(function(index){if(this.getAttribute('data-cfg')===null||this.getAttribute('data-cfg')===undefined||this.getAttribute('data-cfg')==='')
return;var $_this=$(this),atts_data={action:'kc_twitter_timeline',cfg:$(this).data('cfg')};this.removeAttribute('data-cfg');var owl_option=$(this).data('owl_option');$.ajax({url:kc_script_data.ajax_url,method:'POST',dataType:'json',data:atts_data,success:function(response_data){var display_style=$_this.data('display_style');$_this.find('.result_twitter_feed').html(response_data.html);$_this.find('.result_twitter_feed').before('
'+response_data.header_data+'
');var _navigation=('yes'===owl_option.show_navigation)?!0:!1,_pagination=('yes'===owl_option.show_pagination)?!0:!1,_autoHeight=('yes'===owl_option.auto_height)?!0:!1;if(2===display_style){$_this.find('.kc-tweet-owl').owlCarousel({navigation:_navigation,pagination:_pagination,slideSpeed:300,paginationSpeed:400,singleItem:!0,items:1,autoHeight:_autoHeight})}}})})},owl_slider:function(){if(typeof $().owlCarousel!='function')
return;$('[data-owl-options]').each(function(index){var options=$(this).data('owl-options');if(typeof options!=='object')
return;if($(this).data('loaded')===!0)
return;else $(this).data({'loaded':!0});$(this).attr({'data-owl-options':null});var _autoplay=('yes'===options.autoplay)?!0:!1,_navigation=('yes'===options.navigation)?!0:!1,_pagination=('yes'===options.pagination)?!0:!1,_speed=(options.speed!==undefined)?options.speed:450,_items=(options.items!==undefined)?options.items:1,_tablet=(options.tablet!==undefined)?options.tablet:1,_mobile=(options.mobile!==undefined)?options.mobile:1,_autoheight=('yes'===options.autoheight)?!0:!1,_showthumb=('yes'===options.showthumb)?!0:!1,_singleItem=!1;if(_autoheight===!0){_singleItem=!0;_items=1}
$(this).owlCarousel({autoPlay:_autoplay,navigation:_navigation,pagination:_pagination,showthumb:_showthumb,slideSpeed:_speed,paginationSpeed:_speed,singleItem:_singleItem,autoHeight:_autoheight,items:_items,itemsCustom:!1,itemsDesktop:[1199,_items],itemsDesktopSmall:[980,_tablet],itemsTablet:[640,_mobile],itemsTabletSmall:!1,itemsMobile:[480,_mobile],})});kc_front.pretty_photo()},pretty_photo:function(){if(typeof($.prettyPhoto)=='object'){$("a.kc-pretty-photo:not(.kc-pt-loaded)").addClass('kc-pt-loaded').off('click').prettyPhoto({theme:'dark_rounded',allow_resize:!0,allow_expand:!0,opacity:0.85,animation_speed:'fast',deeplinking:!1,counter_separator_label:' / ',show_title:!0,autoplay:!0,horizontal_padding:0,overlay_gallery:!1,markup:'
\
'})}},smooth_scroll:function(){$('a[href^="#"]').on('click',function(e){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname&&this.hash.indexOf('#!')===0){var target=$(this.hash.replace('!',''));if(target.length){$('html,body').stop().animate({scrollTop:target.offset().top-80},500)}}})},animate:function(){$('.kc-animated').each(function(index){$(this).viewportChecker({callbackFunction:function(el){var clazz=el.get(0).className,delay=0,speed='2s',timeout=0;if(clazz.indexOf('kc-animate-delay-')>-1){delay=clazz.split('kc-animate-delay-')[1].split(' ')[0];el.css({'animation-delay':delay+'ms'});el.removeClass('kc-animate-delay-'+delay);timeout+=parseInt(delay)}
if(clazz.indexOf('kc-animate-speed-')>-1){speed=clazz.split('kc-animate-speed-')[1].split(' ')[0];el.css({'animation-duration':speed});el.removeClass('kc-animate-speed-'+speed)}
if(clazz.indexOf('kc-animate-eff-')>-1){var eff=clazz.split('kc-animate-eff-')[1].split(' ')[0];timeout+=parseFloat(speed)*1000;el.removeClass('kc-animated').addClass('animated '+eff);setTimeout(function(el,eff){el.removeClass('animated kc-animated kc-animate-eff-'+eff+' '+eff);el.css({'animation-delay':'','animation-duration':''})},timeout,el,eff)}},classToAdd:'kc-pc-loaded'})})}}}(jQuery));(function($){$.fn.kcTooltip=function(){return this.each(function(){var rect=this.getBoundingClientRect();var tooltip=$(this).data('tooltip'),span_w=$(this).find('span').outerWidth(),span_h=$(this).find('span').outerHeight(),this_w=$(this).outerWidth(),this_h=$(this).outerHeight();if(typeof(tooltip)=='undefined'){$(this).find('span').css('margin-left',-span_w/2);$(this).hover().find('span').css('bottom',this_h+10)}else{var position=$(this).data('position');var ext_bottom=-10;if(typeof position=='undefined')
position='top';$(this).addClass(position);$(this).find('span').attr({'style':''});switch(position){case 'right':{var bottom;bottom=this_h/2-span_h/2;$(this).find('span').css('left',this_w+10);$(this).find('span').css('bottom',bottom);$(this).hover().find('span').css('left',this_w-ext_bottom);break}
case 'bottom':{$(this).find('span').css('margin-left',-span_w/2);$(this).hover().find('span').css('bottom',-span_h+ext_bottom);break}
case 'left':{var bottom,ext_left=5;bottom=this_h/2-span_h/2;$(this).find('span').css('left',-span_w-ext_left);$(this).find('span').css('bottom',bottom);break}
default:{$(this).find('span').css('margin-left',-span_w/2);$(this).hover().find('span').css('bottom',this_h-ext_bottom)}}}})}}(jQuery));(function(window,document){'use strict';var supportedBrowser=!1,loaded=!1;if(document.querySelector){if(window.addEventListener){supportedBrowser=!0}}
window.wp=window.wp||{};if(!!window.wp.receiveEmbedMessage){return}
window.wp.receiveEmbedMessage=function(e){var data=e.data;if(!data){return}
if(!(data.secret||data.message||data.value)){return}
if(/[^a-zA-Z0-9]/.test(data.secret)){return}
var iframes=document.querySelectorAll('iframe[data-secret="'+data.secret+'"]'),blockquotes=document.querySelectorAll('blockquote[data-secret="'+data.secret+'"]'),i,source,height,sourceURL,targetURL;for(i=0;i
1000){height=1000}else if(~~height<200){height=200}
source.height=height}
if('link'===data.message){sourceURL=document.createElement('a');targetURL=document.createElement('a');sourceURL.href=source.getAttribute('src');targetURL.href=data.value;if(targetURL.host===sourceURL.host){if(document.activeElement===source){window.top.location.href=data.value}}}}};function onLoad(){if(loaded){return}
loaded=!0;var isIE10=-1!==navigator.appVersion.indexOf('MSIE 10'),isIE11=!!navigator.userAgent.match(/Trident.*rv:11\./),iframes=document.querySelectorAll('iframe.wp-embedded-content'),iframeClone,i,source,secret;for(i=0;i