PageSourceSearch

https://puchasplus-stegersbach.at/wp-content/cache/min/1/2865f0d15f0a3d36dbd921eacf173b43.js

js puchasplus-stegersbach.at collected 2026-10-07 20:28:56 UTC 376,558 bytes, 104 lines download raw bytes

1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});(function(){let savedTheme=localStorage.getItem("brx_mode");let defaultMode="light";let currentTheme=savedTheme||defaultMode;if(currentTheme==="auto"){let prefersDarkScheme=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.dataset.brxTheme=prefersDarkScheme?"dark":"light"}else{document.documentElement.dataset.brxTheme=currentTheme}})();/*!
3 * @splidejs/splide-extension-intersection
4 * Version  : 0.2.0
5 * License  : MIT
6 * Copyright: 2022 Naotoshi Fujita
7 */(function(b){typeof define=="function"&&define.amd?define(b):b()})(function(){"use strict";function b(n){n.length=0}function y(n,e,i){return Array.prototype.slice.call(n,e,i)}
7function E(n){return n.bind.apply(n,[null].concat(y(arguments,1)))}function w(n,e){return typeof e===n}var _=Array.isArray;E(w,"function"),E(w,"string"),E(w,"undefined");function O(n){return _(n)?n:[n]}function T(n,e){O(n).forEach(e)}var V=Object.keys;function N(n,e,i){if(n){var t=V(n);t=i?t.reverse():t;for(var f=0;f<t.length;f++){var o=t[f];if(o!=="__proto__"&&e(n[o],o)===!1)break}}return n}function C(n){return y(arguments,1).forEach(function(e){N(e,function(i,t){n[t]=e[t]})}),n}function g(){var n=[];function e(c,r,s,a){f(c,r,function(u,l,d){var m="addEventListener"in u,v=m?u.removeEventListener.bind(u,l,s,a):u.removeListener.bind(u,s);m?u.addEventListener(l,s,a):u.addListener(s),n.push([u,l,d,s,v])})}function i(c,r,s){f(c,r,function(a,u,l){n=n.filter(function(d){return d[0]===a&&d[1]===u&&d[2]===l&&(!s||d[3]===s)?(d[4](),!1):!0})})}function t(c,r,s){var a,u=!0;return typeof CustomEvent=="function"?a=new CustomEvent(r,{bubbles:u,detail:s}):(a=document.createEvent("CustomEvent"),a.initCustomEvent(r,u,!1,s)),c.dispatchEvent(a),a}function f(c,r,s){T(c,function(a){a&&T(r,function(u){u.split(" ").forEach(function(l){var d=l.split(".");s(a,d[0],d[1])})})})}function o(){n.forEach(function(c){c[4]()}),b(n)}return{bind:e,unbind:i,dispatch:t,destroy:o}}var L="destroy";function $(n){var e=n?n.event.bus:document.createDocumentFragment(),i=g();function t(o,c){i.bind(e,O(o).join(" "),function(r){c.apply(c,_(r.detail)?r.detail:[])})}function f(o){i.dispatch(e,o,y(arguments,1))}return n&&n.event.on(L,i.destroy),C(i,{bus:e,on:t,off:E(i.unbind,e),emit:f})}function K(n,e,i){return Array.prototype.slice.call(n,e,i)}function h(n){return n.bind.apply(n,[null].concat(K(arguments,1)))}function I(n,e){return typeof e===n}h(I,"function"),h(I,"string");var R=h(I,"undefined"),x=Object.keys;function S(n,e,i){if(n){var t=x(n);t=i?t.reverse():t;for(var f=0;f<t.length;f++){var o=t[f];if(o!=="__proto__"&&e(n[o],o)===!1)break}}return n}var D="intersection",M="intersection:in",U="intersection:out";function B(n){var e=n.Components;return{keyboard:{enable:function(){e.Keyboard.disable(!1)},disable:function(){e.Keyboard.disable(!0)}},autoplay:{enable:function(){n.options.autoplay&&e.Autoplay.play()},disable:function(){e.Autoplay.pause()}},autoScroll:{enable:function(){var t=e.AutoScroll;t&&t.play()},disable:function(){var t=e.AutoScroll;t&&t.pause()}},video:{enable:function(){var t=e.Video;t&&t.play()},disable:function(){var t=e.Video;t&&t.pause()}}}}function F(n,e,i){var t=$(n),f=t.emit,o=i.intersection||{},c=B(n),r;function s(){window.IntersectionObserver&&(r=new IntersectionObserver(u,{root:o.root,rootMargin:o.rootMargin,threshold:o.threshold}),r.observe(n.root))}function a(){r&&(r.disconnect(),r=null)}function u(v){var p=v[0];p&&(p.isIntersecting?d(p):m(p),f(D,p))}function l(v){S(v,function(p,H){if(!R(p)){var A=c[H];p?A.enable():A.disable()}})}function d(v){l(o.inView||{}),f(M,v),o.once&&a()}function m(v){l(o.outView||{}),f(U,v)}return{mount:s,destroy:a}}typeof window<"u"&&(window.splide=window.splide||{},window.splide.Extensions=window.splide.Extensions||{},window.splide.Extensions.Intersection=F)});jQuery(document).ready(function($){let previousScrollTop=0;$(window).scroll(function(){const currentScrollTop=$(this).scrollTop();if(currentScrollTop>previousScrollTop){$('header.frontpage').css('transform','translateY(0%)');$('header.frontpage').addClass('scrolled')}else if(currentScrollTop===0){$('header.frontpage').css('transform','');$('header.frontpage').removeClass('scrolled');$('.megamenu').removeClass('expanded');$('.header-toggle').attr('aria-expanded',!1);$('.header-toggle > span').removeClass('is-active')}
8previousScrollTop=currentScrollTop});$('.megamenu-wrapper a').on('click',function(){$('.megamenu').removeClass('expanded');$('.header-toggle').attr('aria-expanded','false');$('.x-hamburger-box').removeClass('is-active')});$('.megamenu-wrapper a[aria-current="page"]').each(function(){var link=$(this);var href=link.attr('href');if(href.includes('#')){link.addClass('not-link');link.hover(function(){$(this).removeClass('not-link')},function(){$(this).addClass('not-link')})}});
8function modifyMenu(){if($(window).width()<992){$('.megamenu-menu').each(function(){var submenu=$(this).find('.megamenu-menu__list');if(submenu.length>0){var title=$(this).find('.megamenu-menu__title');if(!title.parent().hasClass('megamenu-title-wrapper')){title.wrap('<div class="megamenu-title-wrapper"></div>');title.parent().append('<svg width="14" height="9" viewBox="0 0 14 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m13.692 1.942-6.25 6.25a.625.625 0 0 1-.884 0l-6.25-6.25a.625.625 0 1 1 .884-.884L7 6.866l5.808-5.808a.625.625 0 0 1 .884.884" fill="#8A8A89"/></svg>')}}})}else{$('.megamenu-title-wrapper').each(function(){$(this).children('svg').remove();$(this).children('.megamenu-menu__title').unwrap()})}
9$('.megamenu-menu__link[aria-current="page"]').each(function(){var menuLink=$(this);var menuList=menuLink.closest('.megamenu-menu__list');var titleWrapper=menuList.siblings('.megamenu-title-wrapper');var href=menuLink.attr('href');if(href&&href.indexOf('#')===-1){if(!menuList.hasClass('expanded')){menuList.addClass('expanded')}
10if(!titleWrapper.hasClass('active')){titleWrapper.addClass('active')}}})}
11$(document).on('click','.megamenu-title-wrapper svg',function(){var menuList=$(this).closest('.megamenu-menu').find('.megamenu-menu__list');var titleWrapper=$(this).closest('.megamenu-title-wrapper');if(menuList.hasClass('expanded')){menuList.removeClass('expanded');titleWrapper.removeClass('active')}else{$('.megamenu-menu__list').removeClass('expanded');$('.megamenu-title-wrapper').removeClass('active');menuList.addClass('expanded');titleWrapper.addClass('active')}});modifyMenu();$(window).resize(function(){modifyMenu()});const selects=document.querySelectorAll('select');selects.forEach(select=>{select.addEventListener('change',function(){if(this.selectedIndex>0){this.classList.add('selected')}else{this.classList.remove('selected')}})});if($('.select-element').length){$('.select-element').each(function(){const label=$(this).find('> option:first-child').text();$(this).select2({placeholder:label,minimumResultsForSearch:Infinity,dropdownParent:$(this).closest('.select-container').find('.ff-el-input--content')})})}
12function applyReadMore(){if($(window).width()<=768){$('.read-more').each(function(){var $this=$(this);if(!$this.data('read-more-applied')){$this.css({'overflow':'hidden','position':'relative','padding-bottom':'30px'}).addClass('collapsed');$this.append('<div class="gradient"></div>');$this.find('.gradient').css({'position':'absolute','bottom':'0','left':'0','width':'100%','height':'150px','background':'linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1))'});$this.after('<button class="toggle-read-more">+ MEHR LESEN</button>');$this.data('read-more-applied',!0)}
13$this.next('.toggle-read-more').off('click').on('click',function(){if($this.hasClass('expanded')){$this.removeClass('expanded').addClass('collapsed');$(this).removeClass('toggled');$(this).text('+ MEHR LESEN');$this.find('.gradient').show()}else{$this.removeClass('collapsed').addClass('expanded');$(this).addClass('toggled');$(this).text('- WENIGER');$this.find('.gradient').hide()}})})}else{$('.read-more').each(function(){var $this=$(this);$this.css({'padding-bottom':''}).removeClass('expanded collapsed').removeData('read-more-applied');$this.find('.gradient').remove();$this.next('.toggle-read-more').remove()})}}
14applyReadMore();$(window).resize(function(){applyReadMore()});var lastId;function highlightActiveSection(){var scrollDistance=$(window).scrollTop();var highlightOffset=$(window).height()*0.3;var currentSectionId;$('.elementor-menu-anchor').each(function(){var id=$(this).attr('id');var offsetTop=$(this).offset().top;var outerHeight=$(this).outerHeight();if(offsetTop-highlightOffset<scrollDistance&&(offsetTop+outerHeight)>scrollDistance){currentSectionId=id;return!1}});if(currentSectionId&&lastId!==currentSectionId){lastId=currentSectionId;$('.mega-menu-item a').removeClass('active');$('.mega-menu-item a[href="/#'+currentSectionId+'"]').addClass('active')}}
15$(window).on('scroll',highlightActiveSection);highlightActiveSection();$('.mega-menu-item a').on('click',function(){$('#e-n-menu-dropdown-icon-2361').click()});if(window.innerWidth>768){$('.grid__image img, img.grid__image, img.open-lightbox, .open-lightbox img').each(function(){var fullSizeImg=$(this).attr('src');var glightboxData=$(this).attr('data-glightbox');$(this).wrap('<a href="'+fullSizeImg+'" class="glightbox magnify-hover" data-glightbox="'+glightboxData+'" style="position:relative;display:flex;width:100%;height:100%;"></a>')});const lightbox=GLightbox({selector:'.glightbox'})}
16function handleFractional($slider,splideInstance){console.log('Handling fractional for slider with script ID:',$slider.data('script-id'));let $customPagination=$slider.find('.custom-pagination');if($customPagination.length===0){$customPagination=$('<div>',{class:'splide__pagination--custom custom-pagination'}).hide();const $prevArrow=$slider.find('.splide__arrow--prev');if($prevArrow.length>0){$prevArrow.after($customPagination)}
17console.log('.custom-pagination added to slider with script ID:',$slider.data('script-id'))}
18const updateFractionalPagination=()=>{const currentSlide=splideInstance.index+1;const totalSlides=splideInstance.Components.Elements.slides.length;const paginationText=`${currentSlide}/${totalSlides}`;$customPagination.text(paginationText);console.log(`Updated pagination for slider ${$slider.data('script-id')}:${paginationText}`)};const handleMediaQueryChange=(e)=>{if(e.matches){splideInstance.on('mounted move',updateFractionalPagination);$customPagination.show();updateFractionalPagination()}else{$customPagination.hide();splideInstance.off('move',updateFractionalPagination)}};const mediaQuery=window.matchMedia('(max-width: 991px)');mediaQuery.addListener(handleMediaQueryChange);handleMediaQueryChange(mediaQuery)}
19function handleAutoplay($slider,splideInstance){console.log('Handling autoplay for slider with script ID:',$slider.data('script-id'));splideInstance.destroy();const newSlider=new Splide($slider[0],{...splideInstance.options,intersection:{inView:()=>{newSlider.options={autoplay:!0};newSlider.Components.Autoplay.play()},outView:()=>{newSlider.options={autoplay:!1};newSlider.Components.Autoplay.pause()},},});newSlider.on('intersection:in',()=>{console.log('Autoplay started');newSlider.Components.Autoplay.play()});newSlider.on('intersection:out',()=>{console.log('Autoplay paused');newSlider.Components.Autoplay.pause()});const splideExtensions=window.splide&&window.splide.Extensions?window.splide.Extensions:{};newSlider.mount(splideExtensions);bricksData.splideInstances[$slider.data('script-id')]=newSlider;console.log(`Reconfigured slider with ID:${$slider.data('script-id')}`);return newSlider}
20$('.brxe-slider-nested').each(function(){const $slider=$(this);const scriptId=$slider.data('script-id');const splideInstance=bricksData.splideInstances[scriptId];if(splideInstance){if($slider.hasClass('fractional')&&$slider.hasClass('autoplay')){console.log('Both fractional and autoplay are enabled for slider with script ID:',scriptId);const newSlider=handleAutoplay($slider,splideInstance);handleFractional($slider,newSlider)}else if($slider.hasClass('fractional')){console.log('Fractional pagination is enabled for slider with script ID:',scriptId);handleFractional($slider,splideInstance)}else if($slider.hasClass('autoplay')){console.log('Autoplay with intersection is enabled for slider with script ID:',scriptId);handleAutoplay($slider,splideInstance)}}})});(function(){function sendRequest(url,body){if(!window.fetch){const xhr=new XMLHttpRequest();xhr.open("POST",url,!0);xhr.setRequestHeader("Content-Type","application/json;charset=UTF-8");xhr.send(JSON.stringify(body))
21return}
22const request=fetch(url,{method:'POST',body:JSON.stringify(body),keepalive:!0,headers:{'Content-Type':'application/json;charset=UTF-8'}})}
23const calculateParentDistance=(child,parent)=>{let count=0;let currentElement=child;while(currentElement&&currentElement!==parent){currentElement=currentElement.parentNode;count++}
24if(!currentElement){return-1}
25return count}
26const isMatchingClass=(linkRule,href,classes,ids)=>{return classes.includes(linkRule.value)}
27const isMatchingId=(linkRule,href,classes,ids)=>{return ids.includes(linkRule.value)}
28const isMatchingDomain=(linkRule,href,classes,ids)=>
28{if(!URL.canParse(href)){return!1}
29const url=new URL(href)
30const host=url.host
31const hostsToMatch=[host]
32if(host.startsWith('www.')){hostsToMatch.push(host.substring(4))}else{hostsToMatch.push('www.'+host)}
33return hostsToMatch.includes(linkRule.value)}
34const isMatchingExtension=(linkRule,href,classes,ids)=>{if(!URL.canParse(href)){return!1}
35const url=new URL(href)
36return url.pathname.endsWith('.'+linkRule.value)}
37const isMatchingSubdirectory=(linkRule,href,classes,ids)=>{if(!URL.canParse(href)){return!1}
38const url=new URL(href)
39return url.pathname.startsWith('/'+linkRule.value+'/')}
40const isMatchingProtocol=(linkRule,href,classes,ids)=>{if(!URL.canParse(href)){return!1}
41const url=new URL(href)
42return url.protocol===linkRule.value+':'}
43const isMatchingExternal=(linkRule,href,classes,ids)=>{if(!URL.canParse(href)||!URL.canParse(document.location.href)){return!1}
44const matchingProtocols=['http:','https:']
45const siteUrl=new URL(document.location.href)
46const linkUrl=new URL(href)
47return matchingProtocols.includes(linkUrl.protocol)&&siteUrl.host!==linkUrl.host}
48const isMatch=(linkRule,href,classes,ids)=>{switch(linkRule.type){case 'class':return isMatchingClass(linkRule,href,classes,ids)
49case 'id':return isMatchingId(linkRule,href,classes,ids)
50case 'domain':return isMatchingDomain(linkRule,href,classes,ids)
51case 'extension':return isMatchingExtension(linkRule,href,classes,ids)
52case 'subdirectory':return isMatchingSubdirectory(linkRule,href,classes,ids)
53case 'protocol':return isMatchingProtocol(linkRule,href,classes,ids)
54case 'external':return isMatchingExternal(linkRule,href,classes,ids)
55default:return!1}}
56const track=(element)=>{const href=element.href??null
57const classes=Array.from(element.classList)
58const ids=[element.id]
59const linkRules=[{"type":"extension","value":"pdf"},{"type":"extension","value":"zip"},{"type":"protocol","value":"mailto"},{"type":"protocol","value":"tel"}]
60if(linkRules.length===0){return}
61linkRules.forEach((linkRule)=>{if(linkRule.type!=='id'){return}
62const matchingAncestor=element.closest('#'+linkRule.value)
63if(!matchingAncestor||matchingAncestor.matches('html, body')){return}
64const depth=calculateParentDistance(element,matchingAncestor)
65if(depth<7){ids.push(linkRule.value)}});linkRules.forEach((linkRule)=>{if(linkRule.type!=='class'){return}
66const matchingAncestor=element.closest('.'+linkRule.value)
67if(!matchingAncestor||matchingAncestor.matches('html, body')){return}
68const depth=calculateParentDistance(element,matchingAncestor)
69if(depth<7){classes.push(linkRule.value)}});const hasMatch=linkRules.some((linkRule)=>{return isMatch(linkRule,href,classes,ids)})
70if(!hasMatch){return}
71const url="https://puchasplus-stegersbach.at/wp-content/plugins/independent-analytics/iawp-click-endpoint.php";const siteId="";const body={href:href,classes:classes.join(' '),ids:ids.join(' '),siteId:siteId,...{"payload":{"resource":"singular","singular_id":1204,"page":1},"signature":"75b59c0a02ab17c9e4e5382f60c9739d"}};sendRequest(url,body)}
72let hasSearched=!1;function search(){if(hasSearched){return}
73hasSearched=!0;if(document.hasOwnProperty("visibilityState")&&document.visibilityState==="prerender"){return}
74if(navigator.webdriver||/bot|crawler|spider|crawling|semrushbot|chrome-lighthouse/i.test(navigator.userAgent)){return}
75let referrer_url=null;if(typeof document.referrer==='string'&&document.referrer.length>0){referrer_url=document.referrer}
76const params=location.search.slice(1).split('&').reduce((acc,s)=>{const[k,v]=s.split('=');return Object.assign(acc,{[k]:v})},{});const url="https://puchasplus-stegersbach.at/wp-json/iawp/search";const body={referrer_url,utm_source:params.utm_source,utm_medium:params.utm_medium,utm_campaign:params.utm_campaign,utm_term:params.utm_term,utm_content:params.utm_content,gclid:params.gclid,...{"payload":{"resource":"singular","singular_id":1204,"page":1},"signature":"75b59c0a02ab17c9e4e5382f60c9739d"}};sendRequest(url,body)}
77document.addEventListener('mousedown',function(event){if(navigator.webdriver||/bot|crawler|spider|crawling|semrushbot|chrome-lighthouse/i.test(navigator.userAgent)){return}
78const element=event.target.closest('a')
79if(!element){return}
80const isPro=!1
81if(!isPro){return}
82if(event.button===0){return}
83track(element)})
84document.addEventListener('click',function(event){if(navigator.webdriver||/bot|crawler|spider|crawling|semrushbot|chrome-lighthouse/i.test(navigator.userAgent)){return}
85const element=event.target.closest('a, button, input[type="submit"], input[type="button"]')
86if(!element){return}
87const isPro=!1
88if(!isPro){return}
89track(element)})
90document.addEventListener('play',function(event){if(navigator.webdriver||/bot|crawler|spider|crawling|semrushbot|chrome-lighthouse/i.test(navigator.userAgent)){return}
91const element=event.target.closest('audio, video')
92if(!element){return}
93const isPro=!1
94if(!isPro){return}
95track(element)},!0)
96document.addEventListener("DOMContentLoaded",function(e){search()});document.addEventListener("iawpSearch",function(e){search()})})();jQuery(document).ready(function($){$('.ff-btn-step-plus, .ff-btn-step-minus').click(function(e){e.preventDefault();const inputField=$(this).closest('.ff_input-group').find('input[type="text"]');if(inputField.length){let currentValue=parseFloat(inputField.val())||0;if($(this).hasClass('ff-btn-step-plus')){currentValue+=1}else if($(this).hasClass('ff-btn-step-minus')){currentValue-=1}
97inputField.val(currentValue)}})});var _excluded=["name","url"];function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to de
97structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var BricksIntersect=_createClass(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e);var n=t.element||!1,r=t.callback||!1,i=!t.hasOwnProperty("once")||t.once,o=!!t.hasOwnProperty("trigger")&&t.trigger;if("IntersectionObserver"in window){var a=!1,s=new IntersectionObserver(function(e,t){e.forEach(function(e){var s="leaveView"===o?!e.isIntersecting&&a:e.isIntersecting;"leaveView"===o&&e.isIntersecting&&(a=!0),s&&(n&&r&&r(e.target),i&&t.unobserve(e.target))})},{threshold:t.threshold||0,root:t.root||null,rootMargin:(null==t?void 0:t.rootMargin)||"0px"});n instanceof Element&&s.observe(n)}else{var c=!1,l=function(){!1===c&&(c=!0,n.getBoundingClientRect().top<=window.innerHeight&&n.getBoundingClientRect().bottom>=0&&"none"!==window.getComputedStyle(n).display&&n&&r&&r(n),c=!1)};l(),document.addEventListener("scroll",l),window.addEventListener("resize",l),window.addEventListener("orientationchange",l)}});function BricksIsInViewport(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function bricksQuerySelectorAll(e,t){if(Array.isArray(t)){var n=[];return t.forEach(function(t){n=n.concat(Array.prototype.slice.apply(e.querySelectorAll(t)))}),n}return Array.prototype.slice.apply(e.querySelectorAll(t))}var bricksUtils={subscribeEvents:function(e,t,n){t.forEach(function(t){e.addEventListener(t,function(e){n(e)})})},subscribejQueryEvents:function(e,t,n){"undefined"!=typeof jQuery&&t.forEach(function(t){jQuery(e).on(t,function(e){n(e)})})}
97,maybeRunOnceInteractions:function(e,t){var n=window.bricksData.interactions.findIndex(function(e){return e===t});-1!==n&&(null!=t&&t.runOnce&&window.bricksData.interactions.splice(n,1),bricksInteractionCallbackExecution(e,t))},getQueryTrailSelectorId:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||(e&&e.includes("-")?e.split("-")[0]:e)},hideOrShowLoadMoreButtons:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;if(t||"all"===e){if("all"===e)for(var n in window.bricksData.queryLoopInstances)window.bricksData.queryLoopInstances.hasOwnProperty(n)&&bricksUtils.hideOrShowLoadMoreButtons(n);var r=window.bricksData.interactions.filter(function(t){return"loadMore"===t.action&&t.loadMoreQuery===e});if(r.length){var i=parseInt(t.page)<parseInt(t.maxPages);r.forEach(function(e){i?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")})}}},updateIsotopeInstance:function(e){var t,n,r,i=window.bricksData.isotopeInstances[e]||!1;if(i){if("masonry-element"===i.elementName){var o=i.instance.items.filter(function(e){return!e.element.isConnected});o.length>0&&i.instance.remove(o),i.instance.layout();var a=i.instance.element.querySelectorAll(":scope > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)");return a.length>0&&a.forEach(function(e){i.instance.items.find(function(t){return t.element===e})||i.instance.appended(e)}),void bricksUtils.updateIsotopeOnImageLoad(e)}null===(t=i.instance)||void 0===t||t.reloadItems(),null===(n=i.instance)||void 0===n||n.layout(),null===(r=i.instance)||void 0===r||r.arrange(),bricksUtils.updateIsotopeOnImageLoad(e)}},updateIsotopeOnImageLoad:function(e){if(document.body.classList.contains("bricks-is-frontend")){var t=window.bricksData.isotopeInstances[e]||!1;if(t){var n=Array.from(t.instance.element.querySelectorAll("img")).filter(function(e){return!e.complete||0===e.naturalHeight});if(0!==n.length){var r=0,i=!1,o=function(){i||(i=!0,requestAnimationFrame(function(){t.instance.layout(),i=!1}))},a=Math.min(3,Math.max(1,Math.ceil(n.length/5))),s=Date.now();n.forEach(function(e){var i=function(){r++;var c=Date.now();r%a===0||c-s>500||r===n.length?(t.instance.layout(),s=c):o(),e.removeEventListener("load",i),e.removeEventListener("error",i)};e.complete&&0!==e.naturalHeight?(r++,o()):(e.addEventListener("load",i),e.addEventListener("error",i))})}else t.instance.layout()}}},setOffcanvasToggleAriaLabel:function(e,t){var n,r,i;if(e){var o=(null===(n=e.dataset)||void 0===n?void 0:n.ariaLabelOpen)||e.getAttribute("aria-label"),a=(null===(r=e.dataset)||void 0===r?void 0:r.ariaLabelClose)||(null===(i=window.bricksData)||void 0===i||null===(i=i.i18n)||void 0===i?void 0:i.close);o&&a&&(e.dataset.ariaLabelOpen||(e.dataset.ariaLabelOpen=o),e.setAttribute("aria-label",t?a:o))}},toggleAction:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(null===(t=e.dataset)||void 0===t?void 0:t.selector)||".brxe-offcanvas",a=(null===(n=e.dataset)||void 0===n?void 0:n.attribute)||"class",s=(null===(r=e.dataset)||void 0===r?void 0:r.value)||"brx-open";i&&(o=(null==i?void 0:i.selector)||o,a=(null==i?void 0:i.attribute)||a,s=(null==i?void 0:i.value)||s);var c=!!o&&document.querySelector(o);if(c||(c=e.closest(".brxe-nav-nested")),c||(c=e.closest(".brxe-offcanvas")),c){document.querySelector(".brx-has-megamenu")&&(e.closest('[data-effect="offset"]')||bricksSubmenuPosition(0));var l,d,u,p,b=!1;if(b="class"===a?c.classList.contains(s):c.getAttribute(a)===s,e.setAttribute("aria-expanded",!b),b)e.classList.remove("is-active");else if(e.classList.add("is-active"),null!==(l=e.dataset)&&void 0!==l&&l.scriptId||null!==(d=e.dataset)&&void 0!==d&&d.interactionId)c.dataset.toggleScriptId=(null===(u=e.dataset)||void 0===u?void 0:u.scriptId)||(null===(p=e.dataset)||void 0===p?void 0:p.interactionId);c.classList.contains("brxe-offcanvas")&&bricksUtils.setOffcanvasToggleAriaLabel(e,!b);var v="off";"class"===a?e.closest(".brxe-nav-nested")&&"brx-open"===s&&c.classList.contains("brx-open")?(v="on",c.classList.add("brx-closing"),setTimeout(function(){c.classList.remove("brx-closing"),c.classList.remove("brx-open")},200)):(v=c.classList.contains(s)?"on":"off",c.classList.toggle(s)):c.getAttribute(a)?(v="on",c.removeAttribute(a)):(v="off",c.setAttribute(a,s));var f,m=!1;if(c.classList.contains("brxe-offcanvas"))m="true"===(null===(f=c.dataset)||void 0===f?void 0:f.noAutoFocus)||!1,c.classList.remove("brx-closing");c.classList.contains("brxe-nav-nested")&&(m=!0),m||"off"!==v||bricksFocusOnFirstFocusableElement(c)}},debounce:function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(i,o)},t),a&&e.apply(i,o)}},maybeAbortXhr:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;return t?(t.xhr&&(t.xhr.abort(),t.xhrAborted=!0),t.xhrAborted):t.xhrAborted},getPageNumberFromUrl:function(e){var t,n=1,r=new URL(e);if(r.searchParams.has("paged"))n=parseInt(r.searchParams.get("paged"));else if(e===(null===(t=window.bricksData)||void 0===t?void 0:t.baseUrl))n=1;else{var i=r.pathname.split("/").filter(function(e){return""!==e});n=i[i.length-1],isNaN(n)&&(n=1)}return n=parseInt(n)},getQueryResultStatsData:function(e){var t,n=(null==e||null===(t=e.dataset)||void 0===t?void 0:t.brxQrStatsData)||!1;if(!n)return!1;try{return JSON.parse(n)}catch(e){return!1}},updateQueryResultStats:function(e,t,n){var r={count:0,start:0,end:0};if("dom"===t){var i=n.querySelector('span[data-brx-qr-count="'.concat(e,'"]'));i&&(r.count=i.innerHTML);var o=n.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]'));if(o){var a=bricksUtils.getQueryResultStatsData(o);a&&(void 0!==(null==a?void 0:a.start)&&(r.start=a.start),void 0!==(null==a?void 0:a.end)&&(r.end=a.end),void 0!==(null==a?void 0:a.total)&&(r.count=a.total))}}else void 0!==(null==n?void 0:n.count)&&(r.count=n.count),void 0!==(null==n?void 0:n.start)&&(r.start=n.start),void 0!==(null==n?void 0:n.end)&&(r.end=n.end);if(void 0!==(null==r?void 0:r.count)){var s=parseInt(r.count||0),c=parseInt(r.start||0
97),l=parseInt(r.end||0);document.querySelectorAll('span[data-brx-qr-count="'.concat(e,'"]')).forEach(function(e){e.innerHTML=s}),document.querySelectorAll('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]')).forEach(function(e){var t=bricksUtils.getQueryResultStatsData(e);if(t){var n="string"==typeof(null==t?void 0:t.statsFormat)?t.statsFormat:"",r="string"==typeof(null==t?void 0:t.oneResultText)?t.oneResultText:"",i="string"==typeof(null==t?void 0:t.noResultsText)?t.noResultsText:"";if(s<1)e.innerHTML=i;else if(1===s)e.innerHTML=r;else{var o=n.replace("%start%",c).replace("%end%",l).replace("%total%",s);e.innerHTML=o}}})}},toggleMapInfoBox:function(e){var t,n;if(window.google&&window.google.maps){var r=e.el,i=e.action;if(r){var o=(null===(t=r.dataset)||void 0===t?void 0:t.brxInfoboxOpen)||!1,a=(null===(n=r.dataset)||void 0===n?void 0:n.brxInfoboxMapId)||!1;if(o&&a){var s=window.bricksData.googleMapInstances[a];if(s){var c=s.locations.find(function(e){return e.id===o});if(c&&c.marker){var l=c.infoBox;"openAddress"===i?l&&null!=l&&l.div_||google.maps.event.trigger(c.marker,"click"):l&&null!=l&&l.div_&&(google.maps.event.trigger(l,"closeclick"),l.close())}}}}}},closeAllSubmenus:function(e){var t=e.closest(".open"),n=e.closest(".brx-has-multilevel");if(t&&!n){var r=t.querySelector(".brx-submenu-toggle button[aria-expanded]");r&&(bricksSubmenuToggle(r,"remove"),r&&r.focus())}else{bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach(function(e){e&&bricksSubmenuToggle(e,"remove")})}},rebuildSplide:function(e){var t=window.bricksData.splideInstances[e]||!1;if(t){if(t.destroy(),delete window.bricksData.splideInstances[e],window.bricksSplideFn&&window.bricksSplideFn._initializedElements){var n=t.root;window.bricksSplideFn._initializedElements.has(n)&&window.bricksSplideFn._initializedElements.delete(n)}window.bricksSplideFn&&window.bricksSplideFn.run()}},photoswipeGetId:function(e){return e.getAttribute("data-pswp-id")||e.getAttribute("data-lightbox-id")},photoswipeDestroy:function(e){null!=e&&e.bricksPhotoswipe&&(e.bricksPhotoswipe.destroy(),delete e.bricksPhotoswipe)},imageGalleryGetLoadMoreSettings:function(e){var t;if(null==e||null===(t=e.dataset)||void 0===t||!t.brxLoadMoreSettings)return{};try{return JSON.parse(e.dataset.brxLoadMoreSettings)}catch(e){return{}}},imageGalleryResolveLoadMoreValue:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"initial",o=Number.parseInt(null!==(e=null==r?void 0:r[i])&&void 0!==e?e:"0",10),a=(null==r||null===(t=r.responsive)||void 0===t?void 0:t[i])||{},s=Array.isArray(null==r?void 0:r.breakpoints)?r.breakpoints:[];if(!s.length||!a||"object"!==_typeof(a))return Number.isNaN(o)?0:Math.max(0,o);var c=s.find(function(e){return!0===(null==e?void 0:e.base)})||s.find(function(e){return"desktop"===(null==e?void 0:e.key)});if(!c)return Number.isNaN(o)?0:Math.max(0,o);var l=Number.parseInt(null!==(n=null==c?void 0:c.width)&&void 0!==n?n:"0",10),d=[c].concat(_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n>l}).sort(function(e,t){var n,r;return Number.parseInt(null!==(n=null==e?void 0:e.width)&&void 0!==n?n:"0",10)-Number.parseInt(null!==(r=null==t?void 0:t.width)&&void 0!==r?r:"0",10)})),_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n<l}).sort(function(e,t){var n,r;return Number.parseInt(null!==(n=null==t?void 0:t.width)&&void 0!==n?n:"0",10)-Number.parseInt(null!==(r=null==e?void 0:e.width)&&void 0!==r?r:"0",10)}))),u=Number.isNaN(o)?0:Math.max(0,o);return d.forEach(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10),r=!0===(null==e?void 0:e.base);if(r||Number.isNaN(n)||(n>l?r=window.innerWidth>=n:n<l&&(r=window.innerWidth<=n)),r&&Object.prototype.hasOwnProperty.call(a,e.key)){var i=Number.parseInt(a[e.key],10);Number.isNaN(i)||(u=Math.max(0,i))}}),u},imageGalleryGetResolvedLoadMoreSettings:function(e){var t,n=bricksUtils.imageGalleryGetLoadMoreSettings(e),r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.brxLoadMoreResolvedInitial,i=bricksUtils.imageGalleryResolveLoadMoreValue(n,"step");if(void 0!==r)return null!=e&&e.dataset&&(e.dataset.brxLoadMoreResolvedStep="".concat(i)),_objectSpread(_objectSpread({},n),{},{initial:Number.parseInt(r,10)||0,step:i});var o=_objectSpread(_objectSpread({},n),{},{initial:bricksUtils.imageGalleryResolveLoadMoreValue(n,"initial"),step:i});return null!=e&&e.dataset&&(e.dataset.brxLoadMoreResolvedInitial="".concat(o.initial),e.dataset.brxLoadMoreResolvedStep="".concat(o.step)),o},imageGalleryAppendDeferredItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null==e?void 0:e.querySelector(":scope > .brx-gallery-load-more-template");if(!r||!r.content||t<=0)return[];var i=Array.from(r.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}).slice(0,t);if(!i.length)return[];var o=document.createDocumentFragment(),a=e.querySelector(":scope > .bricks-isotope-sizer"),s=e.querySelector(":scope > .brx-gallery-load-more-trail"),c=a||s||r;
97return i.forEach(function(e){null!=n&&n.animate&&e.classList.add("brx-gallery-item-reveal"),o.appendChild(e)}),e.insertBefore(o,c),null!=n&&n.animate&&i.forEach(function(e){setTimeout(function(){e.classList.remove("brx-gallery-item-reveal")},300)}),i},imageGalleryLoadMoreSync:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=[];"all"===t?n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"]'):null!=t&&null!==(e=t.matches)&&void 0!==e&&e.call(t,'.brxe-image-gallery[data-brx-load-more="gallery"]')?n=[t]:"string"==typeof t&&(n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"][data-script-id="'.concat(t,'"]'))),n.forEach(function(e){var t,n,r,i=e.querySelector(":scope > .brx-gallery-load-more-template");if(i&&i.content){var o=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),a=Array.from(e.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),s=Array.from(i.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),c=Number.parseInt(null!==(t=null==o?void 0:o.total)&&void 0!==t?t:"".concat(a.length+s.length),10),l=Number.parseInt(null!==(n=null==o?void 0:o.initial)&&void 0!==n?n:"0",10),d=l>0&&l<c?Math.min(l,c):c,u=!1;if(a.length>d){var p=a.slice(d);if(p.length){var b=document.createDocumentFragment();p.forEach(function(e){b.appendChild(e)}),i.content.insertBefore(b,i.content.firstChild),u=!0}}else if(a.length<d){u=bricksUtils.imageGalleryAppendDeferredItems(e,d-a.length).length>0}if(u){if(bricksLazyLoad(),e.classList.contains("isotope")){var v,f=null===(v=e.dataset)||void 0===v?void 0:v.scriptId;f&&bricksUtils.updateIsotopeInstance(f)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe(),null!=o&&o.infinite&&(delete e.dataset.brxGalleryInfiniteInit,void 0!==bricksGalleryInfiniteScrollFn&&bricksGalleryInfiniteScrollFn.run({forceReinit:function(t){return t===e}}))}var m=(null===(r=e.dataset)||void 0===r?void 0:r.scriptId)||"all";bricksUtils.imageGalleryLoadMoreButtonVisibility(m)}})},imageGalleryLoadMoreButtonVisibility:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[];if(n.length){n.forEach(function(e){if("loadMoreGallery"===(null==e?void 0:e.action)&&null!=e&&e.loadMoreTargetSelector&&null!=e&&e.el){var n=[];try{n=bricksQuerySelectorAll(document,e.loadMoreTargetSelector)}catch(e){return}if((n=n.filter(function(e){return e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')})).length){if("all"!==t)if(!n.some(function(e){var n;return(null===(n=e.dataset)||void 0===n?void 0:n.scriptId)===t}))return;n.some(function(e){return function(e){if(!e||!e.matches||!e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]'))return!1;var t=e.querySelector(":scope > .brx-gallery-load-more-template");return!(!t||!t.content||!t.content.querySelector("li.bricks-layout-item"))}(e)})?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")}else e.el.classList.add("brx-load-more-hidden")}})}},imageGalleryLoadMore:function(e){var t;if(!e||!e.matches(".brxe-image-gallery"))return!1;var n=e.querySelector(":scope > .brx-gallery-load-more-template");if(!n||!n.content)return!1;var r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),i=Number.parseInt((null==r?void 0:r.step)||"0",10),o=Array.from(n.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),a=i>0?Math.min(i,o.length):o.length;if(!a)return!1;bricksUtils.imageGalleryAppendDeferredItems(e,a,{animate:!0});var s=e.querySelector(":scope > .brx-gallery-load-more-trail");if(bricksLazyLoad(),e.classList.contains("isotope")){var c=e.dataset.scriptId;c&&bricksUtils.updateIsotopeInstance(c)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe();var l=null!==n.content.querySelector("li.bricks-layout-item");!l&&s&&s.remove();var d=(null===(t=e.dataset)||void 0===t?void 0:t.scriptId)||"all";return bricksUtils.imageGalleryLoadMoreButtonVisibility(d),l}},BricksFunction=function(){return _createClass(function e(t){var n,r,i,o,a=this;_classCallCheck(this,e),_defineProperty(this,"_customRun",null),_defineProperty(this,"_customEachElement",null),_defineProperty(this,"_customListenerHandler",null),_defineProperty(this,"_customAddEventListeners",null),_defineProperty(this,"_settings",{}),_defineProperty(this,"_initializedElements",new Set);var s={parentNode:document,selector:"",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"],subscribejQueryEvents:[],forceReinit:!1,frontEndOnly:!1,windowVariableCheck:[],additionalActions:[]};Object.assign(s,t),this._settings=s,this._customRun=null!==(n=null==t?void 0:t.run)&&void 0!==n?n:null,this._customEachElement=null!==(r=null==t?void 0:t.eachElement)&&void 0!==r?r:null,this._customListenerHandler=null!==(i=null==t?void 0:t.listenerHandler)&&void 0!==i?i:null,this._customAddEventListeners=null!==(o=null==t?void 0:t.addEventListeners)&&void 0!==o?o:null,this.cleanUpInitElements=this.cleanUpInitElements.bind(this),this.run=this.run.bind(this),this.eachElement=this.eachElement.bind(this),this.listenerHandler=this.listenerHandler.bind(this),this.addEventListeners=this.addEventListeners.bind(this),document.addEventListener("DOMContentLoaded",function(){if(a.addEventListeners(),a._settings.additionalActions.length){var e,t=_createForOfIteratorHelper(a._settings.additionalActions);try{for(t.s();!(e=t.n()).done;){var n=e.value;"function"==typeof n&&n.call(a)}}catch(e){t.e(e)}finally{t.f()}}}),window.bricksFunctions||(window.bricksFunctions=[]),window.bricksFunctions.push(this)},[{key:"functionCanRun",value:function(){if(this._settings.frontEndOnly&&!document.body.classList.contains("bricks-is-frontend"))return!1;if(this._settings.windowVariableCheck.length){var e,t=_createForOfIteratorHelper(this._settings.windowVariableCheck);try{for(t.s();!(e=t.n()).done;){var n,r=e.value.split("."),i=window,o=_createForOfIteratorHelper(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!i.hasOwnProperty(a)){i=!1;break}i=i[a]}}catch(e){o.e(e)}finally{o.f()}if(!i)return!1}}catch(e){t.e(e)}finally{t.f()}}return!0}},{key:"cleanUpInitElements",value:function(){var e,t=_createForOfIteratorHelper(this._initializedElements);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isConnected||this._initializedElements.delete(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"eachElement",value:function(e){this._customEachElement&&"function"==typeof this._customEachElement&&this._customEachElement.call(this,e)}},{key:"run",value:function(e){var t=this;if(this.functionCanRun())if(this.cleanUpInitElements(),this._customRun&&"function"==typeof this._customRun)this._customRun.c
97all(this,e);else{var n=Object.assign({},this._settings);e&&Object.keys(e).forEach(function(t){n.hasOwnProperty(t)&&(n[t]=e[t])});var r=bricksQuerySelectorAll(n.parentNode,n.selector);r.length&&r.forEach(function(e,r){if(n.forceReinit&&("function"==typeof n.forceReinit?n.forceReinit.call(t,e,r):n.forceReinit))return void t.eachElement(e,r);if(t._initializedElements.has(e)){var i=Array.from(t._initializedElements).find(function(t){return t===e});i.isConnected||(t._initializedElements.delete(i),t._initializedElements.add(e,r),t.eachElement(e,r))}else t._initializedElements.add(e),t.eachElement(e,r)})}}},{key:"listenerHandler",value:function(e){this._customListenerHandler&&"function"==typeof this._customListenerHandler?this._customListenerHandler.call(this,e):null!=e&&e.type&&(e.type,this.run())}},{key:"addEventListeners",value:function(){this.functionCanRun()&&(this._customAddEventListeners&&"function"==typeof this._customAddEventListeners?this._customAddEventListeners.call(this):(this._settings.subscribeEvents.length&&bricksUtils.subscribeEvents(document,this._settings.subscribeEvents,this.listenerHandler),this._settings.subscribejQueryEvents.length&&bricksUtils.subscribejQueryEvents(document,this._settings.subscribejQueryEvents,this.listenerHandler)))}}])}();function reinitBricksFunctions(){window.bricksFunctionInstances&&window.bricksFunctionInstances.forEach(function(e){e&&"function"==typeof e.run&&e.run()})}if("undefined"!=typeof window){window.bricksFunctionInstances=window.bricksFunctionInstances||[];var OriginalBricksFunction=BricksFunction;window.BricksFunction=function(){function e(t){var n;return _classCallCheck(this,e),n=_callSuper(this,e,[t]),window.bricksFunctionInstances.push(n),n}return _inherits(e,OriginalBricksFunction),_createClass(e)}(),Object.setPrototypeOf(window.BricksFunction.prototype,OriginalBricksFunction.prototype),Object.setPrototypeOf(window.BricksFunction,OriginalBricksFunction),void 0!==BricksFunction&&(BricksFunction=window.BricksFunction)}function bricksBlockEditorIntegration(){if(document.body.classList.contains("block-editor-page")){var e=function(){var t=document.querySelector(".wp-block-post-content");t?(new MutationObserver(function(){clearTimeout(window.bricksReinitTimeout),window.bricksReinitTimeout=setTimeout(reinitBricksFunctions,300)}).observe(t,{childList:!0,subtree:!0}),setTimeout(reinitBricksFunctions,200)):setTimeout(e,100)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}}var bricksLazyLoadFn=new BricksFunction({parentNode:document,selector:".bricks-lazy-hidden",subscribejQueryEvents:["updated_cart_totals"],eachElement:function(e){var t=window.bricksData.offsetLazyLoad||300;new BricksIntersect({element:e,callback:function(e){!function(e){if(e.classList.add("wait"),e.dataset.src&&(e.src=e.dataset.src,delete e.dataset.src,e.closest(".bricks-masonry"))){var t,n=null!==(t=e.closest(".bricks-masonry").getAttribute("data-script-id"))&&void 0!==t&&t;n&&e.addEventListener("load",function(){bricksUtils.updateIsotopeInstance(n)})}if(e.dataset.sizes&&(e.sizes=e.dataset.sizes,delete e.dataset.sizes),e.dataset.srcset&&(e.srcset=e.dataset.srcset,delete e.dataset.srcset),e.dataset.style){var r=e.getAttribute("style")||"";r+=e.dataset.style,e.setAttribute("style",r),e.classList.contains("splide__slide")||delete e.dataset.style}e.classList.remove("bricks-lazy-hidden"),e.classList.remove("wait"),e.classList.contains("bricks-lazy-load-isotope")&&bricksIsotope()}(e)},rootMargin:"".concat(t,"px")})},listenerHandler:function(e){setTimeout(function(){bricksLazyLoadFn.run()},100)}});function bricksLazyLoad(){bricksLazyLoadFn.run()}var bricksAnimationFn=new BricksFunction({parentNode:document,selector:".brx-animated",removeAfterMs:3e3,eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.dataset.animation;t&&(e.classList.add("brx-animate-".concat(t)),e.removeAttribute("data-animation"),e.addEventListener("animationend",function(){var n;if(e.classList.remove("brx-animate-".concat(t)),e.classList.contains("brx-popup-content")&&t.includes("Out")){var r=e.closest(".brx-popup");r&&bricksClosePopup(r)}var i=null===(n=e.dataset)||void 0===n?void 0:n.animationId;
97if(e.style.animationDuration="",i){var o=new CustomEvent("bricks/animation/end/".concat(i),{detail:{el:e}});document.dispatchEvent(o)}},{once:!0}))}})},run:function(e){var t=bricksAnimationFn,n=(null==e?void 0:e.elementsToAnimate)||bricksQuerySelectorAll(t._settings.parentNode,t._settings.selector);t.removeAfterMs=(null==e?void 0:e.removeAfterMs)||t.removeAfterMs,n.forEach(function(e){t.eachElement(e)})}});function bricksAnimation(){bricksAnimationFn.run()}var bricksMotionParallax=function(){var e=new WeakMap,t=new Set,n=new Set,r=null,i=!1,o=!1;function a(){i=!1,r=null,n.forEach(function(e){e()})}function s(){i||(i=!0,r=window.requestAnimationFrame(a))}function c(){var e=n.size>0;e&&!o&&(window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),window.addEventListener("orientationchange",s,{passive:!0}),o=!0),!e&&o&&(window.removeEventListener("scroll",s),window.removeEventListener("resize",s),window.removeEventListener("orientationchange",s),o=!1,r&&(window.cancelAnimationFrame(r),r=null,i=!1))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=parseFloat(e);return Number.isFinite(n)?n/100:t}function d(e){if(!e)return arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50%";return{left:"0%",right:"100%",top:"0%",bottom:"100%",center:"50%"}[e.trim().toLowerCase()]||e}function u(n){var r=e.get(n);if(t.delete(n),r){var i;if(r.cleanupFns.forEach(function(e){"function"==typeof e&&e()}),r.hasElementParallax&&(n.style.translate=r.originalInlineTranslate||""),r.hasBackgroundParallax)n.style.backgroundPosition=null!==(i=r.originalInlineBackgroundPosition)&&void 0!==i?i:"";e.delete(n)}}var p=new BricksFunction({parentNode:document,selector:"[data-brx-motion-parallax]",forceReinit:!0,eachElement:function(r){var i,o,a,p;u(r);try{var b;p=JSON.parse(null===(b=r.dataset)||void 0===b?void 0:b.brxMotionParallax)}catch(e){return}if(p){var v=!0===(null===(i=p)||void 0===i?void 0:i.element),f=!0===(null===(o=p)||void 0===o?void 0:o.background),m=null===(a=p)||void 0===a?void 0:a.startVisiblePercent,g=parseFloat(m),y=Number.isFinite(g)?Math.min(Math.max(g,0),100):0;if(v||f){var k=function(e,t){var r=t.hasElementParallax,i=t.hasBackgroundParallax,o=t.progressStart,a=t.originalInlineTranslate,u=t.originalInlineBackgroundPosition,p=[],b=window.matchMedia("(prefers-reduced-motion: reduce)"),v="50%",f="50%";if(i){e.style.backgroundPosition=u||"";var m=window.getComputedStyle(e);v=d(m.backgroundPositionX,"50%"),f=d(m.backgroundPositionY,"50%")}var g=0,y=0,k=0,w=function(){var t,n,o,a=window.getComputedStyle(e);r&&(g=l(null===(t=a.getPropertyValue("--brx-motion-parallax-speed-x"))||void 0===t?void 0:t.trim()),y=l(null===(n=a.getPropertyValue("--brx-motion-parallax-speed-y"))||void 0===n?void 0:n.trim())),i&&(k=l(null===(o=a.getPropertyValue("--brx-motion-background-speed"))||void 0===o?void 0:o.trim()))};w();var h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,E=function(){w(),e.style.translate="",h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,s()};window.addEventListener("resize",E),document.addEventListener("load",E),document.addEventListener("bricks/tabs/changed",E),document.addEventListener("bricks/accordion/open",E),document.addEventListener("bricks/accordion/close",E),document.addEventListener("bricks/ajax/nodes_added",E),document.addEventListener("bricks/ajax/load_page/completed",E),document.addEventListener("bricks/ajax/query_result/displayed",E),document.addEventListener("bricks/ajax/pagination/completed",E),p.push(function(){window.removeEventListener("resize",E),document.removeEventListener("load",E),document.removeEventListener("bricks/tabs/changed",E),document.removeEventListener("bricks/accordion/open",E),document.removeEventListener("bricks/accordion/close",E),document.removeEventListener("bricks/ajax/nodes_added",E),document.removeEventListener("bricks/ajax/load_page/completed",E),document.removeEventListener("bricks/ajax/query_result/displayed",E),document.removeEventListener("bricks/ajax/pagination/completed",E)});var I=function(){if(b.matches)return r&&(e.style.translate="0px 0px"),void(i&&(e.style.backgroundPosition="".concat(v," ").concat(f)));var t=window.innerHeight||document.documentElement.clientHeight,n=window.scrollY||window.pageYOffset||0,a=Math.max(S-t,0),s=t+L||1,c=Math.min(Math.max((n-a)/s,0),1),l=Math.min(Math.max(o,0),1),d=Math.max(1-l,1e-4),u=Math.max(c-l,0)/d*.5;if(r){var p=window.innerWidth||document.documentElement.clientWidth,m=u*g*p,w=u*y*t;e.style.translate="".concat(m.toFixed(2),"px ").concat(w.toFixed(2),"px")}if(i){var h=u*k*t;e.style.backgroundPosition="".concat(v," calc(").concat(f," + ").concat(h.toFixed(2),"px)")}};return n.add(I),c(),p.push(function(){n.delete(I),c()}
97),I(),{cleanupFns:p,hasElementParallax:r,hasBackgroundParallax:i,originalInlineTranslate:a,originalInlineBackgroundPosition:u}}(r,{hasElementParallax:v,hasBackgroundParallax:f,progressStart:y/100,originalInlineTranslate:r.style.translate||"",originalInlineBackgroundPosition:r.style.backgroundPosition});e.set(r,k),t.add(r)}}}});return function(e){t.forEach(function(e){e.isConnected||u(e)}),s(),p.run(e)}}(),bricksInitQueryLoopInstancesFn=new BricksFunction({parentNode:document,selector:".brx-query-trail",subscribeEvents:["bricks/ajax/load_page/completed"],eachElement:function(e){var t,n,r,i,o,a,s,c,l,d,u=(null===(t=e.dataset)||void 0===t?void 0:t.observerMargin)||"1px",p=(null===(n=e.dataset)||void 0===n?void 0:n.observerDelay)||0,b=(null===(r=e.dataset)||void 0===r?void 0:r.queryComponentId)||!1,v=null===(i=e.dataset)||void 0===i?void 0:i.queryElementId,f=null===(o=e.dataset)||void 0===o?void 0:o.queryVars,m=(null===(a=e.dataset)||void 0===a?void 0:a.originalQueryVars)||"[]",g=e.classList.contains("bricks-isotope-sizer"),y=e.classList.contains("brx-infinite-scroll"),k=null===(s=e.dataset)||void 0===s?void 0:s.brxAjaxLoader,w=null===(c=e.dataset)||void 0===c?void 0:c.brxLiveSearch,h=null===(l=e.dataset)||void 0===l?void 0:l.brxDisableUrlParams,x=document.querySelector('[data-brx-loop-start="'.concat(v,'"]'));x?(null==x||x.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e")),x.removeAttribute("data-brx-loop-start")):e.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e"));var S=(null==x?void 0:x.parentNode)||e.parentNode;window.bricksData.queryLoopInstances[v]={componentId:b,start:e.dataset.start,end:e.dataset.end,page:e.dataset.page,maxPages:e.dataset.maxPages,queryVars:f,originalQueryVars:m,observerMargin:u,observerDelay:p,infiniteScroll:y,isPostsElement:g,ajaxLoader:k,isLiveSearch:w,disableUrlParams:h,resultsContainer:S,xhr:null,xhrAborted:!1};var L=bricksUtils.getQueryTrailSelectorId(v,b),E=g?e.previousElementSibling:Array.from(S.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();if(e.removeAttribute("data-query-vars"),e.removeAttribute("data-original-query-vars"),e.closest(".brxe-slider-nested.splide")&&(null===(d=e.parentNode)||void 0===d?void 0:d.classList.contains("splide__list"))){var I,A=(null===(I=e.closest(".brxe-slider-nested.splide").dataset)||void 0===I?void 0:I.scriptId)||!1;if(A){["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.rebuildSplide(A)})})}}g||e.remove(),E&&y&&(E.dataset.queryElementId=v,new BricksIntersect({element:E,callback:function(e){return bricksQueryLoadPage(e)},once:1,rootMargin:u}))}});function bricksInitQueryLoopInstances(){bricksInitQueryLoopInstancesFn.run()}function bricksAjaxLoader(){var e=function(e){var t="";switch(e){case"default":t='<div class="brx-loading-default"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ellipsis":t='<div class="brx-loading-ellipsis"><div></div><div></div><div></div><div></div></div>';break;case"ring":t='<div class="brx-loading-ring"><div></div><div></div><div></div><div></div></div>';break;case"dual-ring":t='<div class="brx-loading-dual-ring"></div>';break;case"facebook":t='<div class="brx-loading-facebook"><div></div><div></div><div></div></div>';break;case"roller":t='<div class="brx-loading-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ripple":t='<div class="brx-loading-ripple"><div></div><div></div></div>';break;case"spinner":t='<div class="brx-loading-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'}return t};document.addEventListener("bricks/ajax/start",function(t){var n=t.detail.queryId||!1;if(n){var r=window.bricksData.queryLoopInstances[n]||!1;if(r){var i=JSON.parse((null==r?void 0:r.ajaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a=!(null==i||!i.selector)&&document.querySelector(i.selector);if(!a){var s,c,l=bricksUtils.getQueryTrailSelectorId(n,(null==r?void 0:r.componentId)||!1);a=null!==(s=Array.from(null===(c=r.resultsContainer)||void 0===c?void 0:c.querySelectorAll(".brxe-".concat(l,":not(.brx-popup)"))).pop())&&void 0!==s?s:r.resultsContainer}
97if(a){var d=a.nodeName.toLowerCase(),u=document.createElement(d);u.classList.add("brx-loading-animation"),u.dataset.ajaxLoaderQueryId=n,null!=i&&i.color&&u.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(u.style.transform="scale(".concat(i.scale,")")),u.innerHTML=e(o),a.insertAdjacentElement(null!=i&&i.selector?"beforeend":"afterend",u)}}}}}),document.addEventListener("bricks/ajax/end",function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.queryId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-query-id="'.concat(e.detail.queryId,'"]')):[]).forEach(function(e){return e.remove()})}),document.addEventListener("bricks/ajax/popup/start",function(t){var n,r=t.detail.popupElement||!1;if(r){var i=JSON.parse((null===(n=r.dataset)||void 0===n?void 0:n.brxAjaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a=!(null==i||!i.selector)&&document.querySelector(i.selector);if(a||(a=r.querySelector(".brx-popup-content")),a){var s=a.nodeName.toLowerCase(),c=document.createElement(s);c.classList.add("brx-loading-animation"),c.dataset.ajaxLoaderPopupId=r.dataset.popupId,null!=i&&i.color&&c.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(c.style.transform="scale(".concat(i.scale,")")),c.innerHTML=e(o),a.insertAdjacentElement("afterbegin",c)}}}}),document.addEventListener("bricks/ajax/popup/end",function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.popupId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-popup-id="'.concat(e.detail.popupId,'"]')):[]).forEach(function(e){return e.remove()})})}function bricksQueryResultsA11y(){var e=new Map,t=new Set,n=new Map,r=new Map,i=function(e,t){var n=function(e,t){var n,r,i,o,a=(null===(n=window.bricksData.i18n)||void 0===n?void 0:n.queryUpdated)||"",s=document.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]')),c=(null==s||null===(r=s.textContent)||void 0===r?void 0:r.trim())||"";if(c)return"".concat(a," ").concat(c).trim();var l=(null===(i=window.bricksData.queryLoopInstances[e])||void 0===i?void 0:i.page)||!1,d=(null===(o=window.bricksData.i18n)||void 0===o?void 0:o.queryUpdatedPage)||"";return t&&l&&d?d.replace("%s",l):a}(e,t);if(n){var i=function(e){var t="brx-query-results-status-".concat(e),n=document.getElementById(t);return n||((n=document.createElement("div")).id=t,n.className="screen-reader-text",n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),document.body.appendChild(n)),n}(e);clearTimeout(r.get(e)),i.textContent="",r.set(e,setTimeout(function(){i.textContent=n,r.delete(e)},50))}},o=function(e,t){e&&(i(e,t),t&&function(e){var t=window.bricksData.queryLoopInstances[e]||!1,n=(null==t?void 0:t.resultsContainer)||!1;n&&window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){var r=bricksUtils.getQueryTrailSelectorId(e,t.componentId||!1),i=n.querySelector(".brxe-".concat(r,":not(.brx-popup), .bricks-posts-nothing-found"));i||(i=document.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]'))),i&&"function"==typeof i.focus&&(i.hasAttribute("tabindex")||(i.setAttribute("tabindex","-1"),i.addEventListener("blur",function(){return i.removeAttribute("tabindex")},{once:!0})),i.focus())})})}(e))};document.addEventListener("click",function(e){var r,i=e.target||!1;if(i&&"function"==typeof i.closest){var o=i.closest(".brx-ajax-pagination a")||!1;if(o&&"function"==typeof o.closest){var a=o.closest(".brx-ajax-pagination")||!1,s=(null==a||null===(r=a.dataset)||void 0===r?void 0:r.queryElementId)||!1,c=window.bricksData.queryLoopInstances[s]||!1;s&&null!=c&&c.resultsContainer&&(clearTimeout(n.get(s)),t.add(s))}}}),document.addEventListener("bricks/ajax/start",function(t){var n,r,i=(null===(n=t.detail)||void 0===n?void 0:n.queryId)||!1,o=(null===(r=window.bricksData.queryLoopInstances[i])||void 0===r?void 0:r.resultsContainer)||!1;if(i&&o){var a=e.get(i),s=((null==a?void 0:a.requestVersion)||0)+1;e.set(i,{element:o,previousValue:a?a.previousValue:o.getAttribute("aria-busy"),requestVersion:s}),o.setAttribute("aria-busy","true")}}),document.addEventListener("bricks/ajax/end",function(r){var i,o=(null===(i=r.detail)||void 0===i?void 0:i.queryId)||!1;if(o){var a=e.get(o);a&&setTimeout(function(){var t,n,r,i=window.bricksData.queryLoopInstances[o]||!1;null!=i&&i.isLoading||(null===(t=e.get(o))||void 0===t?void 0:t.requestVersion)!==a.requestVersion||(n=a.element,r=a.previousValue,null!=n&&n.isConnected&&(null===r?n.removeAttribute("aria-busy"):n.setAttribute("aria-busy",r)),e.delete(o))},0),n.set(o,setTimeout(function(){t.delete(o),n.delete(o)},0))}}),document.addEventListener("bricks/ajax/query_result/displayed",function(e){var r,i=(null===(r=e.detail)||void 0===r?void 0:r.queryId)||!1,a=t.has(i);clearTimeout(n.get(i)),n.delete(i),t.delete(i),o(i,a)}),document.addEventListener("bricks/ajax/pagination/completed",function(e){var r,i,a=(null===(r=e.detail)||void 0===r?void 0:r.queryId)||!1;clearTimeout(n.get(a)),n.delete(a),t.delete(a),null!==(i=e.detail)&&void 0!==i&&i.queryUpdated&&o(a,!0)})}function bricksQueryLoadPage(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o,a=e.dataset.queryElementId,s=null===(o=window.bricksData.queryLoopInstances)||void 0===o?void 0:o[a];if(s&&(null==s||!s.isLoading||n)){var c=(null==s?void 0:s.componentId)||!1,l=parseInt(s.page||1)+1,d=parseInt(s.maxPages||1);if(l>d)r({page:l,maxPages:d});else{var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:a,componentId:c,queryVars:s.queryVars,page:l,nonce:window.bricksData.nonce,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParam
97s:bricksGetCurrentUrlParams()};if("1"===window.bricksData.useQueryFilter&&"function"==typeof window.bricksUtils.getFiltersForQuery&&"function"==typeof window.bricksUtils.getSelectedFiltersForQuery){var b=[];if(window.bricksData.filterInstances&&Object.keys(window.bricksData.filterInstances).length>0)b=Object.values(window.bricksData.filterInstances).filter(function(e){return e.targetQueryId===a}).map(function(e){return e.filterId});if(b.length){var v=window.bricksUtils.getFiltersForQuery(a,"filterId"),f=window.bricksUtils.getSelectedFiltersForQuery(a),m=window.bricksUtils.getDynamicTagsForParse(a),g="[]"===(null==s?void 0:s.originalQueryVars)?null==s?void 0:s.queryVars:null==s?void 0:s.originalQueryVars;p={postId:window.bricksData.postId,queryElementId:a,originalQueryVars:g,pageFilters:window.bricksData.pageFilters||!1,filters:v,infinitePage:l,selectedFilters:f,afTags:m,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()},u=window.bricksData.restApiUrl.concat("query_result")}}window.bricksData.queryLoopInstances[a].isLoading=1,n||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:a}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var y=new XMLHttpRequest;y.open("POST",u,!0),y.setRequestHeader("Content-Type","application/json; charset=UTF-8"),y.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE){var t,o,u=y.status;try{o=JSON.parse(y.response)}catch(e){o=null}if(0===u||u>=200&&u<400){var p,b,v,f,m=(null===(p=o)||void 0===p?void 0:p.html)||!1,g=(null===(b=o)||void 0===b?void 0:b.styles)||!1,k=(null===(v=o)||void 0===v?void 0:v.popups)||!1,w=(null===(f=o)||void 0===f?void 0:f.updated_query)||!1;m&&(m=m.replace(/<!--brx-loop-start-.*?-->/g,""),e.insertAdjacentHTML("afterend",m)),k&&document.body.insertAdjacentHTML("beforeend",k),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:a}})),g&&document.body.insertAdjacentHTML("beforeend",g),w&&(w.start=parseInt(s.start),bricksUtils.updateQueryResultStats(a,"query",w)),window.bricksData.queryLoopInstances[a].page=l,void 0!==(null==w?void 0:w.max_num_pages)&&(window.bricksData.queryLoopInstances[a].maxPages=parseInt(w.max_num_pages))}else{if(403===u&&"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)&&!n)return void bricksRegenerateNonceAndRetryQueryLoadPage(e).then(r).catch(i);console.error("Request failed with status ".concat(u))}window.bricksData.queryLoopInstances[a].isLoading=0,r({page:l,maxPages:d}),bricksUtils.hideOrShowLoadMoreButtons(a),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:a}})),setTimeout(function(){var e,t=bricksUtils.getQueryTrailSelectorId(a,c),n=Array.from((null===(e=s.resultsContainer)||void 0===e?void 0:e.querySelectorAll(".brxe-".concat(t,":not(.brx-popup)")))||[]).pop();document.dispatchEvent(new CustomEvent("bricks/ajax/load_page/completed",{detail:{queryTrailElement:n,queryId:a}})),n&&s.infiniteScroll&&(n.dataset.queryElementId=a,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:s.observerMargin}))},250)}},t?y.send(JSON.stringify(p)):setTimeout(function(){y.send(JSON.stringify(p))},parseInt(s.observerDelay))}}})}function bricksRegenerateNonceAndRetryQueryLoadPage(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}i.success&&i.data?(window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce,bricksQueryLoadPage(e,!0,!0).then(t).cat
97ch(n)):n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}var bricksQueryPaginationFn=new BricksFunction({parentNode:document,selector:".brx-ajax-pagination a",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/query_result/displayed"],eachElement:function(e){var t;null!==(t=e.dataset)&&void 0!==t&&t.ajaxPagination||(e.dataset.ajaxPagination=1,e.addEventListener("click",function(e){var t,n=e.currentTarget,r=n.getAttribute("href"),i=n.closest(".brx-ajax-pagination"),o=null==i||null===(t=i.dataset)||void 0===t?void 0:t.queryElementId;if(function(e){var t,n=!0;if(!window.bricksData.useQueryFilter||"function"!=typeof window.bricksUtils.getFiltersForQuery)return n;var r=e.closest(".brx-ajax-pagination"),i=(null==r||null===(t=r.dataset)||void 0===t?void 0:t.queryElementId)||!1;if(i){var o=bricksUtils.getFiltersForQuery(i);(o=o.filter(function(e){return"pagination"!==e.filterType})).length>0&&(n=!1)}return n}(i)){var a=parseInt(bricksUtils.getPageNumberFromUrl(r));a<1||(e.preventDefault(),bricksAjaxPagination(n,o,a))}}))}});function bricksAjaxPagination(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise(function(i,o){if(t){var a=e.getAttribute("href"),s=window.bricksData.queryLoopInstances[t]||!1,c=e.closest(".brx-ajax-pagination"),l=(null==s?void 0:s.componentId)||!1,d=(null==s?void 0:s.resultsContainer)||!1;if(s&&d){var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:t,componentId:s.componentId||!1,queryVars:s.queryVars,page:n,nonce:window.bricksData.nonce,paginationId:c.dataset.paginationId,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};r||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:t}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var b=new XMLHttpRequest;b.open("POST",u,!0),b.setRequestHeader("Content-Type","application/json; charset=UTF-8"),b.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),b.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var s,u,p=this.status,v=!1;try{u=JSON.parse(b.response)}catch(e){u=null}if(0===p||p>=200&&p<400){var f,m,g,y,k;v=!0;var w=(null===(f=u)||void 0===f?void 0:f.html)||!1,h=(null===(m=u)||void 0===m?void 0:m.styles)||!1,x=(null===(g=u)||void 0===g?void 0:g.popups)||!1,S=(null===(y=u)||void 0===y?void 0:y.pagination)||!1,L=(null===(k=u)||void 0===k?void 0:k.updated_query)||!1,E=bricksUtils.getQueryTrailSelectorId(t,l),I=d.querySelector(".bricks-gutter-sizer"),A=d.querySelector(".bricks-isotope-sizer"),q=d.querySelectorAll(".brxe-".concat(E,", .bricks-posts-nothing-found")),T=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(e){return e.nodeValue==="brx-loop-start-".concat(t)}}).nextNode(),F=q.length>0||T;if(F&&d.querySelectorAll(".brxe-".concat(E,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),w)if(F){if(T){var C=w.match(/<\s*([a-z0-9]+)([^>]+)?>/i),P=null;(P=!C||"td"!==C[1]&&"tr"!==C[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=w;var D=Array.from(P.childNodes);D.reverse(),D.forEach(function(e){var t,n;T.nextSibling?null===(t=T.parentNode)||void 0===t||t.insertBefore(e,T.nextSibling):null===(n=T.parentNode)||void 0===n||n.appendChild(e)}),P.remove()}}else d.insertAdjacentHTML("beforeend",w);if(I&&d.appendChild(I),A&&d.appendChild(A),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(t,'"]')).forEach(function(e){return e.remove()}),x&&document.body.insertAdjacentHTML("beforeend",x),S){var _=(new DOMParser).parseFromString(S,"text/html").querySelector(".bricks-pagination");_&&(c.innerHTML="",c.appendChild(_))}if(document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:t}})),h){var N=document.querySelector("#brx-query-styles-".concat(t));N||((N=document.createElement("style")).id="brx-query-styles-".concat(t),document.body.appendChild(N)),N.innerHTML=h}L&&(void 0!==(null==L?void 0:L.start)&&(window.bricksData.queryLoopInstances[t].start=parseInt(L.start)),bricksUtils.updateQueryResultStats(t,"query",L)),window.bricksData.queryLoopInstances[t].page=n,window.history.pushState({},"",a)}else{if(403===p&&"rest_cookie_invalid_nonce"===(null===(s=u)||void 0===s?void 0:s.code)&&!r)return void bricksRegenerateNonceAndRetryAjaxPagination(e,t,n).then(i).catch(o);console.error("Request failed with status ".concat(p))}i(),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:t}})),document.dispatchEvent(new CustomEvent("bricks/ajax/pagination/completed",{detail:{queryId:t,queryUpdated:v}})),bricksUtils.hideOrShowLoadMoreButtons(t)}},b.send(JSON.stringify(p))}else o("Query instance not found")}else o("Query ID is missing")})}function bricksRegenerateNonceAndRetryAjaxPagination(e,t,n){return new Promise(function(r,i){var o=new XMLHttpRequest;o.open("POST",window.bricksData.ajaxUrl,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(o.status>=200&&o.status<400){var a;try{a=JSON.parse(o.responseText)}catch(e){return void i("Invalid response from server when regenerating nonce")}a.success&&a.data?(window.bricksData.nonce=a.data.bricks_nonce,window.bricksData.wpRestNonce=a.data.rest_nonce,bricksAjaxPagination(e,t,n,!0).then(r).catch(i)):i("Failed to regenerate nonces: Invalid response structure")}else i("Failed to regenerate nonce")},o.send("action=bricks_regenerate_query_nonce")})}function bricksQueryPagination(){bricksQueryPaginationFn.run()}function bricksStickyHeader(){var e=document.querySelector("#brx-header.brx-sticky");if(e){var t,n,r=document.querySelector(".bricks-site-logo"),i=-1,o=e.hasAttribute("data-sli
97de-up-after")?e.getAttribute("data-slide-up-after"):0;r&&(t=r.getAttribute("data-bricks-logo"),n=r.getAttribute("data-bricks-logo-inverse"));var a=function(){if(!document.body.classList.contains("no-scroll")){var a=window.scrollY;a>0?(e.classList.add("scrolling"),r&&n&&r.src!==n&&(r.src=n,r.srcset="")):(e.classList.remove("scrolling"),r&&t&&r.src!==t&&(r.src=t)),o&&!document.querySelector(".bricks-search-overlay.show")&&(a>i&&i>=0?a>o&&(e.classList.contains("slide-up")||e.classList.add("sliding"),e.classList.add("slide-up")):(e.classList.contains("slide-up")&&e.classList.add("sliding"),e.classList.remove("slide-up"))),i=a}};e.addEventListener("transitionend",function(t){"transform"===t.propertyName&&e.classList.remove("sliding")}),window.addEventListener("scroll",a),a()}}function bricksOnePageNavigation(){var e=document.getElementById("bricks-one-page-navigation");if(bricksIsFrontend&&e){var t=bricksQuerySelectorAll(document,"#brx-content > *"),n=[],r="",i="",o="";t&&(t.forEach(function(t){(r=t.getAttribute("id"))&&(n.push(r),o=document.createElement("li"),(i=document.createElement("a")).classList.add("bricks-one-page-".concat(r)),i.setAttribute("href","#".concat(r)),o.appendChild(i),e.appendChild(o))}),window.addEventListener("load",a),window.addEventListener("resize",a),document.addEventListener("scroll",a))}function a(){var e=window.scrollY;n.forEach(function(t){var n=document.getElementById(t),r=n.offsetTop,i=r+n.offsetHeight;e>=r-1&&e<i-1?document.querySelector(".bricks-one-page-".concat(t)).classList.add("active"):document.querySelector(".bricks-one-page-".concat(t)).classList.remove("active")})}}function bricksSearchToggle(){bricksQuerySelectorAll(document,".brxe-search").forEach(function(e){var t=e.querySelector(".toggle"),n=e.querySelector(".bricks-search-overlay");if(t&&n){var r=n.previousElementSibling;document.addEventListener("keyup",function(e){"Escape"===e.key&&("visible"===window.getComputedStyle(n).visibility&&(n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)))}),t.addEventListener("click",function(){n.classList.toggle("show"),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")),setTimeout(function(){e.querySelector("input[type=search]").focus()},200)}),n.querySelector(".close").addEventListener("click",function(){n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)})}})}var bricksAlertDismissFn=new BricksFunction({parentNode:document,selector:".brxe-alert svg",eachElement:function(e){e.addEventListener("click",function(){e.closest(".brxe-alert").remove()})}});function bricksAlertDismiss(){bricksAlertDismissFn.run()}var bricksTabsFn=new BricksFunction({parentNode:document,selector:".brxe-tabs, .brxe-tabs-nested",forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t=window.location.hash,n=e.getAttribute("data-open-on")||"click",r=e.querySelector(".tab-title"),i=r?Array.from(r.parentNode.children).filter(function(e){return e.classList.contains("tab-title")}):[],o=e.querySelector(".tab-pane"),a=o?Array.from(o.parentNode.children).filter(function(e){return e.classList.contains("tab-pane")}):[];if(i.length&&a.length){i.forEach(function(t,r){t.addEventListener(n,function(){var n=null,o=null;i.forEach(function(e,i){i===r?(e.classList.add("brx-open"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),n=t):(e.classList.remove("brx-open"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}),a.forEach(function(e,t){t===r?(e.classList.add("brx-open"),o=e):e.classList.remove("brx-open")});var s=null==t||!t.id||t.id.startsWith("brxe-")||t.id.startsWith("brx-")?"":"#".concat(t.id);s?history.replaceState(null,null,s):history.replaceState(null,null," "),document.dispatchEvent(new CustomEvent("bricks/tabs/changed",{detail:{elementId:e.getAttribute("data-script-id"),activeIndex:r,activeTitle:n,activePane:o}}))}),t.addEventListener("keydown",function(e){var t;if("ArrowRight"===e.key)t=r+1===i.length?0:r+1;else if("ArrowLeft"===e.key)t=r-1<0?i.length-1:r-1;else if("Home"===e.key)e.preventDefault(),t=0;else{if("End"!==e.key)return;e.preventDefault(),t=i.length-1}i[t].focus(),i[t].click()})});var s=e.getAttribute("data-open-tab")||0;if(t){var c=i.findIndex(function(e){return(null==e?void 0:e.id)&&!e.id.startsWith("brxe-")&&e.id===t.replace("#","")});s=-1!==c?c:0}i[s]?i[s].classList.add("brx-open"):i[0].classList.add("brx-open"),a[s]?a[s].classList.add("brx-open"):a[0].classList.add("brx-open"),i.forEac
97h(function(e){e.classList.contains("brx-open")?(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}),bricksTabsAccordionLayoutOnMobile()}}});function bricksTabsAccordionLayoutOnMobile(){bricksQuerySelectorAll(document,".brxe-tabs, .brxe-tabs-nested").forEach(function(e){var t=parseInt(e.getAttribute("data-accordion-breakpoint"),10),n=e.querySelector(".tab-menu");if(t&&window.innerWidth<t){n&&(n.style.display="none"),e.querySelectorAll('.tab-title:not([data-brx-tab-mode="accordion"])').forEach(function(t,n){var r=e.querySelectorAll('[data-brx-tab-mode="accordion"]')[n];if(!t.hasAttribute("data-transferred")){var i=t.querySelector("span");i&&(r.insertBefore(i.cloneNode(!0),r.firstChild),i.remove(),t.classList.contains("brx-open")?r.classList.add("brx-open"):r.classList.remove("brx-open")),t.setAttribute("data-transferred","true")}}),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(e){return e.style.display="block"}),e.querySelectorAll(".tab-pane").forEach(function(e){e.removeAttribute("tabindex")});var r=e.querySelectorAll('[data-brx-tab-mode="accordion"]'),i=e.querySelector(".tab-pane");!function(e,t){e.forEach(function(n,r){n.addEventListener("click",function(){e.forEach(function(e,t){t===r?(n.classList.add("brx-open"),n.classList.contains("accordion-title")&&e.setAttribute("aria-expanded","true")):(e.classList.remove("brx-open"),e.classList.contains("accordion-title")&&e.setAttribute("aria-expanded","false"))}),t.forEach(function(e,t){t===r?e.classList.add("brx-open"):e.classList.remove("brx-open")});var i=null!=n&&n.id&&!n.id.startsWith("brxe-")?"#".concat(n.id):"";i?history.pushState("",document.title,window.location.pathname+i):history.pushState("",document.title,window.location.pathname+window.location.search)}),n.classList.contains("accordion-title")&&n.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e.forEach(function(e,t){t===r?(e.classList.add("brx-open"),e.setAttribute("aria-expanded","true")):(e.classList.remove("brx-open"),e.setAttribute("aria-expanded","false"))}),t.forEach(function(e,t){t===r?e.classList.add("brx-open"):e.classList.remove("brx-open")}))})})}(r,i?Array.from(i.parentNode.children).filter(function(e){return e.classList.contains("tab-pane")}):[])}else{n&&(n.style.display=""),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(t,n){var r=e.querySelectorAll('.tab-title:not([data-brx-tab-mode="accordion"])')[n];if(r.hasAttribute("data-transferred")){var i=t.querySelector("span");i&&(r.insertBefore(i.cloneNode(!0),r.firstChild),i.remove(),t.classList.contains("brx-open")?r.classList.add("brx-open"):r.classList.remove("brx-open")),r.removeAttribute("data-transferred")}r.style.display="block"}),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(e){return e.style.display="none"}),e.querySelectorAll(".tab-pane").forEach(function(e){e.setAttribute("tabindex","0")});var o=e.querySelectorAll('[data-brx-tab-mode="accordion"]');o.forEach(function(e){var t=e.cloneNode(!0);e.parentNode.replaceChild(t,e)})}})}function bricksTabs(){bricksTabsFn.run()}var bricksVideoOverlayClickDetectorFn=new BricksFunction({parentNode:document,selector:".bricks-video-overlay, .bricks-video-overlay-icon, .bricks-video-preview-image",frontEndOnly:!0,eachElement:function(e){var t=function(e){var t=e.target.closest(".brxe-video");if(t){var n=t.querySelector(".bricks-video-preview-image");if(n){var r=document.createElement("iframe");_toConsumableArray(n.attributes).forEach(function(e){"class"!==e.name&&"style"!==e.name&&("data-iframe-src"!==e.name?r.setAttribute(e.name,e.value):r.setAttribute("src",e.value))}),r.dataset.bricksVideoPreviewIframe="true",n.replaceWith(r)}var i=t.querySelector("iframe");i&&i.getAttribute("src")&&(i.src+="&autoplay=1"),i&&i.removeAttribute("tabindex");var o=t.querySelector("video");o&&(o.play(),o.removeAttribute("tabindex"),setTimeout(function(){o.focus()},0))}};e.addEventListener("click",t),e.addEventListener("keydown",function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),t(e))})}});function bricksVideoOverlayClickDetector(){bricksVideoOverlayClickDetectorFn.run()}
97var bricksBackgroundVideoInitFn=new BricksFunction({parentNode:document,selector:".bricks-background-video-wrapper",forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){if(!e.classList.contains("loaded")){var t,n=e.getAttribute("data-background-video-url");if(n&&!n.includes("http")){/^[a-zA-Z0-9_-]{11}$/.test(n)?n="https://www.youtube.com/watch?v=".concat(n):/^[0-9]{6,10}$/.test(n)&&(n="https://vimeo.com/".concat(n))}if(n){var r=parseInt(e.getAttribute("data-background-video-show-at-breakpoint"));if(!(r&&window.innerWidth<r)){var i=e.getAttribute("data-background-video-scale"),o=e.getAttribute("data-background-video-ratio")||"16:9",a=parseInt(o.split(":")[0]||16),s=parseInt(o.split(":")[1]||9),c=parseInt(e.getAttribute("data-background-video-start"))||0,l=parseInt(e.getAttribute("data-background-video-end"))||0,d=1==e.getAttribute("data-background-video-loop"),u=e.getAttribute("data-background-video-poster"),p=e.getAttribute("data-background-video-poster-yt-size");l<c&&(l=0);var b=!1,v=!1,f=!1;if(-1!==n.indexOf("youtube.com")||-1!==n.indexOf("youtu.be")){b=!0,v=!0;var m=bricksGetYouTubeVideoLinkData(n);t=m.id,n=m.url}-1!==n.indexOf("vimeo.com")&&-1===n.indexOf("/progressive_redirect/")&&(b=!0,f=!0,-1===n.indexOf("player.vimeo.com/video")&&(n=n.replace("vimeo.com","player.vimeo.com/video")));var g,y=function(){var e=document.createElement("img");e.classList.add("bricks-video-poster-image");var n=!1;return v&&(p?(e.src="https://img.youtube.com/vi/".concat(t,"/").concat(p,".jpg"),n=!0):u&&(e.src=u,n=!0)),f&&u&&(e.src=u,n=!0),!!n&&e},k=function(){var t=e.querySelector(".bricks-video-poster-image");t&&t.remove()};if(b){if(v){if(!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){var w,h=document.createElement("script");!bricksIsFrontend&&null!==(w=window.bricksData)&&void 0!==w&&w.builderCloudflareRocketLoader&&h.setAttribute("data-cfasync","false"),h.src="https://www.youtube.com/iframe_api";var x=document.getElementsByTagName("script")[0];x.parentNode.insertBefore(h,x)}g=document.createElement("div"),bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),e.appendChild(g);var S=y();S&&e.appendChild(S);var L=setInterval(function(){if(window.YT&&YT.Player){clearInterval(L);var e=new YT.Player(g,{width:"640",height:"360",videoId:t,playerVars:{autoplay:1,controls:0,start:c||void 0,mute:1,rel:0,showinfo:0,modestbranding:1,cc_load_policy:0,iv_load_policy:3,autohide:0,loop:0,playlist:t,enablejsapi:1},events:{onReady:function(t){if(g=t.target.getIframe(),l)var n=setInterval(function(){e.getCurrentTime()>=l&&(d?e.seekTo(c||0,!0):(e.pauseVideo(),clearInterval(n)))},1e3)},onStateChange:function(t){d&&t.data==YT.PlayerState.ENDED&&e.seekTo(c||0,!0),t.data==YT.PlayerState.PLAYING&&k()}}})}},100)}if(f){if(!document.querySelector('script[src="https://player.vimeo.com/api/player.js"]')){var E,I=document.createElement("script");!bricksIsFrontend&&null!==(E=window.bricksData)&&void 0!==E&&E.builderCloudflareRocketLoader&&I.setAttribute("data-cfasync","false"),I.src="https://player.vimeo.com/api/player.js";var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(I,A)}bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),g=document.createElement("div");var q=y();q&&e.appendChild(q),e.appendChild(g);var T=n.split("/").pop(),F=setInterval(function(){if(window.Vimeo&&Vimeo.Player){clearInterval(F);var e=new Vimeo.Player(g,{id:T,width:640,autoplay:!0,controls:!1,background:!0,loop:d&&!c});q&&e.on("play",function(){k()}),c&&e.on("loaded",function(){e.setCurrentTime(c)}),l&&e.on("timeupdate",function(t){t.seconds>=l&&(d?(e.setCurrentTime(c||0),e.play()):e.pause())}),e.on("ended",function(){d&&e.setCurrentTime(c||0).then(function(t){e.play()})})}},100)}}else if(g=e.querySelector("video")){var C,P,D=null===(C=g.closest("[data-script-id]"))||void 0===C?void 0:C.getAttribute("data-script-id");d?g.hasAttribute("loop")||g.setAttribute("loop",""):g.removeAttribute("loop"),bricksIsFrontend||(g.currentTime=c||0),null!==(P=window.bricksData.videoInstances)&&void 0!==P&&P[D]||(window.bricksData.videoInstances[D]={}),window.bricksData.videoInstances[D].startTime=c,window.bricksData.videoInstances[D].endTime=l,window.bricksData.videoInstances[D].videoLoop=d;g.classList.contains("listening")||!c&&!l||(g.classList.add("listening"),g.addEventListener("loadedmetadata",function(){window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}),g.addEventListener("timeupdate",function(){this.currentTime>=(window.bricksData.videoInstances[D].endTime||this.duration)-.25&&(window.bricksData.videoInstances[D].videoLoop?(this.currentTime=window.bricksData.videoInstances[D].startTime,g.paused&&this.play()):this.pause())}),g.addEventListener("ended",function(){window.bricksData.videoInstances[D].videoLoop&&window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}))}i&&(g.style.transform="translate(-50%, -50%) scale(".concat(i,")")),bricksIsFrontend?e.classList.contains("bricks-lazy-video")&&new BricksIntersect({element:e,callback:function(e){e.classList.remove("bricks-lazy-video"),b?e.appendChild(g):g.src=n}}):b?e.appendChild(g):g.src=n,e.classList.add("loaded"),new ResizeObserver(function(t){var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=void 0;if(i.contentBoxSize)o=(Array.isArray(i.contentBoxSize)?i.contentBoxSize[0]:i.contentBoxSize).inlineSize;else o=i.contentRect.width;var c=e.clientHeight,l=o*s/a;l<c&&(l=c,o=c*a/s),g.style.width="".concat(o,"px"),g.style.height="".concat(l,"px")}}catch(e){r.e(e)}finally{r.f()}}).observe(e)}}}}});
97function bricksBackgroundVideoInit(){bricksBackgroundVideoInitFn.run()}var bricksPhotoswipeFn=new BricksFunction({parentNode:document,selector:".bricks-lightbox",windowVariableCheck:["PhotoSwipeLightbox"],forceReinit:function(e){return!!bricksUtils.photoswipeGetId(e)},eachElement:function(e){bricksUtils.photoswipeDestroy(e);var t=e,n="A"===e.tagName?"":"a",r=bricksUtils.photoswipeGetId(e),i=e.getAttribute("data-animation-type")||"zoom";r&&(n=bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"]')));var o={mainClass:"brx",gallery:t,counter:!t.classList.contains("brxe-carousel"),children:n,pswpModule:PhotoSwipe5,closeSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',closeTitle:window.bricksData.i18n.close,zoomTitle:window.bricksData.i18n.zoom,arrowPrevTitle:window.bricksData.i18n.prevSlide,arrowNextTitle:window.bricksData.i18n.nextSlide,showHideAnimationType:i},a=null,s=null,c=null;r?n.forEach(function(e){if(e.classList.contains("has-lightbox-thumbnails"))a=e;else{var t=e.closest(".has-lightbox-thumbnails");t&&(a=t)}if(e.getAttribute("data-lightbox-padding"))s=e;else{var n=e.closest("[data-lightbox-padding]");n&&(s=n)}if(e.classList.contains("has-lightbox-caption"))c=e;else{var r=e.closest(".has-lightbox-caption");r&&(c=r)}}):e.classList.contains("has-lightbox-thumbnails")&&(a=e);var l=(a||s||e).getAttribute("data-lightbox-padding");l&&(o.padding=JSON.parse(l));var d=e.getAttribute("data-lightbox-image-click");d&&(o.imageClickAction=d);var u=new PhotoSwipeLightbox(o),p=function(e){return!(null==e||!e.src||null==e||!e.msrc||e.src===e.msrc)};if(u.addFilter("placeholderSrc",function(e,t){return e&&p(null==t?void 0:t.data)?t.data.src:e}),u.on("closingAnimationStart",function(){var e,t,n,r,i,o=null===(e=u.pswp)||void 0===e?void 0:e.currSlide,a=null===(t=u.pswp)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.hideAnimationDuration;if(p(null==o?void 0:o.data)&&a){var s=(null===(n=u.pswp)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.easing)||"cubic-bezier(.4,0,.22,1)";[null==o||null===(r=o.content)||void 0===r?void 0:r.element,null==o||null===(i=o.content)||void 0===i||null===(i=i.placeholder)||void 0===i?void 0:i.element].filter(
97Boolean).forEach(function(e){e.style.transition="opacity ".concat(a,"ms ").concat(s),e.style.opacity="0"})}}),"none"===i&&u.addFilter("useContentPlaceholder",function(e,t){return!1}),"undefined"!=typeof PhotoSwipeDynamicCaption&&(c||e).classList.contains("has-lightbox-caption")){new PhotoSwipeDynamicCaption(u,{type:"below",captionContent:function(e){return e.data.element.getAttribute("data-lightbox-caption")}});u.on("init",function(){u.pswp.on("dynamicCaptionMeasureSize",function(e){var t;if("aside"!==(null===(t=e.slide)||void 0===t||null===(t=t.dynamicCaption)||void 0===t?void 0:t.type)){var n=function(e){if(null==e||!e.element)return 0;var t=e.element.querySelector(".pswp__thumbnail-nav-wrapper"),n=parseFloat(getComputedStyle(e.element).getPropertyValue("--pswp-thumbnail-nav-offset"))||0;return t?t.offsetHeight+n:0}(u.pswp);n&&(e.captionSize.y+=n)}})})}if(a&&(u.on("uiRegister",function(){u.pswp.ui.registerElement({name:"thumbnail-navigation",className:"pswp__thumbnail-nav-wrapper",appendTo:"wrapper",onInit:function(n,i){var s=document.createElement("div");s.className="pswp__thumbnail-nav";var c=[],l=function(){i.element&&(i.element.classList.add("pswp--has-thumbnail-nav"),i.element.style.setProperty("--pswp-thumbnail-nav-height","".concat(n.offsetHeight,"px")))},d=[];d=r?bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"][data-pswp-src]')):e.querySelectorAll("a[data-pswp-src]");var u=[];d.forEach(function(e){if(!e.parentNode.classList.contains("swiper-slide-duplicate")){var t=e.getAttribute("href");t&&!u.includes(t)&&u.push(t)}}),u.forEach(function(e,t){var n=document.createElement("img");n.src=e,n.dataset.index=t,c.push(n);var r=a.getAttribute("data-lightbox-thumbnail-size");r&&(n.style.width=isNaN(r)?r:r+"px"),s.appendChild(n)}),n.appendChild(s),l();var p=new ResizeObserver(l);p.observe(n),c.forEach(function(e){e.addEventListener("load",l)}),i.on("resize",l),i.on("destroy",function(){p.disconnect(),c.forEach(function(e){e.removeEventListener("load",l)})}),s.addEventListener("click",function(e){var n=parseInt(e.target.getAttribute("data-index"));if(Number.isInteger(n)){if(s.setAttribute("data-active-index",n),null!=o&&o.loop&&(n+=2),t.classList.contains("brxe-carousel")){var r=t.getAttribute("data-script-id"),a=bricksData.swiperInstances[r].slides.map(function(e,t){return{slide:e,index:t,pswpIndex:Number(e.dataset.swiperSlideIndex)}}).filter(function(e){return!e.slide.classList.contains("swiper-slide-duplicate")&&e.pswpIndex===n});a.length&&(n=a[0].index)}i.goTo(n)}})}})}),u.on("change",function(){var e=document.querySelector(".pswp__thumbnail-nav");if(e){var t=e.querySelector(".active");t&&t.classList.remove("active");var n=u.pswp.currSlide.data.element.dataset.pswpIndex||u.pswp.currIndex;if(t=e.querySelector('img[data-index="'.concat(n,'"'))){t.classList.add("active");var r=t.getBoundingClientRect(),i=e.offsetWidth/2-t.offsetLeft-r.width/2;i+=(window.innerWidth-e.offsetWidth)/2,e.style.transform="translateX("+i+"px)"}}})),u.on("itemData",function(t){var n=document.querySelector(".brx .pswp__container"),r=e.getAttribute("data-pswp-video-url"),i=e.getAttribute("data-pswp-width"),o=e.getAttribute("data-pswp-height"),a=1==e.getAttribute("data-no-controls")?0:1,s=1==e.getAttribute("data-muted");if(i&&(i.includes("%")||i.includes("vw"))&&(i=window.innerWidth*(parseInt(i)/100)),o&&(o.includes("%")||o.includes("vh"))&&(o=window.innerHeight*(parseInt(o)/100)),i||(i=1280),o&&720!=o||(o=Math.round(i/16*9)),!n&&r){var c=bricksGetLightboxVideoNode(r,a,s);t.itemData={html:c.outerHTML,width:i,height:o}}}),u.on("contentAppend",function(e){var t=e.content;if(t.element){var n=t.element.querySelector("video");n&&n.play()}}),t.classList.contains("brxe-carousel")){var b,v=t.getAttribute("data-script-id");null!==(b=bricksData.swiperInstances)&&void 0!==b&&null!==(b=b[v])&&void 0!==b&&b.loopedSlides&&(u.addFilter("numItems",function(e,t){if(t.gallery){var n=0;t.gallery.classList.contains("brxe-carousel")&&(n=t.gallery.querySelectorAll(".swiper-slide-duplicate").length),e=e>n?e-n:e}return e}),u.addFilter("clickedIndex",function(e,t){var n=t.target.closest(".swiper-slide");if(n){var r=bricksData.swiperInstances[v].slides.map(function(e,t){return{slide:e,index:t}}
97).filter(Boolean);if(r.length){var i=parseInt(n.dataset.swiperSlideIndex),o=r.filter(function(e){return e.slide.dataset.swiperSlideIndex==i});o.length&&(e=o[0].index)}}return e}))}e.bricksPhotoswipe=u,u.init()}});function bricksPhotoswipe(){bricksPhotoswipeFn.run()}function bricksGetLightboxVideoNode(e,t,n){if(e){hasContent=!0;var r=!1;if(-1!==e.indexOf("youtube.com")||-1!==e.indexOf("youtu.be")){r=!0;var i=bricksGetYouTubeVideoLinkData(e);if(e=i.url,i.id){var o=-1!==e.indexOf("?")?"&":"?";e+=o+"autoplay=1",e+="&rel=0",t||(e+="&controls=0"),n&&(e+="&mute=1")}}if(-1!==e.indexOf("vimeo.com"))-1!==e.indexOf("/progressive_redirect/")?r=!1:(r=!0,-1===e.indexOf("player.vimeo.com/video")&&(e=e.replace("vimeo.com","player.vimeo.com/video")),e+="?autoplay=1",t||(e+="&controls=0"));if(r){var a=document.createElement("iframe");return a.setAttribute("src",e),a.setAttribute("allow","autoplay"),a.setAttribute("allowfullscreen",1),a}var s=document.createElement("video");return s.setAttribute("src",e),t&&s.setAttribute("controls",1),s.setAttribute("playsinline",1),s}}var bricksAccordionFn=new BricksFunction({parentNode:document,selector:".brxe-accordion, .brxe-accordion-nested",forceReinit:!0,eachElement:function(e){var t,n,r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.display="block",t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(t.offsetHeight,"px"),t.offsetHeight,t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0;var r=t.parentNode;r.classList.remove("brx-open"),window.setTimeout(function(){t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),document.dispatchEvent(new CustomEvent("bricks/accordion/close",{detail:{elementId:e.getAttribute("data-script-id"),closeItem:r}}))},n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"none"===window.getComputedStyle(t).display?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.removeProperty("display");var r=window.getComputedStyle(t).display;"none"===r&&(r="block"),t.style.display=r;var i=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,t.offsetHeight,t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(i,"px"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom");var o=t.parentNode;o.classList.add("brx-open"),window.setTimeout(function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),document.dispatchEvent(new CustomEvent("bricks/accordion/open",{detail:{elementId:e.getAttribute("data-script-id"),openItem:o}}))},n)}(t,n):r(t,n)},o=function(e){var t;e.classList.add("brx-open");var n=null!==(t=e.querySelector(".accordion-title-wrapper"))&&void 0!==t&&t;n&&n.setAttribute("aria-expanded","true")},a=Array.from(e.children),s=e.hasAttribute("data-transition")?isNaN(e.dataset.transition)?0:e.dataset.transition:200,c=null===(t=e.dataset.scriptArgs)||void 0===t?void 0:t.includes("expandFirstItem"),l=null===(n=e.dataset.scriptArgs)||void 0===n?void 0:n.includes("independentToggle"),d=!!c&&["0"];!1===d&&e.hasAttribute("data-expand-item")&&(d=e.getAttribute("data-expand-item").split(","));var u=window.location.hash||"";(a=a.filter(function(e){return e.classList.contains("brxe-section")||e.classList.contains("brxe-container")||e.classList.contains("brxe-block")||e.classList.contains("brxe-div")||e.classList.contains("accordion-item")}
97)).forEach(function(t,n){d&&d.includes(n.toString())&&o(t);var a=null!=t&&t.id&&!t.id.startsWith("brxe-")?"#".concat(t.id):"";if(a&&a===u&&o(t),!t.classList.contains("listening")){t.classList.add("listening"),t.addEventListener("click",function(t){var n=t.target.closest(".accordion-title-wrapper");if(n){var o=n.parentNode;if(o){var c=o.querySelector(".accordion-content-wrapper");if(c)if(!t.target.closest(".bricks-active-selector-detector")){if(t.stopPropagation(),!l){var d=e.querySelectorAll(":scope > .brx-open");d.length&&d.forEach(function(e){var t=e.querySelector(".accordion-content-wrapper");t&&t!==c&&(r(t,s),t.previousElementSibling.setAttribute("aria-label",window.bricksData.i18n.openAccordion),t.previousElementSibling.setAttribute("aria-expanded","false"))})}var u=!o.classList.contains("brx-open");a&&u?history.replaceState(null,null,a):history.replaceState(null,null," "),i(c,s),o.classList.contains("brx-open")?n.setAttribute("aria-expanded","true"):n.setAttribute("aria-expanded","false")}}}});var c=t.querySelector(".accordion-title-wrapper")||t;"button"===c.getAttribute("role")&&c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c.click())})}})}});function bricksAccordion(){bricksAccordionFn.run()}var bricksAnimatedTypingFn=new BricksFunction({parentNode:document,selector:".brxe-animated-typing",windowVariableCheck:["Typed"],eachElement:function(e){var t,n=e.dataset.scriptId;try{t=JSON.parse(e.dataset.scriptArgs)}catch(e){return!1}var r=e.querySelector(".typed");if(r&&(window.bricksData.animatedTypingInstances[n]&&!e.closest(".brxe-slider-nested.splide")&&window.bricksData.animatedTypingInstances[n].destroy(),t.hasOwnProperty("strings")&&t.strings&&(!Array.isArray(t.strings)||t.strings.toString()))){Array.isArray(t.strings)&&(t.strings=t.strings.map(function(e){return e.replace(/&/g,"&amp;")})),window.bricksData.animatedTypingInstances[n]=new Typed(r,t);var i=e.closest(".brx-popup:not([data-popup-ajax])");i&&document.addEventListener("bricks/popup/open",function(e){e.detail.popupElement===i&&window.bricksData.animatedTypingInstances[n].reset()})}}});function bricksAnimatedTyping(){bricksAnimatedTypingFn.run()}var bricksAudioFn=new BricksFunction({parentNode:document,selector:".brxe-audio",windowVariableCheck:["MediaElementPlayer"],eachElement:function(e){var t=e.querySelector("audio");if(t)new MediaElementPlayer(t)}});function bricksAudio(){bricksAudioFn.run()}var bricksPostReadingTimeFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-time",eachElement:function(e){var t=e.getAttribute("data-wpm"),n=e.getAttribute("data-cpm");if(t||n){var r=e.dataset.contentSelector||".brxe-post-content",i=e.closest("[data-query-loop-index]"),o=i?i.querySelector(r):document.querySelector(r);if(o||(o=document.querySelector("#brx-content")),o){var a,s=e.getAttribute("data-prefix")||"",c=e.getAttribute("data-suffix")||"",l=o.textContent,d=1.5,u=2.5;if(n){var p=l.replace(/\s+/g,"").length;a=Math.ceil(p/parseInt(n))}else{var b=function(e){var t,n=0,r=0,i="",o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=v(a);"chinese"===s?n++:"japanese"===s?r++:i+=a}}catch(e){o.e(e)}finally{o.f()}var c=n/d,l=r/u;return i=function(e,t){var n=new RegExp("\\S{".concat(15,",}"),"g");return e.replace(n,function(e){return e.match(new RegExp(".{1,".concat(t,"}"),"g")).join(" ")})}(i,5),c+l+i.split(/\s+/).filter(function(e){return e.length>0}).length}(l);a=Math.ceil(b/parseInt(t))}e.textContent=s+a+c}}function v(e){return/[\u4e00-\u9fa5]/.test(e)?"chinese":/[\u3040-\u30FF]/.test(e)?"japanese":"other"}}});function bricksPostReadingTime(){bricksPostReadingTimeFn.run()}var bricksCountdownFn=new BricksFunction({parentNode:document,selector:".brxe-countdown",eachElement:function(e){countdown=function(e,t,n){var r=6e4*(("+"===t.timezone[3]?1:-1)*(60*parseInt(t.timezone.substring(4,6))+parseInt(t.timezone.substring(7,9)))),i=6e4*-(new Date).getTimezoneOffset(),o=t.date.replace(" ","T"),a=new Date(o).getTime()+i-r-(new Date).getTime();if(a<=0){if(clearInterval(e.dataset.bricksCountdownId),"hide"===t.action)return void(e.innerHTML="");if("text"===t.action)return void(e.innerHTML=t.actionText)}n&&(e.innerHTML="",t.fields.forEach(function(t){if(t.format){var n=document.createElement("div");if(n.classList.add("field"),t.prefix){var r=document.createElement("span");r.classList.add("prefix"),r.innerHTML=t.prefix,n.appendChild(r)}var i=document.createElement("span");if(i.classList.add("format"),n.appendChild(i),t.suffix){var o=document.createElement("span");o.classList.add("suffix"),o.innerHTML=t.suffix,n.appendChild(o)}e.appendChild(n)}}));var s=bricksQuerySelectorAll(e,".field"),c=Math.floor(a/864e5),l=Math.floor(a%864e5/36e5),d=Math.floor(a%36e5/6e4),u=Math.floor(a%6e4/1e3);t.fields.forEach(function(e,t){if(e.format&&s[t]){var n=e.format.toLowerCase();n.includes("%d")?(e.format.includes("%D")&&c<=9&&(c="0".concat(c)),s[t].querySelector(".format").innerHTML=n.replace("%d",a<=0?0:c)):n.includes("%h")?(e.format.includes("%H")&&l<=9&&(l="0".concat(l)),s[t].querySelector(".format").innerHTML=n.replace("%h",a<=0?0:l)):n.includes("%m")?(e.format.includes("%M")&&d<=9&&(d="0".concat(d)),s[t].querySelector(".format").innerHTML=n.replace("%m",a<=0?0:d)):n.includes("%s")&&(e.format.includes("%S")&&u<=9&&(u="0".concat(u)),s[t].querySelector(".format").innerHTML=n.replace("%s",a<=0?0:u))}})};var t=e.dataset.bricksCountdownOptions;try{t=JSON.parse(t)}catch(e){return!1}if(t.hasOwnProperty("date")&&t.hasOwnProperty("fields")){var n=e.dataset.bricksCountdownId;n&&clearInterval(n),countdown(e,t,!0),n=setInterval(countdown,1e3,e,t,!1),e.dataset.bricksCountdownId=n}}});function bricksCountdown(){bricksCountdownFn.run()}var bricksCounterFn=new BricksFunction({parentNode:document,selector:".brxe-counter",subscribeEvents:["bricks/popup/open","bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"],forceReinit:function(e,t){return e.closest(".brx-popup")},eachElement:function(e){var t,n=e.dataset.bricksCounterOptions;try{n=JSON.parse(n)}catch(e){return!1}var r=e.querySelector(".count"),i=n.hasOwnProperty("countFrom")?parseInt(n.countFrom):0,o=n.hasOwnProperty("countTo")?parseInt(n.countTo):100,a=n.hasOwnProperty("duration")?parseInt(n.duration):1e3,s=null===(t=n)||void 0===t?void 0:t.separator;a<500&&(a=500);var c=a/(o-i),l=1;c<16&&(l=Math.ceil(16/c),c=16);var d=function(){var e=r.innerText.replace(/\D/g,""),t=(e=isNaN(e)?i:parseInt(e))+l<o?e+l:o;if(e>=o)return clearInterval(r.dataset.counterId),void delete r.dataset.counterId;
97n.thousands&&s?r.innerText=t.toLocaleString("en-US").replaceAll(",",s):n.thousands?r.innerText=t.toLocaleString():r.innerText=t},u=function(){r.innerText=i,null==r.dataset.counterId&&(r.dataset.counterId=setInterval(d,c))},p=r.closest(".brx-popup");p?p.classList.contains("hide")||u():new BricksIntersect({element:e,callback:u})},listenerHandler:function(e){var t;if(null!=e&&e.type)if("bricks/popup/open"===e.type){var n={parentNode:null!==(t=e.details)&&void 0!==t&&t.popupElement?e.details.popupElement:document};bricksCounterFn.run(n)}else bricksCounterFn.run()}});function bricksCounter(){bricksCounterFn.run()}var bricksTableOfContentsFn=new BricksFunction({parentNode:document,selector:".brxe-post-toc",forceReinit:!0,eachElement:function(e){if(null!==e.offsetParent&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))n(e);else{var t=new IntersectionObserver(function(r){r.forEach(function(r){r.isIntersecting&&(n(e),t.disconnect())})},{threshold:.1});t.observe(e)}function n(e){window.tocbot&&window.tocbot.destroy();var t=e.dataset.scriptId,n=e.dataset.contentSelector||".brxe-post-content",r=document.querySelector(n);if(r||(r=document.querySelector("#brx-content"))&&(n="#brx-content"),r){var i=e.dataset.headingSelectors||"h2, h3",o=r.querySelectorAll(i),a={};o.forEach(function(e){if(!e.id||a[e.id]){var n=function(e,t){var n=e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[!@#$%^&*()=:;,.„“"'`]/gi,"").replace(/\//gi,"-").split(" ").join("-");if(/^\d/.test(n))return"".concat(t,"-").concat(n);return n}(e.textContent,t);a[n]?(a[n]++,n="".concat(n,"-").concat(a[n])):a[n]=1,e.id=n}else a[e.id]=1});var s=parseInt(e.dataset.headingsOffset)||0,c=e.hasAttribute("data-smooth-scroll"),l={tocSelector:'.brxe-post-toc[data-script-id="'.concat(t,'"]'),contentSelector:n,headingSelector:i,ignoreSelector:e.dataset.ignoreSelector||".toc-ignore",hasInnerContainers:!0,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:e.dataset.collapseInactive?0:6,scrollSmooth:s,scrollSmoothDuration:c&&s?420:0,scrollSmoothOffset:s?-s:0,headingsOffset:s,throttleTimeout:0,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,orderedList:!1,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0};window.tocbot.init(l)}}}});function bricksTableOfContents(){bricksTableOfContentsFn.run()}var bricksFormFn=new BricksFunction({parentNode:document,selector:".brxe-form",eachElement:function(e){var t=e.getAttribute("data-element-id"),n="true"===e.getAttribute("data-validate-all-fields"),r=JSON.parse(e.getAttribute("data-validation-disabled-on"))||[];function i(e,t){e.addEventListener("dragstart",function(t){e.classList.add("dragging"),e.style.opacity="0.5",t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/html",e.innerHTML)}),e.addEventListener("dragend",function(n){e.style.opacity="1",e.classList.remove("dragging"),function(e){var t=e.parentNode.querySelector('input[type="hidden"]');if(!t)return;var n=e.querySelectorAll(".image-preview"),r=[];n.forEach(function(e){var t=e.querySelector("img");t&&t.dataset.attachmentId&&r.push(t.dataset.attachmentId)}),t.value=r.join(",")}(t)}),e.addEventListener("dragover",function(n){n.preventDefault(),n.dataTransfer.dropEffect="move";var r=t.querySelector(".dragging");if(r&&r!==e){var i=Array.from(t.querySelectorAll(".image-preview"));i.indexOf(r)<i.indexOf(e)?t.insertBefore(r,e.nextSibling):t.insertBefore(r,e)}}),e.addEventListener("drop",function(e){e.preventDefault(),e.stopPropagation()})}function o(e,t){e.addEventListener("click",function(n){n.preventDefault();var i,o=e.dataset.attachmentId,a=e.closest(".image-preview"),s=t.classList.contains("gallery-preview");if(i=s?t.parentNode.querySelector('input[type="hidden"]'):a.parentNode.querySelector('input[type="hidden"]'),s&&i){var c=i.value,l=c?c.split(",").map(function(e){return e.trim()}):[];l=l.filter(function(e){return e!==o}),i.value=l.join(","),!i.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(i)}else i&&(i.value="",!i.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(i));a&&a.remove()})}function a(e,t,n){t.on("select",function(){var a=t.state().get("selection").map(function(e){return e.toJSON()});if(n){var s=e.parentNode.querySelector(".gallery-preview"),c=e.parentNode.querySelector('input[type="hidden"]');if(!s)return;s.querySelectorAll(".image-preview").forEach(function(e){return e.remove()});var l=[];a.forEach(function(e){var t,n=function(e,t){var n=document.createElement("div");n.classList.add("image-preview");var r=t.classList.contains("gallery-preview");r&&(n.setAttribute("draggable","true"),n.style.cursor="move");var a=document.createElement("img");a.src=e.url,a.alt=e.alt||"",a.title=e.title||"",a.style="max-height: 150px",a.dataset.attachmentId=e.id;var s=document.createElement("button");return s.type="button",s.classList.add("choose-files","remove"),s.dataset.action="media-library",s.dataset.attachmentId=e.id,s.textContent=window.bricksData.i18n.remove,o(s,t),n.appendChild(a),n.appendChild(s),r&&i(n,t),n}(_objectSpread(_objectSpread({},e),{},{url:(null===(t=e.sizes)||void 0===t||null===(t=t.thumbnail)||void 0===t?void 0:t.url)||e.url}),s);s.appendChild(n),l.push(String(e.id))}),c&&(c.value=l.join(","),!c.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(c))}else{var d=e.parentNode.querySelector(".image-preview"),u=e.parentNode.querySelector('input[type="hidden"]');if(!a[0])return;var p=a[0];if(d){var v=d.querySelector("img");v&&v.remove();var f=document.createElement("img");f.src=p.url,f.alt=p.alt||"",f.title=p.title||"",f.style="max-height: 150px",d.insertBefore(f,d.firstChild)}u&&(u.value=p.id,!u.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(u))}})}bricksQuerySelectorAll(e,'input[type="checkbox"]').forEach(function(t){t.required&&t.addEventListener("click",function(n){var r=t.getAttribute("name"),i=bricksQuerySelectorAll(e,'input[name="'.concat(r,'"]')),o=!1;
97i.forEach(function(e){!0===e.checked&&(o=!0)}),o?i.forEach(function(e){e.required=!1}):i.forEach(function(e){e.required=!0})})}),bricksQuerySelectorAll(e,".choose-files.image").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=e.classList.contains("multiple"),r=window.wp.media({multiple:n,library:{type:"image"}});a(e,r,n);var i=e.parentNode.querySelector('input[type="hidden"]');if(i&&i.value){var o=i.value.split(",").map(function(e){return e.trim()});o.length>0&&r.on("open",function(){var e=r.state().get("selection");o.forEach(function(t){var n=wp.media.attachment(t);n.fetch(),e.add(n)})})}r.open()})}),bricksQuerySelectorAll(e,".choose-files.remove").forEach(function(e){var t=e.closest(".gallery-preview")||e.closest(".image-preview");if(t){if(!e.dataset.attachmentId){var n=e.parentNode.querySelector("img");n&&n.dataset.attachmentId&&(e.dataset.attachmentId=n.dataset.attachmentId)}o(e,t)}}),bricksQuerySelectorAll(e,".gallery-preview").forEach(function(e){e.querySelectorAll(".image-preview").forEach(function(t){t.setAttribute("draggable","true"),t.style.cursor="move",i(t,e)})});var s=e.querySelectorAll('input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea');s.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")||e.addEventListener("input",window.bricksUtils.debounce(function(){d(e)},300)),r.includes("blur")||e.addEventListener("blur",window.bricksUtils.debounce(function(){d(e)},300)))}),e.querySelectorAll('input[type="checkbox"], input[type="radio"]').forEach(function(e){var t=e.closest(".form-group");t&&t.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){u(e)}))});var c=e.querySelectorAll("select");function l(e,t,n){var r=e.querySelector(".form-group-error-message");r||((r=document.createElement("div")).classList.add("form-group-error-message"),e.appendChild(r)),t&&n?(r.innerText=n,r.classList.add("show")):(r.innerText="",r.classList.remove("show"))}function d(e){var t=e.value.trim(),n=e.getAttribute("data-error-message"),r=e.closest(".form-group"),i=!1,o=e.hasAttribute("required")||"true"===e.dataset.wasRequired;if(o&&!t&&(i=!0),"number"===e.type){var a=parseFloat(e.getAttribute("min")),s=parseFloat(e.getAttribute("max")),c=parseFloat(t);(null!==a&&c<a||null!==s&&c>s)&&(i=!0)}return"email"===e.type&&(i=!function(e){var t=e.split("@")[0],n=/^\.|\.$|\.\./.test(t);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)&&!n}(t)),"url"===e.type&&(i=!/^(https?:\/\/)?([\w.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/.test(t)),o||""!=t||(i=!1),l(r,i,n),!i}function u(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.type,r=e.getAttribute("name"),i=t.querySelectorAll('input[type="'.concat(n,'"][name="').concat(r,'"]')),o=!1;i.forEach(function(e){e.checked&&(o=!0)});var a=t.getAttribute("data-error-message"),s=!1;return e.hasAttribute("required")&&!o&&(s=!0),l(t,s,a),!s}function p(e,t){var n=e.closest(".form-group");if(!n)return!0;var r=e.getAttribute("data-error-message"),i=!1;if(e.hasAttribute("required")||"true"===e.dataset.required){var o=e.getAttribute("name"),a=e.files&&e.files.length>0,s=t.hasOwnProperty(o)&&t[o].length>0,c=n.querySelector('input[name^="bricks_form_existing_files"]');a||s||c||(i=!0)}return l(n,i,r),!i}function b(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.getAttribute("data-error-message"),r=!1;e.hasAttribute("required")&&(e.value.trim()||(r=!0));return l(t,r,n),!r}c.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){return d(e)}))}),e.querySelectorAll(".password-toggle").forEach(function(e){var t=e.previousElementSibling;t&&t.type.match(/password|text/)&&e.addEventListener("click",function(){var n="password"===t.type;t.type=n?"text":"password",e.setAttribute("aria-label",n?window.bricksData.i18n.hidePassword:window.bricksData.i18n.showPassword),e.querySelector(".show-password").classList.toggle("hide"),e.querySelector(".hide-password").classList.toggle("hide")})}),bricksQuerySelectorAll(e,".flatpickr").forEach(function(e){var t=e.dataset.bricksDatepickerOptions;t&&((t=JSON.parse(t)).disableMobile=!0,t.onReady=function(e,t,n){if(n.altInput){var r=n.altInput.previousElementSibling?n.altInput.previousElementSibling.getAttribute("aria-label"):"Date";n.altInput.setAttribute("aria-label",r||"Date")}},flatpickr(e,t))});var v={},f=bricksQuerySelectorAll(e,"input[type=file]");f.forEach(function(t){var n=t.getAttribute("data-files-ref"),i=t.getAttribute("data-maxsize")||!1,o=t.getAttribute("data-limit")||!1;i=!!i&&1024*parseInt(i)*1024,!t.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||t.addEventListener("change",function(){p(t,v)}),t.addEventListener("change",function(a){var s=a.target.files,c=s.length,l=t.getAttribute("name"),d=0;if(o&&(d=e.querySelectorAll('.file-result.existing-file[data-files-ref="'.concat(n,'"]')).length),c){for(var u=e.querySelector('.file-result[data-files-ref="'.concat(n,'"]')),b=function(){var e=s[f],n=!1,a=u.cloneNode(!0),c=v.hasOwnProperty(l)?v[l].length:0;if(o&&c+d>=o&&(n="limit"),i&&e.size>i&&(n="size"),a.classList.add("show"),n){a.classList.add("danger"),a.querySelector(".text").remove(),a.querySelector(".remove").remove();var b=a.querySelector("svg"),m=a.getAttribute("data-error-".concat(n)).replace("%s",e.name);a.insertAdjacentHTML("afterbegin",m),b.addEventListener("click",function(){a.remove()})}else{v.hasOwnProperty(l)||(v[l]=[]),v[l].push(e);var g=a.querySelector(".text"),y=a.querySelector(".remove");a.querySelector("svg").remove(),g.innerHTML=e.name,y.setAttribute("data-name",e.name),y.setAttribute("data-field",l),y.addEventListener("click",function(e){for(var n=e.target.getAttribute("data-name"),i=e.target.getAttribute("data-field"),o=v[i],s=0;s<o.length;s++)if(o[s].name===n){v[l].splice(s,1);break}a.remove();for(var c=new DataTransfer,d=0;d<t.files.length;d++){var u=t.files[d];u.name!==n&&c.items.add(u)}t.files=c.files,!t.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||p(t,v)})}u.parentNode.insertBefore(a,u.nextSibling)},f=0;f<c;f++)b();var m=new DataTransfer;v.hasOwnProperty(l)&&v[l].forEach(function(e){m.items.add(e)}),t.files=m.files}})}),bricksQuerySelectorAll(e,".file-result.existing-file").forEach(function(t){var n=t.querySelector(".remove");n&&n.addEventListener("click",function(){var i=n.getAttribute("data-field"),o=n.getAttribute("data-existing-file-value"),a=document.createElement("input");a.type="hidden",a.name="bricks_form_removed_files[".concat(i,"][]"),a.value=o,e.appendChild(a),t.remove();var s=t.getAttribute("data-files-ref"),c=e.querySelector('input[type=file][data-files-ref="'.concat(s,'"]'));c&&"true"===c.dataset.required&&!e.querySelector('.file-result.existing-file[data-files-ref="'.concat(s,'"]'))&&c.setAttribute("required",""),!c||!c.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||p(c,v)})}),e.addEventListener("submit",function(r){var i;if(r.preventDefault(),bricksIsFrontend){for(var o=!0,a=0,l=[].concat(_toConsumableArray(s),_toConsumableArray(c));a<l.length;a++){var m=l[a];if(m.getAttribute("data-error-message")&&bricksIsFrontend){var g=d(m);if(!(o=o&&g)&&!n)break}}if(o||n)e.querySelectorAll(".form-group[data-error-message]").forEach(function(e){var t=e.querySelector('input[type="checkbox"], input[type="radio"]');if(t){var n=u(t);o=o&&n}});if((o||n)&&f.forEach(function(e){if(e.getAttribute("data-error-message")){var t=p(e,v);o=o&&t}}),o||n)e.querySelectorAll(".form-group").forEach(function(e){var t=e.querySelector('input[type="hidden"][data-error-message]');if(t){var n=b(t);o=o&&n}});if(o){var y=e.querySelector("[data-hcaptcha-widget-id]"),k=y?y.getAttribute("data-hcaptcha-widget-id"):"";if("function"==typeof(null===(i=window)||void 0===i||null===(i=i.hcaptcha)||void 0===i?void 0:i.execute)&&document.querySelector('.h-captcha[data-size="invisible"]'))hcaptcha.execute(k,{async:!0}).then(function(){bricksSubmitForm(t,e,v,null)}
97).catch(function(e){console.warn(e)});else{var w=e.querySelector(".cf-turnstile");if(w&&void 0!==window.turnstile){var h,x=bricksGetTurnstileWidgetReference(w),S=w.querySelector('input[name="cf-turnstile-response"]'),L=function(){window.bricksPendingTurnstileSubmission={elementId:t,form:e,files:v}};if("true"===(null===(h=e.dataset)||void 0===h?void 0:h.brxTurnstileRefresh))return e.dataset.brxTurnstileRefresh="false",S&&(S.value=""),L(),void(x&&(turnstile.reset(x),"function"==typeof turnstile.execute&&turnstile.execute(x)));var E=x?turnstile.getResponse(x):null;if(E||(E=S?S.value:null),!E)return void L()}var I=document.getElementById("recaptcha-".concat(t)),A=e.querySelector(".recaptcha-error");if(I){var q=I.getAttribute("data-key");if(q)try{grecaptcha.ready(function(){try{grecaptcha.execute(q,{action:"bricks_form_submit"}).then(function(n){A.classList.remove("show"),bricksSubmitForm(t,e,v,n)}).catch(function(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)})}catch(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}})}catch(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}else A.classList.add("show")}else bricksSubmitForm(t,e,v,null)}}}})}});function bricksForm(){bricksFormFn.run()}function bricksGetTurnstileWidgetReference(e){if(!e)return null;var t=e.getAttribute("data-widget-id")||e.getAttribute("data-turnstile-widget-id");if(!t){var n=e.querySelector("iframe");null!=n&&n.id&&(t=n.id)}if(!t){var r=e.getAttribute("id");r&&(t="#".concat(r))}return t}function bricksSubmitForm(e,t,n,r,i){var o,a,s;if(t.action&&t.action.includes("action=postpass"))t.submit();else if("true"!==(null===(o=t.dataset)||void 0===o?void 0:o.submitting)){var c=t.querySelector("button[type=submit]");c.classList.add("sending"),c.disabled=!0,t.dataset.submitting="true";var l=t.dataset.loopObjectId?t.dataset.loopObjectId:window.bricksData.postId,d=new FormData(t);d.append("action","bricks_form_submit"),d.append("loopId",l),d.append("postId",window.bricksData.postId),d.append("formId",e),d.append("recaptchaToken",r||""),d.append("nonce",window.bricksData.formNonce),d.append("referrer",location.toString()),t.dataset.formQueryContext&&t.dataset.formQueryNonce&&(d.append("formQueryContext",t.dataset.formQueryContext),d.append("formQueryNonce",t.dataset.formQueryNonce));var u=null!==(a=t.getAttribute("data-component-id"))&&void 0!==a&&a;u&&d.append("componentId",u);var p=JSON.parse(t.getAttribute("data-notice")),b={};window.location.search.substring(1).split("&").forEach(function(e){var t=e.split("=");b[t[0]]=decodeURIComponent(t[1])}),d.append("urlParams",JSON.stringify(b));var v=t.getAttribute("data-global-id");v&&d.append("globalId",v);var f=t.getAttribute("data-lang");f&&d.append("lang",f);var m=(null===(s=window.bricksData)||void 0===s?void 0:s.language)||!1;m&&d.append("langCode",m);var g=function(e){n[e].forEach(function(t){d.append("".concat(e,"[]"),t,t.name)})};for(var y in n)g(y);document.dispatchEvent(new CustomEvent("bricks/form/submit",{detail:{elementId:e,formData:d}}));var k=window.bricksData.ajaxUrl,w=new XMLHttpRequest;w.open("POST",k,!0),w.onreadystatechange=function(){var o,a,s,l,u,b,v,f=function(e){try{return JSON.parse(e)}catch(e){return null}}(w.response);if(window.bricksData.debug&&console.warn("bricks_form_submit",w,f),f||(c.classList.remove("sending"),c.disabled=!1,t.dataset.submitting="false"),f&&4==(null==w?void 0:w.readyState)){var m,g,y;if("invalid_nonce"===(null==f||null===(o=f.data)||void 0===o?void 0:o.code)){if(!i)return t.dataset.submitting="false",void bricksRegenerateNonceAndResubmit(e,t,n,r)}else f.success&&"success"===(null===(g=f.data)||void 0===g?void 0:g.type)?m="bricks/form/success":f.success&&"error"!==(null===(y=f.data)||void 0===y?void 0:y.type)||(m="bricks/form/error");m&&document.dispatchEvent(new CustomEvent(m,{detail:{elementId:e,formData:d,res:f}})),!f.success||"mailchimp"!==(null===(a=f.data)||void 0===a?void 0:a.action)&&"sendgrid"!==(null===(s=f.data)||void 0===s?void 0:s.action)||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"bricksNewsletterSignup"}));var k,h=!0;if(f.success&&null!==(l=f.data)&&void 0!==l&&l.redirectTo)h=!1,setTimeout(function(){window.location.href=f.data.redirectTo},parseInt(null===(k=f.data)||void 0===k?void 0:k.redirectTimeout)||
970);else f.success&&null!==(u=f.data)&&void 0!==u&&u.refreshPage&&(h=!1,setTimeout(function(){window.location.reload()},1e3));t.querySelector(".message")&&t.querySelector(".message").remove();var x=document.createElement("div");x.classList.add("message");var S,L=document.createElement("div");if(L.classList.add("text"),null!==(b=f.data)&&void 0!==b&&b.message)if(null!==(S=f.data.message)&&void 0!==S&&S.errors){var E=f.data.message.errors;Object.keys(E).forEach(function(e){L.innerHTML+=E[e][0]+"<br>"})}else L.innerHTML=f.data.message;if(x.appendChild(L),null!==(v=f.data)&&void 0!==v&&v.info){var I=document.createElement("div"),A=document.createElement("div");A.innerHTML=f.data.info.join("<br>"),x.appendChild(I),I.appendChild(A)}else x.classList.add(f.data.type);if(p){var q=function(){x.classList.add("closing"),setTimeout(function(){null==x||x.remove()},200)};if(p.closeButton){var T=document.createElement("button");T.classList.add("close"),T.innerHTML='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke-linecap="round" stroke-width="2" stroke="currentcolor" fill="none" stroke-linejoin="round"><path d="M0.5,0.5l23,23"></path><path d="M23.5,0.5l-23,23"></path></g><path fill="none" d="M0,0h24v24h-24Z"></path></svg>',x.appendChild(T),T.addEventListener("click",function(e){e.preventDefault(),q()})}var F=null==p?void 0:p.closeAfter;F&&setTimeout(function(){q()},parseInt(F))}if(t.appendChild(x),c.classList.remove("sending"),h&&(c.disabled=!1,t.dataset.submitting="false"),f.success){var C;if(0!=(null==f||null===(C=f.data)||void 0===C?void 0:C.reset)){for(var P in t.reset(),n)delete n[P];var D=bricksQuerySelectorAll(t,".file-result.show");null!==D&&D.forEach(function(e){e.remove()}),bricksQuerySelectorAll(t,".image-preview .remove").forEach(function(e){e.click()})}if(window.top!=window.self&&!t.querySelector('input[name="brx_pp_temp_id"]')){var _=window.top.document.querySelector("button.wp-auth-check-close");_&&_.click()}}else{var N=t.querySelector(".cf-turnstile"),O=bricksGetTurnstileWidgetReference(N),M=N?N.querySelector('input[name="cf-turnstile-response"]'):null;N&&void 0!==window.turnstile&&O&&(turnstile.reset(O),t.dataset.brxTurnstileRefresh="true",M&&(M.value=""));var R=bricksQuerySelectorAll(t,".file-result.show.danger");null!==R&&R.forEach(function(e){e.remove()})}}},w.send(d)}}function bricksRegenerateNonceAndResubmit(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl+"?t="+(new Date).getTime(),!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){var o=i.responseText;window.bricksData.formNonce=o,bricksSubmitForm(e,t,n,r,!0)}},i.send("action=bricks_regenerate_form_nonce")}window.bricksTurnstileCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}},window.bricksTurnstileErrorCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}};var bricksTinyMCEFn=new BricksFunction({parentNode:document,selector:".brxe-form .form-field-richtext",windowVariableCheck:["tinymce"],eachElement:function(e){var t=e.getAttribute("data-tinymce-settings");t=t?JSON.parse(t):{};var n=window.tinymce8||window.tinymce;e.hasAttribute("required")&&(e.removeAttribute("required"),e.dataset.wasRequired="true"),n.init(_objectSpread(_objectSpread({},t),{},{selector:"#".concat(e.id),suffix:".min",license_key:"gpl",setup:function(t){t.ui.registry.addButton("bricks_add_media",{text:"Add Media",icon:"image",onAction:function(){var e=window.wp.media({title:"Insert Media",button:{text:"Insert"},multiple:!1});e.on("select",function(){var n=e.state().get("selection").first().toJSON();t.insertContent('<img src="'.concat(n.url,'" alt="').concat(n.alt,'" title="').concat(n.title,'" />'))}),e.open()}});var n=e.getAttribute("data-error-message");t.on("change",window.bricksUtils.debounce(function(){t.save(),n&&e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),n&&(t.on("keyup",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),t.on("blur",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("blur",{bubbles:!0}))},300)))}}))}});function bricksTinyMCE(){bricksTinyMCEFn.run()}var bricksIsotopeFn=new BricksFunction({parentNode:document,selector:".bricks-layout-wrapper.isotope",forceReinit:!0,windowVariableCheck:["Isotope"],eachElement:function(e){var t=!1,n="";if(e.classList.contains("bricks-masonry"))t=e.getAttribute("data-script-id"),n="masonry-element";else if(e.classList.contains("brxe-image-gallery"))t=e.getAttribute("data-script-id"),n="image-gallery";else{var r;t=null===(r=e.closest(".brxe-posts"))||void 0===r?void 0:r.getAttribute("data-script-id"),n="posts"}if(t&&n){if(bricksIsFrontend&&window.bricksData.isotopeInstances[t]){var i;if(null!==(i=window.bricksData.isotopeInstances[t].element)&&void 0!==i&&i.isConnected)return void bricksUtils.updateIsotopeInstance(t);window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]}else window.bricksData.isotopeInstances[t]&&(window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]);var o={},a=e.getAttribute("data-layout");if("masonry-element"===n){var s,c,l;a="masonry";var d=e.getAttribute("data-brx-masonry-json")||"{}",u={};try{u=JSON.parse(d)}catch(e){console.error("Bricks: Invalid JSON data for Masonry element")}var p=(null===(s=u)||void 0===s?void 0:s.transitionDuration)||"0.4s",b=(null===(c=u)||void 0===c?void 0:c.transitionMode)||"scale";if(o={itemSelector:".bricks-masonry > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)",percentPosition:!0,masonry:{columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer",horizontalOrder:(null===(l=u)||void 0===l?void 0:l.horizontalOrder)||!1},transitionDuration:p},"0s"===p||"0"===p)o.hiddenStyle={opacity:1},o.visibleStyle={opacity:1},o.instantLayout=!0;else switch(b){case"fade":o.hiddenStyle={opacity:0}
97,o.visibleStyle={opacity:1};break;case"slideLeft":o.hiddenStyle={opacity:0,transform:"translateX(-50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"slideRight":o.hiddenStyle={opacity:0,transform:"translateX(50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"skew":o.hiddenStyle={opacity:0,transform:"skew(20deg)"},o.visibleStyle={opacity:1,transform:"skew(0)"}}}else o={itemSelector:".bricks-layout-item",percentPosition:!0},"grid"===a?(o.layoutMode="fitRows",o.fitRows={gutter:".bricks-gutter-sizer"}):"masonry"!==a&&"metro"!==a||(o.masonry={columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer"});var v=new Isotope(e,o);setTimeout(function(){e.classList.remove("isotope-before-init")},250);var f=e.parentNode.querySelector(".bricks-isotope-filters");f&&f.addEventListener("click",function(e){var t=e.target.getAttribute("data-filter"),n=f.querySelector("li.active");t&&bricksIsFrontend&&(n&&n.classList.remove("active"),e.target.classList.add("active"),v.arrange({filter:t}))}),window.bricksData.isotopeInstances[t]={elementId:t,instance:v,layout:a,filters:f,options:o,element:e,elementName:n},bricksUtils.updateIsotopeOnImageLoad(t)}},listenerHandler:function(e){setTimeout(function(){bricksIsotopeFn.run()},100)}});function bricksIsotope(){bricksIsotopeFn.run()}function bricksIsotopeListeners(){document.addEventListener("bricks/tabs/changed",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.activePane)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),document.addEventListener("bricks/accordion/open",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.openItem)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),document.addEventListener("bricks/ajax/nodes_added",function(e){var t,n,r=null==e||null===(t=e.detail)||void 0===t?void 0:t.queryId;if(r){var i,o=window.bricksData.queryLoopInstances[r]||!1;if(o)if((null===(n=o.resultsContainer)||void 0===n||null===(n=n.classList)||void 0===n?void 0:n.contains("bricks-masonry"))||window.bricksData.isotopeInstances[r])if(window.bricksData.isotopeInstances[r])bricksUtils.updateIsotopeInstance(r);else bricksUtils.updateIsotopeInstance(null===(i=o.resultsContainer)||void 0===i?void 0:i.getAttribute("data-script-id"))}}),document.addEventListener("bricks/megamenu/repositioned",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.submenu)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),window.addEventListener("load",function(){bricksIsotope()})}var bricksMapLeafletFn=new BricksFunction({parentNode:document,selector:".brxe-map-leaflet",eachElement:function(e,t){var n=JSON.parse(e.dataset.mapOptions),r=e.dataset.scriptId||e.id||"leaflet-map-".concat(t),i=function(){var e=[];return n.layers.forEach(function(t){var n=t.name,r=t.url,i=_objectWithoutProperties(t,_excluded);e[n]=L.tileLayer(r,i)}),e}(),o=Object.values(i);o.length&&(n.map.layers=o[0]);var a=L.map(e,n.map);o.length>1&&L.control.layers(i).addTo(a),function(){for(var e=0;e<n.markers.length;e++){var t=n.markers[e],r={};t.icon&&(r.icon=L.icon(t.icon));var i=L.marker([t.lat,t.lng],r).addTo(a);t.popupText&&i.bindPopup(t.popupText)}}(),window.bricksData.leafletMapInstances||(window.bricksData.leafletMapInstances={}),window.bricksData.leafletMapInstances[r]=a}});function bricksMapLeaflet(){document.querySelector(".brxe-map-leaflet")&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,r=window.setInterval(function(){window[e]&&(window.clearInterval(r),t(window[e]))},n)}("L",function(){setTimeout(function(){bricksMapLeafletFn.run()},bricksIsFrontend?0:1e3)})}var bricksPieChartFn=new BricksFunction({parentNode:document,selector:".brxe-pie-chart",windowVariableCheck:["EasyPieChart"],eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.getElementsByTagName("canvas");t.length&&t[0].remove();var n=function(t){var n=t.match(/var\((--[^)]+)\)/);if(n){var r=n[1];return getComputedStyle(e).getPropertyValue(r).trim()}return t},r=n(e.dataset.barColor),i=n(e.dataset.trackColor);new EasyPieChart(e,{size:e.dataset.size&&e.dataset.size>0?e.dataset.size:160,lineWidth:e.dataset.lineWidth,barColor:r,trackColor:i,lineCap:e.dataset.lineCap,scaleColor:e.dataset.scaleColor,scaleLength:e.dataset.scaleLength,rotate:0})},threshold:1})}});function bricksPieChart(){bricksPieChartFn.run()}var bricksPricingTablesFn=new BricksFunction({parentNode:document,selector:".brxe-pricing-tables",eachElement:function(e){var t=bricksQuerySelectorAll(e,".tab"),n=bricksQuerySelectorAll(e,".pricing-table");t.forEach(function(e){e.classList.contains("listening")||(e.classList.add("listening"),e.addEventListener("click",function(){e.classList.contains("active")||(n.forEach(function(e){e.classList.toggle("active")}),t.forEach(function(e){e.classList.remove("active")}),e.classList.add("active"))}))})}});function bricksPricingTables(){bricksPricingTablesFn.run()}var bricksPostReadingProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-progress-bar",eachElement:function(e){var t=!!e.dataset.contentSelector&&document.querySelector(e.dataset.contentSelector);window.addEventListener("scroll",function(){var n=window.scrollY,r=document.documentElement.scrollHeight-document.documentElement.clientHeight;if(t){var i=t.getBoundingClientRect();r=i.height,n=i.top>0?0:-i.top}
97e.setAttribute("value",Math.ceil(n/r*100))})}});function bricksPostReadingProgressBar(){bricksPostReadingProgressBarFn.run()}var bricksProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-progress-bar .bar span",eachElement:function(e){new BricksIntersect({element:e,callback:function(){e.dataset.width&&setTimeout(function(){e.style.width=e.dataset.width},"slow")},threshold:1})}});function bricksProgressBar(){bricksProgressBarFn.run()}var bricksSplideFn=new BricksFunction({parentNode:document,selector:".brxe-slider-nested.splide",windowVariableCheck:["Splide"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t,n=bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]);n.forEach(function(e){e.classList.add("splide__slide"),e.dataset.id=e.id});var r=e.dataset.scriptId;window.bricksData.splideInstances.hasOwnProperty(r)&&window.bricksData.splideInstances[r].destroy();var i={};try{(i=JSON.parse(e.dataset.splide)).i18n={prev:window.bricksData.i18n.prevSlide,next:window.bricksData.i18n.nextSlide,first:window.bricksData.i18n.firstSlide,last:window.bricksData.i18n.lastSlide,slideX:window.bricksData.i18n.slideX,pageX:window.bricksData.i18n.slideX,play:window.bricksData.i18n.play,pause:window.bricksData.i18n.pause,carousel:window.bricksData.i18n.splide.carousel,select:window.bricksData.i18n.splide.select,slide:window.bricksData.i18n.splide.slide,slideLabel:window.bricksData.i18n.splide.slideLabel}}catch(e){console.warn("bricksSplide: Error parsing JSON of data-script-args",r)}"auto"===i.direction&&(i.direction="rtl"===document.dir?"rtl":"ltr",e.dataset.splide=JSON.stringify(_objectSpread(_objectSpread({},i),{},{i18n:void 0})));var o=new Splide(e,i);if(o.mount(),null!==(t=i)&&void 0!==t&&t.autoHeight){var a=function(){try{var e,t=null==o||null===(e=o.Components)||void 0===e?void 0:e.Slides;if(!t)return void console.error("Slides component is undefined:",r);var i=t.getAt(o.index),a=null==i?void 0:i.slide;if(!a)return void console.error("Slide is undefined:",r);var s=a.parentElement;if(!s)return void console.error("Parent element is undefined:",r);var c=0;n.forEach(function(e){e.classList.contains("is-visible")&&e.offsetHeight>c&&(c=e.offsetHeight)}),c||(c=a.offsetHeight),s.style.height="".concat(c,"px")}catch(e){console.error("An error occurred while updating the height:",e,r)}};o?(a(),"function"==typeof o.on?(o.on("move resize",a),o.on("moved",a)):console.error("splideInstance.on is not a function")):console.error("splideInstance is undefined")}
97window.bricksData.splideInstances[r]=o,n.forEach(function(t,n){if(t.dataset.id){t.id=t.dataset.id;var r=e.querySelector(".splide__pagination");if(r){var i=r.querySelector("li:nth-child(".concat(n+1,") .splide__pagination__page"));i&&i.setAttribute("aria-controls",t.id)}}if(!t.classList.contains("bricks-lazy-hidden")){var o=t.getAttribute("style")||"";t.dataset.style&&(o+=t.dataset.style,t.setAttribute("style",o))}})}});function bricksSplide(){bricksSplideFn.run()}function bricksSplideListeners(){var e=function(e){var t;if(e){var n=null!==(t=e.matches)&&void 0!==t&&t.call(e,".brxe-slider-nested.splide")?[e]:[];(n=[].concat(_toConsumableArray(n),_toConsumableArray(e.querySelectorAll(".brxe-slider-nested.splide")))).forEach(function(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.scriptId,i=!!r&&(null===(n=window.bricksData)||void 0===n||null===(n=n.splideInstances)||void 0===n?void 0:n[r]);i&&(e.querySelector('iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="youtube"], iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="vimeo"]')||window.requestAnimationFrame(function(){e.isConnected&&i.refresh()}))})}};document.addEventListener("bricks/tabs/changed",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.activePane)}),document.addEventListener("bricks/accordion/open",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.openItem)})}var bricksSwiperFn=new BricksFunction({parentNode:document,selector:".bricks-swiper-container",windowVariableCheck:["Swiper"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t;try{t=JSON.parse(e.dataset.scriptArgs)}catch(n){console.warn("bricksSwiper: Error parsing JSON of data-script-args",e),t={}}var n=e.classList.contains("[class*=brxe-]")?e:e.closest("[class*=brxe-]");if(n){bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]).forEach(function(e){return e.classList.add("swiper-slide")});var r=n.dataset.scriptId,i=window.bricksData.swiperInstances.hasOwnProperty(r)?window.bricksData.swiperInstances[r]:void 0;i&&i.destroy(),t.observer=!1,t.observeParents=!0,t.resizeObserver=!0,t.slidesToShow=t.hasOwnProperty("slidesToShow")?t.slidesToShow:1,t.slidesPerGroup=t.hasOwnProperty("slidesPerGroup")?t.slidesPerGroup:1,t.speed=t.hasOwnProperty("speed")?parseInt(t.speed):300,t.effect=t.hasOwnProperty("effect")?t.effect:"slide",t.spaceBetween=t.hasOwnProperty("spaceBetween")?t.spaceBetween:0,t.initialSlide=t.hasOwnProperty("initialSlide")?t.initialSlide:0,t.keyboard={enabled:bricksIsFrontend,onlyInViewport:!0,pageUpDown:!1},t.watchOverflow=!0,t.hasOwnProperty("effect")&&"flip"===t.effect&&(t.flipEffect={slideShadows:!1}),t.hasOwnProperty("effect")&&"fade"===t.effect&&(t.fadeEffect={crossFade:!0}),t.navigation&&(t.navigation={prevEl:n.querySelector(".bricks-swiper-button-prev"),nextEl:n.querySelector(".bricks-swiper-button-next")}),t.pagination&&(t.pagination={el:n.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},1==t.dynamicBullets&&(delete t.dynamicBullets,t.pagination.dynamicBullets=!0)),t.a11y={prevSlideMessage:window.bricksData.i18n.prevSlide,nextSlideMessage:window.bricksData.i18n.nextSlide,firstSlideMessage:window.bricksData.i18n.firstSlide,lastSlideMessage:window.bricksData.i18n.lastSlide,paginationBulletMessage:window.bricksData.i18n.swiper.paginationBulletMessage,slideLabelMessage:window.bricksData.i18n.swiper.slideLabelMessage},i=new Swiper(e,t),window.bricksData.swiperInstances[r]=i}}});function bricksSwiper(){bricksSwiperFn.run()}function bricksSwiperUpdateBreakpoints(){var e;Object.keys((null===(e=window.bricksData)||void 0===e?void 0:e.swiperInstances)||{}).forEach(function(e){var t=window.bricksData.swiperInstances[e];t&&!t.destroyed&&("function"==typeof t.setBreakpoint&&t.setBreakpoint(),"function"==typeof t.update&&t.update())})}var bricksVideoFn=new BricksFunction({parentNode:document,selector:".brxe-video",eachElement:function(e){if(bricksIsFrontend){var t=function(){var t=e.querySelector(".bricks-video-overlay"),n=e.querySelector(".bricks-video-overlay-icon");t&&t.remove(),n&&n.remove()};e.addEventListener("click",t),e.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||t(),e.querySelector("video")||"Enter"!==n.key&&" "!==n.key||n.preventDefault()})}var n=e.querySelector("video");if(n){if(window.hasOwnProperty("Plyr")){var r,i=e.dataset.scriptId,o=e.querySelector(".bricks-plyr"),a=(null===(r=window.bricksData)||void 0===r||null===(r=r.videoInstances)||void 0===r?void 0:r[i])||void 0;a&&a.destroy(),o&&(a=new Plyr(o)),window.bricksData.videoInstances[i]=a}n.hasAttribute("autoplay")&&n.setAttribute("playsinline",!0),n.addEventListener("play",function(){this.setAttribute("data-is-loaded","true")})}}});function bricksVideo(){bricksVideoFn.run()}function bricksFacebookSDK(){if(document.querySelector(".brxe-facebook-page")){var e=window.bricksData.hasOwnProperty("locale")?window.bricksData.locale:"en_US",t=window.bricksData.hasOwnProperty("facebookAppId")?window.bricksData.facebookAppId:null,n="https://connect.facebook.net/".concat(e,"/sdk.js"),r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e,n=document.createElement("script");!bricksIsFrontend&&null!==(e=window.bricksData)&&void 0!==e&&e.builderCloudflareRocketLoader&&n.setAttribute("data-cfasync","false"),n.type="text/javascript",n.id="bricks-facebook-page-sdk",n.appendChild(document.createTextNode(r.responseText)),document.body.appendChild(n),FB.init({appId:t,version:"v3.3",xfbml:!0})}},r.send()}}var bricksPrettifyFn=new BricksFunction({parentNode:document,selector:".prettyprint.prettyprinted",run:function(){if(window.hasOwnProperty("PR")){PR.prettyPrint();var e=bricksQuerySelectorAll(document,".prettyprint.prettyprinted");!bricksIsFrontend&&e.length&&e.forEach(function(e){e.classList.remove("prettyprinted"),PR.prettyPrint()})}}});function bricksPrettify(){bricksPrettifyFn.run()}function bricksSkipLinks(){var e=bricksQuerySelectorAll(document,".skip-link");e&&e.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=document.getElementById(e.href.split("#")[1]);n&&(n.setAttribute("tabindex","-1"),n.addEventListener("blur",function(){n.removeAttribute("tabindex")},{once:!0}),n.focus())})})}var bricksGalleryInfiniteScrollFn=new BricksFunction({parentNode:document,selector:'.brxe-image-gallery[data-brx-load-more="gallery"]',eachElement:function(e){var t,n,r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e);if((1==(null==r?void 0:r.infinite)||!1)&&"true"!==(null===(t=e.dataset)||void 0===t?void 0:t.brxGalleryInfiniteInit)){e.dataset.brxGalleryInfiniteInit="true";var i=function(){return e.querySelector(":scope > .brx-gallery-load-more-trail")},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;if(null==e||""===e)return t;if("number"==typeof e)return Math.max(0,parseInt(e));if("string"==typeof e){if(e.includes("ms"))return Math.max(0,parseInt(e));if(e.includes("s"))return Math.max(0,Math.round(1e3*parseFloat(e)));var n=parseInt(e);return isNaN(n)?t:Math.max(0,n)}return t}(null==r?void 0:r.scrollDelay,600),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200px";if(null==e||""===e)return t;if("number"==typeof e)return"".concat(Math.max(1,parseInt(e)),"px");if("string"==typeof e&&e.includes("px")){var n=parseInt(e);return isNaN(n)?t:"".concat(Math.max(1,n),"px")}return t}(null!==(n=null==r?void 0:r.scrollOffset)&&void 0!==n?n:null==r?void 0:r.observerMargin,"200px"),s=!1,c=null,l=Date.now()+o,d=0,u=function(){var e=i();if(e){var t=++d;new BricksIntersect({element:e,once:!0,threshold:0,rootMargin:a,callback:function(){t===d&&p()}})}},p=function(){if(!s&&!c){var t=Math.max(0,l-Date.now());c=setTimeout(function(){c=null,s=!0;var t=bricksUtils.imageGalleryLoadMore(e);if(s=!1,l=Date.now()+o,t){var n=i();n&&BricksIsInViewport(n)?p():u()}},t)}},b=i();b&&(BricksIsInViewport(b)?p():u())}}});function bricksGalleryInfiniteScroll(){bricksGalleryInfiniteScrollFn.run()}var bricksInteractionsFn=new BricksFunction({parentNode:document,selector:"[data-interactions]",frontEndOnly:!0,eachElement:function(e){var t,n=[];try{n=JSON.parse(e.dataset.interactions)}catch(e){return console.info("error:bricksInteractions",e),!1}var r=(null===(t=e.dataset)||void 0===t?void 0:t.interactionId)||!1;n&&r&&(n.forEach(function(t){var n,i=!1;if(null!=t&&t.trigger){if("scroll"===t.trigger){var o=0;if(null!=t&&t.scrollOffset)if((o=null==t?void 0:t.scrollOffset.replace("px","")).includes("%"))o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)/100*parseInt(o);else o.includes("vh")&&(o=window.innerHeight/100*parseInt(o));t.scrollOffset=o}else"mouseleaveWindow"===t.trigger&&(t.trigger="mouseleave",i=!0);if(e)switch(t.el=e,t.groupId=i?"document":r,null!==(n=window.bricksData)&&void 0!==n&&n.interactions||(window.bricksData.interactions=[]),window.bricksData.interactions.push(t),t.trigger){case"click":case"mouseover":case"mouseenter":case"mouseleave":case"focus":case"blur":(i?document.documentElement:e).addEventListener(t.trigger,function(e){return bricksInteractionCallback(e,t)},{once:null==t?void 0:t.runOnce});break;case"animationEnd":var a=(null==t?void 0:t.animationId)||!1;if(!a){var s=window.bricksData.interactions.filter(function(e){return e.groupId===r&&"startAnimation"===e.action&&e.id!==t.id});s.length&&(a=s[s.length-1].id)}a&&a!==t.id&&document.addEventListener("bricks/animation/end/".concat(a),function(n){bricksInteractionCallbackExecution(e,t)},{once:null==t?void 0:t.runOnce});break;case"contentLoaded":var c=(null==t?void 0:t.delay)||0;c&&c.includes("ms")?c=parseInt(c):c&&c.includes("s")&&(c=1e3*parseFloat(c)),setTimeout(function(){bricksInteractionCallbackExecution(e,t)},c);break;
97case"enterView":new BricksIntersect({element:e,callback:function(e){"startAnimation"===t.action&&Array.from(e.classList).some(function(e){return e.startsWith("brx-animate-")})||bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger,rootMargin:null==t?void 0:t.rootMargin});break;case"leaveView":new BricksIntersect({element:e,callback:function(e){return bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger});break;case"showPopup":case"hidePopup":var l="showPopup"===t.trigger?"bricks/popup/open":"bricks/popup/close";document.addEventListener(l,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.popupElement)||!1;i&&i===e&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"ajaxStart":case"ajaxEnd":var d="ajaxStart"===t.trigger?"bricks/ajax/start":"bricks/ajax/end",u=(null==t?void 0:t.ajaxQueryId)||!1;if(!u)return;document.addEventListener(d,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.queryId)||!1;i&&i===u&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"formSubmit":case"formSuccess":case"formError":var p=null==t?void 0:t.formId;if(!p)return;var b="bricks/form/".concat(t.trigger.replace("form","").toLowerCase());document.addEventListener(b,function(n){var r,i=null===(r=n.detail)||void 0===r?void 0:r.elementId;i&&i===(p=(p=p.replace("#","")).replace("brxe-",""))&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"filterOptionEmpty":case"filterOptionNotEmpty":var v=(null==t?void 0:t.filterElementId)||!1;if(!v)return;v=(v=v.replace("#","")).replace("brxe-","");var f="bricks/filter/option/".concat(t.trigger.replace("filterOption","").toLowerCase());document.addEventListener(f,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.filterElementIds)||[];
97i.length&&i.includes(v)&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"wooAddedToCart":case"wooAddingToCart":case"wooRemovedFromCart":case"wooUpdateCart":case"wooCouponApplied":case"wooCouponRemoved":if("undefined"==typeof jQuery)return;var m=null;"wooAddedToCart"===t.trigger?m="added_to_cart":"wooAddingToCart"===t.trigger?m="adding_to_cart":"wooRemovedFromCart"===t.trigger?m="item_removed_from_classic_cart":"wooUpdateCart"===t.trigger?m="updated_cart_totals":"wooCouponApplied"===t.trigger?m="applied_coupon applied_coupon_in_checkout":"wooCouponRemoved"===t.trigger&&(m="removed_coupon removed_coupon_in_checkout"),m&&jQuery(document.body).on(m,function(n){bricksUtils.maybeRunOnceInteractions(e,t)})}}}),bricksUtils.hideOrShowLoadMoreButtons("all"))}});function bricksInteractions(){bricksInteractionsFn.run()}function bricksTrapFocus(e,t){if("Tab"===e.key){var n=bricksGetVisibleFocusables(t),r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}function bricksFocusOnFirstFocusableElement(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=bricksGetFocusables(e)[0];if(n)if(t){var r=0;requestAnimationFrame(function e(){!function(e){var t=window.getComputedStyle(e);if("none"===t.display||"visible"!==t.visibility||parseFloat(t.opacity)<.1)return!1;var n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&!(n.bottom<0||n.top>window.innerHeight||n.right<0||n.left>window.innerWidth)}(n)?r++<60?requestAnimationFrame(e):console.warn("Element never became focusable:",n):n.focus()})}else n.focus()}function bricksPopups(){var e=null;document.addEventListener("bricks/popup/open",function(t){var n,r,i,o,a=(null===(n=t.detail)||void 0===n?void 0:n.popupElement)||!1;if(a&&bricksIsFrontend&&!a.classList.contains("brx-infobox-popup")){var s,c=(null===(r=a.dataset)||void 0===r?void 0:r.popupCloseOn)||"backdrop-esc";if(c.includes("esc")){var l=function(e){return function(e,t){"Escape"===e.key&&bricksClosePopup(t)}(e,a)};document.addEventListener("keyup",l),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keyup",l)})}if(c.includes("backdrop")){var d=function(e){return function(e,t){(e.target.classList.contains("brx-popup-backdrop")||e.target.classList.contains("brx-popup"))&&bricksClosePopup(t)}(e,a)};document.addEventListener("click",d),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("click",d)})}if(e=document.activeElement,null!==(i=a.dataset)&&void 0!==i&&i.popupScrollToTop)null===(s=a.querySelector(".brx-popup-content"))||void 0===s||s.scrollTo(0,0);if(null===(o=a.dataset)||void 0===o||!o.popupDisableAutoFocus){var u=bricksGetFocusables(a),p=u.length>0?u[0]:null;if(p){var b;null===(b=a.querySelector(".brx-popup-content"))||void 0===b||b.scrollTo(0,0);var v=p.getBoundingClientRect(),f=a.querySelector(".brx-popup-content").getBoundingClientRect(),m=v.top-f.top+a.scrollTop-10;a.querySelector(".brx-popup-content").scrollTo({top:m})}}setTimeout(function(){var e,t,n;(null!==(e=a.dataset)&&void 0!==e&&e.popupDisableAutoFocus||bricksFocusOnFirstFocusableElement(a),null!==(t=a.dataset)&&void 0!==t&&t.popupScrollToTop)&&(null===(n=a.querySelector(".brx-popup-content"))||void 0===n||n.scrollTo({top:0,left:0,behavior:"smooth"}))},100);var g=function(e){return bricksTrapFocus(e,a)};document.addEventListener("keydown",g),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keydown",g),e&&e.focus()})}})}function bricksScrollInteractions(){var e,t=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[],n=window.scrollY,r=[];t.forEach(function(e,t){"scroll"===(null==e?void 0:e.trigger)&&n>=e.scrollOffset&&(bricksInteractionCallbackExecution(e.el,e),null!=e&&e.runOnce&&r.push(e.id))}),r.forEach(function(e){window.bricksData.interactions=window.bricksData.interactions.filter(function(t){return t.id!==e})})}function bricksInteractionCallback(e,t){if("click"===(null==e?void 0:e.type)){var n;if("A"===e.target.tagName&&"#"!==e.target.getAttribute("href")&&null!==(n=e.target.getAttribute("href"))&&void 0!==n&&n.startsWith("#"))return;null!=t&&t.disablePreventDefault||e.preventDefault()}bricksInteractionCallbackExecution(t.el,t)}function bricksInteractionCallbackExecution(e,t){var n,r,i,o=["clearForm","storageAdd","storageRemove","storageCount","loadMore","toggleOffCanvas","openAddress","closeAddress"].includes(null==t?void 0:t.action),a=(null==t?void 0:t.target)||"self";
97if(!o)switch(a){case"custom":null!=t&&t.targetSelector&&(i=bricksQuerySelectorAll(document,t.targetSelector));break;case"popup":var s;if(null!=t&&t.templateId)null!==(s=e.dataset)&&void 0!==s&&s.interactionLoopId&&(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"][data-popup-loop-id="').concat(e.dataset.interactionLoopId,'"]'))),i&&i.length||(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"]')));break;case"offcanvas":null!=t&&t.offCanvasSelector&&(i=e);break;default:i=e}if(o||i)if(Array.isArray(i)||(i=i?[i]:[]),bricksInteractionCheckConditions(t))switch(null==t?void 0:t.action){case"show":case"hide":i.forEach(function(n){if(null!=n&&n.classList.contains("brx-popup"))if("show"===t.action){var r,i={};null!=t&&t.popupContextId&&(i.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(i.popupContextType=t.popupContextType),null!==(r=e.dataset)&&void 0!==r&&r.interactionLoopId&&(i.loopId=e.dataset.interactionLoopId),bricksOpenPopup(n,0,i)}else"hide"===t.action&&bricksClosePopup(n);else"hide"===t.action?n.style.display="none":"none"===n.style.display?(n.style.display=null,"none"===window.getComputedStyle(n).display&&(n.style.display="block")):n.style.display="block"});break;case"setAttribute":case"removeAttribute":case"toggleAttribute":var c=null==t?void 0:t.actionAttributeKey;c&&i.forEach(function(e){var n=(null==t?void 0:t.actionAttributeValue)||"";"class"===c?(n?n.split(" "):[]).forEach(function(n){"setAttribute"===t.action?e.classList.add(n):"removeAttribute"===t.action?e.classList.remove(n):e.classList.toggle(n)}):"setAttribute"===t.action?e.setAttribute(c,n):"removeAttribute"===t.action||e.hasAttribute(c)?e.removeAttribute(c):e.setAttribute(c,n)});break;case"scrollTo":var l=i[0];if(!l||!l.scrollIntoView)return;var d=(null==t?void 0:t.scrollToOffset)||0,u=(null==t?void 0:t.scrollToDelay)||1;setTimeout(function(){"string"==typeof d&&(d=d.replace("px",""));var e=l.getBoundingClientRect().top;window.scrollBy(0,e-parseInt(d))},parseInt(u));break;case"clearForm":var p=null==t?void 0:t.targetFormSelector,b=null;if(["formSubmit","formSuccess","formError"].includes(t.trigger)){var v=null==t?void 0:t.formId;v=(v=v.replace("#","")).replace("brxe-",""),b=document.querySelectorAll('.brxe-form[data-element-id="'.concat(v,'"]'))}else b=p?document.querySelectorAll(p):document.querySelectorAll("form");b&&b.length&&b.forEach(function(e){e.querySelectorAll("input, textarea, select").forEach(function(e){"hidden"!==e.type&&("SELECT"===e.tagName?e.selectedIndex=0:"TEXTAREA"===e.tagName?e.value="":"checkbox"===e.type||"radio"===e.type?e.checked=!1:e.value="")}),e.querySelectorAll(".file-result.show > .bricks-button.remove").forEach(function(e){e.click()})});break;case"click":i&&i.length&&i.forEach(function(e){e.click()});break;case"storageAdd":case"storageRemove":case"storageCount":var f=null==t?void 0:t.storageType,m=null==t?void 0:t.actionAttributeKey,g=t.hasOwnProperty("actionAttributeValue")?t.actionAttributeValue:0;if(f&&m)if("storageAdd"===t.action)bricksStorageSetItem(f,m,g);else if("storageRemove"===t.action)bricksStorageRemoveItem(f,m);else if("storageCount"===t.action){var y=bricksStorageGetItem(f,m);bricksStorageSetItem(f,m,(y=y?parseInt(y):0)+1)}break;case"startAnimation":var k=null==t?void 0:t.animationType;if(k){var w=0;null!=t&&t.animationDelay&&(t.animationDelay.includes("ms")?w=parseInt(t.animationDelay):t.animationDelay.includes("s")&&(w=1e3*parseFloat(t.animationDelay))),setTimeout(function(){i.forEach(function(n){var r,i=1e3,o=null===(r=n)||void 0===r?void 0:r.classList.contains("brx-popup");if(o&&(n=n.querySelector(".brx-popup-content")),null!=t&&t.animationDuration&&(n.style.animationDuration=t.animationDuration,t.animationDuration.includes("ms")?i=parseInt(t.animationDuration):t.animationDuration.includes("s")&&(i=1e3*parseFloat(t.animationDuration))),null!=t&&t.animationDelay&&(i+=w),o&&"showPopup"!==t.trigger&&"hidePopup"!==t.trigger){var a,s=n.parentNode,c={};null!=t&&t.popupContextId&&(c.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(c.popupContextType=t.popupContextType),null!==(a=e.dataset)&&void 0!==a&&a.interactionLoopId&&(c.loopId=e.dataset.interactionLoopId),k.includes("In")&&bricksOpenPopup(s,i,c
97)}n.classList.add("brx-animated"),n.setAttribute("data-animation",k),n.setAttribute("data-animation-id",t.id||""),bricksAnimationFn.run({elementsToAnimate:[n],removeAfterMs:i})})},w)}break;case"loadMore":var h=null==t?void 0:t.loadMoreQuery,x=null===(n=window.bricksData.queryLoopInstances)||void 0===n?void 0:n[h];if(!x)return;var S=(null==x?void 0:x.componentId)||!1,L=bricksUtils.getQueryTrailSelectorId(h,S),E=Array.from(null===(r=x.resultsContainer)||void 0===r?void 0:r.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();E&&(e.classList.contains("is-loading")||(e.classList.add("is-loading"),E.dataset.queryElementId=h,S&&(E.dataset.queryComponentId=S),bricksQueryLoadPage(E,!0).then(function(t){e.classList.remove("is-loading"),bricksUtils.hideOrShowLoadMoreButtons(h)})));break;case"loadMoreGallery":var I=t.loadMoreTargetSelector||"";if(I)bricksQuerySelectorAll(document,I).forEach(function(e){e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')&&bricksUtils.imageGalleryLoadMore(e)});break;case"javascript":if(null!=t&&t.jsFunction){var A,q=null!==(A=window[t.jsFunction])&&void 0!==A&&A;if(t.jsFunction.includes(".")){var T=t.jsFunction.split("."),F=window;T.forEach(function(e){F=F[e]}),"function"==typeof F&&(q=F)}if(q&&"function"==typeof q){var C={source:e,targets:i},P={};null!=t&&t.jsFunctionArgs&&Array.isArray(t.jsFunctionArgs)&&t.jsFunctionArgs.forEach(function(e,t){if(null!=e&&e.jsFunctionArg&&null!=e&&e.id){var n=e.id,r=e.jsFunctionArg;"%brx%"===e.jsFunctionArg&&(n=e.jsFunctionArg,r=C),P[n]=r}}),i.forEach(function(e){null!=P&&P["%brx%"]&&(P["%brx%"].target=e),Object.keys(P).length?q.apply(void 0,_toConsumableArray(Object.keys(P).map(function(e){return P[e]}))):q()})}else console.error('Bricks interaction: Custom JavaScript function "'.concat(t.jsFunction,'" not found.'))}break;case"toggleOffCanvas":var D=(null==t?void 0:t.offCanvasSelector)||!1;if(!D)return;bricksUtils.toggleAction(e,{selector:D});break;case"openAddress":case"closeAddress":bricksUtils.toggleMapInfoBox(t)}else if("startAnimation"===(null==t?void 0:t.action))i.forEach(function(e){e.removeAttribute("data-interaction-hidden-on-load")})}function bricksOpenPopup(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var i=t.dataset.popupId;bricksPopupCheckLimit(t)&&bricksPopupCheckBreakpoint(t)&&(t.classList.remove("hide"),t.dataset.popupBodyScroll||document.body.classList.add("no-scroll"),bricksSetVh(),bricksFetchPopupContent(t,r).then(function(e){if(""!==e){t.querySelector(".brx-popup-content").innerHTML=e;var r=new CustomEvent("bricks/ajax/popup/loaded",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(r)}var o=new CustomEvent("bricks/popup/open",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(o),setTimeout(function(){bricksCounter()},n),bricksPopupCounter(t)}))}}function bricksGetCurrentUrlParams(){var e={};try{new URLSearchParams(window.location.search).forEach(function(t,n){void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]})}catch(e){console.warn("Failed to parse URL parameters:",e)}return e}function bricksFetchPopupContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o;if((null===(o=e.dataset)||void 0===o?void 0:o.popupAjax)||!1){e.querySelector(".brx-popup-content").innerHTML="";var a=e.dataset.popupId,s={postId:window.bricksData.postId,popupId:a,nonce:window.bricksData.nonce,popupContextId:!1,popupContextType:"post",isLooping:!1,popupLoopId:!1,queryElementId:!1,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,urlParams:bricksGetCurrentUrlParams()};if(null!=t&&t.loopId&&(s.isLooping=!0),null!=t&&t.popupContextId&&(s.popupContextId=t.popupContextId,null!=t&&t.popupContextType&&(s.popupContextType=t.popupContextType)),null!=t&&t.loopId&&!s.popupContextId){var c=t.loopId.split(":");c.length>=4&&c[0].length>=6&&(s.queryElementId=c[0],s.popupLoopId=t.loopId)}var l,d=window.bricksData.restApiUrl.concat("load_popup_content");
97if("wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(d=d.concat("?lang="+window.bricksData.language)),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/start",{detail:{popupId:a,popupElement:e}})),s.isLooping)null===(l=e.querySelector(".brx-popup-backdrop"))||void 0===l||l.removeAttribute("data-query-loop-index");var u=new XMLHttpRequest;u.open("POST",d,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),u.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE){var o,c,l=u.status,d="";try{c=JSON.parse(u.response)}catch(e){console.error("Error parsing response:",e)}if(0===l||l>=200&&l<400){var p,b,v,f,m,g,y=(null===(p=c)||void 0===p?void 0:p.html)||!1,k=(null===(b=c)||void 0===b?void 0:b.styles)||!1,w=(null===(v=c)||void 0===v?void 0:v.popups)||!1,h=(null===(f=c)||void 0===f?void 0:f.error)||!1,x=(null===(m=c)||void 0===m?void 0:m.contentClasses)||!1;if(h&&console.error("error:bricksFetchPopupContent",h),y&&(d=y),k&&(d+=k),x){var S=e.querySelector(".brx-popup-content.brx-woo-quick-view");if(S){var L,E=["brx-popup-content","brxe-container","brx-woo-quick-view"];S.classList.forEach(function(e){E.includes(e)||S.classList.remove(e)}),(L=S.classList).add.apply(L,_toConsumableArray(x)),document.body.classList.contains("woocommerce")||S.classList.add("woocommerce")}}if(w&&Object.keys(w).length&&Object.entries(w).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];document.querySelector('.brx-popup[data-popup-id="'.concat(n,'"]'))||document.body.insertAdjacentHTML("beforeend",r)}),s.isLooping)null===(g=e.querySelector(".brx-popup-backdrop"))||void 0===g||g.setAttribute("data-query-loop-index",0)}else if("rest_cookie_invalid_nonce"===(null===(o=c)||void 0===o?void 0:o.code)&&!n)return void bricksRegenerateNonceAndRetryPopup(e,t).then(r).catch(i);r(d),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/end",{detail:{popupId:a,popupElement:e}}))}},u.send(JSON.stringify(s))}else r("")})}function bricksRegenerateNonceAndRetryPopup(e,t){return new Promise(function(n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<400){var o;try{o=JSON.parse(i.responseText)}catch(e){return void r("Invalid response from server when regenerating nonce")}o.success&&o.data?(window.bricksData.nonce=o.data.bricks_nonce,window.bricksData.wpRestNonce=o.data.rest_nonce,bricksFetchPopupContent(e,t,!0).then(n).catch(r)):r("Failed to regenerate nonces: Invalid response structure")}else r("Failed to regenerate nonce")},i.send("action=bricks_regenerate_query_nonce")})}function bricksClosePopup(e){var t;if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var n=t.dataset.popupId;t.classList.add("hide"),t.dataset.popupBodyScroll||document.querySelectorAll(".brx-popup:not(.hide):not([data-popup-body-scroll])").length||document.body.classList.remove("no-scroll");var r=new CustomEvent("bricks/popup/close",{detail:{popupId:n,popupElement:t}});document.dispatchEvent(r)}}function bricksPopupCheckLimit(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(!r)return!0;try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCheckLimit",e),!0}var o=!1,a=Date.now();return Object.entries(r).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];if("timeStorageInHours"===n){var s=parseInt(bricksStorageGetItem("localStorage","brx_popup_".concat(i,"_lastShown")));a<s+36e5*r&&(o=!0)}else{var c=bricksStorageGetItem(n,"brx_popup_".concat(i,"_total"));c=c?parseInt(c):0,o=o||c>=r}}),!o&&r.timeStorageInHours&&bricksStorageSetItem("localStorage","brx_popup_".concat(i,"_lastShown"),a.toString()),!o}function bricksPopupCheckBreakpoint(e){var t;if(null==e||null===(t=e.classList)||void 0===t||!t.contains("brx-popup"))return!1;var n=parseInt(e.getAttribute("data-popup-show-at"));if(n&&window.innerWidth<n)return!1;var r=e.getAttribute("data-popup-show-on-widths"),i=r?r.split(","):[];if(i.length&&!i.some(function(e){var t=_slicedToArray(e.split("-").map(function(e){var t=Number(e);return isNaN(t)?(console.error("Invalid width value: ".concat(e)),0):t}),2),n=t[0],r=t[1];return window.innerWidth>=n&&window.innerWidth<=r}))return!1;return!0}function bricksPopupCounter(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(r){try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCounter",e),!0}Object.entries(r).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=(t[1],bricksStorageGetItem(n,"brx_popup_".concat(i,"_total")));r=r?parseInt(r):0,bricksStorageSetItem(n,"brx_popup_".concat(i,"_total"),r+1)})}}function bricksInteractionCheckConditions(e){if(!Array.isArray(null==e?void 0:e.interactionConditions))return!0;var t=(null==e?void 0:e.interactionConditionsRelation)||"and",n="and"===t,r=function(e){return isNaN(e)?0:parseFloat(e)};return e.interactionConditions.forEach(function(e){var i=null==e?void 0:e.conditionType,o=(null==e?void 0:e.storageKey)||!1,a=!1;if(i&&o){var s=(null==e?void 0:e.storageCompare)||"exists",c=null==e?void 0:e.storageCompareValue,l=bricksStorageGetItem(i,o);switch(s){case"exists":a=null!==l;break;case"notExists":a=null===l;break;case"==":a=l==c;break;case"!=":a=l!=c;break;case">=":a=r(l)>=r(c);break;case"<=":a=r(l)<=r(c);break;case">":a=r(l)>r(c);break;case"<":a=r(l)<r(c)}}else a=!0;n="and"===t?n&&a:n||a}),n}function bricksStorageGetItem(e,t){if(t){var n;try{switch(e){case"windowStorage":n=window.hasOwnProperty(t)?window[t]:null;break;case"sessionStorage":n=sessionStorage.getItem(t);break;case"localStorage":n=localStorage.getItem(t)}}catch(e){console.info("error:bricksStorageGetItem",e)}return n}}function bricksStorageSetItem(e,t,n){if(t)try{switch(e){case"windowStorage":window[t]=n;break;case"sessionStorage":sessionStorage.setItem(t,n);break;case"localStorage":localStorage.setItem(t,n)}}catch(e){console.info("error:bricksStorageSetItem",e)}}function bricksStorageRemoveItem(e,t){if(t)try{switch(e){case"windowStorage":delete window[t];break;case"sessionStorage":sessionStorage.removeItem(t);break;case"localStorage":localStorage.removeItem(t)}}catch(e){console.info("error:bricksStorageRemoveItem",e)}}function bricksNavNested(){if(bricksIsFrontend){var e=new MutationObserver(function(e){e.forEach(function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.target;if(t.classList.contains("brx-open")&&!t.classList.contains("brx-closing")){bricksSetVh();var n=t.querySelector(".brx-nav-nested-items");n&&n.addEventListener("keydown",function(e){return bricksTrapFocus(e,n)}),document.body.classList.add("no-scroll");var r=t.querySelector(".brx-nav-nested-items button.brxe-toggle");r?setTimeout(function(){r.classList.add("is-active"),r.setAttribute("aria-expanded",!0),r.focus()},100):bricksFocusOnFirstFocusableElement(t,!1)}else{document.body.classList.remove("no-scroll");var i=t.dataset.toggleScriptId,o=document.querySelector('button[data-script-id="'.concat(i,'"],[data-interaction-id="').concat(i,'"][data-brx-toggle-offcanvas]'));o&&(o.setAttribute("aria-expanded",!1),o.classList.remove("is-active"),o.focus())}}})}),t=bricksQuerySelectorAll(document,".brxe-nav-nested");t.length&&(t.forEach(function(t){e.observe(t,{attributes:!0,attributeFilter:["class"]}),t.addEventListener("keydown",function(e){var t=document.activeElement;bricksHandleMenuKeyNavigation(e,{isTopLevel:null!==t.closest(".brx-nav-nested-items > li, .brx-nav-nested-items > .brxe-dropdown"),isInDropdown:null!==t.closest(".brx-dropdown-content"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".brx-nav-nested-items")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".brx-nav-nested-items")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){return bricksSubmenuToggle(e,"remove")}})})}),document.addEventListener("keyup",function(e){"Escape"===e.key&&bricksNavNestedClose()}),document.addEventListener("click",function(e){var t=e.target.closest(".brxe-nav-nested"),n=e.target.closest(".brxe-toggle");t||n||bricksNavNestedClose()}))}}function bricksNavNestedClose(){bricksQuerySelectorAll(document,".brxe-nav-nested.brx-open").forEach(function(e){e.classList.add("brx-closing"),setTimeout(function(){e.classList.remove("brx-closing"),e.classList.remove("brx-open")},200)})}var bricksNavMenuFn=new BricksFunction({parentNode:document,selector:".brxe-nav-menu",eachElement:function(e){e.addEventListener("keydown",function(e){var t=document.activeElement;bricksHandleMenuKeyNavigation(e,{isTopLevel:null!==t.closest(".bricks-nav-menu > li"),isInDropdown:null!==t.closest(".sub-menu"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".bricks-nav-menu")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".bricks-nav-menu")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){e.setAttribute("aria-expanded","fal
97se"),e.closest(".menu-item-has-children").classList.remove("open")}})})}});function bricksNavMenu(){bricksNavMenuFn.run()}function bricksHandleMenuKeyNavigation(e,t){var n=t.isTopLevel,r=t.isInDropdown,i=t.isInSubmenuToggle,o=t.getNextFocusable,a=t.getPreviousFocusable,s=t.getLastFocusableInSubmenuToggle,c=t.focusNextElement,l=t.focusPreviousElement,d=t.focusFirstElement,u=t.focusLastElement,p=(t.closeSubmenu,e.key),b=document.activeElement;["ArrowDown","ArrowRight","ArrowUp","ArrowLeft","Home","End"].includes(p)&&e.preventDefault();var v="rtl"===document.dir||"rtl"===document.documentElement.dir||null!==b.closest('[dir="rtl"]');switch(p){case"ArrowDown":if(n)if(i){var f=b.closest(".brx-submenu-toggle"),m=f.nextElementSibling,g=f.querySelector("button[aria-expanded]");if(m&&(m.classList.contains("brx-dropdown-content")||m.classList.contains("sub-menu"))&&g&&"true"===g.getAttribute("aria-expanded")){var y=m.querySelector("a, button");y&&y.focus()}else c(b)}else c(b);else r&&c(b);break;case v?"ArrowLeft":"ArrowRight":if(n)if(i){var k=o(b,v);k?k.focus():c(b.closest(".brxe-dropdown, .menu-item"))}else c(b);break;case"ArrowUp":if(n)l(b);else if(r){if(!l(b)){var w=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(w){var h=s(w,v);h&&h.focus()}}}break;case v?"ArrowRight":"ArrowLeft":if(n)if(i){var x=a(b,v);x?x.focus():l(b.closest(".brxe-dropdown, .menu-item"))}else l(b);else if(r){if(!l(b)){var S=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(S){var L=s(S,v);L&&L.focus()}}}break;case"Home":d(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"));break;case"End":u(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"))}}function bricksMenuFocusNextElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o+1];if(!a)return null;if(a.querySelector(".brx-submenu-toggle")){var s=a.querySelector(".brx-submenu-toggle"),c=s.querySelector("a"),l=s.querySelector("button");r=c||l}else r=a.querySelector("a")||a.querySelector("button");return r&&r.focus(),r}function bricksMenuFocusPreviousElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o-1];return a?((r=a.querySelector(".brx-submenu-toggle")?a.querySelector(".brx-submenu-toggle button")||a.querySelector(".brx-submenu-toggle a"):a.querySelector("a")||a.querySelector("button")||a.querySelector(".brx-submenu-toggle"))&&r.focus(),r):null}function bricksMenuFocusFirstElement(e){var t=bricksGetFocusables(e);if(t.length>0){var n=t[0];if(n.classList.contains("brx-submenu-toggle")){var r=n.querySelector("a, button");r&&r.focus()}else n.focus()}}function bricksMenuFocusLastElement(e){var t=bricksGetFocusables(e);if(t.length>0)for(var n=t.length-1;n>=0;n--){var r=t[n];if(bricksIsElementVisible(r)){if(!r.classList.contains("brx-submenu-toggle"))return void r.focus();var i=r.querySelector("button")||r.querySelector("a");if(i&&bricksIsElementVisible(i))return void i.focus()}}}function bricksGetNextMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"a"===e.tagName.toLowerCase()?r[1]:null}function bricksGetPreviousMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"button"===e.tagName.toLowerCase()&&r.find(function(e){return"a"===e.tagName.toLowerCase()})||null}function bricksMenuGetLastFocusableInSubmenuToggle(e,t){var n=Array.from(e.querySelectorAll("a, button"));return t?n[0]:n[n.length-1]}function bricksIsElementVisible(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return t.width>0&&t.height>0&&"hidden"!==n.visibility&&"none"!==n.display}function bricksOffcanvas(){if(bricksIsFrontend){var e=bricksQuerySelectorAll(document,".brxe-offcanvas");if(e.length){var t=e.some(function(e){return e.classList.contains("brx-open")&&"offset"===e.dataset.effect}),n=function(e){var n=e.querySelector(".brx-offcanvas-inner"),r=n?r=1e3*parseFloat(window.getComputedStyle(n).getPropertyValue("transition-duration")):200;if(e.classList.contains("brx-open")){var i,o;if(bricksSetVh(),"offset"===e.dataset.effect&&n){var a=e.getAttribute("data-direction"),s=window.getComputedStyle(n).getPropertyValue("transition");document.body.style.margin="0",t||(document.body.style.transition=s.replace("transform","margin"));var c="rtl"===document.dir||"rtl"===document.documentElement.dir;"top"===a?document.body.style.marginTop="".concat(n.offsetHeight,"px"):"bottom"===a?document.body.style.marginTop="-".concat(n.offsetHeight,"px"):"left"===a?(c?document.body.style.marginRight="-".concat(n.offsetWidth,"px"):document.body.style.marginLeft="".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"):"right"===a&&(c?document.body.style.marginRight="".concat(n.offsetWidth,"px"):document.body.style.marginLeft="-".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"),t&&setTimeout(function(){document.body.style.transition=s.replace("transform","margin")},0),t=!1}if(e.addEventListener("keydown",function(t){return bricksTrapFocus(t,e)}),e.dataset.noScroll&&document.body.classList.add("no-scroll"),"true"!==(null===(i=e.dataset)||void 0===i?void 0:i.noAutoFocus)&&bricksFocusOnFirstFocusableElement(e),"true"===(null===(o=e.dataset)||void 0===o?void 0:o.scrollToTop)){var l=e.querySelector(".brx-offcanvas-inner");l&&(l.scrollTop=0)}var d=e.querySelectorAll('.brx-offcanvas-inner button.brxe-toggle, .brx-offcanvas-inner [data-brx-toggle-offcanvas="true"]');d.length&&d.forEach(function(t){var n,r=!1,i=(null===(n=t.dataset)||void 0===n?void 0:n.selector)||".brxe-offcanvas";if(i){var o=document.querySelectorAll(i)||[];r=Array.from(o).includes(e)}else r=!0;r&&(t.classList.add("is-active"),t.setAttribute("aria-expanded",!0),bricksUtils.setOffcanvasToggleAriaLabel(t,!0))})}else{e.classList.add("brx-closing");var u=e.dataset.toggleScriptId,p=document.querySelector('button[data-script-id="'.concat(u,'"], [data-interaction-id="').concat(u,'"][data-brx-toggle-offcanvas]'));p&&(p.setAttribute("aria-expanded",!1),p.classList.remove("is-active"),bricksUtils.setOffcanvasToggleAriaLabel(p,!1),p.focus()),"offset"===e.dataset.effect&&(document.body.style.marginTop&&(document.body.style.margin="0"),setTimeout(function(){document.body.style.margin=null,document.body.style.overflow=null,document.body.style.transition=null},r)),setTimeout(function(){e.classList.remove("brx-closing"),e.dataset.noScroll&&(document.body.classList.remove("no-scroll"),bricksSubmenuPosition())},r)}},r=new MutationObserver(function(e){e.forEach(function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.oldValue||"",r=e.target.classList,i=t.split(" "),o=Array.from(r);
97if(i.includes("brx-closing")||o.includes("brx-closing"))return;n(e.target)}})});e.forEach(function(e){r.observe(e,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0});var t=e.querySelector(".brx-offcanvas-backdrop");t&&t.addEventListener("click",function(e){bricksOffcanvasClose("backdrop")}),e.classList.contains("brx-open")&&n(e)}),document.addEventListener("keyup",function(e){"Escape"===e.key&&bricksOffcanvasClose("esc")})}}}function bricksOffcanvasClose(e){bricksQuerySelectorAll(document,".brxe-offcanvas.brx-open").forEach(function(t){var n;(((null===(n=t.dataset)||void 0===n?void 0:n.closeOn)||"backdrop-esc").includes(e)||"force"===e)&&t.classList.remove("brx-open");var r=t.querySelectorAll('.brx-offcanvas-inner > button.brxe-toggle, .brx-offcanvas-inner > [data-brx-toggle-offcanvas="true"]');r.length&&r.forEach(function(e){e.classList.remove("is-active"),e.setAttribute("aria-expanded",!1),bricksUtils.setOffcanvasToggleAriaLabel(e,!1)})})}function bricksToggleDisplay(){var e=bricksQuerySelectorAll(document,".brxe-toggle");e.length&&e.forEach(function(e){!e.closest(".brx-nav-nested-items")||e.parentNode.classList.contains("brx-nav-nested-items")||e.parentNode.classList.contains("brx-toggle-div")||("none"===window.getComputedStyle(e).display?(e.parentNode.style.display="none",bricksNavNestedClose()):e.parentNode.style.display=null)})}function bricksNavMenuMobileToggleDisplay(){bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle").forEach(function(e){e.parentNode.classList.contains("show-mobile-menu")&&("none"===window.getComputedStyle(e).display&&e.click())})}var bricksToggleFn=new BricksFunction({parentNode:document,selector:".brxe-toggle",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(t){t.preventDefault(),bricksUtils.toggleAction(e)})}});function bricksToggle(){bricksIsFrontend&&(bricksToggleDisplay(),bricksToggleFn.run())}var bricksToggleModeFn=new BricksFunction({parentNode:document,selector:".brxe-toggle-mode",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(e){e.preventDefault();var t="dark"===document.documentElement.dataset.brxTheme?"light":"dark";document.documentElement.dataset.brxTheme=t,localStorage.setItem("brx_mode",t)})}});function bricksToggleMode(){bricksIsFrontend&&bricksToggleModeFn.run()}function bricksSubmenuToggle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toggle",n=!!e.parentNode.classList.contains("brx-submenu-toggle")&&e.parentNode.parentNode;if(n){if(e.closest(".brx-has-multilevel")){var r=n.parentNode.closest(".active");r&&!r.classList.contains("brx-has-megamenu")&&r.classList.remove("active"),setTimeout(function(){var e=n.querySelector("ul")||n.querySelector(".brx-dropdown-content");e&&bricksFocusOnFirstFocusableElement(e)},100)}if("add"===t?(n.classList.add("open"),n.classList.add("active")):"remove"===t?(n.classList.remove("open"),n.classList.remove("active")):n.classList.toggle("open"),n.classList.contains("brxe-dropdown")){var i=n.querySelector(".brx-dropdown-content");if(i&&n.classList.contains("open")){var o=function(e){if(null==e||!e.propertyName||!["color","background-color","border-color","box-shadow","visibility","opacity","filter"].includes(e.propertyName)){var t=n.getBoundingClientRect(),r=i.getBoundingClientRect(),o=parseFloat(window.getComputedStyle(i).borderTopWidth),a=r.top+o-t.bottom;n.style.setProperty("--brx-dropdown-height-before","".concat(a,"px"))}};n.style.getPropertyValue("--brx-dropdown-height-before")||i.addEventListener("transitionend",o),o()}}e.setAttribute("aria-expanded",n.classList.contains("open"))}}var bricksSubmenuListenersFn=new BricksFunction({parentNode:document,selector:".bricks-nav-menu .menu-item-has-children, .brxe-dropdown",eachElement:function(e){if(!(e.closest("[data-static]")||e.closest(".brx-has-multilevel")||e.classList.contains("active"))){var t=function(t){return t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)};e.addEventListener("mouseenter",function(n){if(!t(n)&&!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var r=e.querySelector(':scope > .brx-submenu-toggle > [aria-expanded="false"]');r&&(r.closest(".brxe-dropdown.open")||r.closest(".bricks-menu-item.open")||bricksUtils.closeAllSubmenus(r),bricksSubmenuToggle(r))}}),e.addEventListener("mouseleave",function(n){if(!t(n)&&!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var r=e.querySelector(':scope > .brx-submenu-toggle > [aria-expanded="true"]');if(r){var i=r.closest(".menu-item");if(i||(i=r.closest(".brxe-dropdown")),i&&i.classList.contains("active"))return;bricksSubmenuToggle(r)}}})}}});function bricksSubmenuListeners(){function e(e,t,n){var r="hover";if(e.hasAttribute("data-toggle"))r=e.getAttribute("data-toggle");else{var i=e.closest("[data-toggle]");i&&(r=i.getAttribute("data-toggle"))}e.closest(".brxe-nav-menu.show-mobile-menu")&&(r="click"),e.closest(".brxe-nav-nested.brx-open")&&(r="click");var o="hover"===r?t.target.closest("[aria-expanded]"):e.querySelector(n?".brx-submenu-toggle button[aria-expanded]":"button[aria-expanded]");if(0===t.detail||"click"===r||"both"===r||(o=null),o){bricksSubmenuToggle(o);var a=n?e:e.parentNode;a.classList.toggle("active"),setTimeout(function(){a.classList.contains("active")&&a.classList.add("open"),o.setAttribute("aria-expanded",a.classList.contains("open"))},0)}}bricksSubmenuListenersFn.run(),document.addEventListener("keyup",function(e){"Escape"===e.key?bricksUtils.closeAllSubmenus(e.target):"Tab"===e.key&&setTimeout(function(){bricksQuerySelectorAll(document,'[aria-expanded="true"]').forEach(function(e){var t=e.closest(".menu-item");t||(t=e.closest(".brxe-dropdown")),(t&&!t.contains(document.activeElement)||"BODY"===document.activeElement.tagName)&&bricksSubmenuToggle(e,"remove")})},0)}),document.addEventListener("click",function(t){var n=t.target,r=null;if(n&&"A"!==n.nodeName&&(n=n.closest("a[href]")),n&&(r=n.getAttribute("href")),r&&r.includes("#"))if("#"===r||"/#"===r)t.preventDefault();else{var i=r.split("#")[1];if(t.target.closest(".brxe-offcanvas")&&bricksOffcanvasClose("force"),t.target.closest(".brxe-nav-nested.brx-open")){bricksNavNestedClose();var o=document.getElementById(i);o&&setTimeout(function(){o.scrollIntoView()},200)}var a=document.getElementById(i);if(a){var s=a.classList.contains("woocommerce-Tabs-panel"),c=a.firstChild&&a.firstChild.classList&&a.firstChild.classList.contains("accordion-title-wrapper")?a.firstChild:null;if(c&&!s)return void c.click();var l=a.closest(".tab-title");l&&!s&&l.click();var d=t.target.closest(".brx-popup");
97d&&!d.contains(a)&&bricksClosePopup(d)}}var u=t.target.closest(".brx-submenu-toggle"),p=t.target.closest(".brxe-dropdown"),b=t.target.closest(".brx-dropdown-content");!p||b&&b.parentNode===p?u&&e(u,t,!1):e(p,t,!0),bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach(function(e){var n=e.closest("li");n||(n=e.closest(".brxe-dropdown")),n&&!n.contains(t.target)&&(bricksSubmenuToggle(e),n.classList.remove("active"))})}),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.querySelector('[aria-current="page"]')&&e.classList.add("aria-current")})}var bricksSubmenuPositionFn=new BricksFunction({parentNode:document,selector:".brx-submenu-toggle",forceReinit:!0,eachElement:function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");if(n&&(n.classList.add("brx-submenu-positioned"),!t.hasAttribute("data-static"))){var r=document.body.clientWidth;if(t.classList.contains("brx-has-megamenu")){var i=t.dataset.megaMenu,o=t.dataset.megaMenuVertical,a=document.body;if(i){var s=document.querySelector(i);s&&(a=s)}var c=t.getBoundingClientRect(),l=a.getBoundingClientRect();if(n.style.left="-".concat(c.left-l.left,"px"),n.style.minWidth="".concat(l.width,"px"),o){var d=document.querySelector(o);if(d){var u=d.getBoundingClientRect();n.style.top="".concat(c.height+u.bottom-c.bottom,"px")}}bricksIsFrontend&&document.dispatchEvent(new CustomEvent("bricks/megamenu/repositioned",{detail:{menuItem:t,submenu:n}}))}else{n.classList.contains("brx-multilevel-overflow-right")&&n.classList.remove("brx-multilevel-overflow-right"),n.classList.contains("brx-submenu-overflow-right")&&n.classList.remove("brx-submenu-overflow-right"),n.classList.contains("brx-sub-submenu-overflow-right")&&n.classList.remove("brx-sub-submenu-overflow-right");var p=!t.parentNode.closest(".menu-item")&&!t.parentNode.closest(".brxe-dropdown"),b=n.getBoundingClientRect(),v=b.width,f=b.right,m=Math.ceil(b.left);if(v>r)n.style.left="-".concat(m,"px"),n.style.minWidth="".concat(r,"px");else if(f>r){n.closest(".brx-has-multilevel")?n.classList.add("brx-multilevel-overflow-right"):p?n.classList.add("brx-submenu-overflow-right"):n.classList.add("brx-sub-submenu-overflow-right")}else m<0&&(n.style.left=p?"0":"100%",n.style.right="auto")}}}});function bricksSubmenuPosition(){setTimeout(function(){bricksSubmenuPositionFn.run()},arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}function bricksSubmenuWindowResizeHandler(){var e,t,n,r=function(){var r=window.innerWidth,i=window.innerHeight,o=document.body.clientWidth;r===e&&o===n||(clearTimeout(t),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.classList.remove("brx-submenu-positioned")}),t=setTimeout(bricksSubmenuPosition,250),e=r,n=o)},i=function(){var t=window.innerWidth,o=window.innerHeight;requestAnimationFrame(function(){t===window.innerWidth&&o===window.innerHeight?(e=t,n=document.body.clientWidth,window.addEventListener("resize",r)):i()})};i(),window.bricksData&&!window.bricksData.bodyResizeObserver&&(window.bricksData.bodyResizeObserver=new ResizeObserver(function(e){var t,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){t.value.contentRect.width!==n&&r()}}catch(e){i.e(e)}finally{i.f()}}),window.bricksData.bodyResizeObserver.observe(document.body))}function bricksMultilevelMenu(){bricksQuerySelectorAll(document,".brxe-nav-nested.multilevel").forEach(function(e){var t=e.getAttribute("data-back-text");e.querySelectorAll(".brxe-dropdown").forEach(function(e){e.classList.add("brx-has-multilevel"),e.setAttribute("data-toggle","click"),e.setAttribute("data-back-text",t)})}),bricksQuerySelectorAll(document,".brx-has-multilevel").forEach(function(e){var t=e.getAttribute("data-back-text")||"Back";bricksQuerySelectorAll(e,"ul").forEach(function(e,n){if(0!==n){var r=document.createElement("a");r.classList.add("brx-multilevel-back"),r.setAttribute("href","#"),r.innerText=t;var i=document.createElement("li");i.classList.add("menu-item"),i.appendChild(r),e.insertBefore(i,e.firstChild),r.addEventListener("click",function(e){e.preventDefault();var t=e.target.closest(".active");if(t){t.classList.remove("open"),t.classList.remove("active");var n=t.querySelector(".brx-submenu-toggle > button");n&&n.setAttribute("aria-expanded",!1);var r=t.parentNode.closest(".open");if(r){r.classList.add("active");var i=r.querySelector("ul");i&&bricksFocusOnFirstFocusableElement(i)}}})}})})}function bricksNavMenuMobile(){var e=bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle");if(e.length){var t=new MutationObserver(function(e){bricksSetVh(),e.forEach(function(e){e.target.classList.contains("show-mobile-menu")?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")})});e.forEach(function(e){var n=e.closest(".brxe-nav-menu");t.observe(n,{attributes:!0,attributeFilter:["class"]})});var n=null;document.addEventListener("click",function(e){var t=e.target.closest(".bricks-mobile-menu-toggle");if(t){var r=t.closest(".brxe-nav-menu");r.classList.toggle("show-mobile-menu");var i=r.classList.contains("show-mobile-menu"),o=i?window.bricksData.i18n.closeMobileMenu:window.bricksData.i18n.openMobileMenu;t.setAttribute("aria-expanded",i),t.setAttribute("aria-label",o),i?(n=document.activeElement,setTimeout(function(){bricksFocusOnFirstFocusableElement(r.querySelector(".bricks-mobile-menu-wrapper")),r.addEventListener("keydown",function(e){r.classList.contains("show-mobile-menu")&&bricksTrapFocus(e,r)})},100)):n&&n.focus()}}),document.addEventListener("click",function(e){var t=e.target.closest(".brxe-nav-menu");if(t){var n=t.querySelector(".bricks-mobile-menu-toggle");if(e.target.classList.contains("bricks-mobile-menu-overlay"))t.classList.remove("show-mobile-menu"),t.querySelector(".bricks-mobile-menu-toggle").setAttribute("aria-expanded",!1),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu);else if(e.target.closest(".bricks-mobile-menu-wrapper")){var r="A"===e.target.tagName?e.target.getAttribute("href"):"";r.length>1&&r.includes("#")&&(t.classList.remove("show-mobile-menu"),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu))}}}),document.addEventListener("keyup",function(e){if("Escape"===e.key){var t=document.querySelector(".brxe-nav-menu.show-mobile-menu");if(t){t.classList.remove("show-mobile-menu");var n=t.querySelector(".bricks-mobile-menu-toggle");n&&(n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu),setTimeout(function(){n.focus()},10))}}})}}var bricksBackToTopFn=new BricksFunction({parentNode:document,selector:".brxe-back-to-top",eachElement:function(e){e.hasAttribute("data-move-focus-to-top")&&document.body.setAttribute("tabindex","-1"),e.addEventListener("click",function(t){if(t.preventDefault(),window.scrollTo({top:0,behavior:e.hasAttribute("data-smooth-scroll")?"smooth":"auto"}),e.hasAttribute("data-move-focus-to-top")){var n=e.hasAttribute("data-smooth-scroll")?100:0;setTimeout(function(){document.body.focus({preventScroll:!0})},n)}});var t=e.dataset.visibleAfter||0,n=e.classList.contains("up");if(t||n){var r=0;window.addEventListener("scroll",function(){var i=document.documentElement.scrollTop,o=!0;n&&(o=!(i>r),r=i),(o=!!(window.scrollY>t&&o))?e.classList.add("visible"):e.classList.remove("visible")})}}});function bricksBackToTop(){bricksBackToTopFn.run()}function bricksGetFocusables(e){var t=e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not
97([tabindex="-1"])');return Array.prototype.filter.call(t,function(e){return!e.hasAttribute("inert")&&!e.closest("[inert]")&&"none"!==window.getComputedStyle(e).display})}function bricksGetVisibleFocusables(e){return bricksGetFocusables(e).filter(function(e){return e.getClientRects().length>0&&"visible"===window.getComputedStyle(e).visibility&&!e.matches(":disabled")&&e.tabIndex>=0})}var bricksIsFrontend,bricksPauseMediaFn=new BricksFunction({parentNode:document,selector:'video, audio, iframe[src*="youtube"], iframe[src*="vimeo"]',subscribeEvents:["bricks/popup/close"],forceReinit:!0,eachElement:function(e){if("VIDEO"!==e.tagName&&"AUDIO"!==e.tagName||!e.pause||"function"!=typeof e.pause){if("IFRAME"===e.tagName){var t=e.getAttribute("src"),n=t.includes("youtube"),r=n?{event:"command",func:"pauseVideo",args:""}:{method:"pause"};if(t.includes("vimeo")||n)return void e.contentWindow.postMessage(JSON.stringify(r),"*")}}else e.pause()},listenerHandler:function(e){var t;if(null!=e&&e.type&&"bricks/popup/close"===e.type){var n=null==e||null===(t=e.detail)||void 0===t?void 0:t.popupElement;n&&bricksPauseMediaFn.run({parentNode:n})}}}),bricksAnchorLinksFn=new BricksFunction({parentNode:document,selector:'a[data-brx-anchor][href*="#"]',frontEndOnly:!0,eachElement:function(e){var t,n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\/+$/,"")||"/"},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.closest(".menu-item")||!1;t?(e.setAttribute("aria-current","page"),n&&e.closest(".menu-item").classList.add("current-menu-item")):(e.removeAttribute("aria-current"),n&&e.closest(".menu-item").classList.remove("current-menu-item"))},i=window.location.hash||!1;if(i&&i.length>1){var o=function(e){try{return new URL(e.getAttribute("href"),window.location.href)}catch(e){return!1}}(e),a=!(null==o||!o.hash)&&o.hash.substring(1);if(a&&a===i.substring(1)&&((t=o)&&t.origin===window.location.origin&&n(t.pathname)===n(window.location.pathname))){var s=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;if(s)s.querySelectorAll(".menu-item").forEach(function(e){var t=e.querySelectorAll("a:not([data-brx-anchor])");t.length>0&&(e.classList.remove("current-menu-item"),t.forEach(function(e){e.removeAttribute("aria-current")}))});r(e)}}e.addEventListener("click",function(t){var n=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;n&&n.querySelectorAll(".menu-item").forEach(function(e){e.classList.remove("current-menu-item"),e.querySelectorAll('a[aria-current="page"]').forEach(function(e){e.removeAttribute("aria-current")})});r(e)})}});function bricksAnchorLinks(){bricksAnchorLinksFn.run()}function bricksGetQueryResult(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){if(e)if("function"==typeof window.bricksUtils.getFiltersForQuery){var o=window.bricksData.queryLoopInstances[e]||!1;if(o){n||bricksUtils.maybeAbortXhr(e);var a=window.bricksData.restApiUrl.concat("query_result"),s=window.bricksUtils.getFiltersForQuery(e,"filterId"),c=window.bricksUtils.getSelectedFiltersForQuery(e),l=window.bricksUtils.getDynamicTagsForParse(e),d="[]"===(null==o?void 0:o.originalQueryVars)?null==o?void 0:o.queryVars:null==o?void 0:o.originalQueryVars,u={postId:window.bricksData.postId,queryElementId:e,originalQueryVars:d,pageFilters:window.bricksData.pageFilters||!1,filters:s,selectedFilters:c,afTags:l,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(a=a.concat("?lang="+window.bricksData.language)),window.bricksData.queryLoopInstances[e].isLoading=1,n||window.bricksData.queryLoopInstances[e].xhrAborted||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:e,isPopState:t}}));var p=new XMLHttpRequest;window.bricksData.queryLoopInstances[e].xhr=p,p.open("POST",a,!0),p.setRequestHeader("Content-Type","application/json; charset=UTF-8"),p.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),p.onreadystatechange=function(){if(p.readyState===XMLHttpRequest.DONE){var t;window.bricksData.queryLoopInstances[e].xhr===p&&(window.bricksData.queryLoopInstances[e].xhr=null,window.bricksData.queryLoopInstances[e].xhrAborted=!1);var o,a=p.status;try{o=JSON.parse(p.response)}catch(e){return void i("Invalid response from server")}if(0===a||a>=200&&a<400){var s;window.bricksData.queryLoopInstances[e].isLoading=0;var c=(null===(s=o)||void 0===s?void 0:s.error)||!1;c?(console.error("error: bricksGetQueryResult",c),i(c)):r(o),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:e}})),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/completed",{detail:{queryId:e}}))}else"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)?n?i("Nonce verification failed after refresh"):bricksRegenerateNonceAndRetryQuery(e).then(r).catch(i):i("Request failed with status ".concat(a))}},p.send(JSON.stringify(u))}else i("Query instance not found")}else i("Query filters JS not loaded");else i("No queryId provided")})}function bricksRegenerateNonceAndRetryQuery(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}if(i.success&&i.data){window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce;
97bricksGetQueryResult(e,!1,!0).then(t).catch(n)}else n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}function bricksDisplayQueryResult(e,t){var n,r=(null==t?void 0:t.html)||!1,i=(null==t?void 0:t.styles)||!1,o=(null==t?void 0:t.popups)||!1,a=(null==t?void 0:t.updated_query)||!1,s=(null==t?void 0:t.updated_filters)||!1,c=(null==t?void 0:t.parsed_af_tags)||!1,l=window.bricksData.queryLoopInstances[e]||!1,d=(null==l?void 0:l.resultsContainer)||!1;if(l&&d){var u=(null==l?void 0:l.componentId)||!1,p=bricksUtils.getQueryTrailSelectorId(e,u),b=d.querySelector(".bricks-gutter-sizer"),v=d.querySelector(".bricks-isotope-sizer"),f=d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")),m=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(t){return t.nodeValue==="brx-loop-start-".concat(e)}}).nextNode(),g=f.length>0||m;if(g&&d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),r)if(g){if(m){var y=r.match(/<\s*([a-z0-9]+)([^>]+)?>/i),k=null;(k=!y||"td"!==y[1]&&"tr"!==y[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=r;var w=Array.from(k.childNodes);
97w.reverse(),w.forEach(function(e){var t,n;m.nextSibling?null===(t=m.parentNode)||void 0===t||t.insertBefore(e,m.nextSibling):null===(n=m.parentNode)||void 0===n||n.appendChild(e)}),k.remove()}}else d.insertAdjacentHTML("beforeend",r);if(b&&d.appendChild(b),v&&d.appendChild(v),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(e,'"]')).forEach(function(e){return e.remove()}),o&&document.body.insertAdjacentHTML("beforeend",o),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:e}})),i){var h=document.querySelector("#brx-query-styles-".concat(e));h||((h=document.createElement("style")).id="brx-query-styles-".concat(e),document.body.appendChild(h)),h.innerHTML=i}if(a&&bricksUtils.updateQueryResultStats(e,"query",a),c&&window.bricksUtils.updateParsedDynamicTags(e,c),void 0!==(null==a||null===(n=a.query_vars)||void 0===n?void 0:n.paged)&&(window.bricksData.queryLoopInstances[e].page=parseInt(a.query_vars.paged)),void 0!==(null==a?void 0:a.max_num_pages)&&(window.bricksData.queryLoopInstances[e].maxPages=parseInt(a.max_num_pages)),void 0!==(null==a?void 0:a.start)&&(window.bricksData.queryLoopInstances[e].start=parseInt(a.start)),void 0!==(null==a?void 0:a.end)&&(window.bricksData.queryLoopInstances[e].end=parseInt(a.end)),s)for(var x in s){var S=s[x],L=window.bricksData.filterInstances[x]||!1;if(L&&("search"!==L.filterType&&"datepicker"!==L.filterType)){var E=document.createElement("div");E.innerHTML=S;var I=E.childNodes[0];"select"===L.filterType&&L.choicesInstance&&"function"==typeof L.choicesInstance.destroy&&(L.choicesInstance.destroy(),I=I.querySelector("select.brxe-filter-select")),L.filterElement.replaceWith(I),L.filterElement=I,E.remove()}}bricksUtils.hideOrShowLoadMoreButtons(e),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:e}})),l.infiniteScroll&&setTimeout(function(){var t,n=Array.from(null===(t=l.resultsContainer)||void 0===t?void 0:t.querySelectorAll(".brxe-".concat(p,":not(.brx-popup)"))).pop();n&&(n.dataset.queryElementId=e,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:l.observerMargin}))},250)}}function bricksGetYouTubeVideoLinkData(e){if(!e)return{url:"",id:null};var t=e.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|shorts\/|live\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);if(t&&t[1]){var n=t[1],r="https://www.youtube.com/embed/".concat(n);try{var i=new URL(e),o=new URLSearchParams(i.search);o.delete("v");var a=o.toString();a&&(r+="?"+a)}catch(e){console.warn("Failed to parse URL parameters:",e)}return{url:r,id:n}}return{url:e,id:null}}function bricksSetVh(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--bricks-vh","".concat(e,"px"))}function bricksRunAllFunctions(){window.bricksFunctions&&window.bricksFunctions.forEach(function(e){e.run&&"function"==typeof e.run&&e.run()})}var bricksTimeouts={};document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend=document.body.classList.contains("bricks-is-frontend"),bricksBlockEditorIntegration(),bricksNavMenu(),bricksMultilevelMenu(),bricksNavMenuMobile(),bricksStickyHeader(),bricksOnePageNavigation(),bricksSkipLinks(),bricksFacebookSDK(),bricksSearchToggle(),bricksPopups(),bricksSwiper(),bricksSplide(),bricksSplideListeners(),bricksPhotoswipe(),bricksTinyMCE(),bricksPrettify(),bricksAccordion(),bricksAnimatedTyping(),bricksAudio(),bricksCountdown(),bricksCounter(),bricksTableOfContents(),bricksPricingTables(),bricksVideo(),bricksLazyLoad(),bricksAnimation(),bricksMotionParallax(),bricksPieChart(),bricksPostReadingProgressBar(),bricksProgressBar(),bricksForm(),bricksInitQueryLoopInstances(),bricksQueryPagination(),bricksInteractions(),bricksAlertDismiss(),bricksTabs(),bricksVideoOverlayClickDetector(),bricksBackgroundVideoInit(),bricksPostReadingTime(),bricksBackToTop(),bricksMapLeaflet(),bricksNavNested(),bricksOffcanvas(),bricksToggle(),bricksToggleMode(),bricksSubmenuListeners(),bricksSubmenuPosition(250),bricksAjaxLoader(),bricksQueryResultsA11y(),bricksAnchorLinks(),bricksUtils.imageGalleryLoadMoreSync("all"),bricksGalleryInfiniteScroll(),bricksUtils.imageGalleryLoadMoreButtonVisibility("all"),bricksIsotope(),bricksIsotopeListeners(),window.addEventListener("load",bricksSubmenuWindowResizeHandler),window.addEventListener("resize",function(){Object.keys(bricksT
97imeouts).forEach(function(e){clearTimeout(bricksTimeouts[e])}),bricksIsFrontend?(bricksTimeouts.bricksVh=setTimeout(bricksSetVh,250),bricksTimeouts.bricksSwiperBreakpoints=setTimeout(bricksSwiperUpdateBreakpoints,250)):(bricksTimeouts.bricksSwiper=setTimeout(bricksSwiper,250),bricksTimeouts.bricksSplide=setTimeout(bricksSplide,250)),bricksTimeouts.tabsAdjustLayoutOnMobile=setTimeout(bricksTabsAccordionLayoutOnMobile,250),bricksTimeouts.bricksMotionParallax=setTimeout(bricksMotionParallax,150),bricksTimeouts.bricksToggleDisplay=setTimeout(bricksToggleDisplay,100),bricksTimeouts.bricksNavMenuMobileToggleDisplay=setTimeout(bricksNavMenuMobileToggleDisplay,100)}),["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.imageGalleryLoadMoreSync("all")})}),setTimeout(function(){var e;(Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[]).find(function(e){return"scroll"===(null==e?void 0:e.trigger)})&&document.addEventListener("scroll",bricksScrollInteractions)},100)});function _s(e,t,o,n){void 0===t&&(t=400),void 0===n&&(n=!1),e.style.overflow="hidden",n&&(e.style.display="flex");var r,i=window.getComputedStyle(e),a=parseFloat(i.getPropertyValue("height")),p=
97parseFloat(i.getPropertyValue("padding-top")),l=parseFloat(i.getPropertyValue("padding-bottom")),d=parseFloat(i.getPropertyValue("margin-top")),f=parseFloat(i.getPropertyValue("margin-bottom")),u=a/t,s=p/t,y=l/t,c=d/t,m=f/t;function g(i){void 0===r&&(r=i);var x=i-r;n?(e.style.height=u*x+"px",e.style.paddingTop=s*x+"px",e.style.paddingBottom=y*x+"px",e.style.marginTop=c*x+"px",e.style.marginBottom=m*x+"px"):(e.style.height=a-u*x+"px",e.style.paddingTop=p-s*x+"px",e.style.paddingBottom=l-y*x+"px",e.style.marginTop=d-c*x+"px",e.style.marginBottom=f-m*x+"px"),x>=t?(e.style.height="",e.style.paddingTop="",e.style.paddingBottom="",e.style.marginTop="",e.style.marginBottom="",e.style.overflow="",n||(e.style.display="none"),"function"==typeof o&&o()):window.requestAnimationFrame(g)}window.requestAnimationFrame(g)}function xExtrasRegisterAJAXHandler(e,t=!1,o=!1){let n=function(n){if("function"!=typeof window[e]){console.warn("BricksExtras: Function "+e+" not found. Make sure it's defined before AJAX events are triggered.");return}if(void 0===n.detail.queryId){if(void 0===n.detail.popupElement)return;window[e](n.detail.popupElement)}setTimeout(()=>{if(document.querySelector(".brxe-"+n.detail.queryId))t?o&&document.querySelector(".brxe-"+n.detail.queryId).closest(o)?window[e](document.querySelector(".brxe-"+n.detail.queryId).closest(o).parentElement,!0):window[e](document.querySelector(".brxe-"+n.detail.queryId).parentElement,!0):window[e](document.querySelector(".brxe-"+n.detail.queryId).parentElement);else{let r=document.createTreeWalker(document.body,NodeFilter.SHOW_COMMENT,null,!1);for(;r.nextNode();){let i=r.currentNode;i.nodeValue.includes("brx-loop-start-"+n.detail.queryId)&&(t?window[e](i.parentNode,!0):window[e](i.parentNode))}}},0)};return document.addEventListener("bricks/ajax/load_page/completed",n),document.addEventListener("bricks/ajax/pagination/completed",n),document.addEventListener("bricks/ajax/popup/loaded",n),document.addEventListener("bricks/ajax/end",n),n}function xProcessBricksColor(e){if(!e)return!1;let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(o){return e}if(t.raw&&t.raw.startsWith("var")){let n=t.raw.replace(/^var\(([^)]+)\)$/,"$1"),r=getComputedStyle(document.documentElement).getPropertyValue(n).trim();return r||!1}return t.raw?t.raw:e.hex?e.hex:e.rgb?e.rgb:!!e.hsl&&e.hsl}function xBricksExtrasElementsInit(e){"function"==typeof doExtrasAccordion&&doExtrasAccordion(e),"function"==typeof doExtrasSlider&&doExtrasSlider(e),"function"==typeof doExtrasReadmore&&setTimeout(()=>{doExtrasReadmore(e)},100),"function"==typeof doExtrasLightbox&&doExtrasLightbox(e,!0),"function"==typeof doExtrasSocialShare&&doExtrasSocialShare(e),"function"==typeof doExtrasOffCanvas&&doExtrasOffCanvas(e),"function"==typeof doExtrasModal&&doExtrasModal(e),"function"==typeof doExtrasPopover&&doExtrasPopover(e),"function"==typeof doExtrasTabs&&doExtrasTabs(e),"function"==typeof doExtrasLottie&&doExtrasLottie(e,!0),"function"==typeof doExtrasMediaPlayer&&doExtrasMediaPlayer(e),"function"==typeof doExtrasMediaPlayer?doExtrasMediaPlayer(e):"function"==typeof xDoMediaPlayerLoad&&xDoMediaPlayerLoad(),"function"==typeof doExtrasCopyToClipBoard&&doExtrasCopyToClipBoard(e),"function"==typeof doExtrasCopyToClipBoardPopover&&doExtrasCopyToClipBoardPopover(e),"function"==typeof doExtrasParallax&&doExtrasParallax(e),"function"==typeof doExtrasTilt&&doExtrasTilt(e),"function"==typeof doExtrasInteractions&&doExtrasInteractions(e),"function"==typeof doExtrasTable&&doExtrasTable(e),"function"==typeof doExtrasChart&&doExtrasChart(e),"function"==typeof doExtrasBeforeAfterImage&&doExtrasBeforeAfterImage(e),"function"==typeof doExtrasCountdown&&doExtrasCountdown(e),"function"==typeof doExtrasImageHotspots&&doExtrasImageHotspots(e),"function"==typeof doExtrasToggleSwitch&&doExtrasToggleSwitch(e),"function"==typeof doExtrasFavorite&&(doExtrasFavorite(e),"function"==typeof doExtrasFavoritePopover&&doExtrasFavoritePopover(e))}if(HTMLElement.prototype.xslideToggle=function(e,t){0===this.clientHeight?_s(this,e,t,!0):_s(this,e,t)},HTMLElement.prototype.xslideUp=function(e,t){_s(this,e,t)},HTMLElement.prototype.xslideDown=function(e,t){_s(this,e,t,!0)},!window.xColorSchemeObserverAdded){window.xColorSchemeObserverAdded=!0;let e=new MutationObserver(e=>
vendor: 5,073 bytes, lines 97-98
97{e.forEach(e=>{"attributes"===e.type&&"data-brx-theme"===e.attributeName&&document.dispatchEvent(new Event("x-color-scheme-change"))})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-brx-theme"]})};/*! Select2 4.0.9 | https://github.com/select2/select2/blob/master/LICENSE.md */
98!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,w;function b(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(b(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!b(m,e)&&!b(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,w=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(b(m,o)||b(v,o)||b(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(m,e)||b(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
98);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}
vendor: 4,850 bytes, line 98
98),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
98se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.options.get("disabled")){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}
vendor: 9,230 bytes, line 98
98),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
98V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;
vendor: 8,882 bytes, line 98
98s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:message",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("select",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("unselect",function(){r._positionDropdown(),r._resizeDropdown()}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.
98select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,w,b,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=w:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptC
98ontainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}
98d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(i,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){i.each(e,t._syncA),i.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
98,d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];i.isArray(t)&&(t=i.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=i('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});let cmplz_cookie_data=[],cmplzCleanCookieInterval;function cmplz_log(...e){"undefined"!=typeof complianz&&complianz.debug&&console.warn(...e)}function cmplz_create_element(e,t){e=document.createElement(e);return e.innerHtml=t,e}function cmplz_add_event(e,t,c){document.addEventListener(e,e=>{e.target.closest(t)&&c(e)})}function cmplz_is_hidden(e){return null===e.offsetParent}function cmplz_html_decode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function cmplz_sanitize_placeholder_html(e){var t=document.createElement("template");return t.innerHTML=String(e||""),t.content.querySelectorAll("script, iframe, object, embed, link, style, base, meta").forEach(e=>{e.remove()}),t.content.querySelectorAll("*").forEach(n=>
98{Array.from(n.attributes).forEach(e=>{var t,c=e.name.toLowerCase();0!==c.indexOf("on")&&(t=e.value.trim(),"href"!==c&&"src"!==c&&"xlink:href"!==c||!/^\s*(javascript:|data:)/i.test(t))||n.removeAttribute(e.name)})}),t.innerHTML}function cmplz_is_safe_script_src(e){if("string"!=typeof e)return!1;e=e.trim();if(!e)return!1;try{var t=new URL(e,window.location.href);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function cmplz_trap_focus(){var e;cmplz_banner&&(cmplz_original_active_element=cmplz_banner.ownerDocument.activeElement,complianz.soft_cookiewall&&document.body.classList.add("cmplz-banner-active"),document.addEventListener("keydown",cmplz_handle_tab_navigation),0<(e=cmplz_banner.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).length)&&e[0].focus()}function cmplz_handle_tab_navigation(e){var t,c,n,o;"Tab"===e.key&&cmplz_banner&&(0===(c=Array.from(cmplz_banner.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(function(e){return null!==e.offsetParent})).length?e.preventDefault():(t=c[0],c=c[c.length-1],n=cmplz_banner.ownerDocument.activeElement,o=cmplz_banner.contains(n),e.shiftKey?o&&n!==t||(e.preventDefault(),c.focus()):o&&n!==c||(e.preventDefault(),t.focus())))}function cmplz_release_focus_trap(){document.removeEventListener("keydown",cmplz_handle_tab_navigation),document.body.classList.remove("cmplz-banner-active");var e=cmplz_banner_trigger_source;if(cmplz_banner_trigger_source="page-load","manage-consent"===e){if(cmplz_original_active_element&&cmplz_original_active_element.focus)try{cmplz_original_active_element.focus()}catch(e){document.body.focus()}}else cmplz_last_input_was_keyboard&&(document.querySelector('a[href="#content"], a[href="#main"], a[href="#main-content"], .skip-link')||document.body).focus()}function cmplzLoadConsentAreaContent(e,r){document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(t=>{let c=t.getAttribute("data-category"),n=t.getAttribute("data-service");var o=t.getAttribute("data-post_id"),a=t.getAttribute("data-block_id");if(e===c||r===n){let e=new XMLHttpRequest;e.open("GET",complianz.url+"consent-area/"+o+"/"+a,!0),e.setRequestHeader("Content-type","application/json"),e.send(),t.classList.remove("cmplz-placeholder"),e.onload=function(){t.innerHTML=JSON.parse(e.response),t.querySelectorAll("script").forEach(e=>{cmplz_run_script(e.innerHTML,c,n,"inline",e)})}}})}document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(e=>{e.addEventListener("click",e=>{let t=e.target;(t=t.classList.contains("cmplz-consent-area")?t:e.target.closest(".cmplz-consent-area.cmplz-placeholder"))&&(cmplz_set_service_consent(e=t.getAttribute("data-service"),!0),cmplzLoadConsentAreaContent(!1,e),cmplz_enable_category(null,e),cmplz_set_banner_status("dismissed"))}),document.addEventListener("cmplz_enable_category",function(e){cmplzLoadConsentAreaContent(e.detail.category,e.detail.service)})}),document.addEventListener("cmplz_manage_consent_container_loaded",function(){var e,t=window.location.href;-1!==t.indexOf("#")&&(e=-1!==t.lastIndexOf("?")?t.lastIndexOf("?"):void 0,t=t.substring(t.indexOf("#")+1,e),e=document.getElementById(t))&&(t=e.getBoundingClientRect().top+window.pageYOffset-200,window.scrollTo({top:t,behavior:"smooth"}))}),complianz.locale=complianz.locale+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),(()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),c}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})();let cmplz_banner,cmplz_banner_container=document.getElementById("cmplz-cookiebanner-container"),cmplz_manage_consent_button,cmplz_waiting_inline_scripts=[],cmplz_waiting_scripts=[],cmplz_fired_scripts=[],cmplz_placeholder_class_index=0,cmplz_all_scripts_hook_fired=!1,cmplz_consent_stored_once=!1,cmplz_fired_category_events=["functional"],cmplz_fired_service_events=[],cmplz_categories=["functional","preferences","statistics","marketing"],cmplz_original_active_element=null,cmplz_banner_trigger_source="page-load",cmplz_last_input_was_keyboard=!1,cmplz_set_category_as_body_class=(document.addEventListener("keydown",function(){cmplz_last_input_was_keyboard=!0},!0),document.addEventListener("pointerdown",function(){cmplz_last_input_was_keyboard=!1},!0),window.cmplz_get_cookie=function(t){if("undefined"!=typeof document){t=complianz.prefix+t;var c=document.cookie.split(";");for(let e=0;e<c.length;e++){var n=c[e].trim();if(n.startsWith(t+"="))return n.substring(t.length+1)}}return""},window.cmplz_set_cookie=function(e,t,c){var n,o,a,r;"undefined"!=typeof document&&(c=void 0===c||c,n="https:"===window.location.protocol?";
98secure":"",(o=new Date).setTime(o.getTime()+24*complianz.cookie_expiry*60*60*1e3),o=";expires="+o.toGMTString(),a=0<(a=cmplz_get_cookie_domain()).length?";domain="+a:"",c=c?complianz.prefix:"",r=cmplz_get_cookie_path(),document.cookie=""+c+e+`=${t};SameSite=Lax${n}${o}${a};path=`+r)},window.cmplz_in_array=function(e,t){return t.includes(e)},window.cmplz_highest_accepted_category=function(){var t=cmplz_accepted_categories(),c=["marketing","statistics","preferences"];for(let e=0;e<c.length;e++)if(cmplz_in_array(c[e],t))return c[e];return"functional"},()=>{let c=document.body.classList;for(let e=c.length-1;0<=e;e--)c[e].startsWith("cmplz-")&&"cmplz-document"!==c[e]&&c.remove(c[e]);var e=cmplz_accepted_categories(),e=(Object.values(e).forEach(e=>{"string"==typeof e&&c.add("cmplz-"+e)}),cmplz_get_all_service_consents()),e=(Object.entries(e).forEach(([e,t])=>{t&&c.add("cmplz-"+e)}),c.add("cmplz-"+complianz.region,"cmplz-"+complianz.consenttype),new CustomEvent("cmplz_set_category_as_bodyclass"));document.dispatchEvent(e)}),cmplz_append_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.setAttribute("type","text/css"),c.appendChild(document.createTextNode(e)),t.appendChild(c)},cmplz_load_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=e,t.appendChild(c)};function cmplz_run_script(t,c,n,e,o){var a=document.createElement("script");if("inline"!==e&&cmplz_is_safe_script_src(t)?a.src=t:("string"!=typeof t&&(t=t.innerHTML),a.textContent=[t,"cmplzScriptLoaded();"].join("\n")),!cmplz_in_array(t,cmplz_fired_scripts)){cmplzCopyAttributes(o,a);try{"inline"!==e?a.onload=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)}:window.cmplzScriptLoaded=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)},document.head.appendChild(a)}catch(e){throw cmplz_run_after_all_scripts(c,n),"Something went wrong "+e+" while loading "+t}}}function cmplz_maybe_run_waiting_scripts(e,t,c,n){var o=cmplz_get_waiting_script(cmplz_waiting_scripts,e),o=(o&&cmplz_run_script(o,t,c,"src",n),cmplz_get_waiting_script(cmplz_waiting_inline_scripts,e));o&&cmplz_run_script(o,t,c,"inline",n)}let cmplzLazyLoader=()=>{var e=document.querySelectorAll(".cmplz-blocked-content-container");let t=new IntersectionObserver((e,n)=>{e.forEach(e=>{var t,c;e.isIntersecting&&((t=(e=e.target).getAttribute("data-placeholder-image"))&&(c=e.getAttribute("data-placeholder_class_index"),cmplz_append_css(".cmplz-placeholder-"+c+" {background-image: url("+t+") !important;}"),cmplz_set_blocked_content_container_aspect_ratio(e,t,c)),n.unobserve(e))})});e.forEach(e=>{t.observe(e)})};function cmplz_set_blocked_content_container(){document.querySelectorAll(".cmplz-image").forEach(e=>{var t,c,n,o;e.classList.contains("cmplz-processed")||(e.classList.add("cmplz-processed"),t=e.getAttribute("data-service"),c=e.getAttribute("data-category"),(n=e.parentElement).classList.add("cmplz-blocked-content-container"),o=n.getAttribute("data-placeholder_class_index"),"lazy"===e.getAttribute("loading")&&(e.removeAttribute("loading"),e.setAttribute("data-deferlazy",1)),null===o&&(cmplz_placeholder_class_index++,n.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),n.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(n,c,t)))}),document.querySelectorAll(".cmplz-placeholder-element").forEach(t=>{if(!t.classList.contains("cmplz-processed")){t.classList.add("cmplz-processed");var c=t.getAttribute("data-service"),n=t.getAttribute("data-category");let e;null===(e=t.classList.contains("cmplz-iframe")?("lazy"===t.getAttribute("loading")&&(t.removeAttribute("loading"),t.setAttribute("data-deferlazy",1)),t.parentElement):t).getAttribute("data-placeholder_class_index")&&(cmplz_placeholder_class_index++,e.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),e.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(e,n,c),n=t.getAttribute("data-placeholder-image"))&&void 0!==n&&n.length&&e.setAttribute("data-placeholder-image",n)}}),cmplzLazyLoader(),cmplz_has_consent("statistics")&&cmplz_enable_category("statistics"),cmplz_has_consent("marketing")&&cmplz_enable_category("marketing")}function cmplz_insert_placeholder_text(e,n,o){if(!e.querySelector(".cmplz-blocked-content-notice")){let t=complianz.placeholdertext;n=n||"marketing";let c;if(void 0!==t){if(1===Number(complianz.clean_cookies)){let e=o?o.replace("-"," "):"";e=e.charAt(0).toUpperCase()+e.slice(1),t=t.replace("{service}
98",e),(c=cmplz_create_element("div",t)).innerHTML=cmplz_sanitize_placeholder_html(t),c.classList.add("cmplz-blocked-content-notice");var a=c.querySelector("button"),a=(a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{service}",e)),complianz.page_links[complianz.region]),r=c.querySelector(".cmplz-links a");a&&a.hasOwnProperty("cookie-statement")?(r.setAttribute("href",a["cookie-statement"].url),"{title}"===r.innerText&&(r.innerText=a["cookie-statement"].title)):r&&(r.parentElement.style.display="none")}else{a=cmplz_create_element("button",""),r=complianz.categories.hasOwnProperty(n)?complianz.categories[n]:"marketing";a.innerText=t.replace("{category}",r),a.classList.add("cmplz-blocked-content-notice","cmplz-accept-category","cmplz-accept-"+n),a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{category}",n)),c=a}("VIDEO"!==e.tagName?e:e.parentElement).appendChild(c)}}}function cmplz_set_blocked_content_container_aspect_ratio(t,c,n){var e;null!=t&&((e=new Image).addEventListener("load",function(){var e=this.naturalWidth||1,e=this.naturalHeight*(t.clientWidth/e),e=-1===c.indexOf("placeholder.jpg")?"height:"+e+"px;":"";cmplz_append_css(".cmplz-placeholder-"+n+" {"+e+"}")}),e.src=c)}let cmplzResizeTimer;function cmplz_enable_category(o,a){1===Number(complianz.tm_categories)&&""!==o&&cmplz_run_tm_event(o);var t={},t=(t.category=o,t.categories=cmplz_accepted_categories(),t.region=complianz.region,new CustomEvent("cmplz_before_category",{detail:t}));if(document.dispatchEvent(t),a=void 0!==a?a:"do_not_match","functional"!==(o=""===o?"do_not_match":o)){"marketing"===o&&cmplz_set_integrations_cookies();let e;e="do_not_match"!==a?'.cmplz-blocked-content-notice [data-service="'+a+'"]':1!==Number(complianz.clean_cookies)?".cmplz-blocked-content-notice.cmplz-accept-"+o:'.cmplz-blocked-content-notice [data-category="'+o+'"]',document.querySelectorAll(e).forEach(e=>{var t=e.getAttribute("data-service");e.parentNode.classList.contains("cmplz-blocked-content-notice")&&(e=e.parentNode),cmplz_is_service_denied(t)||e.parentNode.removeChild(e)}),document.querySelectorAll('[data-category="'+o+'"], [data-service="'+a+'"]').forEach(t=>{var e=t.getAttribute("data-service");if(!cmplz_is_service_denied(e)&&"functional"!==t.getAttribute("data-category")&&!t.classList.contains("cmplz-activated")){var e=t.tagName;if("LINK"===e){t.classList.add("cmplz-activated");var c=t.getAttribute("data-href");cmplz_load_css(c,o)}else if("IMG"===e){t.classList.add("cmplz-activated");c=t.getAttribute("data-src-cmplz");t.setAttribute("src",c),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),cmplz_remove_placeholder(t)}else if("IFRAME"===e){t.classList.add("cmplz-activated");let e=t.getAttribute("data-src-cmplz");c=t.getAttribute("data-cmplz-target")?t.getAttribute("data-cmplz-target"):"src";"1"===cmplz_get_url_parameter(t.getAttribute(c),"autoplay")&&(e+="&autoplay=1"),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),t.addEventListener("load",()=>{cmplz_remove_placeholder(t)}),t.setAttribute(c,e)}else t.classList.contains("cmplz-placeholder-element")&&(t.classList.add("cmplz-activated"),e=t.getAttribute("data-placeholder_class_index"),t.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+e))}});t=document.querySelectorAll('script[data-category="'+o+'"], script[data-service="'+a+'"]');t.forEach(e=>{var t=e.getAttribute("data-waitfor"),c=e.getAttribute("data-cmplz-src");t&&(c?cmplz_waiting_scripts[t]=c:0<e.innerText.length&&(cmplz_waiting_inline_scripts[t]=e)),e.parentElement&&e.parentElement.removeChild(e)}),t.forEach(e=>{var t,c,n=e.getAttribute("type");!e.classList.contains("cmplz-activated")&&n&&"text/javascript"!==n&&(e.classList.add("cmplz-activated"),(n=e.getAttribute("data-cmplz-src"))?(e.removeAttribute("type"),cmplz_is_waiting_script(cmplz_waiting_scripts,n)||(e.getAttribute("data-post_scribe_id")?(t="#"+e.getAttribute("data-post_scribe_id"),(c=document.querySelector(t))&&(c.innerHtml(""),postscribe(t,"<script src="+n+"><\/script>"))):cmplz_run_script(n,o,a,"src",e))):0<e.innerText.length&&(cmplz_is_
98waiting_script(cmplz_waiting_inline_scripts,e.innerText)||cmplz_run_script(e.innerText,o,a,"inline",e)))}),cmplz_run_after_all_scripts(o,a)}}function cmplz_remove_placeholder(e){var t,c=e.closest(".cmplz-blocked-content-container");c&&(t=c.getAttribute("data-placeholder_class_index"),c.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+t)),e.classList.remove("cmplz-iframe-styles","cmplz-iframe","video-wrap")}function cmplz_get_waiting_script(e,t){for(var c in e){var n;if(e.hasOwnProperty(c))if(-1!==t.indexOf(c))return n=e[c],delete e[c],n}return!1}function cmplz_array_is_empty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function cmplz_is_waiting_script(t,c){for(var n in t)if(t.hasOwnProperty(n)){let e=t[n];if("string"!=typeof e&&(e=e.innerText),-1!==c.indexOf(e)||-1!==e.indexOf(c))return!0}return!1}function cmplz_run_after_all_scripts(e,t){var c="do_not_match"!==t&&!cmplz_in_array(t,cmplz_fired_service_events),n="do_not_match"!==e&&!cmplz_in_array(e,cmplz_fired_category_events);(n||c)&&(n&&cmplz_fired_category_events.push(e),c&&cmplz_fired_service_events.push(t),(n={}).category=e,n.service=t,n.categories=cmplz_accepted_categories(),n.services=cmplz_get_all_service_consents(),n.region=complianz.region,c=new CustomEvent("cmplz_enable_category",{detail:n}),document.dispatchEvent(c)),!cmplz_all_scripts_hook_fired&&cmplz_array_is_empty(cmplz_waiting_inline_scripts)&&cmplz_array_is_empty(cmplz_waiting_scripts)&&(n=new CustomEvent("cmplz_run_after_all_scripts",{detail:e,service:t}),document.dispatchEvent(n),cmplz_all_scripts_hook_fired=!0)}window.addEventListener("resize",function(){clearTimeout(cmplzResizeTimer),cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},!0),1===Number(complianz.block_ajax_content)&&setInterval(function(){cmplz_set_blocked_content_container()},2e3);let cmplz_fired_events=[];function cmplz_run_tm_event(e){-1===cmplz_fired_events.indexOf(e)&&(cmplz_fired_events.push(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cmplz_event_"+e}),e=new CustomEvent("cmplz_tag_manager_event",{detail:e}),document.dispatchEvent(e))}function cmplz_fire_before_categories_consent(e){var t={},e=(t.categories=e,t.region=complianz.region,new CustomEvent("cmplz_before_categories_consent",{detail:t}));document.dispatchEvent(e)}function cmplz_check_cookie_policy_id(){var e=cmplz_get_cookie("policy_id");e&&parseInt(complianz.current_policy_id)!==parseInt(e)&&(cmplz_deny_all(),cmplz_set_banner_status("show"),cmplz_clear_cookies("cmplz"))}function cmplz_do_not_track(){var e="doNotTrack"in navigator&&"1"===navigator.doNotTrack,t="globalPrivacyControl"in navigator&&navigator.globalPrivacyControl;return!(!complianz.do_not_track_enabled||!t&&!e)}function cmplz_get_services_on_page(){let c=[];return document.querySelectorAll("[data-service]").forEach(e=>{var t=e.getAttribute("data-service"),e=e.getAttribute("data-category");-1===c.indexOf(t)&&c.push({category:e,service:t})}),c}function cmplzEnsureBannerCss(){var e="cmplz-banner-"+complianz.user_banner_id+"-"+complianz.consenttype+"-css",e=document.getElementById(e);if(e&&"stylesheet"===e.rel)return e.sheet&&e.sheet.disabled&&(e.sheet.disabled=!1),e;var t,e=complianz.css_file.replace("{type}",complianz.consenttype).replace("{banner_id}",complianz.user_banner_id);-1!==complianz.css_file.indexOf("cookiebanner/css/defaults/banner")&&cmplz_log("Fallback default css file used. Please re-save banner settings, or check file writing permissions in uploads directory");let c=e.split("?")[0].split("/").pop(),n=null;return document.querySelectorAll('link[rel="stylesheet"]').forEach(function(e){e.href.split("?")[0].split("/").pop()===c&&(n=e)}),n?(n.sheet&&n.sheet.disabled&&(n.sheet.disabled=!1),n):((t=document.createElement("link")).href=e,t.type="text/css",t.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(t),t)}function cmplzSyncConsentState(){var e=document.querySelectorAll(".cmplz-cookiebanner");1<e.length&&e.forEach(function(e){e.closest("[data-wp-router-region]")&&e.remove()});let t="dismissed"===cmplz_get_banner_status();document.querySelectorAll(".cmplz-cookiebanner").forEach(function(e){e.classList.toggle("cmplz-show",!t),e.classList.toggle("cmplz-dismissed",t)});e=document.querySelectorAll("#cmplz-manage-consent");Array.prototype.some.call(e,function(e){return!e.closest("[data-wp-router-region]")})&&e.forEach(function(e){e.closest("[data-wp-router-region]")&&e.remove()})}function cmplzInitNavigationHook(){if(document.querySelector("[data-wp-router-region]")){let e=function(){cmplzEnsureBannerCss(),cmplzSyncConsentState()};
98if("module"===complianz.iapi_nav)document.addEventListener("cmplz_router_navigated",e);else{let c=function(){requestAnimationFrame(function(){e(),setTimeout(e,150)})};["pushState","replaceState"].forEach(function(e){let t=history[e];history[e]=function(){var e=t.apply(this,arguments);return c(),e}}),window.addEventListener("popstate",c)}}}function cmplz_is_bot(){var e=new RegExp("(googlebot/|Googlebot-Mobile|Google-InspectionTool|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),t=navigator.userAgent;return e.test(t)}function cmplz_is_speedbot(){var e=navigator.userAgent;return new RegExp("(GTmetrix|pingdom|pingbot|Lighthouse)","i").test(e)}function cmplz_exists_service_consent(){var e,t=cmplz_get_cookie("consented_services");try{for(var c in e=JSON.parse(t))if(e.hasOwnProperty(c)&&!0===e[c])return!0}catch(e){}return!1}function cmplz_set_service_consent(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}n[e]=t,cmplz_set_cookie("consented_services",JSON.stringify(n));c={},c.service=e,c.value=t,c.region=complianz.region,cmplz_all_scripts_hook_fired=!1,e=new CustomEvent("cmplz_status_change_service",{detail:c});document.dispatchEvent(e)}function cmplz_clear_all_service_consents(){cmplz_set_cookie("consented_services","")}function cmplz_get_all_service_consents(){var e=cmplz_get_cookie("consented_services");let t;try{t=JSON.parse(e)}catch(e){t={}}return t}function cmplz_get_cookie_path(){return void 0!==complianz.cookie_path&&""!==complianz.cookie_path?complianz.cookie_path:"/"}function cmplz_get_cookie_domain(){return 1===Number(complianz.set_cookies_on_root)&&3<complianz.cookie_domain.length&&!complianz.cookie_domain.includes("localhost")?complianz.cookie_domain:""}function cmplz_reload_browser_compatible(){var e;-1<navigator.userAgent.toLowerCase().indexOf("firefox")?((e=new 
98URL(window.location.href)).searchParams.set("cmplz-force-reload",Date.now().toString()),window.location.href=e.toString()):window.location.reload()}window.cmplz_accept_all=function(){for(var e in cmplz_clear_all_service_consents(),cmplz_fire_before_categories_consent(cmplz_categories),cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"allow");cmplz_sync_category_checkboxes()},window.cmplz_deny_all=function(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"deny");let t=!1;"functional"===cmplz_highest_accepted_category()&&!cmplz_exists_service_consent()||(t=!0),cmplz_clear_cookies("cmplz_service")&&(t=!0),cmplz_clear_all_service_consents(),cmplz_integrations_revoke(),cmplz_fire_categories_event(),cmplz_track_status();var c=new CustomEvent("cmplz_revoke",{detail:t});document.dispatchEvent(c),!complianz.tcf_active&&t&&cmplz_reload_browser_compatible()},window.conditionally_show_banner=function(){complianz=cmplz_merge_object(complianz,cmplz_user_data),cmplz_maybe_auto_redirect(),cmplz_set_blocked_content_container(),window.wp_consent_type=complianz.consenttype;var e,t,c,n=new CustomEvent("wp_consent_type_defined"),o=(document.dispatchEvent(n),n=new CustomEvent("cmplz_before_cookiebanner"),document.dispatchEvent(n),1===Number(complianz.forceEnableStats)&&"optin"===complianz.consenttype&&cmplz_set_consent("statistics","allow"),cmplz_categories.reverse()),a=[];for(e in o)o.hasOwnProperty(e)&&(t=cmplz_categories[e],cmplz_has_consent(t))&&a.push(t);for(c in cmplz_fire_before_categories_consent(a),a)o.hasOwnProperty(c)&&cmplz_enable_category(a[c]);if(cmplz_exists_service_consent()){cmplz_enable_category("","general");var r,l,i,s=cmplz_get_services_on_page();for(r in s)s.hasOwnProperty(r)&&(l=s[r].service,i=s[r].category,cmplz_has_service_consent(l,i))&&(document.querySelectorAll('.cmplz-accept-service[data-service="'+l+'"]').forEach(e=>{e.checked=!0}),cmplz_enable_category("",l))}cmplz_sync_category_checkboxes(),cmplz_integrations_init(),cmplz_check_cookie_policy_id(),cmplz_set_up_auto_dismiss(),cmplz_load_manage_consent_container(),n=new CustomEvent("cmplz_cookie_banner_data",{detail:complianz}),document.dispatchEvent(n),""===cmplz_get_cookie("saved_categories")&&("optin"!==complianz.consenttype&&"optout"!==complianz.consenttype?cmplz_track_status():cmplz_do_not_track()&&cmplz_track_status("do_not_track")),cmplz_set_category_as_body_class(),cmplz_fire_categories_event(),cmplz_do_not_track()?(cmplz_log("global privacy control or do not track detected: no banner."),cmplz_track_status("do_not_track")):("optin"===complianz.consenttype?(complianz.forceEnableStats&&cmplz_enable_category("statistics"),cmplz_log("opt-in"),show_cookie_banner):"optout"===complianz.consenttype?(cmplz_log("opt-out"),show_cookie_banner):(cmplz_log("other consent type, no cookie warning"),cmplz_accept_all))()},window.show_cookie_banner=function(){let t=complianz.disable_cookiebanner||cmplz_is_speedbot(),e=!1;(document.querySelector("#cmplz-manage-consent-container")||document.querySelector(".cmplz-dropdown-cookiepolicy"))&&(e=!0);var c=document.getElementById("cmplz-cookiebanner-container");c&&document.body.prepend(c);let n=complianz.page_links[complianz.region];(cmplz_banner=document.querySelector(".cmplz-cookiebanner.banner-"+complianz.user_banner_id+"."+complianz.consenttype))||(t=!0),cmplz_manage_consent_button=document.querySelector("#cmplz-manage-consent .cmplz-manage-consent.manage-consent-"+complianz.user_banner_id);function o(){var e;t||(cmplz_banner.classList.remove("cmplz-hidden"),cmplz_manage_consent_button.classList.remove("cmplz-hidden"),"show"===cmplz_get_banner_status()&&(cmplz_trap_focus(),e=cmplz_banner.querySelector(".cmplz-close"))&&e.focus())}c=cmplzEnsureBannerCss(),t||((!c||!c.sheet)&&c?(c.addEventListener("load",o),setTimeout(o,500)):o()),cmplz_banner&&!t&&(cmplz_banner.querySelectorAll(".cmplz-links a:not(.cmplz-external), .cmplz-buttons a:not(.cmplz-external)").forEach(e=>{var t,c=e;for(t in c.classList.add("cmplz-hidden"),n)n.hasOwnProperty(t)&&c.classList.contains(t)&&(c.setAttribute("href",n[t].url+c.getAttribute("data-relative_url")),"{title}"===c.innerText&&(c.innerText=cmplz_html_decode(n[t].title)),c.classList.remove("cmplz-hidden"))}),cmplz_set_banner_status(),e)&&(cmplz_banner.classList.remove("cmplz-show"),cmplz_banner.classList.add("cmplz-dismissed"),cmplz_manage_consent_button.classList.remove("cmplz-dismissed"),cmplz_manage_consent_button.classList.add("cmplz-show")),c=new CustomEvent("cmplz_cookie_warning_loaded",{detail:complianz.region});document.dispatchEvent(c)},window.cmplz_get_banner_status=function(){return cmplz_get_cookie("banner-status")},window.cmplz_set_banner_status=function(e){let t=cmplz_get_cookie("banner-status");(e=void 0!==e?e:t)!==t&&cmplz_set_cookie("banner-status",e),0===e.length&&(e="show"),t="show"===e?"dismissed":"show",cmplz_banner&&0<e.length&&(cmplz_banner.classList.remove("cmplz-"+t),cmplz_banner.classList.add("cmplz-"+e),cmplz_manage_consent_button)&&(cmplz_manage_consent_button.classList.add("cmplz-"+t),cmplz_manage_consent_button.classList.remove("cmplz-"+e)),cmplz_banner_container&&complianz.soft_cookiewall&&(cmplz_banner_container.classList.remove("cmplz-"+t),cmplz_banner_container.classList.add("cmplz-"+e,"cmplz-soft-cookiewall"));var c=new CustomEvent("cmplz_banner_status",{detail:e});document.dispatchEvent(c),cmplz_start_clean(),"show"===e?(cmplz_trap_focus(),(c=cmplz_banner.querySelector(".cmplz-close"))&&c.focus()):cmplz_release_focus_trap()},window.cmplz_has_consent=function(e){if(cmplz_is_bot())return!0;
98if("functional"===e)return!0;let t,c;return t=cmplz_do_not_track()?(c=cmplz_get_cookie(e),"allow"===c):(c=cmplz_get_cookie(e),("optout"===complianz.consenttype||"other"===complianz.consenttype)&&""===c||"allow"===c)},window.cmplz_is_service_denied=function(e){var t=cmplz_get_cookie("consented_services");let c;try{c=JSON.parse(t)}catch(e){c={}}return!!c.hasOwnProperty(e)&&!c[e]},window.cmplz_has_service_consent=function(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}return n.hasOwnProperty(e)?n[e]:cmplz_has_consent(t)},window.cmplz_set_consent=function(e,t){cmplz_set_accepted_cookie_policy_id(),t="functional"===e?"allow":t;var c,n=cmplz_get_cookie(e);let o="allow"===t;document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=o}),n!==t&&(cmplz_set_cookie(e,t),"allow"===t&&cmplz_enable_category(e),cmplz_wp_set_consent(e,t),"statistics"===e&&cmplz_wp_set_consent("statistics-anonymous","allow"),(c=new Object).category=e,c.value=t,c.region=complianz.region,c.categories=cmplz_accepted_categories(),cmplz_all_scripts_hook_fired=!1,c=new CustomEvent("cmplz_status_change",{detail:c}),document.dispatchEvent(c),"marketing"===e)&&"deny"===t&&"allow"===n&&(cmplz_integrations_revoke(),setTimeout(function(){cmplz_reload_browser_compatible()},500))};let cmplz_user_data=[];if("undefined"!=typeof Storage&&sessionStorage.cmplz_user_data&&(cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)),1!==Number(complianz.geoip)||0!==cmplz_user_data.length&&cmplz_user_data.version===complianz.version&&cmplz_user_data.banner_version===complianz.banner_version)conditionally_show_banner();else{let e=new XMLHttpRequest,t=cmplz_get_url_parameter(window.location.href,"cmplz_user_region");t=t?"&cmplz_user_region="+t:"",e.open("GET",complianz.url+"banner?"+complianz.locale+t,!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_user_data=JSON.parse(e.response),sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data),conditionally_show_banner()}}if(cmplzInitNavigationHook(),1===Number(complianz.store_consent)){let e=cmplz_get_cookie("id"),t="",c="";"undefined"!=typeof Storage&&sessionStorage.cmplz_id&&(t=JSON.parse(sessionStorage.cmplz_id)),0===e.length&&0<t.length&&(c=t,cmplz_set_cookie("id",c)),0<e.length&&0===t.length&&(c=e),"undefined"!=typeof Storage&&(sessionStorage.cmplz_id=JSON.stringify(c))}function cmplz_track_status_end(){cmplz_consent_stored_once||cmplz_track_status()}function cmplz_set_up_auto_dismiss(){if("dismissed"!==cmplz_get_banner_status()){if("optout"===complianz.consenttype&&1===Number(complianz.dismiss_on_scroll)){let e=function(){window.pageYOffset>Math.floor(400)&&(window.removeEventListener("scroll",e),this.onWindowScroll=null,"dismissed"!==cmplz_get_banner_status())&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())};window.addEventListener("scroll",e)}var e=parseInt(complianz.dismiss_timeout);"optout"===complianz.consenttype&&0<e&&window.setTimeout(function(){"dismissed"!==cmplz_get_banner_status()&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())},Math.floor(e))}}function cmplz_fire_categories_event(){var e=new Object,e=(e.category=cmplz_highest_accepted_category(),e.categories=cmplz_accepted_categories(),e.region=complianz.region,new CustomEvent("cmplz_fire_categories",{detail:e}));document.dispatchEvent(e)}function cmplz_track_status(e){let t=[];e=void 0!==e&&e;var c=new CustomEvent("cmplz_track_status",{detail:e});document.dispatchEvent(c),t=e?[e]:cmplz_accepted_categories(),cmplz_set_category_as_body_class();let n,o;try{n=JSON.parse(cmplz_get_cookie("saved_categories"))}catch(e){n={}}try{o=JSON.parse(cmplz_get_cookie("saved_services"))}catch(e){o={}}var c=cmplz_get_all_service_consents();cmplz_equals(n,t)&&cmplz_equals(o,c)||1!==Number(complianz.store_consent)||cmplz_is_bot()||cmplz_is_speedbot()||(cmplz_set_cookie("saved_categories",JSON.stringify(t)),cmplz_set_cookie("saved_services",JSON.stringify(c)),cmplz_consent_stored_once=!0,e={consented_categories:t,consented_services:c,consenttype:window.wp_consent_type},(c=new XMLHttpRequest).open("POST",complianz.url+"track",!0),c.setRequestHeader("Content-type","application/json"),c.send(JSON.stringify(e)))}function cmplz_accepted_categories(){let e=cmplz_categories,t=[];for(var c in e)e.hasOwnProperty(c)&&(c=e[c],cmplz_has_consent(c))&&t.pu
98sh(c);return e=e.filter(function(e){return cmplz_in_array(e,t)})}function cmplz_sync_category_checkboxes(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],cmplz_has_consent(e)||"functional"===e?document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!0}):document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!1})),document.querySelectorAll(".cmplz-accept-service").forEach(e=>{var t=e.getAttribute("data-service"),c=e.getAttribute("data-category");cmplz_has_service_consent(t,c)?e.checked=!0:cmplz_is_service_denied(t)?e.checked=!1:e.checked=!!cmplz_has_consent(c)})}function cmplz_merge_object(e,t){var c,n,o={};for(c in t)t.hasOwnProperty(c)&&(o[c]=t[c]);for(n in e)t.hasOwnProperty(n)&&void 0!==t[n]||e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function cmplz_clear_cookies(t){if("undefined"==typeof document)return!1;let a=!1,r="https:"===window.location.protocol?";secure":"",l="expires="+(new Date).toGMTString(),i=location.pathname.replace(/^\/|\/$/g,"").split("/");return document.cookie.split("; ").forEach(function(e){let n=e.split(";")[0].split("=")[0];if(-1!==n.indexOf(t)){a=!0;let c=window.location.hostname.split(".");var o=1<c.length;for(i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e+"/"});0<c.length;){let t="."+c.join(".");
98c.shift(),o&&1===c.length&&c.shift(),i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e+"/"})}}}),cmplz_set_accepted_cookie_policy_id(),a}function cmplz_set_accepted_cookie_policy_id(){cmplz_set_cookie("policy_id",complianz.current_policy_id)}function cmplz_integrations_init(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&"1"===t[e][1]&&cmplz_set_cookie(e,t[e][1],!1)}function cmplz_integrations_revoke(){var e,t,c=complianz.set_cookies;for(e in c)c.hasOwnProperty(e)&&(t=c[e][1],cmplz_set_cookie(e,t,!1),0===Number(t))&&cmplz_clear_cookies(e)}function cmplz_set_integrations_cookies(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&cmplz_set_cookie(e,t[e][0],!1)}function cmplz_get_url_parameter(e,t){if(e&&void 0!==e&&-1!==e.indexOf("?")){e=e.split("?")[1];if(e){var c=e.split("&");for(let e=0;e<c.length;e++){var n=c[e].split("=");if(n[0]===t)return void 0===n[1]||decodeURIComponent(n[1])}}}return!1}function cmplz_maybe_auto_redirect(){var e=cmplz_get_url_parameter(window.location.href,"cmplz_region_redirect"),t=cmplz_get_url_parameter(window.location.href,"cmplz-region");e&&!t&&(e=window.location.href.split("#")[0]+"&cmplz-region="+complianz.region,t=window.location.hash,window.location.href=e+t)}function cmplz_wp_set_consent(e,t){"function"==typeof wp_set_consent&&wp_set_consent(e,t)}function cmplz_start_clean(){if(1===Number(complianz.clean_cookies))if((cmplz_cookie_data="undefined"!=typeof Storage?JSON.parse(sessionStorage.getItem("cmplz_cookie_data")):cmplz_cookie_data)&&0!==cmplz_cookie_data.length)cmplz_setup_clean_interval();else{let e=new XMLHttpRequest;e.open("GET",complianz.url+"cookie_data",!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_cookie_data=JSON.parse(e.response),sessionStorage.setItem("cmplz_cookie_data",JSON.stringify(cmplz_cookie_data)),cmplz_setup_clean_interval()}}}function cmplz_do_cleanup(){var e;for(e of["preferences","statistics","marketing"])if(!cmplz_has_consent(e)&&cmplz_cookie_data.hasOwnProperty(e)){var t,c,n=cmplz_cookie_data[e];for(t in n)if(!cmplz_has_service_consent(t,e))for(c of n[t])cmplz_clear_cookies(c),cmplz_clear_storage(c)}}function cmplz_setup_clean_interval(){!cmplz_cookie_data||cmplzCleanCookieInterval||(cmplz_do_cleanup(),cmplzCleanCookieInterval=setInterval(cmplz_do_cleanup,1e3))}function cmplz_clear_storage(e){"undefined"!=typeof Storage&&(localStorage.getItem(e)&&localStorage.removeItem(e),sessionStorage.getItem(e))&&sessionStorage.removeItem(e)}function cmplz_load_manage_consent_container(){let c=document.querySelector(".cmplz-manage-consent-container");if(c){let t=new XMLHttpRequest;t.open("GET",complianz.url+"manage_consent_html?"+complianz.locale,!0),t.setRequestHeader("Content-type","application/json"),t.send(),t.onload=function(){var e=JSON.parse(t.response);c.insertAdjacentHTML("beforeend",e),cmplz_sync_category_checkboxes();document.querySelector("#cmplz-manage-consent-container-nojavascript").style.display="none",c.style.display="block";e=new CustomEvent("cmplz_manage_consent_container_loaded");document.dispatchEvent(e)}}}function cmplz_equals(c,n){if("object"!=typeof c||null===c||Array.isArray(c)||"object"!=typeof n||null===n||Array.isArray(n)){if(Array.isArray(c)||(c=Object.keys(c),n=Object.keys(n)),!c||!n)return!1;if(c.length!==n.length)return!1;for(let e=0,t=c.length;e<t;e++)if(c[e]instanceof Array&&n[e]instanceof Array){if(!cmplz_equals(c[e],n[e]))return!1}else if(c[e]!==n[e])return!1}else{var e;for(e of[...new Set([...Object.keys(c),...Object.keys(n)])])if(c[e]!==n[e])return!1}return!0}function cmplzCopyAttributes(e,t){let c=["type","data-service","data-category","async"];Array.from(e.attributes).forEach(e=>{"data-script-type"===e.nodeName&&"module"===e.nodeValue?(t.setAttribute("type","module"),t.removeAttribute("data-script-type")):c.includes(e.nodeName)||t.setAttribute(e.nodeName,e.nodeValue)})}document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&cmplz_track_status_end()}),window.addEventListener("pagehide",cmplz_track_status_end,!1),window.addEventListener("beforeunload",cmplz_track_status_end,!1),document.addEventListener("cmplz_consent_action",function(e){cmplz_set_consent(e.detail.category,"allow"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept",function(e){e.preventDefault(),setTimeout(()=>{cmplz_accept_all(),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()},0)}),cmplz_add_event("click",".cmplz-accept-category, .cmplz-accept-marketing",function(e){e.preventDefault();var e=e.target,t=e.getAttribute("data-service"),e=e.getAttribute("data-category")||"marketing";1===Number(complianz.clean_cookies)&&void 0!==t&&t?(cmplz_set_service_consent(t,!0),cmplz_enable_category("","general"),cmplz_enable_category("",t)):cmplz_set_consent(e,"allow"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept-service",function(e){var e=e.target;"INPUT"!==e.tagName&&(void 0!==(e=e.getAttribute("data-service"))&&(cmplz_set_service_consent(e,!0),cmplz_enable_category("","general"),cmplz_enable_category("",e)),cmplz_fire_categories_event(),cmplz_track_status())}),cmplz_add_event("change",".cmplz-accept-service",function(e){var t=e.target,c=t.tagName,n=t.getAttribute("data-service");void 0!==n&&("INPUT"===c?(cmplz_set_banner_status("dismissed"),t.checked?(cmplz_set_service_consent(n,!0),cmplz_enable_category("",n)):(cmplz_set_service_consent(n,!1),setTimeout(function(){cmplz_reload_browser_compatible()},500))):(e.preventDefault(),cmplz_set_service_consent(n,!0),cmplz_enable_category("","general"),cmplz_enable_category("",n),setTimeout(function(){cmplz_reload_browser_compatible()},500))),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-save-preferences",function(e){var t,c,n,o,a,e=e.target,r=(cmplz_banner=e.closest(".cmplz-cookiebanner"),[]);for(t in cmplz_categories)cmplz_categories.hasOwnProperty(t)&&(c=cmplz_categories[t],n=cmplz_banner.querySelector("input.cmplz-"+c))&&n.checked&&r.push(c);for(o in cmplz_fire_before_categories_consent(r),cmplz_categories)cmplz_categories.hasOwnProperty(o)&&(a=cmplz_categories[o],r.includes(a)?cmplz_set_consent(a,"allow"):cmplz_set_consent(a,"deny"));cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-close",function(){cmplz_set_banner_status("dismissed")}),cmplz_add_event("click",".cmplz-view-preferences",function(e){var e=e.target;(cmplz_banner=e.closest(".cmplz-cookiebanner")).querySelector(".cmplz-categories").classList.contains("cmplz-fade-in")?(cmplz_banner.classList.remove("cmplz-categories-v
98isible"),cmplz_banner.querySelector(".cmplz-categories").classList.remove("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="block",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="none"):(cmplz_banner.classList.add("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.add("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="none",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="block",(e=cmplz_banner.querySelector(".cmplz-categories .cmplz-category"))&&(e=e.querySelector(".cmplz-category-toggle"))&&e.focus())}),cmplz_add_event("click",".cmplz-category-toggle",function(e){var t,e=e.target.closest(".cmplz-category-toggle");e&&(t="true"===e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded",String(!t)),e=e.closest(".cmplz-category"))&&(e=e.querySelector(".cmplz-description"))&&(e.hidden=t)}),cmplz_add_event("change",".cmplz-manage-consent-container .cmplz-category",function(){for(var e in cmplz_categories){var t;cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],t=document.querySelector(".cmplz-manage-consent-container input.cmplz-"+e))&&(t.checked?cmplz_set_consent(e,"allow"):cmplz_set_consent(e,"deny"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())}}),cmplz_add_event("click",".cmplz-deny",function(e){e.preventDefault(),cmplz_set_banner_status("dismissed"),cmplz_deny_all()}),cmplz_add_event("click","button.cmplz-manage-settings",function(e){e.preventDefault();var e=document.querySelector(".cmplz-cookiebanner .cmplz-categories"),t=document.querySelector(".cmplz-save-settings"),c=document.querySelector("button.cmplz-manage-settings");cmplz_is_hidden(e)?(t.style.display="block",c.style.display="none",e.style.display="block"):(t.style.display="none",c.style.display="block",e.style.display="none")}),cmplz_add_event("click","button.cmplz-manage-consent",function(e){e.preventDefault(),cmplz_banner_trigger_source="manage-consent",cmplz_set_banner_status("show")}),cmplz_add_event("keypress",".cmplz-banner-slider label",function(e){32===(e.keyCode||e.which)&&e.target.click()}),cmplz_add_event("keypress",".cmplz-cookiebanner .cmplz-header .cmplz-close",function(e){13===(e.keyCode||e.which)&&e.target.click()});let cmplz_has_wp_video=document.querySelector(".cmplz-wp-video-shortcode"),cmplz_times_checked=0;void 0!==window.jQuery&&jQuery(document).ready(function(i){if(cmplz_has_wp_video){document.addEventListener("cmplz_enable_category",function(){t()});let e=setInterval(function(){cmplz_times_checked+=1,document.querySelector(".cmplz-wp-video-shortcode")&&cmplz_times_checked<100?t():clearInterval(e)},500)}function t(){if(document.querySelector(".cmplz-wp-video-shortcode")){var e,t,n,o=cmplz_accepted_categories(),a=cmplz_get_all_service_consents(),r=[];for(e in o)if(o.hasOwnProperty(e)){var l=o[e];if("functional"===l)break;r.push('.cmplz-wp-video-shortcode[data-category="'+l+'"]')}for(t in a)a.hasOwnProperty(t)&&r.push('.cmplz-wp-video-shortcode[data-service="'+t+'"]');n=r.join(",");let c=!1;0<n.length&&document.querySelectorAll(n).forEach(e=>{c=!0,e.setAttribute("controls","controls"),e.classList.add("wp-video-shortcode","cmplz-processed"),e.classList.remove("cmplz-wp-video-shortcode"),e.closest(".cmplz-wp-video").classList.remove("cmplz-wp-video");var t=e.closest(".wp-video").querySelector(".cmplz-blocked-content-notice");t&&t.parentElement.removeChild(t),e.classList.remove("cmplz-blocked-content-container")}),c&&(window.wp.mediaelement?window.wp.mediaelement.initialize():(n={videoWidth:"100%",videoHeight:"100%",enableAutosize:!0},i(".wp-video-shortcode").mediaelementplayer(n)))}}function c(e){e=i(e);"function"==typeof e.parent().fitVids&&e.parent().fitVids()}document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)}),document.addEventListener("cmplz_enable_category",function(){document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)})})});function xBurgerTrigger(){if(document.querySelector("body > .brx-body.iframe"))return;let e=function(e){e.querySelectorAll(".brxe-xburgertrigger").forEach(e
vendor: 28,278 bytes, lines 98-104
98=>{!e.hasAttribute("data-x-ready")&&(e.setAttribute("aria-expanded","false"),e.setAttribute("data-x-ready","true"),e.addEventListener("click",function r(){"true"==e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","false"),e.querySelector(".x-hamburger-box")&&e.querySelector(".x-hamburger-box").classList.remove("is-active")):(e.setAttribute("aria-expanded","true"),e.querySelector(".x-hamburger-box")&&e.querySelector(".x-hamburger-box").classList.add("is-active"))}))})};e(document),xExtrasRegisterAJAXHandler("extrasBurgerTrigger"),window.extrasBurgerTrigger=e}document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend&&xBurgerTrigger()});function _defineProperties(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _createClass(n,t,e){return t&&_defineProperties(n.prototype,t),e&&_defineProperties(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}
99/*!
100 * Splide.js
101 * Version  : 4.1.4
102 * License  : MIT
103 * Copyright: 2022 Naotoshi Fujita
104 */!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Splide=t()}(this,function(){"use strict";var n="(prefers-reduced-motion: reduce)",t={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function e(n){n.length=0}function i(n,t,e){return Array.prototype.slice.call(n,t,e)}function r(n){return n.bind.apply(n,[null].concat(i(arguments,1)))}var o=setTimeout,u=function(){};function a(n){return requestAnimationFrame(n)}function s(n,t){return typeof t===n}function c(n){return!p(n)&&s("object",n)}var f=Array.isArray,l=r(s,"function"),d=r(s,"string"),v=r(s,"undefined");function p(n){return null===n}function h(n){try{return n instanceof(n.ownerDocument.defaultView||window).HTMLElement}catch(n){return!1}}function g(n){return f(n)?n:[n]}function m(n,t){g(n).forEach(t)}function y(n,t){return n.indexOf(t)>-1}function b(n,t){return n.push.apply(n,g(t)),n}function w(n,t,e){n&&m(t,function(t){t&&n.classList[e?"add":"remove"](t)})}function E(n,t){w(n,d(t)?t.split(" "):t,!0)}function S(n,t){m(t,n.appendChild.bind(n))}function x(n,t){m(n,function(n){var e=(t||n).parentNode;e&&e.insertBefore(n,t)})}function P(n,t){return h(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function C(n,t){var e=n?i(n.children):[];return t?e.filter(function(n){return P(n,t)}):e}function k(n,t){return t?C(n,t)[0]:n.firstElementChild}var _=Object.keys;function L(n,t,e){return n&&(e?_(n).reverse():_(n)).forEach(function(e){"__proto__"!==e&&t(n[e],e)}),n}function A(n){return i(arguments,1).forEach(function(t){L(t,function(e,i){n[i]=t[i]})}),n}function D(n){return i(arguments,1).forEach(function(t){L(t,function(t,e){f(t)?n[e]=t.slice():c(t)?n[e]=D({},c(n[e])?n[e]:{},t):n[e]=t})}),n}function M(n,t){m(t||_(n),function(t){delete n[t]})}function z(n,t){m(n,function(n){m(t,function(t){n&&n.removeAttribute(t)})})}function N(n,t,e){c(t)?L(t,function(t,e){N(n,e,t)}):m(n,function(n){p(e)||""===e?z(n,t):n.setAttribute(t,String(e))})}function O(n,t,e){var i=document.createElement(n);return t&&(d(t)?E(i,t):N(i,t)),e&&S(e,i),i}function T(n,t,e){if(v(e))return getComputedStyle(n)[t];p(e)||(n.style[t]=""+e)}function I(n,t){T(n,"display",t)}function F(n){n.setActive&&n.setActive()||n.focus({preventScroll:!0})}function j(n,t){return n.getAttribute(t)}function R(n,t){return n&&n.classList.contains(t)}function W(n){return n.getBoundingClientRect()}function X(n){m(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function G(n){return k((new DOMParser).parseFromString(n,"text/html").body)}function B(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function H(n,t){return n&&n.querySelector(t)}function Y(n,t){return t?i(n.querySelectorAll(t)):[]}function q(n,t){w(n,t,!1)}function U(n){return n.timeStamp}function K(n){return d(n)?n:n?n+"px":""}var J="splide",V="data-"+J;function Q(n,t){if(!n)throw new Error("["+J+"] "+(t||""))}var Z=Math.min,$=Math.max,nn=Math.floor,tn=Math.ceil,en=Math.abs;function rn(n,t,e){return en(n-t)<e}function on(n,t,e,i){var r=Z(t,e),o=$(t,e);return i?r<n&&n<o:r<=n&&n<=o}function un(n,t,e){var i=Z(t,e),r=$(t,e);return Z($(i,n),r)}function an(n){return+(n>0)-+(n<0)}function sn(n,t){return m(t,function(t){n=n.replace("%s",""+t)}),n}function cn(n){return n<10?"0"+n:""+n}var fn={};function ln(){var n=[];function t(n,t,e){m(n,function(n){n&&m(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");e(n,i[0],i[1])})})})}return{bind:function(e,i,r,o){t(e,i,function(t,e,i){var u="addEventListener"in t,a=u?t.removeEventListener.bind(t,e,r,o):t.removeListener.bind(t,r);u?t.addEventListener(e,r,o):t.addListener(r),n.push([t,e,i,r,a])})},unbind:function(e,i,r){t(e,i,function(t,e,i){n=n.filter(function(n){return!!(n[0]!==t||n[1]!==e||n[2]!==i||r&&n[3]!==r)||(n[4](),!1)})})},dispatch:function(n,t,e){var i,r=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:r,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,e),n.dispatchEvent(i),i},destroy:function(){n.forEach(function(n){n[4]()}),e(n)}}}var dn="mounted",vn="ready",pn="move",hn="moved",gn="click",mn="active",yn="inactive",bn="visible",wn="hidden",En="refresh",Sn="updated",xn="resize",Pn="resized",Cn="scroll",kn="scrolled",_n="destroy",Ln="arrows:mounted",An="navigation:mounted",Dn="autoplay:play",Mn="autoplay:pause",zn="lazyload:loaded",Nn="sk",On="sh",Tn="ei";function In(n){var t=n?n.event.bus:document.createDocumentFragment(),e=ln();return n&&n.event.on(_n,e.destroy),A(e,{bus:t,on:function(n,i){e.bind(t,g(n).join(" "),function(n){i.apply(i,f(n.detail)?n.detail:[])})},off:r(e.unbind,t),emit:function(n){e.dispatch(t,n,i(arguments,1))}})}function Fn(n,t,e,i){var r,o,u=Date.now,s=0,c=!0,f=0;function l(){if(!c){if(s=n?Z((u()-r)/n,1):1,e&&e(s),s>=1&&(t(),r=u(),i&&++f>=i))return d();o=a(l)}}function d(){c=!0}function v(){o&&cancelAnimationFrame(o),s=0,o=0,c=!0}return{start:function(t){t||v(),r=u()-(t?s*n:0),c=!1,o=a(l)},rewind:function(){r=u(),s=0,e&&e(s)},pause:d,cancel:v,set:function(t){n=t},isPaused:function(){return c}}}var jn="Arrow",Rn=jn+"Left",Wn=jn+"Right",Xn=jn+"Up",Gn=jn+"Down",Bn="ttb",Hn={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Xn,Wn],ArrowRight:[Gn,Rn]};var Yn="role",qn="tabindex",Un="aria-",Kn=Un+"controls",Jn=Un+"current",Vn=Un+"selected",Qn=Un+"label",Zn=Un+"labelledby",$n=Un+"hidden",nt=Un+"orientation",tt=Un+"roledescription",et=Un+"live",it=Un+"busy",rt=Un+"atomic",ot=[Yn,qn,"disabled",Kn,Jn,Qn,Zn,$n,nt,tt],ut=J+"__",at="is-",st=J,ct=ut+"track",ft=ut+"list",lt=ut+"slide",dt=lt+"--clone",vt=lt+"__container",pt=ut+"arrows",ht=ut+"arrow",gt=ht+"--prev",mt=ht+"--next",yt=ut+"pagination",bt=yt+"__page",wt=ut+"progress"+"__bar",Et=ut+"toggle",St=ut+"sr",xt=at+"initialized",Pt=at+"active",Ct=at+"prev",kt=at+"next",_t=at+"visible",Lt=at+"loading",At=at+"focus-in",Dt=at+"overflow",Mt=[Pt,_t,Ct,kt,Lt,At,Dt],zt={slide:lt,clone:dt,arrows:pt,arrow:ht,prev:gt,next:mt,pagination:yt,page:bt,spinner:ut+"spinner"};var Nt="touchstart mousedown",Ot="touchmove mousemove",Tt="touchend touchcancel mouseup click";var It="slide",Ft="loop",jt="fade";function Rt(n,t,e,i){var o,u=In(n),a=u.on,s=u.emit,c=u.bind,f=n.Components,l=n.root,d=n.options,v=d.isNavigation,p=d.updateOnMove,h=d.i18n,g=d.pagination,m=d.slideFocus,y=f.Direction.resolve,b=j(i,"style"),E=j(i,Qn),S=e>-1,x=k(i,"."+vt);function P(){var r=n.splides.map(function(n){var e=n.splide.Components.Slides.getAt(t);return e?e.slide.id:""}).join(" ");N(i,Qn,sn(h.slideX,(S?e:t)+1)),N(i,Kn,r),N(i,Yn,m?"button":""),m&&z(i,tt)}function C(){o||_()}function _(){if(!o){var e=n.index;(r=L())!==R(i,Pt)&&(w(i,Pt,r),N(i,Jn,v&&r||""),s(r?mn:yn,A)),function(){var t=function(){if(n.is(jt))return L();var t=W(f.Elements.track),e=W(i),r=y("left",!0),o=y("right",!0);return nn(t[r])<=tn(e[r])&&nn(e[o])<=tn(t[o])}(),e=!t&&(!L()||S);n.state.is([4,5])||N(i,$n,e||"");N(Y(i,d.focusableNodes||""),qn,e?-1:""),m&&N(i,qn,e?-1:0);t!==R(i,_t)&&(w(i,_t,t),s(t?bn:wn,A));if(!t&&document.activeElement===i){var r=f.Slides.getAt(n.index);r&&F(r.slide)}}(),w(i,Ct,t===e-1),w(i,kt,t===e+1)}var r}function L(){var i=n.index;return i===t||d.cloneStatus&&i===e}var A={index:t,slideIndex:e,slide:i,container:x,isClone:S,mount:function(){S||(i.id=l.id+"-slide"+cn(t+1),N(i,Yn,g?"tabpanel":"group"),N(i,tt,h.slide),N(i,Qn,E||sn(h.slideLabel,[t+1,n.length]))),c(i,"click",r(s,gn,A)),c(i,"keydown",r(s,Nn,A)),a([hn,On,kn],_),a(An,P),p&&a(pn,C)},destroy:function(){o=!0,u.destroy(),q(i,Mt),z(i,ot),N(i,"style",b),N(i,Qn,E||"")},update:_,style:function(n,t,e){T(e&&x||i,n,t)},isWithin:function(e,i){var r=en(e-t);return S||!d.rewind&&!n.is(Ft)||(r=Z(r,n.length-r)),r<=i}};return A}var Wt=V+"-interval";var Xt={passive:!1,capture:!0};var Gt={Spacebar:" ",Right:Wn,Left:Rn,Up:Xn,Down:Gn};function Bt(n){return n=d(n)?n:n.key,Gt[n]||n}var Ht="keydown";var Yt=V+"-lazy",qt=Yt+"-srcset",Ut="["+Yt+"], ["+qt+"]";var Kt=[" ","Enter"];var Jt=Object.freeze({__proto__:null,Media:function(t,e,i){var r=t.state,o=i.breakpoints||{},u=i.reducedMotion||{},a=ln(),s=[];function c(n){n&&a.destroy()}function f(n,t){var e=matchMedia(t);a.bind(e,"change",l),s.push([n,e])}function l(){var n=r.is(7),e=i.direction,o=s.reduce(function(n,t){return D(n,t[1].matches?t[0]:{})},{});M(i),d(o),i.destroy?t.destroy("completely"===i.destroy):n?(c(!0),t.mount()):e!==i.direction&&t.refresh()}function d(n,e,o){D(i,n),e&&D(Object.getPrototypeOf(i),n),!o&&r.is(1)||t.emit(Sn,i)}return{setup:function(){var t="min"===i.mediaQuery;_(o).sort(function(n,e){return t?+n-+e:+e-+n}).forEach(function(n){f(o[n],"("+(t?"min":"max")+"-width:"+n+"px)")}),f(u,n),l()},destroy:c,reduce:function(t){matchMedia(n).matches&&(t?D(i,u):M(i,_(u)))},set:d}},Direction:function(n,t,e){return{resolve:function(n,t,i){var r="rtl"!==(i=i||e.direction)||t?i===Bn?0:-1:1;return Hn[n]&&Hn[n][r]||n.replace(/width|left|right/i,function(n,t){var e=Hn[n.toLowerCase()][r]||n;return t>0?e.charAt(0).toUpperCase()+e.slice(1):e})},orient:function(n){return n*("rtl"===e.direction?1:-1)}}},Elements:function(n,t,i){var r,o,u,a=In(n),s=a.on,c=a.bind,f=n.root,d=i.i18n,v={},p=[],h=[],g=[];function m(){r=x("."+ct),o=k(r,"."+ft),Q(r&&o,"A track/list element is missing."),b(p,C(o,"."+lt+":not(."+dt+")")),L({arrows:pt,pagination:yt,prev:gt,next:mt,bar:wt,toggle:Et},function(n,t){v[t]=x("."+n)}),A(v,{root:f,track:r,list:o,slides:p}),function(){var n=f.id||(e=J,""+e+cn(fn[e]=(fn[e]||0)+1)),t=i.role;var e;f.id=n,r.id=r.id||n+"-track",o.id=o.id||n+"-list",!j(f,Yn)&&"SECTION"!==f.tagName&&t&&N(f,Yn,t);N(f,tt,d.carousel),N(o,Yn,"presentation")}(),S()}function y(n){var t=ot.concat("style");e(p),q(f,h),q(r,g),z([r,o],t),z(f,n?t:["style",tt])}function S(){q(f,h),q(r,g),h=_(st),g=_(ct),E(f,h),E(r,g),N(f,Qn,i.label),N(f,Zn,i.labelledby)}function x(n){var t=H(f,n);return t&&function(n,t){if(l(n.closest))return n.closest(t);for(var e=n;e&&1===e.nodeType&&!P(e,t);)e=e.parentElement;return e}(t,"."+st)===f?t:void 0}function _(n){return[n+"--"+i.type,n+"--"+i.direction,i.drag&&n+"--draggable",i.isNavigation&&n+"--nav",n===st&&Pt]}return A(v,{setup:m,mount:function(){s(En,y),s(En,m),s(Sn,S),c(document,Nt+" keydown",function(n){u="keydown"===n.type},{capture:!0}),c(f,"focusin",function(){w(f,At,!!u)})},destroy:y})},Slides:function(n,t,i){var o=In(n),u=o.on,a=o.emit,s=o.bind,c=t.Elements,f=c.slides,v=c.list,p=[];function b(){f.forEach(function(n,t){C(n,t,-1)})}function w(){_(function(n){n.destroy()}),e(p)}function C(t,e,i){var r=Rt(n,e,i,t);r.mount(),p.push(r),p.sort(function(n,t){return n.index-t.index})}function k(n){return n?L(function(n){return!n.isClone}):p}function _(n,t){k(t).forEach(n)}function L(n){return p.filter(l(n)?n:function(t){return d(n)?P(t.slide,n):y(g(n),t.index)})}return{mount:function(){b(),u(En,w),u(En,b)},destroy:w,update:function(){_(function(n){n.update()})},register:C,get:k,getIn:function(n){var e=t.Controller,r=e.toIndex(n),o=e.hasFocus()?1:i.perPage;return L(function(n){return on(n.index,r,r+o-1)})},getAt:function(n){return L(n)[0]},add:function(n,t){m(n,function(n){if(d(n)&&(n=G(n)),h(n)){var e=f[t];e?x(n,e):S(v,n),E(n,i.classes.slide),o=n,u=r(a,xn),c=Y(o,"img"),(l=c.length)?c.forEach(function(n){s(n,"load error",function(){--l||u()})}):u()}var o,u,c,l}),a(En)},remove:function(n){X(L(n).map(function(n){return n.slide})),a(En)},forEach:_,filter:L,style:function(n,t,e){_(function(i){i.style(n,t,e)})},getLength:function(n){return n?f.length:p.length},isEnough:function(){return p.length>i.perPage}}},Layout:function(n,t,e){var i,o,u,a=In(n),s=a.on,f=a.bind,l=a.emit,d=t.Slides,v=t.Direction.resolve,p=t.Elements,h=p.root,g=p.track,m=p.list,y=d.getAt,b=d.style;function E(){i=e.direction===Bn,T(h,"maxWidth",K(e.width)),T(g,v("paddingLeft"),x(!1)),T(g,v("paddingRight"),x(!0)),S(!0)}function S(n){var t=W(h);(n||o.width!==t.width||o.height!==t.height)&&(T(g,"height",function(){var n="";i&&(Q(n=P(),"height or heightRatio is missing."),n="calc("+n+" - "+x(!1)+" - "+x(!0)+")");return n}()),b(v("marginRight"),K(e.gap)),b("width",e.autoWidth?null:K(e.fixedWidth)||(i?"":C())),b("height",K(e.fixedHeight)||(i?e.autoHeight?null:C():P()),!0),o=t,l(Pn),u!==(u=M())&&(w(h,Dt,u),l("overflow",u)))}function x(n){var t=e.padding,i=v(n?"right":"left");return t&&K(t[i]||(c(t)?0:t))||"0px"}function P(){return K(e.height||W(m).width*e.heightRatio)}function C(){var n=K(e.gap);return"calc((100%"+(n&&" + "+n)+")/"+(e.perPage||1)+(n&&" - "+n)+")"}function k(){return W(m)[v("width")]}function _(n,t){var e=y(n||0);return e?W(e.slide)[v("width")]+(t?0:D()):0}function L(n,t){var e=y(n);if(e){var i=W(e.slide)[v("right")],r=W(m)[v("left")];return en(i-r)+(t?0:D())}return 0}function A(t){return L(n.length-1)-L(0)+_(0,t)}function D(){var n=y(0);return n&&parseFloat(T(n.slide,v("marginRight")))||0}function M(){return n.is(jt)||A(!0)>k()}return{mount:function(){var n,t,e;E(),f(window,"resize load",(n=r(l,xn),e=Fn(t||0,n,null,1),function(){e.isPaused()&&e.start()})),s([Sn,En],E),s(xn,S)},resize:S,listSize:k,slideSize:_,sliderSize:A,totalSize:L,getPadding:function(n){return parseFloat(T(g,v("padding"+(n?"Right":"Left"))))||0},isOverflow:M}},Clones:function(n,t,i){var r,o=In(n),u=o.on,a=t.Elements,s=t.Slides,c=t.Direction.resolve,f=[];function l(){u(En,d),u([Sn,xn],h),(r=g())&&(!function(t){var e=s.get().slice(),r=e.length;if(r){for(;e.length<t;)b(e,e);b(e.slice(-t),e.slice(0,t)).forEach(function(o,u){var c=u<t,l=function(t,e){var r=t.cloneNode(!0);return E(r,i.classes.clone),r.id=n.root.id+"-clone"+cn(e+1),r}(o.slide,u);c?x(l,e[0].slide):S(a.list,l),b(f,l),s.register(l,u-t+(c?0:r),o.index)})}}(r),t.Layout.resize(!0))}function d(){p(),l()}function p(){X(f),e(f),o.destroy()}function h(){var n=g();r!==n&&(r<n||!n)&&o.emit(En)}function g(){var e=i.clones;if(n.is(Ft)){if(v(e)){var r=i[c("fixedWidth")]&&t.Layout.slideSize(0);e=r&&tn(W(a.track)[c("width")]/r)||i[c("autoWidth")]&&n.length||2*i.perPage}}else e=0;return e}return{mount:l,destroy:p}},Move:function(n,t,e){var i,r=In(n),o=r.on,u=r.emit,a=n.state.set,s=t.Layout,c=s.slideSize,f=s.getPadding,l=s.totalSize,d=s.listSize,p=s.sliderSize,h=t.Direction,g=h.resolve,m=h.orient,y=t.Elements,b=y.list,w=y.track;function E(){t.Controller.isBusy()||(t.Scroll.cancel(),S(n.index),t.Slides.update())}function S(n){x(_(n,!0))}function x(e,i){if(!n.is(jt)){var r=i?e:function(e){if(n.is(Ft)){var i=k(e),r=i>t.Controller.getEnd();(i<0||r)&&(e=P(e,r))}return e}(e);T(b,"transform","translate"+g("X")+"("+r+"px)"),e!==r&&u(On)}}function P(n,t){var e=n-A(t),i=p();return n-=m(i*(tn(en(e)/i)||1))*(t?1:-1)}function C(){x(L(),!0),i.cancel()}function k(n){for(var e=t.Slides.get(),i=0,r=1/0,o=0;o<e.length;o++){var u=e[o].index,a=en(_(u,!0)-n);if(!(a<=r))break;r=a,i=u}return i}function _(t,i){var r=m(l(t-1)-function(n){var t=e.focus;return"center"===t?(d()-c(n,!0))/2:+t*c(n)||0}(t));return i?function(t){e.trimSpace&&n.is(It)&&(t=un(t,0,m(p(!0)-d())));return t}(r):r}function L(){var n=g("left");return W(b)[n]-W(w)[n]+m(f(!1))}function A(n){return _(n?t.Controller.getEnd():0,!!e.trimSpace)}return{mount:function(){i=t.Transition,o([dn,Pn,Sn,En],E)},move:function(n,t,e,r){var o,s;n!==t&&(o=n>e,s=m(P(L(),o)),o?s>=0:s<=b[g("scrollWidth")]-W(w)[g("width")])&&(C(),x(P(L(),n>e),!0)),a(4),u(pn,t,e,n),i.start(t,function(){a(3),u(hn,t,e,n),r&&r()})},jump:S,translate:x,shift:P,cancel:C,toIndex:k,toPosition:_,getPosition:L,getLimit:A,exceededLimit:function(n,t){t=v(t)?L():t;var e=!0!==n&&m(t)<m(A(!1)),i=!1!==n&&m(t)>m(A(!0));return e||i},reposition:E}},Controller:function(n,t,e){var i,o,u,a,s=In(n),c=s.on,f=s.emit,l=t.Move,p=l.getPosition,h=l.getLimit,g=l.toPosition,m=t.Slides,y=m.isEnough,b=m.getLength,w=e.omitEnd,E=n.is(Ft),S=n.is(It),x=r(A,!1),P=r(A,!0),C=e.start||0,k=C;function _(){o=b(!0),u=e.perMove,a=e.perPage,i=z();var n=un(C,0,w?i:o-1);n!==C&&(C=n,l.reposition())}function L(){i!==z()&&f(Tn)}function A(n,t){var e=u||(I()?1:a),r=D(C+e*(n?-1:1),C,!(u||I()));return-1===r&&S&&!rn(p(),h(!n),1)?n?0:i:t?r:M(r)}function D(t,r,s){if(y()||I()){var c=function(t){if(S&&"move"===e.trimSpace&&t!==C)for(var i=p();i===g(t,!0)&&on(t,0,n.length-1,!e.rewind);)t<C?--t:++t;return t}(t);c!==t&&(r=t,t=c,s=!1),t<0||t>i?t=u||!on(0,t,r,!0)&&!on(i,r,t,!0)?E?s?t<0?-(o%a||a):o:t:e.rewind?t<0?i:0:-1:N(O(t)):s&&t!==r&&(t=N(O(r)+(t<r?-1:1)))}else t=-1;return t}function M(n){return E?(n+o)%o||0:n}function z(){for(var n=o-(I()||E&&u?1:a);w&&n-->0;)if(g(o-1,!0)!==g(n,!0)){n++;break}return un(n,0,o-1)}function N(n){return un(I()?n:a*n,0,i)}function O(n){return I()?Z(n,i):nn((n>=i?o-1:n)/a)}function T(n){n!==C&&(k=C,C=n)}function I(){return!v(e.focus)||e.isNavigation}function F(){return n.state.is([4,5])&&!!e.waitForTransition}return{mount:function(){_(),c([Sn,En,Tn],_),c(Pn,L)},go:function(n,t,e){if(!F()){var r=function(n){var t=C;if(d(n)){var e=n.match(/([+\-<>])(\d+)?/)||[],r=e[1],o=e[2];"+"===r||"-"===r?t=D(C+ +(""+r+(+o||1)),C):">"===r?t=o?N(+o):x(!0):"<"===r&&(t=P(!0))}else t=E?n:un(n,0,i);return t}(n),o=M(r);o>-1&&(t||o!==C)&&(T(o),l.move(r,o,k,e))}},scroll:function(n,e,r,o){t.Scroll.scroll(n,e,r,function(){var n=M(l.toIndex(p()));T(w?Z(n,i):n),o&&o()})},getNext:x,getPrev:P,getAdjacent:A,getEnd:z,setIndex:T,getIndex:function(n){return n?k:C},toIndex:N,toPage:O,toDest:function(n){var t=l.toIndex(n);return S?un(t,0,i):t},hasFocus:I,isBusy:F}},Arrows:function(n,t,e){var i,o,u=In(n),a=u.on,s=u.bind,c=u.emit,f=e.classes,l=e.i18n,d=t.Elements,v=t.Controller,p=d.arrows,h=d.track,g=p,m=d.prev,y=d.next,b={};function w(){!function(){var n=e.arrows;!n||m&&y||(g=p||O("div",f.arrows),m=_(!0),y=_(!1),i=!0,S(g,[m,y]),!p&&x(g,h));m&&y&&(A(b,{prev:m,next:y}),I(g,n?"":"none"),E(g,o=pt+"--"+e.direction),n&&(a([dn,hn,En,kn,Tn],L),s(y,"click",r(k,">")),s(m,"click",r(k,"<")),L(),N([m,y],Kn,h.id),c(Ln,m,y)))}(),a(Sn,P)}function P(){C(),w()}function C(){u.destroy(),q(g,o),i?(X(p?[m,y]:g),m=y=null):z([m,y],ot)}function k(n){v.go(n,!0)}function _(n){return G('<button class="'+f.arrow+" "+(n?f.prev:f.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(e.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function L(){if(m&&y){var t=n.index,e=v.getPrev(),i=v.getNext(),r=e>-1&&t<e?l.last:l.prev,o=i>-1&&t>i?l.first:l.next;m.disabled=e<0,y.disabled=i<0,N(m,Qn,r),N(y,Qn,o),c("arrows:updated",m,y,e,i)}}return{arrows:b,mount:w,destroy:C,update:L}},Autoplay:function(n,t,e){var i,r,o=In(n),u=o.on,a=o.bind,s=o.emit,c=Fn(e.interval,n.go.bind(n,">"),function(n){var t=l.bar;t&&T(t,"width",100*n+"%"),s("autoplay:playing",n)}),f=c.isPaused,l=t.Elements,d=t.Elements,v=d.root,p=d.toggle,h=e.autoplay,g="pause"===h;function m(){f()&&t.Slides.isEnough()&&(c.start(!e.resetProgress),r=i=g=!1,E(),s(Dn))}function y(n){void 0===n&&(n=!0),g=!!n,E(),f()||(c.pause(),s(Mn))}function b(){g||(i||r?y(!1):m())}function E(){p&&(w(p,Pt,!g),N(p,Qn,e.i18n[g?"play":"pause"]))}function S(n){var i=t.Slides.getAt(n);c.set(i&&+j(i.slide,Wt)||e.interval)}return{mount:function(){h&&(!function(){e.pauseOnHover&&a(v,"mouseenter mouseleave",function(n){i="mouseenter"===n.type,b()});e.pauseOnFocus&&a(v,"focusin focusout",function(n){r="focusin"===n.type,b()});p&&a(p,"click",function(){g?m():y(!0)});u([pn,Cn,En],c.rewind),u(pn,S)}(),p&&N(p,Kn,l.track.id),g||m(),E())},destroy:c.cancel,play:m,pause:y,isPaused:f}},Cover:function(n,t,e){var i=In(n).on;function o(n){t.Slides.forEach(function(t){var e=k(t.container||t.slide,"img");e&&e.src&&u(n,e,t)})}function u(n,t,e){e.style("background",n?'center/cover no-repeat url("'+t.src+'")':"",!0),I(t,n?"none":"")}return{mount:function(){e.cover&&(i(zn,r(u,!0)),i([dn,Sn,En],r(o,!0)))},destroy:r(o,!1)}},Scroll:function(n,t,e){var i,o,u=In(n),a=u.on,s=u.emit,c=n.state.set,f=t.Move,l=f.getPosition,d=f.getLimit,v=f.exceededLimit,p=f.translate,h=n.is(It),g=1;function m(n,e,u,a,d){var p=l();if(w(),u&&(!h||!v())){var m=t.Layout.sliderSize(),E=an(n)*m*nn(en(n)/m)||0;n=f.toPosition(t.Controller.toDest(n%m))+E}var S=rn(p,n,1);g=1,e=S?0:e||$(en(n-p)/1.5,800),o=a,i=Fn(e,y,r(b,p,n,d),1),c(5),s(Cn),i.start()}function y(){c(3),o&&o(),s(kn)}function b(n,t,i,r){var u,a,s=l(),c=(n+(t-n)*(u=r,(a=e.easingFunc)?a(u):1-Math.pow(1-u,4))-s)*g;p(s+c),h&&!i&&v()&&(g*=.6,en(c)<10&&m(d(v(!0)),600,!1,o,!0))}function w(){i&&i.cancel()}function E(){i&&!i.isPaused()&&(w(),y())}return{mount:function(){a(pn,w),a([Sn,En],E)},destroy:w,scroll:m,cancel:E}},Drag:function(n,t,e){var i,r,o,a,s,f,l,d,v=In(n),p=v.on,h=v.emit,g=v.bind,m=v.unbind,y=n.state,b=t.Move,w=t.Scroll,E=t.Controller,S=t.Elements.track,x=t.Media.reduce,C=t.Direction,k=C.resolve,_=C.orient,L=b.getPosition,A=b.exceededLimit,D=!1;function M(){var n=e.drag;G(!n),a="free"===n}function z(n){if(f=!1,!l){var t=X(n);i=n.target,r=e.noDrag,P(i,"."+bt+", ."+ht)||r&&P(i,r)||!t&&n.button||(E.isBusy()?B(n,!0):(d=t?S:window,s=y.is([4,5]),o=null,g(d,Ot,N,Xt),g(d,Tt,O,Xt),b.cancel(),w.cancel(),I(n)))}var i,r}function N(t){if(y.is(6)||(y.set(6),h("drag")),t.cancelable)if(s){b.translate(i+F(t)/(D&&n.is(It)?5:1));var r=j(t)>200,o=D!==(D=A());(r||o)&&I(t),f=!0,h("dragging"),B(t)}else(function(n){return en(F(n))>en(F(n,!0))})(t)&&(s=function(n){var t=e.dragMinThreshold,i=c(t),r=i&&t.mouse||0,o=(i?t.touch:+t)||10;return en(F(n))>(X(n)?o:r)}(t),B(t))}function O(i){y.is(6)&&(y.set(3),h("dragged")),s&&(!function(i){var r=function(t){if(n.is(Ft)||!D){var e=j(t);if(e&&e<200)return F(t)/e}return 0}(i),o=function(n){return L()+an(n)*Z(en(n)*(e.flickPower||600),a?1/0:t.Layout.listSize()*(e.flickMaxPages||1))}(r),u=e.rewind&&e.rewindByDrag;x(!1),a?E.scroll(o,0,e.snap):n.is(jt)?E.go(_(an(r))<0?u?"<":"-":u?">":"+"):n.is(It)&&D&&u?E.go(A(!0)?">":"<"):E.go(E.toDest(o),!0);x(!0)}(i),B(i)),m(d,Ot,N),m(d,Tt,O),s=!1}function T(n){!l&&f&&B(n,!0)}function I(n){o=r,r=n,i=L()}function F(n,t){return W(n,t)-W(R(n),t)}function j(n){return U(n)-U(R(n))}function R(n){return r===n&&o||r}function W(n,t){return(X(n)?n.changedTouches[0]:n)["page"+k(t?"Y":"X")]}function X(n){return"undefined"!=typeof TouchEvent&&n instanceof TouchEvent}function G(n){l=n}return{mount:function(){g(S,Ot,u,Xt),g(S,Tt,u,Xt),g(S,Nt,z,Xt),g(S,"click",T,{capture:!0}),window?.bricksIsFrontend&&g(S,"dragstart",B),p([dn,Sn],M)},disable:G,isDragging:function(){return s}}},Keyboard:function(n,t,e){var i,r,u=In(n),a=u.on,s=u.bind,c=u.unbind,f=n.root,l=t.Direction.resolve;function d(){var n=e.keyboard;n&&(i="global"===n?window:f,s(i,Ht,h))}function v(){c(i,Ht)}function p(){var n=r;r=!0,o(function(){r=n})}function h(t){if(!r){var e=Bt(t);e===l(Rn)?n.go("<"):e===l(Wn)&&n.go(">")}}return{mount:function(){d(),a(Sn,v),a(Sn,d),a(pn,p)},destroy:v,disable:function(n){r=n}}},LazyLoad:function(n,t,i){var o=In(n),u=o.on,a=o.off,s=o.bind,c=o.emit,f="sequential"===i.lazyLoad,l=[hn,kn],d=[];function v(){e(d),t.Slides.forEach(function(n){Y(n.slide,Ut).forEach(function(t){var e=j(t,Yt),r=j(t,qt);if(e!==t.src||r!==t.srcset){var o=i.classes.spinner,u=t.parentElement,a=k(u,"."+o)||O("span",o,u);d.push([t,n,a]),t.src||I(t,"none")}})}),f?m():(a(l),u(l,p),p())}function p(){(d=d.filter(function(t){var e=i.perPage*((i.preloadPages||1)+1)-1;return!t[1].isWithin(n.index,e)||h(t)})).length||a(l)}function h(n){var t=n[0];E(n[1].slide,Lt),s(t,"load error",r(g,n)),N(t,"src",j(t,Yt)),N(t,"srcset",j(t,qt)),z(t,Yt),z(t,qt)}function g(n,t){var e=n[0],i=n[1];q(i.slide,Lt),"error"!==t.type&&(X(n[2]),I(e,""),c(zn,e,i),c(xn)),f&&m()}function m(){d.length&&h(d.shift())}return{mount:function(){i.lazyLoad&&(v(),u(En,v))},destroy:r(e,d),check:p}},Pagination:function(n,t,o){var u,a,s=In(n),c=s.on,f=s.emit,l=s.bind,d=t.Slides,v=t.Elements,p=t.Controller,h=p.hasFocus,g=p.getIndex,m=p.go,y=t.Direction.resolve,b=v.pagination,w=[];function S(){u&&(X(b?i(u.children):u),q(u,a),e(w),u=null),s.destroy()}function x(n){m(">"+n,!0)}function P(n,t){var e=w.length,i=Bt(t),r=C(),o=-1;i===y(Wn,!1,r)?o=++n%e:i===y(Rn,!1,r)?o=(--n+e)%e:"Home"===i?o=0:"End"===i&&(o=e-1);var u=w[o];u&&(F(u.button),m(">"+o),B(t,!0))}function C(){return o.paginationDirection||o.direction}function k(n){return w[p.toPage(n)]}function _(){var n=k(g(!0)),t=k(g());if(n){var e=n.button;q(e,Pt),z(e,Vn),N(e,qn,-1)}if(t){var i=t.button;E(i,Pt),N(i,Vn,!0),N(i,qn,"")}f("pagination:updated",{list:u,items:w},n,t)}return{items:w,mount:function t(){S(),c([Sn,En,Tn],t);var e=o.pagination;b&&I(b,e?"":"none"),e&&(c([pn,Cn,kn],_),function(){var t=n.length,e=o.classes,i=o.i18n,s=o.perPage,c=h()?p.getEnd()+1:tn(t/s);E(u=b||O("ul",e.pagination,v.track.parentElement),a=yt+"--"+C()),N(u,Yn,"tablist"),N(u,Qn,i.select),N(u,nt,C()===Bn?"vertical":"");for(var f=0;f<c;f++){var g=O("li",null,u),m=O("button",{class:e.page,type:"button"},g),y=d.getIn(f).map(function(n){return n.slide.id}),S=!h()&&s>1?i.pageX:i.slideX;l(m,"click",r(x,f)),o.paginationKeyboard&&l(m,"keydown",r(P,f)),N(g,Yn,"presentation"),N(m,Yn,"tab"),N(m,Kn,y.join(" ")),N(m,Qn,sn(S,f+1)),N(m,qn,-1),w.push({li:g,button:m,page:f})}}(),_(),f("pagination:mounted",{list:u,items:w},k(n.index)))},destroy:S,getAt:k,update:_}},Sync:function(n,t,i){var o=i.isNavigation,u=i.slideFocus,a=[];function s(){var t,e;n.splides.forEach(function(t){t.isParent||(f(n,t.splide),f(t.splide,n))}),o&&(t=In(n),(e=t.on)(gn,d),e(Nn,p),e([dn,Sn],l),a.push(t),t.emit(An,n.splides))}function c(){a.forEach(function(n){n.destroy()}),e(a)}function f(n,t){var e=In(n);e.on(pn,function(n,e,i){t.go(t.is(Ft)?i:n)}),a.push(e)}function l(){N(t.Elements.list,nt,i.direction===Bn?"vertical":"")}function d(t){n.go(t.index)}function p(n,t){y(Kt,Bt(t))&&(d(n),B(t))}return{setup:r(t.Media.set,{slideFocus:v(u)?o:u},!0),mount:s,destroy:c,remount:function(){c(),s()}}},Wheel:function(n,t,e){var i=In(n).bind,r=0;function o(i){if(i.cancelable){var o=i.deltaY,u=o<0,a=U(i),s=e.wheelMinThreshold||0,c=e.wheelSleep||0;en(o)>s&&a-r>c&&(n.go(u?"<":">"),r=a),function(i){return!e.releaseWheel||n.state.is(4)||-1!==t.Controller.getAdjacent(i)}(u)&&B(i)}}return{mount:function(){e.wheel&&i(t.Elements.track,"wheel",o,Xt)}}},Live:function(n,t,e){var i=In(n).on,o=t.Elements.track,u=e.live&&!e.isNavigation,a=O("span",St),s=Fn(90,r(c,!1));function c(n){N(o,it,n),n?(S(o,a),s.start()):(X(a),s.cancel())}function f(n){u&&N(o,et,n?"off":"polite")}return{mount:function(){u&&(f(!t.Autoplay.isPaused()),N(o,rt,!0),a.textContent="…",i(Dn,r(f,!0)),i(Mn,r(f,!1)),i([hn,kn],r(c,!0)))},disable:f,destroy:function(){z(o,[et,rt,it]),X(a)}}}}),Vt={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:zt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Qt(n,t,e){var i=t.Slides;
104function r(){i.forEach(function(n){n.style("transform","translateX(-"+100*n.index+"%)")})}return{mount:function(){In(n).on([dn,En],r)},start:function(n,t){i.style("transition","opacity "+e.speed+"ms "+e.easing),o(t)},cancel:u}}function Zt(n,t,e){var i,o=t.Move,u=t.Controller,a=t.Scroll,s=t.Elements.list,c=r(T,s,"transition");function f(){c(""),a.cancel()}return{mount:function(){In(n).bind(s,"transitionend",function(n){n.target===s&&i&&(f(),i())})},start:function(t,r){var s=o.toPosition(t,!0),f=o.getPosition(),l=function(t){var i=e.rewindSpeed;if(n.is(It)&&i){var r=u.getIndex(!0),o=u.getEnd();if(0===r&&t>=o||r>=o&&0===t)return i}return e.speed}(t);en(s-f)>=1&&l>=1?e.useScroll?a.scroll(s,l,!1,r):(c("transform "+l+"ms "+e.easing),o.translate(s,!0),i=r):(o.jump(t),r())},cancel:f}}var $t=function(){function n(t,e){var i;this.event=In(),this.Components={},this.state=(i=1,{set:function(n){i=n},is:function(n){return y(g(n),i)}}),this.splides=[],this._o={},this._E={};var r=d(t)?H(document,t):t;Q(r,r+" is invalid."),this.root=r,e=D({label:j(r,Qn)||"",labelledby:j(r,Zn)||""},Vt,n.defaults,e||{});try{D(e,JSON.parse(j(r,V)))}catch(n){Q(!1,"Invalid JSON")}this._o=Object.create(D({},e))}var t=n.prototype;return t.mount=function(n,t){var e=this,i=this.state,r=this.Components;return Q(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=t||this._T||(this.is(jt)?Qt:Zt),this._E=n||this._E,L(A({},Jt,this._E,{Transition:this._T}),function(n,t){var i=n(e,r,e._o);r[t]=i,i.setup&&i.setup()}),L(r,function(n){n.mount&&n.mount()}),this.emit(dn),E(this.root,xt),i.set(3),this.emit(vn),this},t.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),n.Components.Sync.remount()),this},t.go=function(n){return this._C.Controller.go(n),this},t.on=function(n,t){return this.event.on(n,t),this},t.off=function(n){return this.event.off(n),this},t.emit=function(n){var t;return(t=this.event).emit.apply(t,[n].concat(i(arguments,1))),this},t.add=function(n,t){return this._C.Slides.add(n,t),this},t.remove=function(n){return this._C.Slides.remove(n),this},t.is=function(n){return this._o.type===n},t.refresh=function(){return this.emit(En),this},t.destroy=function(n){void 0===n&&(n=!0);var t=this.event,i=this.state;return i.is(1)?In(this).on(vn,this.destroy.bind(this,n)):(L(this._C,function(t){t.destroy&&t.destroy(n)},!0),t.emit(_n),t.destroy(),n&&e(this.splides),i.set(7)),this},_createClass(n,[{key:"options",get:function(){return this._o},set:function(n){this._C.Media.set(n,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),n}(),ne=$t;return ne.defaults={},ne.STATES=t,ne});function xBackToTop(){document.querySelector("body > .brx-body.iframe"),document.querySelectorAll(".x-back-to-top").forEach(t=>{let e=t.querySelector(".x-back-to-top_progress-line"),o,r=!1;e&&(o=e.getTotalLength(),r=!0,e.style.strokeDasharray=o,e.style.strokeDashoffset=o);let a=!!t.getAttribute("data-x-backtotop")&&t.getAttribute("data-x-backtotop"),s=!function t(e){try{return JSON.parse(e)&&!!e}catch(o){return!1}}(a)?{}:JSON.parse(a),n=0,i=0,c=!1;document.addEventListener("scroll",a=>{n=window.scrollY,c||(window.requestAnimationFrame(()=>{if(r){var a;let l,d,b,y,p,u,f;a=n,d=(l=document.body.offsetTop)+document.body.offsetHeight,b=window.innerHeight,y=l,p=d-b,f=a>=y?(u=(a-y)/(p-y))<=1?o-u*o:0:o,e.style.strokeDashoffset=f}document.querySelector("body > .brx-body.iframe")||function e(o,r){function a(){t.setAttribute("aria-hidden",!1),t.removeAttribute("disabled"),t.style.opacity="1",t.style.transform="none",t.dispatchEvent(new Event("x_back_to_top:show"))}function n(){t.setAttribute("aria-hidden",!0),t.setAttribute("disabled",""),t.style.removeProperty("opacity"),t.style.removeProperty("transform"),t.dispatchEvent(new Event("x_back_to_top:hide"))}o>=s.scrollDistance?s.scrollUp?r-o>=0?a():n():a():n()}(n,i),i=n,c=!1}),c=!0)}),t.addEventListener("click",e=>{window.scrollTo({top:0,behavior:"smooth"}),document.body.setAttribute("tabindex","-1"),document.body.focus({preventScroll:!0}),document.body.removeAttribute("tabindex"),t.dispatchEvent(new Event("x_back_to_top:scroll"))})})}document.addEventListener("DOMContentLoaded",function(t){bricksIsFrontend&&xBackToTop()})

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.