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 */ 7(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);})();; 8window.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,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');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;
8if(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);; 9if(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);; 10((Drupal,drupalSettings)=>{drupalSettings.antibot=drupalSettings.antibot||{};Drupal.antibot={};Drupal.behaviors.antibot={attach(context,settings){drupalSettings=settings;if(typeof drupalSettings.antibot!=='undefined')drupalSettings.antibot.human=false;document.body.addEventListener('mousemove',()=>{Drupal.antibot.unlockForms();});document.body.addEventListener('touchmove',()=>{Drupal.antibot.unlockForms();});document.body.addEventListener('keydown',(e)=>{if(e.code==='Tab'||e.code==='Enter')Drupal.antibot.unlockForms();});}};Drupal.antibot.unlockForms=()=>{if(!drupalSettings.antibot.human){if(drupalSettings.antibot.forms!==undefined)Object.values(drupalSettings.antibot.forms).forEach((config)=>{const form=document.getElementById(config.id);if(form){form.setAttribute('action',form.getAttribute('data-action'));const input=form.querySelector('input[name="antibot_key"]');if(input)input.value=config.key.split('').reverse().join('').match(/.{1,2}/g).map((value)=>value.split('').reverse().join('')).join('');}});drupalSettings.antibot.human=true;}};})(Drupal,drupalSettings);; 11((Drupal,drupalSettings)=>{Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=(context,drupalSettings)=>{if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;let extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!=='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;const pattern=/^(([^:]+?\.)*)([^.:]+)((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;const host=window.location.host.replace(pattern,'$2$3$6');const subdomain=window.location.host.replace(host,'');let subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');let allowedDomains=false;if(drupalSettings.data.extlink.allowedDomains){allowedDomains=[];for(let i=0;i<drupalSettings.data.extlink.allowedDomains.length;i++)allowedDomains.push(new RegExp(`^https?:\\/\\/${drupalSettings.data.extlink.allowedDomains[i].replace(/(\r\n|\n|\r)/gm,'')}.*$`,'i'));}const internalLink=new RegExp(`^https?://([^@]*@)?${subdomains}${host}`,'i');let extInclude=false;if(drupalSettings.data.extlink.extInclude)extInclude=new RegExp(drupalSettings.data.extlink.extInclude.replace(/\\/,'\\'),'i');let extExclude=false;
11if(drupalSettings.data.extlink.extExclude)extExclude=new RegExp(drupalSettings.data.extlink.extExclude.replace(/\\/,'\\'),'i');let extExcludeNoreferrer=false;if(drupalSettings.data.extlink.extExcludeNoreferrer)extExcludeNoreferrer=new RegExp(drupalSettings.data.extlink.extExcludeNoreferrer.replace(/\\/,'\\'),'i');let extCssExclude=false;if(drupalSettings.data.extlink.extCssExclude)extCssExclude=drupalSettings.data.extlink.extCssExclude;let extCssInclude=false;if(drupalSettings.data.extlink.extCssInclude)extCssInclude=drupalSettings.data.extlink.extCssInclude;let extCssExplicit=false;if(drupalSettings.data.extlink.extCssExplicit)extCssExplicit=drupalSettings.data.extlink.extCssExplicit;const externalLinks=[];const mailtoLinks=[];const telLinks=[];const extlinks=context.querySelectorAll('a:not([data-extlink]), area:not([data-extlink])');extlinks.forEach((el)=>{try{let url='';if(typeof el.href==='string')url=el.href.toLowerCase();else{if(typeof el.href==='object')url=el.href.baseVal;}const isExtCssIncluded=extCssInclude&&(el.matches(extCssInclude)||el.closest(extCssInclude));if(url.indexOf('http')===0&&((!internalLink.test(url)&&!(extExclude&&extExclude.test(url)))||(extInclude&&extInclude.test(url))||isExtCssIncluded)&&!(extCssExclude&&el.matches(extCssExclude))&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit))){let match=false;if(!isExtCssIncluded&&allowedDomains){for(let i=0;i<allowedDomains.length;i++)if(allowedDomains[i].test(url)){match=true;break;}}if(!match)externalLinks.push(el);}else{if(el.tagName!=='AREA'&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit)))if(url.indexOf('mailto:')===0)mailtoLinks.push(el);else{if(url.indexOf('tel:')===0)telLinks.push(el);}}}catch(error){return false;}});const hasExtIcon=drupalSettings.data.extlink.extClass!=='0'&&drupalSettings.data.extlink.extClass!=='';const hasAdditionalExtClasses=drupalSettings.data.extlink.extAdditionalLinkClasses!=='';Drupal.extlink.applyClassAndSpan(externalLinks,'ext',hasExtIcon?extIconPlacement:null);if(hasAdditionalExtClasses)Drupal.extlink.applyClassAndSpan(externalLinks,drupalSettings.data.extlink.extAdditionalLinkClasses,null);const hasMailtoClass=drupalSettings.data.extlink.mailtoClass!=='0'&&drupalSettings.data.extlink.mailtoClass!=='';const hasAdditionalMailtoClasses=drupalSettings.data.extlink.extAdditionalMailtoClasses!=='';if(hasMailtoClass)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.mailtoClass,extIconPlacement);if(hasAdditionalMailtoClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalMailtoClasses,null);const hasTelClass=drupalSettings.data.extlink.telClass!=='0'&&drupalSettings.data.extlink.telClass!=='';const hasAdditionalTelClasses=drupalSettings.data.extlink.extAdditionalTelClasses!=='0'&&drupalSettings.data.extlink.extAdditionalTelClasses!=='';if(hasTelClass)Drupal.extlink.applyClassAndSpan(telLinks,drupalSettings.data.extlink.telClass,extIconPlacement);if(hasAdditionalTelClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalTelClasses,null);if(drupalSettings.data.extlink.extTarget){externalLinks.forEach((link,i)=>{if(!(drupalSettings.data.extlink.extTargetNoOverride&&link.matches('a[target]')))externalLinks[i].setAttribute('target','_blank');});externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noopener');return;}if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)externalLinks[i].setAttribute('rel',`${val} noopener`);else{}else externalLinks[i].setAttribute('rel',`${val} noopener`);});}if(drupalSettings.data.extlink.extNofollow)externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','nofollow');return;}let target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)externalLinks[i].setAttribute('rel',`${val} nofollow`);});if(drupalSettings.data.extlink.extTitleNoOverride===false)externalLinks.forEach((link,i)=>{const oldTitle=link.getAttribute('title');let newTitle='';if(drupalSettings.data.extlink.extTargetAppendNewWindowDisplay)newTitle=drupalSettings.data.extlink.extTargetAppendNewWindowLabel;if(oldTitle!==null){if(Drupal.extlink.hasNewWindowText(oldTitle))return;newTitle=Drupal.extlink.combineLabels(oldTitle,newTitle);}if(newTitle)externalLinks[i].setAttribute('title',newTitle);});if(drupalSettings.data.extlink.extNoreferrer)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extExcludeNoreferrer&&extExcludeNoreferrer.test(link.getAttribute('href')))return;const val=link.getAttribute('rel');
11if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noreferrer');return;}externalLinks[i].setAttribute('rel',`${val} noreferrer`);});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||(()=>{if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);});const _that=this;Drupal.extlink.handleClick=function(event){const shouldNavigate=Drupal.extlink.popupClickHandler.call(_that,event);if(typeof shouldNavigate!=='undefined'&&!shouldNavigate)event.preventDefault();};externalLinks.forEach((val,i)=>{externalLinks[i].removeEventListener('click',Drupal.extlink.handleClick);externalLinks[i].addEventListener('click',Drupal.extlink.handleClick);});};Drupal.extlink.hasNewWindowText=function(label){return label.toLowerCase().indexOf(Drupal.t('new window'))!==-1;};Drupal.extlink.combineLabels=function(labelA,labelB){labelA=labelA||'';labelB=labelB||'';if(!labelA.trim())return labelB;if(!labelB.trim())return labelA;const labelANoParens=labelA.trim().replace('(','').replace(')','');const labelBNoParens=labelB.trim().replace('(','').replace(')','');if(labelA===labelANoParens){if(labelB===labelBNoParens)return `${labelA}, ${labelB}`;return `${labelA} ${labelB}`;}if(labelB===labelBNoParens)return `${labelB} ${labelA}`;return `(${labelANoParens}, ${labelBNoParens})`;};Drupal.extlink.applyClassAndSpan=(links,className,iconPlacement)=>{let linksToProcess;if(drupalSettings.data.extlink.extImgClass)linksToProcess=links;else linksToProcess=links.filter((link)=>{return link.querySelector('img, svg')===null;});for(let i=0;i<linksToProcess.length;i++){if(className!=='0')linksToProcess[i].classList.add(className);if(className===drupalSettings.data.extlink.mailtoClass&&drupalSettings.data.extlink.extAdditionalMailtoClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalMailtoClasses);else if(className===drupalSettings.data.extlink.telClass&&drupalSettings.data.extlink.extAdditionalTelClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalTelClasses);else{if(drupalSettings.data.extlink.extAdditionalLinkClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalLinkClasses);}linksToProcess[i].setAttribute('data-extlink','');if(iconPlacement){let link=linksToProcess[i];if(drupalSettings.data.extlink.extPreventOrphan&&iconPlacement==='append'){let lastTextNode=link.lastChild;let trailingWhitespace=null;let parentNode=link;while(lastTextNode)if(lastTextNode.lastChild){parentNode=lastTextNode;lastTextNode=lastTextNode.lastChild;}else if(lastTextNode.nodeName==='#text'&&parentNode.lastElementChild&&lastTextNode.textContent.trim().length===0){trailingWhitespace=lastTextNode;parentNode=parentNode.lastElementChild;lastTextNode=parentNode.lastChild;}else break;if(lastTextNode&&lastTextNode.nodeName==='#text'&&lastTextNode.textContent.length>0){const lastText=lastTextNode.textContent;const lastWordRegex=new RegExp(/\S+\s*$/,'g');const lastWord=lastText.match(lastWordRegex);if(lastWord!==null){const breakPreventer=document.createElement('span');breakPreventer.classList.add('extlink-nobreak');breakPreventer.textContent=lastWord[0];if(trailingWhitespace){trailingWhitespace.textContent='';breakPreventer.append(trailingWhitespace.textContent);}lastTextNode.textContent=lastText.substring(0,lastText.length-lastWord[0].length);lastTextNode.parentNode.append(breakPreventer);link=breakPreventer;}}}let iconElement;if(drupalSettings.data.extlink.extUseFontAwesome){iconElement=document.createElement('span');iconElement.setAttribute('class',`fa-${className} extlink`);if(className===drupalSettings.data.extlink.mailtoClass){if(drupalSettings.data.extlink.mailtoLabel)link.ariaLabel=drupalSettings.data.extlink.mailtoLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_mailto',drupalSettings,iconPlacement);}else if(className===drupalSettings.data.extlink.extClass){if(drupalSettings.data.extlink.extLabel)link.ariaLabel=drupalSettings.data.extlink.extLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_extlink',drupalSettings,iconPlacement);}else{if(className===drupalSettings.data.extlink.telClass){if(drupalSettings.data.extlink.telLabel)link.ariaLabel=drupalSettings.data.extlink.telLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_tel',drupalSettings,iconPlacement);}}}else{iconElement=document.createElementNS('http://www.w3.org/2000/svg','svg');iconElement.setAttribute('focusable','false');iconElement.setAttribute('width','1em');iconElement.setAttribute('height','1em');iconElement.classList.add(className);iconElement.setAttribute('data-extlink-placement',iconPlacement);if(className===drupalSettings.data.extlink.mailtoClass)iconElement=Drupal.theme('extlink_mailto',iconElement,drupalSettings);else if(className===drupalSettings.data.extlink.extClass)iconElement=Drupal.theme('extlink_extlink',iconElement,drupalSettings);else{if(className===drupalSettings.data.extlink.telClass)iconElement=Drupal.theme('extlink_tel',iconElement,drupalSettings);}}iconElement.setAttribute('role','img');iconElement.setAttribute('aria-hidden',drupalSettings.data.extlink.extHideIcons);link[iconPlacement](iconElement);}}};Drupal.theme.extlink_fa_mailto=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaMailtoClasse
11s}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_extlink=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_tel=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaTelClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_mailto=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.mailtoLabel);iconElement.setAttribute('viewBox','0 10 70 20');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.mailtoLabel}</title><path d="M56 14H8c-1.1 0-2 0.9-2 2v32c0 1.1 0.9 2 2 2h48c1.1 0 2-0.9 2-2V16C58 14.9 57.1 14 56 14zM50.5 18L32 33.4 13.5 18H50.5zM10 46V20.3l20.7 17.3C31.1 37.8 31.5 38 32 38s0.9-0.2 1.3-0.5L54 20.3V46H10z"/>`;return iconElement;};Drupal.theme.extlink_extlink=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.extLabel);iconElement.setAttribute('viewBox','0 0 80 40');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.extLabel}</title><path d="M48 26c-1.1 0-2 0.9-2 2v26H10V18h26c1.1 0 2-0.9 2-2s-0.9-2-2-2H8c-1.1 0-2 0.9-2 2v40c0 1.1 0.9 2 2 2h40c1.1 0 2-0.9 2-2V28C50 26.9 49.1 26 48 26z"/><path d="M56 6H44c-1.1 0-2 0.9-2 2s0.9 2 2 2h7.2L30.6 30.6c-0.8 0.8-0.8 2 0 2.8C31 33.8 31.5 34 32 34s1-0.2 1.4-0.6L54 12.8V20c0 1.1 0.9 2 2 2s2-0.9 2-2V8C58 6.9 57.1 6 56 6z"/>`;return iconElement;};Drupal.theme.extlink_tel=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.telLabel);iconElement.setAttribute('viewBox','0 0 181.352 181.352');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.telLabel}</title><path xmlns="http://www.w3.org/2000/svg" d="M169.393,167.37l-14.919,9.848c-9.604,6.614-50.531,14.049-106.211-53.404C-5.415,58.873,9.934,22.86,17.134,14.555L29.523,1.678c2.921-2.491,7.328-2.198,9.839,0.811l32.583,38.543l0.02,0.02c2.384,2.824,2.306,7.22-0.83,9.868v0.029l-14.44,10.415c-5.716,5.667-0.733,14.587,5.11,23.204l27.786,32.808c12.926,12.477,20.009,18.241,26.194,14.118l12.008-13.395c2.941-2.472,7.328-2.169,9.839,0.821l32.603,38.543v0.02C172.607,160.316,172.519,164.703,169.393,167.37z"/>`;return iconElement;};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=(context,drupalSettings)=>{if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(Drupal,drupalSettings);; 12(function($,Drupal){'use strict';Drupal.googleGeoJson=function(geojson,options){let _geometryToGoogleMaps=function(geojsonGeometry,opts,geojsonProperties){let googleObj;let bounds;let paths=[];let path=[];let i;let j;let k;let coord;let ll;switch(geojsonGeometry.type){case 'Point':opts.position=new google.maps.LatLng(geojsonGeometry.coordinates[1],geojsonGeometry.coordinates[0]);bounds=new google.maps.LatLngBounds();bounds.extend(opts.position);googleObj=new google.maps.Marker(opts);
12googleObj.set('bounds',bounds);if(geojsonProperties)googleObj.set('geojsonProperties',geojsonProperties);break;case 'MultiPoint':googleObj=[];bounds=new google.maps.LatLngBounds();for(i=0;i<geojsonGeometry.coordinates.length;i++){opts.position=new google.maps.LatLng(geojsonGeometry.coordinates[i][1],geojsonGeometry.coordinates[i][0]);bounds.extend(opts.position);googleObj.push(new google.maps.Marker(opts));}if(geojsonProperties)for(k=0;k<googleObj.length;k++)googleObj[k].set('geojsonProperties',geojsonProperties);for(k=0;k<googleObj.length;k++)googleObj[k].set('bounds',bounds);break;case 'LineString':bounds=new google.maps.LatLngBounds();path=[];for(i=0;i<geojsonGeometry.coordinates.length;i++){coord=geojsonGeometry.coordinates[i];ll=new google.maps.LatLng(coord[1],coord[0]);bounds.extend(ll);path.push(ll);}opts.path=path;googleObj=new google.maps.Polyline(opts);googleObj.set('bounds',bounds);if(geojsonProperties)googleObj.set('geojsonProperties',geojsonProperties);break;case 'MultiLineString':googleObj=[];bounds=new google.maps.LatLngBounds();for(i=0;i<geojsonGeometry.coordinates.length;i++){path=[];for(j=0;j<geojsonGeometry.coordinates[i].length;j++){coord=geojsonGeometry.coordinates[i][j];ll=new google.maps.LatLng(coord[1],coord[0]);bounds.extend(ll);path.push(ll);}opts.path=path;googleObj.push(new google.maps.Polyline(opts));}if(geojsonProperties)for(k=0;k<googleObj.length;k++)googleObj[k].set('geojsonProperties',geojsonProperties);for(k=0;k<googleObj.length;
12k++)googleObj[k].set('bounds',bounds);break;case 'Polygon':paths=[];bounds=new google.maps.LatLngBounds();for(i=0;i<geojsonGeometry.coordinates.length;i++){path=[];for(j=0;j<geojsonGeometry.coordinates[i].length;j++){ll=new google.maps.LatLng(geojsonGeometry.coordinates[i][j][1],geojsonGeometry.coordinates[i][j][0]);bounds.extend(ll);path.push(ll);}paths.push(path);}opts.paths=paths;googleObj=new google.maps.Polygon(opts);googleObj.set('bounds',bounds);if(geojsonProperties)googleObj.set('geojsonProperties',geojsonProperties);break;case 'MultiPolygon':googleObj=[];bounds=new google.maps.LatLngBounds();for(i=0;i<geojsonGeometry.coordinates.length;i++){paths=[];for(j=0;j<geojsonGeometry.coordinates[i].length;j++){path=[];for(k=0;k<geojsonGeometry.coordinates[i][j].length;k++){ll=new google.maps.LatLng(geojsonGeometry.coordinates[i][j][k][1],geojsonGeometry.coordinates[i][j][k][0]);bounds.extend(ll);path.push(ll);}paths.push(path);}opts.paths=paths;googleObj.push(new google.maps.Polygon(opts));}if(geojsonProperties)for(k=0;k<googleObj.length;k++)googleObj[k].set('geojsonProperties',geojsonProperties);for(k=0;k<googleObj.length;
12k++)googleObj[k].set('bounds',bounds);break;case 'GeometryCollection':googleObj=[];if(!geojsonGeometry.geometries)googleObj=_error('Invalid GeoJSON object: GeometryCollection object missing \'geometries\' member.');else for(i=0;i<geojsonGeometry.geometries.length;i++)googleObj.push(_geometryToGoogleMaps(geojsonGeometry.geometries[i],opts,geojsonProperties||null));break;default:googleObj=_error('Invalid GeoJSON object: Geometry object must be one of \'Point\', \'LineString\', \'Polygon\' or \'MultiPolygon\'.');}return googleObj;};let _error=function(message){return {type:'Error',message};};let obj;let opts=options||{};switch(geojson.type){case 'FeatureCollection':if(!geojson.features)obj=_error('Invalid GeoJSON object: FeatureCollection object missing \'features\' member.');else{obj=[];for(let y=0;y<geojson.features.length;y++)obj.push(_geometryToGoogleMaps(geojson.features[y].geometry,opts,geojson.features[y].properties));}break;case 'GeometryCollection':if(!geojson.geometries)obj=_error('Invalid GeoJSON object: GeometryCollection object missing \'geometries\' member.');else{obj=[];for(let z=0;z<geojson.geometries.length;z++)obj.push(_geometryToGoogleMaps(geojson.geometries[z],opts,geojson.geometries[z].properties));}break;case 'Feature':if(!(geojson.properties&&geojson.geometry))obj=_error('Invalid GeoJSON object: Feature object missing \'properties\' or \'geometry\' member.');else obj=_geometryToGoogleMaps(geojson.geometry,opts,geojson.properties);break;case 'Point':case 'MultiPoint':case 'LineString':case 'MultiLineString':case 'Polygon':case 'MultiPolygon':obj=geojson.coordinates?obj=_geometryToGoogleMaps(geojson,opts,geojson.properties):_error('Invalid GeoJSON object: Geometry object missing \'coordinates\' member.');break;default:obj=_error('Invalid GeoJSON object: GeoJSON object must be one of \'Point\', \'LineString\', \'Polygon\', \'MultiPolygon\', \'Feature\', \'FeatureCollection\' or \'GeometryCollection\'.');}return obj;};})(jQuery,Drupal);; 13(function($,Drupal){'use strict';Drupal.behaviors.geofieldGoogleMap={attach:function(context,drupalSettings){function loadMap(mapId){let map_settings=drupalSettings['geofield_google_map'][mapId]['map_settings'];let data=drupalSettings['geofield_google_map'][mapId]['data'];Drupal.geoFieldMapFormatter.map_data[mapId]=map_settings;Drupal.geoFieldMapFormatter.loadGoogle(mapId,map_settings.gmap_api_key,map_settings.map_additional_libraries,function(){if(!document.getElementById(mapId))return;Drupal.geoFieldMapFormatter.map_initialize(mapId,map_settings,data,context);});}if(drupalSettings['geofield_google_map']){let mapObserver=null;if('IntersectionObserver' in window)mapObserver=new IntersectionObserver(function(entries,observer){for(var i=0;i<entries.length;i++)if(entries[i].isIntersecting)once('geofield-map-loaded',entries[i].target).forEach(function(el){loadMap(el.id);});});once('geofield-processed','html .geofield-google-map').forEach(function(element){const mapId=$(element).attr('id');if(drupalSettings['geofield_google_map'][mapId]){const map_settings=drupalSettings['geofield_google_map'][mapId]['map_settings'];if(mapObserver&&map_settings['map_lazy_load']['lazy_load'])mapObserver.observe(element);else loadMap(mapId);}});}}};Drupal.geoFieldMapFormatter={map_start:{center:{lat:41.85,lng:-87.65},zoom:18},map_data:{},maps_api_loading:false,googleMapsLanguage:function(html_language){switch(html_language){case 'zh-hans':html_language='zh-CN';break;case 'zh-hant':html_language='zh-TW';break;}return html_language;},googleCallback:function(){let self=this;$(document).ready(function(e){self.googleCallbacks.forEach(function(callback){callback.callback();});self.googleCallbacks=[];});},addCallback:function(callback){let self=this;self.googleCallbacks=self.googleCallbacks||[];self.googleCallbacks.push({callback});},loadGoogle:function(mapid,gmap_api_key,additional_libraries,callback){let self=this;let html_language=$('html').attr('lang')||'en';self.addCallback(callback);if(typeof google==='undefined'||typeof google.maps==='undefined'){if(self.maps_api_loading===true)return;self.maps_api_loading=true;let scriptPath=self.map_data[mapid]['gmap_api_localization']+'?v=weekly&sensor=false&language='+self.googleMapsLanguage(html_language)+'&callback=Drupal.geoFieldMapFormatter.googleCallback'+'&loading=async';if(gmap_api_key)scriptPath+='&key='+gmap_api_key;if(additional_libraries){let libraries=[];for(let library in additional_libraries)if(additional_libraries.hasOwnProperty(library))libraries.push(library);scriptPath+='&libraries='+libraries.join();}$.getScript(scriptPath).done(function(){self.maps_api_loading=false;});}else self.googleCallback();},checkImage:function(imageSrc,setIcon,logError){let img=new Image();img.src=imageSrc;img.onload=setIcon;
13img.onerror=logError;},place_feature:function(feature,mapid){let self=this;let icon_image=null;if(feature.geojsonProperties.icon&&feature.geojsonProperties.icon.length>0)icon_image=feature.geojsonProperties.icon;if(feature.setIcon&&icon_image&&icon_image.length>0)self.checkImage(icon_image,function(){feature.setIcon(icon_image);});if(feature.setTitle&&feature.geojsonProperties.tooltip)feature.setTitle(feature.geojsonProperties.tooltip);const map=self.map_data[mapid].map;if(feature.getPosition){const oms=self.map_data[mapid].oms?self.map_data[mapid].oms:null;if(oms)self.map_data[mapid].oms.addMarker(feature);else feature.setMap(map);const entity_id=feature['geojsonProperties']['entity_id'];if(self.map_data[mapid].geofield_cardinality&&self.map_data[mapid].geofield_cardinality!==1){let i=0;while(self.map_data[mapid].markers[entity_id+'-'+i])i++;self.map_data[mapid].markers[entity_id+'-'+i]=feature;}else self.map_data[mapid].markers[entity_id]=feature;self.map_data[mapid].map_bounds.extend(feature.getPosition());const clickListener=oms?'spider_click':'click';google.maps.event.addListener(feature,clickListener,function(){self.infowindow_open(mapid,feature);});}if(feature.getPath){let feature_options=feature.geojsonProperties.path_options?JSON.parse(feature.geojsonProperties.path_options):{};feature.setOptions(feature_options);feature.setMap(map);let path=feature.getPath();path.forEach(function(element){self.map_data[mapid].map_bounds.extend(element);});google.maps.event.addListener(feature,'click',function(event){self.infowindow_open(mapid,feature,event.latLng);});}},infowindow_open:function(mapid,feature,anchor){let self=this;let map=self.map_data[mapid].map;let properties=feature.get('geojsonProperties');if(feature.setTitle&&properties&&properties.title)feature.setTitle(properties.title);map.infowindow.close();if(properties.description){map.infowindow.setContent(properties.description);map.infowindow.setPosition(anchor);setTimeout(function(){map.infowindow.open(map,feature);},200);}},map_refresh:function(mapid){let self=this;setTimeout(function(){google.maps.event.trigger(self.map_data[mapid].map,'resize');},10);},map_initialize:function(mapid,map_settings,data,context){let self=this;if(google&&google.maps){let styledMapType;let mapOptions={center:map_settings.map_center?new google.maps.LatLng(map_settings.map_center.lat,map_settings.map_center.lon):new google.maps.LatLng(42,12.5),zoom:map_settings.map_zoom_and_pan.zoom.initial?parseInt(map_settings.map_zoom_and_pan.zoom.initial):8,minZoom:map_settings.map_zoom_and_pan.zoom.min?parseInt(map_settings.map_zoom_and_pan.zoom.min):1,maxZoom:map_settings.map_zoom_and_pan.zoom.max?parseInt(map_settings.map_zoom_and_pan.zoom.max):20,gestureHandling:map_settings.map_zoom_and_pan.gestureHandling||'auto',mapTypeId:map_settings.map_controls.map_type_id||'roadmap'};if(!map_settings.map_zoom_and_pan.scrollwheel&&!map_settings.map_zoom_and_pan.gestureHandling)mapOptions.scrollwheel=false;if(!map_settings.map_zoom_and_pan.draggable&&!map_settings.map_zoom_and_pan.gestureHandling)mapOptions.draggable=false;if(map_settings.map_controls.disable_default_ui)mapOptions.disableDefaultUI=map_settings.map_controls.disable_default_ui;else{if(map_settings.custom_style_map&&map_settings.custom_style_map.custom_style_control&&map_settings.custom_style_map.custom_style_name.length>0&&map_settings.custom_style_map.custom_style_options.length>0){let customMapStyleName=map_settings.custom_style_map.custom_style_name;let customMapStyle=JSON.parse(map_settings.custom_style_map.custom_style_options);styledMapType=new google.maps.StyledMapType(customMapStyle,{name:customMapStyleName});map_settings.map_controls.map_type_control_options_type_ids.push('custom_styled_map');}mapOptions.zoomControl=!!map_settings.map_controls.zoom_control;mapOptions.mapTypeControl=!!map_settings.map_controls.map_type_control;mapOptions.mapTypeControlOptions={mapTypeIds:map_settings.map_controls.map_type_control_options_type_ids?map_settings.map_controls.map_type_control_options_type_ids:['roadmap','satellite','hybrid'],position:google.maps.ControlPosition.TOP_LEFT};mapOptions.scaleControl=!!map_settings.map_controls.scale_control;mapOptions.streetViewControl=!!map_settings.map_controls.street_view_control;mapOptions.fullscreenControl=!!map_settings.map_controls.fullscreen_control;}if(map_settings.map_additional_options.length>0){let additionalOptions=JSON.parse(map_settings.map_additional_options);for(let prop in additionalOptions)if(additionalOptions.hasOwnProperty(prop)){if(additionalOptions[prop]==='true')additionalOptions[prop]=true;if(additionalOptions[prop]==='false')additionalOptions[prop]=false;}$.extend(mapOptions,additionalOptions);}let map=new google.maps.Map(document.getElementById(mapid),mapOptions);if(map_settings.map_zoom_and_pan.map_reset){let mapResetControlPosition=map_settings.map_zoom_and_pan.map_reset_position||'TOP_RIGHT';let mapResetControlDiv=document.createElement('div');mapResetControlDiv.style.zIndex="10";mapResetControlDiv.index=1;new self.map_reset_control(mapResetControlDiv,mapid);map.controls[google.maps.ControlPosition[mapResetControlPosition]].push(mapResetControlDiv);}if(Drupal.geoFieldMapGeocoder&&map_settings.map_geocoder.control){let mapGeocoderControlPosition=map_settings.map_geocoder.settings.position||'TOP_RIGHT';let mapGeocoderControlDiv=document.createElement('div');Drupal.geoFieldMapFormatter.map_data[mapid].geocoder_control=new Drupal.geoFieldMapGeocoder.map_control(mapGeocoderControlDiv,mapid);mapGeocoderControlDiv.index=1;map.controls[google.maps.ControlPosition[mapGeocoderControlPosition]].push(Drupal.geoFieldMapFormatter.map_data[mapid].geocoder_control);Drupal.geoFieldMapGeocoder.map_control_autocomplete(mapid,map_settings.map_geocoder.settings,$(Drupal.geoFieldMapFormatter.map_data[mapid].geocoder_control),'formatter','gmap');}if(styledMapType){map.mapTypes.set('custom_styled_map',styledMapType);if(map_settings.custom_style_map&&map_settings.custom_style_map.custom_style_default)map.setMapTypeId('custom_styled_map');}self.map_data[mapid].map=map;self.map_data[mapid].map_options=mapOptions;self.map_data[mapid].features=data.features;self.map_data[mapid].markers={};self.map_data[mapid].map_bounds=new google.maps.LatLngBounds();self.map_data[mapid].zoom_force=!!map_settings.map_zoom_and_pan.zoom.force;self.map_data[mapid].center_force=!!map_settings.map_center.center_force;let features=[];for(let i in data.features)features[i]=Drupal.googleGeoJson(data.features[i]);if(features.length>0){if(map_settings.map_oms&&map_settings.map_oms.map_oms_control&&OverlappingMarkerSpiderfier){let omsOptions=map_settings.map_oms.map_oms_options.length>0?JSON.parse(map_settings.map_oms.map_oms_options):{markersWontMove:true,markersWontHide:true,basicFormatEvents:true,keepSpiderfied:true};self.map_data[mapid].oms=new OverlappingMarkerSpiderfier(map,omsOptions);}map.infowindow=new google.maps.InfoWindow({content:''});google.maps.event.addListener(map.infowindow,'domready',function(){let element=document.createElement('div');element.innerHTML=map.infowindow.getContent().trim();let content=$('[data-geofield-google-map-ajax-popup]',element);if(content.length){let url=content.data('geofield-google-map-ajax-popup');Drupal.ajax({url}).execute().done(function(){Drupal.attachBehaviors(element,drupalSettings);});}});if(features.setMap)self.place_feature(features,mapid);else{for(let i in features)if(features[i].setMap)self.place_feature(features[i],mapid);else{for(let j in features[i])if(features[i][j].setMap)self.place_feature(features[i][j],mapid);}}if(typeof MarkerClusterer!=='undefined'&&map_settings.map_markercluster.markercluster_control){let markeclusterOption={imagePath:'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'};if(map_settings.map_markercluster.markercluster_additional_options.length>0){const markeclusterAdditionalOptions=JSON.parse(map_settings.map_markercluster.markercluster_additional_options);$.extend(markeclusterOption,markeclusterAdditionalOptions);}
13let markerCluster=[];const keys=Object.keys(self.map_data[mapid].markers);for(let k=0;k<keys.length;k++)markerCluster.push(self.map_data[mapid].markers[keys[k]]);self.map_data[mapid].markerCluster=new MarkerClusterer(map,markerCluster,markeclusterOption);}if(!self.mapBoundsAreNull(self.map_data[mapid].map_bounds)&&!self.map_data[mapid].center_force)map.fitBounds(self.map_data[mapid].map_bounds);else{if(self.map_data[mapid].markers.constructor===Object&&self.mapBoundsAreNull(self.map_data[mapid].map_bounds)&&!self.map_data[mapid].center_force)map.setCenter(self.map_data[mapid].markers[Object.keys(self.map_data[mapid].markers)[0]].getPosition());}}google.maps.event.addListenerOnce(map,'bounds_changed',function(){if(self.map_data[mapid].zoom_force)self.map_data[mapid].map.setZoom(self.map_data[mapid].map_options.zoom);});google.maps.event.addListenerOnce(map,'idle',function(){if(self.map_data[mapid].map_marker_and_infowindow.force_open)self.infowindow_open(mapid,features[0]);if(!self.map_data[mapid].zoom_force&&self.map_data[mapid].map_zoom_and_pan.zoom.finer&&self.map_data[mapid].map_zoom_and_pan.zoom.finer!==0)map.setOptions({zoom:map.getZoom()+parseInt(self.map_data[mapid].map_zoom_and_pan.zoom.finer)});self.map_set_start_state(mapid,map.getCenter(),map.getZoom());$(context).trigger('geofieldMapInit',mapid);});}},mapBoundsAreNull:function(mapBounds){let north_east=mapBounds.getNorthEast();
13let south_west=mapBounds.getSouthWest();return north_east.toString()===south_west.toString();},map_set_start_state:function(mapid,center,zoom){let self=this;self.map_data[mapid].map_start_center=center;self.map_data[mapid].map_start_zoom=zoom;},map_reset_control:function(controlDiv,mapid){let controlUI=document.createElement('div');controlUI.style.backgroundColor='#fff';controlUI.style.boxShadow='rgba(0,0,0,.3) 0px 1px 4px -1px';controlUI.style.cursor='pointer';controlUI.title=Drupal.t('Click to reset the map to its initial state');controlUI.style.margin='10px';controlUI.style.position='relative';controlUI.id='geofield-map--'+mapid+'--reset-control';controlDiv.appendChild(controlUI);let controlText=document.createElement('div');controlText.style.position='relative';controlText.innerHTML=Drupal.t('Reset Map');controlText.style.padding='0 17px';controlText.style.display='table-cell';controlText.style.height='40px';controlText.style.fontSize='18px';controlText.style.color='rgb(86,86,86)';controlText.style.textAlign='center';controlText.style.verticalAlign='middle';controlUI.appendChild(controlText);controlUI.addEventListener('click',function(){Drupal.geoFieldMapFormatter.map_data[mapid].map.setCenter(Drupal.geoFieldMapFormatter.map_data[mapid].map_start_center);Drupal.geoFieldMapFormatter.map_data[mapid].map.setZoom(Drupal.geoFieldMapFormatter.map_data[mapid].map_start_zoom);});return controlUI;}};})(jQuery,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.