function setupVideoModal(){var n;$(document).on("click",".video-btn",function(){n=$(this).data("src")});$("#videoModal").on("shown.bs.modal",function(){$("#video").attr("src",n+"?autoplay=1&amp;modestbranding=1&amp;showinfo=0")});$("#videoModal").on("hide.bs.modal",function(){$("#video").attr("src",n)})}function getHostnameFromUrl(n){const t=n.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]}(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.Mustache=t())})(this,function(){"use strict";function e(n){return typeof n=="function"}function l(n){return i(n)?"array":typeof n}function o(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(n,t){return n!=null&&typeof n=="object"&&t in n}function a(n,t){return n!=null&&typeof n!="object"&&n.hasOwnProperty&&n.hasOwnProperty(t)}function y(n,t){return v.call(n,t)}function w(n){return!y(p,n)}function k(n){return String(n).replace(/[&<>"'`=\/]/g,function(n){return b[n]})}function it(n,r){function lt(){if(ot&&!b)while(p.length)delete a[p.pop()];else p=[];ot=!1;b=!1}function vt(n){if(typeof n=="string"&&(n=n.split(g,2)),!i(n)||n.length!==2)throw new Error("Invalid tags: "+n);ht=new RegExp(o(n[0])+"\\s*");v=new RegExp("\\s*"+o(n[1]));at=new RegExp("\\s*"+o("}"+n[1]))}var ht,v,at,u,c,e,s,y,ct,l,it,yt;if(!n)return[];var ft=!1,et=[],a=[],p=[],ot=!1,b=!1,k="",st=0;for(vt(r||t.tags),u=new f(n);!u.eos();){if(c=u.pos,s=u.scanUntil(ht),s)for(it=0,yt=s.length;it<yt;++it)y=s.charAt(it),w(y)?(p.push(a.length),k+=y):(b=!0,ft=!0,k+=" "),a.push(["text",y,c,c+1]),c+=1,y==="\n"&&(lt(),k="",st=0,ft=!1);if(!u.scan(ht))break;if(ot=!0,e=u.scan(tt)||"name",u.scan(d),e==="="?(s=u.scanUntil(h),u.scan(h),u.scanUntil(v)):e==="{"?(s=u.scanUntil(at),u.scan(nt),u.scanUntil(v),e="&"):s=u.scanUntil(v),!u.scan(v))throw new Error("Unclosed tag at "+u.pos);if(ct=e==">"?[e,s,c,u.pos,k,st,ft]:[e,s,c,u.pos],st++,a.push(ct),e==="#"||e==="^")et.push(ct);else if(e==="/"){if(l=et.pop(),!l)throw new Error('Unopened section "'+s+'" at '+c);if(l[1]!==s)throw new Error('Unclosed section "'+l[1]+'" at '+c);}else e==="name"||e==="{"||e==="&"?b=!0:e==="="&&vt(s)}if(lt(),l=et.pop(),l)throw new Error('Unclosed section "'+l[1]+'" at '+u.pos);return ut(rt(a))}function rt(n){for(var u=[],t,i,r=0,f=n.length;r<f;++r)t=n[r],t&&(t[0]==="text"&&i&&i[0]==="text"?(i[1]+=t[1],i[3]=t[3]):(u.push(t),i=t));return u}function ut(n){for(var u=[],r=u,i=[],t,e,f=0,o=n.length;f<o;++f){t=n[f];switch(t[0]){case"#":case"^":r.push(t);i.push(t);r=t[4]=[];break;case"/":e=i.pop();e[5]=t[2];r=i.length>0?i[i.length-1][4]:u;break;default:r.push(t)}}return u}function f(n){this.string=n;this.tail=n;this.pos=0}function r(n,t){this.view=n;this.cache={".":this.view};this.parent=t}function n(){this.templateCache={_cache:{},set:function(n,t){this._cache[n]=t},get:function(n){return this._cache[n]},clear:function(){this._cache={}}}}var c=Object.prototype.toString,i=Array.isArray||function(n){return c.call(n)==="[object Array]"},v=RegExp.prototype.test,p=/\S/,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},d=/\s*/,g=/\s+/,h=/\s*=/,nt=/\s*\}/,tt=/#|\^|\/|>|\{|&|=|!/,t,u;return f.prototype.eos=function(){return this.tail===""},f.prototype.scan=function(n){var i=this.tail.match(n),t;return!i||i.index!==0?"":(t=i[0],this.tail=this.tail.substring(t.length),this.pos+=t.length,t)},f.prototype.scanUntil=function(n){var i=this.tail.search(n),t;switch(i){case-1:t=this.tail;this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,i);this.tail=this.tail.substring(i)}return this.pos+=t.length,t},r.prototype.push=function(n){return new r(n,this)},r.prototype.lookup=function(n){var h=this.cache,i,r,t,u,f,o;if(h.hasOwnProperty(n))i=h[n];else{for(r=this,o=!1;r;){if(n.indexOf(".")>0)for(t=r.view,u=n.split("."),f=0;t!=null&&f<u.length;)f===u.length-1&&(o=s(t,u[f])||a(t,u[f])),t=t[u[f++]];else t=r.view[n],o=s(r.view,n);if(o){i=t;break}r=r.parent}h[n]=i}return e(i)&&(i=i.call(this.view)),i},n.prototype.clearCache=function(){typeof this.templateCache!="undefined"&&this.templateCache.clear()},n.prototype.parse=function(n,i){var u=this.templateCache,f=n+":"+(i||t.tags).join(":"),e=typeof u!="undefined",r=e?u.get(f):undefined;return r==undefined&&(r=it(n,i),e&&u.set(f,r)),r},n.prototype.render=function(n,t,i,u){var f=this.getConfigTags(u),e=this.parse(n,f),o=t instanceof r?t:new r(t,undefined);return this.renderTokens(e,o,i,n,u)},n.prototype.renderTokens=function(n,t,i,r,u){for(var h="",e,o,f,s=0,c=n.length;s<c;++s)f=undefined,e=n[s],o=e[0],o==="#"?f=this.renderSection(e,t,i,r,u):o==="^"?f=this.renderInverted(e,t,i,r,u):o===">"?f=this.renderPartial(e,t,i,u):o==="&"?f=this.unescapedValue(e,t):o==="name"?f=this.escapedValue(e,t,u):o==="text"&&(f=this.rawValue(e)),f!==undefined&&(h+=f);return h},n.prototype.renderSection=function(n,t,r,u,f){function a(n){return l.render(n,t,r,f)}var l=this,s="",o=t.lookup(n[1]),h,c;if(o){if(i(o))for(h=0,c=o.length;h<c;++h)s+=this.renderTokens(n[4],t.push(o[h]),r,u,f);else if(typeof o=="object"||typeof o=="string"||typeof o=="number")s+=this.renderTokens(n[4],t.push(o),r,u,f);else if(e(o)){if(typeof u!="string")throw new Error("Cannot use higher-order sections without the original template");o=o.call(t.view,u.slice(n[3],n[5]),a);o!=null&&(s+=o)}else s+=this.renderTokens(n[4],t,r,u,f);return s}},n.prototype.renderInverted=function(n,t,r,u,f){var e=t.lookup(n[1]);if(!e||i(e)&&e.length===0)return this.renderTokens(n[4],t,r,u,f)},n.prototype.indentPartial=function(n,t,i){for(var f=t.replace(/[^ \t]/g,""),u=n.split("\n"),r=0;r<u.length;r++)u[r].length&&(r>0||!i)&&(u[r]=f+u[r]);return u.join("\n")},n.prototype.renderPartial=function(n,t,i,r){var o,u,h;if(i&&(o=this.getConfigTags(r),u=e(i)?i(n[1]):i[n[1]],u!=null)){var c=n[6],l=n[5],s=n[4],f=u;return l==0&&s&&(f=this.indentPartial(u,s,c)),h=this.parse(f,o),this.renderTokens(h,t,i,f,r)}},n.prototype.unescapedValue=function(n,t){var i=t.lookup(n[1]);if(i!=null)return i},n.prototype.escapedValue=function(n,i,r){var f=this.getConfigEscape(r)||t.escape,u=i.lookup(n[1]);if(u!=null)return typeof u=="number"&&f===t.escape?String(u):f(u)},n.prototype.rawValue=function(n){return n[1]},n.prototype.getConfigTags=function(n){return i(n)?n:n&&typeof n=="object"?n.tags:undefined},n.prototype.getConfigEscape=function(n){return n&&typeof n=="object"&&!i(n)?n.escape:undefined},t={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(n){u.templateCache=n},get templateCache(){return u.templateCache}},u=new n,t.clearCache=function(){return u.clearCache()},t.parse=function(n,t){return u.parse(n,t)},t.render=function(n,t,i,r){if(typeof n!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+l(n)+'" was given as the first argument for mustache#render(template, view, partials)');return u.render(n,t,i,r)},t.escape=k,t.Scanner=f,t.Context=r,t.Writer=n,t}),function(n){n.cookie=function(t,i,r){var h,f,e,o,u,s;if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(i))||i===null||i===undefined))return r=n.extend({},r),(i===null||i===undefined)&&(r.expires=-1),typeof r.expires=="number"&&(h=r.expires,f=r.expires=new Date,f.setDate(f.getDate()+h)),i=String(i),document.cookie=[encodeURIComponent(t),"=",r.raw?i:encodeURIComponent(i),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("");for(r=i||{},e=r.raw?function(n){return n}:decodeURIComponent,o=document.cookie.split("; "),u=0;s=o[u]&&o[u].split("=");u++)if(e(s[0])===t)return e(s[1]||"");return null}}(jQuery);$(function(){var n,t;$("#nav .has-sub-menu").click(function(){var n=$(this).siblings(".sub-menu");return n.is(":visible")?n.addClass("d-none"):n.removeClass("d-none"),!1});$(".search-toggle").click(function(){window.innerWidth>=768?$(".lg-search-wrapper").toggleClass("d-md-block").find("input").focus():($(".sm-search-wrapper").toggleClass("d-block").find("input").focus(),$(".mobile-nav-main-wrapper").addClass("d-none"))});$(".login-menu-hover").click(function(n){n.preventDefault();$(".login-nav-wrapper").toggleClass("d-lg-block")});$(".nav-opener").click(function(n){n.preventDefault();$(".mobile-nav-main-wrapper").toggleClass("d-none");$(".sm-search-wrapper").removeClass("d-block")});$(".dropdown-item").click(function(){$(this).find(".sub-nav-mobile,.fa-chevron-down,.fa-chevron-right").toggleClass("d-none")});n=function(n){if(n.indexOf("/")===0)location.href=n;else{var t=location.pathname.replace(/^\/[a-z]{2}\//,"/");location.href=(n.length>0?"/"+n:"")+t}};$("#select-language").change(function(){n($(this).val())});$(".lnk-switch-language").click(function(){return n($(this).data("code")),!1});$("body").on("click",".accordion__item:not([data-toggle])",function(){var n=$(this).parent().find(".accordion-player");n.is(":visible")?(n.removeClass("show").css("display","none"),$(this).addClass("collapsed").attr("aria-expanded","false")):(n.addClass("show").css("display","block"),$(this).removeClass("collapsed").attr("aria-expanded","true"));$(".video-container iframe",n).length>0&&$(".video-container iframe",n).attr("src",$(".video-container iframe",n).data("sourceurl"))});$(".accordion-heading").click(function(){var n=$(this),t=n.next(".accordion-content");t.is(":visible")?n.next(".accordion-content").slideUp():n.next(".accordion-content").slideDown()}).wrapInner("<span><\/span>").prepend("<i class='fas fa-chevron-down'><\/i>");$(document).on("click",".download-btn",function(n){n.preventDefault();var e=$(this),t=e.closest(".modal"),i=t.find(".hubspot-form"),r=t.find(".lang-container"),u=t.find(".language-selector"),f=u.val();if(f.length>0){hbspt.forms.create({portalId:"5002429",formId:f,target:"#"+t.attr("id")+" .hubspot-form",onFormReady:function(){i.removeClass("d-none");r.addClass("d-none");t.addClass("has-form")}});t.on("hidden.bs.modal",function(){i.addClass("d-none").empty();r.removeClass("d-none");t.removeClass("has-form");u.val("")})}else alert("Please select your language")});$(".modal .language-selector").change(function(){var t=$(this),i=t.find("option:selected"),n=i.data("url");n!==null&&n.length>0&&(window.open(n),t.val("").closest(".modal").modal("hide"))});window.addEventListener("message",function(n){n.data.type==="hsFormCallback"&&n.data.eventName==="onFormSubmitted"&&$(".hs-form-submitted-hide").hide()});$("a[href]").click(function(){var t=$(this).attr("target"),i=$(this).attr("href"),n=getHostnameFromUrl(i);return n!==null&&n!==""&&n.indexOf("traceinternational")===-1&&n.indexOf("traceonlinetraining")===-1&&n.indexOf("share.hsforms.com")===-1&&n.indexOf("bit.ly")===-1&&n.indexOf("bitly.com")===-1?(t===null||t===""||t==="_self"?($("#leavesiteModal").css("cursor","wait").modal("show"),setTimeout(function(){window.location=i},3e3)):(window.popupLeaveSiteUrl=i,window.open(window.location,t)),!1):!0});opener&&opener.popupLeaveSiteUrl&&(t=opener.popupLeaveSiteUrl,opener.popupLeaveSiteUrl=null,$("#leavesiteModal").removeClass("fade").css("cursor","wait").modal("show"),setTimeout(function(){window.location=t},3e3));$(".btn-container").each(function(){let n=null,t=!1,i=$(this).find(".btn-small");i.each(function(){let i=$(this).height();n===null?n=i:i!==n&&(n=Math.max(i,n),t=!0)});t&&i.height(n)})})