1var TIMING=!1;function Project(a){this.init(a)} 2Project.prototype.init=function(a){var b=Object.keys(a);this.cnf=a;this.plugins=new ProjectPlugins(this);this.ext_plugins={scrollto:{name:"scrollTo",loaded:!!$.fn.scrollTo,scripts:[TCO.dir+"/cms/jquery-plugins/jquery.scrollTo-min.js"],styles:[]},owl:{name:"owlCarousel",loaded:$.fn.owlCarousel,scripts:[TCO.dir+"/cms/jquery-plugins/owl-carousel2/owl.carousel.min.js"],styles:[TCO.dir+"/cms/jquery-plugins/owl-carousel2/assets/owl.carousel.min.css",TCO.dir+"/cms/jquery-plugins/owl-carousel2/assets/owl.theme.default.min.css"]}}; 3for(a=0;a<b.length;a+=1)this.callMethodByPlugin(b[a])};Project.prototype.callMethodByPlugin=function(a){var b=this;if(!this.cnf[a]||!ProjectPlugins.prototype.hasOwnProperty(a))return!1;if(this.plugins[a]._onload)$(function(){b.plugins[a]()});else if(Project.prototype.hasOwnProperty(a))this.plugins[a]();else return!1;return!0}; 4Project.prototype.addStyle=function(a,b){var c=$('<link rel="stylesheet" type="text/css" />').attr("href",a),e=$('<img id="aaa" />').on("error load",function(){$(this).remove();b()}).attr("src",a);$("body").append(e);$("head").append(c)};Project.prototype.addScript=function(a,b){$.getScript(a,b)}; 5Project.prototype.registerExtPluginResources=function(a,b){if(this.ext_plugins[a]){var c=this,e=0,d=0,h=function(){for(d=e=0;d<c.ext_plugins[a].scripts.length;d+=1)c.addScript(c.ext_plugins[a].scripts[d],k)},k=function(){e+=1;e===c.ext_plugins[a].scripts.length&&void 0!==b&&b()},g=function(){e+=1;e===c.ext_plugins[a].styles.length&&h()};if(this.ext_plugins[a].styles.length)for(d=0;d<this.ext_plugins[a].styles.length;d+=1)this.addStyle(this.ext_plugins[a].styles[d],g);else h()}}; 6Project.prototype.addExtPlugin=function(a,b){this.ext_plugins[a]&&(!0===this.ext_plugins[a].status?b():this.registerExtPluginResources(a,b))};Project.prototype.getElement=function(a,b){if(!a)return b;switch(a.substr(0,1)){case "^":return 1===a.length?b.parent():b.closest(a.substr(1));case "+":return $(a,b)}return $(a)};function ProjectPlugins(a){this._api=a} 7ProjectPlugins.prototype.toggle=function(){var a=this;$("body").on("click","[data-toggle-class],[data-toggle-class-target]",function(b){TIMING&&console.time("call toggle");if(b.target&&void 0!==$(b.target).data("toggle-ignore"))return!0;b=$(this);var c=b.data("toggle-class-target"),e=b.data("toggle-class")||"active",d=b.data("toggle-focus"),h=b.data("toggle-add-other"),k=b.data("toggle-remove-other"),g=b.data("toggle-toggle-other");k&&a._api.getElement(k,b).removeClass(e);h&&a._api.getElement(h,b).addClass(e); 8g&&a._api.getElement(g,b).toggleClass(e);c=a._api.getElement(c,b);c.toggleClass(e);void 0!==d&&(b.hasClass(e)||c.hasClass(e))&&("#"===d.substr(0,1)?$(d).trigger("focus"):$(d||'input[type="text"]:first,textarea:first',c).first().trigger("focus"));TIMING&&console.timeEnd("call toggle");return!!b.data("toggle-propagate")})}; 9ProjectPlugins.prototype.owl=function(){this._api.addExtPlugin("owl",function(){TIMING&&console.time("init owl carousel");$("[data-owl]").each(function(){$(this).owlCarousel($(this).data("owl")||{})});TIMING&&console.timeEnd("init owl carousel")})};ProjectPlugins.prototype.pager=function(){}; 10ProjectPlugins.prototype.mailto=function(a){TIMING&&console.time("init mailto");$("[data-mt]",a).each(function(){var b=$(this),c=b.data("mt"),e=void 0!==b.data("mt-nr");if("object"===typeof c&&1<c.length){var d=c[0]+"@"+c[1];2<c.length&&(d+="."+c[2]);e||b.text(d);"a"===this.tagName.toLowerCase()&&b.prop("href","mailto:"+d)}});TIMING&&console.timeEnd("init mailto")}; 11ProjectPlugins.prototype.scrollto=function(){var a=this;$("body").on("click","[data-scrollto]",function(){var b=$(this),c=b.data("scrollto"),e=b.data("scrollto-duration")||0,d=b.data("scrollto-settings")||{};if(!c)if(b.is('a[href^="#"]'))c=b.attr("href");else return;if("number"!==typeof c){try{c=$(c)}catch(h){return}if(!c.length)return}a._api.addExtPlugin("scrollto",function(){$.scrollTo(c,e,d)});return!!b.data("scrollto-propagate")})}; 12ProjectPlugins.prototype.anchormenu=function(){TIMING&&console.time("init anchormenu");var a=this,b,c=[],e=0,d=0,h=0,k=function(){TIMING&&console.time("init anchormenu positions");c=[];b.children().each(function(){var g=$(this),f=g.data("anchor-menu-item"),l=f.offset();f=f.outerHeight(!0);c.push({$item:g.removeClass("active"),start:Math.round(l.top-d),end:Math.round(l.top+f-d),active:!1})});TIMING&&console.timeEnd("init anchormenu positions")};if("object"===typeof this._api.cnf.anchormenu&&(d=this._api.cnf.anchormenu.shift|| 13d,h=this._api.cnf.anchormenu.duration||h,"string"===typeof d))try{d=$(d).outerHeight(!0)||0}catch(g){d=0}(function(){$("#anchor-menu").length?$("#anchor-menu").hide().empty():$("body").append('<div id="anchor-menu" style="display:none"/>');b=$("#anchor-menu");$("[data-anchor-menu]").each(function(){var g=$("<div/>"),f=$(this);g.text($(this).data("anchor-menu")).data("anchor-menu-item",f).on("click",function(){a._api.addExtPlugin("scrollto",function(){$.scrollTo(f,h,{offset:{top:-d}})})});b.append(g)}); 14b.children().length&&b.show()})();k();$("body img").on("load",function(){k()});$(window).on("resize",function(){k()});$(document).on("scroll",function(){e&&window.clearTimeout(e);e=window.setTimeout(function(){e=0;k();var g=$(document).scrollTop(),f,l=-1;for(f=0;f<c.length;f+=1)g>=c[f].start&&g<=c[f].end?(-1<l&&c[l].active&&(c[l].active=!1,c[l].$item.removeClass("active")),c[f].active||(c[f].active=!0,c[f].$item.addClass("active")),l=f):c[f].active&&(c[f].active=!1,c[f].$item.removeClass("active"))}, 15100)});TIMING&&console.timeEnd("init anchormenu")};ProjectPlugins.prototype.toggle._onload=!0;ProjectPlugins.prototype.owl._onload=!0;ProjectPlugins.prototype.pager._onload=!0;ProjectPlugins.prototype.mailto._onload=!0;ProjectPlugins.prototype.scrollto._onload=!0;ProjectPlugins.prototype.anchormenu._onload=!0;window.TCO&&TCO.cnf&&(TCO.instances||(TCO.instances={}),TCO.instances.project=new Project(TCO.cnf));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.