1/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */ 2/*! @drupal/once - v1.0.1 - 2021-06-12 */ 3var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}(); 4 5; 6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 7window.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;
7if(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);; 8if(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);; 9/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 10/*! 11* tabbable 6.3.0 12* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 13*/ 14!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
14if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 15 16; 17/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 18(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 19/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 20loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
20function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 21/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 22Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 23(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 24((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>
24{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 25(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl.hasOwnProperty(originalUrl))drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url))if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
25$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url)&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
25d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
25$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 26(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);; 27((Drupal)=>{Drupal.behaviors.lazy={attach(context,settings){const utils={extend(obj,src){Object.keys(src).forEac
27h((key)=>{obj[key]=src[key];});return obj;},once(selector){return (context||document).querySelector(selector);},loadScript(url){let fullUrl=settings.path.baseUrl.slice(0,-1)+url;if(document.querySelectorAll(`script[src="${fullUrl}"]`).length===0){const script=document.createElement('script');const scripts=document.getElementsByTagName('script')[0];script.src=fullUrl;script.async=true;scripts.parentNode.insertBefore(script,scripts);}}};if(utils.once('body',context)){const lazysizes=settings.lazy.lazysizes||{};if(!settings.lazy.preferNative){window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig=utils.extend(window.lazySizesConfig,lazysizes);if(!Object.entries)Object.entries=(obj)=>{const ownProps=Object.keys(obj);let i=ownProps.length;const resArray=new Array(i);while(i--)resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};const min=settings.lazy.minified?'.min':'';Object.entries(lazysizes.plugins).forEach((path)=>{utils.loadScript(`${settings.lazy.libraryPath}/plugins/${path[1]}${min}.js`);});utils.loadScript(`${settings.lazy.libraryPath}/lazysizes${min}.js`);}}}};})(Drupal);; 28(function(Drupal){'use strict';function init(context){var elements=context.querySelectorAll('[data-mail-to]');var clickable=context.querySelectorAll('[data-mail-click-link]');if(!elements)return;function rot13(string){return string.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<='Z'?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});}function normalizeEncryptEmail(string){string=rot13(string);string=string.replace(/\/dot\//g,'.');string=string.replace(/\/at\//g,'@');var encodedString=Drupal.checkPlain(string);encodedString=encodedString.replace(/&/g,'&');return encodedString;}function setMailAddress(element){var mailTo=normalizeEncryptEmail(element.getAttribute('data-mail-to'));var replaceInner=element.getAttribute('data-replace-inner');element.removeAttribute('data-mail-to');element.removeAttribute('data-replace-inner');if(element.tagName==='A')element.setAttribute('href','mailto:'+mailTo);if(replaceInner==='true'||replaceInner===''){element.innerHTML=mailTo;return;}if(replaceInner)element.innerHTML=element.innerHTML.replace(replaceInner,mailTo);}if(clickable.length){Array.prototype.slice.call(elements).forEach(function(element){element.addEventListener('click',function(event){if(element.className.split(/\s+/).indexOf('link-processed')===-1){event.preventDefault();setMailAddress(element);element.classList.add('link-processed');}});});return;}NodeList.prototype.forEach=Array.prototype.forEach;elements.forEach(function(element){setMailAddress(element);});}Drupal.behaviors.obfuscateEmailField={attach:init};})(Drupal);; 29(function(root,factory){if(typeof define==='function'&&define.amd)define(["jquery"],function(jQuery){return (root.Tablesaw=factory(jQuery,root));});else if(typeof exports==='object')if("document" in root)module.exports=factory(require('jquery'),root);else module.exports=factory(require('jquery')(root),root);else root.Tablesaw=factory(jQuery,root);}(typeof window!=="undefined"?window:this,function($,window){"use strict";var document=window.document;var domContentLoadedTriggered=/complete|loaded/.test(document.readyState);document.addEventListener("DOMContentLoaded",function(){domContentLoadedTriggered=true;});var Tablesaw={i18n:{modeStack:"Stack",modeSwipe:"Swipe",modeToggle:"Toggle",modeSwitchColumnsAbbreviated:"Cols",modeSwitchColumns:"Columns",columnToggleButton:"Columns",columnToggleError:"No eligible columns.",sort:"Sort",swipePreviousColumn:"Previous column",swipeNextColumn:"Next column"},mustard:"head" in document&&(!window.blackberry||window.WebKitPoint)&&!window.operamini,$,_init:function(element){Tablesaw.$(element||document).trigger("enhance.tablesaw");},init:function(element){domContentLoadedTriggered=domContentLoadedTriggered||/complete|loaded/.test(document.readyState);if(!domContentLoadedTriggered){if("addEventListener" in document)document.addEventListener("DOMContentLoaded",function(){Tablesaw._init(element);});}else Tablesaw._init(element);}};$(document).on("enhance.tablesaw",function(){if(typeof TablesawConfig!=="undefined"&&TablesawConfig.i18n)Tablesaw.i18n=$.extend(Tablesaw.i18n,TablesawConfig.i18n||{});Tablesaw.i18n.modes=[Tablesaw.i18n.modeStack,Tablesaw.i18n.modeSwipe,Tablesaw.i18n.modeToggle];});if(Tablesaw.mustard)$(document.documentElement).addClass("tablesaw-enhanced");(function(){var pluginName="tablesaw";var classes={toolbar:"tablesaw-bar"};var events={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh",resize:"tablesawresize"};var defaultMode="stack";var initSelector="table";var initFilterSelector="[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]";var defaultConfig={};Tablesaw.events=events;var Table=function(element){if(!element)throw new Error("Tablesaw requires an element.");this.table=element;this.$table=$(element);this.$thead=this.$table.children().filter("thead").eq(0);this.$tbody=this.$table.children().filter("tbody");this.mode=this.$table.attr("data-tablesaw-mode")||defaultMode;this.$toolbar=null;this.attributes={subrow:"data-tablesaw-subrow",ignorerow:"data-tablesaw-ignorerow"};this.init();};Table.prototype.init=function(){if(!this.$thead.length)throw new Error("tablesaw: a <thead> is required, but none was found.");if(!this.$thead.find("th").length)throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");if(!this.$table.attr("id"))this.$table.attr("id",pluginName+"-"+Math.round(Math.random()*10000));this.createToolbar();this._initCells();this.$table.data(pluginName,this);this.$table.trigger(events.create,[this]);};Table.prototype.getConfig=function(pluginSpecificConfig){var configs=$.extend(defaultConfig,pluginSpecificConfig||{});return $.extend(configs,typeof TablesawConfig!=="undefined"?TablesawConfig:{});};Table.prototype._getPrimaryHeaderRow=function(){return this._getHeaderRows().eq(0);};Table.prototype._getHeaderRows=function(){return this.$thead.children().filter("tr").filter(function(){return !$(this).is("[data-tablesaw-ignorerow]");});};Table.prototype._getRowIndex=function($row){return $row.prevAll().length;};Table.prototype._getHeaderRowIndeces=function(){var self=this;var indeces=[];this._getHeaderRows().each(function(){[].push.call(indeces,self._getRowIndex($(this)));});return indeces;};Table.prototype._getPrimaryHeaderCells=function($row){return ($row||this._getPrimaryHeaderRow()).find("th");};Table.prototype._$getCells=function(th){var self=this;return $(th).add(th.cells).filter(function(){var $t=$(this);var $row=$t.parent();var hasColspan=$t.is("[colspan]");return (!$row.is("["+self.attributes.subrow+"]")&&(!$row.is("["+self.attributes.ignorerow+"]")||!hasColspan));});};Table.prototype._getVisibleColspan=function(){var colspan=0;this._getPrimaryHeaderCells().each(function(){var $t=$(this);if($t.css("display")!=="none")colspan+=parseInt($t.attr("colspan"),10)||1;});return colspan;};Table.prototype.getColspanForCell=function($cell){var visibleColspan=this._getVisibleColspan();var visibleSiblingColumns=0;if($cell.closest("tr").data("tablesaw-rowspanned"))visibleSiblingColumns++;$cell.siblings().each(function(){var $t=$(this);var colColspan=parseInt($t.attr("colspan"),10)||1;if($t.css("display")!=="none")visibleSiblingColumns+=colColspan;});return visibleColspan-visibleSiblingColumns;};Table.prototype.isCellInColumn=function(header,cell){return $(header).add(header.cells).filter(function(){return this===cell;}).length;};Table.prototype.updateColspanCells=function(cls,header,userAction){var self=this;var primaryHeaderRow=self._getPrimaryHeaderRow();
29this.$table.find("[rowspan][data-tablesaw-priority]").each(function(){var $t=$(this);if($t.attr("data-tablesaw-priority")!=="persist")return;var $row=$t.closest("tr");var rowspan=parseInt($t.attr("rowspan"),10);if(rowspan>1){$row=$row.next();$row.data("tablesaw-rowspanned",true);rowspan--;}});this.$table.find("[colspan],[data-tablesaw-maxcolspan]").filter(function(){return $(this).closest("tr")[0]!==primaryHeaderRow[0];}).each(function(){var $cell=$(this);if(userAction===undefined||self.isCellInColumn(header,this)){}else return;var colspan=self.getColspanForCell($cell);if(cls&&userAction!==undefined)$cell[colspan===0?"addClass":"removeClass"](cls);var maxColspan=parseInt($cell.attr("data-tablesaw-maxcolspan"),10);if(!maxColspan)$cell.attr("data-tablesaw-maxcolspan",$cell.attr("colspan"));else{if(colspan>maxColspan)colspan=maxColspan;}$cell.attr("colspan",colspan);});};Table.prototype._findPrimaryHeadersForCell=function(cell){var $headerRow=this._getPrimaryHeaderRow();var headerRowIndex=this._getRowIndex($headerRow);var results=[];for(var rowNumber=0;rowNumber<this.headerMapping.length;rowNumber++){if(rowNumber===headerRowIndex)continue;for(var colNumber=0;colNumber<this.headerMapping[rowNumber].length;colNumber++)if(this.headerMapping[rowNumber][colNumber]===cell)[].push.call(results,this.headerMapping[headerRowIndex][colNumber]);}return results;};Table.prototype.getRows=function(){var self=this;return this.$table.find("tr").filter(function(){return $(this).closest("table").is(self.$table);});};Table.prototype.getBodyRows=function(tbody){return (tbody?$(tbody):this.$tbody).children().filter("tr");};Table.prototype.getHeaderCellIndex=function(cell){var lookup=this.headerMapping[0];for(var colIndex=0;colIndex<lookup.length;colIndex++)if(lookup[colIndex]===cell)return colIndex;return -1;};Table.prototype._initCells=function(){this.$table.find("[data-tablesaw-maxcolspan]").each(function(){var $t=$(this);$t.attr("colspan",$t.attr("data-tablesaw-maxcolspan"));});var $rows=this.getRows();var columnLookup=[];$rows.each(function(rowNumber){columnLookup[rowNumber]=[];});$rows.each(function(rowNumber){var coltally=0;var $t=$(this);var children=$t.children();children.each(function(){var colspan=parseInt(this.getAttribute("data-tablesaw-maxcolspan")||this.getAttribute("colspan"),10);var rowspan=parseInt(this.getAttribute("rowspan"),10);while(columnLookup[rowNumber][coltally])coltally++;columnLookup[rowNumber][coltally]=this;if(colspan)for(var k=0;k<colspan-1;k++){coltally++;columnLookup[rowNumber][coltally]=this;}if(rowspan)for(var j=1;j<rowspan;j++)columnLookup[rowNumber+j][coltally]=this;coltally++;});});var headerRowIndeces=this._getHeaderRowIndeces();for(var colNumber=0;colNumber<columnLookup[0].length;colNumber++)for(var headerIndex=0,k=headerRowIndeces.length;headerIndex<k;headerIndex++){var headerCol=columnLookup[headerRowIndeces[headerIndex]][colNumber];var rowNumber=headerRowIndeces[headerIndex];var rowCell;if(!headerCol.cells)headerCol.cells=[];while(rowNumber<columnLookup.length){rowCell=columnLookup[rowNumber][colNumber];if(headerCol!==rowCell)[].push.call(headerCol.cells,rowCell);rowNumber++;}}this.headerMapping=columnLookup;};Table.prototype.refresh=function(){this._initCells();this.$table.trigger(events.refresh,[this]);};Table.prototype._getToolbarAnchor=function(){var $parent=this.$table.parent();if($parent.is(".tablesaw-overflow"))return $parent;return this.$table;};Table.prototype._getToolbar=function($anchor){if(!$anchor)$anchor=this._getToolbarAnchor();return $anchor.prev().filter("."+classes.toolbar);};Table.prototype.createToolbar=function(){var $anchor=this._getToolbarAnchor();var $toolbar=this._getToolbar($anchor);if(!$toolbar.length)$toolbar=$("<div>
29").addClass(classes.toolbar).insertBefore($anchor);this.$toolbar=$toolbar;if(this.mode)this.$toolbar.addClass("tablesaw-mode-"+this.mode);};Table.prototype.destroy=function(){this._getToolbar().each(function(){this.className=this.className.replace(/\btablesaw-mode\-\w*\b/gi,"");});var tableId=this.$table.attr("id");$(document).off("."+tableId);$(window).off("."+tableId);this.$table.trigger(events.destroy,[this]);this.$table.removeData(pluginName);};$.fn[pluginName]=function(){return this.each(function(){var $t=$(this);if($t.data(pluginName))return;new Table(this);});};var $doc=$(document);$doc.on("enhance.tablesaw",function(e){if(Tablesaw.mustard){var $target=$(e.target);if($target.parent().length)$target=$target.parent();$target.find(initSelector).filter(initFilterSelector)[pluginName]();}});var isScrolling=false;var scrollTimeout;$doc.on("scroll.tablesaw",function(){isScrolling=true;window.clearTimeout(scrollTimeout);scrollTimeout=window.setTimeout(function(){isScrolling=false;},300);});var resizeTimeout;$(window).on("resize",function(){if(!isScrolling){window.clearTimeout(resizeTimeout);resizeTimeout=window.setTimeout(function(){$doc.trigger(events.resize);},150);}});Tablesaw.Table=Table;})();(function(){var classes={stackTable:"tablesaw-stack",cellLabels:"tablesaw-cell-label",cellContentLabels:"tablesaw-cell-content"};var data={key:"tablesaw-stack"};var attrs={labelless:"data-tablesaw-no-labels",hideempty:"data-tablesaw-hide-empty"};var Stack=function(element,tablesaw){this.tablesaw=tablesaw;this.$table=$(element);this.labelless=this.$table.is("["+attrs.labelless+"]");this.hideempty=this.$table.is("["+attrs.hideempty+"]");this.$table.data(data.key,this);};
29Stack.prototype.init=function(){this.$table.addClass(classes.stackTable);if(this.labelless)return;var self=this;this.$table.find("th, td").filter(function(){return !$(this).closest("thead").length;}).filter(function(){return (!$(this).is("["+attrs.labelless+"]")&&!$(this).closest("tr").is("["+attrs.labelless+"]")&&(!self.hideempty||!!$(this).html()));}).each(function(){var $newHeader=$(document.createElement("b")).addClass(classes.cellLabels);var $cell=$(this);$(self.tablesaw._findPrimaryHeadersForCell(this)).each(function(index){var $header=$(this.cloneNode(true));var $sortableButton=$header.find(".tablesaw-sortable-btn");$header.find(".tablesaw-sortable-arrow").remove();var $checkall=$header.find("[data-tablesaw-checkall]");$checkall.closest("label").remove();if($checkall.length){$newHeader=$([]);return;}if(index>0)$newHeader.append(document.createTextNode(", "));var parentNode=$sortableButton.length?$sortableButton[0]:$header[0];var el;while((el=parentNode.firstChild))$newHeader[0].appendChild(el);});if($newHeader.length&&!$cell.find("."+classes.cellContentLabels).length)$cell.wrapInner("<span class='"+classes.cellContentLabels+"'></span>");var $label=$cell.find("."+classes.cellLabels);if(!$label.length){$cell.prepend(document.createTextNode(" "));$cell.prepend($newHeader);}else $label.replaceWith($newHeader);});};Stack.prototype.destroy=function(){this.$table.removeClass(classes.stackTable);this.$table.find("."+classes.cellLabels).remove();this.$table.find("."+classes.cellContentLabels).each(function(){$(this).replaceWith($(this.childNodes));});};$(document).on(Tablesaw.events.create,function(e,tablesaw){if(tablesaw.mode==="stack"){var table=new Stack(tablesaw.table,tablesaw);table.init();}}).on(Tablesaw.events.refresh,function(e,tablesaw){if(tablesaw.mode==="stack")$(tablesaw.table).data(data.key).init();}).on(Tablesaw.events.destroy,function(e,tablesaw){if(tablesaw.mode==="stack")$(tablesaw.table).data(data.key).destroy();});Tablesaw.Stack=Stack;})();(function(){var pluginName="tablesawbtn",methods={_create:function(){return $(this).each(function(){$(this).trigger("beforecreate."+pluginName)[pluginName]("_init").trigger("create."+pluginName);});},_init:function(){var oEl=$(this),sel=this.getElementsByTagName("select")[0];if(sel)$(this).addClass("btn-select tablesaw-btn-select")[pluginName]("_select",sel);return oEl;},_select:function(sel){var update=function(oEl,sel){var opts=$(sel).find("option");var label=document.createElement("span");var el;var children;var found=false;label.setAttribute("aria-hidden","true");label.innerHTML=" ";opts.each(function(){var opt=this;if(opt.selected)label.innerHTML=opt.text;});children=oEl.childNodes;if(opts.length>0){for(var i=0,l=children.length;i<l;i++){el=children[i];if(el&&el.nodeName.toUpperCase()==="SPAN"){oEl.replaceChild(label,el);found=true;}}if(!found)oEl.insertBefore(label,oEl.firstChild);}};update(this,sel);$(this).on("change refresh",function(){update(this,sel);});}};$.fn[pluginName]=function(arrg,a,b,c){return this.each(function(){if(arrg&&typeof arrg==="string")return $.fn[pluginName].prototype[arrg].call(this,a,b,c);if($(this).data(pluginName+"active"))return $(this);$(this).data(pluginName+"active",true);$.fn[pluginName].prototype._create.call(this);});};$.extend($.fn[pluginName].prototype,methods);})();(function(){var data={key:"tablesaw-coltoggle"};var ColumnToggle=function(element){this.$table=$(element);if(!this.$table.length)return;this.tablesaw=this.$table.data("tablesaw");this.attributes={btnTarget:"data-tablesaw-columntoggle-btn-target",set:"data-tablesaw-columntoggle-set"};this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-"};this.set=[];this.$headers=this.tablesaw._getPrimaryHeaderCells();this.$table.data(data.key,this);};ColumnToggle.prototype.initSet=function(){var set=this.$table.attr(this.attributes.set);if(set){var table=this.$table[0];this.set=$("table["+this.attributes.set+"='"+set+"']").filter(function(){return this!==table;}).get();}};ColumnToggle.prototype.init=function(){if(!this.$table.length)return;var tableId,id,$menuButton,$popup,$menu,$btnContain,self=this;var cfg=this.tablesaw.getConfig({getColumnToggleLabelTemplate:function(text){return "<label><input type='checkbox' checked>"+text+"</label>";}});this.$table.addClass(this.classes.columnToggleTable);tableId=this.$table.attr("id");id=tableId+"-popup";$btnContain=$("<div class='"+this.classes.columnBtnContain+"'></div>");$menuButton=$("<a href='#"+id+"' class='btn tablesaw-btn btn-micro "+this.classes.columnBtn+"' data-popup-link>"+"<span>"+Tablesaw.i18n.columnToggleButton+"</span></a>");
vendor: 4,882 bytes, line 29
29$popup=$("<div class='"+this.classes.popup+"' id='"+id+"'></div>");$menu=$("<div class='tablesaw-btn-group'></div>");this.$popup=$popup;var hasNonPersistentHeaders=false;this.$headers.each(function(){var $this=$(this),priority=$this.attr("data-tablesaw-priority"),$cells=self.tablesaw._$getCells(this);if(priority&&priority!=="persist"){$cells.addClass(self.classes.priorityPrefix+priority);$(cfg.getColumnToggleLabelTemplate($this.text())).appendTo($menu).find('input[type="checkbox"]').data("tablesaw-header",this);hasNonPersistentHeaders=true;}});if(!hasNonPersistentHeaders)$menu.append("<label>"+Tablesaw.i18n.columnToggleError+"</label>");$menu.appendTo($popup);function onToggleCheckboxChange(checkbox){var checked=checkbox.checked;var header=self.getHeaderFromCheckbox(checkbox);var $cells=self.tablesaw._$getCells(header);$cells[!checked?"addClass":"removeClass"]("tablesaw-toggle-cellhidden");$cells[checked?"addClass":"removeClass"]("tablesaw-toggle-cellvisible");self.updateColspanCells(header,checked);self.$table.trigger("tablesawcolumns");}$menu.find('input[type="checkbox"]').on("change",function(e){onToggleCheckboxChange(e.target);if(self.set.length){var index;$(self.$popup).find("input[type='checkbox']").each(function(j){if(this===e.target){index=j;return false;}});$(self.set).each(function(){var checkbox=$(this).data(data.key).$popup.find("input[type='checkbox']").get(index);if(checkbox){checkbox.checked=e.target.checked;onToggleCheckboxChange(checkbox);}});}});$menuButton.appendTo($btnContain);var $btnTarget=$(this.$table.attr(this.attributes.btnTarget));$btnContain.appendTo($btnTarget.length?$btnTarget:this.tablesaw.$toolbar);function closePopup(event){if(event&&$(event.target).closest("."+self.classes.popup).length)return;$(document).off("click."+tableId);$menuButton.removeClass("up").addClass("down");$btnContain.removeClass("visible");}var closeTimeout;function openPopup(){$btnContain.addClass("visible");$menuButton.removeClass("down").addClass("up");$(document).off("click."+tableId,closePopup);window.clearTimeout(closeTimeout);closeTimeout=window.setTimeout(function(){$(document).on("click."+tableId,closePopup);},15);}$menuButton.on("click.tablesaw",function(event){event.preventDefault();if(!$btnContain.is(".visible"))openPopup();else closePopup();});$popup.appendTo($btnContain);this.$menu=$menu;var $overflow=this.$table.closest(".tablesaw-overflow");if($overflow.css("-webkit-overflow-scrolling")){var timeout;$overflow.on("scroll",function(){var $div=$(this);window.clearTimeout(timeout);timeout=window.setTimeout(function(){$div.css("-webkit-overflow-scrolling","auto");window.setTimeout(function(){$div.css("-webkit-overflow-scrolling","touch");},0);},100);});}$(window).on(Tablesaw.events.resize+"."+tableId,function(){self.refreshToggle();});this.initSet();this.refreshToggle();};ColumnToggle.prototype.getHeaderFromCheckbox=function(checkbox){return $(checkbox).data("tablesaw-header");};ColumnToggle.prototype.refreshToggle=function(){var self=this;var invisibleColumns=0;this.$menu.find("input").each(function(){var header=self.getHeaderFromCheckbox(this);this.checked=self.tablesaw._$getCells(header).eq(0).css("display")==="table-cell";});this.updateColspanCells();};ColumnToggle.prototype.updateColspanCells=function(header,userAction){this.tablesaw.updateColspanCells("tablesaw-toggle-cellhidden",header,userAction);};ColumnToggle.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable);this.$table.find("th, td").each(function(){var $cell=$(this);$cell.removeClass("tablesaw-toggle-cellhidden").removeClass("tablesaw-toggle-cellvisible");this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"");});};$(document).on(Tablesaw.events.create,function(e,tablesaw){if(tablesaw.mode==="columntoggle"){var table=new ColumnToggle(tablesaw.table);table.init();}});$(document).on(Tablesaw.events.destroy,function(e,tablesaw){if(tablesaw.mode==="columntoggle")$(tablesaw.table).data(data.key).destroy();});$(document).on(Tablesaw.events.refresh,function(e,tablesaw){if(tablesaw.mode==="columntoggle")$(tablesaw.table).data(data.key).refreshToggle();});Tablesaw.ColumnToggle=ColumnToggle;})();(function(){function getSortValue(cell){var text=[];$(cell.childNodes).each(function(){var $el=$(this);if($el.is("input, select"))[].push.call(text,$el.val());else if($el.is(".tablesaw-cell-label")){}else [].push.call(text,($el.text()||"").replace(/^\s+|\s+$/g,""));});return text.join("");}var pluginName="tablesaw-sortable",initSelector="table[data-"+pluginName+"]",sortableSwitchSelector="[data-"+pluginName+"-switch]",attrs={sortCol:"data-tablesaw-sortable-col",defaultCol:"data-tablesaw-sortable-default-col",numericCol:"data-tablesaw-sortable-numeric",subRow:"data-tablesaw-subrow",ignoreRow:"data-tablesaw-ignorerow"},classes={head:pluginName+"-head",ascend:pluginName+"-ascending",desce
29nd:pluginName+"-descending",switcher:pluginName+"-switch",tableToolbar:"tablesaw-bar-section",sortButton:pluginName+"-btn"},methods={_create:function(o){return $(this).each(function(){var init=$(this).data(pluginName+"-init");if(init)return false;$(this).data(pluginName+"-init",true).trigger("beforecreate."+pluginName)[pluginName]("_init",o).trigger("create."+pluginName);});},_init:function(){var el=$(this);var tblsaw=el.data("tablesaw");var heads;var $switcher;function addClassToHeads(h){$.each(h,function(i,v){$(v).addClass(classes.head);});}function makeHeadsActionable(h,fn){$.each(h,function(i,col){var b=$("<button class='"+classes.sortButton+"'/>");b.on("click",{col},fn);$(col).wrapInner(b).find("button").append("<span class='tablesaw-sortable-arrow'>");});}function clearOthers(headcells){$.each(headcells,function(i,v){var col=$(v);col.removeAttr(attrs.defaultCol);col.removeClass(classes.ascend);col.removeClass(classes.descend);});}function headsOnAction(e){if($(e.target).is("a[href]"))return;e.stopPropagation();var headCell=$(e.target).closest("["+attrs.sortCol+"]"),v=e.data.col,newSortValue=heads.index(headCell[0]);clearOthers(headCell.closest("thead").find("th").filter(function(){return this!==headCell[0];}));if(headCell.is("."+classes.descend)||!headCell.is("."+classes.ascend)){el[pluginName]("sortBy",v,true);newSortValue+="_asc";}else{el[pluginName]("sortBy",v);newSortValue+="_desc";}if($switcher)$switcher.find("select").val(newSortValue).trigger("refresh");e.preventDefault();}function handleDefault(heads){$.each(heads,function(idx,el){var $el=$(el);if($el.is("["+attrs.defaultCol+"]"))if(!$el.is("."+classes.descend))$el.addClass(classe
29s.ascend);});}function addSwitcher(heads){$switcher=$("<div>").addClass(classes.switcher).addClass(classes.tableToolbar);var html=["<label>"+Tablesaw.i18n.sort+":"];[].push.call(html,'<span class="btn tablesaw-btn"><select>');heads.each(function(j){var $t=$(this);var isDefaultCol=$t.is("["+attrs.defaultCol+"]");var isDescending=$t.is("."+classes.descend);var hasNumericAttribute=$t.is("["+attrs.numericCol+"]");var numericCount=0;var numericCountMax=5;$(this.cells.slice(0,numericCountMax)).each(function(){if(!isNaN(parseInt(getSortValue(this),10)))numericCount++;});var isNumeric=numericCount===numericCountMax;if(!hasNumericAttribute)$t.attr(attrs.numericCol,isNumeric?"":"false");[].push.call(html,"<option"+(isDefaultCol&&!isDescending?" selected":"")+' value="'+j+'_asc">'+$t.text()+" "+(isNumeric?"↑":"(A-Z)")+"</option>");[].push.call(html,"<option"+(isDefaultCol&&isDescending?" selected":"")+' value="'+j+'_desc">'+$t.text()+" "+(isNumeric?"↓":"(Z-A)")+"</option>");});[].push.call(html,"</select></span></label>");$switcher.html(html.join(""));var $firstChild=tblsaw.$toolbar.children().eq(0);if($firstChild.length)$switcher.insertBefore($firstChild);else $switcher.appendTo(tblsaw.$toolbar);$switcher.find(".tablesaw-btn").tablesawbtn();$switcher.find("select").on("change",function(){var val=$(this).val().split("_"),head=heads.eq(val[0]);clearOthers(head.siblings());el[pluginName]("sortBy",head.get(0),val[1]==="asc");});}el.addClass(pluginName);heads=el.children().filter("thead").find("th["+attrs.sortCol+"]");addClassToHeads(heads);makeHeadsActionable(heads,headsOnAction);handleDefault(heads);if(el.is(sortableSwitchSelector))addSwitcher(heads);},sortRows:function(rows,colNum,ascending,col,tbody){function convertCells(cellArr,belongingToTbody){var cells=[];$.each(cellArr,function(i,cell){var row=cell.parentNode;var $row=$(row);var subrows=[];var $next=$row.next();while($next.is("["+attrs.subRow+"]")){[].push.call(subrows,$next[0]);$next=$next.next();}var tbody=row.parentNode;if($row.is("["+attrs.subRow+"]")){}else{if(tbody===belongingToTbody)[].push.call(cells,{element:cell,cell:getSortValue(cell),row,subrows:subrows.length?subrows:null,ignored:$row.is("["+attrs.ignoreRow+"]")});}});return cells;}function getSortFxn(ascending,forceNumeric){var fn,regex=/[^\-\+\d\.]/g;if(ascending)fn=function(a,b){if(a.ignored||b.ignored)return 0;if(forceNumeric)return (parseFloat(a.cell.replace(regex,""))-parseFloat(b.cell.replace(regex,"")));else return a.cell.toLowerCase()>b.cell.toLowerCase()?1:-1;};else fn=function(a,b){if(a.ignored||b.ignored)return 0;if(forceNumeric)return (parseFloat(b.cell.replace(regex,""))-parseFloat(a.cell.replace(regex,"")));else return a.cell.toLowerCase()<b.cell.toLowerCase()?1:-1;};return fn;}function convertToRows(sorted){var newRows=[],i,l;for(i=0,l=sorted.length;i<l;i++){[].push.call(newRows,sorted[i].row);if(sorted[i].subrows)[].push.call(newRows,sorted[i].subrows);}return newRows;}var fn;var sorted;var cells=convertCells(col.cells,tbody);var customFn=$(col).data("tablesaw-sort");fn=(customFn&&typeof customFn==="function"?customFn(ascending):false)||getSortFxn(ascending,$(col).is("["+attrs.numericCol+"]")&&!$(col).is("["+attrs.numericCol+'="false"]'));sorted=[].push.call(cells,fn);rows=convertToRows(sorted);return rows;},makeColDefault:function(col,a){var c=$(col);c.attr(attrs.defaultCol,"true");if(a){c.removeClass(classes.descend);
vendor: 4,603 bytes, line 29
29c.addClass(classes.ascend);}else{c.removeClass(classes.ascend);c.addClass(classes.descend);}},sortBy:function(col,ascending){var el=$(this);var colNum;var tbl=el.data("tablesaw");tbl.$tbody.each(function(){var tbody=this;var $tbody=$(this);var rows=tbl.getBodyRows(tbody);var sortedRows;var map=tbl.headerMapping[0];var j,k;for(j=0,k=map.length;j<k;j++)if(map[j]===col){colNum=j;break;}sortedRows=el[pluginName]("sortRows",rows,colNum,ascending,col,tbody);for(j=0,k=sortedRows.length;j<k;j++)$tbody.append(sortedRows[j]);});el[pluginName]("makeColDefault",col,ascending);el.trigger("tablesaw-sorted");}};$.fn[pluginName]=function(arrg){var args=Array.prototype.slice.call(arguments,1),returnVal;if(arrg&&typeof arrg==="string"){returnVal=$.fn[pluginName].prototype[arrg].apply(this[0],args);return typeof returnVal!=="undefined"?returnVal:$(this);}if(!$(this).data(pluginName+"-active")){$(this).data(pluginName+"-active",true);$.fn[pluginName].prototype._create.call(this,arrg);}return $(this);};$.extend($.fn[pluginName].prototype,methods);$(document).on(Tablesaw.events.create,function(e,Tablesaw){if(Tablesaw.$table.is(initSelector))Tablesaw.$table[pluginName]();});})();(function(){var classes={hideBtn:"disabled",persistWidths:"tablesaw-fix-persist",hiddenCol:"tablesaw-swipe-cellhidden",persistCol:"tablesaw-swipe-cellpersist",allColumnsVisible:"tablesaw-all-cols-visible"};var attrs={disableTouchEvents:"data-tablesaw-no-touch",ignorerow:"data-tablesaw-ignorerow",subrow:"data-tablesaw-subrow"};function createSwipeTable(tbl,$table){var tblsaw=$table.data("tablesaw");var $btns=$("<div class='tablesaw-advance'></div>");var $prevBtn=$("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro left'>"+Tablesaw.i18n.swipePreviousColumn+"</a>").appendTo($btns);var $nextBtn=$("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro right'>"+Tablesaw.i18n.swipeNextColumn+"</a>").appendTo($btns);var $headerCells=tbl._getPrimaryHeaderCells();var $headerCellsNoPersist=$headerCells.not('[data-tablesaw-priority="persist"]');var headerWidths=[];var headerWidthsNoPersist=[];var $head=$(document.head||"head");var tableId=$table.attr("id");if(!$headerCells.length)throw new Error("tablesaw swipe: no header cells found.");$table.addClass("tablesaw-swipe");function initMinHeaderWidths(){$table.css({width:"1px"});$table.find("."+classes.hiddenCol).removeClass(classes.hiddenCol);headerWidths=[];headerWidthsNoPersist=[];$headerCells.each(function(){var width=this.offsetWidth;[].push.call(headerWidths,width);if(!isPersistent(this))[].push.call(headerWidthsNoPersist,width);});$table.css({width:""});}initMinHeaderWidths();$btns.appendTo(tblsaw.$toolbar);if(!tableId){tableId="tableswipe-"+Math.round(Math.random()*10000);$table.attr("id",tableId);}function showColumn(headerCell){tblsaw._$getCells(headerCell).removeClass(classes.hiddenCol);}function hideColumn(headerCell){tblsaw._$getCells(headerCell).addClass(classes.hiddenCol);}function persistColumn(headerCell){tblsaw._$getCells(headerCell).addClass(classes.persistCol);}function isPersistent(headerCell){return $(headerCell).is('[data-tablesaw-priority="persist"]');}function unmaintainWidths(){$table.removeClass(classes.persistWidths);$("#"+tableId+"-persist").remove();}function maintainWidths(){var prefix="#"+tableId+".tablesaw-swipe ";var styles=[];var tableWidth=$table.width();var tableWidthNoPersistantColumns=tableWidth;var hash=[];var newHash;$headerCells.each(function(index){var width;if(isPersistent(this)){width=this.offsetWidth;tableWidthNoPersistantColumns-=width;if(width<tableWidth*0.75){[].push.call(hash,index+"-"+width);[].push.call(styles,prefix+" ."+classes.persistCol+":nth-child("+(index+1)+") { width: "+width+"px; }");}}});newHash=hash.join("_");if(styles.length){$table.addClass(classes.persistWidths);var $style=$("#"+tableId+"-persist");if(!$style.length||$style.data("tablesaw-hash")!==newHash){$style.remove();$("<style>"+styles.join("\n")+"</style>").attr("id",tableId+"-persist").data("tablesaw-hash",newHash).appendTo($head);}}return tableWidthNoPersistantColumns;}function getNext(){var next=[];var checkFound;$headerCellsNoPersist.each(function(i){var $t=$(this);var isHidden=$t.css("display")==="none"||$t.is("."+classes.hiddenCol);if(!isHidden&&!checkFound){checkFound=true;next[0]=i;}else{if(isHidden&&checkFound){next[1]=i;return false;}}});return next;}function getPrev(){var next=getNext();return [next[1]-1,next[0]-1];}function canNavigate(pair){return pair[1]>-1&&pair[1]<$headerCellsNoPersist.length;}function matchesMedia(){var matchMedia=$table.attr("data-tablesaw-swipe-media");
29return !matchMedia||("matchMedia" in window&&window.matchMedia(matchMedia).matches);}function fakeBreakpoints(){if(!matchesMedia())return;var containerWidth=$table.parent().width(),persist=[],sum=0,sums=[],visibleNonPersistantCount=$headerCells.length;$headerCells.each(function(index){var $t=$(this),isPersist=$t.is('[data-tablesaw-priority="persist"]');[].push.call(persist,isPersist);sum+=headerWidths[index];[].push.call(sums,sum);if(isPersist||sum>containerWidth)visibleNonPersistantCount--;});var needsNonPersistentColumn=visibleNonPersistantCount===0;$headerCells.each(function(index){if(sums[index]>containerWidth)hideColumn(this);});var firstPersist=true;$headerCells.each(function(index){if(persist[index]){persistColumn(this);if(firstPersist){tblsaw._$getCells(this).css("width",sums[index]+"px");firstPersist=false;}return;}if(sums[index]<=containerWidth||needsNonPersistentColumn){needsNonPersistentColumn=false;showColumn(this);tblsaw.updateColspanCells(classes.hiddenCol,this,true);}});unmaintainWidths();$table.trigger("tablesawcolumns");}function goForward(){navigate(true);}function goBackward(){navigate(false);}function navigate(isNavigateForward){var pair;if(isNavigateForward)pair=getNext();else pair=getPrev();if(canNavigate(pair)){if(isNaN(pair[0]))if(isNavigateForward)pair[0]=0;else pair[0]=$headerCellsNoPersist.length-1;var roomForColumnsWidth=maintainWidths();var hideColumnIndex=pair[0];var showColumnIndex=pair[1];var columnToShow;var columnToHide=$headerCellsNoPersist.get(hideColumnIndex);var wasAtLeastOneColumnShown=false;var atLeastOneColumnIsVisible=false;hideColumn(columnToHide);tblsaw.updateColspanCells(classes.hiddenCol,columnToHide,true);var columnIndex=hideColumnIndex+(isNavigateForward?1:-1);while(columnIndex>=0&&columnIndex<headerWidthsNoPersist.length){roomForColumnsWidth-=headerWidthsNoPersist[columnIndex];var $columnToShow=$headerCellsNoPersist.eq(columnIndex);if($columnToShow.is(".tablesaw-swipe-cellhidden")){if(roomForColumnsWidth>0){columnToShow=$columnToShow.get(0);wasAtLeastOneColumnShown=true;atLeastOneColumnIsVisible=true;showColumn(columnToShow);tblsaw.updateColspanCells(classes.hiddenCol,columnToShow,false);}}else atLeastOneColumnIsVisible=true;if(isNavigateForward)columnIndex++;else columnIndex--;}if(!atLeastOneColumnIsVisible){columnToShow=$headerCellsNoPersist.get(showColumnIndex);showColumn(columnToShow);tblsaw.updateColspanCells(classes.hiddenCol,columnToShow,false);}else{if(!wasAtLeastOneColumnShown&&canNavigate(isNavigateForward?getNext():getPrev()))navigate(isNavigateForward);}$table.trigger("tablesawcolumns");}}$prevBtn.add($nextBtn).on("click",function(e){if(!!$(e.target).closest($nextBtn).length)goForward();else goBackward();e.preventDefault();});function getCoord(event,key){return (event.touches||event.originalEvent.touches)[0][key];}if(!$table.is("["+attrs.disableTouchEvents+"]"))$table.on("touchstart.swipetoggle",function(e){var originX=getCoord(e,"pageX");var originY=getCoord(e,"pageY");var x;var y;var scrollTop=window.pageYOffset;$(window).off(Tablesaw.events.resize,fakeBreakpoints);$(this).on("touchmove.swipetoggle",function(e){x=getCoord(e,"pageX");y=getCoord(e,"pageY");}).on("touchend.swipetoggle",function(){var cfg=tbl.getConfig({swipeHorizontalThreshold:30,swipeVerticalThreshold:30});var verticalThreshold=cfg.swipe?cfg.swipe.verticalThreshold:cfg.swipeVerticalThreshold;var horizontalThreshold=cfg.swipe?cfg.swipe.horizontalThreshold:cfg.swipeHorizontalThreshold;var isPageScrolled=Math.abs(window.pageYOffset-scrollTop)>=verticalThreshold;var isVerticalSwipe=Math.abs(y-originY)>=verticalThreshold;if(!isVerticalSwipe&&!isPageScrolled){if(x-originX<-1*horizontalThreshold)goForward();if(x-originX>horizontalThreshold)goBackward();}window.setTimeout(function(){$(window).on(Tablesaw.events.resize,fakeBreakpoints);},300);$(this).off("touchmove.swipetoggle touchend.swipetoggle");});});$table.on("tablesawcolumns.swipetoggle",function(){var canGoPrev=canNavigate(getPrev());var canGoNext=canNavigate(getNext());$prevBtn[canGoPrev?"removeClass":"addClass"](classes.hideBtn);
29$nextBtn[canGoNext?"removeClass":"addClass"](classes.hideBtn);tblsaw.$toolbar[!canGoPrev&&!canGoNext?"addClass":"removeClass"](classes.allColumnsVisible);}).on("tablesawnext.swipetoggle",function(){goForward();}).on("tablesawprev.swipetoggle",function(){goBackward();}).on(Tablesaw.events.destroy+".swipetoggle",function(){var $t=$(this);$t.removeClass("tablesaw-swipe");tblsaw.$toolbar.find(".tablesaw-advance").remove();$(window).off(Tablesaw.events.resize,fakeBreakpoints);$t.off(".swipetoggle");}).on(Tablesaw.events.refresh,function(){unmaintainWidths();initMinHeaderWidths();fakeBreakpoints();});fakeBreakpoints();$(window).on(Tablesaw.events.resize,fakeBreakpoints);}$(document).on(Tablesaw.events.create,function(e,tablesaw){if(tablesaw.mode==="swipe")createSwipeTable(tablesaw,tablesaw.$table);});})();(function(){var MiniMap={attr:{init:"data-tablesaw-minimap"},show:function(table){var mq=table.getAttribute(MiniMap.attr.init);if(mq==="")return true;else{if(mq&&"matchMedia" in window)return window.matchMedia(mq).matches;}return false;}};function createMiniMap($table){var tblsaw=$table.data("tablesaw");var $btns=$('<div class="tablesaw-advance minimap">');var $dotNav=$('<ul class="tablesaw-advance-dots">').appendTo($btns);var hideDot="tablesaw-advance-dots-hide";var $headerCells=$table.data("tablesaw")._getPrimaryHeaderCells();$headerCells.each(function(){$dotNav.append("<li><i></i></li>");});$btns.appendTo(tblsaw.$toolbar);function showHideNav(){if(!MiniMap.show($table[0])){$btns.css("display","none");return;}$btns.css("display","block");var dots=$dotNav.find("li").removeClass(hideDot);$table.find("thead th").each(function(i){if($(this).css("display")==="none")dots.eq(i).addClass(hideDot);});}showHideNav();$(window).on(Tablesaw.events.resize,showHideNav);$table.on("tablesawcolumns.minimap",function(){showHideNav();}).on(Tablesaw.events.destroy+".minimap",function(){var $t=$(this);tblsaw.$toolbar.find(".tablesaw-advance").remove();$(window).off(Tablesaw.events.resize,showHideNav);$t.off(".minimap");});}$(document).on(Tablesaw.events.create,function(e,tablesaw){if((tablesaw.mode==="swipe"||tablesaw.mode==="columntoggle")&&tablesaw.$table.is("[ "+MiniMap.attr.init+"]"))createMiniMap(tablesaw.$table);});Tablesaw.MiniMap=MiniMap;})();(function(){var S={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-bar-section"},modes:["stack","swipe","columntoggle"],init:function(table){var $table=$(table);var tblsaw=$table.data("tablesaw");var ignoreMode=$table.attr(S.attributes.excludeMode);var $toolbar=tblsaw.$toolbar;var $switcher=$("<div>").addClass(S.classes.main+" "+S.classes.toolbar);var html=['<label><span class="abbreviated">'+Tablesaw.i18n.modeSwitchColumnsAbbreviated+'</span><span class="longform">'+Tablesaw.i18n.modeSwitchColumns+"</span>:"],dataMode=$table.attr("data-tablesaw-mode"),isSelected;[].push.call(html,'<span class="btn tablesaw-btn"><select>');for(var j=0,k=S.modes.length;j<k;j++){if(ignoreMode&&ignoreMode.toLowerCase()===S.modes[j])continue;isSelected=dataMode===S.modes[j];[].push.call(html,"<option"+(isSelected?" selected":"")+' value="'+S.modes[j]+'">'+Tablesaw.i18n.modes[j]+"</option>");}[].push.call(html,"</select></span></label>");$switcher.html(html.join(""));var $otherToolbarItems=$toolbar.find(".tablesaw-advance").eq(0);if($otherToolbarItems.length)$switcher.insertBefore($otherToolbarItems);else $switcher.appendTo($toolbar);$switcher.find(".tablesaw-btn").tablesawbtn();$switcher.find("select").on("change",function(event){return S.onModeChange.call(table,event,$(this).val());});},onModeChange:function(event,val){var $table=$(this);var tblsaw=$table.data("tablesaw");var $switcher=tblsaw.$toolbar.find("."+S.classes.main);$switcher.remove();tblsaw.destroy();$table.attr("data-tablesaw-mode",val);$table.tablesaw();}};$(document).on(Tablesaw.events.create,function(e,Tablesaw){if(Tablesaw.$table.is(S.selectors.init))S.init(Tablesaw.table);});})();(function(){var pluginName="tablesawCheckAll";function CheckAll(tablesaw){this.tablesaw=tablesaw;this.$table=tablesaw.$table;this.attr="data-tablesaw-checkall";this.checkAllSelector="["+this.attr+"]";this.forceCheckedSelector="["+this.attr+"-checked]";this.forceUncheckedSelector="["+this.attr+"-unchecked]";this.checkboxSelector='input[type="checkbox"]';this.$triggers=null;this.$checkboxes=null;if(this.$table.data(pluginName))return;this.$table.data(pluginName,this);this.init();}CheckAll.prototype._filterCells=function($checkboxes){return $checkboxes.filter(function(){return !$(this).closest("tr").is("[data-tablesaw-subrow],[data-tablesaw-ignorerow]");}).find(this.checkboxSelector).not(this.checkAllSelector);};CheckAll.prototype.getCheckboxesForButton=function(button){return this._filterCells($($(button).attr(this.attr)));};CheckAll.prototype.getCheckboxesForCheckbox=function(checkbox){return this._filterCells($($(checkbox).closest("th")[0].cells));};CheckAll.prototype.init=function(){var self=this;this.$table.find(this.checkAllSelector).each(function(){var $trigger=$(this);if($trigger.is(self.checkboxSelector))self.addCheckboxEvents(this);else self.addButtonEvents(this);});};CheckAll.prototype.addButtonEvents=function(trigger){var self=this;$(trigger).on("click",function(event){event.preventDefault();var $checkboxes=self.getCheckboxesForButton(this);var allChecked=true;$checkboxes.each(function(){if(!this.checked)allChecked=false;});var setChecked;if($(this).is(self.forceCheckedSelector))setChecked=true;else if($(this).is(self.forceUncheckedSelector))setChecked=false;else setChecked=allChecked?false:true;$checkboxes.each(function(){this.checked=setChecked;$(this).trigger("change."+pluginName);});});};CheckAll.prototype.addCheckboxEvents=function(trigger){var self=this;$(trigger).on("change",function(){var setChecked=this.checked;self.getCheckboxesForCheckbox(this).each(function(){this.checked=setChecked;});});var $checkboxes=self.getCheckboxesForCheckbox(trigger);$checkboxes.on("change."+pluginName,function(){var checkedCount=0;$checkboxes.each(function(){if(this.checked)checkedCount++;});var allSelected=checkedCount===$checkboxes.length;trigger.checked=allSelected;trigger.indeterminate=checkedCount!==0&&!allSelected;});};$(document).on(Tablesaw.events.create,function(e,tablesaw){new CheckAll(tablesaw);});Tablesaw.CheckAll=CheckAll;})();return Tablesaw;}));; 30(function(win){"use strict";
30if(!("Tablesaw" in win))throw new Error("Tablesaw library not found.");if(!("init" in Tablesaw))throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");Tablesaw.init();})(typeof window!=="undefined"?window:this);; 31(function(){const send=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){this.addEventListener('load',function(){Tablesaw.init();});return send.apply(this,arguments);};})();; 32(function($,Drupal){'use strict';Drupal.responsive_tables_filter=Drupal.responsive_tables_filter||{};Drupal.behaviors.responsiveTablesAccessibility={attach:function(context){if(window.Tablesaw!=='undefined')if(once('tablesaw-create','html').length)$(window).on(Tablesaw.events.create,function(event,tablesaw){Drupal.responsive_tables_filter.fixCellLabels(context);});}};Drupal.responsive_tables_filter.fixCellLabels=function(context){var $labels=$('b.tablesaw-cell-label');$labels.each(Drupal.responsive_tables_filter.makeElementAccessible);};Drupal.responsive_tables_filter.makeElementAccessible=function(){var replacement=document.createElement('strong');replacement.innerHTML=$(this).html();replacement.setAttribute('class',$(this).attr('class'));replacement.setAttribute('aria-hidden',true);$(this).replaceWith(replacement);};})(jQuery,Drupal);; 33; 34let menuTimeout=null;(function($){function resetMenu(){$('.menu-section.open').removeClass('open');}function menuMobileState(){return $('#main-menu-toggle').is(':visible');}$(document).ready(function(){$('#main-menu-toggle').on('click',function(){$('body').toggleClass('menu-open');});$('.main__level-0-content, .super-nav__level-0-content').on('focus',function(){if(!menuMobileState()){clearTimeout(menuTimeout);$(this).parent().siblings().removeClass('open');$(this).parent().addClass('open');}});$('.main__level-0, .super-nav__level-0').on('mouseleave blur',function(){if(menuTimeout)clearTimeout(menuTimeout);if(!menuMobileState())menuTimeout=setTimeout(function(){resetMenu();},1000);});$('.main__level-0').on('mouseenter',function(){if(!menuMobileState()){clearTimeout(menuTimeout);$('.menu-section.open').removeClass('open');$(this).addClass('open');if(!$(this).hasClass('main__item--dropdown'))resetMenu();}});$('.main-navigation__submenu-toggle').on('click',function(){$(this).closest('.main__item--dropdown').toggleClass('open');});$('.super-nav__submenu-toggle').on('click',function(){$(this).closest('.super-nav__item--dropdown').toggleClass('open');});$('.super-nav__level-0').on('mouseenter',function(){if(!menuMobileState()){clearTimeout(menuTimeout);$('.menu-section.open').removeClass('open');$(this).addClass('open');if(!$(this).hasClass('super-nav__item--dropdown'))resetMenu();}});});})(jQuery);function slugify(string){const a='à áäâãåÄÃ¦Ä Ã§ÄÄÄÄèéÄÄëêÄǵḧìÃïîįÅḿǹÅÅñòóöôÅøá¹ÅÅÃÅÅ¡ÈÅ¥ÈùúüûÇůűūųáºáºÃ¿Ã½ÅºÅ¾Å¼';const b='aaaaaaaaacccddeeeeeeeghiiiiilmnnnnooooooprrssssttuuuuuuuuuwxyyzzz';const p=new RegExp(a.split('').join('|'),'g');return string.toString().toLowerCase().replace(/[_,:;+]/g,'').replace(/\s+/g,'-').replace(p,function(c){b.charAt(a.indexOf(c));}).replace(/&/g,'-and-').replace(/[^\w\-]+/g,'').replace(/\-\-+/g,'-').replace(/^-+/,'').replace(/-+$/,'');};
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.