1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2((Drupal,once)=>{"use strict";Drupal.behaviors.newsplusFixedHeader={attach(context){if(!once('fixed-header','body',context).length)return;const body=document.body;const preHeader=document.getElementById('pre-header');const headerTop=document.getElementById('header-top');const header=document.getElementById('header');const page=document.getElementById('page');const pageIntro=document.getElementById('page-intro');const adminToolbar=document.getElementById('toolbar-administration');if(!header)return;const preHeaderHeight=preHeader?preHeader.offsetHeight:0;const headerTopHeight=headerTop?headerTop.offsetHeight:0;const headerHeight=header.offsetHeight;const mq=window.matchMedia('(min-width: 768px)');const syncEnabled=()=>{body.classList.toggle('fixed-header-enabled',mq.matches);};const handleScroll=()=>{const scrolledPast=window.scrollY>(preHeaderHeight+headerTopHeight);if(scrolledPast&&mq.matches){body.classList.add('onscroll');if(adminToolbar)header.style.top=getComputedStyle(body).paddingTop;const target=pageIntro||page;if(target)target.style.paddingTop=`${headerHeight}px`;}else{body.classList.remove('onscroll');header.style.top='0';if(page)page.style.paddingTop='0';if(pageIntro)pageIntro.style.paddingTop='0';}};syncEnabled();mq.addEventListener('change',syncEnabled);window.addEventListener('scroll',handleScroll,{passive:true});}};})(Drupal,once);; 3(function($){$.fn.superfish=function(superfish_options){const cssClasses=sf.cssClasses;
3const $arrow=$(`<span class="${cssClasses.arrowClass}"> »</span>`);const over=function(){const $$=$(this);const menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();};const out=function(){const $$=$(this);const menu=getMenu($$);const options=sf.options;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){if($$.children('.sf-clicked').length===0){options.retainPath=($.inArray($$[0],options.$path)>-1);$$.hideSuperfishUl();if(options.$path.length&&$$.parents(`li.${cssClasses.hoverClass}`).length<1)over.call(options.$path);}},options.delay);};const getMenu=function($menu){const menu=$menu.parents(`ul.${cssClasses.menuClass}:first`)[0];sf.options=sf.optionsList[menu.serial];return menu;};const addArrow=function($a){$a.addClass(cssClasses.anchorClass).append($arrow.clone());};return this.each(function(){const s=this.serial=sf.optionsList.length;const options=$.extend({},sf.defaults,superfish_options);options.$path=$(`li.${options.pathClass}`,this).slice(0,options.pathLevels);const path=options.$path;for(let l=0;l<path.length;l++)path.eq(l).addClass(`${cssClasses.hoverClass} ${cssClasses.bcClass}`).filter('li:has(ul)').removeClass(options.pathClass);sf.optionsList[s]=sf.options=options;$('li:has(ul)',this)[($.fn.hoverIntent&&!options.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(options.autoArrows)addArrow($(this).children('a:first-child, span.nolink:first-child'));}).not('.'+cssClasses.bcClass).hideSuperfishUl();const $a=$('a, span.nolink',this);$a.each(function(i){const $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});options.onInit.call(this);}).each(function(){const menuClasses=[cssClasses.menuClass];if(sf.options.dropShadows)menuClasses.push(cssClasses.shadowClass);$(this).addClass(menuClasses.join(' '));});};const sf=$.fn.superfish;sf.optionsList=[];sf.options={};sf.cssClasses={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow',hiddenClass:'sf-hidden',hoverClass:'sfHover'};sf.defaults={pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'fast',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){const options=sf.options;const not=options.retainPath===true?options.$path:'';options.retainPath=false;const $li=$(`li.${sf.cssClasses.hoverClass}`,this).add(this).not(not).removeClass(sf.cssClasses.hoverClass);$li.children('a').attr('aria-expanded','false');const $ul=$li.children('ul').addClass(sf.cssClasses.hiddenClass).attr('aria-hidden','true');options.onHide.call($ul);return this;},showSuperfishUl:function(){this.removeClass(sf.cssClasses.hiddenClass).attr('aria-hidden','false');const options=sf.options;const $li=this.addClass(sf.cssClasses.hoverClass);$li.children('a').attr('aria-expanded','true');const $ul=$li.children(`ul.${sf.cssClasses.hiddenClass}`).hide().removeClass(sf.cssClasses.hiddenClass).attr('aria-hidden','false');options.onBeforeShow.call($ul);$ul.animate(options.animation,options.speed,function(){options.onShow.call($ul);});return this;}});})(jQuery);; 4((Drupal,once)=>{"use strict";Drupal.behaviors.newsplusMenu={attach(context){once('main-toggle','.region-navigation .menu-toggle',context).forEach((toggle)=>{const menu=document.querySelector('.region-navigation ul.menu:not(.sf-menu)');if(!menu)return;toggle.setAttribute('aria-expanded','false');toggle.setAttribute('aria-controls',menu.id||'main-nav-menu');if(!menu.id)menu.id='main-nav-menu';toggle.addEventListener('click',()=>{const isOpen=menu.classList.toggle('is-open');toggle.setAttribute('aria-expanded',isOpen?'true':'false');});});}};})(Drupal,once);; 5((Drupal,once)=>{"use strict";const MOBILE="(max-width: 991px)";const FOLDED="header-folded";const SOURCE="header-folded-source";function drawer(){return (document.querySelector(".region-navigation ul.sf-accordion")||document.querySelector(".region-navigation ul.menu"));}
5function topBarMenus(){const target=drawer();return Array.prototype.slice.call(document.querySelectorAll("#pre-header ul.menu, #header-top ul.menu")).filter((menu)=>menu!==target).filter((menu)=>!menu.closest(".region-navigation")).filter((menu)=>!menu.classList.contains("sf-accordion")).filter((menu)=>!menu.closest(".region-pre-header-right")).filter((menu)=>!menu.closest('[id*="useraccount"]')).filter((menu)=>!menu.parentElement.closest("ul.menu"));}function clearFolded(target){target.querySelectorAll("."+FOLDED).forEach((el)=>el.remove());document.querySelectorAll("."+SOURCE).forEach((el)=>el.classList.remove(SOURCE));target.querySelectorAll(".header-duplicate").forEach((el)=>el.classList.remove("header-duplicate"));}function accountHrefs(){const links=document.querySelectorAll('#pre-header [id*="useraccount"] a[href], #header-top [id*="useraccount"] a[href]');return new Set(Array.prototype.map.call(links,(link)=>link.getAttribute("href")));}function hideDuplicates(target){const hrefs=accountHrefs();if(!hrefs.size)return;target.querySelectorAll(":scope > li > a[href]").forEach((link)=>{if(hrefs.has(link.getAttribute("href")))link.parentElement.classList.add("header-duplicate");});}function fold(){const target=drawer();if(!target)return;clearFolded(target);if(!window.matchMedia(MOBILE).matches)return;const seen=new Set(Array.prototype.map.call(target.querySelectorAll(":scope > li > a[href]"),(link)=>link.getAttribute("href")));topBarMenus().forEach((menu)=>{const items=Array.prototype.filter.call(menu.children,(node)=>node.tagName==="LI").filter((item)=>{if(window.getComputedStyle(item).display==="none")return false;const anchor=item.querySelector("a");return !anchor||window.getComputedStyle(anchor).display!=="none";}).filter((item)=>{const link=item.querySelector("a[href]");return !link||!seen.has(link.getAttribute("href"));});if(!items.length)return;menu.classList.add(SOURCE);items.forEach((item)=>{const clone=item.cloneNode(true);clone.classList.add(FOLDED,"sf-depth-1");clone.removeAttribute("id");clone.querySelectorAll("[id]").forEach((node)=>node.removeAttribute("id"));target.appendChild(clone);const link=item.querySelector("a[href]");if(link)seen.add(link.getAttribute("href"));});});hideDuplicates(target);}function relocateToggle(){const bar=document.querySelector(".region-pre-header-left");const nav=document.querySelector(".region-navigation");if(!bar||!nav)return;const PLAIN=".menu-toggle:not(.menu-toggle--hide)";const toggle=nav.querySelector(".sf-accordion-toggle")||nav.querySelector(PLAIN)||bar.querySelector(".sf-accordion-toggle.header-toggle-moved")||bar.querySelector(PLAIN+".header-toggle-moved");if(!toggle)return;if(window.matchMedia(MOBILE).matches){if(toggle.parentElement!==bar){toggle.classList.add("header-toggle-moved");bar.appendChild(toggle);}return;}if(toggle.classList.contains("header-toggle-moved")){toggle.classList.remove("header-toggle-moved");const content=nav.querySelector(".content")||nav;content.insertBefore(toggle,content.firstChild);}}function markCta(){document.querySelectorAll('#pre-header [id*="useraccount"] a, #header-top [id*="useraccount"] a').forEach((link)=>{if(/^\s*subscribe\s*$/i.test(link.textContent))link.classList.add("header-cta");});}Drupal.behaviors.newsplusHeader={attach(context){markCta();relocateToggle();fold();once("newsplus-header","body",context).forEach((body)=>{const query=window.matchMedia(MOBILE);const listener=()=>{relocateToggle();fold();};new MutationObserver((records)=>{const added=records.some((record)=>Array.prototype.some.call(record.addedNodes,(node)=>{if(node.nodeType!==1)return false;return (node.matches(".sf-accordion-toggle")||!!node.querySelector(".sf-accordion-toggle"));}));if(added)listener();}).observe(body,{childList:true,subtree:true});if(query.addEventListener)query.addEventListener("change",listener);else{if(query.addListener)query.addListener(listener);}let pending;window.addEventListener("resize",()=>{window.clearTimeout(pending);pending=window.setTimeout(listener,200);});new MutationObserver((records)=>{const built=records.some((record)=>Array.prototype.some.call(record.addedNodes,(node)=>{if(node.nodeType!==1)return false;return ((node.matches("ul.sf-accordion")||!!node.querySelector("ul.sf-accordion"))&&!!node.closest(".region-navigation"));}));if(built)fold();}).observe(body,{childList:true,subtree:true});});}};})(Drupal,once);; 6((Drupal,once)=>{"use strict";function nameFromMenu(menu){let name=menu.id.replace(/^superfish-/,"").replace(/[-_]+/g," ").trim();if(!name)return "Menu";if(!/\bmenu\b/i.test(name))name+=" menu";return name.charAt(0).toUpperCase()+name.slice(1);}function labelNode(link){return link.querySelector(".sr-only, .visually-hidden");}function currentName(link){const node=labelNode(link);return (node?node.textContent:link.textContent).trim();}function setName(link,name){const node=labelNode(link);if(node)node.textContent=name;else link.setAttribute("aria-label",name);}function menuFor(link){return link.id?document.getElementById(link.id.replace(/-toggle$/,"")):null;}function syncExpanded(link){link.setAttribute("aria-expanded",link.classList.contains("sf-expanded")?"true":"false");}function enhance(link){const menu=menuFor(link);if(!menu)return;link.setAttribute("role","button");link.setAttribute("aria-controls",menu.id);syncExpanded(link);new MutationObserver(()=>syncExpanded(link)).observe(link,{attributes:true,attributeFilter:["class"]});link.addEventListener("keydown",(event)=>{if(event.key===" "||event.key==="Spacebar"){event.preventDefault();link.click();}});}function disambiguate(){const links=Array.prototype.slice.call(document.querySelectorAll(".sf-accordion-toggle > a"));const seen={};links.forEach((link)=>{const key=currentName(link).toLowerCase();seen[key]=(seen[key]||0)+1;});links.forEach((link)=>{const name=currentName(link);if(name&&seen[name.toLowerCase()]===1)return;const menu=menuFor(link);if(menu)setName(link,nameFromMenu(menu));});}function process(context){once("sf-a11y",".sf-accordion-toggle > a",context).forEach(enhance);disambiguate();}function dismissOpenSubmenus(){document.querySelectorAll("li.sfHover").forEach((li)=>{if(li.classList.contains("sf-a11y-dismissed"))return;const onOut=(ev)=>{if(!li.contains(ev.relatedTarget))clear();};const clear=()=>{li.classList.remove("sf-a11y-dismissed");li.removeEventListener("mouseleave",clear);li.removeEventListener("focusout",onOut);};li.classList.add("sf-a11y-dismissed");li.addEventListener("mouseleave",clear);li.addEventListener("focusout",onOut);});}Drupal.behaviors.newsplusSuperfishA11y={attach(context){process(context);once("sf-a11y-escape","body",context).forEach((body)=>{body.addEventListener("keydown",(event)=>{if(event.key==="Escape")dismissOpenSubmenus();});});once("sf-a11y-watch","body",context).forEach((body)=>
6{new MutationObserver((records)=>{const added=records.some((record)=>Array.prototype.some.call(record.addedNodes,(node)=>{if(node.nodeType!==1)return false;return (node.matches(".sf-accordion-toggle")||!!node.querySelector(".sf-accordion-toggle"));}));if(added)process(document);}).observe(body,{childList:true,subtree:true});});}};})(Drupal,once);; 7((Drupal,once)=>{"use strict";function strip(li){const role=li.getAttribute("role");if(role==="tabpanel"||role==="group"){li.removeAttribute("role");li.removeAttribute("aria-roledescription");}}Drupal.behaviors.newsplusSplideA11y={attach(context){once("splide-a11y","body",context).forEach((body)=>{document.querySelectorAll("li.splide__slide[role]").forEach(strip);new MutationObserver((records)=>{records.forEach((record)=>{if(record.type==="attributes")strip(record.target);record.addedNodes.forEach((node)=>{if(node.nodeType===1){if(node.matches("li.splide__slide"))strip(node);node.querySelectorAll?.("li.splide__slide[role]").forEach(strip);}});});}).observe(body,{childList:true,subtree:true,attributes:true,attributeFilter:["role"]});});}};})(Drupal,once);; 8((Drupal,once)=>{"use strict";Drupal.behaviors.newsplusTheme={attach(context){once('newsplus-menu-toggle-labels','#superfish-secondary-menu-toggle, #superfish-main-toggle',context).forEach((el)=>el.setAttribute('aria-label','Menu Toggle'));once('newsplus-logout-fix','#secondary-menu-userlogout > a',context).forEach((link)=>{if(link.getAttribute('href')==='/user/login')link.setAttribute('href','/etype-login');});once('newsplus-front-resize','body',context).forEach(()=>{window.addEventListener('resize',()=>{document.querySelectorAll('.front-page-sections h2').forEach((h)=>{h.style.height='unset';});},{passive:true});});}};})(Drupal,once);; 9((Drupal,once)=>{'use strict';Drupal.behaviors.newsplusLightbox={attach(context){const lightbox=document.getElementById('lightbox');if(!lightbox||!once('newsplus-lightbox',lightbox).length)return;const lightboxContent=document.getElementById('lightboxContent');const closeBtn=document.getElementById('closelightBox');const prevBtn=document.getElementById('lightboxPrev');const nextBtn=document.getElementById('lightboxNext');let index=0;let total=0;const render=(uri,caption)=>{prevBtn.textContent=index>1?'<< Previous':'';nextBtn.textContent=index<total?'Next >>':'';lightboxContent.innerHTML='';const img=document.createElement('img');img.src=uri;img.alt=caption||'';const p=document.createElement('p');p.textContent=caption||'';lightboxContent.append(img,p);lightbox.style.display='flex';};const open=(link)=>{const parent=link.closest('.field__item');if(!parent)return;index=parseInt(parent.dataset.index,10)||0;total=parseInt(parent.dataset.total,10)||0;render(link.dataset.uri,link.dataset.caption);};const step=(delta)=>{const next=index+delta;const div=document.querySelector(`div[data-index="${next}"]`);if(!div)return;const link=div.querySelector('.expand_image');if(!link)return;index=next;render(link.dataset.uri,link.dataset.caption);};const close=()=>{lightbox.style.display='none';};once('expand-image','.expand_image',context).forEach((link)=>{link.addEventListener('click',(e)=>{e.preventDefault();open(link);});});closeBtn?.addEventListener('click',close);prevBtn?.addEventListener('click',()=>step(-1));nextBtn?.addEventListener('click',()=>step(1));document.addEventListener('keydown',(e)=>{if(lightbox.style.display!=='flex')return;if(e.key==='Escape')close();else if(e.key==='ArrowLeft'&&index>1)step(-1);else{if(e.key==='ArrowRight'&&index<total)step(1);}});}};})(Drupal,once);; 10((Drupal,once)=>{"use strict";const OPEN_BODY="newsplus-search-open";const FOCUSABLE=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");let returnFocusTo=null;function dialogOf(modal){return modal.querySelector(".newsplus-search-modal__dialog");}function isOpen(modal){return !modal.hasAttribute("hidden");}function open(modal,trigger){if(isOpen(modal))return;returnFocusTo=trigger||document.activeElement;modal.removeAttribute("hidden");document.body.classList.add(OPEN_BODY);if(trigger)trigger.setAttribute("aria-expanded","true");const input=modal.querySelector(".newsplus-search-modal__input");if(input){input.value="";input.focus();}}function close(modal,trigger){if(!isOpen(modal))return;modal.setAttribute("hidden","");document.body.classList.remove(OPEN_BODY);
10if(trigger)trigger.setAttribute("aria-expanded","false");if(returnFocusTo&&(!document.activeElement||modal.contains(document.activeElement)))returnFocusTo.focus();returnFocusTo=null;}function trapTab(event,modal){if(event.key!=="Tab")return;const items=Array.from(dialogOf(modal).querySelectorAll(FOCUSABLE)).filter((el)=>el.offsetParent!==null);if(!items.length)return;const first=items[0];const last=items[items.length-1];if(event.shiftKey&&document.activeElement===first){event.preventDefault();last.focus();}else{if(!event.shiftKey&&document.activeElement===last){event.preventDefault();first.focus();}}}Drupal.behaviors.newsplusSearchModal={attach(context){const modal=document.getElementById("newsplus-search-modal");if(!modal)return;once("newsplus-search-trigger","[data-search-open]",context).forEach((trigger)=>{trigger.setAttribute("role","button");trigger.setAttribute("aria-haspopup","dialog");trigger.setAttribute("aria-expanded","false");trigger.setAttribute("aria-controls","newsplus-search-modal");trigger.addEventListener("click",(event)=>{event.preventDefault();open(modal,trigger);});trigger.addEventListener("keydown",(event)=>{if(event.key===" "||event.key==="Spacebar"){event.preventDefault();open(modal,trigger);}});});once("newsplus-search-modal",modal).forEach((el)=>{const trigger=document.querySelector("[data-search-open]");el.querySelectorAll("[data-search-close]").forEach((btn)=>{btn.addEventListener("click",()=>close(el,trigger));});el.addEventListener("keydown",(event)=>{if(event.key==="Escape"){event.preventDefault();close(el,trigger);}else trapTab(event,el);});el.querySelector(".newsplus-search-modal__form").addEventListener("submit",(event)=>{const input=el.querySelector(".newsplus-search-modal__input");if(!input.value.trim()){event.preventDefault();input.focus();}});});}};})(Drupal,once);; 11(function _($,drupalSettings){setTimeout(()=>{$.ajax({type:'POST',cache:false,url:drupalSettings.statistics.url,data:drupalSettings.statistics.data});});})(jQuery,drupalSettings);; 12/* @license MIT https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html */ 13(function($,Drupal,once){Drupal.behaviors.superfish={attach(context,drupalSettings){$.each(drupalSettings.superfish||{},function(index,options){$(once('superfish',`ul#${options.id}`,context)).each(function(){const $menu=$(this);if(options.plugins)if(options.plugins.supersubs)$menu.supersubs(options.plugins.supersubs);$menu.superfish(options.sf);if(options.plugins){if(options.plugins.touchscreen)$menu.sftouchscreen(options.plugins.touchscreen);if(options.plugins.smallscreen)$menu.sfsmallscreen(options.plugins.smallscreen);if(options.plugins.supposition)$menu.supposition();}});});}};})(jQuery,Drupal,once);; 14/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 15/*! 16 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+ 17 * http://briancherne.github.io/jquery-hoverIntent/ 18 * 19 * You may use hoverIntent under the terms of the MIT license. Basically that 20 * means you are free to use hoverIntent as long as this header is left intact. 21 * Copyright 2007-2019 Brian Cherne 22 */ 23!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),(typeof cfg.out==="function")||(cfg.out=cfg.over)):cfg=(typeof handlerOut==="function")?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));
23var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});; 24(function($){$.fn.sfsmallscreen=function(options){options=$.extend({mode:'inactive',type:'accordion',breakpoint:768,breakpointUnit:'px',useragent:'',title:'',addSelected:false,menuClasses:false,hyperlinkClasses:false,excludeClass_menu:'',excludeClass_hyperlink:'',includeClass_menu:'',includeClass_hyperlink:'',accordionButton:1,expandText:'Expand',collapseText:'Collapse'},options);function refine(menu){const refined=menu.clone();const rm=refined.find('span.sf-sub-indicator');const rh=refined.find('.sf-smallscreen-remove');const mm=refined.find('ul.sf-multicolumn');for(let a=0;a<rh.length;a++)rh.eq(a).replaceWith(rh.eq(a).html());if(options.accordionButton===2||options.type==='select'){for(let b=0;b<rm.length;b++)rm.eq(b).remove();}if(mm.length>0){mm.removeClass('sf-multicolumn');const ol=refined.find('div.sf-multicolumn-column > ol');for(let o=0;o<ol.length;o++)ol.eq(o).replaceWith('<ul>'+ol.eq(o).html()+'</ul>');const elements=['div.sf-multicolumn-column','.sf-multicolumn-wrapper > ol','li.sf-multicolumn-wrapper'];for(let i=0;i<elements.length;i++){let obj=refined.find(elements[i]);for(let t=0;t<obj.length;t++)obj.eq(t).replaceWith(obj.eq(t).html());}refined.find('.sf-multicolumn-column').removeClass('sf-multicolumn-column');}refined.add(refined.find('*')).css({width:''});return refined;}function toSelect(menu,level){let items='';const childLI=$(menu).children('li');for(let a=0;a<childLI.length;a++){const list=childLI.eq(a);const parent=list.children('a, span');for(let b=0;b<parent.length;b++){const item=parent.eq(b);const path=(item.is('a')&&!!item.attr('href'))?item.attr('href'):'';const itemClone=item.clone();let classes=(options.hyperlinkClasses)?((options.excludeClass_hyperlink&&itemClone.hasClass(options.excludeClass_hyperlink))?itemClone.removeClass(options.excludeClass_hyperlink).attr('class'):itemClone.attr('class')):'';classes=(options.includeClass_hyperlink&&!itemClone.hasClass(options.includeClass_hyperlink))?((options.hyperlinkClasses)?itemClone.addClass(options.includeClass_hyperlink).attr('class'):options.includeClass_hyperlink):classes;if(options.addSelected&&item.hasClass('active'))classes+=' active';classes=classes?' class="'+classes+'"':'';const disable=path===''||path==='#'?' disabled="disabled"':'';const subIndicator=1<level?Array(level).join('-')+' ':'';items+='<option value="'+path+'"'+classes+disable+'>'+subIndicator+item.text().trim()+'</option>';const childUL=list.find('> ul');for(let u=0;u<childUL.length;u++)items+=toSelect(childUL.eq(u),level+1);}}return items;}function convert(menu){const menuID=menu.attr('id');const refinedMenu=refine(menu);if(options.type==='accordion'){const toggleID=menuID+'-toggle';const accordionID=menuID+'-accordion';if($('#'+accordionID).length!==0)return;const styleClass=menu.attr('class').split(' ').filter(function(item){return item.indexOf('sf-style-')>-1?item:'';});const accordion=$(refinedMenu).attr('id',accordionID);accordion.removeClass('sf-horizontal sf-vertical sf-navbar sf-shadow sf-js-enabled');accordion.addClass('sf-accordion sf-hidden').attr('aria-hidden','true');accordion.find('li').each(function(){$(this).removeAttr('style').removeClass('sfHover').attr('id',$(this).attr('id')+'-accordion');});accordion.children('ul').removeAttr('style').not('.sf-hidden').addClass('sf-hidden').attr('aria-hidden','true');accordion.find('ul').each(function(){$(this).removeAttr('style').not('.sf-hidden').addClass('sf-hidden').attr('aria-hidden','true');});const toggle='<div class="sf-accordion-toggle '+styleClass+'"><a href="#" id="'+toggleID+'"><span>'+options.title+'</span></a></div>';if(options.accordionButton===2){accordion.addClass('sf-accordion-with-buttons');const parent=accordion.find('li.menuparent');for(let i=0;i<parent.length;i++)parent.eq(i).prepend('<a href="#" class="sf-accordion-button">'+options.expandText+'</a>');}menu.before(toggle).before(accordion).hide();const $accordionElement=$('#'+accordionID);const buttonElement=(options.accordionButton<2)?'a.menuparent,span.nolink.menuparent':'a.sf-accordion-button';const $button=$accordionElement.find(buttonElement);$('#'+toggleID).on('click',function(e){e.preventDefault();$(this).toggleClass('sf-expanded');if($accordionElement.hasClass('sf-expanded')){$accordionElement.add($accordionElement.find('li.sf-expanded')).removeClass('sf-expanded').end().children('ul').hide().end().hide().addClass('sf-hidden').attr('aria-hidden','true').show();if(options.accordionButton===2)$accordionElement.find('a.sf-accordion-button').text(options.expandText);}else $accordionElement.addClass('sf-expanded').hide().removeClass('sf-hidden').attr('aria-hidden','false').show();});$button.on('click',function(e){if($(this).closest('li').children('ul').length===0)return;e.preventDefault();const $parent=$(this).closest('li');if(options.accordionButton===1&&$parent.children('a.menuparent,span.nolink.menuparent').length>0&&$parent.children('ul').children('li.sf-clone-parent').length===0){let cloneLink=$parent.children('a.menuparent').clone();cloneLink.removeClass('menuparent sf-with-ul').children('.sf-sub-indicator').remove();cloneLink=$('<li class="sf-clone-parent" />').html(cloneLink);$parent.children('ul').addClass('sf-has-clone-parent').prepend(clone
24Link);}if(options.accordionButton===0||options.accordionButton===1)$accordionElement.find('a.is-active:not(.menuparent)').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden').attr('aria-hidden','true');});if(options.accordionButton===2)$accordionElement.find('a.is-active').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden').attr('aria-hidden','true');});if($parent.hasClass('sf-expanded')){$parent.children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').attr('aria-hidden','true').show();});if(options.accordionButton===2&&$parent.children('.sf-accordion-button').length>0)$parent.children('.sf-accordion-button').text(options.expandText);}else $parent.children('ul').hide().removeClass('sf-hidden').attr('aria-hidden','false').slideDown('fast').end().addClass('sf-expanded').children('a.sf-accordion-button').text(options.collapseText).end().siblings('li.sf-expanded').children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').attr('aria-hidden','true').show();}).parent().children('a.sf-accordion-button').text(options.expandText);});}else{const menuClone=menu.clone();let classes=options.menuClasses?((options.excludeClass_menu&&menuClone.hasClass(options.excludeClass_menu))?menuClone.removeClass(options.excludeClass_menu).attr('class'):menuClone.attr('class')):'';classes=options.includeClass_menu&&!menuClone.hasClass(options.includeClass_menu)?((options.menuClasses)?menuClone.addClass(options.includeClass_menu).attr('class'):options.includeClass_menu):classes;classes=classes?' class="'+classes+'"':'';if($('#'+menuID+'-select').length!==0)return;const newMenu=toSelect(refinedMenu,1);const selectList=$('<select '+classes+' id="'+menuID+'-select"/>').html('<option>'+options.title+'</option>'+newMenu).change(function(){if($('option:selected',this).index())window.location=selectList.val();});if(options.addSelected)selectList.find('.active').attr('selected',!0);menu.before(selectList).hide();}}function turnBack(menu){const id='#'+menu.attr('id');$(id+'-'+options.type).remove();if(options.type==='accordion')$(id+'-toggle').parent('div').remove();$(id).css('display','');}for(let s=0;s<this.length;s++){const menu=$(this).eq(s);const mode=options.mode;if(menu.children('li').length===0){}else if(mode==='always_active')convert(menu);else if(mode==='window_width'){const breakpoint=options.breakpointUnit==='em'?options.breakpoint*parseFloat($('body').css('font-size')):options.breakpoint;const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;let timer;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);}$(window).resize(function(){clearTimeout(timer);timer=setTimeout(function(){const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);else turnBack(menu);},50);});}else if(mode==='useragent_custom'){if(options.useragent!==''){const ua=RegExp(options.useragent,'i');if(navigator.userAgent.match(ua))convert(menu);}}else{if(mode==='useragent_predefined'&&navigator.userAgent.match(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i))convert(menu);}}return this;};})(jQuery);; 25(function($){$.fn.supersubs=function(options){const superfish_options=$.extend({},$.fn.supersubs.defaults,options);let size;let o;for(let a=0;a<this.length;a++){let $$=$(this).eq(a);o=$.meta?$.extend({},superfish_options,$$.data()):superfish_options;if($$.hasClass('sf-navbar'))$$=$$.children('li').children('ul');let $ULs=$$.find('ul');if($ULs.length){let fontsize=$('<li id="menu-fontsize">—</li>');size=fontsize.attr('style','padding:0;position:absolute;top:-99999em;width:auto;').appendTo($$)[0].clientWidth;fontsize.remove();for(let b=0;b<$ULs.length;b++){let $ul=$ULs.eq(b);if(o.multicolumn&&$ul.hasClass('sf-multicolumn')&&$ul.find('.sf-multicolumn-column').length>0){let $column=$ul.find('div.sf-multicolumn-column > ol');let mwWidth=0;for(let d=0;d<$column.length;d++){resize($column.eq(d));let colWidth=Math.ceil($column.width());$column.css({width:colWidth}).parents('.sf-multicolumn-column').css({width:colWidth});mwWidth+=colWidth;}$ul.add($ul.find('li.sf-multicolumn-wrapper, li.sf-multicolumn-wrapper > ol')).css({width:mwWidth});}else resize($ul);}}}function resize($ul){const $LIs=$ul.children();const $As=$LIs.children('a');$LIs.css('white-space','nowrap');$ul.add($LIs).add($As).css({float:'none',width:'auto'});let emWidth=$ul.get(0).clientWidth/size;emWidth+=o.extraWidth;
25if(emWidth>o.maxWidth)emWidth=o.maxWidth;else{if(emWidth<o.minWidth)emWidth=o.minWidth;}emWidth+='em';$ul.css({width:emWidth});$LIs.add($As).css({float:'',width:'',whiteSpace:''});for(let c=0;c<$LIs.length;c++){let $childUl=$LIs.eq(c).children('ul');let offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,'100%');}}return this;};$.fn.supersubs.defaults={multicolumn:true,minWidth:12,maxWidth:27,extraWidth:1};})(jQuery);; 26(function($){$.fn.supposition=function(){const $w=$(window);const _offset=function(dir){return window[dir==='y'?'pageYOffset':'pageXOffset']||document.documentElement&&document.documentElement[dir==='y'?'scrollTop':'scrollLeft']||document.body[dir==='y'?'scrollTop':'scrollLeft'];};const onHide=function(){this.css({bottom:''});};const onBeforeShow=function(){this.each(function(){const $u=$(this);$u.css('display','block');const $mul=$u.closest('.sf-menu');const level=$u.parents('ul').length;const menuWidth=$u.width();const menuParentWidth=$u.closest('li').outerWidth(true);const menuParentLeft=$u.closest('li').offset().left;const totalRight=$w.width()+_offset('x');const menuRight=$u.offset().left+menuWidth;const exactMenuWidth=menuRight>(menuParentWidth+menuParentLeft)?menuWidth-(menuRight-(menuParentWidth+menuParentLeft)):menuWidth;if($u.parents('.sf-js-enabled').hasClass('rtl')){if(menuParentLeft<exactMenuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({left:0,right:'auto'});else $u.css({left:menuParentWidth+'px',right:'auto'});$u.parent().addClass('sf-supposition-active');}}else{if(menuRight>totalRight&&menuParentLeft>menuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({right:0,left:'auto'});else $u.css({right:menuParentWidth+'px',left:'auto'});$u.parent().addClass('sf-supposition-active');}}const windowHeight=$w.height();const offsetTop=$u.offset().top;const menuParentShadow=$mul.hasClass('sf-shadow')&&$u.css('padding-bottom').length>0?parseInt($u.css('padding-bottom').slice(0,-2)):0;const menuParentHeight=$mul.hasClass('sf-vertical')?'-'+menuParentShadow:$u.parent().outerHeight(true)-menuParentShadow;const menuHeight=$u.height();const baseline=windowHeight+_offset('y');const expandUp=(offsetTop+menuHeight>baseline)&&(offsetTop>menuHeight);if(expandUp)$u.css({bottom:menuParentHeight+'px',top:'auto'});$u.css('display','none');});};return this.each(function(){const options=$.fn.superfish.optionsList[this.serial];const _onBeforeShow=options.onBeforeShow;const _onHide=options.onHide;$.extend($.fn.superfish.optionsList[this.serial],{onBeforeShow:function(){onBeforeShow.call(this);_onBeforeShow.call(this);},onHide:function(){onHide.call(this);_onHide.call(this);}});});};})(jQuery);; 27/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */ 28(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
28if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
28try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=JSON.parse(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
28if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
28);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));; 29/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 30(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);; 31(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings?.views?.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings?.views?.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);this.$exposed_form=$(`form#views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}`);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1);const params=decodeURI(queryString).split('&').filter((param)=>{const [name,value]=param.split('=');return (this.$exposed_form.find(`input[name="${name}"]`).length===0&&!['page','reset','sort','order','q','render'].includes(name));});queryString=encodeURI(params.join('&'));if(queryString!=='')queryString=(ajaxPath.includes('?')?'&':'?')+queryString;}this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;once('exposed-form',this.$exposed_form).forEach(this.attachExposedFormAjax.bind(this));once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEac
31h(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;this.exposedFormAjax=[];$('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(index){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax[index]=Drupal.ajax(selfSettings);});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.setBrowserUrl=(ajax,response)=>{if(ajax.element&&!ajax.element.closest('.ui-dialog-content'))window.history.replaceState(null,'',response.url);};})(jQuery,Drupal,drupalSettings);;
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.