PageSourceSearch

https://www.pdx.edu/admissions/sites/admissions.web.wdt.pdx.edu/fi…FEo2XVoDmL9Gor67vOrTuZoSFRVemyMfGU_8DRsidnw

js pdx.edu collected 2026-10-01 08:35:29 UTC 233,006 bytes, 17 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e();}(this,(function(){"use strict";const t=(t)=>{do t+=Math.floor(1e6*Math.random());while(document.getElementById(t));return t;},e=(t)=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#"+i.split("#")[1]),e=i&&"#"!==i?i.trim():null;}return e;},i=(t)=>{const i=e(t);return i&&document.querySelector(i)?i:null;},n=(t)=>{const i=e(t);return i?document.querySelector(i):null;},s=(t)=>{if(!t)return 0;let {transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0;},o=(t)=>{t.dispatchEvent(new Event("transitionend"));},r=(t)=>(t[0]||t).nodeType,a=(t,e)=>{let i=!1;const n=e+5;t.addEventListener("transitionend",(function e(){i=!0,t.removeEventListener("transitionend",e);})),setTimeout(()=>{i||o(t);},n);},l=(t,e,i)=>
2{Object.keys(i).forEach((n)=>{const s=i[n],o=e[n],a=o&&r(o)?"element":null==(l=o)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`);});},c=(t)=>{if(!t)return !1;if(t.style&&t.parentNode&&t.parentNode.style){const e=getComputedStyle(t),i=getComputedStyle(t.parentNode);return "none"!==e.display&&"none"!==i.display&&"hidden"!==e.visibility;}return !1;},d=(t)=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),h=(t)=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null;}return t instanceof ShadowRoot?t:t.parentNode?h(t.parentNode):null;},u=()=>{},f=(t)=>t.offsetHeight,p=()=>{const {jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;},g=()=>"rtl"===document.documentElement.dir,m=(t,e)=>{var i;i=()=>{const i=p();if(i){const n=i.fn[t];i.fn[t]=e.jQueryInterface,i.fn[t].Constructor=e,i.fn[t].noConflict=()=>(i.fn[t]=n,e.jQueryInterface);}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i();},_=(t)=>{"function"==typeof t&&t();},b=new Map();var v={set(t,e,i){b.has(t)||b.set(t,new Map());const n=b.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);},get:(t,e)=>b.has(t)&&b.get(t).get(e)||null,remove(t,e){if(!b.has(t))return;const i=b.get(t);i.delete(e),0===i.size&&b.delete(t);}};const y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,T={};let A=1;
2const L={mouseenter:"mouseover",mouseleave:"mouseout"},O=/^(mouseenter|mouseleave)/i,k=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D(t,e){return e&&`${e}::${A++}`||t.uidEvent||A++;}function x(t){const e=D(t);return t.uidEvent=e,T[e]=T[e]||{},T[e];}function C(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o;}return null;}function S(t,e,i){const n="string"==typeof e,s=n?i:e;let o=P(t);return k.has(o)||(o=t),[n,s,o];}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),O.test(e)){const t=(t)=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e);};n?n=t(n):i=t(i);}const [o,r,a]=S(e,i,n),l=x(t),c=l[a]||(l[a]={}),d=C(c,r,o?i:null);if(d)return void (d.oneOff=d.oneOff&&s);const h=D(r,e.replace(y,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let {target:r}=s;r&&r!==this;r=r.parentNode){for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&I.off(t,s.type,e,i),i.apply(r,[s]);}return null;};}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&I.off(t,n.type,e),e.apply(t,[n]);};}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=h,c[h]=u,t.addEventListener(a,u,o);}function j(t,e,i,n,s){const o=C(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent]);}function P(t){return t=t.replace(w,""),L[t]||t;}const I={on(t,e,i,n){N(t,e,i,n,!1);},one(t,e,i,n){N(t,e,i,n,!0);},off(t,e,i,n){if("string"!=typeof e||!t)return;const [s,o,r]=S(e,i,n),a=r!==e,l=x(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void j(t,l,r,o,s?i:null);}c&&Object.keys(l).forEach((i)=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach((o)=>{if(o.includes(n)){const n=s[o];j(t,e,i,n.originalHandler,n.delegationSelector);}});}(t,l,i,e.slice(1));});const d=l[r]||{};Object.keys(d).forEach((i)=>{const n=i.replace(E,"");if(!a||e.includes(n)){const e=d[i];j(t,l,r,e.originalHandler,e.delegationSelector);}});},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=p(),s=P(e),o=e!==s,r=k.has(s);let a,l=!0,c=!0,d=!1,h=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(h=document.createEvent("HTMLEvents"),h.initEvent(s,l,!0)):h=new CustomEvent(e,{bubbles:l,cancelable:!0}
2),void 0!==i&&Object.keys(i).forEach((t)=>{Object.defineProperty(h,t,{get:()=>i[t]});}),d&&h.preventDefault(),c&&t.dispatchEvent(h),h.defaultPrevented&&void 0!==a&&a.preventDefault(),h;}};class M{constructor(t){(t="string"==typeof t?document.querySelector(t):t)&&(this._element=t,v.set(this._element,this.constructor.DATA_KEY,this));}dispose(){v.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,"."+this.constructor.DATA_KEY),this._element=null;}static getInstance(t){return v.get(t,this.DATA_KEY);}static get VERSION(){return "5.0.0";}}class H extends M{static get DATA_KEY(){return "bs.alert";}close(t){const e=t?this._getRootElement(t):this._element,i=this._triggerCloseEvent(e);null===i||i.defaultPrevented||this._removeElement(e);}_getRootElement(t){return n(t)||t.closest(".alert");}_triggerCloseEvent(t){return I.trigger(t,"close.bs.alert");}_removeElement(t){if(t.classList.remove("show"),!t.classList.contains("fade"))return void this._destroyElement(t);const e=s(t);I.one(t,"transitionend",()=>this._destroyElement(t)),a(t,e);}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),I.trigger(t,"closed.bs.alert");}static jQueryInterface(t){return this.each((function(){let e=v.get(this,"bs.alert");e||(e=new H(this)),"close"===t&&e[t](this);}));}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this);};}}I.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',H.handleDismiss(new H())),m("alert",H);class R extends M{static get DATA_KEY(){return "bs.button";}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"));}static jQueryInterface(t){return this.each((function(){let e=v.get(this,"bs.button");e||(e=new R(this)),"toggle"===t&&e[t]();}));}}function B(t){return "true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t);}function W(t){return t.replace(/[A-Z]/g,(t)=>"-"+t.toLowerCase());}I.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',(t)=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');let i=v.get(e,"bs.button");i||(i=new R(e)),i.toggle();}),m("button",R);const z={setDataAttribute(t,e,i){t.setAttribute("data-bs-"+W(e),i);},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+W(e));},getDataAttributes(t){if(!t)return {};const e={};return Object.keys(t.dataset).filter((t)=>t.startsWith("bs")).forEach((i)=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=B(t.dataset[i]);}),e;},getDataAttribute:(t,e)=>B(t.getAttribute("data-bs-"+W(e))),offset(t){const e=t.getBoundingClientRect();return {top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft};},position:(t)=>({top:t.offsetTop,left:t.offsetLeft})},U={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t)=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i;},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return [i];i=i.previousElementSibling;}return [];},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return [i];i=i.nextElementSibling;}return [];}},$={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},K="next",Y="prev",q="left",V="right";class X extends M{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart" in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners();}static get Default(){return $;}static get DATA_KEY(){return "bs.carousel";}next(){this._isSliding||this._slide(K);}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next();}prev(){this._isSliding||this._slide(Y);}pause(t){t||(this._isPaused=!0),U.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(o(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null;}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval));}to(t){this._activeElement=U.findOne(".active.carousel-item",this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void I.one(this._element,"slid.bs.carousel",()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const i=t>e?K:Y;this._slide(i,this._items[t]);}dispose(){this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose();}_getConfig(t){return t={...$,...t},l("carousel",t,F),t;}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?V:q);}_addEventListeners(){this._config.keyboard&&I.on(this._element,"keydown.bs.carousel",(t)=>
2this._keydown(t)),"hover"===this._config.pause&&(I.on(this._element,"mouseenter.bs.carousel",(t)=>this.pause(t)),I.on(this._element,"mouseleave.bs.carousel",(t)=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners();}_addTouchEventListeners(){const t=(t)=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX;},e=(t)=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX;},i=(t)=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t)=>this.cycle(t),500+this._config.interval));};U.find(".carousel-item img",this._element).forEach((t)=>{I.on(t,"dragstart.bs.carousel",(t)=>t.preventDefault());}),this._pointerEvent?(I.on(this._element,"pointerdown.bs.carousel",(e)=>t(e)),I.on(this._element,"pointerup.bs.carousel",(t)=>i(t)),this._element.classList.add("pointer-event")):(I.on(this._element,"touchstart.bs.carousel",(e)=>t(e)),I.on(this._element,"touchmove.bs.carousel",(t)=>e(t)),I.on(this._element,"touchend.bs.carousel",(t)=>i(t)));}_keydown(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),this._slide(V)):"ArrowRight"===t.key&&(t.preventDefault(),this._slide(q)));}_getItemIndex(t){return this._items=t&&t.parentNode?U.find(".carousel-item",t.parentNode):[],this._items.indexOf(t);}_getItemByOrder(t,e){const i=t===K,n=t===Y,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(n?-1:1))%this._items.length;return -1===r?this._items[this._items.length-1]:this._items[r];}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(U.findOne(".active.carousel-item",this._element));return I.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i});}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=U.findOne(".active",this._indicatorsElement);e.classList.remove("active"),e.removeAttribute("aria-current");const i=U.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add("active"),i[e].setAttribute("aria-current","true");break;}}}_updateInterval(){const t=this._activeElement||U.findOne(".active.carousel-item",this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval;}_slide(t,e){const i=this._directionToOrder(t),n=U.findOne(".active.carousel-item",this._element),o=this._getItemIndex(n),r=e||this._getItemByOrder(i,n),l=this._getItemIndex(r),c=Boolean(this._interval),d=i===K,h=d?"carousel-item-start":"carousel-item-end",u=d?"carousel-item-next":"carousel-item-prev",p=this._orderToDirection(i);if(r&&r.classList.contains("active"))this._isSliding=!1;else{if(!this._triggerSlideEvent(r,p).defaultPrevented&&n&&r){if(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r,this._element.classList.contains("slide")){r.classList.add(u),f(r),n.classList.add(h),r.classList.add(h);const t=s(n);I.one(n,"transitionend",()=>{r.classList.remove(h,u),r.classList.add("active"),n.classList.remove("active",u,h),this._isSliding=!1,setTimeout(()=>{I.trigger(this._element,"slid.bs.carousel",{relatedTarget:r,direction:p,from:o,to:l});},0);}),a(n,t);}else n.classList.remove("active"),r.classList.add("active"),this._isSliding=!1,I.trigger(this._element,"slid.bs.carousel",{relatedTarget:r,direction:p,from:o,to:l});c&&this.cycle();}}}_directionToOrder(t){return [V,q].includes(t)?g()?t===q?Y:K:t===q?K:Y:t;}_orderToDirection(t){return [K,Y].includes(t)?g()?t===Y?q:V:t===Y?V:q:t;}static carouselInterface(t,e){let i=v.get(t,"bs.carousel"),n={...$,...z.getDataAttributes(t)};"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if(i||(i=new X(t,n)),"number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method n
2amed "${s}"`);i[s]();}else n.interval&&n.ride&&(i.pause(),i.cycle());}static jQueryInterface(t){return this.each((function(){X.carouselInterface(this,t);}));}static dataApiClickHandler(t){const e=n(this);if(!e||!e.classList.contains("carousel"))return;const i={...z.getDataAttributes(e),...z.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),X.carouselInterface(e,i),s&&v.get(e,"bs.carousel").to(s),t.preventDefault();}}I.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",X.dataApiClickHandler),I.on(window,"load.bs.carousel.data-api",()=>{const t=U.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)X.carouselInterface(t[e],v.get(t[e],"bs.carousel"));}),m("carousel",X);const Q={toggle:!0,parent:""},G={toggle:"boolean",parent:"(string|element)"};class Z extends M{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=U.find(`[data-bs-toggle="collapse"][href="#${this._element.id}"],[data-bs-toggle="collapse"][data-bs-target="#${this._element.id}"]`);const n=U.find('[data-bs-toggle="collapse"]');for(let t=0,e=n.length;t<e;t++){const e=n[t],s=i(e),o=U.find(s).filter((t)=>t===this._element);null!==s&&o.length&&(this._selector=s,this._triggerArray.push(e));}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle();}static get Default(){return Q;}static get DATA_KEY(){return "bs.collapse";}toggle(){this._element.classList.contains("show")?this.hide():this.show();}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let t,e;this._parent&&(t=U.find(".show, .collapsing",this._parent).filter((t)=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains("collapse")),0===t.length&&(t=null));const i=U.findOne(this._selector);if(t){const n=t.find((t)=>i!==t);if(e=n?v.get(n,"bs.collapse"):null,e&&e._isTransitioning)return;}if(I.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t&&t.forEach((t)=>{i!==t&&Z.collapseInterface(t,"hide"),e||v.set(t,"bs.collapse",null);});const n=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[n]=0,this._triggerArray.length&&this._triggerArray.forEach((t)=>{t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0);}),this.setTransitioning(!0);const o="scroll"+(n[0].toUpperCase()+n.slice(1)),r=s(this._element);I.one(this._element,"transitionend",()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[n]="",this.setTransitioning(!1),I.trigger(this._element,"shown.bs.collapse");}),a(this._element,r),this._element.style[n]=this._element[o]+"px";}hide(){if(this._isTransitioning||!this._element.classList.contains("show"))return;if(I.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",f(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const e=this._triggerArray.length;if(e>0){for(let t=0;t<e;t++){const e=this._triggerArray[t],i=n(e);i&&!i.classList.contains("show")&&(e.classList.add("collapsed"),e.setAttribute("aria-expanded",!1));}}this.setTransitioning(!0),this._element.style[t]="";const i=s(this._element);I.one(this._element,"transitionend",()=>{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),I.trigger(this._element,"hidden.bs.collapse");}),a(this._element,i);}setTransitioning(t){this._isTransitioning=t;}dispose(){super.dispose(),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null;}_getConfig(t){return (t={...Q,...t}).toggle=Boolean(t.toggle),l("collapse",t,G),t;}_getDimension(){return this._element.classList.contains("width")?"width":"height";}_getParent(){let {parent:t}=this._config;r(t)?void 0===t.jquery&&void 0===t[0]||(t=t[0]):t=U.findOne(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return U.find(e,t).forEach((t)=>{const e=n(t);this._addAriaAndCollapsedClass(e,[t]);}),t;}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const i=t.classList.contains("show");e.forEach((t)=>{i?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",i);});}static collapseInterface(t,e){let i=v.get(t,"bs.collapse");const n={...Q,...z.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!i&&n.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(n.toggle=!1),i||(i=new Z(t,n)),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method n
2amed "${e}"`);i[e]();}}static jQueryInterface(t){return this.each((function(){Z.collapseInterface(this,t);}));}}I.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=z.getDataAttributes(this),n=i(this);U.find(n).forEach((t)=>{const i=v.get(t,"bs.collapse");let n;i?(null===i._parent&&"string"==typeof e.parent&&(i._config.parent=e.parent,i._parent=i._getParent()),n="toggle"):n=e,Z.collapseInterface(t,n);});})),m("collapse",Z);var J="top",tt="bottom",et="right",it="left",nt=[J,tt,et,it],st=nt.reduce((function(t,e){return t.concat([e+"-start",e+"-end"]);}),[]),ot=[].concat(nt,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"]);}),[]),rt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function at(t){return t?(t.nodeName||"").toLowerCase():null;}function lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window;}return t;}function ct(t){return t instanceof lt(t).Element||t instanceof Element;}function dt(t){return t instanceof lt(t).HTMLElement||t instanceof HTMLElement;}function ht(t){return "undefined"!=typeof ShadowRoot&&(t instanceof lt(t).ShadowRoot||t instanceof ShadowRoot);}var ut={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];dt(s)&&at(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e);})));}));},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t;}),{});dt(n)&&at(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t);})));}));};},requires:["computeStyles"]};function ft(t){return t.split("-")[0];}function pt(t){var e=t.getBoundingClientRect();return {width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top};}function gt(t){var e=pt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n};}function mt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return !0;if(i&&ht(i)){var n=e;do{if(n&&t.isSameNode(n))return !0;n=n.parentNode||n.host;}while(n);}return !1;}function _t(t){return lt(t).getComputedStyle(t);}function bt(t){return ["table","td","th"].indexOf(at(t))>=0;}function vt(t){return ((ct(t)?t.ownerDocument:t.document)||window.document).documentElement;}function yt(t){return "html"===at(t)?t:t.assignedSlot||t.parentNode||(ht(t)?t.host:null)||vt(t);}function wt(t){return dt(t)&&"fixed"!==_t(t).position?t.offsetParent:null;}function Et(t){for(var e=lt(t),i=wt(t);i&&bt(i)&&"static"===_t(i).position;)i=wt(i);return i&&("html"===at(i)||"body"===at(i)&&"static"===_t(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&dt(t)&&"fixed"===_t(t).position)return null;for(var i=yt(t);dt(i)&&["html","body"].indexOf(at(i))<0;){var n=_t(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode;}return null;}(t)||e;}function Tt(t){return ["top","bottom"].indexOf(t)>=0?"x":"y";}var At=Math.max,Lt=Math.min,Ot=Math.round;function kt(t,e,i){return At(t,Lt(e,i));}function Dt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t);}function xt(t,e){return e.reduce((function(e,i){return e[i]=t,e;}),{});}var Ct={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=ft(i.placement),l=Tt(a),c=[it,et].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(t,e){return Dt("number"!=typeof (t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:xt(t,nt));}(s.padding,i),h=gt(o),u="y"===l?J:it,f="y"===l?tt:et,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=Et(
2o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=d[u],y=_-h[c]-d[f],w=_/2-h[c]/2+b,E=kt(v,w,y),T=l;i.modifiersData[n]=((e={})[T]=E,e.centerOffset=E-w,e);}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&mt(e.elements.popper,n)&&(e.elements.arrow=n);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},St={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nt(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.offsets,r=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,d=!0===c?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return {x:Ot(Ot(e*n)/n)||0,y:Ot(Ot(i*n)/n)||0};}(o):"function"==typeof c?c(o):o,h=d.x,u=void 0===h?0:h,f=d.y,p=void 0===f?0:f,g=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),_=it,b=J,v=window;if(l){var y=Et(i),w="clientHeight",E="clientWidth";y===lt(i)&&"static"!==_t(y=vt(i)).position&&(w="scrollHeight",E="scrollWidth"),y=y,s===J&&(b=tt,p-=y[w]-n.height,p*=a?1:-1),s===it&&(_=et,u-=y[E]-n.width,u*=a?1:-1);}var T,A=Object.assign({position:r},l&&St);return a?Object.assign({},A,((T={})[b]=m?"0":"",T[_]=g?"0":"",T.transform=(v.devicePixelRatio||1)<2?"translate("+u+"px, "+p+"px)":"translate3d("+u+"px, "+p+"px, 0)",T)):Object.assign({},A,((e={})[b]=m?p+"px":"",e[_]=g?u+"px":"",e.transform="",e));}var jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:ft(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Nt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Nt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});},data:{}},Pt={passive:!0},It={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=lt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Pt);})),a&&l.addEventListener("resize",i.update,Pt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Pt);})),a&&l.removeEventListener("resize",i.update,Pt);};},data:{}},Mt={left:"right",right:"left",bottom:"top",top:"bottom"};function Ht(t){return t.replace(/left|right|bottom|top/g,(function(t){return Mt[t];}));}var Rt={start:"end",end:"start"};function Bt(t){return t.replace(/start|end/g,(function(t){return Rt[t];}));}function Wt(t){var e=lt(t);return {scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset};}function zt(t){return pt(vt(t)).left+Wt(t).scrollLeft;}function Ut(t){var e=_t(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return /auto|scroll|overlay|hidden/.test(i+s+n);}function $t(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return ["html","body","#document"].indexOf(at(e))>=0?e.ownerDocument.body:dt(e)&&Ut(e)?e:t(yt(e));}(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=lt(n),r=s?[o].concat(o.visualViewport||[],Ut(n)?n:[]):n,a=e.concat(r);return s?a:a.concat($t(yt(r)));}function Ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height});}function Kt(t,e){return "viewport"===e?Ft(function(t){var e=lt(t),i=vt(t),n=e.visualVie
2wport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+zt(t),y:a};}(t)):dt(e)?function(t){var e=pt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e;}(e):Ft(function(t){var e,i=vt(t),n=Wt(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=At(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=At(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+zt(t),l=-n.scrollTop;return "rtl"===_t(s||i).direction&&(a+=At(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l};}(vt(t)));}function Yt(t){return t.split("-")[1];}function qt(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?ft(s):null,r=s?Yt(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case J:e={x:a,y:i.y-n.height};break;case tt:e={x:a,y:i.y+i.height};break;case et:e={x:i.x+i.width,y:l};break;case it:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y};}var c=o?Tt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case "start":e[c]=e[c]-(i[d]/2-n[d]/2);break;case "end":e[c]=e[c]+(i[d]/2-n[d]/2);}}return e;}function Vt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?"clippingParents":o,a=i.rootBoundary,l=void 0===a?"viewport":a,c=i.elementContext,d=void 0===c?"popper":c,h=i.altBoundary,u=void 0!==h&&h,f=i.padding,p=void 0===f?0:f,g=Dt("number"!=typeof p?p:xt(p,nt)),m="popper"===d?"reference":"popper",_=t.elements.reference,b=t.rects.popper,v=t.elements[u?m:d],y=function(t,e,i){var n="clippingParents"===e?function(t){var e=$t(yt(t)),i=["absolute","fixed"].indexOf(_t(t).position)>=0&&dt(t)?Et(t):t;return ct(i)?e.filter((function(t){return ct(t)&&mt(t,i)&&"body"!==at(t);})):[];}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Kt(t,i);return e.top=At(n.top,e.top),e.right=Lt(n.right,e.right),e.bottom=Lt(n.bottom,e.bottom),e.left=At(n.left,e.left),e;}),Kt(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r;}(ct(v)?v:v.contextElement||vt(t.elements.popper),r,l),w=pt(_),E=qt({reference:w,element:b,strategy:"absolute",placement:s}),T=Ft(Object.assign({},b,E)),A="popper"===d?T:w,L={top:y.top-A.top+g.top,bottom:A.bottom-y.bottom+g.bottom,left:y.left-A.left+g.left,right:A.right-y.right+g.right},O=t.modifiersData.offset;if("popper"===d&&O){var k=O[s];Object.keys(L).forEach((function(t){var e=[et,tt].indexOf(t)>=0?1:-1,i=[J,tt].indexOf(t)>=0?"y":"x";L[t]+=k[i]*e;}));}return L;}function Xt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ot:l,d=Yt(n),h=d?a?st:st.filter((function(t){return Yt(t)===d;})):nt,u=h.filter((function(t){return c.indexOf(t)>=0;}));0===u.length&&(u=h);var f=u.reduce((function(e,i){return e[i]=Vt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ft(i)],e;}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e];}));}var Qt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,_=ft(m),b=l||(_!==m&&p?function(t){if("auto"===ft(t))return [];var e=Ht(t);return [Bt(t),e,Bt(e)];}(m):[Ht(m)]),v=[m].concat(b).reduce((function(t,i){return t.concat("auto"===ft(i)?Xt(e,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):i);}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map(),T=!0,A=v[0],L=0;L<v.length;L++){var O=v[L],k=ft(O),D="start"===Yt(O),x=[J,tt].indexOf(k)>=0,C=x?"width":"height",S=Vt(e,{placement:O,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),N=x?D?et:it:D?tt:J;y[C]>w[C]&&(N=Ht(N));var j=Ht(N),P=[];if(o&&P.push(S[k]<=0),a&&P.push(S[N]<=0,S[j]<=0),P.every((function(t){return t;}))){A=O,T=!1;break;}E.set(O,P);}if(T)for(var I=function(t){var e=v.find((function(e){var i=E.get(e);if(i)return i.slice(0,t).every((function(t){return t;}));}));if(e)return A=e,"break";},M=p?3:1;M>0&&"break"!==I(M);M--);e.placement!==A&&(e.modifiersData[n]._skip=!0,e.placement=A,e.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};function Gt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x};}function Zt(t){return [J,et,tt,it].some((function(e){return t[e]>=0;}));}var Jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Vt(e,{elementContext:"reference"}),a=Vt(e,{altBoundary:!0}),l=Gt(r,n),c=Gt(a,s,o),d=Zt(l),h=Zt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h});}},te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=ot.reduce((function(t,i){return t[i]=function(t,e,
2i){var n=ft(t),s=[it,J].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[it,et].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a};}(i,e.rects,o),t;}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r;}},ee={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement});},data:{}},ie={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,g=void 0===p?0:p,m=Vt(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),_=ft(e.placement),b=Yt(e.placement),v=!b,y=Tt(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,T=e.rects.reference,A=e.rects.popper,L="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O={x:0,y:0};if(E){if(o||a){var k="y"===y?J:it,D="y"===y?tt:et,x="y"===y?"height":"width",C=E[y],S=E[y]+m[k],N=E[y]-m[D],j=f?-A[x]/2:0,P="start"===b?T[x]:A[x],I="start"===b?-A[x]:-T[x],M=e.elements.arrow,H=f&&M?gt(M):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=R[k],W=R[D],z=kt(0,T[x],H[x]),U=v?T[x]/2-j-z-B-L:P-z-B-L,$=v?-T[x]/2+j+z+W+L:I+z+W+L,F=e.elements.arrow&&Et(e.elements.arrow),K=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,q=E[y]+U-Y-K,V=E[y]+$-Y;if(o){var X=kt(f?Lt(S,q):S,C,f?At(N,V):N);E[y]=X,O[y]=X-C;}if(a){var Q="x"===y?J:it,G="x"===y?tt:et,Z=E[w],nt=Z+m[Q],st=Z-m[G],ot=kt(f?Lt(nt,q):nt,Z,f?At(st,V):st);E[w]=ot,O[w]=ot-Z;}}e.modifiersData[n]=O;}},requiresIfExists:["offset"]};function ne(t,e,i){void 0===i&&(i=!1);var n,s,o=vt(e),r=pt(t),a=dt(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return (a||!a&&!i)&&(("body"!==at(e)||Ut(o))&&(l=(n=e)!==lt(n)&&dt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Wt(n)),dt(e)?((c=pt(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=zt(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height};}var se={placement:"bottom",modifiers:[],strategy:"absolute"};function oe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return !e.some((function(t){return !(t&&"function"==typeof t.getBoundingClientRect);}));}function re(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?se:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},se,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){h(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:ct(t)?$t(t):t.contextElement?$t(t.contextElement):[],popper:$t(e)};var s,r,c=function(t){var e=function(t){var e=new Map(),i=new Set(),n=[];return t.forEach((function(t){e.set(t.name,t);})),t.forEach((function(t){i.has(t.name)||function t(s){i.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var s=e.get(n);s&&t(s);}})),n.push(s);}(t);})),n;}(t);return rt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i;})));}),[]);}((s=[].concat(n,a.options.modifiers),r=s.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t;}),{}),Object.keys(r).map((function(t){return r[t];}))));return a.orderedModifiers=c.filter((function(t){return t.enabled;})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:d,options:n});l.push(o||function(){});}})),d.update();},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(oe(e,i)){a.rects={reference:ne(e,Et(i),"fixed"===a.options.strategy),popper:gt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEac
2h((function(t){return a.modifiersData[t.name]=Object.assign({},t.data);}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:d})||a);}else a.reset=!1,n=-1;}}},update:(s=function(){return new Promise((function(t){d.forceUpdate(),t(a);}));},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s());}));}))),r;}),destroy:function(){h(),c=!0;}};if(!oe(t,e))return d;function h(){l.forEach((function(t){return t();})),l=[];}return d.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t);})),d;};}var ae=re(),le=re({defaultModifiers:[It,ee,jt,ut]}),ce=re({defaultModifiers:[It,ee,jt,ut,te,Qt,ie,Ct,Jt]}),de=Object.freeze({__proto__:null,popperGenerator:re,detectOverflow:Vt,createPopperBase:ae,createPopper:ce,createPopperLite:le,top:J,bottom:tt,right:et,left:it,auto:"auto",basePlacements:nt,start:"start",end:"end",clippingParents:"clippingParents",viewport:"viewport",popper:"popper",reference:"reference",variationPlacements:st,placements:ot,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:rt,applyStyles:ut,arrow:Ct,computeStyles:jt,eventListeners:It,flip:Qt,hide:Jt,offset:te,popperOffsets:ee,preventOverflow:ie});const he=new RegExp("ArrowUp|ArrowDown|Escape"),ue=g()?"top-end":"top-start",fe=g()?"top-start":"top-end",pe=g()?"bottom-end":"bottom-start",ge=g()?"bottom-start":"bottom-end",me=g()?"left-start":"right-start",_e=g()?"right-start":"left-start",be={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ve={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class ye extends M{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners();}static get Default(){return be;}static get DefaultType(){return ve;}static get DATA_KEY(){return "bs.dropdown";}toggle(){d(this._element)||(this._element.classList.contains("show")?this.hide():this.show());}show(){if(d(this._element)||this._menu.classList.contains("show"))return;const t=ye.getParentFromElement(this._element),e={relatedTarget:this._element};if(!I.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._inNavbar)z.setDataAttribute(this._menu,"popper","none");else{if(void 0===de)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:r(this._config.reference)?(e=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((t)=>"applyStyles"===t.name&&!1===t.enabled);this._popper=ce(e,this._menu,i),n&&z.setDataAttribute(this._menu,"popper","static");}
2"ontouchstart" in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t)=>I.on(t,"mouseover",u)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),I.trigger(this._element,"shown.bs.dropdown",e);}}hide(){if(d(this._element)||!this._menu.classList.contains("show"))return;const t={relatedTarget:this._element};this._completeHide(t);}dispose(){this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose();}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update();}_addEventListeners(){I.on(this._element,"click.bs.dropdown",(t)=>{t.preventDefault(),this.toggle();});}_completeHide(t){I.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart" in document.documentElement&&[].concat(...document.body.children).forEach((t)=>I.off(t,"mouseover",u)),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),z.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,"hidden.bs.dropdown",t));}_getConfig(t){if(t={...this.constructor.Default,...z.getDataAttributes(this._element),...t},l("dropdown",t,this.constructor.DefaultType),"object"==typeof t.reference&&!r(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t;}_getMenuElement(){return U.next(this._element,".dropdown-menu")[0];}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return me;if(t.classList.contains("dropstart"))return _e;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?fe:ue:e?ge:pe;}
2_detectNavbar(){return null!==this._element.closest(".navbar");}_getOffset(){const {offset:t}=this._config;return "string"==typeof t?t.split(",").map((t)=>Number.parseInt(t,10)):"function"==typeof t?(e)=>t(e,this._element):t;}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return "static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig};}_selectMenuItem(t){const e=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(c);if(!e.length)return;let i=e.indexOf(t.target);"ArrowUp"===t.key&&i>0&&i--,"ArrowDown"===t.key&&i<e.length-1&&i++,i=-1===i?0:i,e[i].focus();}static dropdownInterface(t,e){let i=v.get(t,"bs.dropdown");if(i||(i=new ye(t,"object"==typeof e?e:null)),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]();}}static jQueryInterface(t){return this.each((function(){ye.dropdownInterface(this,t);}));}static clearMenus(t){if(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;if(/input|select|option|textarea|form/i.test(t.target.tagName))return;}const e=U.find('[data-bs-toggle="dropdown"]');for(let i=0,n=e.length;i<n;i++){const n=v.get(e[i],"bs.dropdown");if(!n||!1===n._config.autoClose)continue;if(!n._element.classList.contains("show"))continue;const s={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if("keyup"===t.type&&"Tab"===t.key&&n._menu.contains(t.target))continue;"click"===t.type&&(s.clickEvent=t);}n._completeHide(s);}}static getParentFromElement(t){return n(t)||t.parentNode;}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?"Space"===t.key||"Escape"!==t.key&&("ArrowDown"!==t.key&&"ArrowUp"!==t.key||t.target.closest(".dropdown-menu")):!he.test(t.key))return;const e=this.classList.contains("show");if(!e&&"Escape"===t.key)return;if(t.preventDefault(),t.stopPropagation(),d(this))return;const i=()=>this.matches('[data-bs-toggle="dropdown"]')?this:U.prev(this,'[data-bs-toggle="dropdown"]')[0];if("Escape"===t.key)return i().focus(),void ye.clearMenus();e||"ArrowUp"!==t.key&&"ArrowDown"!==t.key?e&&"Space"!==t.key?ye.getInstance(i())._selectMenuItem(t):ye.clearMenus():i().click();}}I.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',ye.dataApiKeydownHandler),I.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",ye.dataApiKeydownHandler),I.on(document,"click.bs.dropdown.data-api",ye.clearMenus),I.on(document,"keyup.bs.dropdown.data-api",ye.clearMenus),I.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventDefault(),ye.dropdownInterface(this);})),m("dropdown",ye);const we=()=>{const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t);},Ee=(t=we())=>{Te(),Ae("body","paddingRight",(e)=>e+t),Ae(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",(e)=>e+t),Ae(".sticky-top","marginRight",(e)=>e-t);},Te=()=>{const t=document.body.style.overflow;t&&z.setDataAttribute(document.body,"overflow",t),document.body.style.overflow="hidden";},Ae=(t,e,i)=>{const n=we();U.find(t).forEach((t)=>{if(t!==document.body&&window.innerWidth>t.clientWidth+n)return;const s=t.style[e],o=window.getComputedStyle(t)[e];z.setDataAttribute(t,e,s),t.style[e]=i(Number.parseFloat(o))+"px";});},Le=()=>{Oe("body","overflow"),Oe("body","paddingRight"),Oe(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),Oe(".sticky-top","marginRight");},Oe=(t,e)=>{U.find(t).forEach((t)=>{const i=z.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(z.removeDataAttribute(t,e),t.style[e]=i);});},ke={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null},De={isVisible:"boolean",isAnimated:"boolean",rootElement:"element",clickCallback:"(function|null)"};class xe{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null;}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&f(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{_(t);})):_(t);}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),_(t);})):_(t);}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t;}return this._element;}_getConfig(t){return t={...ke,..."object"==typeof t?t:{}},l("backdrop",t,De),t;}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),I.on(this._getElement(),"mousedown.bs.backdrop",()=>{_(this._config.clickCallback);}),this._isAppended=!0);}dispose(){this._isAppended&&(I.off(this._element,"mousedown.bs.backdrop"),this._getElement().parentNode.removeChild(this._element),this._isAppended=!1);}_emulateAnimation(t){if(!this._config.isAnimated)return void _(t);const e=s(this._getElement());I.one(this._getElement(),"transitionend",()=>_(t)),a(this._getElement(),e);}}const Ce={backdrop:!0,keyboard:!0,focus:!0},Se={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class Ne extends M{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1;}static get Default(){return Ce;}static get DATA_KEY(){return "bs.modal";}toggle(t){return this._isShown?this.hide():this.show(t);}show(t){if(this._isShown||this._isTransitioning)return;this._isAnimated()&&(this._isTransitioning=!0);const e=I.trigger(this._element,"show.bs.modal",{relatedTarget:t});this._isShown||e.defaultPrevented||(this._isShown=!0,Ee(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),I.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',(t)=>this.hide(t)),I.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{I.one(this._element,"mouseup.dismiss.bs.modal",(t)=>{t.target===this._element&&(this._ignoreBackdropClick=!0);});}),this._showBackdrop(()=>this._showElement(t)));}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(I.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();if(e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),I.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),I.off(this._element,"click.dismiss.bs.modal"),I.off(this._dialog,"mousedown.dismiss.bs.modal"),e){const t=s(this._element);I.one(this._element,"transitionend",(t)=>this._hideModal(t)),a(this._element,t);}else this._hideModal();}dispose(){[window,this._dialog].forEach((t)=>I.off(t,".bs.modal")),super.dispose(),I.off(document,"focusin.bs.modal"),this._config=null,this._dialog=null,this._backdrop.dispose(),this._backdrop=null,this._isShown=null,this._ignoreBackdropClick=null,this._isTransitioning=null;}handleUpdate(){this._adjustDialog();}_initializeBackDrop(){return new xe({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()});}_getConfig(t){return t={...Ce,...z.getDataAttributes(this._element),...t},l("modal",t,Se),t;}_showElement(t){const e=this._isAnimated(),i=U.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&f(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus();const n=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,I.trigger(this._element,"shown.bs.modal",{relatedTarget:t});};if(e){const t=s(this._dialog);I.one(this._dialog,"transitionend",n),a(this._dialog,t);}else n();}_enforceFocus(){I.off(document,"focusin.bs.modal"),I.on(document,"focusin.bs.modal",(t)=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus();});}_setEscapeEvent(){this._isShown?I.on(this._element,"keydown.dismiss.bs.modal",(t)=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition();}):I.off(this._element,"keydown.dismiss.bs.modal");}_setResizeEvent(){this._isShown?I.on(window,"resize.bs.modal",()=>this._adjustDialog()):I.off(window,"resize.bs.modal");}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),Le(),I.trigger(this._element,"hidden.bs.modal");});}_showBackdrop(t){I.on(this._element,"click.dismiss.bs.modal",(t)=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition());}),this._backdrop.show(t);}_isAnimated(){return this._element.classList.contains("fade");}_triggerBackdropTransition(){if(I.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");const e=s(this._dialog);I.off(this._element,"transitionend"),I.one(this._element,"transitionend",()=>{this._element.classList.remove("modal-static"),t||(I.one(this._element,"transitionend",()=>{this._element.style.overflowY="";}),a(this._element,e));}),a(this._element,e),this._element.focus();}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=we(),i=e>0;(!i&&t&&!g()||i&&!t&&g())&&(this._element.style.paddingLeft=e+"px"),(i&&!t&&!g()||!i&&t&&g())&&(this._element.style.paddingRight=e+"px");}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight="";}static jQueryInterface(t,e){return this.each((function(){const i=Ne.getInstance(this)||new Ne(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
2amed "${t}"`);i[t](e);}}));}}I.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),I.one(e,"show.bs.modal",(t)=>{t.defaultPrevented||I.one(e,"hidden.bs.modal",()=>{c(this)&&this.focus();});}),(Ne.getInstance(e)||new Ne(e)).toggle(this);})),m("modal",Ne);const je={backdrop:!0,keyboard:!0,scroll:!1},Pe={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class Ie extends M{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners();}static get Default(){return je;}static get DATA_KEY(){return "bs.offcanvas";}toggle(t){return this._isShown?this.hide():this.show(t);}show(t){if(this._isShown)return;if(I.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(Ee(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show");const e=s(this._element);I.one(this._element,"transitionend",()=>{I.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t});}),a(this._element,e);}hide(){if(!this._isShown)return;if(I.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;I.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide();const t=s(this._element);I.one(this._element,"transitionend",()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||Le(),I.trigger(this._element,"hidden.bs.offcanvas");}),a(this._element,t);}dispose(){this._backdrop.dispose(),super.dispose(),I.off(document,"focusin.bs.offcanvas"),this._config=null,this._backdrop=null;}_getConfig(t){return t={...je,...z.getDataAttributes(this._element),..."object"==typeof t?t:{}},l("offcanvas",t,Pe),t;}_initializeBackDrop(){return new xe({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()});}_enforceFocusOnElement(t){I.off(document,"focusin.bs.offcanvas"),I.on(document,"focusin.bs.offcanvas",(e)=>{document===e.target||t===e.target||t.contains(e.target)||t.focus();}),t.focus();}_addEventListeners(){I.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),I.on(this._element,"keydown.dismiss.bs.offcanvas",(t)=>{this._config.keyboard&&"Escape"===t.key&&this.hide();});}static jQueryInterface(t){return this.each((function(){const e=v.get(this,"bs.offcanvas")||new Ie(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this);}}));}}I.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=n(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;I.one(e,"hidden.bs.offcanvas",()=>{c(this)&&this.focus();});const i=U.findOne(".offcanvas.show");i&&i!==e&&Ie.getInstance(i).hide(),(v.get(e,"bs.offcanvas")||new Ie(e)).toggle(this);})),I.on(window,"load.bs.offcanvas.data-api",()=>{U.find(".offcanvas.show").forEach((t)=>(v.get(t,"bs.offcanvas")||new Ie(t)).show());}),m("offcanvas",Ie);const Me=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),He=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Re=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Be=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return !Me.has(i)||Boolean(He.test(t.nodeValue)||Re.test(t.nodeValue));const n=e.filter((t)=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return !0;return !1;};function We(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser()).parseFromString(t,"text/html"),s=Object.keys(e),o=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(!s.includes(n)){i.parentNode.removeChild(i);continue;}const r=[].concat(...i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach((t)=>{Be(t,a)||i.removeAttribute(t.nodeName);});}return n.body.innerHTML;}const ze=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Ue=new Set(["sanitize","allowList","sanitizeFn"]),$e={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boun
2dary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Fe={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Ke={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ye={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class qe extends M{constructor(t,e){if(void 0===de)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.config=this._getConfig(e),this.tip=null,this._setListeners();}static get Default(){return Ke;}static get NAME(){return "tooltip";}static get DATA_KEY(){return "bs.tooltip";}static get Event(){return Ye;}static get EVENT_KEY(){return ".bs.tooltip";}static get DefaultType(){return $e;}enable(){this._isEnabled=!0;}disable(){this._isEnabled=!1;}toggleEnabled(){this._isEnabled=!this._isEnabled;}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e);}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this);}}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,super.dispose();}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=I.trigger(this._element,this.constructor.Event.SHOW),i=h(this._element),n=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(e.defaultPrevented||!n)return;const o=this.getTipElement(),r=t(this.constructor.NAME);o.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&o.classList.add("fade");const l="function"==typeof this.config.placement?this.config.placement.call(this,o,this._element):this.config.placement,c=this._getAttachment(l);this._addAttachmentClass(c);const d=this._getContainer();v.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(d.appendChild(o),I.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ce(this._element,o,this._getPopperConfig(c)),o.classList.add("show");const f="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;f&&o.classList.add(...f.split(" ")),"ontouchstart" in document.documentElement&&[].concat(...document.body.children).forEach((t)=>{I.on(t,"mouseover",u);});const p=()=>{const t=this._hoverState;this._hoverState=null,I.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this);};if(this.tip.classList.contains("fade")){const t=s(this.tip);I.one(this.tip,"transitionend",p),a(this.tip,t);}else p();}
2hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||("show"!==this._hoverState&&t.parentNode&&t.parentNode.removeChild(t),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null));};if(!I.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){if(t.classList.remove("show"),"ontouchstart" in document.documentElement&&[].concat(...document.body.children).forEach((t)=>I.off(t,"mouseover",u)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){const i=s(t);I.one(t,"transitionend",e),a(t,i);}else e();this._hoverState="";}}update(){null!==this._popper&&this._popper.update();}isWithContent(){return Boolean(this.getTitle());}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip;}setContent(){const t=this.getTipElement();this.setElementContent(U.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show");}setElementContent(t,e){if(null!==t)return "object"==typeof e&&r(e)?(e.jquery&&(e=e[0]),void (this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void (this.config.html?(this.config.sanitize&&(e=We(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e);}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t;}updateAttachment(t){return "right"===t?"end":"left"===t?"start":t;}_initializeOnDelegatedTarget(t,e){const i=this.constructor.DATA_KEY;return (e=e||v.get(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),v.set(t.delegateTarget,i,e)),e;}_getOffset(){const {offset:t}=this.config;return "string"==typeof t?t.split(",").map((t)=>Number.parseInt(t,10)):"function"==typeof t?(e)=>t(e,this._element):t;}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:(t)=>this._handlePopperPlacementChange(t)}],onFirstUpdate:(t)=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t);}};return {...e,..."function"==typeof this.config.popperConfig?this.config.popperConfig(e):this.config.popperConfig};}_addAttachmentClass(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t));}_getContainer(){return !1===this.config.container?document.body:r(this.config.container)?this.config.container:U.findOne(this.config.container);}_getAttachment(t){return Fe[t.toUpperCase()];}_setListeners(){this.config.trigger.split(" ").forEach((t)=>{if("click"===t)I.on(this._element,this.constructor.Event.CLICK,this.config.selector,(t)=>this.toggle(t));else{if("manual"!==t){const e="hover"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i="hover"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;I.on(this._element,e,this.config.selector,(t)=>this._enter(t)),I.on(this._element,i,this.config.selector,(t)=>this._leave(t));}}}),this._hideModalHandler=()=>{this._element&&this.hide();},I.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle();}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""));}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focu
2s":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout(()=>{"show"===e._hoverState&&e.show();},e.config.delay.show):e.show());}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide();},e.config.delay.hide):e.hide());}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return !0;return !1;}_getConfig(t){const e=z.getDataAttributes(this._element);return Object.keys(e).forEach((t)=>{Ue.has(t)&&delete e[t];}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof (t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),l("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=We(t.template,t.allowList,t.sanitizeFn)),t;}_getDelegateConfig(){const t={};if(this.config){for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);}return t;}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(ze);null!==e&&e.length>0&&e.map((t)=>t.trim()).forEach((e)=>t.classList.remove(e));}_handlePopperPlacementChange(t){const {state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)));}static jQueryInterface(t){return this.each((function(){let e=v.get(this,"bs.tooltip");const i="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new qe(this,i)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]();}}));}}m("tooltip",qe);const Ve=new RegExp("(^|\\s)bs-popover\\S+","g"),Xe={...qe.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Qe={...qe.DefaultType,content:"(string|element|function)"},Ge={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Ze extends qe{static get Default(){return Xe;}static get NAME(){return "popover";}static get DATA_KEY(){return "bs.popover";}static get Event(){return Ge;}static get EVENT_KEY(){return ".bs.popover";}static get DefaultType(){return Qe;}isWithContent(){return this.getTitle()||this._getContent();}setContent(){const t=this.getTipElement();this.setElementContent(U.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(U.findOne(".popover-body",t),e),t.classList.remove("fade","show");}_addAttachmentClass(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t));}_getContent(){return this._element.getAttribute("data-bs-content")||this.config.content;}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Ve);null!==e&&e.length>0&&e.map((t)=>t.trim()).forEach((e)=>t.classList.remove(e));}static jQueryInterface(t){return this.each((function(){let e=v.get(this,"bs.popover");const i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new Ze(this,i),v.set(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]();}}));}}m("popover",Ze);const Je={offset:10,method:"auto",target:""},ti={offset:"number",method:"string",target:"(string|element)"};class ei extends M{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,I.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process();}static get Default(){return Je;}static get DATA_KEY(){return "bs.scrollspy";}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":"position",e="auto"===this._config.method?t:this._config.method,n="position"===e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),U.find(this._selector).map((t)=>{const s=i(t),o=s?U.findOne(s):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return [z[e](o).top+n,s];}return null;}).filter((t)=>t).sort((t,e)=>
2t[0]-e[0]).forEach((t)=>{this._offsets.push(t[0]),this._targets.push(t[1]);});}dispose(){super.dispose(),I.off(this._scrollElement,".bs.scrollspy"),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null;}_getConfig(e){if("string"!=typeof (e={...Je,...z.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target&&r(e.target)){let {id:i}=e.target;i||(i=t("scrollspy"),e.target.id=i),e.target="#"+i;}return l("scrollspy",e,ti),e;}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop;}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height;}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t);}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e]);}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map((e)=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),i=U.findOne(e.join(","));i.classList.contains("dropdown-item")?(U.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add("active"),i.classList.add("active")):(i.classList.add("active"),U.parents(i,".nav, .list-group").forEach((t)=>{U.prev(t,".nav-link, .list-group-item").forEach((t)=>t.classList.add("active")),U.prev(t,".nav-item").forEach((t)=>{U.children(t,".nav-link").forEach((t)=>t.classList.add("active"));});})),I.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t});}_clear(){U.find(this._selector).filter((t)=>
2t.classList.contains("active")).forEach((t)=>t.classList.remove("active"));}static jQueryInterface(t){return this.each((function(){const e=ei.getInstance(this)||new ei(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]();}}));}}I.on(window,"load.bs.scrollspy.data-api",()=>{U.find('[data-bs-spy="scroll"]').forEach((t)=>new ei(t));}),m("scrollspy",ei);class ii extends M{static get DATA_KEY(){return "bs.tab";}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let t;const e=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?":scope > li > .active":".active";t=U.find(e,i),t=t[t.length-1];}const s=t?I.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(I.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{I.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),I.trigger(this._element,"shown.bs.tab",{relatedTarget:t});};e?this._activate(e,e.parentNode,o):o();}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?U.children(e,".active"):U.find(":scope > li > .active",e))[0],o=i&&n&&n.classList.contains("fade"),r=()=>this._transitionComplete(t,n,i);if(n&&o){const t=s(n);n.classList.remove("show"),I.one(n,"transitionend",r),a(n,t);}else r();}_transitionComplete(t,e,i){if(e){e.classList.remove("active");const t=U.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1);}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),f(t),t.classList.contains("fade")&&t.classList.add("show");let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&U.find(".dropdown-toggle",e).forEach((t)=>t.classList.add("active")),t.setAttribute("aria-expanded",!0);}i&&i();}static jQueryInterface(t){return this.each((function(){const e=v.get(this,"bs.tab")||new ii(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]();}}));}}I.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this)||(v.get(this,"bs.tab")||new ii(this)).show();})),m("tab",ii);const ni={animation:"boolean",autohide:"boolean",delay:"number"},si={animation:!0,autohide:!0,delay:5e3};class oi extends M{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._setListeners();}static get DefaultType(){return ni;}static get Default(){return si;}static get DATA_KEY(){return "bs.toast";}show(){if(I.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const t=()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),I.trigger(this._element,"shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout(()=>{this.hide();},this._config.delay));};if(this._element.classList.remove("hide"),f(this._element),this._element.classList.add("showing"),this._config.animation){const e=s(this._element);I.one(this._element,"transitionend",t),a(this._element,e);}else t();}hide(){if(!this._element.classList.contains("show"))return;if(I.trigger(this._element,"hide.bs.toast").defaultPrevented)return;const t=()=>{this._element.classList.add("hide"),I.trigger(this._element,"hidden.bs.toast");};if(this._element.classList.remove("show"),this._config.animation){const e=s(this._element);I.one(this._element,"transitionend",t),a(this._element,e);}else t();}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose(),this._config=null;}_getConfig(t){return t={...si,...z.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},l("toast",t,this.constructor.DefaultType),t;}_setListeners(){I.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide());}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null;}static jQueryInterface(t){return this.each((function(){let e=v.get(this,"bs.toast");if(e||(e=new oi(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t](this);}}));}}return m("toast",oi),{Alert:H,Button:R,Carousel:X,Collapse:Z,Dropdown:ye,Modal:Ne,Offcanvas:Ie,Popover:Ze,ScrollSpy:ei,Tab:ii,Toast:oi,Tooltip:qe};}));;
3(function($,Drupal,once){'use strict';Drupal.behaviors.openDrawer={attach:function(context,settings){var $element='.navbar-toggler';var resizeTimer;$(window).on('resize',function(e){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){$('.primary-navigation .dropdown-toggle.link--level-0').each(function(){if($(this).attr('aria-expanded')=='true')$(this).dropdown('toggle');});},100);});$(once("openDrawerClick",".megamenu",context)).on("click",function(e){e.stopPropagation();});$('.primary-navigation .dropdown-toggle.link--level-0').on('click',function(e){if($('#toggle-search-desktop').attr('aria-expanded')==='true'&&$('#search-form-desktop').hasClass('active'))$('#toggle-search-desktop').click();});}};Drupal.behaviors.pinnedNav={attach:function(context,settings){function stickyNavScrollState(header_nav){let scroll_depth=window.pageYOffset;if(scroll_depth>=133&&scroll_depth<333){header_nav.classList.remove('scrolling');header_nav.classList.remove('scrolled');header_nav.classList.add('scroll');}else if(scroll_depth>=333&&scroll_depth<666){header_nav.classList.remove('scroll');header_nav.classList.remove('scrolled');header_nav.classList.add('scrolling');}else{if(scroll_depth>=666){header_nav.classList.remove('scroll');header_nav.classList.remove('scrolling');header_nav.classList.add('scrolled');}}if(scroll_depth===0)header_nav.classList.remove('scroll');}function stickyNavPin(header_nav,sticky_backdrop){header_nav.classList.add('sticky');sticky_backdrop.style.height=header_nav.offsetHeight.toString()+'px';}function stickyNavUnPin(header_nav,sticky_backdrop){sticky_backdrop.style.height=0;header_nav.classList.remove('sticky');}function stickyNavResetReframe(sticky_nav_viewport_width,header_nav,sticky_backdrop){if(window.innerWidth>=sticky_nav_viewport_width)stickyNavPin(header_nav,sticky_backdrop);else stickyNavUnPin(header_nav,sticky_backdrop);}if(document.querySelector('#toolbar-administration.toolbar')){console.log('pinned nav does not run on top of admin toolbar');return;}else{const header_nav=document.querySelector('header nav');const sticky_backdrop=document.querySelector('.sticky-backdrop');const sticky_nav_viewport_width=992;stickyNavResetReframe(sticky_nav_viewport_width,header_nav,sticky_backdrop);window.addEventListener('scroll',function(event){stickyNavScrollState(header_nav);});window.addEventListener('resize',function(event){stickyNavResetReframe(sticky_nav_viewport_width,header_nav,sticky_backdrop);});if(screen.orientation)screen.orientation.addEventListener('change',function(event){stickyNavResetReframe(sticky_nav_viewport_width,header_nav,sticky_backdrop);});}}};Drupal.behaviors.searchForm={attach:function(context,settings){$('#toggle_search_button',context).on('click',function(e){const $searchView=$('#'+$('#toggle_search_button').attr('aria-controls'),context);setTimeout(function(){let search_view_is_expanded=JSON.parse($('#toggle_search_button').attr('aria-expanded'));if(search_view_is_expanded)$searchView.find('input[type="search"]').focus();},201);});$(once('searchFormToggle','#toggle-search-desktop',context)).on('click',function(e){const $searchView=$('#'+$('#toggle-search-desktop').attr('aria-controls'),context);let search_view_is_expanded=JSON.parse($('#toggle-search-desktop').attr('aria-expanded'));$('#toggle-search-desktop').attr('aria-expanded',(!search_view_is_expanded).toString());if(!search_view_is_expanded){setTimeout(function(){$searchView.addClass('active');$searchView.find('.form-text').focus();document.querySelector('header nav').classList.remove('scroll');document.querySelector('header nav').classList.remove('scrolling');document.querySelector('header nav').classList.remove('scrolled');},201);setTimeout(function(){$searchView.children().find('input.form-search').focus();},1100);}else setTimeout(function(){$searchView.removeClass('active');},201);e.preventDefault();});var $menu=$('#primary-nav .nav-item',context);$(once('searchFormKeyPress','#toggle-search-desktop',context)).on('keydown',function(e){if(e.code==='Enter'){const $searchView=$('#'+$('#toggle-search-desktop').attr('aria-controls'),context);let search_view_is_expanded=JSON.parse($('#toggle-search-desktop').attr('aria-expanded'));e.preventDefault();$searchView.toggleClass('active');$('#toggle-search-desktop').toggleClass('active');$('#toggle-search-desktop').attr('aria-expanded',(!search_view_is_expanded).toString());if(search_view_is_expanded){$menu.removeClass('is-closed');$menu.removeClass('hidden');}else{setTimeout(function(){$searchView.find('.form-text').focus();$searchView.find('.form-text').addClass('focused-element');$('#toggle-search-desktop').removeClass('focused-element');},201);setTimeout(function(){$searchView.children().find('input.form-search').focus();},1100);}}});$('#search-form-desktop').on('keydown',function(event){if(event.code==='Escape'){$('#toggle-search-desktop').click();$('#toggle-search-desktop').focus();$('#toggle-search-desktop').addClass('focused-element');}});$('ul.search-utility-link-group-list li a').last().on('keydown',function(event){if(event.code==='Tab'&&!event.shiftKey){$('#toggle-search-desktop').click();$('#toggle-search-desktop').focus();}});$(document.body).on('click',function(event){if($('#toggle-search-desktop').attr('aria-expanded')==='true'&&$('#search-form-desktop').hasClass('active'))if(!document.getElementById('search-form-desktop').contains(event.target)&&!document.getElementById('toggle-search-desktop').contains(event.target))$('#toggle-search-desktop').click();});$('#i-am-a-menu-wrapper a').last().on('keydown',function(event){if(event.code==='Tab'&&!event.shiftKey)$('.navbar-light .navbar-toggler').click();});$('#psu-i-am-a-menu-mobile').on('keydown',function(event){if(!$('#i-am-a-menu-wrapper').is(':visible')&&event.code==='Tab'&&!event.shiftKey){$('.navbar-light .navbar-toggler').click();$('.navbar-light .navbar-toggler').focus();}});var $formItem=$('.searchbar .form-item-search-api-fulltext, .form-item-search',context);var $formText=$formItem.find('.form-text');function checkFormText(element){if(element.length>0&&element.val().length>0){element.addClass('has-text');element.next('.clear-icon').addClass('is-visible');}else{element.removeClass('has-text');element.next('.clear-icon').removeClass('is-visible');}}$formText.on('focus',function(){var $this=$(this);setTimeout(function(){$this.parent().addClass('is-focused');},250);}).on('blur',function(){var $this=$(this);setTimeout(function(){$this.parent().removeClass('is-focused');},250);}).on('keyup',function(){checkFormText($(this));});$formItem.find('.clear-icon').on('click',function(e){$(this).parent().find('.form-text').val('').trigger('keyup');});checkFormText($formText);$(window).on('load',function(){var $id=$('#google-custom-search-form input').attr('id');$('#google-custom-search-form label').attr('for',$id);});}};Drupal.behaviors.backgroundImage={attach:function(context,settings){$(".short-hero").each(function(){var attr=$(this).attr('data-image-src');if(typeof attr!==typeof undefined&&attr!==false)$(this).css('background-image','url('+attr+')');});}};Drupal.behaviors.degreeDetailsTileCertification={attach:function(context,settings){$(".acronym-term").each(function(){var attr=$(this).attr('data-certification');if(typeof attr!==typeof undefined&&attr!==false)$(this).closest("li").addClass(attr);});}};Drupal.behaviors.bootstrapCarousel={attach:function(context,settings){var myCarousel=document.querySelector('.carousel');var carousel_interval=new bootstrap.Carousel(myCarousel,{interval:false});$(window).on('load resize',function(e){updateFeaturedCollectionCarouselMargins();updateDayInLifeCarouselMargin();updateGalleryFeaturedItemsMargin();});
3var $noFocus=$('#day-life-event-carousel .carousel-control, .event-popup-detail .event-title, .event-popup-detail .event-description, .searchbar-toggler, #search-form-desktop .form-text');$noFocus.on('click',function(){$(this).removeClass('user-is-tabbing');}).on('keydown',function(event){if(event.code==='Tab')$(this).addClass('user-is-tabbing');else $noFocus.removeClass('user-is-tabbing');});$('.day-in-the-life-slider-container').each(function(){var $cta=$(this).find('.field--name-field-call-to-action a');var ctaText=$cta.text();var ctaLink=$cta.attr('href');$(this).find('.day-in-life-slider-item .day-in-life-slider-cta-link').each(function(){$(this).attr('href',ctaLink);$(this).find('span').text(ctaText);});});function updateFeaturedCollectionCarouselMargins(){var imageHeight=$('#featured-collection-carousel .active').find('.project-image').outerHeight();var $carouselControl=$('#featured-collection-carousel .carousel-control');var $carouselIndicators=$('#featured-collection-carousel .carousel-indicators');var screenWidth=$(window).width();if(screenWidth<1200){$carouselControl.css('top',imageHeight+25+'px');$carouselIndicators.css('top',imageHeight+33+'px');}else{$carouselControl.css('top',0);$carouselIndicators.css('top','auto');}}function updateDayInLifeCarouselMargin(){$('.a-day-in-the-life-slider').each(function(){var $thisSlider=$(this);var imageHeight=$thisSlider.find('.active').find('.event-image img').outerHeight();var $carouselControl=$thisSlider.find('.carousel-control');var $carouselIndicators=$thisSlider.find('.carousel-indicators');var screenWidth=$(window).width();if(screenWidth<1200){$carouselControl.css('top',imageHeight+25+'px');$carouselIndicators.css('top',imageHeight-35+'px');}else{$carouselControl.removeAttr('style');$carouselIndicators.css('top','auto');}});}function updateGalleryFeaturedItemsMargin(){$('.gallery-featured-items-slider').each(function(){var $thisSlider=$(this);var imageHeight=$thisSlider.find('.active').find('.project-image img').outerHeight();var $carouselControl=$thisSlider.find('.carousel-control');var $carouselIndicators=$thisSlider.find('.carousel-indicators');var screenWidth=$(window).width();if(screenWidth<1200){$carouselControl.css('top',imageHeight+25+'px');$carouselIndicators.css('top',imageHeight-35+'px');}else{$carouselControl.removeAttr('style');$carouselIndicators.css('top','auto');}});}}};Drupal.behaviors.iamaMenu={attach:function(context,settings){if(document.getElementById('menubutton')){var menubutton=new Menubutton(document.getElementById('menubutton'));menubutton.init();}$(window).on('load resize scroll',function(e){var resizeTimer;clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){var screenWidth=$(window).width();var screenHeight=$(window).height();var topbarHeight=$('.psu-branding').outerHeight()||0;var toolbarHeight=$('#toolbar-bar').outerHeight()||0;var toolbartrayHeight=$('#toolbar-item-administration-tray.toolbar-tray-horizontal').outerHeight()||0;$('.dropup > ul').css({'position':'absolute','visibility':'hidden','display':'block'});var bottombarHeight=$('.dropup > ul').outerHeight()||0;$('.dropup > ul').removeAttr('style');var iamamenuHeight=($(window).height()-topbarHeight-bottombarHeight-toolbarHeight);var mobilemenuHeight=iamamenuHeight;if(screenWidth<=991){if($("#navbarSupportedContent.show").length){$("#navbarSupportedContent.show").css({'overflow-y':'auto','height':mobilemenuHeight,'padding-bottom':(bottombarHeight)});$("html").css({'position':'fixed','width':'100%'});}$(once("iamaMenuDitem",'#navbarSupportedContent .dropdown .dropdown-item',context)).on('click',function(event){event.stopPropagation();});$(once("iamaMenuD",'#navbarSupportedContent .dropdown .dropdown',context)).on('click',function(event){event.stopPropagation();});$(once("iamaMenuNavCollapse","#navbarSupportedContent",context)).on("shown.bs.collapse",function(event){$('body').css({'overflow':'hidden','touch-action':'none'});$("#navbarSupportedContent",context).css({'overflow-y':'auto','height':mobilemenuHeight,'padding-bottom':(bottombarHeight)});$("html").css({'position':'fixed','width':'100%'});$('html, body').bind('touchstart touchmove',function(e){e.preventDefault();});$(once("iamaMenuTouch","#navbarSupportedContent",context)).on('touchstart touchmove',function(e){e.stopPropagation();});$(once("iamaMenuWrapperTouch","#i-am-a-menu-wrapper",context)).on('touchstart touchmove',function(e){e.stopPropagation();});$(once("iamaMenuButtonTouch","button.navbar-toggler",context)).on('touchstart touchmove',function(e){e.stopPropagation();});});$(once("iamaMenuCollapse","#navbarSupportedContent",context)).on("hidden.bs.collapse",function(event){$('body').css({'overflow':'visible','touch-action':'initial'});$("#navbarSupportedContent").css({'overflow':'hidden'});$('html, body').unbind('touchstart touchmove');$("html").css({'position':'static','width':'auto'});});$(once("iamaMenuList","#psu-i-am-a-menu > li",context)).on("shown.bs.dropdown",function(event){$('#i-am-a-menu-wrapper').removeClass('position-absolute').detach().prependTo('body').css({'top':topbarHeight+toolbarHeight+toolbartrayHeight,'height':iamamenuHeight,'padding-bottom':bottombarHeight,'overflow-y':'auto'});});$(once("iamaMenuList","#psu-i-am-a-menu-mobile > li",context)).on("shown.bs.dropdown",function(event){var screenWidth=$(window).width();var iamaMenuWidth=$("#psu-i-am-a-menu-mobile").width();$('#i-am-a-menu-wrapper').css({'left':1-screenWidth+iamaMenuWidth-10+'px','bottom':topbarHeight-25+'px','width':screenWidth+25+'px','padding-bottom':bottombarHeight,'overflow-y':'auto'});});}else{if(screenWidth>991)$('#navbarSupportedContent').removeAttr('style');}},150);});}};Drupal.behaviors.singleDisplayCarousel={attach:function(context,settings){var carouselId='';
3$('.single-display-frame-carousel',context).each(function(){if($(this).hasClass('single-display'))carouselId=$(this).attr('id');if(carouselId!=''){manipulateSingleCarousel(carouselId);carouselId='';}});function manipulateSingleCarousel(carousel1){var $carousel=$('#'+carousel1);var $carouselIndicators=$carousel.find('.carousel-indicators');$carousel.on('slide.bs.carousel',function(event){if($(event.relatedTarget).find('.columns-wrapper').attr('data-content-position')==$carousel.attr('data-indicators-position'))if($(window).width()>992)$carouselIndicators.fadeOut('fast');});$carousel.on('slid.bs.carousel',function(){if($carousel.find('.carousel-item.active .columns-wrapper').attr('data-content-position')==$carousel.attr('data-indicators-position'))if($(window).width()>992)$carouselIndicators.fadeIn('fast');if($carousel.find('.carousel-item.active .columns-wrapper').attr('data-content-position')=='right')$carousel.attr('data-indicators-position','left');else{if($carousel.find('.carousel-item.active .columns-wrapper').attr('data-content-position')=='left')$carousel.attr('data-indicators-position','right');}});$carousel.trigger('slid');}}};Drupal.behaviors.psuSecondary={attach:function(context,settings){$('#psu-secondary-menu-mobile li a, #psu-home-menu-mobile li a, #psu-i-am-a-menu-mobile li a').each(function(index,value){var $currentId=$(this).attr('id');$(this).attr('id',$currentId+'-mobile');});}};Drupal.behaviors.events={attach:function(context,settings){setTimeout(function(){$(once("events",'a.atcb-link',context)).on('click',function(){$(this).parent().toggleClass('open');return false;});$('.atcb-link').attr('tabindex',0);$('.atcb-link').attr('href','#');$('.atcb-link').attr('role','button');$('.atcb-link').removeAttr('id');if($('.upcoming_event_horizontal').length)$('.upcoming_event_horizontal').each(function(index){var $eventTitle=$(this).find('.upcoming_event_horizontal__title a').text();var $eventDate=$(this).find('.upcoming_event_horizontal__datetimes time:first-child').text();$(this).find('.atcb-link').attr('aria-label',Drupal.t('Add upcoming event @eventTitle on @eventDate to my Calendar',{'@eventTitle':$eventTitle,'@eventDate':$eventDate}));$(this).find('.upcoming_event_horizontal__image').attr('aria-hidden','true');});$(once("eventsImageHorizontal",'.upcoming_event_horizontal__title a, .upcoming_event_horizontal__image',context)).on('mouseover focusin',function(){var $parent_link=$(this).parents().eq(2);$parent_link.addClass('hovered');}).on('mouseout focusout',function(){var $parent_link=$(this).parents().eq(2);$parent_link.removeClass('hovered');});$(once("eventsImageVertical",'.upcoming_event_vertical__title a, .field--name-field-image',context)).on('mouseover focusin',function(){var $parent_link=$(this).parents().eq(2);$parent_link.addClass('hovered');}).on('mouseout focusout',function(){var $parent_link=$(this).parents().eq(2);$parent_link.removeClass('hovered');});if($('.upcoming_event_horizontal_no_image').length)$('.upcoming_event_horizontal_no_image').each(function(index){var $eventTitle=$(this).find('.upcoming_event_horizontal_no_image__title a').text();var $eventDate=$(this).find('.upcoming_event_horizontal_no_image__datetimes time:first-child').text();$(this).find('.atcb-link').attr('aria-label',Drupal.t('Add upcoming event @eventTitle on @eventDate to my Calendar',{'@eventTitle':$eventTitle,'@eventDate':$eventDate}));});if($('.event_detail').length){var $eventTitle=$('.event_detail__title .field--name-title').text();var $eventDate=$('.field-daterange-all-day .datetime-range time:first-child').text();$('.event_detail__add_to_calendar .atcb-link').attr('aria-label',Drupal.t('Add upcoming event @eventTitle on @eventDate to my Calendar',{'@eventTitle':$eventTitle,'@eventDate':$eventDate}));}if($('.view-id-academic_calendar.view-display-id-page_1').length)$('.view-id-academic_calendar.view-display-id-page_1 .node--type-academic-calendar-item').each(function(){var $eventTitle=$(this).find('.title').text();$(this).find('.addtocalendar .atcb-link').attr('aria-label',Drupal.t('Add @eventTitle to my Calendar',{'@eventTitle':$eventTitle}));});},100);var $page=$('.page-node-type-event');
3var $pageBottom=$('.event_detail__content_bottom');if($($page).length)if($('.upcoming_event_vertical').length||$('.upcoming_event_vertical_no_image').length)$($pageBottom).addClass('gray');const popoverTriggerList=document.querySelectorAll('[data-bs-toggle="popover"]');const popoverList=[...popoverTriggerList].map((popoverTriggerEl)=>new bootstrap.Popover(popoverTriggerEl,{html:true}));$(once("eventsSocialShare",'.social-share-container',context)).on('click',function(e){e.preventDefault();$('.news-article-share-popover').toggleClass('popover-shown');$('.social-share-container, .share-button').blur();});$(once("eventsBody",'body',context)).on('click',function(e){if($(e.target).hasClass('share-button')==false&&$(e.target).hasClass('share-txt')==false)$('.news-article-share-popover').removeClass('popover-shown');});}};Drupal.behaviors.newsItemsforSale={attach:function(context,settings){$('.featured_news_vertical__title a, .featured_news_vertical__image').on('mouseover focusin',function(){var $parent_link=$(this).parents().eq(2);$parent_link.addClass('hovered');}).on('mouseout focusout',function(){var $parent_link=$(this).parents().eq(2);$parent_link.removeClass('hovered');});}};Drupal.behaviors.blog={attach:function(context,settings){var $facebookBlock=$('.block-facebook-feed-block');if($($facebookBlock).length)$($facebookBlock).each(function(index){var $newIndex=index+1;$(this).attr('id','block-facebookfeedblock-'+$newIndex);});$(once("blog",'.paragraph-featured-blog .featured_blog_vertical__title h3 a',context)).hover(function(){$(this).parents('.featured_blog_vertical__inner').find('.featured_blog_vertical__image .background-overlay').toggleClass('active');});}};Drupal.behaviors.researchUnit={attach:function(context,settings){$(once("researchUnit",'.research_unit_vertical__title',context)).on('mouseover focusin',function(){var $parent_link=$(this).parent('.research_unit_vertical__link_group');$parent_link.addClass('hovered');}).on('mouseout focusout',function(){var $parent_link=$(this).parent('.research_unit_vertical__link_group');$parent_link.removeClass('hovered');});}};Drupal.behaviors.largeHero={attach:function(context,settings){var $page=$('.paragraph-large-hero');var $video=$('.media-video-oembed-with-text');if($($page).length)if($($video).length)$($video).parent().addClass('video');}};Drupal.behaviors.featureImageCarousel={attach:function(context,settings){var caption=$('#feature-img-carousel .carousel-item .field--name-field-carousel-caption');$('.custom-caption').html(caption.html());$(once("featureImageCarousel",'#feature-img-carousel',context)).on('slide.bs.carousel',function(e){var caption=$('#feature-img-carousel .carousel-item:nth-child('+($(e.relatedTarget).index()+1)+') .field--name-field-carousel-caption');$('.custom-caption').html(caption.html());});var $totalCarouselItems=$('#feature-img-carousel .carousel-item').length;if($totalCarouselItems>10)$('#feature-img-carousel').find('.carousel-indicators li').addClass('more-than-ten');document.querySelectorAll('.paragraph--type--feature-image-carousel').forEach(function(image_gallery_carousel){image_gallery_carousel.querySelectorAll('[role="button"].view-read-more-disclosure').forEach(function(view_disclosure_button){view_disclosure_button.addEventListener('click',function(event){let event_target=event.target.getAttribute('role')!='button'?event.target.parentElement:event.target;let caption_id=event_target.getAttribute('aria-controls');let disclosure_caption=caption_id?document.getElementById(caption_id):null;if(JSON.parse(event_target.getAttribute('aria-expanded'))){disclosure_caption.classList.remove('caption-disclosure');event_target.setAttribute('aria-expanded',false);event_target.querySelector('.state-text').innerText=event_target.getAttribute('data-state-text-false');}else{disclosure_caption.classList.add('caption-disclosure');event_target.setAttribute('aria-expanded',true);event_target.querySelector('.state-text').innerText=event_target.getAttribute('data-state-text-true');}});});image_gallery_carousel.querySelectorAll('.field--name-field-carousel-caption').forEach(function(caption_wrapper){});
3image_gallery_carousel.querySelectorAll('a.carousel-controls').forEach(function(carousel_control){carousel_control.addEventListener('click',function(event){let all_open_disclosures=image_gallery_carousel.querySelectorAll('.feature-image-carousel-caption.caption-disclosure');all_open_disclosures.forEach(function(this_open_disclosure){let disclosure_toggle_button=document.querySelector('[aria-controls="'+this_open_disclosure.id+'"]');if(disclosure_toggle_button)disclosure_toggle_button.querySelector('.state-text').innerText=disclosure_toggle_button.getAttribute('data-state-text-false');else{console.log('disclosure toggle button not found:');console.log('[aria-controls="'+this_open_disclosure.id+']"');}this_open_disclosure.classList.remove('caption-disclosure');});});});});}};Drupal.behaviors.imageGalleryCarousel={attach:function(context,settings){}};Drupal.behaviors.campusBuilding={attach:function(context,settings){var $page=$('.page-node-type-campus-building');if($($page).length)$(once("campusBuilding",'.campus_building__blue_label .field__label',context)).on('touch click',function(){$(this).parent().toggleClass('open');});}};Drupal.behaviors.twoImagesCta={attach:function(context,settings){var $paragraph=$('.paragraph-cta-image, .paragraph-cta-text-block');if($($paragraph).length)$('.paragraph-cta-image .field--name-field-call-to-action a').append("<span class='fas fa-angle-double-right'></span>");}};Drupal.behaviors.multipleLists={attach:function(context,settings){var $paragraph=$('.paragraph-multiple-lists');if($($paragraph).length)$('.paragraph-multiple-lists .field--name-field-links a').append("<span class='fas fa-arrow-circle-right'></span>");}};Drupal.behaviors.activeLinksOverride={attach:function attach(context,settings){var path=settings.path;var originalSelectors=['[data-drupal-link-system-path="'+path.currentPath+'"]'];var selectors=void 0;selectors=[].concat(originalSelectors.map(function(selector){return selector+':not([hreflang])';}),originalSelectors.map(function(selector){return selector+'[hreflang="'+path.currentLanguage+'"]';}));selectors=selectors.map(function(current){return current;});var activeAttribute=$('.view-fullcalendar-events').length?'aria-current':'aria-selected';var activeLinks=context.querySelectorAll(selectors.join(','));var il=activeLinks.length;for(var i=0;i<il;i++){activeLinks[i].classList.add('is-active');$('.is-active').closest('li').attr(activeAttribute,'true');$('.is-active').closest('li').addClass('menu-item--active-trail');}}};Drupal.behaviors.showMyProgramsFormOptionDefaulted={attach:function attach(context,settings){var $page=$('.path-academic-programs');if($($page).length){var vars=[],hash;var hashes=window.location.search.slice(window.location.search.indexOf('?')+1).split('&');if(hashes[0]!==""){for(var i=0;i<hashes.length;i++){hash=hashes[i].split('=');vars.push(hash[0]);vars[hash[0]]=hash[1];}var selector='';for(var key in vars){selector='#edit-'+key.replace(/_/g,'-');$(selector).val(vars[key]);}}}}};Drupal.behaviors.pager={attach:function attach(context,settings){var $firstLink=$('ul .pager__item--first > a');var $prevLink=$('ul .pager__item--previous > a');var $nextLink=$('ul .pager__item--next > a');var $lastLink=$('ul .pager__item--last > a');if($firstLink.attr('href')==''){$firstLink.addClass('disabled').removeAttr('href');$firstLink.after('<div class="blocker"></div>');$prevLink.addClass('disabled').removeAttr('href');$prevLink.after('<div class="blocker"></div>');}if($lastLink.attr('href')==''){$lastLink.addClass('disabled').removeAttr('href');$lastLink.after('<div class="blocker"></div>');$nextLink.addClass('disabled').removeAttr('href');$nextLink.after('<div class="blocker"></div>');}$('.pager__items li a').each(function(){if($(this).attr('href')=='')$(this).removeAttr('href');});}};Drupal.behaviors.dayinthelife={attach:function(context,settings){$(once('dayinthelife','.event-item',context)).on('click',function(e){e.preventDefault();var slide_no=$(this).attr('data-slide-to');$('.day-life-event-modal').modal({show:true,focus:true});$('#day-life-event-carousel').carousel(parseInt(slide_no));});}};Drupal.behaviors.campusBuildings={attach:function(context,settings){var $element=$('.view-id-campus_buildings.view-display-id-campus_buildings .views-exposed-form details');$element.removeAttr('open');}};Drupal.behaviors.itemsForSale={attach:function(context,settings){var $resetButton=$('.items-for-sale--filters .views-exposed-form .form--inline .form-actions input[name="reset"], .view-display-id-news_archives .filters input[name="edit-reset"]');if($($resetButton).length){var $pathname=window.location.pathname;$($resetButton).on('touch click',function(e){e.preventDefault();window.location.href=$pathname;});}}};Drupal.behaviors.content={attach:function(context,settings){$('.caption').each(function(){if($(this).find('.media-video-oembed-with-text').length>0)$(this).addClass('is-video-with-caption');});}};Drupal.behaviors.blockquotes={attach:function(context,settings){$('blockquote p').each(function(index){
3if($(this).hasClass('text-align-right'))$(this).parent().addClass('right-blockquote');if($(this).hasClass('text-align-center'))$(this).parent().addClass('center-blockquote');});}};Drupal.behaviors.calendarAlerts={attach:function(context,settings){if($('#alert-message').length>0){var $alertMessage=$('#alert-message').html().trim().length;if($alertMessage>0)document.getElementById("alert-message").focus();}}};Drupal.behaviors.emergencyAlerts={attach:function(context,settings){if($('#collapseAlert').length>0){if(sessionStorage.getItem("collapseAlertFlag")=='false'){$('#collapseAlert').removeClass('show');$('.alert-toggle-button-mobile').attr('aria-expanded',false).addClass('collapsed');}else{$('#collapseAlert').addClass('show');$('.alert-toggle-button-mobile').attr('aria-expanded',true).removeClass('collapsed');}$('#collapseAlert').on('hidden.bs.collapse',function(){if(sessionStorage.getItem("collapseAlertFlag")=='false')sessionStorage.setItem('collapseAlertFlag','true');else sessionStorage.setItem('collapseAlertFlag','false');});}}};Drupal.behaviors.textTrim={attach:function(context,settings){var max=50;var tot,str;$('.portfolio-all-galleries-title a').addClass('trimmed-title');$('.trimmed-title').each(function(){str=String($(this).html());tot=str.length;str=(tot<=max)?str:str.substring(0,(max+1))+"...";$(this).html(str);});}};Drupal.behaviors.filterLastName={attach:function(context,settings){$('#edit-last-name .form-item, #edit-field-last-name-value-1 .form-item').each(function(){var $input=$(this).find('input');if($input.is(':checked'))$input.parent().addClass('selected');});$(once("filterLastName",'#edit-last-name .form-item label, #edit-field-last-name-value-1 .form-item label',context)).on('click',function(){$('#edit-last-name .form-item, #edit-field-last-name-value-1 .form-item').removeClass('selected');$(this).parent('.form-item').addClass('selected');setTimeout(function(){$('.views-exposed-form',context).submit();},500);});$(once("filterLastNameSubmit",'.search-icon-submit',context)).on('click',function(e){e.preventDefault();$('.views-exposed-form',context).submit();});$(once("filterLastNameSubmit",'.form-item-discipline select',context)).on('change',function(e){e.preventDefault();$('.views-exposed-form',context).submit();});}};Drupal.behaviors.convertFBTwitterURLtoReadme={attach:function(context,settings){$('#block-twitterfeedblock .twitter-feed .tweet a').each(function(){var posted=$(this).parents('.twitter-feed').find('.timeago').text();var link=$(this).attr('href');if(link.toLowerCase().indexOf("https")>=0){$(this).parents('.tweet').after('\
4              <a href="'+link+'" class="btn btn-icon-white icon learn-more flex-row justify-content-around">'+Drupal.t('Read More')+'<span class="fas fa-angle-double-right"></span>\
5                <span class="sr-only">'+Drupal.t('about this tweet posted on @posted',{'@posted':posted})+'</span>\
6              </a>');$(this).parent().find('a:last').remove();}});}};Drupal.behaviors.accessibilityFixes={attach:function(context,settings){$('body').keyup(function(e){var code=e.code||e.key;if(code==='Tab'){$('.focused-element').each(function(){$(this).removeClass('focused-element');});$(':focus').addClass('focused-element');}$(document).on('click',function(event){if(!(event.target.classList.contains('focused-element')))$('.focused-element').each(function(){$(this).removeClass('focused-element');});});});var $primary_links=$('#psu-primary-menu li a.link--level-0');$primary_links.each(function(){$(this).click(function(event){if($('.focused-element').length){$('.focused-element').each(function(){$(this).removeClass('focused-element');});$(this).addClass('focused-element');}});});$('.department-content-limit .department-item').each(function(){var $department=$(this).find('.views-field-image img');$department.attr('alt','');});if($('body').hasClass('path-search')){var observer_tab=new MutationObserver(function(mutations){if($("#google-cse-results .gsc-refinementBlock").length){$('#google-cse-results .gsc-refinementBlock').attr('role','tablist');$('#google-cse-results .gsc-refinementBlock .gsc-refinementHeader').each(function(){var tab_label=$(this).find('span').text();$(this).attr("aria-label",tab_label);});}});observer_tab.observe(document.querySelector("#google-cse-results"),{childList:true,subtree:true});}$(document).ready(function(){var label='';if($('body').hasClass('path-search')){label=$('.search-form.google-cse').find('label').text();$('.search-form.google-cse .form-search.form-text').attr('aria-label',label);var observer=new MutationObserver(function(mutations){if($("#google-cse-results .gsc-refinementBlock").length){$('#google-cse-results .gsc-refinementBlock').attr('role','tablist');$('#google-cse-results table.gsc-above-wrapper-area-container').prepend('<thead class="visually-hidden"><tr><th>Search result info</th><th>Search query used</th></tr></thead>');$('#google-cse-results .gsc-refinementBlock .gsc-refinementHeader').each(function(){var label=$(this).find('span').text();$(this).attr("aria-label",label);});observer.disconnect();}});observer.observe(document.querySelector("#google-cse-results"),{childList:true,subtree:true});}$('#google-cse-results b').each(function(){$(this).replaceWith(function(){return "<strong>"+this.innerHTML+"</strong>";});});});$(document).ready(function(){$('input').each(function(){if($(this).attr('required')=='required')$(this).removeAttr('aria-required');});});if($('body').hasClass('path-items-for-sale'))$('.items-for-sale--search .bef-exposed-form > fieldset').remove();var count_id=1;$('[id]').each(function(){var ids=$('[id="'+this.id+'"]');var id=this.id;if(ids.length>1&&ids[0]==this&&id.match(/\d+$/)==null){$('#'+id).attr('id',id+'-'+count_id);count_id++;}});document.querySelectorAll('.paragraph--type--link-group-8-with-images').forEach(function(link_group){link_group.querySelectorAll('.carousel-control').forEach(function(carousel_control){if(carousel_control.href!=link_group.querySelector('.image-carousel').id)carousel_control.href='#'+link_group.querySelector('.image-carousel').id;});});if($('body').hasClass('path-items-for-sale'))$('.items-for-sale--filters .form-radios .form-type-radio').each(function(){var id=$(this).find('input').attr('id');$(this).find('label').attr('for',id);});$('body .paragraph--type--media-with-text').each(function(){var $mediaWithText=$(this);var title=$mediaWithText.find('.media-title').text();var $readMoreBtn=$mediaWithText.find('.btn-icon-green-border');});$('.paragraph .media-video-oembed-with-text iframe').each(function(){$(this).removeAttr('width height frameborder');});$('.path-news').find('.search-keywords .form-submit').attr('aria-label',Drupal.t('Search News Listings')).on('click',function(){setTimeout(function(){$('.view-empty h2').attr('tabindex','-1').focus();$('p.search-result-text').attr('tabindex','-1').focus();},2000);});$('.blog-listing').find('.search-keywords .form-submit').attr('aria-label',Drupal.t('Search Blog Listings')).on('click',function(){setTimeout(function(){$('.view-empty h2').attr('tabindex','-1').focus();$('p.search-result-text').attr('tabindex','-1').focus();},2000);});$('.blog-listing .search-result-text').attr('tabindex','-1').focus();$('input[type="checkbox"]').on('focus',function(){$(this).parent().find('label').addClass('focused-on');$(this).parent().addClass('focused-checkbox-parent');}).on('focusout',function(){$(this).parent().find('label').removeClass('focused-on');$(this).parent().removeClass('focused-checkbox-parent');});$('input[type="radio"]').on('focus',function(){$(this).parent().find('label').addClass('focused-on');}).on('focusout',function(){$(this).parent().find('label').removeClass('focused-on');});$(once('accessibilityFixesCustomLink','.atc-custom-link',context)).on('click',function(e){e.preventDefault();$(this).parent('.custom-link-container').toggleClass('open-tab');});$(document).on('blur','.atcb-item-link',function(){setTimeout(function(){if(!($('.atcb-item-link').is(':focus')))if($('.custom-link-container').hasClass('open-tab'))$('.custom-link-container').removeClass('open-tab');else{if($('.addtocalendar').hasClass('open'))$('.addtocalendar').removeClass('open');}},100);});$(document).ready(function(){document.querySelectorAll('.addtocalendar').forEach((span)=>
6{if(span.querySelectorAll('.atcb-list').length>1)span.removeChild(span.querySelector('.atcb-list'));});document.querySelectorAll('.atcb-item-link').forEach((link)=>{let raw_string=link.href.slice(link.href.indexOf('[description]=')+'[description]='.length);let cut_string=raw_string.slice(0,raw_string.indexOf('&e[0]'));if(cut_string.length>7000){let new_string=cut_string.slice(0,7000);let new_href=link.href.replace(cut_string,new_string);link.href=new_href;}});});$(once("accessibilityFixesShare",'.share-button, .atc-custom-link',context)).on('click',function(){var $toggle=$(this);if($toggle.attr('aria-pressed')=='false')$toggle.attr('aria-pressed','true');else $toggle.attr('aria-pressed','false');});$('.campus-buildings--inner .view-empty > h2').attr('tabindex','-1').focus();$('.campus-buildings--inner .search-result-text').attr('tabindex','-1').focus();if($('.path-academic-programs div.view-empty h2').is(':visible'))$('.path-academic-programs div.view-empty h2').attr('tabindex','-1').trigger("focus");$(document).ready(function(){$('.research_unit_vertical .col-xl-9 details, .featured_news_vertical .col-xl-9 details, .featured_blog_vertical .col-xl-9 details').remove();});$(document).ready(function(){$('article.media.media--type-image.media--view-mode-vertical').each(function(){$(this).replaceWith(function(){return '<div>'+this.innerHTML+'</div>';});});});$(document).ready(function(){if($('.webform-submission-form').length){$(".webform-submission-form [required='required']",context).on('invalid',function(){$('.webform-submission-form').attr({'aria-live':'assertive'});if(this.validity.valueMissing){if($(this).is('textarea'))var labelText=$(this).parent().prev().text();else var labelText=$(this).prev().text();labelText=labelText.replace(/\*$/,'');this.setCustomValidity(labelText+Drupal.t('input is not filled.'));$(this).attr({'aria-invalid':'true'});}else{this.setCustomValidity("");$(this).attr({'aria-invalid':'false'});}});if($('.messages.messages--error').length>0){$('.messages.messages--error').attr('tabindex','0');var alertMessage=$('.messages.messages--error').html().trim().length;$(document).ready(function(){setTimeout(function(){if(alertMessage>0){$('.messages.messages--error').focus();$('.messages.messages--error').keydown(function(e){var keyCode=e.keyCode||e.which;if(keyCode==9){$('input.error').first().focus();e.preventDefault();}e.stopPropagation();});}},500);});}}});$(document).ready(function(){$('.view-academic-calendar .view-filters--option #views-exposed-form-academic-calendar-page-1').prop('id','views-exposed-form-academic-calendar-page-1-2');});}};Drupal.behaviors.sitemapPage={attach:function(context,settings){if($('body').hasClass('path-sitemap')){$('#main-content').addClass('container');$('.layout-content').addClass('col-12 col-xl-10 mx-auto');}}};Drupal.behaviors.callToActionAnalyticsCategories={attach:function(context,settings){function getCallToActionTextCategory(element_inner_text){let regex_objects_by_category_name={'apply_now':new RegExp(/apply\s(now)?/,'i'),'visit_campus':new RegExp(/visit\s(campus)?/,'i'),'request_info':new RegExp(/request\sinfo/,'i')};for(const category_name in regex_objects_by_category_name)if(regex_objects_by_category_name[category_name].test(element_inner_text))return category_name;return '';}function getCallToActionHrefCategory(element_href){let regex_objects_by_category_name={'apply_now':new RegExp(/apply(\-)?(now)?/,'i'),'visit_campus':new RegExp(/visit(\-)?(campus)?/,'i'),'request_info':new RegExp(/request\-info/,'i')};for(const category_name in regex_objects_by_category_name)if(regex_objects_by_category_name[category_name].test(element_href))return category_name;return '';}const cta_query_selectors=['.call-to-action-holder a','.paragraph--type--_-buttons-call-to-action a.btn-cta','.field--name-field-call-to-action a','.cta-item a.btn','.paragraph-full-width-image-link a','.explore-button-holder a.day-in-life-slider-cta-link','.paragraph-single-column-content-1 .text-formatted a'];for(const cta_query_selector of cta_query_selectors){let category='';let cta_query=document.querySelectorAll(cta_query_selector);if(!cta_query)continue;if(!cta_query.length)continue;for(const cta_button of cta_query){if(cta_button.innerText.trim())category=getCallToActionTextCategory(cta_button.innerText.trim());if(!category)category=getCallToActionHrefCategory(cta_button.href);if(!category){console.log('callToActionAnalyticsCategories: '+cta_button.innerText+' does not fit a known CTA category');continue;}cta_button.setAttribute('data-analytics','cta_button_'+category);}}}};}(jQuery,Drupal,once));;
7(function($,Drupal){'use strict';Drupal.behaviors.profile={attach:function(context,settings){if($('body').hasClass('page-node-type-profile')){$('.profile-social-media-twitter-link').attr('aria-label','Follow me on Twitter');$('.profile-social-media-facebook-link').attr('aria-label','Follow me on Facebook');$('.profile-social-media-linkedin-link').attr('aria-label','Follow me on Linkedin');$('.profile-social-media-instagram-link').attr('aria-label','Follow me on Instagram');$('.profile-social-media-tumblr-link').attr('aria-label','Follow me on Tumblr');$('.profile-phone .field__item a').attr('aria-describedby','profile-phone-label');$('.profile-fax .field__item a').attr('aria-describedby','profile-fax-label');}}};Drupal.behaviors.campusBuildings={attach:function(context,settings){if($('body').hasClass('page-node-type-campu
7s-building')){$('.field--name-field-occupants .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');$('.field--name-field-features .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');$('.field--name-field-maps .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');$('.field--name-field-description .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');$('.field--name-field-details .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');$('.field--name-field-address .field__label').contents().wrap('<h2 class="field__heading m-0"></h2>');}if($('body').hasClass('path-campus-buildings')){$('details.form-item span:contains("Department")').wrap('<h2 class="dept-filter-label"></h2>');$('details.form-item span:contains("Facility Features ")').wrap('<h2 class="facility-features-filter-label"></h2>');$('.campus-buildings--search #views-exposed-form-campus-buildings-campus-buildings input#edit-submit-campus-buildings').attr('value','Submit');$('.campus-buildings--search #views-exposed-form-campus-buildings-campus-buildings input#edit-submit-campus-buildings').attr('aria-label','Search Campus Buildings');}}};Drupal.behaviors.academicCalendar={attach:function(context,settings){if($('body').hasClass('path-academic-calendar')){$('details.form-item span:contains("Filter by:")').wrap('<h2 class="filter-by-label"></h2>');$('.view-filters--fulltext form#views-exposed-form-academic-calendar-page-1 input.form-submit').attr('value','Submit');$('.view-filters--fulltext form#views-exposed-form-academic-calendar-page-1 input.form-submit').attr('aria-label','Search the Academic Calendar');}}};Drupal.behaviors.facultyExpert={attach:function(context,settings){if($('body').hasClass('path-expert')){$('form#views-exposed-form-faculty-experts-faculty-search input#edit-faculty-name').attr('aria-label','Search Faculty Expert');$('form#views-exposed-form-faculty-experts-faculty-search input#edit-submit-faculty-expert-search').attr('aria-label','Search Faculty Expert');}}};Drupal.behaviors.eventsCalendar={attach:function(context,settings){if($('body').hasClass('path-calendar')){$('form#views-exposed-form-events-calendar-event-calendar-month input#edit-submit-events-calendar').attr('title','Submit Button').attr('aria-label','Search Events by Month');$('form#views-exposed-form-events-calendar-event-calendar-week input#edit-submit-events-calendar').attr('title','Submit Button').attr('aria-label','Search Events by Week');$('form#views-exposed-form-events-calendar-event-calendar-day input#edit-submit-events-calendar').attr('title','Submit Button').attr('aria-label','Search Events by Day');$('form#views-exposed-form-events-calendar-event-calendar-month span.trigger-user-link').attr('tabindex','0');$('form#views-exposed-form-events-calendar-event-calendar-week span.trigger-user-link').attr('tabindex','0');$('form#views-exposed-form-events-calendar-event-calendar-day span.trigger-user-link').attr('tabindex','0');$('.view-id-events_calendar .view-filters .form-item-filter-by select#edit-filter-by').attr('title','Filter by');}}};Drupal.behaviors.itemsForSale={attach:function(context,settings){if($('body').hasClass('path-items-for-sale')){$('.items-for-sale--search form#views-exposed-form-items-for-sale-items-for-sale-page input#edit-submit-items-for-sale').attr('value','Submit');$('.items-for-sale--search form#views-exposed-form-items-for-sale-items-for-sale-page input#edit-submit-items-for-sale').attr('aria-label','Search Items for Sale');$('#items-for-sale--search fieldset #edit-bef-sort-options:hidden').parent().hide();}}};Drupal.behaviors.researchUnits={attach:function(context,settings){if($('body').hasClass('path-research-units')){$('form#views-exposed-form-research-units-page label').remove();$('form#views-exposed-form-research-units-page input#edit-search').attr('aria-label','Search Research Units');$('form#views-exposed-form-research-units-page input#edit-submit-research-units').attr('aria-label','Search Research Units');}}};Drupal.behaviors.facultyProfile={attach:function(context,settings){if($('body').hasClass('path-faculty-profile-search')){$('form#views-exposed-form-faculty-profile-directory-search-profile-search input#edit-faculty-name').attr('aria-label','Search Faculty Profiles');$('form#views-exposed-form-faculty-profile-directory-search-profile-search input#edit-submit-faculty-expert-search').attr('aria-label','Search Faculty Profiles');}}};Drupal.behaviors.academicProgram={attach:function(context,settings){if($('body').hasClass('path-academic-programs')){$('form[id="views-exposed-form-academic-programs-index-new-academic-programs"] input#edit-search-api-fulltext').attr('placeholder','Search Academic Programs');$('form[id="views-exposed-form-academic-programs-index-new-academic-programs"] input#edit-search-api-fulltext').attr('title','Search Academic Programs');$('form[id^="views-exposed-form-academic-programs-index-new-academic-programs"] input#edit-submit-academic-programs-index-new').attr('aria-label','Search Academic Programs');$('.view-academic-programs-index-new .field--name-field-media-image img').attr('alt','');document.querySelectorAll('.academic-programs-filter-label').forEach(function(label){let select_field=label.nextElementSibling.querySelector('.form-select');if(document.querySelector('#edit-field-degree-type')&&document.querySelector('#edit-field-degree-type').value=='undergraduate'&&label.id.indexOf('prefix')==-1)select_field=label.nextElementSibling.nextElementSibling.querySelector('.form-select');label.setAttribute('for',select_field.id);label.style.margin='0 0 0 0';});if(document.querySelector('#edit-field-degree-type'))document.querySelector('#edit-field-degree-type').addEventListener('input',function(event){let fragment=event.target.value=='undergraduate'?'-un-':'-';let attributes_by_id={'field-label-degree-type':'edit-field-degree-type'+fragment+'target-id','field-label-topic':'edit-field-topic-'+event.target.value+'-target-id'};
7Object.keys(attributes_by_id).forEach(function(id){document.querySelector('#'+id).setAttribute('for',attributes_by_id[id]);});});}}};Drupal.behaviors.news={attach:function(context,settings){if($('body').hasClass('path-news')){$('form#views-exposed-form-news-news .form-item-search label').hide();$('.view-header input.form-submit').attr('value','Submit');}}};Drupal.behaviors.coa_estimator_costs_toggle={attach:function(context,settings){document.querySelectorAll('select.pdxd8-coa-program').forEach((select_program)=>{if(select_program.getAttribute('aria-invalid')){let custom_cost_radio=select_program.parentElement.parentElement.querySelector('fieldset.use-custom-costs-radios input[value="1"]');let custom_cost_fieldset=null;let error_message_el=null;if(custom_cost_radio&&custom_cost_radio.checked){custom_cost_fieldset=document.getElementById(custom_cost_radio.parentElement.parentElement.id.replace('use-custom-costs-','col-fieldset-'));if(custom_cost_fieldset)custom_cost_fieldset.classList.add('toggled-open');}error_message_el=document.getElementById('calculator'+select_program.getAttribute('name').replace('pdxd8','').replace(/\_/g,'-')+'-required');if(error_message_el){select_program.setAttribute('aria-describedby',error_message_el.id);select_program.addEventListener('change',function(event){if(event.target.getAttribute('aria-describedby'))event.target.removeAttribute('aria-describedby');});}select_program.focus();}});}};Drupal.behaviors.global={attach:function(context,settings){if($('body').hasClass('path-search')){$('form#search-form input.form-text').attr('aria-label','Search PDX.edu');$('form#search-form input.form-text').attr('placeholder','Search PDX.edu');$('form#search-form input.form-text').attr('type','search');$('form#search-form input.search-button').attr('aria-label','Search');$('div.view-psu-search-terms-view img').attr('alt','');}$('div.global-banner-content a').attr('tabindex','-1');$('form#google-custom-search-form input.form-text').attr('aria-label','Search PDX.edu');$('form#google-custom-search-form input.form-text').attr('placeholder','Search PDX.edu');$('form#google-custom-search-form input.form-text').attr('type','search');$('form#google-custom-search-form input.form-submit').attr('aria-label','Search');$('form#google-custom-search-form--2 input.form-text').attr('aria-label','Search PDX.edu');$('form#google-custom-search-form--2 input.form-text').attr('placeholder','Search PDX.edu');$('form#google-custom-search-form--2 input.form-text').attr('type','search');$('form#google-custom-search-form--2 input.form-submit').attr('aria-label','Search');$('div.paragraph-3-images-call-to-action .field--name-field-media-image img').attr('alt','');$('div.paragraph-2-images-cta-content .field--name-field-image img').attr('alt','');$('div.paragraph-link-group-6-collage-with-images .field--name-field-media-image img').attr('alt','');$('div.upcoming_event_horizontal__left > .upcoming_event_horizontal__image img').attr('alt','');$('div.upcoming_event_horizontal__left > .upcoming_event_horizontal__image a').attr('tabindex','-1');$('div.upcoming_event_vertical .field--name-field-image img').attr('alt','');$('div.upcoming_event_vertical .field--name-field-image > a').attr('tabindex','-1');$('div.upcoming_event_circle .upcoming_event_circle__image img').attr('alt','');$('div.paragraph--type--featured-blog .featured_blog_vertical__image img').attr('alt','');$('div.paragraph--type--featured-blog .featured_blog_vertical__image a').attr('tabindex','-1');$('div.paragraph-link_image_4 .field--name-field-media-image img').attr('alt','');$('div.paragraph-eight-plus-image .link-group-item-image img').attr('alt','');$('div.paragraph-full-width-image-link .field--name-field-media-image img').attr('alt','');$('div.paragraph--type--multiple-display .field--name-field-media-image img').attr('alt','');$('div.paragraph-quicklinks-item .field--name-field-media-image img').attr('alt','');$('div.paragraph--type--multiple-display-carousel-item img.image-style-multiple-display-carousel').attr('alt','');$('footer nav ul li a').each(function(){$(this).attr('aria-describedby',$(this).parent().parent().parent().parent().find('h2').attr('id'));});$('#block-psufootercontact #block-psufootercontact-collapse-mobile').each(function(){var firstPhoneId=$('#block-psufootercontact-collapse-mobile p').first().text().replace(/\s+/g,'-').toLowerCase();var secondPhoneId=$('#block-psufootercontact-collapse-mobile p:nth-child(3)').text().replace(/\s+/g,'-').toLowerCase();$('#block-psufootercontact-collapse-mobile p').first().attr('id',firstPhoneId);$('#block-psufootercontact-collapse-mobile p:nth-child(3)').attr('id',secondPhoneId);$('#block-psufootercontact-collapse-mobile p:nth-child(2) a').attr('aria-describedby',firstPhoneId);$('#block-psufootercontact-collapse-mobile p:nth-child(4) a').attr('aria-describedby',secondPhoneId);});$('#navbarDropdown-mypsu').attr('aria-label','myPSU');$('#navbarDropdown-mypsu-mobile').attr('aria-label','myPSU');function siteBrandAriaVisiblity(pixel_width){if(pixel_width>=1200)if(document.querySelector('.main-site-brand')){$('.main-site-brand .site-logo.navbar-brand').attr('aria-hidden','true');$('.primary-navigation .site-logo-nav-link-header-xl').attr('aria-hidden','false');$('.main-site-branding-md .site-logo-nav-link-header-md').attr('aria-hidden','true');}
7else if(document.querySelector('.sub-site-brand')){$('.sub-site-brand .site-logo.navbar-brand').attr('aria-hidden','false');$('.primary-navigation .college-site-name-xl a').attr('aria-hidden','false');$('.sub-site-branding-md-sm .college-site-name-md-sm a').attr('aria-hidden','true');}else console.log('XL branding elements not found');else if(pixel_width>=992&&pixel_width<1200)if(document.querySelector('.main-site-brand')){$('.main-site-brand .site-logo.navbar-brand').attr('aria-hidden','true');$('.primary-navigation .site-logo-nav-link-header-xl').attr('aria-hidden','true');$('.main-site-branding-md .site-logo-nav-link-header-md').attr('aria-hidden','false');}else if(document.querySelector('.sub-site-brand')){$('.sub-site-brand .site-logo.navbar-brand').attr('aria-hidden','false');$('.primary-navigation college-site-name-xl a').attr('aria-hidden','true');$('.sub-site-branding-md-sm .college-site-name-md-sm a').attr('aria-hidden','false');}else console.log('LG branding elements not found');else if(document.querySelector('.main-site-brand')){$('.main-site-brand .site-logo.navbar-brand').attr('aria-hidden','false');$('.primary-navigation .site-logo-nav-link-header-xl').attr('aria-hidden','true');$('.main-site-branding-md .site-logo-nav-link-header-md').attr('aria-hidden','true');}else if(document.querySelector('.sub-site-brand')){$('.sub-site-brand .site-logo.navbar-brand').attr('aria-hidden','false');$('.primary-navigation .college-site-name-xl a').attr('aria-hidden','true');$('.sub-site-branding-md-sm .college-site-name-md-sm a').attr('aria-hidden','false');}else console.log('MD branding elements not found');}function myPSUAriaVisibility(pixel_width){if(pixel_width>=992)$('#navbarDropdown-mypsu-mobile').parent().attr('aria-hidden','false');else $('#navbarDropdown-mypsu-mobile').parent().attr('aria-hidden','true');}siteBrandAriaVisiblity(window.innerWidth);myPSUAriaVisibility(window.innerWidth);$(window).on('orientationchange resize',function(e){siteBrandAriaVisiblity(window.innerWidth);myPSUAriaVisibility(window.innerWidth);});}};}(jQuery,Drupal));;
8var Menubutton=function(domNode){this.domNode=domNode;this.popupMenu=false;this.hasFocus=false;this.hasHover=false;this.keyCode=Object.freeze({'TAB':9,'RETURN':13,'ESC':27,'SPACE':32,'PAGEUP':33,'PAGEDOWN':34,'END':35,'HOME':36,'LEFT':37,'UP':38,'RIGHT':39,'DOWN':40});};Menubutton.prototype.init=function(){this.domNode.setAttribute('aria-haspopup','true');this.domNode.addEventListener('keydown',this.handleKeydown.bind(this));this.domNode.addEventListener('click',this.handleClick.bind(this));this.domNode.addEventListener('focus',this.handleFocus.bind(this));this.domNode.addEventListener('blur',this.handleBlur.bind(this));var popupMenu=document.getElementById(this.domNode.getAttribute('aria-controls'));if(popupMenu){this.popupMenu=new PopupMenuLinks(popupMenu,this);this.popupMenu.init();}};Menubutton.prototype.handleKeydown=function(event){var flag=false;switch(event.code){case 'Space':case 'Enter':case 'ArrowDown':if(this.popupMenu){this.popupMenu.open();this.popupMenu.setFocusToFirstItem();}flag=true;break;case 'ArrowUp':if(this.popupMenu){this.popupMenu.open();this.popupMenu.setFocusToLastItem();flag=true;}break;default:break;}if(flag){event.stopPropagation();event.preventDefault();}};Menubutton.prototype.handleClick=function(event){if(this.domNode.getAttribute('aria-expanded')=='true')this.popupMenu.close(true);else{this.popupMenu.open();this.popupMenu.setFocusToFirstItem();}};Menubutton.prototype.handleFocus=function(event){this.popupMenu.hasFocus=true;};Menubutton.prototype.handleBlur=function(event){this.popupMenu.hasFocus=false;};Menubutton.prototype.handleMouseover=function(event){this.hasHover=true;this.popupMenu.open();};Menubutton.prototype.handleMouseout=function(event){this.hasHover=false;setTimeout(this.popupMenu.close.bind(this.popupMenu,false),300);};;
9var MenuItemLinks=function(domNode,menuObj){this.domNode=domNode;this.menu=menuObj;this.keyCode=Object.freeze({'TAB':9,'RETURN':13,'ESC':27,'SPACE':32,'PAGEUP':33,'PAGEDOWN':34,'END':35,'HOME':36,'LEFT':37,'UP':38,'RIGHT':39,'DOWN':40});};MenuItemLinks.prototype.init=function(){this.domNode.tabIndex=-1;if(!this.domNode.getAttribute('role'))this.domNode.setAttribute('role','menuitem');this.domNode.addEventListener('keydown',this.handleKeydown.bind(this));this.domNode.addEventListener('click',this.handleClick.bind(this));this.domNode.addEventListener('focus',this.handleFocus.bind(this));this.domNode.addEventListener('blur',this.handleBlur.bind(this));this.domNode.addEventListener('mouseover',this.handleMouseover.bind(this));this.domNode.addEventListener('mouseout',this.handleMouseout.bind(this));};MenuItemLinks.prototype.handleKeydown=function(event){var flag=false,char=event.key;function isPrintableCharacter(str){return str.length===1&&str.match(/\S/);}if(event.ctrlKey||event.altKey||event.metaKey||(event.code==='Space')||(event.code==='Enter'))return;if(event.shiftKey){if(isPrintableCharacter(char)){this.menu.setFocusByFirstCharacter(this,char);flag=true;}if(event.code==='Tab'){this.menu.setFocusToController();this.menu.close(true);}}else switch(event.code){case 'Escape':this.menu.setFocusToController();this.menu.close(true);flag=true;break;case 'ArrowUp':this.menu.setFocusToPreviousItem(this);flag=true;break;case 'ArrowDown':this.menu.setFocusToNextItem(this);flag=true;break;case 'Home':case 'Numpad9':this.menu.setFocusToFirstItem();flag=true;break;case 'End':case 'Numpad3':this.menu.setFocusToLastItem();flag=true;break;case 'Tab':this.menu.setFocusToController();this.menu.close(true);break;default:if(isPrintableCharacter(char))this.menu.setFocusByFirstCharacter(this,char);break;}if(flag){event.stopPropagation();event.preventDefault();}};MenuItemLinks.prototype.handleClick=function(event){this.menu.setFocusToController();this.menu.close(true);};MenuItemLinks.prototype.handleFocus=function(event){this.menu.hasFocus=true;};MenuItemLinks.prototype.handleBlur=function(event){this.menu.hasFocus=false;setTimeout(this.menu.close.bind(this.menu,false),300);};MenuItemLinks.prototype.handleMouseover=function(event){this.menu.hasHover=true;this.menu.open();};MenuItemLinks.prototype.handleMouseout=function(event){this.menu.hasHover=false;setTimeout(this.menu.close.bind(this.menu,false),300);};;
10var PopupMenuLinks=function(domNode,controllerObj){var elementChildren,msgPrefix='PopupMenuLinks constructor argument domNo
10de ';if(!domNode instanceof Element)throw new TypeError(msgPrefix+'is not a DOM Element.');if(domNode.childElementCount===0)throw new Error(msgPrefix+'has no element children.');var childElement=domNode.firstElementChild;while(childElement){var menuitem=childElement.firstElementChild;if(menuitem&&menuitem.tagName!=='A')throw new Error(msgPrefix+'has descendant elements that are not A elements.');childElement=childElement.nextElementSibling;}this.domNode=domNode;this.controller=controllerObj;this.menuitems=[];this.firstChars=[];this.firstItem=null;this.lastItem=null;this.hasFocus=false;this.hasHover=false;};PopupMenuLinks.prototype.init=function(){var childElement,menuElement,menuItem,textContent,numItems,label;this.domNode.tabIndex=-1;this.domNode.setAttribute('role','menu');if(!this.domNode.getAttribute('aria-labelledby')&&!this.domNode.getAttribute('aria-label')&&!this.domNode.getAttribute('title')){label=this.controller.domNode.innerHTML;this.domNode.setAttribute('aria-label',label);}this.domNode.addEventListener('mouseover',this.handleMouseover.bind(this));this.domNode.addEventListener('mouseout',this.handleMouseout.bind(this));childElement=this.domNode.firstElementChild;while(childElement){menuElement=childElement.firstElementChild;if(menuElement&&menuElement.tagName==='A'){menuItem=new MenuItemLinks(menuElement,this);menuItem.init();this.menuitems.push(menuItem);textContent=menuElement.textContent.trim();this.firstChars.push(textContent.substring(0,1).toLowerCase());}childElement=childElement.nextElementSibling;}numItems=this.menuitems.length;if(numItems>0){this.firstItem=this.menuitems[0];this.lastItem=this.menuitems[numItems-1];}};PopupMenuLinks.prototype.handleMouseover=function(event){this.hasHover=true;};PopupMenuLinks.prototype.handleMouseout=function(event){this.hasHover=false;setTimeout(this.close.bind(this,false),300);};PopupMenuLinks.prototype.setFocusToController=function(command){if(typeof command!=='string')command='';if(command==='previous')this.controller.menubar.setFocusToPreviousItem(this.controller);else if(command==='next')this.controller.menubar.setFocusToNextItem(this.controller);else this.controller.domNode.focus();};PopupMenuLinks.prototype.setFocusToFirstItem=function(){this.firstItem.domNode.focus();};PopupMenuLinks.prototype.setFocusToLastItem=function(){this.lastItem.domNode.focus();};PopupMenuLinks.prototype.setFocusToPreviousItem=function(currentItem){var index;if(currentItem===this.firstItem)this.lastItem.domNode.focus();else{index=this.menuitems.indexOf(currentItem);this.menuitems[index-1].domNode.focus();}};PopupMenuLinks.prototype.setFocusToNextItem=function(currentItem){var index;if(currentItem===this.lastItem)this.firstItem.domNode.focus();else{index=this.menuitems.indexOf(currentItem);this.menuitems[index+1].domNode.focus();}};PopupMenuLinks.prototype.setFocusByFirstCharacter=function(currentItem,char){var start,index,char=char.toLowerCase();start=this.menuitems.indexOf(currentItem)+1;if(start===this.menuitems.length)start=0;index=this.getIndexFirstChars(start,char);if(index===-1)index=this.getIndexFirstChars(0,char);if(index>-1)this.menuitems[index].domNode.focus();};PopupMenuLinks.prototype.getIndexFirstChars=function(startIndex,char){for(var i=startIndex;i<this.firstChars.length;i++)if(char===this.firstChars[i])return i;return -1;};PopupMenuLinks.prototype.open=function(){var rect=this.controller.domNode.getBoundingClientRect();this.domNode.style.display='block';this.domNode.style.position='absolute';this.domNode.style.top=rect.height+'px';this.domNode.style.left='0px';this.controller.domNode.setAttribute('aria-expanded','true');};PopupMenuLinks.prototype.close=function(force){if(force||(!this.hasFocus&&!this.hasHover&&!this.controller.hasHover)){this.domNode.style.display='none';this.controller.domNode.removeAttribute('aria-expanded');}};;
11!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("simpleParallax",[],t):"object"==typeof exports?exports.simpleParallax=t():e.simpleParallax=t();}(window,function(){return (n={},s.m=i=[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];
11n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}i.r(t);var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.positions={top:0,bottom:0,height:0};}return function(e,t,i){t&&n(e.prototype,t),i&&n(e,i);}(e,[{key:"setViewportTop",value:function(){return this.positions.top=window.pageYOffset,this.positions;}},{key:"setViewportBottom",value:function(){return this.positions.bottom=this.positions.top+this.positions.height,this.positions;}},{key:"setViewportHeight",value:function(){return this.positions.height=document.documentElement.clientHeight,this.positions;}},{key:"setViewportAll",value:function(){return this.positions.top=window.pageYOffset,this.positions.bottom=this.positions.top+this.positions.height,this.positions.height=document.documentElement.clientHeight,this.positions;}}]),e;}(),o=function(e){return NodeList.prototype.isPrototypeOf(e)?e:HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):[e];},r=function(){for(var e,t="transform webkitTransform mozTransform oTransform msTransform".split(" "),i=0;void 0===e;)e=void 0!==document.createElement("div").style[t[i]]?t[i]:void 0,i++;return e;}(),a=function(e){return !!e&&(!!e.complete&&(void 0===e.naturalWidth||0!==e.naturalWidth));};function l(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i;}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e);}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}();}function h(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}var u=function(){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,i),this.element=e,this.elementContainer=e,this.settings=t,this.isVisible=!0,this.isInit=!1,this.oldTranslateValue=-1,this.init=this.init.bind(this),a(e)?this.init():this.element.addEventListener("load",this.init);}return function(e,t,i){t&&h(e.prototype,t),i&&h(e,i);}(i,[{key:"init",value:function(){this.isInit||(!1===this.settings.overflow&&this.wrapElement(this.element),this.setStyle(),this.getElementOffset(),this.intersectionObserver(),this.getTranslateValue(),this.animate(),this.isInit=!0);}},{key:"wrapElement",value:function(){var e=this.element.closest("picture")||this.element,t=document.createElement("div");t.classList.add("simpleParallax"),t.style.overflow="hidden",e.parentNode.insertBefore(t,e),t.appendChild(e),this.elementContainer=t;}},{key:"unWrapElement",value:function(){var e=this.elementContainer;e.replaceWith.apply(e,l(e.childNodes));}},{key:"setStyle",value:function(){!1===this.settings.overflow&&(this.element.style[r]="scale("+this.settings.scale+")"),0<this.settings.delay&&(this.element.style.transition="transform "+this.settings.delay+"s "+this.settings.transition),this.element.style.willChange="transform";}},{key:"unSetStyle",value:function(){this.element.style.willChange="",this.element.style[r]="",this.element.style.transition="";}},{key:"getElementOffset",value:function(){var e=this.elementContainer.getBoundingClientRect();this.elementHeight=e.height,this.elementTop=e.top+m.positions.top,this.elementBottom=this.elementHeight+this.elementTop;}},{key:"buildThresholdList",value:function(){for(var e=[],t=1;t<=this.elementHeight;t++){var i=t/this.elementHeight;e.push(i);}return e;}},{key:"intersectionObserver",value:function(){var e={root:null,threshold:this.buildThresholdList()};this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),e),this.observer.observe(this.element);}},{key:"intersectionObserverCallback",value:function(e){for(var t=e.length-1;0<=t;t--)e[t].isIntersecting?this.isVisible=!0:this.isVisible=!1;}},{key:"checkIfVisible",value:function(){return this.elementBottom>m.positions.top&&this.elementTop<m.positions.bottom;}},{key:"getRangeMax",value:function(){var e=this.element.clientHeight;this.rangeMax=e*this.settings.scale-e;}},{key:"getTranslateValue",value:function(){var e=((m.positions.bottom-this.elementTop)/((m.positions.height+this.elementHeight)/100)).toFixed(1);return e=Math.min(100,Math.max(0,e)),this.oldPercentage!==e&&(this.rangeMax||this.getRangeMax(),this.translateValue=(e/100*this.rangeMax-this.rangeMax/2).toFixed(0),this.oldTranslateValue!==this.translateValue&&(this.oldPercentage=e,this.oldTranslateValue=this.translateValue,!0));}},{key:"animate",value:function(){var e,t=0,i=0;(this.settings.orientation.includes("left")||this.settings.orientation.includes("right"))&&(i=(this.settings.orientation.includes("left")?-1*this.translateValue:this.translateValue)+"px"),(this.settings.orientation.includes("up")||this.settings.orientation.includes("down"))&&(t=(this.settings.orientation.includes("up")?-1*this.translateValue:this.translateValue)+"px"),e=!1===this.settings.overflow?"translate3d("+i+", "+t+", 0) scale("+this.settings.scale+")":"translate3d("+i+", "+t+", 0)",this.element.style[r]=e;}}]),i;}();function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];
11n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}i.d(t,"viewport",function(){return m;}),i.d(t,"default",function(){return y;});var f,p,m=new s(),d=!0,g=!1,v=[],y=function(){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,i),e&&(this.elements=o(e),this.defaults={delay:.4,orientation:"up",scale:1.3,overflow:!1,transition:"cubic-bezier(0,0,0,1)",breakpoint:!1},this.settings=Object.assign(this.defaults,t),this.settings.breakpoint&&document.documentElement.clientWidth<=this.settings.breakpoint||(!1 in window&&(d=!1),this.lastPosition=-1,this.handleResize=this.handleResize.bind(this),this.proceedRequestAnimationFrame=this.proceedRequestAnimationFrame.bind(this),this.init()));}return function(e,t,i){t&&c(e.prototype,t),i&&c(e,i);}(i,[{key:"init",value:function(){m.setViewportAll();for(var e=this.elements.length-1;0<=e;e--){var t=new u(this.elements[e],this.settings);v.push(t);}f=v.length,g||(this.proceedRequestAnimationFrame(),window.addEventListener("resize",this.handleResize),g=!0);}},{key:"handleResize",value:function(){m.setViewportAll(),this.settings.breakpoint&&document.documentElement.clientWidth<=this.settings.breakpoint&&this.destroy();for(var e=f-1;0<=e;e--)v[e].getElementOffset(),v[e].getRangeMax();}},{key:"proceedRequestAnimationFrame",value:function(){if(m.setViewportTop(),this.lastPosition!==m.positions.top){m.setViewportBottom();for(var e=f-1;0<=e;e--)this.proceedElement(v[e]);p=window.requestAnimationFrame(this.proceedRequestAnimationFrame),this.lastPosition=m.positions.top;}else p=window.requestAnimationFrame(this.proceedRequestAnimationFrame);}},{key:"proceedElement",value:function(e){(d?e.isVisible:e.checkIfVisible())&&e.getTranslateValue()&&e.animate();}},{key:"destroy",value:function(){for(var e=[],t=f-1;0<=t;t--)for(var i=this.elements.length-1;0<=i;i--)if(v[t].element===this.elements[i]){e.push(t);break;}for(var n=0;n<e.length;n++){var s=e[n];v[s].unSetStyle(),!1===this.settings.overflow&&v[s].unWrapElement(),v=v.slice(0,s).concat(v.slice(s+1,v.length));}(f=v.length)||(window.cancelAnimationFrame(p),window.removeEventListener("resize",this.handleResize));}}]),i;}();}],s.c=n,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i});},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(i,n,function(e){return t[e];}.bind(null,n));return i;},s.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return s.d(t,"a",t),t;},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},s.p="",s(s.s=0)).default;function s(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports;}var i,n;});;
12;(function(factory){'use strict';if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof exports!=='undefined')module.exports=factory(require('jquery'));else factory(jQuery);}(function($){'use strict';var Slick=window.Slick||{};Slick=(function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:true,adaptiveHeight:false,appendArrows:$(element),appendDots:$(element),arrows:true,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('<button type="button" />').text(i+1);},dots:false,dotsClass:'slick-dots',draggable:true,easing:'linear',edgeFriction:0.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:'ondemand',mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:'window',responsive:null,rows:1,rtl:false,slide:'',slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1000};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
12sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.focussed=false;_.interrupted=false;_.hidden='hidden';_.paused=true;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=true;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange='visibilitychange';_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data('slick')||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=='undefined'){_.hidden='mozHidden';_.visibilityChange='mozvisibilitychange';}else{if(typeof document.webkitHidden!=='undefined'){_.hidden='webkitHidden';_.visibilityChange='webkitvisibilitychange';}}_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(true);}return Slick;}());Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find('.slick-active').attr({'aria-hidden':'false'}).find('a, input, button, select').attr({'tabindex':'0'});};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof (index)==='boolean'){addBefore=index;index=null;}else{if(index<0||(index>=_.slideCount))return false;}_.unload();if(typeof (index)==='number')if(index===0&&_.$slides.length===0)$(markup).appendTo(_.$slideTrack);else if(addBefore)$(markup).insertBefore(_.$slides.eq(index));else $(markup).insertAfter(_.$slides.eq(index));else if(addBefore===true)$(markup).prependTo(_.$slideTrack);else $(markup).appendTo(_.$slideTrack);_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr('data-slick-index',index);});_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.animate({height:targetHeight},_.options.speed);}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===true&&_.options.vertical===false)targetLeft=-targetLeft;if(_.transformsEnabled===false)if(_.options.vertical===false)_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback);else _.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback);else if(_.cssTransitions===false){if(_.options.rtl===true)_.currentLeft=-(_.currentLeft);$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===false){animProps[_.animType]='translate('+now+'px, 0px)';_.$slideTrack.css(animProps);}else{animProps[_.animType]='translate(0px,'+now+'px)';_.$slideTrack.css(animProps);}},complete:function(){if(callback)callback.call();}});}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===false)animProps[_.animType]='translate3d('+targetLeft+'px, 0px, 0px)';else animProps[_.animType]='translate3d(0px,'+targetLeft+'px, 0px)';_.$slideTrack.css(animProps);if(callback)setTimeout(function(){_.disableTransition();callback.call();},_.options.speed);}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null)asNavFor=$(asNavFor).not(_.$slider);return asNavFor;};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==='object')asNavFor.each(function(){var target=$(this).slick('getSlick');
12if(!target.unslicked)target.slideHandler(index,true);});};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false)transition[_.transitionType]=_.transformType+' '+_.options.speed+'ms '+_.options.cssEase;else transition[_.transitionType]='opacity '+_.options.speed+'ms '+_.options.cssEase;if(_.options.fade===false)_.$slideTrack.css(transition);else _.$slides.eq(slide).css(transition);};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow)_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed);};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer)clearInterval(_.autoPlayTimer);};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false)if(_.direction===1&&(_.currentSlide+1)===(_.slideCount-1))_.direction=0;else{if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0)_.direction=1;}}_.slideHandler(slideTo);}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===true){_.$prevArrow=$(_.options.prevArrow).addClass('slick-arrow');_.$nextArrow=$(_.options.nextArrow).addClass('slick-arrow');if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');_.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');if(_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.prependTo(_.options.appendArrows);if(_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.appendTo(_.options.appendArrows);if(_.options.infinite!==true)_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');}else _.$prevArrow.add(_.$nextArrow).addClass('slick-hidden').attr({'aria-disabled':'true','tabindex':'-1'});}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$slider.addClass('slick-dotted');dot=$('<ul />').addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1)dot.append($('<li />').append(_.options.customPaging.call(this,_,i)));_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find('li').first().addClass('slick-active');}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+':not(.slick-cloned)').addClass('slick-slide');_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr('data-slick-index',index).data('originalStyling',$(element).attr('style')||'');});_.$slider.addClass('slick-slider');_.$slideTrack=(_.slideCount===0)?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css('opacity',0);if(_.options.centerMode===true||_.options.swipeToSlide===true)_.options.slidesToScroll=1;$('img[data-lazy]',_.$slider).not('[src]').addClass('slick-loading');_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);if(_.options.draggable===true)_.$list.addClass('draggable');};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>0){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement('div');for(b=0;b<_.options.rows;b++){var row=document.createElement('div');for(c=0;c<_.options.slidesPerRow;c++){var target=(a*slidesPerSection+((b*_.options.slidesPerRow)+c));if(originalSlides.get(target))row.appendChild(originalSlides.get(target));}slide.appendChild(row);}newSlides.appendChild(slide);}_.$slider.empty().append(newSlides);_.$slider.children().children().children().css({'width':(100/_.options.slidesPerRow)+'%','display':'inline-block'});}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakp
12oint,respondToWidth,triggerBreakpoint=false;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==='window')respondToWidth=windowWidth;else if(_.respondTo==='slider')respondToWidth=sliderWidth;else{if(_.respondTo==='min')respondToWidth=Math.min(windowWidth,sliderWidth);}if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints)if(_.breakpoints.hasOwnProperty(breakpoint))if(_.originalSettings.mobileFirst===false){if(respondToWidth<_.breakpoints[breakpoint])targetBreakpoint=_.breakpoints[breakpoint];}else{if(respondToWidth>_.breakpoints[breakpoint])targetBreakpoint=_.breakpoints[breakpoint];}if(targetBreakpoint!==null)if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick')_.unslick(targetBreakpoint);else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);}triggerBreakpoint=targetBreakpoint;}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick')_.unslick(targetBreakpoint);else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);}triggerBreakpoint=targetBreakpoint;}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===true)_.currentSlide=_.options.initialSlide;_.refresh(initial);triggerBreakpoint=targetBreakpoint;}}if(!initial&&triggerBreakpoint!==false)_.$slider.trigger('breakpoint',[_,triggerBreakpoint]);}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is('a'))event.preventDefault();if(!$target.is('li'))$target=$target.closest('li');unevenOffset=(_.slideCount%_.options.slidesToScroll!==0);indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case 'previous':slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow)_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate);break;case 'next':slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow)_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate);break;case 'index':var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),false,dontAnimate);$target.children().trigger('focus');break;default:return;}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1])index=navigables[navigables.length-1];else for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break;}prevNavigable=navigables[n];}return index;};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$('li',_.$dots).off('click.slick',_.changeSlide).off('mouseenter.slick',$.proxy(_.interrupt,_,true)).off('mouseleave.slick',$.proxy(_.interrupt,_,false));if(_.options.accessibility===true)_.$dots.off('keydown.slick',_.keyHandler);}_.$slider.off('focus.slick blur.slick');if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off('click.slick',_.changeSlide);_.$nextArrow&&_.$nextArrow.off('click.slick',_.changeSlide);if(_.options.accessibility===true){_.$prevArrow&&_.$prevArrow.off('keydown.slick',_.keyHandler);_.$nextArrow&&_.$nextArrow.off('keydown.slick',_.keyHandler);}}_.$list.off('touchstart.slick mousedown.slick',_.swipeHandler);_.$list.off('touchmove.slick mousemove.slick',_.swipeHandler);_.$list.off('touchend.slick mouseup.slick',_.swipeHandler);
12_.$list.off('touchcancel.slick mouseleave.slick',_.swipeHandler);_.$list.off('click.slick',_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===true)_.$list.off('keydown.slick',_.keyHandler);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().off('click.slick',_.selectHandler);$(window).off('orientationchange.slick.slick-'+_.instanceUid,_.orientationChange);$(window).off('resize.slick.slick-'+_.instanceUid,_.resize);$('[draggable!=true]',_.$slideTrack).off('dragstart',_.preventDefault);$(window).off('load.slick.slick-'+_.instanceUid,_.setPosition);};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.off('mouseleave.slick',$.proxy(_.interrupt,_,false));};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>0){originalSlides=_.$slides.children().children();originalSlides.removeAttr('style');_.$slider.empty().append(originalSlides);}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===false){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault();}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$('.slick-cloned',_.$slider).detach();if(_.$dots)_.$dots.remove();if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.remove();}if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.remove();}if(_.$slides){_.$slides.removeClass('slick-slide slick-active slick-center slick-visible slick-current').removeAttr('aria-hidden').removeAttr('data-slick-index').each(function(){$(this).attr('style',$(this).data('originalStyling'));});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides);}_.cleanUpRows();_.$slider.removeClass('slick-slider');_.$slider.removeClass('slick-initialized');_.$slider.removeClass('slick-dotted');_.unslicked=true;if(!refresh)_.$slider.trigger('destroy',[_]);};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]='';if(_.options.fade===false)_.$slideTrack.css(transition);else _.$slides.eq(slide).css(transition);};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback)setTimeout(function(){_.disableTransition(slideIndex);callback.call();},_.options.speed);}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===false)_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing);else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2});}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off('focus.slick blur.slick').on('focus.slick blur.slick','*',function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){_.focussed=$sf.is(':focus');_.autoPlay();}},0);});};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide;};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===true)if(_.slideCount<=_.options.slidesToShow)++pagerQty;else while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}else if(_.options.centerMode===true)pagerQty=_.slideCount;else if(!_.options.asNavFor)pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);else while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}return pagerQty-1;};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(true);if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=(_.slideWidth*_.options.slidesToShow)*-1;coef=-1;if(_.options.vertical===true&&_.options.centerMode===true)if(_.options.slidesToShow===2)coef=-1.5;else{if(_.options.slidesToShow===1)coef=-2;}verticalOffset=(verticalHeight*_.options.slidesToShow)*coef;}if(_.slideCount%_.options.slidesToScroll!==0)if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow)if(slideIndex>_.slideCount){_.slideOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth)*-1;verticalOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight)*-1;}else{_.slideOffset=((_.slideCount%_.options.slidesToScroll)*_.slideWidth)*-1;verticalOffset=((_.slideCount%_.options.slidesToScroll)*verticalHeight)*-1;}}else{if(slideIndex+_.options.slidesToShow>_.slideCount){_.slideOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*_.slideWidth;verticalOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*verticalHeight;}}if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0;}if(_.options.centerMode===true&&_.slideCount<=_.options.slidesToShow)_.slideOffset=((_.slideWidth*Math.floor(_.options.slidesToShow))/2)-((_.slideWidth*_.slideCount)/2);else if(_.options.centerMode===true&&_.options.infinite===true)_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth;else{if(_.options.centerMode===true){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2);}}if(_.options.vertical===false)targetLeft=((slideIndex*_.slideWidth)*-1)+_.slideOffset;else targetLeft=((slideIndex*verticalHeight)*-1)+verticalOffset;if(_.options.variableWidth===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false)targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);else targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow);
12if(_.options.rtl===true)if(targetSlide[0])targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;else targetLeft=0;else targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;if(_.options.centerMode===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false)targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);else targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow+1);if(_.options.rtl===true)if(targetSlide[0])targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;else targetLeft=0;else targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2;}}return targetLeft;};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option];};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===false)max=_.slideCount;else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2;}while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}return indexes;};Slick.prototype.getSlick=function(){return this;};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;centerOffset=_.options.centerMode===true?_.slideWidth*Math.floor(_.options.slidesToShow/2):0;if(_.options.swipeToSlide===true){_.$slideTrack.find('.slick-slide').each(function(index,slide){if(slide.offsetLeft-centerOffset+($(slide).outerWidth()/2)>(_.swipeLeft*-1)){swipedSlide=slide;return false;}});slidesTraversed=Math.abs($(swipedSlide).attr('data-slick-index')-_.currentSlide)||1;return slidesTraversed;}else return _.options.slidesToScroll;};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:'index',index:parseInt(slide)}},dontAnimate);};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass('slick-initialized')){$(_.$slider).addClass('slick-initialized');_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(true);_.focusHandler();}if(creation)_.$slider.trigger('init',[_]);if(_.options.accessibility===true)_.initADA();if(_.options.autoplay){_.paused=false;_.autoPlay();}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return (val>=0)&&(val<_.slideCount);});_.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({'aria-hidden':'true','tabindex':'-1'}).find('a, input, button, select').attr({'tabindex':'-1'});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({'role':'tabpanel','id':'slick-slide'+_.instanceUid+i,'tabindex':-1});if(slideControlIndex!==-1){var ariaButtonControl='slick-slide-control'+_.instanceUid+slideControlIndex;if($('#'+ariaButtonControl).length)$(this).attr({'aria-describedby':ariaButtonControl});}});_.$dots.attr('role','tablist').find('li').each(function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({'role':'presentation'});$(this).find('button').first().attr({'role':'tab','id':'slick-slide-control'+_.instanceUid+i,'aria-controls':'slick-slide'+_.instanceUid+mappedSlideIndex,'aria-label':(i+1)+' of '+numDotGroups,'aria-selected':null,'tabindex':'-1'});}).eq(_.currentSlide).find('button').attr({'aria-selected':'true','tabindex':'0'}).end();}for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++)if(_.options.focusOnChange)_.$slides.eq(i).attr({'tabindex':'0'});else _.$slides.eq(i).removeAttr('tabindex');_.activateADA();};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off('click.slick').on('click.slick',{message:'previous'},_.changeSlide);_.$nextArrow.off('click.slick').on('click.slick',{message:'next'},_.changeSlide);
vendor: 1,151 bytes, line 12
12if(_.options.accessibility===true){_.$prevArrow.on('keydown.slick',_.keyHandler);_.$nextArrow.on('keydown.slick',_.keyHandler);}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){$('li',_.$dots).on('click.slick',{message:'index'},_.changeSlide);if(_.options.accessibility===true)_.$dots.on('keydown.slick',_.keyHandler);}if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.slideCount>_.options.slidesToShow)$('li',_.$dots).on('mouseenter.slick',$.proxy(_.interrupt,_,true)).on('mouseleave.slick',$.proxy(_.interrupt,_,false));};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.on('mouseleave.slick',$.proxy(_.interrupt,_,false));}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on('touchstart.slick mousedown.slick',{action:'start'},_.swipeHandler);_.$list.on('touchmove.slick mousemove.slick',{action:'move'},_.swipeHandler);_.$list.on('touchend.slick mouseup.slick',{action:'end'},_.swipeHandler);
12_.$list.on('touchcancel.slick mouseleave.slick',{action:'end'},_.swipeHandler);_.$list.on('click.slick',_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===true)_.$list.on('keydown.slick',_.keyHandler);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().on('click.slick',_.selectHandler);$(window).on('orientationchange.slick.slick-'+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on('resize.slick.slick-'+_.instanceUid,$.proxy(_.resize,_));$('[draggable!=true]',_.$slideTrack).on('dragstart',_.preventDefault);$(window).on('load.slick.slick-'+_.instanceUid,_.setPosition);$(_.setPosition);};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show();}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow)_.$dots.show();};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT'))if(event.keyCode===37&&_.options.accessibility===true)_.changeSlide({data:{message:_.options.rtl===true?'next':'previous'}});else{if(event.keyCode===39&&_.options.accessibility===true)_.changeSlide({data:{message:_.options.rtl===true?'previous':'next'}});}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$('img[data-lazy]',imagesScope).each(function(){var image=$(this),imageSource=$(this).attr('data-lazy'),imageSrcSet=$(this).attr('data-srcset'),imageSizes=$(this).attr('data-sizes')||_.$slider.attr('data-sizes'),imageToLoad=document.createElement('img');imageToLoad.onload=function(){image.animate({opacity:0}
12,100,function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes)image.attr('sizes',imageSizes);}image.attr('src',imageSource).animate({opacity:1},200,function(){image.removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');});_.$slider.trigger('lazyLoaded',[_,image,imageSource]);});};imageToLoad.onerror=function(){image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);};imageToLoad.src=imageSource;});}if(_.options.centerMode===true)if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2;}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide;}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++;}}loadRange=_.$slider.find('.slick-slide').slice(rangeStart,rangeEnd);if(_.options.lazyLoad==='anticipated'){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find('.slick-slide');for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++;}}loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find('.slick-slide');loadImages(cloneRange);}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find('.slick-cloned').slice(0,_.options.slidesToShow);loadImages(cloneRange);}else{if(_.currentSlide===0){cloneRange=_.$slider.find('.slick-cloned').slice(_.options.slidesToShow*-1);loadImages(cloneRange);}}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass('slick-loading');_.initUI();if(_.options.lazyLoad==='progressive')_.progressiveLazyLoad();};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:'next'}});};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition();};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=true;};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false;};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger('afterChange',[_,index]);_.animating=false;if(_.slideCount>_.options.slidesToShow)_.setPosition();_.swipeLeft=null;if(_.options.autoplay)_.autoPlay();if(_.options.accessibility===true){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr('tabindex',0).focus();}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:'previous'}});};Slick.prototype.preventDefault=function(event){event.preventDefault();};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$('img[data-lazy]',_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr('data-lazy');imageSrcSet=image.attr('data-srcset');imageSizes=image.attr('data-sizes')||_.$slider.attr('data-sizes');imageToLoad=document.createElement('img');imageToLoad.onload=function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes)image.attr('sizes',imageSizes);}image.attr('src',imageSource).removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');if(_.options.adaptiveHeight===true)_.setPosition();_.$slider.trigger('lazyLoaded',[_,image,imageSource]);_.progressiveLazyLoad();};imageToLoad.onerror=function(){if(tryCount<3)setTimeout(function(){_.progressiveLazyLoad(tryCount+1);},500);else{image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);_.progressiveLazyLoad();}};imageToLoad.src=imageSource;}else _.$slider.trigger('allImagesLoaded',[_]);};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&(_.currentSlide>lastVisibleIndex))_.currentSlide=lastVisibleIndex;if(_.slideCount<=_.options.slidesToShow)_.currentSlide=0;currentSlide=_.currentSlide;_.destroy(true);$.extend(_,_.initials,{currentSlide});_.init();if(!initializing)_.changeSlide({data:{message:'index',index:currentSlide}},false);};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if($.type(responsiveSettings)==='array'&&responsiveSettings.length){_.respondTo=_.options.respondTo||'window';for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint)_.breakpoints.splice(l,1);l--;}_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings;}}_.breakpoints.sort(function(a,b){return (_.options.mobileFirst)?a-b:b-a;});}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass('slick-slide');_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0)_.currentSlide=_.currentSlide-_.options.slidesToScroll;if(_.slideCount<=_.options.slidesToShow)_.currentSlide=0;_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(false,true);if(_.options.focusOnSelect===true)$(_.$slideTrack).children().on('click.slick',_.selectHandler);_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger('reInit',[_]);};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked)_.setPosition();},50);}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof (index)==='boolean'){removeBefore=index;index=removeBefore===true?0:_.slideCount-1;}else index=removeBefore===true?--index:index;if(_.slideCount<1||index<0||index>_.slideCount-1)return false;_.unload();if(removeAll===true)_.$slideTrack.children().remove();else _.$slideTrack.children(this.options.slide).eq(index).remove();_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true)position=-position;x=_.positionProp=='left'?Math.ceil(position)+'px':'0px';y=_.positionProp=='top'?Math.ceil(position)+'px':'0px';positionProps[_.positionProp]=position;if(_.transformsEnabled===false)_.$slideTrack.css(positionProps);else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]='translate('+x+', '+y+')';_.$slideTrack.css(positionProps);}else{positionProps[_.animType]='translate3d('+x+', '+y+', 0px)';_.$slideTrack.css(positionProps);}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true)_.$list.css({padding:('0px '+_.options.centerPadding)});}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true)_.$list.css({padding:(_.options.centerPadding+' 0px')}
12);}_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false&&_.options.variableWidth===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil((_.slideWidth*_.$slideTrack.children('.slick-slide').length)));}else if(_.options.variableWidth===true)_.$slideTrack.width(5000*_.slideCount);else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true)*_.$slideTrack.children('.slick-slide').length)));}var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();if(_.options.variableWidth===false)_.$slideTrack.children('.slick-slide').width(_.slideWidth-offset);};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=(_.slideWidth*index)*-1;if(_.options.rtl===true)$(element).css({position:'relative',right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0});else $(element).css({position:'relative',left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}
12);});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1});};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.css('height',targetHeight);}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=false,type;if($.type(arguments[0])==='object'){option=arguments[0];refresh=arguments[1];type='multiple';}else{if($.type(arguments[0])==='string'){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==='responsive'&&$.type(arguments[1])==='array')type='responsive';else{if(typeof arguments[1]!=='undefined')type='single';}}}if(type==='single')_.options[option]=value;else if(type==='multiple')$.each(option,function(opt,val){_.options[opt]=val;});else{if(type==='responsive')for(item in value)if($.type(_.options.responsive)!=='array')_.options.responsive=[value[item]];else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint)_.options.responsive.splice(l,1);l--;}_.options.responsive.push(value[item]);}}if(refresh){_.unload();_.reinit();}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===false)_.setCSS(_.getLeft(_.currentSlide));else _.setFade();_.$slider.trigger('setPosition',[_]);};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?'top':'left';if(_.positionProp==='top')_.$slider.addClass('slick-vertical');else _.$slider.removeClass('slick-vertical');if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined)if(_.options.useCSS===true)_.cssTransitions=true;if(_.options.fade)if(typeof _.options.zIndex==='number'){if(_.options.zIndex<3)_.options.zIndex=3;}else _.options.zIndex=_.defaults.zIndex;if(bodyStyle.OTransform!==undefined){_.animType='OTransform';_.transformType='-o-transform';_.transitionType='OTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}if(bodyStyle.MozTransform!==undefined){_.animType='MozTransform';_.transformType='-moz-transform';_.transitionType='MozTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false;}if(bodyStyle.webkitTransform!==undefined){_.animType='webkitTransform';_.transformType='-webkit-transform';_.transitionType='webkitTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}if(bodyStyle.msTransform!==undefined){_.animType='msTransform';_.transformType='-ms-transform';_.transitionType='msTransition';if(bodyStyle.msTransform===undefined)_.animType=false;}if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType='transform';_.transformType='transform';_.transitionType='transition';}_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false);};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find('.slick-slide').removeClass('slick-active slick-center slick-current').attr('aria-hidden','true');_.$slides.eq(index).addClass('slick-current');if(_.options.centerMode===true){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=(_.slideCount-1)-centerOffset)_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass('slick-active').attr('aria-hidden','false');else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass('slick-active').attr('aria-hidden','false');}if(index===0)allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass('slick-center');else{if(index===_.slideCount-1)allSlides.eq(_.options.slidesToShow).addClass('slick-center');}}_.$slides.eq(index).addClass('slick-center');}else if(index>=0&&index<=(_.slideCount-_.options.slidesToShow))_.$slides.slice(index,index+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');else if(allSlides.length<=_.options.slidesToShow)allSlides.addClass('slick-active').attr('aria-hidden','false');else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&(_.slideCount-index)<_.options.slidesToShow)allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass('slick-active').attr('aria-hidden','false');else allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');}if(_.options.lazyLoad==='ondemand'||_.options.lazyLoad==='anticipated')_.lazyLoad();};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true)_.options.centerMode=false;if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true)infiniteCount=_.options.slidesToShow+1;else infiniteCount=_.options.slidesToShow;for(i=_.slideCount;i>(_.slideCount-infiniteCount);i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass('slick-cloned');}for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass('slick-cloned');}_.$slideTrack.find('.slick-cloned').find('[id]').each(function(){$(this).attr('id','');});}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle)_.autoPlay();_.interrupted=toggle;};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is('.slick-slide')?$(event.target):$(event.target).parents('.slick-slide');
12var index=parseInt(targetElement.attr('data-slick-index'));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,false,true);return;}_.slideHandler(index);};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||false;if(_.animating===true&&_.options.waitForAnimate===true)return;if(_.options.fade===true&&_.currentSlide===index)return;if(sync===false)_.asNavFor(index);targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow)_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});else _.postSlide(targetSlide);}return;}else{if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>(_.slideCount-_.options.slidesToScroll))){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow)_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});else _.postSlide(targetSlide);}return;}}if(_.options.autoplay)clearInterval(_.autoPlayTimer);if(targetSlide<0)if(_.slideCount%_.options.slidesToScroll!==0)animSlide=_.slideCount-(_.slideCount%_.options.slidesToScroll);else animSlide=_.slideCount+targetSlide;else if(targetSlide>=_.slideCount)if(_.slideCount%_.options.slidesToScroll!==0)animSlide=0;else animSlide=targetSlide-_.slideCount;else animSlide=targetSlide;_.animating=true;_.$slider.trigger('beforeChange',[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick('getSlick');if(navTarget.slideCount<=navTarget.options.slidesToShow)navTarget.setSlideClasses(_.currentSlide);}_.updateDots();_.updateArrows();if(_.options.fade===true){if(dontAnimate!==true){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide);});}else _.postSlide(animSlide);_.animateHeight();return;}if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow)_.animateSlide(targetLeft,function(){_.postSlide(animSlide);});else _.postSlide(animSlide);};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide();}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow)_.$dots.hide();_.$slider.addClass('slick-loading');};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0)swipeAngle=360-Math.abs(swipeAngle);if((swipeAngle<=45)&&(swipeAngle>=0))return (_.options.rtl===false?'left':'right');if((swipeAngle<=360)&&(swipeAngle>=315))return (_.options.rtl===false?'left':'right');if((swipeAngle>=135)&&(swipeAngle<=225))return (_.options.rtl===false?'right':'left');if(_.options.verticalSwiping===true)if((swipeAngle>=35)&&(swipeAngle<=135))return 'down';else return 'up';return 'vertical';};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=false;_.swiping=false;if(_.scrolling){_.scrolling=false;return false;}_.interrupted=false;_.shouldClick=(_.touchObject.swipeLength>10)?false:true;if(_.touchObject.curX===undefined)return false;if(_.touchObject.edgeHit===true)_.$slider.trigger('edge',[_,_.swipeDirection()]);if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case 'left':case 'down':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case 'right':case 'up':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:}if(direction!='vertical'){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger('swipe',[_,direction]);}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={};}}};Slick.prototype.swipeHandler=function(event){var _=this;if((_.options.swipe===false)||('ontouchend' in document&&_.options.swipe===false))return;else{if(_.options.draggable===false&&event.type.indexOf('mouse')!==-1)return;}_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===true)_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold;switch(event.data.action){case 'start':_.swipeStart(event);break;case 'move':_.swipeMove(event);break;case 'end':_.swipeEnd(event);break;}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=false,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1)return false;curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=true;return false;}if(_.options.verticalSwiping===true)_.touchObject.swipeLength=verticalSwipeLength;swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=true;event.preventDefault();}positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===true)positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1;swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=false;if(_.options.infinite===false)if((_.currentSlide===0&&swipeDirection==='right')||(_.currentSlide>=_.getDotCount()&&swipeDirection==='left')){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=true;}if(_.options.vertical===false)_.swipeLeft=curLeft+swipeLength*positionOffset;else _.swipeLeft=curLeft+(swipeLength*(_.$list.height()/_.listWidth))*positionOffset;if(_.options.verticalSwiping===true)_.swipeLeft=curLeft+swipeLength*positionOffset;if(_.options.fade===true||_.options.touchMove===false)return false;if(_.animating===true){_.swipeLeft=null;return false;}_.setCSS(_.swipeLeft);};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=true;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false;}if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined)touches=event.originalEvent.touches[0];_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true;};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.unload=function(){var _=this;$('.slick-cloned',_.$slider).remove();if(_.$dots)_.$dots.remove();if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow))_.$prevArrow.remove();if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow))_.$nextArrow.remove();_.$slides.removeClass('slick-slide slick-active slick-visible slick-current').attr('aria-hidden','true').css('width','');};
12Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger('unslick',[_,fromBreakpoint]);_.destroy();};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');if(_.currentSlide===0){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else{if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find('li').removeClass('slick-active').end();_.$dots.find('li').eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass('slick-active');}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay)if(document[_.hidden])_.interrupted=true;else _.interrupted=false;};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=='object'||typeof opt=='undefined')_[i].slick=new Slick(_[i],opt);else ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!='undefined')return ret;}return _;};}));;
13(function(Drupal,drupalSettings){Drupal.behaviors.getAlert={attach:function(context,settings){function feedHasNewAlert(xml_doc,time_interval_hours){if(!xml_doc instanceof XMLDocument){console.log('feedHasNewAlert: XMLDocument is required for argument 1');return false;}if(isNaN(time_interval_hours)){console.log('feedHasNewAlert: An integer value is required for argument 2');return false;}let result=false;let alert_date;let time_diff_ms;const iso_nodes=xml_doc.getElementsByTagName('dc:date');if(!iso_nodes[0]||!iso_nodes[0].childNodes[0]){console.log('feedHasNewAlert: could not locate datetime XML element <dc:date>');return result;}else{alert_date=new Date(iso_nodes[0].childNodes[0].textContent);if(isNaN(alert_date)){console.log('feedHasNewAlert: datetime XML element <dc:date> was unparsable');return result;}time_diff_ms=new Date()-alert_date;if(time_diff_ms<(time_interval_hours*3600000))result=true;else{console.log('feedHasNewAlert: The alert is expired; time diff ms: '+time_diff_ms.toString());console.log(alert_date);}}return result;}function validXMLFeed(xml_doc,channel_id){if(!(xml_doc instanceof XMLDocument)){console.log('validXMLFeed: XMLDocument is required for argument 1');return null;}const category_el=xml_doc.querySelector('channel')?xml_doc.querySelector('channel').getElementsByTagName('dc:subject')[0]:null;const description_el=xml_doc.querySelector('item description');const datetime_iso_el=xml_doc.getElementsByTagName('dc:date')[0];if(!category_el||!category_el.childNodes[0]||!description_el||!description_el.childNodes[0]||!datetime_iso_el||!datetime_iso_el.childNodes[0]){console.log('validXMLFeed: unrecognized XML document');return null;}if(!category_el.childNodes[0].textContent||category_el.childNodes[0].textContent!=channel_id)console.log('validXMLFeed: XML document channel '+channel_id+' not found');if(!description_el.childNodes[0].textContent||!datetime_iso_el.childNodes[0].textContent){console.log('validXMLFeed: XML document fields are empty');return null;}const pub_date_obj=new Date(datetime_iso_el.childNodes[0].textContent);if(!pub_date_obj||isNaN(pub_date_obj)){console.log('validXMLFeed: XML document datetime field did not parse into a valid date');return null;}return {time:pub_date_obj.toLocaleTimeString('en-US'),date:pub_date_obj.toLocaleDateString('en-US',{weekday:'long',year:'numeric',month:'long',day:'numeric'}),body:description_el.childNodes[0].textContent};}function createAlertContent(xml_doc,channel_id,template_title){const formatted_fields=validXMLFeed(xml_doc,channel_id);if(!formatted_fields)return null;const container=document.createElement('section');const title=document.createElement('h2');const date=document.createElement('p');const time=document.createElement('p');const body=document.createElement('p');title.appendChild(document.createTextNode(template_title));date.appendChild(document.createTextNode(formatted_fields.date));time.appendChild(document.createTextNode(formatted_fields.time));body.appendChild(document.createTextNode(formatted_fields.body));container.appendChild(title);container.appendChild(date);container.appendChild(time);container.appendChild(body);return container;}function createAlertBlock(xml_doc,channel_id,template_title){const formatted_fields=validXMLFeed(xml_doc,channel_id);if(!formatted_fields)return null;const block_wrapper=document.createElement('div');const block_view_row=document.createElement('div');const view_wrapper=document.createElement('div');const view_content=document.createElement('div');const alerts_wrapper=document.createElement('div');const alerts_container=document.createElement('div');const views_row=document.createElement('div');const mobile_collapse_button=createCollapseButton('Close Alert Message Mobile','d-xl-none d-flex align-items-center alert-toggle-button-mobile','false',template_title);const collapse_button=createCollapseButton('Close Alert Message','d-none d-xl-block alert-close-button','true',null);block_wrapper.id='block-views-block-pdx-automatic-alert-display-block-1';block_wrapper.className='views-element-container block block-views block-views-blockpdx-automatic-alert-display-block-1';view_wrapper.className='view-pdx-automatic-alert-display';view_content.className='view-content';alerts_wrapper.className='alerts-wrapper';alerts_container.className='container';views_row.className='views-row';views_row.appendChild(createAlertNode(formatted_fields.date,formatted_fields.time,template_title+':',formatted_fields.body));alerts_container.appendChild(mobile_collapse_button);alerts_container.appendChild(views_row);alerts_wrapper.appendChild(collapse_button);alerts_wrapper.appendChild(alerts_container);view_content.appendChild(alerts_wrapper);view_wrapper.appendChild(view_content);block_view_row.appendChild(view_wrapper);block_wrapper.appendChild(block_view_row);return block_wrapper;}function createCollapseButton(aria_label,classname,aria_expanded,text_val){const a_tag=document.createElement('a');const close_icon=document.createElement('span');a_tag.className=classname;a_tag.setAttribute('aria-label',aria_label);a_tag.setAttribute('aria-expanded',aria_expanded);a_tag.setAttribute('aria-controls','collapseAlert');a_tag.setAttribute('role','button');a_tag.setAttribute('data-bs-toggle','collapse');a_tag.href='#collapseAlert';close_icon.className='fa fa-times';if(text_val){const title_div=document.createElement('div');const title_span=document.createElement('span');const fa_circle_icon=document.createElement('span');const collapse_icons_div=document.createElement('div');const angle_icon_span=document.createElement('span');title_div.className='campus-alert-title';title_span.appendChild(document.createTextNode(text_val));fa_circle_icon.className='fa fa-exclamation-circle';collapse_icons_div.className='icon ml-auto';angle_icon_span.className='fa fa-angle-down';collapse_icons_div.appendChild(angle_icon_span);collapse_icons_div.appendChild(close_icon);title_div.appendChild(fa_circle_icon);title_div.appendChild(title_span);a_tag.appendChild(title_div);a_tag.appendChild(collapse_icons_div);}else a_tag.appendChild(close_icon);return a_tag;}function createAlertNode(date,time,title,body){const node_wrapper=document.createElement('div');const collapse_wrapper=document.createElement('div');const collapse_div=document.createElement('div');const row_div=document.createElement('div');node_wrapper.className='node--type-alert-notification alert-item';collapse_wrapper.className='collapse show';collapse_wrapper.id='collapseAlert';
13collapse_div.className='collapse-alert';row_div.className='row';row_div.appendChild(createAlertTitle(time,date,title));row_div.appendChild(createAlertBody(body));collapse_div.appendChild(row_div);collapse_wrapper.appendChild(collapse_div);node_wrapper.appendChild(collapse_wrapper);return node_wrapper;}function createAlertTitle(hours_minutes,month_date_year,title){const title_row=document.createElement('div');const title_wrapper=document.createElement('div');const fa_circle_icon=document.createElement('span');const title_span=document.createElement('span');const datetime_wrapper=document.createElement('div');const time_el=document.createElement('div');const time_strong_el=document.createElement('strong');const date_el=document.createElement('div');title_row.className='col-12 col-xl-3';title_wrapper.className='campus-alert-title d-none d-xl-block';datetime_wrapper.className='timestamp';fa_circle_icon.className='fa fa-exclamation-circle';time_strong_el.appendChild(document.createTextNode(hours_minutes));date_el.appendChild(document.createTextNode(month_date_year));title_span.appendChild(document.createTextNode(title));time_el.appendChild(time_strong_el);title_wrapper.appendChild(fa_circle_icon);title_wrapper.appendChild(title_span);datetime_wrapper.appendChild(time_el);datetime_wrapper.appendChild(date_el);title_row.appendChild(title_wrapper);title_row.appendChild(datetime_wrapper);return title_row;}function createAlertBody(message){const body_row=document.createElement('div');const body_wrapper=document.createElement('div');const body_field=renderLinks(message);body_row.className='col-12 col-xl-9';body_wrapper.className='item-description';body_field.className='field--name-body';body_wrapper.appendChild(body_field);body_row.appendChild(body_wrapper);return body_row;}function renderAlertContent(xml_dom,channel_id,template_title){const alert_message_swap_target=document.querySelector('.xml-alert-embed');if(!alert_message_swap_target)return;const swap_target_channel=alert_message_swap_target.getAttribute('data-channel');if(swap_target_channel!=channel_id){console.log('renderAlertContent: unknown channel ID in embedding element');return;}const alert_block=createAlertContent(xml_dom,channel_id,template_title);if(alert_block)alert_message_swap_target.parentElement.replaceChild(alert_block,alert_message_swap_target);return alert_block;}function renderLinks(raw_text){const result=document.createElement('div');const valid_domain_pattern=/^[\w\-\.]+pdx\.edu$/;const url_pattern=/https?\:\/\/([\w\-]+[\.\/]{1})+([\w\-]+)?/;let search_text=raw_text;while(search_text.search(url_pattern)>=0){let text_before_url=search_text.slice(0,search_text.search(url_pattern));let text_starts_with_url=search_text.slice(search_text.search(url_pattern));let end_of_url_index=text_starts_with_url.indexOf(' ')<0?text_starts_with_url.length:text_starts_with_url.indexOf(' ');let text_after_url=text_starts_with_url.slice(end_of_url_index);let url=text_starts_with_url.slice(0,end_of_url_index);try{let valid_url=new URL(url);if(valid_domain_pattern.test(valid_url.host)){let link=document.createElement('a');link.href=url;link.appendChild(document.createTextNode(url));result.appendChild(document.createTextNode(text_before_url));result.appendChild(link);search_text=text_after_url;}else{console.log('renderLinks: Invalid host: '+valid_url.host);result.appendChild(document.createTextNode(text_before_url+url));search_text=text_after_url;}}catch(e){console.log('renderLinks: Invalid URL constructor argument: '+url);result.appendChild(document.createTextNode(text_before_url+url));search_text=text_after_url;}}result.appendChild(document.createTextNode(search_text));return result;}function renderAlert(xml_dom,channel_id,template_title){const alert_block=createAlertBlock(xml_dom,channel_id,template_title);if(alert_block){const alert_region=document.querySelector('.region-alerts');if(alert_region)alert_region.appendChild(alert_block);else console.log('renderAlert: no .region-alerts element found');}return alert_block;}async function getAlertKillswitch(){try{const killswitch_response=await fetch(window.location.origin+'/alerts/killswitch');if(!killswitch_response.ok)throw new Error(`getAlertKillswitch error: ${killswitch_response.status}`);const killswitch_json=await killswitch_response.json();return killswitch_json;}catch(error){console.error(error.message);return error;}}async function getAlert(alert_feed_url,alert_duration_hours,channel_id,template_title,is_killswitch_host){try{const response=await fetch(alert_feed_url);if(!response.ok)throw new Error(`getAlert error: ${response.status}`);const resp=await response.blob();const text=resp.text();const handle=text.then(function(result){const parser=new DOMParser();const XML_DOM=parser.parseFromString(result,"application/xml");if(!feedHasNewAlert(XML_DOM,alert_duration_hours)){console.log('PSU alerts: no new alerts');return null;}if(!is_killswitch_host){let remote_killswitch=getAlertKillswitch();remote_killswitch.then(function(killswitch_field){if(!killswitch_field.value){renderAlert(XML_DOM,channel_id,template_title);renderAlertContent(XML_DOM,channel_id,template_title);}else console.log('PSU alerts: remote killswitch is on');}).catch(function(error){console.log(error.message);});}else{renderAlert(XML_DOM,channel_id,template_title);renderAlertContent(XML_DOM,channel_id,template_title);}});}catch(error){console.error(error.message);}}if(drupalSettings.pdxd8_alerts.alert_killswitch){console.log('PSU alerts: alert block killswitch is on');return;}if(drupalSettings.pdxd8_alerts.rss_feed_url&&drupalSettings.pdxd8_alerts.rss_channel_id)getAlert(drupalSettings.pdxd8_alerts.rss_feed_url,Number(drupalSettings.pdxd8_alerts.alert_duration_hours),drupalSettings.pdxd8_alerts.rss_channel_id,drupalSettings.pdxd8_alerts.alert_template_title??'Alert',drupalSettings.pdxd8_alerts.is_killswitch_host_site);else console.log('PSU Alerts did not locate the RSS feed URL');}};}(Drupal,drupalSettings));;
14(function($,Drupal,drupalSettings){Drupal.behaviors.pdxd8_calendar_embed={attach:function(context,settings){if(!document.querySelector('.apply-pdx-calendar-embed')){console.log('pdxd8 calendar embedding - could not locate embedding container');return;}const EMBED_HOST='apply.pdx.edu/portal/';for(const embed_container of document.querySelectorAll('.apply-pdx-calendar-embed')){if(!embed_container.id){console.log('pdxd8 calendar embedding - could not load calendar id from embedding container');continue;}if(!embed_container.getAttribute('data-embed-path')){console.log('pdxd8 calendar embedding - could not load calendar path from embedding container');continue;}let script=document.createElement('script');let s=document.getElementsByTagName('script')[0];script.async=1;script.src='https://'+EMBED_HOST+embed_container.getAttribute('data-embed-path')+'/?id='+embed_container.id+'&output=embed&div='+embed_container.id+((location.search.length>1)?'&'+location.search.substring(1):'');s.parentNode.insertBefore(script,s);console.log('pdxd8 calendar embedding - requesting embed script ID: '+embed_container.id);}}};})(jQuery,Drupal,drupalSettings);;
15(function($,Drupal){'use strict';$.fn.fillProfileInformation=function(argument){$('#directory-api-feedback').removeClass();$('#directory-api-feedback').html(argument.message);if(argument.data.result)if(argument.data.result.detail)$('#directory-api-feedback').addClass('messages messages--warning');else{$('#directory-api-feedback').addClass('messages messages--status');var title='';$('#edit-field-first-name-0-value').val(argument.data.result.firstName);title=title.concat(' ',argument.data.result.firstName);$('#edit-field-middle-name-0-value').val(argument.data.result.middleName);if(argument.data.result.middleName)title=title.concat(' ',argument.data.result.middleName);$('#edit-field-last-name-0-value').val(argument.data.result.lastName);title=title.concat(' ',argument.data.result.lastName);$('#edit-title-0-value').val(title);}else $('#directory-api-feedback').addClass('messages messages--error');};}(jQuery,Drupal));;
16(function($,Drupal,once){'use strict';Drupal.behaviors.degreeDetails={attach:function(context){$('.degree-usefullinks-fieldset').find('.paragraph-type-title').text('');hideAndShowCertificateField(false);hideAndShowGainfulEmployment(false);$(once('degreeDetails','#edit-field-level-of-degree',context)).each(function(){$(this).on('change',function(){var certification=$(this).val();hideAndShowCertificateField(certification);hideAndShowGainfulEmployment(false,context);});});$(once('degreeDetails','.paragraphs-subform .field--name-field-graduate-certification select, .paragraphs-subform .field--name-field-undergraduate-certificatio',context)).each(function(){$(this).on('change',function(){var certificateValue=$(this).find("option:selected").text();var $gainfulEmploymentDiv=$(this).parents().eq(3).find('.field--name-field-gainful-employment');if(hideAndShowGainfulEmployment(certificateValue,context))$gainfulEmploymentDiv.removeClass('hidden');else $gainfulEmploymentDiv.addClass('hidden').find('select').val('_none');});});function hideAndShowCertificateField(cert_value,context){var certification=$('#edit-field-level-of-degree',context).val();var $graduateField=$('.paragraphs-subform .field--name-field-graduate-certification');var $undergradField=$('.paragraphs-subform .field--name-field-undergraduate-certificatio');var $gainfulEmployment=$('.paragraphs-subform .field--name-field-gainful-employment');if(cert_value!=false)certification=cert_value;if(certification=='graduate'){$graduateField.show();$undergradField.hide().find('select').val('_none');}else if(certification=='undergraduate'){$graduateField.hide().find('select').val('_none');$undergradField.show();}else{$graduateField.hide().find('select').val('_none');;$undergradField.hide().find('select').val('_none');;}}function hideAndShowGainfulEmployment(cert_value,context){if(cert_value==false){var $allselected=$('.field--name-field-degree-details-items table tbody tr',context);$allselected.each(function(index){var graduateValue=$(this).find('.field-graduate-certification option:selected').text();var undergraduateValue=$(this).find('.field-undergraduate-certificatio option:selected').text();var graduateOptionValue=$(this).find('.field-graduate-certification').val();var undergradOptionValue=$(this).find('.field-undergraduate-certificatio').val();var $gainfulEmploymentDiv=$(this).find('.field--name-field-gainful-employment');$gainfulEmploymentDiv.removeAttr('style');var isNone=false;if(graduateOptionValue=='_none'&&undergradOptionValue=='none')isNone=true;if((undergraduateValue=='Certificate Program'||graduateValue=='Graduate Certificate')&&!isNone)$gainfulEmploymentDiv.removeClass('hidden');else $gainfulEmploymentDiv.addClass('hidden');});}else{if(cert_value=='Certificate Program'||cert_value=='Graduate Certificate')return true;return false;}}
16$(once('degreeDetails','.field--name-field-degree-details-items table tr',context)).each(function(){var $row=$(this).find('td');$row.each(function(){var $new_item=$(this).find('div:first-child');if($new_item.hasClass('ajax-new-content')){var $scrollTo=$(this).parent('tr');$('html, body').animate({scrollTop:$scrollTo.offset().top-50},0);}});});}};Drupal.behaviors.officeHours={attach:function(context){var $officeHoursTable=$('#edit-field-hours-value tbody tr');$officeHoursTable.each(function(index){var $row=$(this);var startTime=$row.find('#edit-field-hours-value-'+index+'-starthours-time').val();var endTime=$row.find('#edit-field-hours-value-'+index+'-endhours-time').val();var $moreLabel=$row.find('div').hasClass('office-hours-more-label');if(startTime==''&&endTime==''&&$moreLabel==true)$row.hide();if($row.find('.office-hours-delete-link').length==0)$row.find('.office-hours-add-link').after(' <a href="/" class="office-hours-delete-link" data-drupal-selector="edit-field-hours-value-'+index+'-operations-data-delete" id="edit-field-hours-value-'+index+'-operations-data-delete">Remove</a>');});}};Drupal.behaviors.academicProgramTopics={attach:function(context){var degree=$('#edit-field-level-of-degree').val();clearTopicValues(degree);hideAndShowTopics(false);resetQuicklinkFields(degree);$(once('academicProgramTopics','#edit-field-level-of-degree',context)).each(function(){$(this).on('change',function(){var certification=$(this).val();hideAndShowTopics(certification);clearTopicValues(certification);resetQuicklinkFields(certification);});});function resetQuicklinkFields(level_of_degree){var $scheduleTour=$(context).find('.field--name-field-url-for-schedule-a-tour');var $contactCTA=$(context).find('.field--name-field-url-for-contact-us-cta');if(level_of_degree=='graduate')$scheduleTour.hide();else if(level_of_degree=='undergraduate'){$scheduleTour.show();$contactCTA.find('label').text('URL for Request Information');}else $scheduleTour.show();}function hideAndShowTopics(level_of_degree){if(level_of_degree==false)level_of_degree=$('#edit-field-level-of-degree',context).val();if($('form').hasClass('node-academic-program-edit-form')||$('form').hasClass('node-academic-program-form')||$('form').hasClass('node-academic-program-quick-node-clone-form')||$('form').hasClass('node-academic-program-new-edit-form')||$('form').hasClass('node-academic-program-new-form')||$('form').hasClass('node-academic-program-new-quick-node-clone-form')){var $graduateForm=$(context).find('.field--name-field-graduate-topic');var $undergradForm=$(context).find('.field--name-field-undergraduate-topic');if(level_of_degree=='graduate'){$graduateForm.show();$undergradForm.hide();}else if(level_of_degree=='undergraduate'){$graduateForm.hide();$undergradForm.show();}else{$graduateForm.hide();$undergradForm.hide();}}}function clearTopicValues(level_of_degree){if(level_of_degree=='undergraduate')$('.paragraphs-subform .field--name-field-graduate-topic table tbody tr td, .field--name-field-graduate-topic table tbody tr td',context).each(function(){$(this).find('input').val('');});else $('.paragraphs-subform .field--name-field-undergraduate-topic table tr td, .field--name-field-undergraduate-topic table tr td',context).each(function(){$(this).find('input').val('');});}}};Drupal.behaviors.menuItems={attach:function(context){setTimeout(function(){$(".toolbar-tray-horizontal ul li.menu-item--expanded .menu-item > ul").each(function(index){var $row=$(this).children().length;if($row>15)$(this).addClass("column");});},100);}};Drupal.behaviors.pageError={attach:function(context){var $container=$("html,body");var $scrollTo=$('.content-header');var $messageDiv=$('.messages');if($messageDiv.hasClass('messages--error'))if($scrollTo.length)$container.animate({scrollTop:$scrollTo.offset().top-$container.offset().top+$container.scrollTop(),scrollLeft:0},300);}};Drupal.behaviors.academicProgramsTerms={attach:function(context,settings){if($('.node-academic-program-form').length){if($('.field--name-field-color-scheme-1-of-3').length)$('.field--name-field-color-scheme-1-of-3 .form-item label').addClass('pdxd8-fcts-acad-progs-term-required');if($('.field--name-field-color-scheme-2-of-3').length)$('.field--name-field-color-scheme-2-of-3 .form-item label').addClass('pdxd8-fcts-acad-progs-term-required');if($('.field--name-field-color-scheme-3-of-3').length)$('.field--name-field-color-scheme-3-of-3 .form-item label').addClass('pdxd8-fcts-acad-progs-term-required');if($('.field--name-field-locations').length)$('.field--name-field-locations legend span').addClass('pdxd8-fcts-acad-progs-term-required');}}};Drupal.behaviors.changeListAddItemText={attach:function(context,settings){$('.paragraphs-subform .field--name-field-list-items').each(function(){var $addItem=$(this).find('.paragraphs-dropbutton-wrapper > .field-add-more-submit').val();if($addItem=='Add List of links item')$(this).find('.paragraphs-dropbutton-wrapper > .field-add-more-submit').val('Add List of Links Tab');});}};Drupal.behaviors.changeURLLinkText={attach:function(context,settings){$('.paragraphs-subform .field--name-field-image-item-no-color, .paragraphs-subform .field-multiple-display-items').each(function(){$(this).find('.field-link-image-link .form-type-textfield label').html('Item Title');});}};Drupal.behaviors.styleMenuButtonTitles={attach:function(context,settings){function setDynamicallyRenderedMenuItemTitles(){const style_dropdown_triggers=document.querySelectorAll('.ck-style-dropdown button.ck-dropdown__button');console.log('these are the style dropdown triggers that were found at the time the first style dropdown was found');console.log(style_dropdown_triggers);if(style_dropdown_triggers){for(const style_dropdown_trigger of style_dropdown_triggers)style_dropdown_trigger.addEventListener('click',function(event){let event_target={};if(event.target.tagName==='SPAN'){event_target=event.target.parentElement;event.stopPropagation();}else if(event.target.tagName==='SVG'){event_target=event.target.parentElement.parentelement;event.stopPropagation();}else{if(event.target.tagName==='BUTTON')event_target=event.target;}console.log('The style dropdown got a click event');console.log('The click event target parent element is');console.log(event_target.parentElement);if(event_target.parentElement.querySelector('.ck-dropdown__panel-visible')){console.log('The dropdown style menu is open');let buttons=event_target.parentElement.querySelectorAll('button');for(const button of buttons){console.log('iterating button labelledby'+button.getAttribute('aria-labelledby'));let label=document.getElementById(button.getAttribute('aria-labelledby'));button.setAttribute('title',label.innerText);}}});}}
16const publication_form=document.querySelector('#block-pdxd8-admin-content form');let table=null;let run_continuous_observer=false;let switch_case_node_slug='';if(!publication_form){console.log('styleMenuButtonTitles: this is not an admin form.');return;}else console.log('styleMenuButtonTitles: publication form style dropdown input assist script is running');switch_case_node_slug=publication_form.className.replace('node-','').replace('-edit-form','').replace(' node-form','');switch(switch_case_node_slug){case 'landing-page':table=publication_form.querySelector('table#field-landing-paragraph-block-values');run_continuous_observer=true;break;case 'basic-page':table=publication_form.querySelector('table#field-body-values');run_continuous_observer=true;break;case 'academic-program-new':table=publication_form.querySelector('table#field-content-paragraph-block-values');break;default:console.log('styleMenuButtonTitles: this switch case defaulted: '+switch_case_node_slug);}console.log('styleMenuButtonTitles: '+switch_case_node_slug);
16if(!table){console.log('styleMenuButtonTitles: the node form table was not found.');return;}if(document.querySelector('.ck-style-dropdown')){console.log('styleMenuButtonTitles: found style dropdown on load');setDynamicallyRenderedMenuItemTitles();}else{var table_observer=new MutationObserver(function(mutations){if(document.querySelector('.ck-style-dropdown')){console.log('styleMenuButtonTitles: found style dropdown in mutation observer');setDynamicallyRenderedMenuItemTitles();if(!run_continuous_observer){console.log('styleMenuButtonTitles: mutation observer will disconnect because no style dropdowns will be added to the page.');table_observer.disconnect();}else console.log('styleMenuButtonTitles: mutation observer will run continuously because style dropdowns can be added to the page.');}else console.log('styleMenuButtonTitles: style dropdown not found in mutation observer');});table_observer.observe(table,{childList:true,subtree:true});}}};}(jQuery,Drupal,once));;
17(function($,Drupal){'use strict';Drupal.behaviors.portfolioAdmin={attach:function(context,settings){if($('input[name*=field_portfolio_feature_view]').length){$('.field--name-field-portfolio-feature-view').hide();$('form').submit(function(event){var tag_id=$('input[name*="[field_portfolio_featured_tag][target_id]"]').val().replace(/\D/g,'');var tag=$('input[name*="[field_portfolio_featured_tag][target_id]"]').val();var regExp=/\(([^)]+)\)/;var tags=regExp.exec(tag);$('input[name*="[field_portfolio_feature_view][0][options][argument]"]').val(tags[1]);});}if($('input[name*=field_portfolio_collection_view]').length){$('.field--name-field-portfolio-collection-view').hide();$('form').submit(function(event){var tag_id=$('input[name*="[field_portfolio_project_tag][target_id]"]').val().replace(/\D/g,'');var tag=$('input[name*="[field_portfolio_project_tag][target_id]"]').val();var regExp=/\(([^)]+)\)/;var tags=regExp.exec(tag);$('input[name*="[field_portfolio_collection_view][0][options][argument]"]').val(tags[1]);});}}};Drupal.behaviors.portfolioFeaturedImage={attach:function(context,settings){var numBoxes=$('input[name*=field_featured_image]').length;if($('input[name*=field_featured_image]').length>1){var boxes=$('input[name*=field_featured_image]');var checked=$('input[name*=field_featured_image]:checked').prop('id');for(var i=0;i<numBoxes;i++){var featured_id=$('input[name="field_portfolio_image_gallery['+i+'][subform][field_featured_image][value]"]').prop('id');if(typeof checked!=='undefined'&&checked!=featured_id)$('input[name="field_portfolio_image_gallery['+i+'][subform][field_featured_image][value]"]').prop('disabled',true);}$('input[name*=field_featured_image]').click(function(){var selected=$(this).prop('id');if(this.checked)for(var x=0;x<numBoxes;x++){var current_id=$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').prop('id');if(typeof selected!=='undefined'&&selected!=current_id){$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').prop('disabled',true);$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').removeClass('error');}else{$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').prop('disabled',false);$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').prop('checked',true);}}else for(var x=0;x<numBoxes;x++)$('input[name="field_portfolio_image_gallery['+x+'][subform][field_featured_image][value]"]').prop('disabled',false);});}}};}(jQuery,Drupal));;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.