PageSourceSearch

https://bouwgarant.nl/sites/default/files/js/js_-VgHJ5npPpdPil0BM9…SzAg_VzK-kx3G2P9XxbEY_KMTK133TjlxX8ED-whXaw

js bouwgarant.nl collected 2026-09-25 02:52:00 UTC 171,280 bytes, 168 lines download raw bytes

1/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
2/*! @drupal/once - v1.0.1 - 2021-06-12 */
3var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
4
5;
6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
7window.drupalTranslations={"strings":{"":{"Edit":"Bewerken","Not restricted":"Geen beperking","Continue":"Doorgaan","Cancel":"Annuleren","Enabled":"Ingeschakeld","Disabled":"Uitgeschakeld","Not published":"Niet gepubliceerd","Alias: @alias":"Alias: @alias","No alias":"Geen alias","Collapse":"Inklappen","closed":"gesloten","Title":"Titel","CSS classes":"CSS-klassen","ID":"ID","Advanced":"Uitgebreid","Open in new window":"Open in nieuw venster","Automatic alias":"Automatische alias","Insert this token into your form":"Plaats deze token in uw formulier","First click a text field to insert your tokens into.":"Klik eerst een tekstveld aan om uw tokens in te plaatsen.","%d word(s) entered":"%d woord(en) ingevoerd","%d character(s) entered":"%d teken(s) ingevoerd","%d word(s) remaining":"%d woord(en) over","%d character(s) remaining":"%d teken(s) over","Toggle details widget state.":"Widget detailstatus schakelen.","Collapse all":"Alles inklappen","Expand all":"Alles uitklappen","All details have been expanded.":"Alle details zijn uitgeklapt.","All details have been collapsed.":"Alle details zijn ingeklapt.","item":"item","items":"items"}},"pluralFormula":{"1":0,"default":1}};;
8(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();;
9window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
9if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
10if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
11!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.2"});
12
13/*!
14 * jQuery UI :data 1.14.2
15 * https://jqueryui.com
16 *
17 * Copyright OpenJS Foundation and other contributors
18 * Released under the MIT license.
19 * https://jquery.org/license
20 */
21!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})});
22
23/*!
24 * jQuery UI Disable Selection 1.14.2
25 * https://jqueryui.com
26 *
27 * Copyright OpenJS Foundation and other contributors
28 * Released under the MIT license.
29 * https://jquery.org/license
30 */
31!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n});
32
33/*!
34 * jQuery UI Legacy jQuery Core patches 1.14.2
35 * https://jqueryui.com
36 *
37 * Copyright OpenJS Foundation and other contributors
38 * Released under the MIT license.
39 * https://jquery.org/license
40 *
41 */
42!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0})},odd:function(){return this.filter(function(e){return e%2==1})}})});
43
44/*!
45 * jQuery UI Scroll Parent 1.14.2
46 * https://jqueryui.com
47 *
48 * Copyright OpenJS Foundation and other contributors
49 * Released under the MIT license.
50 * https://jquery.org/license
51 */
52!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}});
53
54/*!
55 * jQuery UI Unique ID 1.14.2
56 * https://jqueryui.com
57 *
58 * Copyright OpenJS Foundation and other contributors
59 * Released under the MIT license.
60 * https://jquery.org/license
61 */
62!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 5,005 bytes, lines 62-94
62)&&i(this).removeAttr("id")})}});var e});
63
64/*!
65 * jQuery UI Focusable 1.14.2
66 * https://jqueryui.com
67 *
68 * Copyright OpenJS Foundation and other contributors
69 * Released under the MIT license.
70 * https://jquery.org/license
71 */
72!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable});
73
74/*!
75 * jQuery UI Keycode 1.14.2
76 * https://jqueryui.com
77 *
78 * Copyright OpenJS Foundation and other contributors
79 * Released under the MIT license.
80 * https://jquery.org/license
81 */
82!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});
83
84!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}});
85
86/*!
87 * jQuery UI Widget 1.14.2
88 * https://jqueryui.com
89 *
90 * Copyright OpenJS Foundation and other contributors
91 * Released under the MIT license.
92 * https://jquery.org/license
93 */
94!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 11,142 bytes, lines 94-114
94(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget});
95
96/*!
97 * jQuery UI Labels 1.14.2
98 * https://jqueryui.com
99 *
100 * Copyright OpenJS Foundation and other contributors
101 * Released under the MIT license.
102 * https://jquery.org/license
103 */
104!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}});
105
106/*!
107 * jQuery UI Autocomplete 1.14.2
108 * https://jqueryui.com
109 *
110 * Copyright OpenJS Foundation and other contributors
111 * Released under the MIT license.
112 * https://jquery.org/license
113 */
114!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,u="input"===n;this.isMultiLine=o||!u&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||u?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||s.preventDefault());if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var s,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(s=i.item.attr("aria-label")||n.value)&&String.prototype.trim.call(s).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(s))},100))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=s),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(
vendor: 5,098 bytes, lines 114-124
114),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||s)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(i))},100))}}),e.ui.autocomplete});
115
116/*!
117 * jQuery UI Menu 1.14.2
118 * https://jqueryui.com
119 *
120 * Copyright OpenJS Foundation and other contributors
121 * Released under the MIT license.
122 * https://jquery.org/license
123 */
124!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.menu",{version:"1.14.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),s=e(this.document[0].activeElement);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay(function(){!e.contains(this.element[0],this.document[0].activeElement)&&this.collapseAll(t)}
vendor: 5,933 bytes, line 124
124)},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),s=e(t.currentTarget);i[0]===s[0]&&(s.is(".ui-state-active")||(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,s,n,a,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,s=this.previousFilter||"",a=!1,n=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,s,n,a=this,u=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),i=t.prev(),s=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+u),i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,s,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,a,u,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),u=this.activeMenu.height(),o=t.outerHeight(),n<0?this.activeMenu.scrollTop(a+n):n+o>u&&this.activeMenu.scrollTop(a+n-u+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
vendor: 6,272 bytes, lines 124-131
124se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),s&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s-n<0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s+n>0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))})}})});
125
126/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
127/*!
128* tabbable 6.3.0
129* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
130*/
131!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
131if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}}));
132
133;
134/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
135(function($,Drupal){let autocomplete;function autocompleteSplitValues(value){const result=[];let quote=false;let current='';const valueLength=value.length;let character;for(let i=0;i<valueLength;i++){character=value.charAt(i);if(character==='"'){current+=character;quote=!quote;}else if(character===','&&!quote){result.push(current.trim());current='';}else current+=character;}if(value.length>0)result.push(current.trim());return result;}function extractLastTerm(terms){return autocomplete.splitValues(terms).pop();}function searchHandler(event){const options=autocomplete.options;if(options.isComposing)return false;const term=autocomplete.extractLastTerm(event.target.value);if(term.length>0&&options.firstCharacterDenyList.includes(term[0]))return false;return term.length>=options.minLength;}function sourceData(request,response){const elementId=this.element.attr('id');if(!(elementId in autocomplete.cache))autocomplete.cache[elementId]={};function showSuggestions(suggestions){const tagged=autocomplete.splitValues(request.term);const il=tagged.length;for(let i=0;i<il;i++)if(suggestions.includes(tagged[i]))suggestions.splice(suggestions.indexOf(tagged[i]),1);response(suggestions);}const term=autocomplete.extractLastTerm(request.term);function sourceCallbackHandler(data){autocomplete.cache[elementId][term]=data;showSuggestions(data);}if(autocomplete.cache[elementId].hasOwnProperty(term))showSuggestions(autocomplete.cache[elementId][term]);else{const options=$.extend({success:sourceCallbackHandler,data:{q:term}},autocomplete.ajax);$.ajax(this.element.attr('data-autocomplete-path'),options);}}function focusHandler(){return false;}function selectHandler(event,ui){const terms=autocomplete.splitValues(event.target.value);terms.pop();terms.push(ui.item.value);event.target.value=terms.join(', ');return false;}function renderItem(ul,item){return $('<li>').append($('<a>').html(item.label)).appendTo(ul);}Drupal.behaviors.autocomplete={attach(context){once('autocomplete','input.form-autocomplete',context).forEach((element)=>{const $autocomplete=$(element);const blacklist=$autocomplete.attr('data-autocomplete-first-character-blacklist');if(blacklist!==undefined)Drupal.deprecationError({message:'The data-autocomplete-first-character-blocklist attribute is deprecated 
135in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});const denyList=$autocomplete.attr('data-autocomplete-first-character-denylist');Drupal.deprecatedProperty({target:autocomplete.options,deprecatedProperty:'firstCharacterBlacklist',message:'The firstCharacterBlacklist property is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});$.extend(autocomplete.options,{firstCharacterDenyList:denyList||blacklist});$autocomplete.autocomplete(autocomplete.options).each(function(){$(this).data('ui-autocomplete')._renderItem=autocomplete.options.renderItem;});$autocomplete.on('compositionstart.autocomplete',()=>{autocomplete.options.isComposing=true;});$autocomplete.on('compositionend.autocomplete',()=>{autocomplete.options.isComposing=false;});});},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('autocomplete','input.form-autocomplete',context)).autocomplete('destroy');}};autocomplete={cache:{},splitValues:autocompleteSplitValues,extractLastTerm,options:{source:sourceData,focus:focusHandler,search:searchHandler,select:selectHandler,renderItem,minLength:1,firstCharacterDenyList:'',isComposing:false},ajax:{dataType:'json',jsonp:false}};Drupal.autocomplete=autocomplete;})(jQuery,Drupal);;
136(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Glide=factory());})(this,(function(){'use strict';function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});keys.push.apply(keys,symbols);}return keys;}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2)ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key]);});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));else ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")_typeof=function(obj){return typeof obj;};else _typeof=function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};return _typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _defineProperty(obj,key,value){if(key in obj)Object.defineProperty(obj,key,{value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};
136return _getPrototypeOf(o);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self;}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function"))return call;else{if(call!==void 0)throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result);};}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get)_get=Reflect.get;else _get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get)return desc.get.call(arguments.length<3?target:receiver);return desc.value;};return _get.apply(this,arguments);}var defaults={type:'slider',startAt:0,perView:1,focusAt:0,gap:10,autoplay:false,hoverpause:true,keyboard:true,bound:false,swipeThreshold:80,dragThreshold:120,perSwipe:'',touchRatio:0.5,touchAngle:45,animationDuration:400,rewind:true,rewindDuration:800,animationTimingFunc:'cubic-bezier(.165, .840, .440, 1)',waitForTransition:true,throttle:10,direction:'ltr',peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:'glide--swipeable',dragging:'glide--dragging',direction:{ltr:'glide--ltr',rtl:'glide--rtl'},type:{slider:'glide--slider',carousel:'glide--carousel'},slide:{clone:'glide__slide--clone',active:'glide__slide--active'},arrow:{disabled:'glide__arrow--disabled'},nav:{active:'glide__bullet--active'}}};function warn(msg){console.error("[Glide warn]: ".concat(msg));}function toInt(value){return parseInt(value);}function toFloat(value){return parseFloat(value);}function isString(value){return typeof value==='string';}function isObject(value){var type=_typeof(value);return type==='function'||type==='object'&&!!value;}function isFunction(value){return typeof value==='function';}function isUndefined(value){return typeof value==='undefined';}function isArray(value){return value.constructor===Array;}function mount(glide,extensions,events){var components={};for(var name in extensions)if(isFunction(extensions[name]))components[name]=extensions[name](glide,components,events);else warn('Extension must be a function');for(var _name in components)if(isFunction(components[_name].mount))components[_name].mount();return components;}function define(obj,prop,definition){Object.defineProperty(obj,prop,definition);}function sortKeys(obj){return Object.keys(obj).sort().reduce(function(r,k){r[k]=obj[k];return r[k],r;},{});}function mergeOptions(defaults,settings){var options=Object.assign({},defaults,settings);if(settings.hasOwnProperty('classes')){options.classes=Object.assign({},defaults.classes,settings.classes);var properties=['direction','type','slide','arrow','nav'];properties.forEach(function(property){if(settings.classes.hasOwnProperty(property))options.classes[property]=_objectSpread2(_objectSpread2({},defaults.classes[property]),settings.classes[property]);});}if(settings.hasOwnProperty('breakpoints'))options.breakpoints=Object.assign({},defaults.breakpoints,settings.breakpoints);return options;}var EventsBus=function(){function EventsBus(){var events=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,EventsBus);this.events=events;this.hop=events.hasOwnProperty;}_createClass(EventsBus,[{key:"on",value:function on(event,handler){if(isArray(event)){for(var i=0;i<event.length;i++)this.on(event[i],handler);return;}if(!this.hop.call(this.events,event))this.events[event]=[];var index=this.events[event].push(handler)-1;return {remove:function remove(){delete this.events[event][index];}};}},{key:"emit",value:function emit(event,context){if(isArray(event)){for(var i=0;i<event.length;
136i++)this.emit(event[i],context);return;}if(!this.hop.call(this.events,event))return;this.events[event].forEach(function(item){item(context||{});});}}]);return EventsBus;}();var Glide$1=function(){function Glide(selector){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Glide);this._c={};this._t=[];this._e=new EventsBus();this.disabled=false;this.selector=selector;this.settings=mergeOptions(defaults,options);this.index=this.settings.startAt;}_createClass(Glide,[{key:"mount",value:function mount$1(){var extensions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this._e.emit('mount.before');if(isObject(extensions))this._c=mount(this,extensions,this._e);else warn('You need to provide a object on `mount()`');this._e.emit('mount.after');return this;}},{key:"mutate",value:function mutate(){var transformers=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];if(isArray(transformers))this._t=transformers;else warn('You need to provide a array on `mutate()`');return this;}},{key:"update",value:function update(){var settings=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.settings=mergeOptions(this.settings,settings);if(settings.hasOwnProperty('startAt'))this.index=settings.startAt;this._e.emit('update');return this;}},{key:"go",value:function go(pattern){this._c.Run.make(pattern);return this;}},{key:"move",value:function move(distance){this._c.Transition.disable();this._c.Move.make(distance);return this;}},{key:"destroy",value:function destroy(){this._e.emit('destroy');return this;}},{key:"play",value:function play(){var interval=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(interval)this.settings.autoplay=interval;this._e.emit('play');return this;}},{key:"pause",value:function pause(){this._e.emit('pause');return this;}},{key:"disable",value:function disable(){this.disabled=true;return this;}},{key:"enable",value:function enable(){this.disabled=false;return this;}},{key:"on",value:function on(event,handler){this._e.on(event,handler);return this;}},{key:"isType",value:function isType(name){return this.settings.type===name;}},{key:"settings",get:function get(){return this._o;},set:function set(o){if(isObject(o))this._o=o;else warn('Options must be an `object` instance.');}},{key:"index",get:function get(){return this._i;},set:function set(i){this._i=toInt(i);}},{key:"type",get:function get(){return this.settings.type;}},{key:"disabled",get:function get(){return this._d;},set:function set(status){this._d=!!status;}}]);return Glide;}();function Run(Glide,Components,Events){var Run={mount:function mount(){this._o=false;},make:function make(move){var _this=this;if(!Glide.disabled){!Glide.settings.waitForTransition||Glide.disable();this.move=move;Events.emit('run.before',this.move);this.calculate();Events.emit('run',this.move);Components.Transition.after(function(){if(_this.isStart())Events.emit('run.start',_this.move);if(_this.isEnd())Events.emit('run.end',_this.move);if(_this.isOffset()){_this._o=false;Events.emit('run.offset',_this.move);}Events.emit('run.after',_this.move);Glide.enable();});}},calculate:function calculate(){var move=this.move,length=this.length;var steps=move.steps,direction=move.direction;var viewSize=1;if(direction==='='){if(Glide.settings.bound&&toInt(steps)>length){Glide.index=length;return;}Glide.index=steps;return;}if(direction==='>'&&steps==='>'){Glide.index=length;return;}if(direction==='<'&&steps==='<'){Glide.index=0;return;}if(direction==='|')viewSize=Glide.settings.perView||1;if(direction==='>'||direction==='|'&&steps==='>'){var index=calculateForwardIndex(viewSize);if(index>length)this._o=true;Glide.index=normalizeForwardIndex(index,viewSize);return;}if(direction==='<'||direction==='|'&&steps==='<'){var _index=calculateBackwardIndex(viewSize);if(_index<0)this._o=true;Glide.index=normalizeBackwardIndex(_index,viewSize);return;}warn("Invalid direction pattern [".concat(direction).concat(steps,"] has been used"));},isStart:function isStart(){return Glide.index<=0;},isEnd:function isEnd(){return Glide.index>=this.length;},isOffset:function isOffset(){var direction=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;if(!direction)return this._o;if(!this._o)return false;
136if(direction==='|>')return this.move.direction==='|'&&this.move.steps==='>';if(direction==='|<')return this.move.direction==='|'&&this.move.steps==='<';return this.move.direction===direction;},isBound:function isBound(){return Glide.isType('slider')&&Glide.settings.focusAt!=='center'&&Glide.settings.bound;}};function calculateForwardIndex(viewSize){var index=Glide.index;if(Glide.isType('carousel'))return index+viewSize;return index+(viewSize-index%viewSize);}function normalizeForwardIndex(index,viewSize){var length=Run.length;if(index<=length)return index;if(Glide.isType('carousel'))return index-(length+1);if(Glide.settings.rewind){if(Run.isBound()&&!Run.isEnd())return length;return 0;}if(Run.isBound())return length;return Math.floor(length/viewSize)*viewSize;}function calculateBackwardIndex(viewSize){var index=Glide.index;if(Glide.isType('carousel'))return index-viewSize;var view=Math.ceil(index/viewSize);return (view-1)*viewSize;}function normalizeBackwardIndex(index,viewSize){var length=Run.length;if(index>=0)return index;if(Glide.isType('carousel'))return index+(length+1);if(Glide.settings.rewind){if(Run.isBound()&&Run.isStart())return length;return Math.floor(length/viewSize)*viewSize;}return 0;}define(Run,'move',{get:function get(){return this._m;},set:function set(value){var step=value.substr(1);this._m={direction:value.substr(0,1),steps:step?toInt(step)?toInt(step):step:0};}});define(Run,'length',{get:function get(){var settings=Glide.settings;var length=Components.Html.slides.length;if(this.isBound())return length-1-(toInt(settings.perView)-1)+toInt(settings.focusAt);return length-1;}});define(Run,'offset',{get:function get(){return this._o;}});return Run;}function now(){return new Date().getTime();}function throttle(func,wait){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var timeout,context,args,result;var previous=0;var later=function later(){previous=options.leading===false?0:now();timeout=null;result=func.apply(context,args);if(!timeout)context=args=null;};var throttled=function throttled(){var at=now();if(!previous&&options.leading===false)previous=at;var remaining=wait-(at-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){if(timeout){clearTimeout(timeout);timeout=null;}previous=at;result=func.apply(context,args);if(!timeout)context=args=null;}else{if(!timeout&&options.trailing!==false)timeout=setTimeout(later,remaining);}return result;};throttled.cancel=function(){clearTimeout(timeout);previous=0;timeout=context=args=null;};return throttled;}var MARGIN_TYPE={ltr:['marginLeft','marginRight'],rtl:['marginRight','marginLeft']};function Gaps(Glide,Components,Events){var Gaps={apply:function apply(slides){for(var i=0,len=slides.length;i<len;i++){var style=slides[i].style;var direction=Components.Direction.value;if(i!==0)style[MARGIN_TYPE[direction][0]]="".concat(this.value/2,"px");else style[MARGIN_TYPE[direction][0]]='';if(i!==slides.length-1)style[MARGIN_TYPE[direction][1]]="".concat(this.value/2,"px");else style[MARGIN_TYPE[direction][1]]='';}},remove:function remove(slides){for(var i=0,len=slides.length;i<len;i++){var style=slides[i].style;style.marginLeft='';style.marginRight='';}}};define(Gaps,'value',{get:function get(){return toInt(Glide.settings.gap);}});define(Gaps,'grow',{get:function get(){return Gaps.value*Components.Sizes.length;}});define(Gaps,'reductor',{get:function get(){var perView=Glide.settings.perView;return Gaps.value*(perView-1)/perView;}});Events.on(['build.after','update'],throttle(function(){Gaps.apply(Components.Html.wrapper.children);},30));Events.on('destroy',function(){Gaps.remove(Components.Html.wrapper.children);});return Gaps;}function siblings(node){if(node&&node.parentNode){var n=node.parentNode.firstChild;var matched=[];for(;n;n=n.nextSibling)if(n.nodeType===1&&n!==node)matched.push(n);return matched;}return [];}function toArray(nodeList){return Array.prototype.slice.call(nodeList);}var TRACK_SELECTOR='[data-glide-el="track"]';function Html(Glide,Components,Events){var Html={mount:function mount(){this.root=Glide.selector;this.track=this.root.querySelector(TRACK_SELECTOR);this.collectSlides();},collectSlides:function collectSlides(){this.slides=toArray(this.wrapper.children).filter(function(slide){return !sl
vendor: 17,782 bytes, line 136
136ide.classList.contains(Glide.settings.classes.slide.clone);});}};define(Html,'root',{get:function get(){return Html._r;},set:function set(r){if(isString(r))r=document.querySelector(r);if(r!==null)Html._r=r;else warn('Root element must be a existing Html node');}});define(Html,'track',{get:function get(){return Html._t;},set:function set(t){Html._t=t;}});define(Html,'wrapper',{get:function get(){return Html.track.children[0];}});Events.on('update',function(){Html.collectSlides();});return Html;}function Peek(Glide,Components,Events){var Peek={mount:function mount(){this.value=Glide.settings.peek;}};define(Peek,'value',{get:function get(){return Peek._v;},set:function set(value){if(isObject(value)){value.before=toInt(value.before);value.after=toInt(value.after);}else value=toInt(value);Peek._v=value;}});define(Peek,'reductor',{get:function get(){var value=Peek.value;var perView=Glide.settings.perView;if(isObject(value))return value.before/perView+value.after/perView;return value*2/perView;}});Events.on(['resize','update'],function(){Peek.mount();});return Peek;}function Move(Glide,Components,Events){var Move={mount:function mount(){this._o=0;},make:function make(){var _this=this;var offset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;this.offset=offset;Events.emit('move',{movement:this.value});Components.Transition.after(function(){Events.emit('move.after',{movement:_this.value});});}};define(Move,'offset',{get:function get(){return Move._o;},set:function set(value){Move._o=!isUndefined(value)?toInt(value):0;}});define(Move,'translate',{get:function get(){return Components.Sizes.slideWidth*Glide.index;}});define(Move,'value',{get:function get(){var offset=this.offset;var translate=this.translate;if(Components.Direction.is('rtl'))return translate+offset;return translate-offset;}});Events.on(['build.before','run'],function(){Move.make();});return Move;}function Sizes(Glide,Components,Events){var Sizes={setupSlides:function setupSlides(){var width="".concat(this.slideWidth,"px");var slides=Components.Html.slides;for(var i=0;i<slides.length;i++)slides[i].style.width=width;},setupWrapper:function setupWrapper(){Components.Html.wrapper.style.width="".concat(this.wrapperSize,"px");},remove:function remove(){var slides=Components.Html.slides;for(var i=0;i<slides.length;i++)slides[i].style.width='';Components.Html.wrapper.style.width='';}};define(Sizes,'length',{get:function get(){return Components.Html.slides.length;}});define(Sizes,'width',{get:function get(){return Components.Html.track.offsetWidth;}});define(Sizes,'wrapperSize',{get:function get(){return Sizes.slideWidth*Sizes.length+Components.Gaps.grow+Components.Clones.grow;}});define(Sizes,'slideWidth',{get:function get(){return Sizes.width/Glide.settings.perView-Components.Peek.reductor-Components.Gaps.reductor;}});Events.on(['build.before','resize','update'],function(){Sizes.setupSlides();Sizes.setupWrapper();});Events.on('destroy',function(){Sizes.remove();});return Sizes;}function Build(Glide,Components,Events){var Build={mount:function mount(){Events.emit('build.before');this.typeClass();this.activeClass();Events.emit('build.after');},typeClass:function typeClass(){Components.Html.root.classList.add(Glide.settings.classes.type[Glide.settings.type]);},activeClass:function activeClass(){var classes=Glide.settings.classes;var slide=Components.Html.slides[Glide.index];if(slide){slide.classList.add(classes.slide.active);siblings(slide).forEach(function(sibling){sibling.classList.remove(classes.slide.active);});}},removeClasses:function removeClasses(){var _Glide$settings$class=Glide.settings.classes,type=_Glide$settings$class.type,slide=_Glide$settings$class.slide;Components.Html.root.classList.remove(type[Glide.settings.type]);Components.Html.slides.forEach(function(sibling){sibling.classList.remove(slide.active);});}};Events.on(['destroy','update'],function(){Build.removeClasses();});Events.on(['resize','update'],function(){Build.mount();});Events.on('move.after',function(){Build.activeClass();});return Build;}function Clones(Glide,Components,Events){var Clones={mount:function mount(){this.items=[];if(Glide.isType('carousel'))this.items=this.collect();},collect:function collect(){var items=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var slides=Components.Html.slides;var _Glide$settings=Glide.settings,perView=_Glide$settings.perView,classes=_Glide$settings.classes,cloningRatio=_Glide$settings.cloningRatio;if(slides.length>0){var peekIncrementer=+!!Glide.settings.peek;var cloneCount=perView+peekIncrementer+Math.round(perView/2);var append=slides.slice(0,cloneCount).reverse();var prepend=slides.slice(cloneCount*-1);for(var r=0;r<Math.max(cloningRatio,Math.floor(perView/slides.length));r++){for(var i=0;i<append.length;i++){var clone=append[i].cloneNode(true);clone.classList.add(classes.slide.clone);items.push(clone);}for(var _i=0;_i<prepend.length;_i++){var _clone=prepend[_i].cloneNode(true);_clone.classList.add(classes.slide.clone);items.unshift(_clone);}}}return items;},append:function append(){var items=this.items;var _Components$Html=Components.Html,wrapper=_Components$Html.wrapper,slides=_Components$Html.slides;var half=Math.floor(items.length/2);var prepend=items.slice(0,half).reverse();var append=items.slice(half*-1).reverse();var width="".concat(Components.Sizes.slideWidth,"px");for(var i=0;i<append.length;i++)wrapper.appendChild(append[i]);for(var _i2=0;_i2<prepend.length;_i2++)wrapper.insertBefore(prepend[_i2],slides[0]);for(var _i3=0;_i3<items.length;_i3++)items[_i3].style.width=width;},remove:function remove(){var items=this.items;for(var i=0;i<items.length;i++)Components.Html.wrapper.removeChild(items[i]);}};define(Clones,'grow',{get:function get(){return (Components.Sizes.slideWidth+Components.Gaps.value)*Clones.items.length;}});Events.on('update',function(){Clones.remove();Clones.mount();Clones.append();});Events.on('build.before',function(){if(Glide.isType('carousel'))Clones.append();});Events.on('destroy',function(){Clones.remove();});return Clones;}var EventsBinder=function(){function EventsBinder(){var listeners=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,EventsBinder);this.listeners=listeners;}_createClass(EventsBinder,[{key:"on",value:function on(events,el,closure){var capture=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(isString(events))events=[events];for(var i=0;i<events.length;i++){this.listeners[events[i]]=closure;el.addEventListener(events[i],this.listeners[events[i]],capture);}}},{key:"off",value:function off(events,el){var capture=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(isString(events))events=[events];for(var i=0;i<events.length;i++)el.removeEventListener(events[i],this.listeners[events[i]],capture);}},{key:"destroy",value:function destroy(){delete this.listeners;}}]);return EventsBinder;}();function Resize(Glide,Components,Events){var Binder=new EventsBinder();var Resize={mount:function mount(){this.bind();},bind:function bind(){Binder.on('resize',window,throttle(function(){Events.emit('resize');},Glide.settings.throttle));},unbind:function unbind(){Binder.off('resize',window);}};Events.on('destroy',function(){Resize.unbind();Binder.destroy();});return Resize;}var VALID_DIRECTIONS=['ltr','rtl'];var FLIPED_MOVEMENTS={'>':'<','<':'>','=':'='};function Direction(Glide,Components,Events){var Direction={mount:function mount(){this.value=Glide.settings.direction;},resolve:function resolve(pattern){var token=pattern.slice(0,1);if(this.is('rtl'))return pattern.split(token).join(FLIPED_MOVEMENTS[token]);return pattern;},is:function is(direction){return this.value===direction;},addClass:function addClass(){Components.Html.root.classList.add(Glide.settings.classes.direction[this.value]);},removeClass:function removeClass(){Components.Html.root.classList.remove(Glide.settings.classes.direction[this.value]);}};define(Direction,'value',{get:function get(){return Direction._v;},set:function set(value){if(VALID_DIRECTIONS.indexOf(value)>-1)Direction._v=value;else warn('Direction value must be `ltr` or `rtl`');}});Events.on(['destroy','update'],function(){Direction.removeClass();});Events.on('update',function(){Direction.mount();});Events.on(['build.before','update'],function(){Direction.addClass();});return Direction;}function Rtl(Glide,Components){return {modify:function modify(translate){if(Components.Direction.is('rtl'))return -translate;return translate;}};}function Gap(Glide,Components){return {modify:function modify(translate){var multiplier=Math.floor(translate/Components.Sizes.slideWidth);return translate+Components.Gaps.value*multiplier;}};}function Grow(Glide,Components){return {modify:function modify(translate){return translate+Components.Clones.grow/2;}};}function Peeking(Glide,Components){return {modify:function modify(translate){if(Glide.settings.focusAt>=0){var peek=Components.Peek.value;if(isObject(peek))return translate-peek.before;return translate-peek;}return translate;}};}function Focusing(Glide,Components){return {modify:function modify(translate){var gap=Components.Gaps.value;var width=Components.Sizes.width;var focusAt=Glide.settings.focusAt;var slideWidth=Components.Sizes.slideWidth;if(focusAt==='center')return translate-(width/2-slideWidth/2);return translate-slideWidth*focusAt-gap*focusAt;}};}function mutator(Glide,Components,Events){var TRANSFORMERS=[Gap,Grow,Peeking,Focusing].concat(Glide._t,[Rtl]);return {mutate:function mutate(translate){for(var i=0;i<TRANSFORMERS.length;i++){var transformer=TRANSFORMERS[i];if(isFunction(transformer)&&isFunction(transformer().modify))translate=transformer(Glide,Components,Events).modify(translate);else warn('Transformer should be a function that returns an object with `modify()` method');}return translate;}};}function Translate(Glide,Components,Events){var Translate={set:function set(value){var transform=mutator(Glide,Components).mutate(value);var translate3d="translate3d(".concat(-1*transform,"px, 0px, 0px)");Components.Html.wrapper.style.mozTransform=translate3d;Components.Html.wrapper.style.webkitTransform=translate3d;Components.Html.wrapper.style.transform=translate3d;},remove:function remove(){Components.Html.wrapper.style.transform='';},getStartIndex:function getStartIndex(){var length=Components.Sizes.length;var index=Glide.index;var perView=Glide.settings.perView;if(Components.Run.isOffset('>')||Components.Run.isOffset('|>'))return length+(index-perView);return (index+perView)%length;},getTravelDistance:function getTravelDistance(){var travelDistance=Components.Sizes.slideWidth*Glide.settings.perView;if(Components.Run.isOffset('>')||Components.Run.isOffset('|>'))return travelDistance*-1;return travelDistance;}};Events.on('move',function(context){if(!Glide.isType('carousel')||!Components.Run.isOffset())return Translate.set(context.movement);Components.Transition.after(function(){Events.emit('translate.jump');Translate.set(Components.Sizes.slideWidth*Glide.index);});var startWidth=Components.Sizes.slideWidth*Components.Translate.getStartIndex();return Translate.set(startWidth-Components.Translate.getTravelDistance());});Events.on('destroy',function(){Translate.remove();});return Translate;}function Transition(Glide,Components,Events){var disabled=false;var Transition={compose:function compose(property){var settings=Glide.settings;if(disabled)return "".concat(property," 0ms ").concat(settings.animationTimingFunc);return "".concat(property," ").concat(this.duration,"ms ").concat(settings.animationTimingFunc);},set:function set(){var property=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'transform';Components.Html.wrapper.style.transition=this.compose(property);},remove:function remove(){Components.Html.wrapper.style.transition='';},after:function after(callback){setTimeout(function(){callback();},this.duration);},enable:function enable(){disabled=false;this.set();},disable:function disable(){disabled=true;this.set();}};define(Transition,'duration',{get:function get(){var settings=Glide.settings;if(Glide.isType('slider')&&Components.Run.offset)return settings.rewindDuration;return settings.animationDuration;}});Events.on('move',function(){Transition.set();});Events.on(['build.before','resize','translate.jump'],function(){Transition.disable();});Events.on('run',function(){Transition.enable();});Events.on('destroy',function(){Transition.remove();});return Transition;}var supportsPassive=false;try{var opts=Object.defineProperty({},'passive',{get:function get(){supportsPassive=true;}});window.addEventListener('testPassive',null,opts);window.removeEventListener('testPassive',null,opts);}catch(e){}var supportsPassive$1=supportsPassive;var START_EVENTS=['touchstart','mousedown'];var MOVE_EVENTS=['touchmove','mousemove'];var END_EVENTS=['touchend','touchcancel','mouseup','mouseleave'];var MOUSE_EVENTS=['mousedown','mousemove','mouseup','mouseleave'];function Swipe(Glide,Components,Events){var Binder=new EventsBinder();var swipeSin=0;var swipeStartX=0;var swipeStartY=0;var disabled=false;var capture=supportsPassive$1?{passive:true}:false;var Swipe={mount:function mount(){this.bindSwipeStart();},start:function start(event){if(!disabled&&!Glide.disabled){this.disable();var swipe=this.touches(event);swipeSin=null;swipeStartX=toInt(swipe.pageX);swipeStartY=toInt(swipe.pageY);this.bindSwipeMove();this.bindSwipeEnd();Events.emit('swipe.start');}},move:function move(event){if(!Glide.disabled){var _Glide$settings=Glide.settings,touchAngle=_Glide$settings.touchAngle,touchRatio=_Glide$settings.touchRatio,classes=_Glide$settings.classes;var swipe=this.touches(event);var subExSx=toInt(swipe.pageX)-swipeStartX;var subEySy=toInt(swipe.pageY)-swipeStartY;var powEX=Math.abs(subExSx<<2);var powEY=Math.abs(subEySy<<2);var swipeHypotenuse=Math.sqrt(powEX+powEY);var swipeCathetus=Math.sqrt(powEY);swipeSin=Math.asin(swipeCathetus/swipeHypotenuse);if(swipeSin*180/Math.PI<touchAngle){event.stopPropagation();Components.Move.make(subExSx*toFloat(touchRatio));Components.Html.root.classList.add(classes.dragging);Events.emit('swipe.move');}else return false;}},end:function end(event){if(!Glide.disabled){var _Glide$settings2=Glide.settings,perSwipe=_Glide$settings2.perSwipe,touchAngle=_Glide$settings2.touchAngle,classes=_Glide$settings2.classes;var swipe=this.touches(event);var threshold=this.threshold(event);var swipeDistance=swipe.pageX-swipeStartX;var swipeDeg=swipeSin*180/Math.PI;this.enable();if(swipeDistance>threshold&&swipeDeg<touchAngle)Components.Run.make(Components.Direction.resolve("".concat(perSwipe,"<")));else if(swipeDistance<-threshold&&swipeDeg<touchAngle)Components.Run.make(Components.Direction.resolve("".concat(perSwipe,">")));else Components.Move.make();Components.Html.root.classList.remove(classes.dragging);this.unbindSwipeMove();this.unbindSwipeEnd();Events.emit('swipe.end');}},bindSwipeStart:function bindSwipeStart(){var _this=this;var _Glide$settings3=Glide.settings,swipeThreshold=_Glide$settings3.swipeThreshold,dragThreshold=_Glide$settings3.dragThreshold;if(swipeThreshold)Binder.on(START_EVENTS[0],Components.Html.wrapper,function(event){_this.start(event);},capture);if(dragThreshold)Binder.on(START_EVENTS[1],Components.Html.wrapper,function(event){_this.start(event);},capture);},unbindSwipeStart:function unbindSwipeStart(){Binder.off(START_EVENTS[0],Components.Html.wrapper,capture);Binder.off(START_EVENTS[1],Components.Html.wrapper,capture);},bindSwipeMove:function bindSwipeMove(){var _this2=this;Binder.on(MOVE_EVENTS,Components.Html.wrapper,throttle(function(event){_this2.move(event);},Glide.settings.throttle),capture);},unbindSwipeMove:function unbindSwipeMove(){Binder.off(MOVE_EVENTS,Components.Html.wrapper,capture);},bindSwipeEnd:function bindSwipeEnd(){var _this3=this;Binder.on(END_EVENTS,Components.Html.wrapper,function(event){_this3.end(event);});},unbindSwipeEnd:function unbindSwipeEnd(){Binder.off(END_EVENTS,Components.Html.wrapper);},touches:function touches(event){if(MOUSE_EVENTS.indexOf(event.type)>-1)return event;return event.touches[0]||event.changedTouches[0];},threshold:function threshold(event){var settings=Glide.settings;if(MOUSE_EVENTS.indexOf(event.type)>-1)return settings.dragThreshold;return settings.swipeThreshold;},enable:function enable(){disabled=false;Components.Transition.enable();return this;},disable:function disable(){disabled=true;Components.Transition.disable();return this;}};Events.on('build.after',function(){Components.Html.root.classList.add(Glide.settings.classes.swipeable);});Events.on('destroy',function(){Swipe.unbindSwipeStart();Swipe.unbindSwipeMove();Swipe.unbindSwipeEnd();Binder.destroy();});return Swipe;}function Images(Glide,Components,Events){var Binder=new EventsBinder();var Images={mount:function mount(){this.bind();},bind:function bind(){Binder.on('dragstart',Components.Html.wrapper,this.dragstart);},unbind:function unbind(){Binder.off('dragstart',Components.Html.wrapper);},dragstart:function dragstart(event){event.preventDefault();}};Events.on('destroy',function(){Images.unbind();Binder.destroy();});return Images;}function Anchors(Glide,Components,Events){var Binder=new EventsBinder();var detached=false;var prevented=false;var Anchors={mount:function mount(){this._a=Components.Html.wrapper.querySelectorAll('a');this.bind();},bind:function bind(){Binder.on('click',Components.Html.wrapper,this.click);},unbind:function unbind(){Binder.off('click',Components.Html.wrapper);},click:function click(event){if(prevented){event.stopPropagation();event.preventDefault();}},detach:function detach(){prevented=true;if(!detached){for(var i=0;i<this.items.length;i++)this.items[i].draggable=false;detached=true;}return this;},attach:function attach(){prevented=false;
136if(detached){for(var i=0;i<this.items.length;i++)this.items[i].draggable=true;detached=false;}return this;}};define(Anchors,'items',{get:function get(){return Anchors._a;}});Events.on('swipe.move',function(){Anchors.detach();});Events.on('swipe.end',function(){Components.Transition.after(function(){Anchors.attach();});});Events.on('destroy',function(){Anchors.attach();Anchors.unbind();Binder.destroy();});return Anchors;}var NAV_SELECTOR='[data-glide-el="controls[nav]"]';var CONTROLS_SELECTOR='[data-glide-el^="controls"]';var PREVIOUS_CONTROLS_SELECTOR="".concat(CONTROLS_SELECTOR," [data-glide-dir*=\"<\"]");var NEXT_CONTROLS_SELECTOR="".concat(CONTROLS_SELECTOR," [data-glide-dir*=\">\"]");function Controls(Glide,Components,Events){var Binder=new EventsBinder();var capture=supportsPassive$1?{passive:true}:false;var Controls={mount:function mount(){this._n=Components.Html.root.querySelectorAll(NAV_SELECTOR);this._c=Components.Html.root.querySelectorAll(CONTROLS_SELECTOR);this._arrowControls={previous:Components.Html.root.querySelectorAll(PREVIOUS_CONTROLS_SELECTOR),next:Components.Html.root.querySelectorAll(NEXT_CONTROLS_SELECTOR)};this.addBindings();},setActive:function setActive(){for(var i=0;i<this._n.length;i++)this.addClass(this._n[i].children);},removeActive:function removeActive(){for(var i=0;i<this._n.length;i++)this.removeClass(this._n[i].children);},addClass:function addClass(controls){var settings=Glide.settings;var item=controls[Glide.index];if(!item)return;item.classList.add(settings.classes.nav.active);siblings(item).forEach(function(sibling){sibling.classList.remove(settings.classes.nav.active);});},removeClass:function removeClass(controls){var item=controls[Glide.index];item===null||item===void 0?void 0:item.classList.remove(Glide.settings.classes.nav.active);},setArrowState:function setArrowState(){if(Glide.settings.rewind)return;var next=Controls._arrowControls.next;var previous=Controls._arrowControls.previous;this.resetArrowState(next,previous);if(Glide.index===0)this.disableArrow(previous);if(Glide.index===Components.Run.length)this.disableArrow(next);},resetArrowState:function resetArrowState(){var settings=Glide.settings;for(var _len=arguments.length,lists=new Array(_len),_key=0;_key<_len;_key++)lists[_key]=arguments[_key];lists.forEach(function(list){toArray(list).forEach(function(element){element.classList.remove(settings.classes.arrow.disabled);});});},disableArrow:function disableArrow(){var settings=Glide.settings;for(var _len2=arguments.length,lists=new Array(_len2),_key2=0;_key2<_len2;_key2++)lists[_key2]=arguments[_key2];lists.forEach(function(list){toArray(list).forEach(function(element){element.classList.add(settings.classes.arrow.disabled);});});},addBindings:function addBindings(){for(var i=0;i<this._c.length;i++)this.bind(this._c[i].children);},removeBindings:function removeBindings(){for(var i=0;i<this._c.length;i++)this.unbind(this._c[i].children);},bind:function bind(elements){for(var i=0;i<elements.length;i++){Binder.on('click',elements[i],this.click);Binder.on('touchstart',elements[i],this.click,capture);}},unbind:function unbind(elements){for(var i=0;i<elements.length;i++)Binder.off(['click','touchstart'],elements[i]);},click:function click(event){if(!supportsPassive$1&&event.type==='touchstart')event.preventDefault();var direction=event.currentTarget.getAttribute('data-glide-dir');Components.Run.make(Components.Direction.resolve(direction));}};define(Controls,'items',{get:function get(){return Controls._c;}});Events.on(['mount.after','move.after'],function(){Controls.setActive();});Events.on(['mount.after','run'],function(){Controls.setArrowState();});Events.on('destroy',function(){Controls.removeBindings();Controls.removeActive();Binder.destroy();});return Controls;}function Keyboard(Glide,Components,Events){var Binder=new EventsBinder();var Keyboard={mount:function mount(){if(Glide.settings.keyboard)this.bind();},bind:function bind(){Binder.on('keyup',document,this.press);},unbind:function unbind(){Binder.off('keyup',document);},press:function press(event){var perSwipe=Glide.settings.perSwipe;
136var arrowSymbols={ArrowRight:'>',ArrowLeft:'<'};if(['ArrowRight','ArrowLeft'].includes(event.code))Components.Run.make(Components.Direction.resolve("".concat(perSwipe).concat(arrowSymbols[event.code])));}};Events.on(['destroy','update'],function(){Keyboard.unbind();});Events.on('update',function(){Keyboard.mount();});Events.on('destroy',function(){Binder.destroy();});return Keyboard;}function Autoplay(Glide,Components,Events){var Binder=new EventsBinder();var Autoplay={mount:function mount(){this.enable();this.start();if(Glide.settings.hoverpause)this.bind();},enable:function enable(){this._e=true;},disable:function disable(){this._e=false;},start:function start(){var _this=this;if(!this._e)return;this.enable();if(Glide.settings.autoplay)if(isUndefined(this._i))this._i=setInterval(function(){_this.stop();Components.Run.make('>');_this.start();Events.emit('autoplay');},this.time);},stop:function stop(){this._i=clearInterval(this._i);},bind:function bind(){var _this2=this;Binder.on('mouseover',Components.Html.root,function(){if(_this2._e)_this2.stop();});Binder.on('mouseout',Components.Html.root,function(){if(_this2._e)_this2.start();});},unbind:function unbind(){Binder.off(['mouseover','mouseout'],Components.Html.root);}};define(Autoplay,'time',{get:function get(){var autoplay=Components.Html.slides[Glide.index].getAttribute('data-glide-autoplay');if(autoplay)return toInt(autoplay);return toInt(Glide.settings.autoplay);}});Events.on(['destroy','update'],function(){Autoplay.unbind();});Events.on(['run.before','swipe.start','update'],function(){Autoplay.stop();});Events.on(['pause','destroy'],function(){Autoplay.disable();Autoplay.stop();});Events.on(['run.after','swipe.end'],function(){Autoplay.start();});Events.on(['play'],function(){Autoplay.enable();Autoplay.start();});Events.on('update',function(){Autoplay.mount();});Events.on('destroy',function(){Binder.destroy();});return Autoplay;}function sortBreakpoints(points){if(isObject(points))return sortKeys(points);else warn("Breakpoints option must be an object");return {};}function Breakpoints(Glide,Components,Events){var Binder=new EventsBinder();var settings=Glide.settings;var points=sortBreakpoints(settings.breakpoints);var defaults=Object.assign({},settings);var Breakpoints={match:function match(points){if(typeof window.matchMedia!=='undefined')for(var point in points)if(points.hasOwnProperty(point))if(window.matchMedia("(max-width: ".concat(point,"px)")).matches)return points[point];return defaults;}};Object.assign(settings,Breakpoints.match(points));Binder.on('resize',window,throttle(function(){Glide.settings=mergeOptions(settings,Breakpoints.match(points));},Glide.settings.throttle));Events.on('update',function(){points=sortBreakpoints(points);defaults=Object.assign({},settings);});Events.on('destroy',function(){Binder.off('resize',window);});return Breakpoints;}var COMPONENTS={Html,Translate,Transition,Direction,Peek,Sizes,Gaps,Move,Clones,Resize,Build,Run,Swipe,Images,Anchors,Controls,Keyboard,Autoplay,Breakpoints};var Glide=function(_Core){_inherits(Glide,_Core);var _super=_createSuper(Glide);function Glide(){_classCallCheck(this,Glide);return _super.apply(this,arguments);}_createClass(Glide,[{key:"mount",value:function mount(){var extensions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return _get(_getPrototypeOf(Glide.prototype),"mount",this).call(this,Object.assign({},COMPONENTS,extensions));}}]);return Glide;}(Glide$1);return Glide;}));;
137!function(t,e){"use strict";function i(){}i.TO_RAD=Math.PI/180,i.TO_DEG=180/Math.PI,i.PI_X2=2*Math.PI,i.PI_DIV4=Math.PI/4;var a=Object.create(i.prototype,{version:{value:"2.0.23"},radius:{value:6378137},minLat:{value:-90},maxLat:{value:90},minLon:{value:-180},maxLon:{value:180},sexagesimalPattern:{value:/^([0-9]{1,3})°\s*([0-9]{1,3}(?:\.(?:[0-9]{1,2}))?)'\s*(([0-9]{1,3}(\.([0-9]{1,4}))?)"\s*)?([NEOSW]?)$/},measures:{value:Object.create(Object.prototype,{m:{value:1},km:{value:.001},cm:{value:100},mm:{value:1e3},mi:{value:1/1609.344},sm:{value:1/1852.216},ft:{value:100/30.48},in:{value:100/2.54},yd:{value:1/.9144}})},prototype:{value:i.prototype},extend:{value:function(t,e){for(var i in t)void 0!==a.prototype[i]&&
137!0!==e||("function"==typeof t[i]&&"function"==typeof t[i].bind?a.prototype[i]=t[i].bind(a):a.prototype[i]=t[i]);}}});void 0===Number.prototype.toRad&&(Number.prototype.toRad=function(){return this*i.TO_RAD;}),void 0===Number.prototype.toDeg&&(Number.prototype.toDeg=function(){return this*i.TO_DEG;}),a.extend({decimal:{},sexagesimal:{},distance:null,getKeys:function(t){if("[object Array]"==Object.prototype.toString.call(t))return {longitude:t.length>=1?0:e,latitude:t.length>=2?1:e,elevation:t.length>=3?2:e};var i=function(e){var i;return e.every((function(e){return "object"!=typeof t||(!t.hasOwnProperty(e)||(i=e,!1));})),i;},a=i(["lng","lon","longitude"]),n=i(["lat","latitude"]),o=i(["alt","altitude","elevation","elev"]);return void 0===n&&void 0===a&&void 0===o?e:{latitude:n,longitude:a,elevation:o};},getLat:function(t,e){return !0===e?t[this.getKeys(t).latitude]:this.useDecimal(t[this.getKeys(t).latitude]);},latitude:function(t){return this.getLat.call(this,t);},getLon:function(t,e){return !0===e?t[this.getKeys(t).longitude]:this.useDecimal(t[this.getKeys(t).longitude]);},longitude:function(t){return this.getLon.call(this,t);},getElev:function(t){return t[this.getKeys(t).elevation];},elevation:function(t){return this.getElev.call(this,t);},coords:function(t,e){var i={latitude:!0===e?t[this.getKeys(t).latitude]:this.useDecimal(t[this.getKeys(t).latitude]),longitude:!0===e?t[this.getKeys(t).longitude]:this.useDecimal(t[this.getKeys(t).longitude])},a=t[this.getKeys(t).elevation];return void 0!==a&&(i.elevation=a),i;},ll:function(t,e){return this.coords.call(this,t,e);},validate:function(t){var e=this.getKeys(t);if(void 0===e||void 0===e.latitude||"undefined"===e.longitude)return !1;var i=t[e.latitude],a=t[e.longitude];return !(void 0===i||!this.isDecimal(i)&&!this.isSexagesimal(i))&&(!(void 0===a||!this.isDecimal(a)&&!this.isSexagesimal(a))&&(i=this.useDecimal(i),a=this.useDecimal(a),!(i<this.minLat||i>this.maxLat||a<this.minLon||a>this.maxLon)));},getDistance:function(t,e,i,n){i=Math.floor(i)||1,n=Math.floor(n)||0;var o,s,r,u,h,l,d,c=this.coords(t),g=this.coords(e),m=6378137,f=6356752.314245,v=1/298.257223563,M=(g.longitude-c.longitude).toRad(),p=Math.atan((1-v)*Math.tan(parseFloat(c.latitude).toRad())),x=Math.atan((1-v)*Math.tan(parseFloat(g.latitude).toRad())),D=Math.sin(p),b=Math.cos(p),y=Math.sin(x),L=Math.cos(x),R=M,P=100;do{var N=Math.sin(R),E=Math.cos(R);if(0===(l=Math.sqrt(L*N*(L*N)+(b*y-D*L*E)*(b*y-D*L*E))))return a.distance=0;o=D*y+b*L*E,s=Math.atan2(l,o),h=o-2*D*y/(u=1-(r=b*L*N/l)*r),isNaN(h)&&(h=0);var I=v/16*u*(4+v*(4-3*u));d=R,R=M+(1-I)*v*r*(s+I*l*(h+I*o*(2*h*h-1)));}while(Math.abs(R-d)>1e-12&&--P>0);if(0===P)return NaN;var S=u*(m*m-f*f)/(f*f),F=S/1024*(256+S*(S*(74-47*S)-128)),k=f*(1+S/16384*(4096+S*(S*(320-175*S)-768)))*(s-F*l*(h+F/4*(o*(2*h*h-1)-F/6*h*(4*l*l-3)*(4*h*h-3))));if(k=k.toFixed(n),void 0!==this.elevation(t)&&void 0!==this.elevation(e)){var O=Math.abs(this.elevation(t)-this.elevation(e));k=Math.sqrt(k*k+O*O);}return this.distance=Math.round(k*Math.pow(10,n)/i)*i/Math.pow(10,n);},getDistanceSimple:function(t,e,i){i=Math.floor(i)||1;var n=Math.round(Math.acos(Math.sin(this.latitude(e).toRad())*Math.sin(this.latitude(t).toRad())+Math.cos(this.latitude(e).toRad())*Math.cos(this.latitude(t).toRad())*Math.cos(this.longitude(t).toRad()-this.longitude(e).toRad()))*this.radius);return a.distance=Math.floor(Math.round(n/i)*i);},getCenter:function(t){var e=t;if("object"==typeof t&&!(t instanceof Array))for(var a in e=[],t)e.push(this.coords(t[a]));if(!e.length)return !1;var n,o,s,r=0,u=0,h=0;e.forEach((function(t){n=this.latitude(t).toRad(),o=this.longitude(t).toRad(),r+=Math.cos(n)*Math.cos(o),u+=Math.cos(n)*Math.sin(o),h+=Math.sin(n);}),this);var l=e.length;return r/=l,u/=l,h/=l,o=Math.atan2(u,r),s=Math.sqrt(r*r+u*u),{latitude:((n=Math.atan2(h,s))*i.TO_DEG).toFixed(6),longitude:(o*i.TO_DEG).toFixed(6)};},getBounds:function(t){if(!t.length)return !1;var e=this.elevation(t[0]),i={maxLat:-1/0,minLat:1/0,maxLng:-1/0,minLng:1/0};void 0!==e&&(i.maxElev=0,i.minElev=1/0);for(var a=0,n=t.length;a<n;++a)i.maxLat=Math.max(this.latitude(t[a]),i.maxLat),i.minLat=Math.min(this.latitude(t[a]),i.minLat),i.maxLng=Math.max(this.longitude(t[a]),i.maxLng),i.minLng=Math.min(this.longitude(t[a]),i.minLng),e&&(i.maxElev=Math.max(this.elevation(t[a]),i.maxElev),i.minElev=Math.min(this.elevation(t[a]),i.minElev));return i;},getCenterOfBounds:function(t){var e=this.getBounds(t),i=e.minLat+(e.maxLat-e.minLat)/2,a=e.minLng+(e.maxLng-e.minLng)/2;return {latitude:parseFloat(i.toFixed(6)),longitude:parseFloat(a.toFixed(6))};},getBoundsOfDistance:function(t,e){var a,n,o=this.latitude(t),s=this.longitude(t),r=o.toRad(),u=s.toRad(),h=e/this.radius,l=r-h,d=r+h,c=this.maxLat.toRad(),g=this.minLat.toRad(),m=this.maxLon.toRad(),f=this.minLon.toRad();if(l>g&&d<c){var v=Math.asin(Math.sin(h)/Math.cos(r));(a=u-v)<f&&(a+=i.PI_X2),(n=u+v)>m&&(n-=i.PI_X2);}else l=Math.max(l,g),d=Math.min(d,c),a=f,n=m;return [{latitude:l.toDeg(),longitude:a.toDeg()},{latitude:d.toDeg(),longitude:n.toDeg()}];},isPointInside:function(t,e){for(var i=!1,a=-1,n=e.length,o=n-1;++a<n;o=a)(this.longitude(e[a])<=this.longitude(t)&&this.longitude(t)<this.longitude(e[o])||this.longitude(e[o])<=this.longitude(t)&&this.longitude(t)<this.longitude(e[a]))&&this.latitude(t)<(this.latitude(e[o])-this.latitude(e[a]))*(this.longitude(t)-this.longitude(e[a]))/(this.longitude(e[o])-this.longitude(e[a]))+this.latitude(e[a])&&(i=!i);return i;},preparePolygonForIsPointInsideOptimized:function(t){for(var e=0,i=t.length-1;e<t.length;
137e++)this.longitude(t[i])===this.longitude(t[e])?(t[e].constant=this.latitude(t[e]),t[e].multiple=0):(t[e].constant=this.latitude(t[e])-this.longitude(t[e])*this.latitude(t[i])/(this.longitude(t[i])-this.longitude(t[e]))+this.longitude(t[e])*this.latitude(t[e])/(this.longitude(t[i])-this.longitude(t[e])),t[e].multiple=(this.latitude(t[i])-this.latitude(t[e]))/(this.longitude(t[i])-this.longitude(t[e]))),i=e;},isPointInsideWithPreparedPolygon:function(t,e){for(var i=!1,a=this.longitude(t),n=this.latitude(t),o=0,s=e.length-1;o<e.length;o++)(this.longitude(e[o])<a&&this.longitude(e[s])>=a||this.longitude(e[s])<a&&this.longitude(e[o])>=a)&&(i^=a*e[o].multiple+e[o].constant<n),s=o;return i;},isInside:function(){return this.isPointInside.apply(this,arguments);},isPointInCircle:function(t,e,i){return this.getDistance(t,e)<i;},withinRadius:function(){return this.isPointInCircle.apply(this,arguments);},getRhumbLineBearing:function(t,e){var a=this.longitude(e).toRad()-this.longitude(t).toRad(),n=Math.log(Math.tan(this.latitude(e).toRad()/2+i.PI_DIV4)/Math.tan(this.latitude(t).toRad()/2+i.PI_DIV4));return Math.abs(a)>Math.PI&&(a=a>0?-1*(i.PI_X2-a):i.PI_X2+a),(Math.atan2(a,n).toDeg()+360)%360;},getBearing:function(t,e){return e.latitude=this.latitude(e),e.longitude=this.longitude(e),t.latitude=this.latitude(t),t.longitude=this.longitude(t),(Math.atan2(Math.sin(e.longitude.toRad()-t.longitude.toRad())*Math.cos(e.latitude.toRad()),Math.cos(t.latitude.toRad())*Math.sin(e.latitude.toRad())-Math.sin(t.latitude.toRad())*Math.cos(e.latitude.toRad())*Math.cos(e.longitude.toRad()-t.longitude.toRad())).toDeg()+360)%360;},getCompassDirection:function(t,e,i){var a,n;switch(n="circle"==i?this.getBearing(t,e):this.getRhumbLineBearing(t,e),Math.round(n/22.5)){case 1:a={exact:"NNE",rough:"N"};break;case 2:a={exact:"NE",rough:"N"};break;case 3:a={exact:"ENE",rough:"E"};break;case 4:a={exact:"E",rough:"E"};break;case 5:a={exact:"ESE",rough:"E"};break;case 6:a={exact:"SE",rough:"E"};break;case 7:a={exact:"SSE",rough:"S"};break;case 8:a={exact:"S",rough:"S"};break;case 9:a={exact:"SSW",rough:"S"};break;case 10:a={exact:"SW",rough:"S"};break;case 11:a={exact:"WSW",rough:"W"};break;case 12:a={exact:"W",rough:"W"};break;case 13:a={exact:"WNW",rough:"W"};break;case 14:a={exact:"NW",rough:"W"};break;case 15:a={exact:"NNW",rough:"N"};break;default:a={exact:"N",rough:"N"};}return a.bearing=n,a;},getDirection:function(t,e,i){return this.getCompassDirection.apply(this,arguments);},orderByDistance:function(t,e){return Object.keys(e).map((function(i){var a=this.getDistance(t,e[i]),n=Object.create(e[i]);return n.distance=a,n.key=i,n;}),this).sort((function(t,e){return t.distance-e.distance;}));},isPointInLine:function(t,e,i){return (this.getDistance(e,t,1,3)+this.getDistance(t,i,1,3)).toFixed(3)==this.getDistance(e,i,1,3);},isPointNearLine:function(t,e,i,a){return this.getDistanceFromLine(t,e,i)<a;},getDistanceFromLine:function(t,e,i){var a=this.getDistance(e,t,1,3),n=this.getDistance(t,i,1,3),o=this.getDistance(e,i,1,3),s=Math.acos((a*a+o*o-n*n)/(2*a*o)),r=Math.acos((n*n+o*o-a*a)/(2*n*o));return s>Math.PI/2?a:r>Math.PI/2?n:Math.sin(s)*a;},findNearest:function(t,e,i,a){i=i||0,a=a||1;var n=this.orderByDistance(t,e);return 1===a?n[i]:n.splice(i,a);},getPathLength:function(t){for(var e,i=0,a=0,n=t.length;a<n;++a)e&&(i+=this.getDistance(this.coords(t[a]),e)),e=this.coords(t[a]);return i;},getSpeed:function(t,e,i){var n=i&&i.unit||"km";"mph"==n?n="mi":"kmh"==n&&(n="km");var o=a.getDistance(t,e)/(1*e.time/1e3-1*t.time/1e3)*3600;return Math.round(o*this.measures[n]*1e4)/1e4;},computeDestinationPoint:function(t,e,i,a){var n=this.latitude(t),o=this.longitude(t);a=void 0===a?this.radius:Number(a);var s=Number(e)/a,r=Number(i).toRad(),u=Number(n).toRad(),h=Number(o).toRad(),l=Math.asin(Math.sin(u)*Math.cos(s)+Math.cos(u)*Math.sin(s)*Math.cos(r)),d=h+Math.atan2(Math.sin(r)*Math.sin(s)*Math.cos(u),Math.cos(s)-Math.sin(u)*Math.sin(l));return d=(d+3*Math.PI)%(2*Math.PI)-Math.PI,{latitude:l.toDeg(),longitude:d.toDeg()};},convertUnit:function(t,e,i){if(0===e)return 0;if(void 0===e){if(null===this.distance)throw new Error("No distance was given");if(0===this.distance)return 0;e=this.distance;}if(t=t||"m",i=null==i?4:i,void 0!==this.measures[t])return this.round(e*this.measures[t],i);throw new Error("Unknown unit for conversion.");},useDecimal:function(t){if("[object Array]"===Object.prototype.toString.call(t)){var e=this;return t=t.map((function(t){if(e.isDecimal(t))return e.useDecimal(t);if("object"==typeof t){if(e.validate(t))return e.coords(t);for(var i in t)t[i]=e.useDecimal(t[i]);return t;}return e.isSexagesimal(t)?e.sexagesimal2decimal(t):t;})),t;}if("object"==typeof t&&this.validate(t))return this.coords(t);if("object"==typeof t){for(var i in t)t[i]=this.useDecimal(t[i]);return t;}if(this.isDecimal(t))return parseFloat(t);if(!0===this.isSexagesimal(t))return parseFloat(this.sexagesimal2decimal(t));throw new Error("Unknown format.");},decimal2sexagesimal:function(t){if(t in this.sexagesimal)return this.sexagesimal[t];var e=t.toString().split("."),i=Math.abs(e[0]),a=60*("0."+(e[1]||0)),n=a.toString().split(".");return a=Math.floor(a),n=(60*("0."+(n[1]||0))).toFixed(2),this.sexagesimal[t]=i+"° "+a+"' "+n+'"',this.sexagesimal[t];},sexagesimal2decimal:function(t){if(t in this.decimal)return this.decimal[t];var e=new RegExp(this.sexagesimalPattern).exec(t),i=0,a=0;e&&(i=parseFloat(e[2]/60),a=parseFloat(e[4]/3600)||0);var n=(parseFloat(e[1])+i+a).toFixed(8);return n="S"==e[7]||"W"==e[7]?parseFloat(-n):parseFloat(n),this.decimal[t]=n,n;},isDecimal:function(t){return t=t.toString().replace(/\s*/,""),!isNaN(parseFloat(t))&&parseFloat(t)==t;},isSexagesimal:function(t){return t=t.toString().replace(/\s*/,""),this.sexagesimalPattern.test(t);},round:function(t,e){var i=Math.pow(10,e);return Math.round(t*i)/i;}}),"undefined"!=typeof module&&void 0!==module.exports?(module.exports=a,"object"==typeof t&&(t.geolib=a)):"function"==typeof define&&define.amd?define("geolib",[],(function(){return a;})):t.geolib=a;}(this);;
138!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Headroom=n();}(this,function(){"use strict";function t(){return "undefined"!=typeof window;}function d(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType;}(t.document);}(t)?function(t){var n=t.document,o=n.body,s=n.documentElement;return {scrollHeight:function(){return Math.max(o.scrollHeight,s.scrollHeight,o.offsetHeight,s.offsetHeight,o.clientHeight,s.clientHeight);}
138,height:function(){return t.innerHeight||s.clientHeight||o.clientHeight;},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(s||o.parentNode||o).scrollTop;}};}(t):function(t){return {scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight);},height:function(){return Math.max(t.offsetHeight,t.clientHeight);},scrollY:function(){return t.scrollTop;}};}(t);}function n(t,s,e){var n,o=function(){var n=!1;try{var t={get passive(){n=!0;}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t);}catch(t){n=!1;}return n;}(),i=!1,r=d(t),l=r.scrollY(),a={};function c(){var t=Math.round(r.scrollY()),n=r.height(),o=r.scrollHeight();a.scrollY=t,a.lastScrollY=l,a.direction=l<t?"down":"up",a.distance=Math.abs(t-l),a.isOutOfBounds=t<0||o<t+n,a.top=t<=s.offset[a.direction],a.bottom=o<=t+n,a.toleranceExceeded=a.distance>s.tolerance[a.direction],e(a),l=t,i=!1;}function h(){i||(i=!0,n=requestAnimationFrame(c));}var u=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,u),c(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,u);}};}function o(t){return t===Object(t)?t:{down:t,up:t};}function s(t,n){n=n||{},Object.assign(this,s.options,n),this.classes=Object.assign({},s.options.classes,n.classes),this.elem=t,this.tolerance=o(this.tolerance),this.offset=o(this.offset),this.initialised=!1,this.frozen=!1;}return s.prototype={constructor:s,init:function(){return s.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t));},100,this)),this;},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy();},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this));},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this));},freeze:function(){this.frozen=!0,this.addClass("frozen");},unfreeze:function(){this.frozen=!1,this.removeClass("frozen");},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this));},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this));},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this));},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this));},shouldUnpin:function(t){return "down"===t.direction&&!t.top&&t.toleranceExceeded;},shouldPin:function(t){return "up"===t.direction&&t.toleranceExceeded||t.top;},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "));},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "));},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t);},this.elem);},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin());}},s.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},s.cutsTheMustard=!!(t()&&function(){}.bind&&"classList" in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),s;});const headroomOptions={offset:{up:25,down:25},tolerance:25};const headroomElm=document.querySelector(".site-navbar");const headroomObject=new Headroom(headroomElm,headroomOptions);headroomObject.init();;
139(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,483 bytes, lines 139-141
139" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
140/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
141loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
141for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
142/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
143Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
144(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
145((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
146((Drupal)=>{Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress--fullscreen">
146<div class="ajax-progress__throbber ajax-progress__throbber--fullscreen">&nbsp;</div></div>';Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="ajax-progress__throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressMessage=(message)=>`<div class="ajax-progress__message">${message}</div>`;})(Drupal);;
147(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl.hasOwnProperty(originalUrl))drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url))if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
147$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url)&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
147d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
147$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
148(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
1480&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
148if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
149(function($,Drupal){Drupal.behaviors.bouwgarantAutocomplete={attach(context){const $input=$('[data-drupal-selector="edit-contract-contractor"]',context);const $hidden=$('[data-drupal-selector="edit-contract-contractor-id"]',context);if(!$input.length||!$hidden.length)return;if($input.data('bg-enhanced'))return;$input.data('bg-enhanced',true);const $wrapper=$('<div class="bouwgarant-tag-wrapper"></div>');$input.after($wrapper);$wrapper.append($input);const invalidSelectionMessage=Drupal.t('Selecteer een aannemer uit de lijst.');function clearSelectedContractor(){$hidden.val('');$input.val('').prop('readonly',false).show().focus();}$input.on('input',function(){$hidden.val('');this.setCustomValidity('');});$input.on('blur',function(){const hasTypedValue=Boolean($input.val().trim());const hasSelectedId=Boolean($hidden.val().trim());if(hasTypedValue&&!hasSelectedId){this.setCustomValidity(invalidSelectionMessage);$input.val('');}else this.setCustomValidity('');});$input.on('autocompleteselect',(event,ui)=>{const id=ui.item?.data?.id||'';const value=ui.item?.value||'';const label=ui.item?.label||value;if(!id)return;$hidden.val(id);$input.val(value).prop('readonly',true)[0].setCustomValidity('');const safe=Drupal.checkPlain(label);const $tag=$(`
150          <div class="bouwgarant-tag">
151            <span class="bouwgarant-tag-label">${safe}</span>
152            <button type="button" class="bouwgarant-tag-remove" aria-label="Verwijder aannemer">×</button>
153          </div>
154        `);$wrapper.find('.bouwgarant-tag').remove();$wrapper.append($tag);$input.hide();$tag.find('.bouwgarant-tag-remove').on('click',()=>{$tag.remove();clearSelectedContractor();});});}};})(jQuery,Drupal);;
155(function($,Drupal,once){Drupal.behaviors.bouwgarantInlineValidation={attach:function(context){function toggleNextButton(){const valid=allFieldsValid();const $next=$('button.webform-button--next',context);if(valid)$next.show().prop('disabled',false);else $next.hide().prop('disabled',true);}function allFieldsValid(){const radiosToCheck=[{name:'is_project_on_water',mustBe:'no'},{name:'is_new_build_project',mustBe:'no'},{name:'is_renovation_over_75000',mustBe:'no'},{name:'is_covo2024_applicable',mustBe:'yes'}];for(const r of radiosToCheck){const $radios=$(`input[name="${r.name}"]`,context);if($radios.length===0)continue;const value=$(`input[name="${r.name}"]:checked`,context).val();if(!value||value!==r.mustBe)return false;}if($('.form-item--error-message',context).length>0)return false;return true;}function showError($el,message){removeError($el);$('<div class="form-item--error-message" role="alert"></div>').html('<div>'+message+'</div>').insertAfter($el);$el.addClass('error');toggleNextButton();}function removeError($el){$el.removeClass('error');$el.next('.form-item--error-message').remove();}function validateRadio(name,mustBe,message){const value=$(`input[name="${name}"]:checked`,context).val();const $fieldset=$(`input[name="${name}"]`,context).closest('.js-webform-type-radios');const $lastInput=$fieldset.find('input').last();removeError($lastInput);if(value&&value!==mustBe)showError($lastInput,message);toggleNextButton();}once('validateWater','input[name="is_project_on_water"]',context).forEach(function(el){$(el).on('change',function(){validateRadio('is_project_on_water','no','<b>'+Drupal.t('Projecten aan/op of in het water')+': </b>'+Drupal.t('Het is niet mogelijk om een Verbouwgarantie aan te vragen voor objecten gesitueerd aan/op of in het water.'));});});once('validateNewBuild','input[name="is_new_build_project"]',context).forEach(function(el){$(el).on('change',function(){validateRadio('is_new_build_project','no','<b>'+Drupal.t('Nieuwbouwgarantie')+': </b>'+Drupal.t('Het is niet mogelijk om een Verbouwgarantie aan te vragen voor nieuwbouw.'));});});once('validateOver75000','input[name="is_renovation_over_75000"]',context).forEach(function(el){$(el).on('change',function(){validateRadio('is_renovation_over_75000','no','<b>'+Drupal.t('Verbouwing meer dan €75.000')+': </b>'+Drupal.t('Voor aanvragen boven de €75.000 gebruik je dit <a href="/sites/default/files/2026-02/Aanvraagformulier%20verbouwgarant%202026.pdf">formulier</a>.'));});});once('validateCovo','input[name="is_covo2024_applicable"]',context).forEach(function(el){$(el).on('change',function(){validateRadio('is_covo2024_applicable','yes','<b>'+Drupal.t('Covo-voorwaarden')+': </b>'+Drupal.t('Zonder Covo-voorwaarden kan je verbouwing niet uitgevoerd worden met een Verbouwgarantie.'));});});toggleNextButton();}};})(jQuery,Drupal,once);(function($,Drupal,once){Drupal.behaviors.bouwgarantContractPriceInline={attach:function(context){const elements=once('bouwgarant-contract-inline','input[name="contract_sum"]',context);elements.forEach(function(el){const $input=$(el);const $desc=$('#edit-contract-sum--description',context);const original=$desc.data('original-text')||$desc.text();$desc.data('original-text',original);function updateDesc(){const raw=$input.val();if(!raw){$desc.text(original);return;}const sum=parseFloat(raw.replace(',','.'));if(isNaN(sum)){$desc.text(original);return;}const premiumEx=Math.max(sum*0.0035,200);const premiumInc=premiumEx*1.21;const exFormatted=premiumEx.toLocaleString('nl-NL',{minimumFractionDigits:2,maximumFractionDigits:2});const incFormatted=premiumInc.toLocaleString('nl-NL',{minimumFractionDigits:2,maximumFractionDigits:2});
155const newText='De premie bedraagt € '+exFormatted+' ex. btw / € '+incFormatted+' incl. btw (0,0035 x aanneemsom, minimaal €200)';$desc.text(newText);}updateDesc();$input.on('input',updateDesc);});}};})(jQuery,Drupal,once);;
156(function(Drupal,once){Drupal.behaviors.bouwgarantPro6pp={attach(context){once('bouwgarantPro6ppAddress','form.webform-submission-form',context).forEach((form)=>{const apiKey='AIzaSyBTsTgW6S5LVRLjFeKNL-mqXwIbUm7f2d4';const loadGoogleMaps=()=>{if(window.google&&window.google.maps)return Promise.resolve();if(window.__bgGmapsPromise)return window.__bgGmapsPromise;window.__bgGmapsPromise=new Promise((resolve,reject)=>{const s=document.createElement('script');s.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(apiKey)}&v=weekly`;s.async=true;s.defer=true;s.onload=resolve;s.onerror=reject;document.head.appendChild(s);});return window.__bgGmapsPromise;};const formatNl5=(num)=>{const n=Number(num);if(!Number.isFinite(n))return '';return n.toFixed(5).replace('.',',');};const initAddressGroup=(prefix)=>{const makeName=(suffix)=>(prefix?`${prefix}_${suffix}`:suffix);const postal=form.querySelector(`[name="${makeName('zipcode')}"]`);const house=form.querySelector(`[name="${makeName('housenumber')}"]`);const street=form.querySelector(`[name="${makeName('street')}"]`);const city=form.querySelector(`[name="${makeName('city')}"]`);if(!postal||!house||!street||!city)return;const mapEl=(!prefix)?form.querySelector('#bg-map'):null;const mapHelpEl=(!prefix)?form.querySelector('#bg-map-help'):null;const latField=(!prefix)?form.querySelector('[name="latitude"]'):null;const lngField=(!prefix)?form.querySelector('[name="longitude"]'):null;const hasMap=!!(mapEl&&latField&&lngField);let map=null;let marker=null;const showMapUI=()=>{if(!hasMap)return;mapEl.style.display='block';if(mapHelpEl)mapHelpEl.style.display='block';};const hideMapUI=()=>{if(!hasMap)return;mapEl.style.display='none';if(mapHelpEl)mapHelpEl.style.display='none';};
156const setLatLngFields=(lat,lng)=>{if(!hasMap)return;latField.value=formatNl5(lat);lngField.value=formatNl5(lng);};const ensureMap=async(lat,lng,zoom=17)=>{if(!hasMap)return;await loadGoogleMaps();const pos={lat,lng};showMapUI();if(!map){map=new google.maps.Map(mapEl,{center:pos,zoom,zoomControl:true,mapTypeControl:false,streetViewControl:false,fullscreenControl:false});marker=new google.maps.Marker({position:pos,map,draggable:true});marker.addListener('dragend',()=>{const p=marker.getPosition();setLatLngFields(p.lat(),p.lng());});}else{map.setCenter(pos);map.setZoom(zoom);marker.setPosition(pos);}setLatLngFields(lat,lng);};if(hasMap)hideMapUI();if(!street.dataset.bgManualToggleAdded){const toggleBtn=document.createElement('button');toggleBtn.type='button';toggleBtn.className='btn-outline';toggleBtn.textContent=Drupal.t('Handmatig adres invullen');street.parentNode.appendChild(toggleBtn);street.dataset.bgManualToggleAdded='1';let manualMode=false;let lookupTimer=null;const setReadOnly=(state)=>{[street,city].forEach((el)=>{el.readOnly=state;el.classList.toggle('readonly',state);});};setReadOnly(true);const fetchAddress=async()=>{const pc=postal.value.replace(/\s+/g,'');const hn=house.value.trim();if(pc.length<6||!hn||manualMode)return;try{const res=await fetch(`/bouwgarant/pro6pp/${pc}/${hn}`,{credentials:'same-origin'});const data=await res.json();if(data.status==='ok'){street.value=data.street||'';city.value=data.city||'';setReadOnly(true);if(hasMap){const lat=Number(data.lat);const lng=Number(data.lng);if(Number.isFinite(lat)&&Number.isFinite(lng))await ensureMap(lat,lng,17);else{hideMapUI();setLatLngFields(NaN,NaN);}}}else{setReadOnly(false);if(hasMap){hideMapUI();setLatLngFields(NaN,NaN);}}}catch(err){console.error('❌ PRO6PP fout',err);setReadOnly(false);if(hasMap){hideMapUI();setLatLngFields(NaN,NaN);}}};const debounceLookup=()=>{if(manualMode)return;clearTimeout(lookupTimer);lookupTimer=setTimeout(fetchAddress,400);};toggleBtn.addEventListener('click',()=>{manualMode=!manualMode;setReadOnly(!manualMode);toggleBtn.textContent=manualMode?Drupal.t('Automatisch adres invullen'):Drupal.t('Handmatig adres invullen');if(manualMode){if(hasMap){const DEFAULT_NL={lat:52.15611,lng:5.38783};ensureMap(DEFAULT_NL.lat,DEFAULT_NL.lng,8);}}else fetchAddress();});postal.addEventListener('input',debounceLookup);house.addEventListener('input',debounceLookup);postal.addEventListener('change',debounceLookup);house.addEventListener('change',debounceLookup);setTimeout(fetchAddress,50);}};initAddressGroup('object');initAddressGroup('contact');initAddressGroup('');});}};})(Drupal,once);;
157(function(Drupal){'use strict';Drupal.behaviors.bouwgarantWebshop={attach:function(context,settings){const formatEuro=(amount)=>{return new Intl.NumberFormat('nl-NL',{style:'currency',currency:'EUR'}).format(amount);};const productWrapper=document.querySelector('.form-product-list');if(productWrapper){const inputs=productWrapper.querySelectorAll('input');inputs.forEach((input)=>{input.addEventListener('change',()=>{let total=0;let total_cent=0;inputs.forEach((input)=>{if(input.value>0)total_cent+=input.value*input.dataset.price;});total=total_cent/100;document.querySelector('#edit-totalprice').textContent=`Totaalprijs: ${formatEuro(total)}`;document.querySelector('[name="totalprice_input"]').value=formatEuro(total);});});}}};})(Drupal);;
158function reducedMotion(){let mq=window.matchMedia("(prefers-reduced-motion: reduce)");return mq.matches;}let autoplayValue=reducedMotion()?false:2000;const carousels=document.querySelectorAll('.glide');carousels.forEach((el)=>{let carousel=new Glide(el,{type:'carousel',perView:12.25,autoplay:autoplayValue,hoverpause:true,breakpoints:{400:{perView:2},600:{perView:3},900:{perView:4},1200:{perView:6},1500:{perView:9}}}).mount();});;
159let hrefs=['a[href*="https://"]','a[href*="http://"]','a[href$=".pdf"]','a[href$=".docx"]','a[href$=".doc"]','a[href$=".xlsx"]','a[href$=".xls"]','a[href$=".pptx"]','a[href$=".ppt"]','a[href$=".odt"]','a[href$=".ods"]','a[href$=".odp"]','a[href$=".txt"]','a[href$=".rtf"]','a[href$=".csv"]','a[href$=".zip"]'];const links=document.querySelectorAll(hrefs.join(','));links.forEach((link)=>
159{if(link.getAttribute('target')!=='_blank')link.setAttribute('target','_blank');});;
160const navBtnClass='button.nav-link';document.querySelectorAll(navBtnClass).forEach((btn)=>{btn.addEventListener('click',()=>{const expanded=btn.getAttribute('aria-expanded')==='true';const menu=document.getElementById(btn.getAttribute('aria-controls'));console.debug(menu);document.querySelectorAll(navBtnClass).forEach((otherBtn)=>{otherBtn.setAttribute('aria-expanded','false');document.getElementById(otherBtn.getAttribute('aria-controls')).hidden=true;});btn.setAttribute('aria-expanded',String(!expanded));menu.hidden=expanded;});});const btnToggle='.toggle';document.querySelectorAll(btnToggle).forEach((btn)=>{btn.addEventListener('click',()=>{const expanded=btn.getAttribute('aria-expanded')==='true';const menu=document.getElementById(btn.getAttribute('aria-controls'));console.debug(menu);btn.setAttribute('aria-expanded',String(!expanded));menu.hidden=expanded;});});document.addEventListener('click',(event)=>{const target=event.target;const isNavButton=target.matches(navBtnClass)||target.matches(btnToggle);const isInsideMenu=Array.from(document.querySelectorAll('[aria-controls]')).some((btn)=>{const menu=document.getElementById(btn.getAttribute('aria-controls'));return menu&&menu.contains(target);});if(!isNavButton&&!isInsideMenu)document.querySelectorAll('[aria-controls]').forEach((btn)=>{btn.setAttribute('aria-expanded','false');const menu=document.getElementById(btn.getAttribute('aria-controls'));if(menu&&menu.id!='navbar-menu')menu.hidden=true;});});window.addEventListener('resize',()=>{const siteNavbarMain=document.querySelector('.navbar-main');if(window.innerWidth>=1100&&siteNavbarMain)siteNavbarMain.removeAttribute('hidden');});;
161const svgDatabase={'link-arrow':`<span class="icon">
162<svg xmlns="http://www.w3.org/2000/svg" width="17" height="13"><path fill="currentColor" fill-rule="nonzero" d="M16.762 5.893 11.486.27c-.301-.293-.934-.398-1.278-.062-.342.324-.342.952 0 1.288l3.875 4.113H.883A.886.886 0 0 0 0 6.5c0 .492.395.89.883.89h13.2l-3.874 4.115c-.342.324-.362.984 0 1.288.343.282.967.293 1.278-.073l5.275-5.612c.229-.23.395-.827 0-1.214v-.001Z"/></svg>
163    </span>`};function insertSvgBefore(selector,svgId){if(svgDatabase[svgId]!==undefined){let elements=document.querySelectorAll(selector);[].forEach.call(elements,function(el){const span=document.createElement('span');span.innerHTML=el.innerHTML;el.innerHTML='';el.appendChild(span);el.innerHTML=svgDatabase[svgId]+el.innerHTML;});}}function insertSvgAfter(selector,svgId){if(svgDatabase[svgId]!==undefined){let elements=document.querySelectorAll(selector);[].forEach.call(elements,function(el){const span=document.createElement('span');span.innerHTML=el.innerHTML;el.innerHTML='';el.appendChild(span);el.innerHTML+=svgDatabase[svgId];});}}insertSvgAfter('.btn:not(.btn-link, .btn-outline), .btn-primary:not(.btn-link, .btn-outline), .btn-secondary:not(.btn-link, .btn-outline)','link-arrow');insertSvgBefore('.btn-link','link-arrow');;
164(function(){'use strict';if(window.location.hash){const hash=window.location.hash.substring(1);const element=document.getElementById(hash);const navbar=document.querySelector('.site-navbar');if(element){if(element.tagName==='DETAILS')element.setAttribute('open','');element.scrollIntoView({behavior:'smooth',block:'start'});if(navbar){navbar.classList.remove('headroom--top');navbar.classList.add('headroom--not-top');navbar.classList.add('headroom--unpinned');}}}window.addEventListener('hashchange',function(){if(window.location.hash){const hash=window.location.hash.substring(1);const element=document.getElementById(hash);if(element&&element.tagName==='DETAILS'){element.setAttribute('open','');element.scrollIntoView({behavior:'smooth',block:'start'});}}});})();;
165(function(){'use strict';const copyButtons=document.querySelectorAll('.copy-to-clipboard');copyButtons.forEach(function(button){button.addEventListener('click',function(event){event.preventDefault();const valueToCopy=button.getAttribute('data-ctc-value');if(!valueToCopy){console.warn('No data-ctc-value attribute found on button');return;}const baseUrl=window.location.pathname+window.location.search;const urlWithHash=baseUrl+'#'+valueToCopy;navigator.clipboard.writeText(urlWithHash).then(function(){const originalText=button.textContent;button.textContent='✅';button.classList.add('copied');setTimeout(function(){button.textContent=originalText;button.classList.remove('copied');},2000);}).catch(function(err){console.error('Failed to copy to clipboard:',err);alert('Kopiëren mislukt. Probeer het opnieuw.');});});});})();;
166(function(){function setSizes(img){if(!img||!img.isConnected)return;var w=Math.ceil(img.getBoundingClientRect().width);if(w>0)img.setAttribute('sizes',w+'px');}function initOne(img){if(!img||img.__fluidSizesInit)return;img.__fluidSizesInit=true;setSizes(img);if(window.ResizeObserver){var ro=new ResizeObserver(function(){setSizes(img);});ro.observe(img);img.__fluidSizesRO=ro;}else{var onWin=function(){setSizes(img);};window.addEventListener('resize',onWin);window.addEventListener('orientationchange',onWin);img.__fluidSizesOff=function(){window.removeEventListener('resize',onWin);window.removeEventListener('orientationchange',onWin);};}}function initAll(root){(root||document).querySelectorAll('img[data-fluid-sizes]').forEach(initOne);}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',function(){initAll(document);});else initAll(document);window.tuFluidSizesInit=initAll;})();;
167(function(Drupal){'use strict';Drupal.behaviors.articleFilter={attach:function(context,settings){const filterButtons=context.querySelectorAll('.article-filter button[data-filter]');filterButtons.forEach((button)=>{button.addEventListener('click',function(){const filterValue=this.getAttribute('data-filter');filterButtons.forEach((btn)=>btn.classList.remove('active'));this.classList.add('active');const articles=context.querySelectorAll('.filtered-content article[data-tags], .filtered-content .card[data-tags]');
167articles.forEach((article)=>{const articleTags=article.getAttribute('data-tags');if(filterValue==='all')article.closest('li, .col-xs-12, article').style.display='';else{const tags=articleTags?articleTags.split(','):[];if(tags.includes(filterValue))article.closest('li, .col-xs-12, article').style.display='';else article.closest('li, .col-xs-12, article').style.display='none';}});});});}};})(Drupal);;
168(function(Drupal){'use strict';function isVimeo(u){try{return /vimeo\.com/.test(new URL(u).hostname);}catch{return false;}}function isYouTube(u){try{return /(youtu\.be|youtube|youtube-nocookie)/.test(new URL(u).hostname);}catch{return false;}}function extractYouTubeId(src){try{const u=new URL(src,window.location.origin);if(u.pathname.startsWith('/embed/'))return u.pathname.split('/').pop();if(u.searchParams.get('v'))return u.searchParams.get('v');const m=src.match(/youtu\.be\/([A-Za-z0-9_-]{6,})/);if(m)return m[1];}catch{}return '';}function buildIframe(src,opts){const url=new URL(src,window.location.origin);if(isYouTube(src)){if(opts.autoplay)url.searchParams.set('autoplay','1');url.searchParams.set('playsinline','1');url.searchParams.set('rel','0');url.searchParams.set('modestbranding','1');if(opts.muted)url.searchParams.set('mute','1');if(opts.loop){url.searchParams.set('loop','1');const id=extractYouTubeId(src);if(id)url.searchParams.set('playlist',id);}if(opts.controls===false)url.searchParams.set('controls','0');}if(isVimeo(src)){if(opts.autoplay)url.searchParams.set('autoplay','1');if(opts.muted)url.searchParams.set('muted','1');if(opts.loop)url.searchParams.set('loop','1');if(opts.autoplay&&opts.controls===false)url.searchParams.set('background','1');}const iframe=document.createElement('iframe');iframe.src=url.toString();
168iframe.setAttribute('title',Drupal.t('Video player'));iframe.setAttribute('allow','autoplay; fullscreen; picture-in-picture');iframe.setAttribute('referrerpolicy','strict-origin-when-cross-origin');iframe.setAttribute('frameborder','0');iframe.setAttribute('loading','lazy');iframe.style.width='100%';iframe.style.height='100%';return iframe;}function buildHtml5(src,opts,posterUrl){const video=document.createElement('video');video.src=src;video.playsInline=true;if(opts.controls)video.controls=true;if(opts.loop)video.loop=true;if(posterUrl)video.poster=posterUrl;if(opts.autoplay){video.muted=true;setTimeout(()=>{video.play().catch(()=>{});},0);}video.style.width='100%';video.style.height='100%';return video;}function enableViewportControl(wrapperEl,playerApi){const hasGSAP=typeof window.gsap!=='undefined'&&window.gsap&&window.gsap.core&&typeof window.ScrollTrigger!=='undefined';if(!hasGSAP||!playerApi)return;window.ScrollTrigger.create({trigger:wrapperEl,start:"top 60%",end:"bottom 40%",onEnter:()=>{if(playerApi.type==='html5')try{if(playerApi.node.paused)playerApi.node.play();}catch(e){}else if(playerApi.type==='vimeo')playerApi.instance.getPaused().then((p)=>{if(p)playerApi.instance.play();}).catch(()=>{});else{if(playerApi.type==='youtube'&&playerApi.instance&&playerApi.instance.playVideo)try{playerApi.instance.playVideo();}catch(e){}}},onLeave:()=>{if(playerApi.type==='html5')try{playerApi.node.pause();}catch(e){}else if(playerApi.type==='vimeo')playerApi.instance.pause().catch(()=>{});else{if(playerApi.type==='youtube'&&playerApi.instance&&playerApi.instance.pauseVideo)try{playerApi.instance.pauseVideo();}catch(e){}}},onEnterBack:(self)=>self.vars.onEnter(),onLeaveBack:(self)=>self.vars.onLeave()});}function removeAllOverlays(wrap){wrap.querySelectorAll('[data-video-poster], .video-play').forEach((el)=>el.remove());}function mountPlayer(root,extraOpts={}){const wrap=root.querySelector('[data-video]');if(!wrap)return null;const stage=wrap.querySelector('[data-video-stage]');const type=wrap.getAttribute('data-video-type');const src=wrap.getAttribute('data-video-src');const controls=wrap.getAttribute('data-video-controls')==='1';const autoplay=wrap.getAttribute('data-video-autoplay')==='1';const loop=wrap.getAttribute('data-video-loop')==='1';removeAllOverlays(wrap);if(!src||!type||!stage)return null;const preferUnmuted=!!extraOpts.clickStarted;let effControls=controls;let effAutoplay=autoplay;if(extraOpts.forceControlsIfNoPoster===true)effControls=true;if(extraOpts.forceAutoplay===true)effAutoplay=true;const opts={controls:effControls,autoplay:effAutoplay,loop,muted:effAutoplay&&!preferUnmuted};let node,api=null;if(type==='iframe'){node=buildIframe(src,opts);stage.innerHTML='';stage.appendChild(node);if(isVimeo(src)&&window.Vimeo&&typeof window.Vimeo.Player==='function'){const vimeoPlayer=new window.Vimeo.Player(node);if(preferUnmuted)vimeoPlayer.setMuted(false).catch(()=>{});else{if(opts.autoplay)vimeoPlayer.setMuted(true).catch(()=>{});}if(opts.autoplay||extraOpts.clickStarted)vimeoPlayer.play().catch(()=>{});api={type:'vimeo',instance:vimeoPlayer};}}else{const posterImg=root.querySelector('.video-poster img');const posterUrl=posterImg?posterImg.getAttribute('src'):'';node=buildHtml5(src,opts,posterUrl);stage.innerHTML='';stage.appendChild(node);api={type:'html5',node};if(extraOpts.clickStarted)try{node.muted=false;const p=node.play();if(p&&typeof p.catch==='function')p.catch(()=>setTimeout(()=>node.play().catch(()=>{}),0));}catch(e){}}node&&node.focus&&node.focus();enableViewportControl(root,api);return api;}function init(root){const container=root.querySelector('[data-video]');if(!container)return;const playBtn=container.querySelector('[data-video-play]');const poster=container.querySelector('[data-video-poster]');const autoplay=container.getAttribute('data-video-autoplay')==='1';const controls=container.getAttribute('data-video-controls')==='1';const isIframe=container.getAttribute('data-video-type')==='iframe';if(!poster){if(autoplay)mountPlayer(root,{forceAutoplay:true});else if(isIframe)mountPlayer(root,{forceControlsIfNoPoster:true});else mountPlayer(root,{forceControlsIfNoPoster:true});return;}if(playBtn)playBtn.addEventListener('click',()=>{mountPlayer(root,{clickStarted:true,forceAutoplay:true});},{once:true});}Drupal.behaviors.tienuurParagraphsVideo={attach(context){context.querySelectorAll('.paragraph--type--video').forEach((el)=>{if(!el.hasAttribute('data-video-initialized')){el.setAttribute('data-video-initialized','1');init(el);}});}};})(Drupal);;

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.