// source --> http://beta.netcome.org/wp-content/themes/kong-theme/kong-framework/theme-scripts/dist/js/main.min.js?ver=1.0 !function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};e.m=t,e.c=i,e.p="",e(0)}([function(t,exports,e){"use strict";e(1),window.KongHeaderParallax=e(2),window.KongScrollReveal=e(3),window.masonry=e(4),function($){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"Cannot load data",e=$('
'+t+'
');return e.find("i").click(function(){e.remove()}),this.append(e)},$(window).load(function(){var t=$("body"),e=1e3*parseFloat(t.attr("data-loading-delay")),i=document.body.getAttribute("data-loading-class");document.body.removeAttribute("data-loading-delay"),t.hasClass("kong-site--loadingState")&&setTimeout(function(){t.removeClass("kong-site--loadingState"),i&&(t.removeClass(i),document.body.removeAttribute("data-loading-class"))},e)}),$(window).ready(function(){document.querySelectorAll(".widget_recent_entries li").forEach(function(t){var e=document.createElement("span");e.className="fa fa-file-o kong-widget__icon",t.insertBefore(e,t.firstChild)}),$.fn.kongHeroSliderCarousel=function(){return this.each(function(){var t=$(this),e=t.data("settings"),i={loop:!0,items:1,margin:0,nav:!1,dots:!0,dotsSpeed:1e3,dragEndSpeed:1e3};"fade"==e.effect&&(i.animateOut="fadeOut"),e.autoplay&&(i.autoplaySpeed=1e3,i.autoplay=!0,i.autoplayTimeout=1e4,i.autoplayHoverPause=!0),t.owlCarousel(i)})},$(".kong-heroSlider").kongHeroSliderCarousel(),$.fn.kongCarouselPosts=function(){return this.each(function(){var t=$(this),e=t.data("settings"),i=parseInt(e.items),n={1024:{items:i},768:{items:i>=3?i-1:i},480:{items:i>=4?2:1},0:{items:1}},o={responsive:n,loop:!1,margin:parseInt(e.margin),nav:!1,dots:e.dots,navSpeed:750,dotsSpeed:750,dragEndSpeed:750};t.owlCarousel(o)})},$(".kong-carouselPosts").kongCarouselPosts(),new KongHeaderParallax(".kong-singlePost__hero--parallax",".kong-hero__background .libra-lazyImage",".kong-singlePost__hero__content"),new KongHeaderParallax(".kong-page__hero--parallax",".kong-lazyImage",".kong-container");var t=$(".kong-siteGoTopBtn");if(t.length){t.on("click",function(t){t.preventDefault();var e=parseInt($(this).attr("data-time"));$("html,body").animate({scrollTop:0},e)});var e=t.attr("data-show-when");$(window).scroll(function(){var i=$(window).scrollTop(),n=100*(i+$(window).height())/$(document).height();!t.hasClass("kong-siteGoTopBtn--visible")&&n>=e?t.addClass("kong-siteGoTopBtn--visible"):(t.hasClass("kong-siteGoTopBtn--visible")&&n"+s.html+""),l=a.children();a.kongLazyImage(1e3),void 0!==o&&o.hasOwnProperty("scroll_effect")&&new KongScrollReveal(a[0],{animateClass:o.scroll_effect,delay:50});var u=i.parent().find(n.append_to);if(u.append(l),n.hasOwnProperty("masonry")){window.masonry.data(u[0]).appended(l)}r.offset+=n.limit,s.loaded_all?(i.addClass("kong-loadMoreBtn--disabled"),e.text(n.load_all_text),t.unbind("click")):e.text(n.text)}t.removeClass("kong-loadMoreBtn--loading")},error:function(e){t.removeClass("kong-loadMoreBtn--loading")}}))})})},$(".kong-blog__loadMoreBtn").kongBindBlogLoadMore(),$(".kong-blogMetro__loadMoreBtn").kongBindBlogLoadMore(),$.fn.kongBindBlogInfiniteScroller=function(){return this.each(function(){function t(){if(!(e.offset().top-window.pageYOffset-100>=window.innerHeight)){if(window.removeEventListener("scroll",t),r)return void setTimeout(function(){a.addClass("kong-infinitePreloader--loadedAll"),setTimeout(function(){a.removeClass("kong-infinitePreloader--loadedAll"),setTimeout(function(){a.remove()},1e3)},4e3)},1e3);a.addClass("kong-infinitePreloader--loading"),$.ajax({method:"GET",url:kong_theme_data.api+"/load-more",data:l,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",kong_theme_data.nonce)},success:function(e){if(-1!=e){e=JSON.parse(e);var u=$("
"+e.html+"
"),d=u.children();u.kongLazyImage(1e3),void 0!==n&&n.hasOwnProperty("scroll_effect")&&new KongScrollReveal(u[0],{animateClass:n.scroll_effect,delay:50});var h=o.parent().find(i.append_to);if(h.append(d),void 0!==s&&!1!==s){window.masonry.data(h[0]).appended(d)}l.offset+=i.limit,a.removeClass("kong-infinitePreloader--loading"),window.addEventListener("scroll",t),e.loaded_all&&(r=!0)}},error:function(t){}})}}var e=$(this),i=e.data("settings"),n=e.data("custom-settings"),o=e.parent(),r=!1,s=i.masonry;i.limit=parseInt(i.limit);var a=$('
');$(document.body).append(a);var l={orderby:i.orderby,order:i.order,offset:void 0!==i.offset?i.offset:i.limit,limit:i.limit,data:JSON.stringify(i.data),type:i.type};void 0!==n&&(l.custom_settings=JSON.stringify(n)),window.addEventListener("scroll",t)})},$(".kong-blog__infiniteScroller").kongBindBlogInfiniteScroller(),$(".kong-blogMetro__infiniteScroller").kongBindBlogInfiniteScroller(),document.querySelectorAll(".kong-blogImage__wrap").forEach(function(t){var e=$(t),i=e.data("animate-scroll");i&&new KongScrollReveal(t,{animateClass:i})}),$.fn.kongBindScrollReveal=function(t){return this.each(function(){var t=this,e=$(t),i=e.data("animate-scroll");i&&new KongScrollReveal(t,{animateClass:i})})},$.fn.kongBindMetroMasonry=function(t){return this.each(function(){var t=this,e=$(t);e.kongBindMasonry({itemSelector:".kong-blogMetro__item",columnWidth:".kong-blogMetro__sizer",itemWatchSelector:".kong-blogMetro__item",onceLayoutComplete:function(i){var n=e.data("animate-scroll");n&&new KongScrollReveal(t,{animateClass:n}),window.scrollTo(window.scrollX,window.scrollY-1),window.scrollTo(window.scrollX,window.scrollY+1)}})})},document.querySelectorAll(".kong-blogMetro").forEach(function(t){$(t).kongBindMetroMasonry()}),"undefined"!=typeof kong_theme_data&&kong_theme_data.hasOwnProperty("animated_link")&&!$(document.body).hasClass("kong-theme-option-iframe")){var i=kong_theme_data.animated_link,n=['a[href*="'+i.domain+'"]'];i.selector&&$.isValidSelector(i.selector)&&(n[1]=i.selector),$(document).on("click",n.join(","),function(t){var e=this.href;/^(https?|ftp|torrent|image|irc):\/\/(-\.)?([^\s\/?\.#-]+\.?)+(\/[^\s]*)?$/i.test(e)&&(t.preventDefault(),i.scroll&&window.pageYOffset>20&&$("html, body").animate({scrollTop:0},i.scrollDelay),$("html").fadeOut(i.delay,"swing",function(){setTimeout(function(){window.location.href=e},100)}))})}}),$.fn.kongBindMasonry=function(t){return this.each(function(){var e=this;setTimeout(function(){var i=new window.masonry(e,{itemSelector:t.itemSelector,columnWidth:t.columnWidth,percentPosition:!0,transitionDuration:0});"function"==typeof t.onceLayoutComplete&&i.once("layoutComplete",function(){t.onceLayoutComplete(i)}),"function"==typeof t.onLayoutComplete&&i.on("layoutComplete",function(){t.onLayoutComplete(i)}),setTimeout(function(){i.layout()});var n=void 0;window.ResizeSensor(e.querySelector(t.itemWatchSelector),function(){clearTimeout(n),n=setTimeout(function(){i.layout()},500)})},0)})},$.fn.masonryAddItems=function(t){return this.each(function(){var e=this,i=t.items;$(e).append(i),window.masonry.data(e).appended(i)})},window.TWITTER={timeAgo:function(t){var e=new Date,i=new Date(t);$.browser.msie&&(i=Date.parse(t.replace(/( \+)/," UTC$1")));var n=e-i,o=864e5;return isNaN(n)||n<0?"":n<2e3?"right now":n<6e4?Math.floor(n/1e3)+" seconds ago":n<12e4?"about 1 minute ago":n<36e5?Math.floor(n/6e4)+" minutes ago":n<72e5?"about 1 hour ago":no&&n<2*o?"yesterday":n<31536e6?Math.floor(n/o)+" days ago":"over a year ago"},ify:{link:function(t){return t.replace(/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/g,function(t,e,i,n,o){return''+(e.length>25?e.substr(0,24)+"...":e)+""+o})},at:function(t){return t.replace(/\B[@@]([a-zA-Z0-9_]{1,20})/g,function(t,e){return'@'+e+""})},list:function(t){return t.replace(/\B[@@]([a-zA-Z0-9_]{1,20}\/\w+)/g,function(t,e){return'@'+e+""})},hash:function(t){return t.replace(/(^|\s+)#(\w+)/gi,function(t,e,i){return e+'#'+i+""})},clean:function(t){return this.hash(this.at(this.list(this.link(t))))}}}}(jQuery)},function(t,exports,e){var i,n;"function"==typeof Symbol&&Symbol.iterator;!function(o,r){i=r,void 0!==(n="function"==typeof i?i.call(exports,e,exports,t):i)&&(t.exports=n)}(0,function(){function t(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,o=0,r=t.length;if(n)for(;o
',t.appendChild(t.resizeSensor),"static"==r(t,"position")&&(t.style.position="relative");var a,l,u,d,h=t.resizeSensor.childNodes[0],c=h.childNodes[0],f=t.resizeSensor.childNodes[1],m=t.offsetWidth,p=t.offsetHeight,g=function(){c.style.width="100000px",c.style.height="100000px",h.scrollLeft=1e5,h.scrollTop=1e5,f.scrollLeft=1e5,f.scrollTop=1e5};g();var v=function(){l=0,a&&(m=u,p=d,t.resizedAttached&&t.resizedAttached.call())},y=function(){u=t.offsetWidth,d=t.offsetHeight,a=u!=m||d!=p,a&&!l&&(l=e(v)),g()},w=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};w(h,"scroll",y),w(f,"scroll",y)}t(i,function(t){s(t,n)}),this.detach=function(t){ResizeSensor.detach(i,t)}},ResizeSensor.detach=function(e,i){t(e,function(t){t.resizedAttached&&"function"==typeof i&&(t.resizedAttached.remove(i),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)})},ResizeSensor})},function(t,exports,e){var i,n;"function"==typeof Symbol&&Symbol.iterator;!function(){"use strict";function e(t,e,i){var n=document.querySelector(t);if(n){var r=n.querySelector(e);if(r)var s=["translate3d(0,",0,"px,0)"];var a=n.querySelector(i),l=["translateY(",0,"px)"],u=function(){var t=n.offsetHeight+100,e=window.pageYOffset,i=(t-e)/t;if(i>=0){var o=.4*e;l[1]=o,r&&(s[1]=o,r.style.transform=s.join("")),a.style.opacity=i,a.style.transform=l.join("")}};u(),window.addEventListener("scroll",function(){o(u)})}}var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};e.prototype.getOffsetTop=function(t){return t.getBoundingClientRect().top+document.body.scrollTop},i=[],void 0!==(n=function(){return e}.apply(exports,i))&&(t.exports=n)}()},function(t,exports,e){var i,n;"function"==typeof Symbol&&Symbol.iterator;!function(){"use strict";function e(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(arguments[2],this);if(e.hasOwnProperty("animateClass")){var n=e.animateClass,r=e.hasOwnProperty("delay")?e.delay:0;this.setup();var s,a,l=t.querySelectorAll("."+n);if(r)for(s=0,a=l.length;s0;)e--,t.bucket[e]()&&t.bucket.splice(e,1)},window.addEventListener("scroll",function(){o(t.loop)})}},e.prototype.isVisible=function(t){var e=t.getBoundingClientRect(),i=Math.max(this.docElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-i>=0)},e.prototype.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},i=[],void 0!==(n=function(){return e}.apply(exports,i))&&(t.exports=n)}()},function(t,exports,e){var i,n,o;!function(r,s){n=[e(5),e(7)],i=s,void 0!==(o="function"==typeof i?i.apply(exports,n):i)&&(t.exports=o)}(window,function(t,e){"use strict";var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t1&&i+t>this.cols?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var l=Math.floor(s/this.columnWidth);l-=s%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,h=a;h<=l;h++)this.colYs[h]=Math.max(d,this.colYs[h])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i})},function(t,exports,e){var i,n;!function(o,r){"use strict";i=[e(6),e(7),e(8),e(10)],void 0!==(n=function(t,e,i,n){return r(o,t,e,i,n)}.apply(exports,i))&&(t.exports=n)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++h;this.element.outlayerGUID=o,c[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];return i.length?(i=parseFloat(i))*(m[n]||1):0}var l=t.console,u=t.jQuery,d=function(){},h=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o