PageSourceSearch

https://www.uchicagomedicineadventhealth.org/sites/default/files/j…2r2hfDT5z8nyPv3Z9TpJ9yNcYDb37oIBj1eI3VagBzg

js uchicagomedicineadventhealth.org collected 2026-10-01 15:33:50 UTC 716,110 bytes, 373 lines download raw bytes

1/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.1/LICENSE.txt */
vendor: 22,881 bytes, lines 2-3
2/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 1,967 bytes, line 3
3return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||
vendor: 9,546 bytes, line 3
3ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||
vendor: 8,814 bytes, line 3
3(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 14,182 bytes, line 3
3n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;
vendor: 4,590 bytes, line 3
3return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1)
vendor: 13,972 bytes, line 3
3);!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);
vendor: 9,033 bytes, line 3
3if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return 
vendor: 3,521 bytes, lines 3-7
3M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
4;
5/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
6/*! @drupal/once - v1.0.1 - 2021-06-12 */
7var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];
7r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
8
9;
10/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
11window.drupalTranslations={"strings":{"":{"Filter":"Filter","Page":"Page"}}};;
12(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();;
13window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(typeof drupalTranslations!=='undefined'&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.cloneNode(false).href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
13if(typeof drupalTranslations!=='undefined'&&drupalTranslations.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
14if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
15"use strict";window.ahsPageLoadHash="hash"in window.location?window.location.hash:"",window.ahsPageLoadHash&&window.history.replaceState({},"",""),function(e,t,n,o){let s=!1,i=null,r=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(r=!0,null)});n.addEventListener("test",null,e),n.removeEventListener("test",null,e)}catch(e){r=!1}let a=!1;try{let e=document.createElement("div");e.focus({preventScroll:!0}),a=!0,e=null}catch(e){a=!1}function l(e,t,n){let o,s;return function(...i){const r=this,a=n&&!o;return clearTimeout(o),o=setTimeout(function(){o=null,n||(s=e.apply(r,i))},t),a&&(s=e.apply(r,i)),s}}function c(){const e=document.querySelector(".site-header__wrapper");return e&&e.classList.contains("is-pinned")}const d="undefined"!=typeof ResizeObserver?new ResizeObserver(l(e=>{e.forEach(e=>{i=e.contentRect.height})},50)):{observe:()=>{}};function u(e){let t;if(!(e=null!=e&&e)&&null!==i)return i;t=0;const n=document.querySelector(".site-header__wrapper");if(n){const e=n.getBoundingClientRect();t=e.height,e.top<0&&(t+=e.top)}return i=t,t}function h(t,n,o=!1){const s=e(t).filter(":visible").first();if(s.length>0){s.not("[tabindex]").not("a, input, button").attr("tabindex","-1"),void 0!==n&&n&&s.attr("aria-label",n);const e=s.get(0),t={};!o&&a&&(t.preventScroll=!0),e.focus(t)}return s}function p(t,o={},s=0,i={}){let r,a=e(t).first(),l={},d=!1;let f,g;if("object"!=typeof i?l.prevState={}:(l=i,l.prevState=e.extend({},i),d=Object.keys(l.prevState).length>0),l.options="object"==typeof o?o:{},0===a.length)return a;if(l.recursion=void 0!==s?s:0,a.is(":hidden")){if(0===l.recursion)return a;l.completed=!0}if(l.completed||l.stop);else if(l.recursion>=3)a.length>0&&(l.completed=!0);else{r=a.find(".global-content-widget__header"),r.length>0&&(a=r),l.winScrollTop=e(n).scrollTop()||0,l.targetTop=a.offset().top||0;const o=u();"topBuffer"in l.options&&void 0!==l.options.topBuffer||(l.options.topBuffer=48),l.targetScrollTop=Math.max(0,l.targetTop-l.options.topBuffer),l.targetScrollTop=Math.max(0,l.targetScrollTop-o),l.isHeaderSticky=c(),l.scrollError=Math.floor(l.winScrollTop-l.targetScrollTop),l.bouncing=!1,d&&l.prevState.scrollError<0&&l.scrollError>l.options.topBuffer&&!l.prevState.isHeaderSticky&&l.isHeaderSticky&&(l.bouncing=!0,l.targetScrollTop=o,l.options.once=!0,l.options.topBuffer=0,l.forced=!0),l.forced||Math.abs(l.scrollError)>16?(f=e.extend({},{duration:500},l.options),"complete"in f&&delete f.complete,e("html, body").animate({scrollTop:l.targetScrollTop},f).promise().done(()=>{let o;"once"in l.options&&l.options.once?l.completed=!0:(o=e.extend({},l.options),n.setTimeout(()=>{l.recursion++,p(t,o,l.recursion,l)},50))})):l.completed=!0}return l.completed&&!l.completeProcessed?(l.completeProcessed=!0,l.options&&"noFocus"in l.options&&l.options.noFocus?"complete"in o&&l.options.complete.call(e("html").get(0)||e([]),a):(l.options&&"focu
15sElement"in l.options?h(l.options.focusElement,"",!1):h(a,"",!1),g=e.extend({},l.options,{noFocus:!0,once:!0}),n.setTimeout(()=>{p(t,g,l.recursion,l)},50))):l.completed&&l.options&&"complete"in l.options&&l.options.complete.call(e("html").get(0)||e([]),a),a}function f(e){return"string"!=typeof e&&"number"!=typeof e||0===(e+="").length?"":(void 0!==t.ahsFrontendSecurity&&void 0!==t.ahsFrontendSecurity.sanitize&&(e=t.ahsFrontendSecurity.sanitize(e)),0!==e.indexOf("#")?`#${e}`:1===e.length?"":e)}function g(e){const t=e.replace(/^#+/g,"");return!!/^location-\d+$/gi.test(t)||"physician-appointment"===t.toLowerCase()}function m(){return n.ahsPageLoadHash&&!g(n.ahsPageLoadHash)}function y(t,o={}){const s=n.document,i=f(t);if(!i)return e([]);o="object"==typeof o?o:{};const r=e(i,s);if(0===r.length)return r;let a=r,l=null;if(!("focusElement"in o)&&"tabpanel"===r.attr("role")){const t=r.attr("aria-labelledby");let n=null;t&&(n=document.querySelector(`#${t}`)),n?(a=e(n),l=n):"topBuffer"in o||(o.topBuffer=100)}return a.is(":visible")?(r.data("ahsAnchorTargetOriginalId",r.attr("id")),r.removeAttr("id"),"complete"in o&&(o.scrollToAnchorTargetComplete=o.complete),o.complete=()=>{"scrollToAnchorTargetComplete"in o&&o.scrollToAnchorTargetComplete.call(this,r);const e=r.data("ahsAnchorTargetOriginalId");void 0!==e&&e&&("setWindowHash"in o&&!o.setWindowHash||n.history.replaceState({},"",`#${e}`),r.attr("id",e)),!l||"skipAfterScrollClick"in o&&o.skipAfterScrollClick||l.click()},p(a,o),r):r}function b(t,o){let s=!1,i=null;null==t&&(t=n.document);const r=e(".page__sidebar-first",t).first();r.length>0&&(s=!0,function(t,n,o){const s=e(t);let i,r=null;s.length>0&&(s.not("sidebar-empty--processed")||!0===o)&&(s.addClass("sidebar-empty--processed"),r=0!==s.children().length,r&&(i=s.children(`.page__sidebar-${n}--inner`),i.length>0&&0===i.children().not(".block-facet-empty").not(".ahs-search-facets-clear-all-block").not(".hidden").not(".visually-hidden").not(".hidden--important").length&&(r=!1)),s.data("ahsSidebarIsEmpty",!r),r||s.addClass("hidden--important").closest(".page").removeClass(`page--has-sidebar-${n}`)),null===r&&s.data("ahsSidebarIsEmpty")}(r,"first",o)),s&&!0===r.data("ahsSidebarIsEmpty")&&(i=r.closest(".page--no-container"),i.length>0&&i.removeClass("page--no-container"))}function S(t){if(n.localStorage&&"true"===n.localStorage.getItem("ah.onloadAccessibilityActionsDisabled")){try{n.localStorage.removeItem("ah.onloadAccessibilityActionsDisabled")}catch(e){}return null}let s,i,r,a,l=null,c=null;e(o("ahsThemeViewsReset",'[id^="edit-reset-"]',t)).on("click",()=>{n.localStorage.setItem("ahsViewsReset","true")}),"true"===n.localStorage.getItem("ahsViewsReset")&&(c=!0,n.localStorage.removeItem("ahsViewsReset"));let d=e=>{h(e)};const u=e=>(void 0!==e&&(l=e),null!==l&&l.length>0&&p(l,{topBuffer:24,noFocus:!0,complete:d}),l),f={".messages-wrapper":d,".confirmation-message__inner":d};if(e.each(f,(n,s)=>{const i=o("ahs-theme--onload",n,t);return!i.length||(l=e(i),d=s,!1)}),null!==l&&l.length>0)return u();const m=n.location;if(m&&"hash"in m&&g(m.hash))return!0;const y=m&&"search"in m&&m.search;if(c||y){if(s=y?m.search.substring(1):"",i=/location=(\d+)/i.exec(s),null!==i&&i.length>0&&(r=i[1],a=e(`.ahs-facility-location-selector-form__select option:selected[value="${r}"]`,t).first(),a.length>0))return l=a.closest('[class$="grid-right"]'),0===l.length&&(l=e(a.get(0).form)),setTimeout(()=>{u()},300),!0;const n=o("ahs-theme--onload-search-form","main .views-exposed-form:not(.newsroom-search-results-form)",t);n.length&&e(n).not(".search-block-form").not(".hidden").first().get().forEach(n=>{const o=e(n);if(l=o.parent(),/page=\d+/gi.test(s)){const n=e("main .view",t).first();n.length>0&&(l=n)}d=()=>{const n=e(".result-count",t);if(n.length>0)h(n);else{const t=o.find('input[type="text"]'),n=[];if(t.length>0&&t.get().forEach(e=>{e.value.length>0&&n.push(e)}),n.length>0){const t=e(n),o=t.first().not(".hidden").closest(".form-item");o.length>0?h(o):h(t.first())}else h(t.first())}}})}return u()}function v(e,t=""){let o=null,s=n.document.querySelector(`.${e}`);if(!s){s=n.document.createElement("div"),s.classList.add("hidden"),s.classList.add(e),s.classList.add("loading-spinner--full-modal"),s.setAttribute("role","alert");const t=n.document.createElement("div");t.classList.add("loading-spinner__overlay"),s.appendChild(t);const i=n.document.createElement("div");i.classList.add("loading-spinner__spinner"),s.appendChild(i),o=n.document.createElement("div"),o.classList.add("loading-spinner__message"),s.appendChild(o),n.document.body.appendChild(s)}return t&&(o||(o=s.querySelector(".loading-spinner__message")),o.textContent=t),s}t.ahsThemeSite={debounce:l,getPassiveEventOptions:function(){return!!r&&{passive:!0}},isHeaderSticky:c,getStickyHeaderOuterHeight:u,focus:h,scrollTop:p,scrollToAnchorTarget:y,processEmptySidebars:b,createModalLoadingOverlay:v,showModalLoadingOverlay:function(e,t=""){const n=v(e,t);if(n.classList.remove("hidden"),t){const e=n.querySelector(".loading-spinner__message");e&&h(e)}},hideModalLoadingOverlay:function(e){const t=n.document.querySelector(`.${e}`);t&&t.classList.add("hidden")},convertToHash:f,disableOnloadAccessibilityActions:function(){try{n.localStorage.setItem("ah.onloadAccessibilityActionsDisabled","true")}catch(e){}}},e(n).on("load",()=>{!s&&m()&&(s=!0,n.setTimeout(()=>{y(n.ahsPageLoadHash)},100))}),t.behaviors.themeSite={attach(t){t===n.document?o("themeSiteOnPageLoad","html").length&&function(t){let n=!1,s=!1,i=null;const r=o("ahsHeaderResizeObserver",".site-header__wrapper",t);if(r.length>0&&d.observe(r[0]),b(t),m()&&(n=!0,s=!0),n||(i=S(t),s=null===i),!s){const n=o("ahs-new-content-focus",".new-content",t);
15n.length&&e(n).last().get().forEach(t=>{h(e(t))})}}(t):t instanceof Element&&(t.classList.contains("view")||t.classList.contains("block-facets-ajax")?b(n.document,!0):t.classList.contains("webform--form-wrapper")?o("themeSiteAccessibilityActions",t).length&&e(t).find(".messages-wrapper").length>0&&S(t):t.classList.contains("webform--confirmation-wrapper")&&o("themeSiteAccessibilityActions",t).length&&e(t).find(".confirmation-message__inner").length>0&&S(t))}}}(jQuery,Drupal,window,once),function(e,t,n,o,s){function i(e=null){e||(e=s.querySelector(".site")),e&&function(e=null){return e||(e=s.querySelector(".site")),!(!e||!e.hasAttribute("data-transparent-header-enabled")||"true"!==e.getAttribute("data-transparent-header-enabled"))}(e)&&(o.drupalSettings&&o.drupalSettings.user&&o.drupalSettings.user.uid||function(){const e=s.querySelector(".emergency-banners__list");return!!(e&&e.offsetHeight>0)}()?e.classList.remove("site--with-transparent-header"):e.classList.toggle("site--with-transparent-header",function(e=null){return e||(e=s.querySelector(".site")),!(!e||!e.hasAttribute("data-has-image-hero")||"true"!==e.getAttribute("data-has-image-hero"))}(e)))}n("themeSiteHeaderStickyDocEarlyEvents","html").length&&(s.addEventListener("ahsEnableStickyHeader",()=>{i()}),s.addEventListener("ahsDisableStickyHeader",()=>{i()})),t.behaviors.themeSiteHeaderSticky={attach(){if(n("themeSiteHeaderStickyIntersectionObserver","html").length){const e=s.querySelector(".site-header__wrapper");if(!e)return;i(),o.scrollY>0&&(e.classList.add("no-transition"),setTimeout(()=>{e.classList.remove("no-transition")},500));let n=!1,r=o.scrollY;const a=5,l=s.createElement("div");l.style.position="absolute",l.style.top="0",l.style.height="1px",l.style.width="1px",l.style.pointerEvents="none",s.body.prepend(l);const c=t.ahsThemeSite.debounce(([t])=>{const s=o.scrollY;if(Math.abs(s-r)>=a){const o=!t.isIntersecting;o!==n&&(e.classList.toggle("is-pinned",o),n=o),r=s}},100),d=new IntersectionObserver(c,{rootMargin:"-1px 0px 10px 0px"});r>=a&&(e.classList.add("is-pinned"),n=!0),d.observe(l)}}}}(jQuery,Drupal,once,window,document);
16
17;
18!function(e,t,o){"use strict";t.behaviors.themeGlobalFlyoutMenu={attach(n){const s=o("themeGlobalFlyoutMenu","#global-menu",n);var l;if(0!==s.length&&"undefined"!=typeof ResizeObserver){new ResizeObserver(t.ahsThemeSite.debounce((l=s[0],(t,n)=>{t.forEach(t=>{if(t.contentRect.width<1080){n.disconnect();const t=o("themeMenuFlyoutOffcanvas",l);if(0===t.length)return;e(t[0]).offcanvas({modifiers:"left,overlay",closeButtonClass:"js-global-menu__close",triggerButton:".js-menu-toggle--global",onInit(){this.classList.remove("hidden")}})}})}),50)).observe(document.body)}}}}(jQuery,Drupal,once);;
19/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.14.1/LICENSE.txt */
20!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.1"}));
21
22/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
23/*!
24 * jQuery UI :data 1.14.1
25 * https://jqueryui.com
26 *
27 * Copyright OpenJS Foundation and other contributors
28 * Released under the MIT license.
29 * https://jquery.org/license
30 */
31!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo((function(n){return function(t){return!!e.data(t,n)}}))})}));
32
33/*!
34 * jQuery UI Disable Selection 1.14.1
35 * https://jqueryui.com
36 *
37 * Copyright OpenJS Foundation and other contributors
38 * Released under the MIT license.
39 * https://jquery.org/license
40 */
41!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}));
42
43/*!
44 * jQuery UI Legacy jQuery Core patches 1.14.1
45 * https://jqueryui.com
46 *
47 * Copyright OpenJS Foundation and other contributors
48 * Released under the MIT license.
49 * https://jquery.org/license
50 *
51 */
52!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter((function(e){return e%2==0}
52))},odd:function(){return this.filter((function(e){return e%2==1}))}})}));
53
54/*!
55 * jQuery UI Scroll Parent 1.14.1
56 * https://jqueryui.com
57 *
58 * Copyright OpenJS Foundation and other contributors
59 * Released under the MIT license.
60 * https://jquery.org/license
61 */
62!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}}));
63
64/*!
65 * jQuery UI Focusable 1.14.1
66 * https://jqueryui.com
67 *
68 * Copyright OpenJS Foundation and other contributors
69 * Released under the MIT license.
70 * https://jquery.org/license
71 */
72!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}));
73
74!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}}));
75
76/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.14.1/LICENSE.txt */
77/*!
78 * jQuery UI Position 1.14.1
79 * https://jqueryui.com
80 *
81 * Copyright OpenJS Foundation and other contributors
82 * Released under the MIT license.
83 * https://jquery.org/license
84 *
85 * https://api.jqueryui.com/position/
86 */
87!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";
vendor: 22,905 bytes, lines 87-158
87return function(){var i,o=Math.max,e=Math.abs,n=/left|center|right/,l=/top|center|bottom/,f=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,r=t.fn.position;function c(t,i,o){return[parseFloat(t[0])*(h.test(t[0])?i/100:1),parseFloat(t[1])*(h.test(t[1])?o/100:1)]}function p(i,o){return parseInt(t.css(i,o),10)||0}function a(t){return null!=t&&t===t.window}function d(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:a(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==i)return i;var o,e,n=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),l=n.children()[0];return t("body").append(n),o=l.offsetWidth,n.css("overflow","scroll"),o===(e=l.offsetWidth)&&(e=n[0].clientWidth),n.remove(),i=o-e},getScrollInfo:function(i){var o=i.isWindow||i.isDocument?"":i.element.css("overflow-x"),e=i.isWindow||i.isDocument?"":i.element.css("overflow-y"),n="scroll"===o||"auto"===o&&i.width<i.element[0].scrollWidth;return{width:"scroll"===e||"auto"===e&&i.height<i.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(i){var o=t(i||window),e=a(o[0]),n=!!o[0]&&9===o[0].nodeType;return{element:o,isWindow:e,isDocument:n,offset:!e&&!n?t(i).offset():{left:0,top:0},scrollLeft:o.scrollLeft(),scrollTop:o.scrollTop(),width:o.outerWidth(),height:o.outerHeight()}}},t.fn.position=function(i){if(!i||!i.of)return r.apply(this,arguments);var h,a,g,u,m,w,W="string"==typeof(i=t.extend({},i)).of?t(document).find(i.of):t(i.of),v=t.position.getWithinInfo(i.within),y=t.position.getScrollInfo(v),H=(i.collision||"flip").split(" "),b={};return w=d(W),W[0].preventDefault&&(i.at="left top"),a=w.width,g=w.height,u=w.offset,m=t.extend({},u),t.each(["my","at"],(function(){var t,o,e=(i[this]||"").split(" ");1===e.length&&(e=n.test(e[0])?e.concat(["center"]):l.test(e[0])?["center"].concat(e):["center","center"]),e[0]=n.test(e[0])?e[0]:"center",e[1]=l.test(e[1])?e[1]:"center",t=f.exec(e[0]),o=f.exec(e[1]),b[this]=[t?t[0]:0,o?o[0]:0],i[this]=[s.exec(e[0])[0],s.exec(e[1])[0]]})),1===H.length&&(H[1]=H[0]),"right"===i.at[0]?m.left+=a:"center"===i.at[0]&&(m.left+=a/2),"bottom"===i.at[1]?m.top+=g:"center"===i.at[1]&&(m.top+=g/2),h=c(b.at,a,g),m.left+=h[0],m.top+=h[1],this.each((function(){var n,l,f=t(this),s=f.outerWidth(),r=f.outerHeight(),d=p(this,"marginLeft"),w=p(this,"marginTop"),x=s+d+p(this,"marginRight")+y.width,T=r+w+p(this,"marginBottom")+y.height,L=t.extend({},m),P=c(b.my,f.outerWidth(),f.outerHeight());"right"===i.my[0]?L.left-=s:"center"===i.my[0]&&(L.left-=s/2),"bottom"===i.my[1]?L.top-=r:"center"===i.my[1]&&(L.top-=r/2),L.left+=P[0],L.top+=P[1],n={marginLeft:d,marginTop:w},t.each(["left","top"],(function(o,e){t.ui.position[H[o]]&&t.ui.position[H[o]][e](L,{targetWidth:a,targetHeight:g,elemWidth:s,elemHeight:r,collisionPosition:n,collisionWidth:x,collisionHeight:T,offset:[h[0]+P[0],h[1]+P[1]],my:i.my,at:i.at,within:v,elem:f})})),i.using&&(l=function(t){var n=u.left-L.left,l=n+a-s,h=u.top-L.top,c=h+g-r,p={target:{element:W,left:u.left,top:u.top,width:a,height:g},element:{element:f,left:L.left,top:L.top,width:s,height:r},horizontal:l<0?"left":n>0?"right":"center",vertical:c<0?"top":h>0?"bottom":"middle"};a<s&&e(n+l)<a&&(p.horizontal="center"),g<r&&e(h+c)<g&&(p.vertical="middle"),o(e(n),e(l))>o(e(h),e(c))?p.important="horizontal":p.important="vertical",i.using.call(this,t,p)}),f.offset(t.extend(L,{using:l}))}))},t.ui.position={fit:{left:function(t,i){var e,n=i.within,l=n.isWindow?n.scrollLeft:n.offset.left,f=n.width,s=t.left-i.collisionPosition.marginLeft,h=l-s,r=s+i.collisionWidth-f-l;i.collisionWidth>f?h>0&&r<=0?(e=t.left+h+i.collisionWidth-f-l,t.left+=h-e):t.left=r>0&&h<=0?l:h>r?l+f-i.collisionWidth:l:h>0?t.left+=h:r>0?t.left-=r:t.left=o(t.left-s,t.left)},top:function(t,i){var e,n=i.within,l=n.isWindow?n.scrollTop:n.offset.top,f=i.within.height,s=t.top-i.collisionPosition.marginTop,h=l-s,r=s+i.collisionHeight-f-l;i.collisionHeight>f?h>0&&r<=0?(e=t.top+h+i.collisionHeight-f-l,t.top+=h-e):t.top=r>0&&h<=0?l:h>r?l+f-i.collisionHeight:l:h>0?t.top+=h:r>0?t.top-=r:t.top=o(t.top-s,t.top)}},flip:{left:function(t,i){var o,n,l=i.within,f=l.offset.left+l.scrollLeft,s=l.width,h=l.isWindow?l.scrollLeft:l.offset.left,r=t.left-i.collisionPosition.marginLeft,c=r-h,p=r+i.collisionWidth-s-h,a="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,d="left"===i.at[0]?i.targetWidth:"right"===i.at[0]?-i.targetWidth:0,g=-2*i.offset[0];c<0?((o=t.left+a+d+g+i.collisionWidth-s-f)<0||o<e(c))&&(t.left+=a+d+g):p>0&&((n=t.left-i.collisionPosition.marginLeft+a+d+g-h)>0||e(n)<p)&&(t.left+=a+d+g)},top:function(t,i){var o,n,l=i.within,f=l.offset.top+l.scrollTop,s=l.height,h=l.isWindow?l.scrollTop:l.offset.top,r=t.top-i.collisionPosition.marginTop,c=r-h,p=r+i.collisionHeight-s-h,a="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,d="top"===i.at[1]?i.targetHeight:"bottom"===i.at[1]?-i.targetHeight:0,g=-2*i.offset[1];c<0?((n=t.top+a+d+g+i.collisionHeight-s-f)<0||n<e(c))&&(t.top+=a+d+g):p>0&&((o=t.top-i.collisionPosition.marginTop+a+d+g-h)>0||e(o)<p)&&(t.top+=a+d+g)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position}));
88
89/*!
90 * jQuery UI Unique ID 1.14.1
91 * https://jqueryui.com
92 *
93 * Copyright OpenJS Foundation and other contributors
94 * Released under the MIT license.
95 * https://jquery.org/license
96 */
97!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}((function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")}))}});var e}));
98
99/*!
100 * jQuery UI Keycode 1.14.1
101 * https://jqueryui.com
102 *
103 * Copyright OpenJS Foundation and other contributors
104 * Released under the MIT license.
105 * https://jquery.org/license
106 */
107!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}));
108
109/*!
110 * jQuery UI Widget 1.14.1
111 * https://jqueryui.com
112 *
113 * Copyright OpenJS Foundation and other contributors
114 * Released under the MIT license.
115 * https://jquery.org/license
116 */
117!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,(function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,(function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)})),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each((function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each((function(e,n){t.map(s.classesElementLookup,(function(t){return t})).some((function(t){return t.is(n)}))||i.push(n)})),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,(function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue((function(i){t(this)[e](),o&&o.call(s[0]),i()}))}})),t.widget}));
118
119/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
120/*!
121 * jQuery UI Labels 1.14.1
122 * https://jqueryui.com
123 *
124 * Copyright OpenJS Foundation and other contributors
125 * Released under the MIT license.
126 * https://jquery.org/license
127 */
128!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}}));
129
130/*!
131 * jQuery UI Controlgroup 1.14.1
132 * https://jqueryui.com
133 *
134 * Copyright OpenJS Foundation and other contributors
135 * Released under the MIT license.
136 * https://jquery.org/license
137 */
138!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}((function(t){"use strict";var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each((function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}}))))})),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,(function(t){var s=n.options.classes[t]||"";s=String.prototype.trim.call(s.replace(e,"")),o[t]=(s+" "+i[t]).replace(/\s+/g," ")})),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)})),this._callChildMethod("refresh"))}})}));
139
140/*!
141 * jQuery UI Form Reset Mixin 1.14.1
142 * https://jqueryui.com
143 *
144 * Copyright OpenJS Foundation and other contributors
145 * Released under the MIT license.
146 * https://jquery.org/license
147 */
148!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var r=t.data("ui-form-reset-instances");e.each(r,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}}));
149
150/*!
151 * jQuery UI Mouse 1.14.1
152 * https://jqueryui.com
153 *
154 * Copyright OpenJS Foundation and other contributors
155 * Released under the MIT license.
156 * https://jquery.org/license
157 */
158!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}((function(e){"use strict";var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(s){if(!0===e.data(s.target,t.widgetName+".preventClickEvent"))return e.removeData(s.target,t.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(s){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(s),this._mouseDownEvent=s;var i=this,o=1===s.which,n="string"==typeof this.options.cancel&&e(s.target).closest(this.options.cancel).length;
vendor: 4,323 bytes, lines 158-169
158return!(o&&!n&&this._mouseCapture(s))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(s)&&this._mouseDelayMet(s)&&(this._mouseStarted=!1!==this._mouseStart(s),!this._mouseStarted)?(s.preventDefault(),!0):(!0===e.data(s.target,this.widgetName+".preventClickEvent")&&e.removeData(s.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),s.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(s){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,s.target===this._mouseDownEvent.target&&e.data(s.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(s)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,s.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}));
159
160/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.14.1/LICENSE.txt */
161/*!
162 * jQuery UI Autocomplete 1.14.1
163 * https://jqueryui.com
164 *
165 * Copyright OpenJS Foundation and other contributors
166 * Released under the MIT license.
167 * https://jquery.org/license
168 */
169!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.autocomplete",{version:"1.14.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,u="input"===n;this.isMultiLine=o||!u&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||u?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||s.preventDefault());if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 13,838 bytes, lines 169-179
169)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var s,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(s=i.item.attr("aria-label")||n.value)&&String.prototype.trim.call(s).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(s))}),100))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=s),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||s)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,(function(e,i){s._renderItemData(t,i)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,(function(e){return s.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(i))}),100))}}),e.ui.autocomplete}));
170
171/*!
172 * jQuery UI Menu 1.14.1
173 * https://jqueryui.com
174 *
175 * Copyright OpenJS Foundation and other contributors
176 * Released under the MIT license.
177 * https://jquery.org/license
178 */
179!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.menu",{version:"1.14.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),s=e(this.document[0].activeElement);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay((function(){!e.contains(this.element[0],this.document[0].activeElement)&&this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),s=e(t.currentTarget);i[0]===s[0]&&(s.is(".ui-state-active")||(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var i,s,n,a,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,s=this.previousFilter||"",a=!1,n=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,s,n,a=this,u=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),i=t.prev(),s=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+u),i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")})),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,s,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,a,u,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),u=this.activeMenu.height(),o=t.outerHeight(),n<0?this.activeMenu.scrollTop(a+n):n+o>u&&this.activeMenu.scrollTop(a+n-u+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay((function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s}),i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
179se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),s&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s-n<0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s+n>0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return s.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))}))}})}));
180
181/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
182/*!
183 * jQuery UI Checkboxradio 1.14.1
184 * https://jqueryui.com
185 *
186 * Copyright OpenJS Foundation and other contributors
187 * Released under the MIT license.
188 * https://jquery.org/license
189 */
190!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(n.disabled=i),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();
vendor: 6,681 bytes, lines 190-200
190this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+CSS.escape(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter((function(){return 0===e(e(this).prop("form")).length}))).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each((function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio}));
191
192/*!
193 * jQuery UI Draggable 1.14.1
194 * https://jqueryui.com
195 *
196 * Copyright OpenJS Foundation and other contributors
197 * Released under the MIT license.
198 * https://jquery.org/license
199 */
200!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../scroll-parent","../version","../widget"],t):t(jQuery)}((function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=this.document[0].activeElement;t(e.target).closest(s).length||t(s).trigger("blur")},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==s._trigger("stop",e)&&s._clear()}
vendor: 2,174 bytes, line 200
200)):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRo
vendor: 19,900 bytes, lines 200-210
200otNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each((function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))}))},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,(function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,s,i){t.each(i.sortables,(function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o}))),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})}))},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort((function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)}));r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable}));
201
202/*!
203 * jQuery UI Resizable 1.14.1
204 * https://jqueryui.com
205 *
206 * Copyright OpenJS Foundation and other contributors
207 * Released under the MIT license.
208 * https://jquery.org/license
209 */
210!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}((function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){var s,h=!1,n=t(e).css("overflow");if("hidden"===n)return!1;if("scroll"===n)return!0;if(e[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{e[s]=1,h=e[s]>0,e[s]=0}catch(t){}return h},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())})).on("mouseleave",(function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)h="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,h,n;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")})),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,h=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(e){var i,s,h,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(n=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width,height:n.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:n.width,height:n.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,h=this.originalMousePosition,n=this.axis,o=e.pageX-h.left||0,a=e.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left
vendor: 4,127 bytes, line 210
210:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),s>n.minHeight&&(n.minHeight=s),i<n.maxWidth&&(n.maxWidth=i),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,h=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(i),p=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),o&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),h&&(t.height=e.maxHeight),n&&r&&(t.left=a-e.minWidth),s&&r&&(t.left=a-e.maxWidth),o&&p&&(t.top=l-e.minHeight),h&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(h[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s,h=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(h)&&!this._hasScroll(h,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(h.style.width),i=parseFloat(h.style.height),s=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,s,"width"):e,{height:i=isNaN(i)?this._getElementTheoreticalSize(t,s,"height"):i,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",to
vendor: 4,369 bytes, line 210
210p:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,h=i._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&i._hasScroll(h[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,p=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(g),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){i[t]=l._num(e.css("padding"+s))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(e){var i,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||e.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left
vendor: 1,110 bytes, line 210
210=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,h=e.containerPosition,n=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,r=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each((function(){var i=t(this),s=e._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})}))},resize:function(e,i){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left
vendor: 22,142 bytes, lines 210-237
210:s.position.left-o.left||0};t(h.alsoResize).each((function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,(function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(h[e]=i||null)})),e.css(h)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,h=i.size,n=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,_=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),_&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(i.size.width=u,i.size.height=c):/^(ne)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.top=o.top-g):/^(sw)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.left=o.left-d):((c-p<=0||u-r<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),c-p>0?(i.size.height=c,i.position.top=o.top-g):(c=p-e.height,i.size.height=c,i.position.top=o.top+n.height-c),u-r>0?(i.size.width=u,i.position.left=o.left-d):(u=r-e.width,i.size.width=u,i.position.left=o.left+n.width-u))}}),t.ui.resizable}));
211
212/*!
213 * jQuery UI Button 1.14.1
214 * https://jqueryui.com
215 *
216 * Copyright OpenJS Foundation and other contributors
217 * Released under the MIT license.
218 * https://jquery.org/license
219 */
220!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}((function(t){"use strict";var i;return t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(o){var s="string"==typeof o,n=Array.prototype.slice.call(arguments,1),e=this;return s?this.length||"instance"!==o?this.each((function(){var i,s=t(this).attr("type"),h="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",a=t.data(this,"ui-"+h);return"instance"===o?(e=a,!1):a?"function"!=typeof a[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for button widget instance"):(i=a[o].apply(a,n))!==a&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")})):e=void 0:(n.length&&(o=t.widget.extend.apply(null,[o].concat(n))),this.each((function(){var s=t(this).attr("type"),n="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",e=t.data(this,"ui-"+n);if(e)e.option(o||{}),e._init&&e._init();else{if("button"===n)return void i.call(t(this),o);t(this).checkboxradio(t.extend({icon:!1},o))}}))),e}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button}));
221
222/*!
223 * jQuery UI Dialog 1.14.1
224 * https://jqueryui.com
225 *
226 * Copyright OpenJS Foundation and other contributors
227 * Released under the MIT license.
228 * https://jquery.org/license
229 */
230!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}((function(i){"use strict";return i.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,(function(){e._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+i(this).css("z-index")})).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.first(),s=e.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){s.trigger("focus")})),t.preventDefault()):(this._delay((function(){o.trigger("focus")})),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}});var e=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";t=i("<"+e+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||Array.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,(function(e,o){var s,n;o="function"==typeof o?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",(function(){s.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,(function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)})),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&n.attr("aria-modal",e?"true":null))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay((function(){t=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){if(!t){var e=this._trackingInstances()[0];e._allowInteraction(i)||(i.preventDefault(),e._focusTabbable())}}.bind(this)),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog}));
231
232/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
233/*!
234* tabbable 6.3.0
235* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
236*/
237!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
237(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}
237(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}}));
238
239;
240/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
241(function($,Drupal){let autocomplete;function autocompleteSplitValues(value){const result=[];let quote=false;let current='';const valueLength=value.length;let character;for(let i=0;i<valueLength;i++){character=value.charAt(i);if(character==='"'){current+=character;quote=!quote;}else if(character===','&&!quote){result.push(current.trim());current='';}else current+=character;}if(value.length>0)result.push(current.trim());return result;}function extractLastTerm(terms){return autocomplete.splitValues(terms).pop();}function searchHandler(event){const options=autocomplete.options;if(options.isComposing)return false;const term=autocomplete.extractLastTerm(event.target.value);if(term.length>0&&options.firstCharacterBlacklist.includes(term[0]))return false;return term.length>=options.minLength;}function sourceData(request,response){const elementId=this.element.attr('id');if(!(elementId in autocomplete.cache))autocomplete.cache[elementId]={};function showSuggestions(suggestions){const tagged=autocomplete.splitValues(request.term);const il=tagged.length;for(let i=0;i<il;i++)if(suggestions.includes(tagged[i]))suggestions.splice(suggestions.indexOf(tagged[i]),1);response(suggestions);}const term=autocomplete.extractLastTerm(request.term);function sourceCallbackHandler(data){autocomplete.cache[elementId][term]=data;showSuggestions(data);}if(autocomplete.cache[elementId].hasOwnProperty(term))showSuggestions(autocomplete.cache[elementId][term]);else{const options=$.extend({success:sourceCallbackHandler,data:{q:term}},autocomplete.ajax);$.ajax(this.element.attr('data-autocomplete-path'),options);}}function focusHandler(){return false;}function selectHandler(event,ui){const terms=autocomplete.splitValues(event.target.value);terms.pop();terms.push(ui.item.value);event.target.value=terms.join(', ');return false;}function renderItem(ul,item){return $('<li>').append($('<a>').html(item.label)).appendTo(ul);}Drupal.behaviors.autocomplete={attach(context){once('autocomplete','input.form-autocomplete',context).forEach((element)=>{const $autocomplete=$(element);const blacklist=$autocomplete.attr('data-autocomplete-first-character-blacklist');$.extend(autocomplete.options,{firstCharacterBlacklist:blacklist||''});$autocomplete.autocomplete(autocomplete.options).each(function(){$(this).data('ui-autocomplete')._renderItem=autocomplete.options.renderItem;});$autocomplete.on('compositionstart.autocomplete',()=>{autocomplete.options.isComposing=true;});$autocomplete.on('compositionend.autocomplete',()=>{autocomplete.options.isComposing=false;});});},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('autocomplete','input.form-autocomplete',context)).autocomplete('destroy');}};autocomplete={cache:{},splitValues:autocompleteSplitValues,extractLastTerm,options:{source:sourceData,focus:focusHandler,search:searchHandler,select:selectHandler,renderItem,minLength:1,firstCharacterBlacklist:'',isComposing:false},ajax:{dataType:'json',jsonp:false}};Drupal.autocomplete=autocomplete;})(jQuery,Drupal);;
242/**
243 * tua-body-scroll-lock v1.6.1
244 * (c) 2025 Evinma, BuptStEve
245 * @license MIT
246 */
247!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");
247var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}function c(e,t,n){var o,i,l,c,r=e.scrollTop,s=e.scrollLeft,d=e.scrollWidth,u=e.scrollHeight,a=e.clientWidth,f=e.clientHeight,v=function(e){var t=window.getComputedStyle(e).flexDirection;return{column:"column-reverse"===t,row:"row-reverse"===t}}(e);return v.column?(o=n>0&&Math.abs(r)+f+1>=u,i=n<0&&Math.abs(r)<=1):(o=n>0&&0===r,i=n<0&&r+f+1>=u),v.row?(l=t>0&&Math.abs(s)+a+1>=d,c=t<0&&Math.abs(s)<=1):(l=t>0&&0===s,c=t<0&&s+a+1>=d),{isOnTop:o,isOnBottom:i,isOnLeft:l,isOnRight:c}}var r={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function s(e){if(t())return r;if(!(null==e?void 0:e.useGlobalLockState))return s.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},r),window.__BSL_LOCK_STATE__):r;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function u(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}s.lockState=r,e.clearBodyLocks=function(e){var o;if(!t()){var i=s(e);if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();u(i)}}},e.getLockState=s,e.lock=function(e,r){if(!t()){var u=n(),a=s(r);u.ios?(l(e).filter((function(e){return e&&-1===a.lockedElements.indexOf(e)})).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;a.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=e.targetTouches[0].clientX-n.clientX,l=e.targetTouches[0].clientY-n.clientY,r=Math.abs(l)>Math.abs(o),s=c(t,o,l),d=s.isOnTop,u=s.isOnBottom,a=s.isOnLeft,f=s.isOnRight;if(r&&(d||u)||!r&&(a||f))return i()(e)}e.stopPropagation()}(t,e,a.initialClientPos)},a.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(a),(null==r?void 0:r.setOverflowForIOS)&&(a.unLockCallback=d())):a.lockedNum<=0&&(a.unLockCallback=u.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(r):d()),a.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=s(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1))})),u(c)))}}}));
248;
249(function(Drupal){'use strict';Drupal.ahsFrontendSecurity={sanitize(str){return String(str).replace(/&/g,'&amp;').replace(/"/g,'&quot;').replace(/'/g,'&#39;').replace(/</g,'&lt;').replace(/>/g,'&gt;');}};})(Drupal);;
250(function($,Drupal,window){'use strict';let passiveEventIsSupported=null;function checkPassiveEventOptions(){if(passiveEventIsSupported!==null)return passiveEventIsSupported;try{const testPassiveEventObject=Object.defineProperty({},"passive",{get(){passiveEventIsSupported=true;return null;}});window.addEventListener("test",null,testPassiveEventObject);window.removeEventListener("test",null,testPassiveEventObject);}catch(err){passiveEventIsSupported=false;}return passiveEventIsSupported;}Drupal.ahsSite=Drupal.ahsSite||{};const app=Drupal.ahsSite;app.urlQueryString='';app.urlQueryParameters=null;app.urlQueryParametersEventProcessing=false;app.getOuterHeightWithMargin=function(element){const h=element.getBoundingClientRect().height;const styles=window.getComputedStyle(element);const margin=parseFloat(styles.marginTop)+parseFloat(styles.marginBottom);return h+margin;};app.getOuterWidthWithMargin=function(element){const w=element.getBoundingClientRect().width;const styles=window.getComputedStyle(element);const margin=parseFloat(styles.marginRight)+parseFloat(styles.marginLeft);return w+margin;};app.setTransform=function(elementInput,transform){const $element=$(elementInput);if($element.length===0)return;const style=$element.attr('style');let transformMatches=null;if(typeof style!=='undefined'&&!!style)transformMatches=style.match(/transform:([^;]+);/i);if(transformMatches===null||transformMatches.length===0){const transformStyles=[];$.each(transform,function(name,transformValue){if(typeof transformValue!=='undefined'&&transformValue!==null)transformStyles.push(transformValue);});$element.css('transform',transformStyles.join(' '));return;}const transformOriginal={};const transformOriginalParts=transformMatches[1].trim().split(') ');$.each(transformOriginalParts,function(k,transformValue){const valueParts=transformValue.trim().match(/^(\w+)\((.*)\)?$/);if(valueParts!==null&&valueParts.length===3){const cleanValuePart=valueParts[2].trim().replace(/\)$/,'');if(valueParts[1] in transformOriginal)transformOriginal[valueParts[1]]+=` ${valueParts[1]}(${cleanValuePart})`;else transformOriginal[valueParts[1]]=`${valueParts[1]}(${cleanValuePart})`;}});const transformUpdated=$.extend({},transformOriginal,transform);const transformUpdatedParts=[];$.each(transformUpdated,function(name,transformValue){if(typeof transformValue!=='undefined'&&transformValue!==null)transformUpdatedParts.push(transformValue);});$element.css('transform',transformUpdatedParts.join(' '));};app.filterForCurrentPageAnchors=function(index,element){const href=$(element).attr('href');if($(element).attr('data-dialog-type')==='modal')return false;if(typeof href==='undefined'||href===null||href.indexOf('#')===-1)return false;if(href.match(/^#\w/i)!==null)return true;if(typeof window.location.pathname!=='undefined'){const relPath=window.location.pathname.replace(/\/+$/,'');let relPathAnchor=`${relPath}#`;if(href.indexOf(relPathAnchor)===0)return relPathAnchor.length<href.length;relPathAnchor=`${relPath}/#`;if(href.indexOf(relPathAnchor)===0)return relPathAnchor.length<href.length;if(typeof window.location.protocol!=='undefined'&&typeof window.location.hostname!=='undefined'){const url=`${window.location.protocol}//${window.location.hostname.replace(/^\/+/,'').replace(/\/+$/,'')}/${relPath.replace(/^\/+/,'')}`;let urlAnchor;urlAnchor=`${url}#`;if(href.indexOf(urlAnchor)===0)return urlAnchor.length<href.length;urlAnchor=`${url}/#`;if(href.indexOf(urlAnchor)===0)return urlAnchor.length<href.length;}}};app.isHeaderSticky=function(){if(('ahsThemeSite' in Drupal)&&('isHeaderSticky' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.isHeaderSticky();return false;};app.getStickyHeaderOuterHeight=function(){if(('ahsThemeSite' in Drupal)&&('get
250StickyHeaderOuterHeight' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.getStickyHeaderOuterHeight();return 0;};app.focus=function($target,message,allowScroll){if(('ahsThemeSite' in Drupal)&&('focus' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.focus($target,message,allowScroll);return $target;};app.scrollTop=function(target,options){if(('ahsThemeSite' in Drupal)&&('scrollTop' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.scrollTop(target,options);return $(target);};app.scrollToAnchorTarget=function(hash,options){if(('ahsThemeSite' in Drupal)&&('scrollToAnchorTarget' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.scrollToAnchorTarget(hash,options);return $([]);};app.disableOnloadAccessibilityActions=function(){if(('ahsThemeSite' in Drupal)&&('disableOnloadAccessibilityActions' in Drupal.ahsThemeSite))Drupal.ahsThemeSite.disableOnloadAccessibilityActions();};app.processEmptySidebars=function(context,force){if(('ahsThemeSite' in Drupal)&&('processEmptySidebars' in Drupal.ahsThemeSite))Drupal.ahsThemeSite.processEmptySidebars(context,force);};app.createModalLoadingOverlay=function(className,message=''){if(('ahsThemeSite' in Drupal)&&('createModalLoadingOverlay' in Drupal.ahsThemeSite))Drupal.ahsThemeSite.createModalLoadingOverlay(className,message);};app.showModalLoadingOverlay=function(className,message=''){if(('ahsThemeSite' in Drupal)&&('showModalLoadingOverlay' in Drupal.ahsThemeSite))Drupal.ahsThemeSite.showModalLoadingOverlay(className,message);};app.hideModalLoadingOverlay=function(className){if(('ahsThemeSite' in Drupal)&&('hideModalLoadingOverlay' in Drupal.ahsThemeSite))Drupal.ahsThemeSite.hideModalLoadingOverlay(className);};app.getPassiveEventOptions=function(){if(('ahsThemeSite' in Drupal)&&('getPassiveEventOptions' in Drupal.ahsThemeSite))return Drupal.ahsThemeSite.getPassiveEventOptions();checkPassiveEventOptions();return passiveEventIsSupported?{passive:true}:false;};app.decodeURIComponent=function(s){return decodeURIComponent(s).replace(/\+/g," ");};app.decodeURIComponentValue=function(s){const d=this.decodeURIComponent(s);if(d.indexOf(':')!==-1){const parts=d.split(':');if(parts.length>1){let key=parts.shift();key=key.trim();const obj={};obj[key]=parts.join(':');return obj;}}return d;};app.parseQueryStringPlain=function(query){const args={};const pos=query.indexOf('?');if(pos!==-1)query=query.substring(pos+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q'&&pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));}return args;};app.encodeQueryParameters=function(queryParameters,prefix){const parts=[];Object.keys(queryParameters).forEach((p)=>{if(queryParameters.hasOwnProperty(p)){const k=prefix?`${prefix}[${p}]`:p;const v=queryParameters[p];parts.push((v!==null&&typeof v==="object")?this.encodeQueryParameters(v,k):`${encodeURIComponent(k)}=${encodeURIComponent(v)}`);}});return parts.join("&");};app.removeFacetsFromQueryString=function(query){let prefixQ=false;if(query.indexOf('?')===0){query=query.substring(1);prefixQ=true;}const queryParams=this.parseQueryStringPlain(query);if(queryParams&&$.isPlainObject(queryParams)){const queryParamsFiltered={};$.each(queryParams,function(paramKey,paramValue){if(!paramKey.match(/^f\[/i))queryParamsFiltered[paramKey]=paramValue;});return !$.isEmptyObject(queryParamsFiltered)?(prefixQ?'?':'')+$.param(queryParamsFiltered):'';}return query;};app.removeNonFacetsFromQueryString=function(query){let prefixQ=false;if(query.indexOf('?')===0){query=query.substring(1);prefixQ=true;}const queryParams=this.parseQueryStringPlain(query);if(queryParams&&$.isPlainObject(queryParams)){const queryParamsFiltered={};$.each(queryParams,function(paramKey,paramValue){if(paramKey.match(/^f\[/i))queryParamsFiltered[paramKey]=paramValue;});return !$.isEmptyObject(queryParamsFiltered)?(prefixQ?'?':'')+$.param(queryParamsFiltered):'';}return query;};app.parseUrlQueryParameters=function(queryString){const startPos=queryString.indexOf('?');if(startPos!==-1)queryString=queryString.substring(startPos+1);const params={};const search=/([^&=]+)=?([^&]*)/g;let match=search.exec(queryString);while(match!==null){const keyDecoded=this.decodeURIComponent(match[1]);let valueDecoded=this.decodeURIComponentValue(match[2]);if(keyDecoded==='listFilters'&&!!valueDecoded)valueDecoded=this.parseUrlQueryParameters(valueDecoded);if(keyDecoded in params){if(!Array.isArray(params[keyDecoded]))params[keyDecoded]=[params[keyDecoded]];params[keyDecoded].push(valueDecoded);}else params[keyDecoded]=valueDecoded;match=search.exec(queryString);}const paramKeys=Object.keys(params);paramKeys.sort();const paramsProcessed={};if(paramKeys.length>0)$.each(paramKeys,function(k,paramKey){const assocKeyMatches=paramKey.match(/^(.+)\[([\w\d]+)\]/);if(assocKeyMatches!==null&&assocKeyMatches.length>2){const assocKeyName=assocKeyMatches[1];const assocKeyIndex=assocKeyMatches[2];if(!(assocKeyName in paramsProcessed))paramsProcessed[assocKeyName]={};else{if(!Array.isArray(paramsProcessed[assocKeyName])&&!$.isPlainObject(paramsProcessed[assocKeyName]))return true;}if(assocKeyIndex in paramsProcessed[assocKeyName])if($.isPlainObject(paramsProcessed[assocKeyName][assocKeyIndex]))if($.isPlainObject(params[paramKey]))$.extend(paramsProcessed[assocKeyName][assocKeyIndex],params[paramKey]);else paramsProcessed[assocKeyName][assocKeyIndex]=params[paramKey];else{if(Array.IsArray(paramsProcessed[assocKeyName][assocKeyIndex]))paramsProcessed[assocKeyName][assocKeyIndex].push(params[paramKey]);}else paramsProcessed[assocKeyName][assocKeyIndex]=params[paramKey];}else paramsProcessed[paramKey]=params[paramKey];});return paramsProcessed;};app.getUrlQueryString=function(reset){this.getUrlQueryParameters(reset);return this.urlQueryString;};app.getUrlQueryParameters=function(reset){if(this.urlQueryParametersEventProcessing)return this.urlQueryParameters;if(this.urlQueryParameters!==null)if(typeof reset==='undefined'||!reset)return this.urlQueryParameters;const queryString=window.location.search.substring(1);if(this.urlQueryString&&this.urlQueryString===queryString)return this.urlQueryParameters;this.urlQueryParameters={};this.urlQueryString=queryString;this.urlQueryParameters=this.parseUrlQueryParameters(queryString);this.urlQueryParametersEventProcessing=true;$(document).trigger('ahsSiteUrlQueryParametersUpdated');this.urlQueryParametersEventProcessing=false;return this.urlQueryParameters;};app.getUrlQueryParameter=function(name){const params=this.getUrlQueryParameters();return name in params?params[name]:null;};app.localStorageIsAvailable=function(){if(!window.localStorage)return false;if(window.localStorage.length===0)return true;try{const x='__storage_test__';window.localStorage.setItem('x',x);window.localStorage.removeItem('x');return true;}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED');}};window.addEventListener('popstate',function(){app.getUrlQueryParameters(true);});Drupal.behaviors.ahsSite={attach:function(){app.getUrlQueryParameters(true);}};}(jQuery,Drupal,window));;
251(function($,Drupal,once){'use strict';Drupal.behaviors.facetsFilter={attach:function(context){$(once('js-facet-filter','.js-facets-widget',context)).on('facets_filter.facets',function(event,url){$('.js-facets-widget').trigger('facets_filtering');window.location=url;});}};})(jQuery,Drupal,once);;
252(function($,Drupal,once){'use strict';Drupal.facets=Drupal.facets||{};Drupal.behaviors.facetsCheckboxWidget={attach:function(context){Drupal.facets.makeCheckboxes(context);}};window.onbeforeunload=function(e){if(Drupal.facets){var $checkboxWidgets=$('.js-facets-checkbox-links');if($checkboxWidgets.length>0)$checkboxWidgets.each(function(index,widget){var $widget=$(widget);var $widgetLinks=$widget.find('.facet-item > a');$widgetLinks.each(Drupal.facets.updateCheckbox);});}};Drupal.facets.makeCheckboxes=function(context){var $checkboxWidgets=$(once('facets-checkbox-transform','.js-facets-checkbox-links',context));if($checkboxWidgets.length>0)$checkboxWidgets.each(function(index,widget){var $widget=$(widget);var $widgetLinks=$widget.find('.facet-item > a');$widget.addClass('js-facets-widget');$widgetLinks.each(Drupal.facets.makeCheckbox);Drupal.attachBehaviors(this.parentNode,Drupal.settings);});$('.facet-item--expanded.facet-item--active-trail > input').prop('indeterminate',true);};Drupal.facets.makeCheckbox=function(){var $link=$(this);var active=$link.hasClass('is-active');var description=$link.html();var href=$link.attr('href');var id=$link.data('drupal-facet-item-id');var checkbox=$('<input type="checkbox" class="facets-checkbox">').attr('id',id).data($link.data()).data('facetsredir',href);var label=$('<label for="'+id+'">'+description+'</label>');checkbox.on('change.facets',function(e){e.preventDefault();var $widget=$(this).closest('.js-facets-widget');Drupal.facets.disableFacet($widget);$widget.trigger('facets_filter',[href]);});if(active){checkbox.attr('checked',true);label.find('.js-facet-deactivate').remove();}$link.before(checkbox).before(label).hide();};Drupal.facets.updateCheckbox=function(){var $link=$(this);var active=$link.hasClass('is-active');if(!active)$link.parent().find('input.facets-checkbox').prop('checked',fal
252se);};Drupal.facets.disableFacet=function($facet){$facet.addClass('facets-disabled');$('input.facets-checkbox',$facet).click(Drupal.facets.preventDefault);$('input.facets-checkbox',$facet).attr('disabled',true);};Drupal.facets.preventDefault=function(e){e.preventDefault();};})(jQuery,Drupal,once);;
253(function($,Drupal,drupalSettings,once){'use strict';const facetLinksTargetClass='js-facets-ahs-appt-reason-links';const facetDropdownClass='facets-ahs-appt-reason-dropdown';const makeDropdown=function(context){$(once('factes-ahs-appt-reason-dropdown-transform',`.${facetLinksTargetClass}`,context)).each(function(){const ul=this;const $ul=$(ul);const $links=$ul.find('.facet-item a');const $dropdown=$('<select></select>');$.each(ul.attributes,function(idx,attr){$dropdown.attr(attr.name,attr.value);});$dropdown.removeClass(facetLinksTargetClass);$dropdown.addClass(facetDropdownClass);$dropdown.addClass(`js-${facetDropdownClass}`);$dropdown.addClass('js-facets-widget');$links.each(function(){const $link=$(this);const active=$link.hasClass('is-active');const $option=$('<option></option>').attr('value',$link.attr('href')).data($link.data());if(active){$option.attr('selected','selected');$option.prop('selected',true);$link.find('.js-facet-deactivate').remove();}$option.html($link.text());$dropdown.append($option);});$dropdown.data('ahsApptReasonFacetsWidgetLinksList',$ul[0]).on('change.facets',function(){const $t=$(this);const list=$t.data('ahsApptReasonFacetsWidgetLinksList');if(typeof list!=='undefined'){const $list=$(list);if($list.length>0){let $linkElement=$list.find(`[data-drupal-facet-item-id='${$t.find(':selected').data('drupalFacetItemId')}']`);if($linkElement.length===0)$linkElement=$list.find('.default-option a');if($linkElement.length>0){const linkUrl=$linkElement.attr('href');$t.trigger('facets_filter',[linkUrl]);}}}});$ul.after($dropdown).hide();const $changedContext=$dropdown.parent();$changedContext.data('ahsApptReasonMakeDropdownTriggered',true);Drupal.attachBehaviors($changedContext[0],drupalSettings);$changedContext.removeData('ahsApptReasonMakeDropdownTriggered');});};Drupal.behaviors.ahsApptReasonFacetsWidget={attach:function(context){if($(context).data('ahsApptReasonMakeDropdownTriggered')!==true)makeDropdown(context);}};})(jQuery,Drupal,window.drupalSettings,once);;
254(function(Drupal,document){"use strict";const ns='ahsSearchHelper';Drupal[ns]=(ns in Drupal)?Drupal[ns]:{};const app=Drupal[ns];app.getFacetRawValues=function(){const facetValues=[];const elementFacets=[];document.querySelectorAll('[data-drupal-facet-alias]').forEach(function(facet){const alias=facet.getAttribute('data-drupal-facet-alias');if(alias){elementFacets.push(alias);facet.querySelectorAll('a.is-active[data-drupal-facet-item-value]').forEach(function(item){let value=item.getAttribute('data-drupal-facet-item-value');const facetValueObject={};if(alias==='reason')value=value.replace('reason-','');facetValueObject[alias]=value;facetValues.push(facetValueObject);});}});const facetUrlParams=Drupal.ahsSite.getUrlQueryParameter('f');if(facetUrlParams!==null&&typeof facetUrlParams==='object')Object.values(facetUrlParams).forEach(function(urlFacet){if(typeof urlFacet==='object')Object.keys(urlFacet).forEach(function(urlFacetName){if(!elementFacets.includes(urlFacetName))facetValues.push(urlFacet);});});return facetValues;};app.getFacets=function(){const facets={};const queryFacets=this.getFacetRawValues();if(queryFacets)Object.values(queryFacets).forEach((facet)=>{Object.entries(facet).forEach(([facetName,facetValue])=>{const facetNameClean=facetName.trim().toLowerCase();const facetValueClean=`${facetValue}`;if(facetNameClean in facets)facets[facetNameClean].push(facetValueClean);else facets[facetNameClean]=[facetValueClean];});});if('reason' in facets)if(facets.reason.length>0)facets.reason=facets.reason.pop();else delete facets.reason;return facets;};})(Drupal,document);;
255(function(Drupal,once){'use strict';function showFacetBlock(block){block.classList.remove('hidden--important');block.classList.remove('hidden');block.removeAttribute('aria-hidden');}function hideFacetBlock(block){if(!block.classList.contains('hidden--important'))block.classList.add('hidden--important');block.setAttribute('aria-hidden','true');}Drupal.behaviors.ahsAvailabilityFaceting={attach:function(context){const availabilityBlocks=once('ahsAvailabilityFacetBlockInit','.availability-facet-block',context);if(!availabilityBlocks.length)return;const activeFacets=Drupal.ahsSearchHelper.getFacets();const activeReasonType=('reason' in activeFacets)?parseInt(activeFacets.reason,10):null;let activeAvailabilityFacetAlias=null;switch(activeReasonType){case 1:activeAvailabilityFacetAlias='appointments_new';break;case 2:activeAvailabilityFacetAlias='appointments_return';break;case 3:activeAvailabilityFacetAlias='appointments_annual';break;default:break;}if(activeAvailabilityFacetAlias===null)availabilityBlocks.forEach((block)=>{hideFacetBlock(block);});else availabilityBlocks.forEach((block)=>
255{if(block.querySelector(`[data-drupal-facet-alias="${activeAvailabilityFacetAlias}"]`))showFacetBlock(block);else{if(!block.classList.contains('hidden--important'))hideFacetBlock(block);}});}};})(Drupal,once);;
256(function(Drupal,drupalSettings,window,once){'use strict';function storeValueForClosed(id){if(typeof id==='undefined'||!id)return;if(typeof window.localStorage!=='undefined'&&window.localStorage)window.localStorage.setItem(`bannerClosed_${id}`,'1');}function getValueForClosed(id){if(typeof id==='undefined'||!id)return false;if(typeof window.localStorage!=='undefined'&&window.localStorage){const value=window.localStorage.getItem(`bannerClosed_${id}`);return value==='1';}return false;}function getItem(element){return element.closest('.emergency-banners__list-item');}function getSiblingItems(element){const item=getItem(element);if(!item)return [];return Array.from(item.parentNode.children).filter((child)=>child!==item);}function getContentElement(element){if(element.classList.contains('emergency-banner'))return element;const item=getItem(element);return item?item.querySelector('.emergency-banner'):null;}function toggleItem(element,expand=null){const content=getContentElement(element);if(!content)return;expand=typeof expand!=='undefined'&&expand!==null?expand:element.classList.contains('emergency-banner--collapsed');const headline=content.querySelector('.emergency-banner__headline');if(headline){content.classList.toggle('emergency-banner--collapsed',!expand);headline.setAttribute('aria-expanded',expand?'true':'false');}}function collapseItem(element){toggleItem(element,false);}function disableStickyHeader(){const event=new Event('ahsDisableStickyHeader');window.document.dispatchEvent(event);}function enableStickyHeader(){const event=new Event('ahsEnableStickyHeader');window.document.dispatchEvent(event);}function onAllBannersClosed(){enableStickyHeader();}function onAllBannersCollapsed(){enableStickyHeader();}function onBannerExpanded(element){const item=getItem(element);if(item){const siblings=getSiblingItems(item);siblings.forEach((sibling)=>{collapseItem(sibling);});}disableStickyHeader();}function setClosedItemStyles(item){if(!item.classList.contains('hidden'))item.classList.add('hidden');item.classList.remove('reveal');}function closeItem(element){const item=getItem(element);storeValueForClosed(item.id);setClosedItemStyles(item);const siblings=getSiblingItems(item);const visibleSiblings=[];siblings.forEach((sibling)=>{if(!sibling.classList.contains('hidden'))visibleSiblings.push(sibling);});if(visibleSiblings.length===0)onAllBannersClosed();else{const collapsedSiblings=[];siblings.forEach((sibling)=>{const siblingBanner=sibling.querySelector('.emergency-banner');if(siblingBanner&&siblingBanner.classList.contains('emergency-banner--collapsed'))collapsedSiblings.push(sibling);});if(collapsedSiblings.length===siblings.length)onAllBannersCollapsed();}}function onHeadlineClick(headlineElement){const item=getItem(headlineElement);if(!item)return;const content=getContentElement(item);if(!content)return;toggleItem(content);if(content.classList.contains('emergency-banner--collapsed'))onAllBannersCollapsed();else onBannerExpanded(item);}function processBanners(context,settings){if(typeof settings==='undefined')settings=drupalSettings;const items=once('ahsBannersEmergencyInit','.emergency-banners__list-item',context);if(!items.length)return;const visibleItems=[];items.forEach((item)=>{const id=item.id;if(getValueForClosed(id))setClosedItemStyles(item);else{visibleItems.push(item);item.classList.add('reveal');item.classList.remove('hidden');}const closeLinks=once('ahsBannersEmergencyClick','.emergency-banner__close-link',item);if(closeLinks.length>0){closeLinks[0].addEventListener('click',function(e){e.preventDefault();closeItem(this);});closeLinks[0].addEventListener('keydown',function(e){if(!e.key)return;const key=e.key.toUpperCase();if(key!=='ENTER'&&key!==' '&&key!=='SPACEBAR')return;e.preventDefault();closeItem(this);});}const noticeCollapseLinks=once('ahsBannersEmergencyClick','.emergency-banner-notice__collapse .collapse-link',item);if(noticeCollapseLinks.length>0){noticeCollapseLinks[0].addEventListener('click',function(e){e.preventDefault();collapseItem(this);onAllBannersCollapsed();});noticeCollapseLinks[0].addEventListener('keydown',function(e){if(!e.ke
256y)return;const key=e.key.toUpperCase();if(key!=='ENTER'&&key!==' '&&key!=='SPACEBAR')return;e.preventDefault();collapseItem(this);onAllBannersCollapsed();});}const headlines=once('ahsBannersEmergencyClick','.emergency-banner__headline',item);if(headlines.length>0){headlines[0].setAttribute('aria-expanded','false');headlines[0].addEventListener('click',function(e){e.preventDefault();onHeadlineClick(this);});headlines[0].addEventListener('keydown',function(e){if(!e.key)return;const key=e.key.toUpperCase();if(key!=='ENTER'&&key!==' '&&key!=='SPACEBAR')return;e.preventDefault();onHeadlineClick(this);});}});if(visibleItems.length===0)onAllBannersClosed();}Drupal.behaviors.ahsBannersEmergency={attach:function(context,settings){if(context===window.document)processBanners(context,settings);}};}(Drupal,window.drupalSettings,window,once));;
257(function($,Drupal,window,once){'use strict';function setQueryStringPageIndex(query,pageIndex){const nameEncoded='page';const value=parseInt(pageIndex,10);const regex=new RegExp(`(^|&)${nameEncoded}=([^&#]*)(|&|#|$)`,'i');const results=regex.exec(query);const newKeyValue=value>0?`${nameEncoded}=${encodeURIComponent(value)}`:'';if(!results){if(query)return newKeyValue?`${query}&${newKeyValue}`:query;return newKeyValue;}const oldValue=parseInt(results[2],10);if(oldValue===value)return query;const replacement=results[1]+newKeyValue+(results[3]?results[3]:'');return query.replace(results[0],replacement);}function getUrlQueryString(){if(('location' in window)&&typeof window.location!=='undefined'&&('search' in window.location)&&typeof window.location.search!=='undefined'&&window.location.search.length>1)return window.location.search.substring(1);return '';}function buildLinkQueryString(linkBackQueryString){if(linkBackQueryString)return $.param({listFilters:linkBackQueryString});return '';}function processLink(linkElement,linkQueryString){const $link=$(linkElement);if(linkQueryString){let href=$link.attr('href');if(typeof href!=='undefined'&&href.indexOf('#')!==0&&href.indexOf('tel:')!==0&&href.indexOf('javascript')!==0&&href.indexOf('http')!==0){if(href.indexOf('?')!==-1)href=href.replace('?',`?${linkQueryString}&`);else if(href.indexOf('#')!==-1)href=href.replace('#',`?${linkQueryString}#`);else href=`${href}?${linkQueryString}`;$link.attr('href',href);}}return $link;}function processLinks(context){const viewContentLinkSelector='h2 > a, h3 > a, h4 > a, a.button, a.button--cta, .location-block__services-list-link, .physician-block__name > a .physician-block__cta > a, .physician-block__image-link, .physician-block__scheduling > a, .appointment-block__time-slot, .appointment-block__view-all, .appointment-location-block-empty a, .event-details-item__time-link, .caption-block__image-link';let $links=$(viewContentLinkSelector,context);$links=$(once('ahs-breadcrumbs-views-alter',$links));if($links.length>0){let linkQueryString='';const urlQueryString=getUrlQueryString();const $pagedResults=$links.closest('[data-views-page-index]');if($pagedResults.length>0)$pagedResults.each(function(){const $thisResults=$(this);let pageIndex=$thisResults.data('viewsPageIndex');pageIndex=typeof pageIndex!=='undefined'&&pageIndex?parseInt(pageIndex,10):0;const pageQueryString=setQueryStringPageIndex(urlQueryString,pageIndex);const pageLinkQueryString=buildLinkQueryString(pageQueryString);$($links,$thisResults).each(function(){processLink(this,pageLinkQueryString);});});else{linkQueryString=buildLinkQueryString(urlQueryString);$links.each(function(){processLink(this,linkQueryString);});}}return $links;}function listenForAhsAppointmentsListingWidgetUpdated(context){if(typeof context==='undefined')context=window.document;$(once('AhsBreadcrumbsViewsAppointmentsListener',$(context).find('.ahs-physician-scheduling-placeholder'))).on('ahsAppointmentsListingWidgetUpdated',function(){processLinks($(this).parent());});}listenForAhsAppointmentsListingWidgetUpdated();$(window.document).off('ahsContentUpdated.AhsBreadcrumbsViews').on('ahsContentUpdated.AhsBreadcrumbsViews',function(event){if(event.target)processLinks($(event.target).parent());});Drupal.behaviors.AhsBreadcrumbsViews={attach:function(context){const $context=$(context);let $view=[];
257if($context.is('.view'))$view=$context;else{$view=$context.children('.view');if($view.length===0)$view=$('main .view',$context);}if($view.length>0){processLinks($view);listenForAhsAppointmentsListingWidgetUpdated($view);}}};})(jQuery,Drupal,window,once);;
258Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
259/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
260loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
260for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
261/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
262(function($,Drupal,drupalSettings,window,once,loadjs){'use strict';function getLocalStorageValue(name){let value=null;try{value=localStorage.getItem(name);}catch(e){}if(typeof value=='undefined'||value===null)return null;return value;}function fetchChatbot(){const chatbots=document.getElementById('ahs-chatbot-holder');if(chatbots!==null){const url=new URL(drupalSettings.ahs_chatbot.ajax_url,window.location.origin);const hopeChatbotValue=getLocalStorageValue('hope_chatbot');if(url.searchParams.get('chatbot')==='hope')if(hopeChatbotValue)url.searchParams.append('selected_hope',hopeChatbotValue);else url.searchParams.append('is_new','TRUE');if(url.searchParams.get('chatbot')==='')if(hopeChatbotValue==='azure'){url.searchParams.append('chatbot','hope');url.searchParams.append('selected_hope','azure');}if(url.origin===window.location.origin)$.ajax({url:url.href,type:'GET',dataType:'json',cache:true,success:function(response){if(Object.hasOwn(response,'chatbot_html'))$('#ahs-chatbot-holder').replaceWith(response.chatbot_html);if(Object.hasOwn(response,'drupalSettings'))drupalSettings=$.extend(true,drupalSettings,response.drupalSettings);if(Object.hasOwn(response,'libraries')){const parentEl=document.querySelector('body');const settings=drupalSettings;response.libraries.forEach((value)=>{if(typeof value.data!=='string')return;const uniqueBundleId=value.data;if(!loadjs.isDefined(uniqueBundleId))loadjs(value.data,uniqueBundleId,{before(path,scriptEl){parentEl.appendChild(scriptEl);return false;},success(){if(typeof value.js_namespace==='string'&&(value.js_namespace in Drupal.behaviors)&&typeof Drupal.behaviors[value.js_namespace].attach==='function')Drupal.behaviors[value.js_namespace].attach(parentEl,settings);}});});}}});}}function onPageLoad(){fetchChatbot();}if(once(`ahsChatbotAjaxEmbedOnLoad`,'html').length>0)window.addEventListener("load",onPageLoad);}(jQuery,Drupal,drupalSettings,window,once,loadjs));;
263(function(Drupal,window){'use strict';if(typeof window._!=='undefined')return;window._=window._||{};const _=window._;function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}_.debounce=function(func,wait,immediate){return Drupal.debounce(func,wait,immediate);};_.template=function(templateString){return function(replacements){let output=templateString;if(typeof replacements==='undefined')return output;Object.entries(replacements).forEach(function(values){if(values.length===2){const key=values[0];const value=`${values[1]}`;const regex=new RegExp(escapeRegExp(`<%= ${key} %>`),'g');output=output.replace(regex,value);}});return output;};};const sortByCallback=function(key){return function(a,b){const aHasKey=key in a;const bHasKey=key in b;if(aHasKey&&!bHasKey)return -1;if(bHasKey&&!aHasKey)return 1;if(a[key]>b[key])return 1;return b[key]>a[key]?-1:0;};};_.sortBy=function(list,sortKey){return list.concat().sort(sortByCallback(sortKey));};})(Drupal,window);;
264(function(Drupal,drupalSettings,window,_){Drupal.ahsGeoHelper=Drupal.ahsGeoHelper||{};const helper=Drupal.ahsGeoHelper;helper.distanceTextTemplate=_.template(Drupal.t('About <%= distance %> miles away'));helper.preciseGeolocation=function(value,precision=5){const number=parseFloat(value);if(!Number.isFinite(number))return null;if(!Number.isFinite(precision))precision=5;return parseFloat(number.toFixed(precision));};helper.deg2rad=function(deg){return deg*(Math.PI/180);};helper.parseLatLngValue=function(inputValue,withPrecision=false){const inputType=typeof inputValue;if(inputType==='undefined'||inputType==='object'||inputValue===''||inputValue===null)return null;if(withPrecision)return this.preciseGeolocation(inputValue);const converted=parseFloat(inputValue);return Number.isFinite(converted)?converted:null;};helper.resolveLocationLatLngPropertyValue=function(location,possibleProperties,withPrecision=false){if(!location||typeof location!=='object')return null;const self=this;let foundValue=null;
264possibleProperties.forEach((prop)=>{if(foundValue===null&&(prop in location)){const converted=self.parseLatLngValue(location[prop],withPrecision);if(converted!==null)foundValue=converted;}});return foundValue;};helper.getLatitude=function(location,withPrecision=false){if(location&&typeof location==='object')return this.resolveLocationLatLngPropertyValue(location,['lat','latitude'],withPrecision);return this.parseLatLngValue(location,withPrecision);};helper.getLongitude=function(location,withPrecision=false){if(location&&typeof location==='object')return this.resolveLocationLatLngPropertyValue(location,['lng','longitude'],withPrecision);return this.parseLatLngValue(location,withPrecision);};helper.isSameLatLng=function(location,otherLocation,withPrecision=true){const isEmpty=this.locationIsEmpty(location);const otherIsEmpty=this.locationIsEmpty(otherLocation);if(isEmpty&&otherIsEmpty)return true;if(isEmpty||otherIsEmpty)return false;return this.getLatitude(location,withPrecision)===this.getLatitude(otherLocation,withPrecision)&&this.getLongitude(location,withPrecision)===this.getLongitude(otherLocation,withPrecision);};helper.calcDistance=function(location,otherLocation){const coords={};coords.lat=this.getLatitude(location);if(coords.lat===null)return null;coords.lng=this.getLongitude(location);if(coords.lng===null)return null;const otherCoords={};otherCoords.lat=this.getLatitude(otherLocation);if(otherCoords.lat===null)return null;otherCoords.lng=this.getLongitude(otherLocation);if(otherCoords.lng===null)return null;const R=3959;const distanceLat=this.deg2rad(otherCoords.lat-coords.lat);const distanceLong=this.deg2rad(otherCoords.lng-coords.lng);const a=Math.sin(distanceLat/2)*Math.sin(distanceLat/2)+Math.cos(this.deg2rad(coords.lat))*Math.cos(this.deg2rad(otherCoords.lat))*Math.sin(distanceLong/2)*Math.sin(distanceLong/2);const c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));const distance=R*c;return parseFloat(distance.toFixed(6));};helper.formatDistance=function(d){if(typeof d==='undefined'||d===null||!Number.isFinite(d))return '';if(d<0.2)return Drupal.t('Nearby');let distanceFormatted=d.toFixed(1);distanceFormatted=distanceFormatted.replace(/\.0$/,'');return this.distanceTextTemplate({distance:distanceFormatted});};helper.locationIsEmpty=function(location){if(!location||typeof location!=='object')return true;const lat=this.getLatitude(location);if(lat===null)return true;const lng=this.getLongitude(location);if(lng===null)return true;return false;};helper.geolocationKey=function(geolocation,precision){const lat=this.getLatitude(geolocation);const lng=this.getLongitude(geolocation);if(lat!==null&&lng!==null){const latPrecise=this.preciseGeolocation(lat,precision);const lngPrecise=this.preciseGeolocation(lng,precision);return `${latPrecise}:${lngPrecise}`;}return '__empty__';};helper.getAhsSearchGeolocationWidget=function(){if(('ahsSearchGeolocationWidget' in Drupal)&&typeof Drupal.ahsSearchGeolocationWidget!=='undefined')return Drupal.ahsSearchGeolocationWidget;return null;};helper.getGeolocationClient=function(){if(('ahsJsGeolocationClient' in Drupal)&&typeof Drupal.ahsJsGeolocationClient!=='undefined')return Drupal.ahsJsGeolocationClient;return null;};helper.userLocationIsAllowed=function(){const geoWidget=this.getAhsSearchGeolocationWidget();if(geoWidget!==null)return geoWidget.locationIsAllowed();const geoClient=this.getGeolocationClient();if(geoClient!==null)return geoClient.isAllowed();return false;};helper.getUserLocation=function(){const geoWidget=this.getAhsSearchGeolocationWidget();if(geoWidget!==null){if(geoWidget.locationIsAllowed()&&!geoWidget.locationIsEmpty())return geoWidget.getLocation();return null;}const geoClient=this.getGeolocationClient();if(geoClient!==null&&geoClient.isAllowed())return geoClient.getLastKnownLocation();return null;};helper.getUrlQueryLocation=function(queryParams=null){if(!queryParams){if(!window.location.search)return {};queryParams=new URLSearchParams(window.location.search);}const geolocation={};const latLngValue=queryParams.get('latlng[value]')||queryParams.get('latlng')||'';if(latLngValue){const latLngParts=latLngValue.split(',');if(latLngParts.length===2&&latLngParts[0]!==''&&latLngParts[1]!==''){geolocation.lat=Drupal.ahsGeoHelper.parseLatLngValue(latLngParts[0]);geolocation.lng=Drupal.ahsGeoHelper.parseLatLngValue(latLngParts[1]);}}geolocation.formatted_address=queryParams.get('geolocation_geocoder_google_geocoding_api')||queryParams.get('address')||'';geolocation.city=queryParams.get('latlng[city]')||queryParams.get('city')||'';geolocation.state=queryParams.get('latlng[state]')||queryParams.get('state')||'';geolocation.zip=queryParams.get('latlng[zip]')||queryParams.get('zip')||'';if(!geolocation.formatted_address)if(geolocation.city&&geolocation.state){geolocation.formatted_address=`${geolocation.city}, ${geolocation.state}`;if(geolocation.zip)geolocation.formatted_address+=` ${geolocation.zip}`;}else{if(geolocation.zip)geolocation.formatted_address=geolocation.zip;}return geolocation;};helper.getPreferredOriginLocation=function(excludeUserLocation){excludeUserLocation=(typeof excludeUserLocation!=='undefined')&&excludeUserLocation;if(!excludeUserLocation)return this.getUserLocation();return null;};helper.findGeoMapByGoogleMap=function(googleMap){if(typeof googleMap!=='undefined'){const div=googleMap.getDiv();if(typeof div!=='undefined'&&div instanceof HTMLElement){const container=div.closest('.geolocation-common-map');return container!==null?this.findGeoMapByContainer(container):null;}}return null;};helper.findGeoMapByContainer=function(container){if(typeof container==='undefined')return null;if(container instanceof HTMLElement)return this.findGeoMapByID(container.id);if(container.length===1)return this.findGeoMapByID(container.attr('id'));return null;};helper.findGeoMapByID=function(mapId){let geoMap=null;if(typeof mapId!=='undefined'&&mapId!==null&&mapId)if(('geolocation' in Drupal)&&(typeof Drupal.geolocation.maps!=='undefined'))Drupal.geolocation.maps.forEach((map)=>{if(typeof map.container!=='undefined'&&typeof map.googleMap!=='undefined')if(('id' in map)&&map.id===mapId){geoMap=map;return false;}});return geoMap;};
264helper.resizeMap=function(geoMap,openMarkerUpdater){const self=this;if('google' in window&&typeof window.google!=='undefined')if(geoMap!==null&&(typeof geoMap!=='undefined')&&typeof geoMap.googleMap!=='undefined'){const map=geoMap.googleMap;if(typeof openMarkerUpdater==='undefined')openMarkerUpdater=self.centerMapOnMarker.bind(self);let openMarker=null;if((typeof geoMap!=='undefined')&&(typeof geoMap.infoWindow!=='undefined'))openMarker=geoMap.infoWindow.get('anchor');if(openMarker!==null&&(typeof openMarker!=='undefined'))window.google.maps.event.addListenerOnce(map,'bounds_changed',function(){if(openMarker!==null&&(typeof openMarker!=='undefined'))openMarkerUpdater(openMarker);});window.google.maps.event.trigger(map,'resize');}};helper.resizeMapByContainer=function(container,openMarkerUpdater){const geoMap=this.findGeoMapByContainer(container);if(geoMap!==null)this.resizeMap(geoMap,openMarkerUpdater);};helper.parseLocationId=function(id){if(typeof id==='undefined'||id===null)return null;if(Number.isFinite(id))return parseInt(id,10);const parts=id.split(':',2);if(parts.length===2)return parseInt(parts[1],10);if(parts.length===1)return parseInt(parts[0],10);return null;};helper.findMapMarker=function(geoMap,locationId){let locMarker=null;const self=this;locationId=this.parseLocationId(locationId);if(locationId!==null&&geoMap!==null&&(typeof geoMap!=='undefined')&&('mapMarkers' in geoMap)&&geoMap.mapMarkers.length>0)geoMap.mapMarkers.forEach((marker,markerIndex)=>{const markerLocationId=self.getMapMarkerLocationId(marker);if(markerLocationId!==null&&markerLocationId===locationId){locMarker={marker,index:markerIndex};return false;}return true;});return locMarker;};helper.getMapMarkerLocationId=function(marker){let id=null;const self=this;const googleMarker=this.getGoogleMapsMarker(marker);if(googleMarker!==null){id=('ahs_location_id' in googleMarker)?googleMarker.ahs_location_id:null;if(typeof id==='undefined'||id===null)id=self.setMapMarkerLocationId(marker);id=self.parseLocationId(id);}return id;};helper.setMapMarkerLocationId=function(marker){let id=null;const googleMarker=this.getGoogleMapsMarker(marker);if(googleMarker!==null)if('infoWindowObject' in googleMarker&&typeof googleMarker.infoWindowObject==='object'&&'content' in googleMarker.infoWindowObject&&googleMarker.infoWindowObject.content.length>0){const idMatches=googleMarker.infoWindowObject.content.match(/data-ahs-location-id=['"](\d+)['"]/);if(idMatches!==null&&idMatches.length>1){id=this.parseLocationId(idMatches[1]);if(id!==null)googleMarker.ahs_location_id=id;}}return id;};helper.getGoogleMapsMarker=function(marker){if(typeof marker==='undefined'||!marker)return null;if('map' in marker)return marker;const googleMarker=typeof marker.marker!=='undefined'&&marker.marker?marker.marker:marker;if('map' in googleMarker)return googleMarker;return null;};helper.getGoogleMapsMap=function(marker){const googleMarker=this.getGoogleMapsMarker(marker);if(googleMarker===null)return null;const map='map' in googleMarker?googleMarker.map:null;if(typeof map!=='undefined'&&map!==null)return map;return null;};helper.markerIsOpen=function(marker,geoMap){const self=this;if(marker!==null&&(typeof marker!=='undefined')){const googleMarker=self.getGoogleMapsMarker(marker);if(googleMarker!==null)if((typeof geoMap!=='undefined')&&(typeof geoMap.infoWindow!=='undefined')){const markerLocId=self.getMapMarkerLocationId(googleMarker);if(markerLocId!==null){const openMarkerLocId=self.getMapMarkerLocationId(geoMap.infoWindow.get('anchor'));if(openMarkerLocId!==null&&openMarkerLocId===markerLocId)return true;}}}return false;};helper.openMapMarker=function(marker,geoMap,center_map,shouldFocus){const self=this;if(marker!==null&&(typeof marker!=='undefined')){const googleMarker=self.getGoogleMapsMarker(marker);if(googleMarker!==null){const markerMap=self.getGoogleMapsMap(googleMarker);if(markerMap!==null&&!self.markerIsOpen(googleMarker,geoMap)){if(typeof center_map==='undefined'||center_map)self.centerMapOnMarker(googleMarker);shouldFocus=typeof shouldFocus!=='undefined'&&!!shouldFocus;if(('infoWindowObject' in googleMarker)&&typeof googleMarker.infoWindowObject!=='undefined'&&googleMarker.infoWindowObject){const infoWindowObject=googleMarker.infoWindowObject;if(typeof geoMap.infoWindow!=='undefined')geoMap.infoWindow.close();geoMap.infoWindow=infoWindowObject;infoWindowObject.open({anchor:googleMarker,map:markerMap,shouldFocus});return marker;}if(shouldFocus)window.google.maps.event.trigger(googleMarker,'click');}}}return marker;};helper.centerMapOnMarker=function(marker){if(marker!==null&&(typeof marker!=='undefined')){const googleMarker=this.getGoogleMapsMarker(marker);if(googleMarker!==null&&('position' in googleMarker)){const markerMap=this.getGoogleMapsMap(googleMarker);if(markerMap!==null)markerMap.setCenter(googleMarker.position);}}return marker;};helper.panMapToMarkerBottom=function(marker){if(marker!==null&&(typeof marker!=='undefined')){const googleMarker=this.getGoogleMapsMarker(marker);if(googleMarker!==null){const markerMap=this.getGoogleMapsMap(googleMarker);if(markerMap!==null&&googleMarker.position){const bounds={north:googleMarker.position.lat+0.5,south:googleMarker.position.lat,east:googleMarker.position.lng+0.5,west:googleMarker.position.lng-0.5};markerMap.panToBounds(bounds);}}}return marker;};}(Drupal,window.drupalSettings,window,window._));;
265(function(Drupal,window){'use strict';const storage=Drupal.ahsJsGeolocationClientStorage||{cachedLocation:null};storage.convertToPrecise=function(location){if('lat' in location)location.lat=Drupal.ahsGeoHelper.preciseGeolocation(location.lat);if('latitude' in location)location.latitude=Drupal.ahsGeoHelper.preciseGeolocation(location.latitude);if('lng' in location)location.lng=Drupal.ahsGeoHelper.preciseGeolocation(location.lng);if('longitude' in location)location.longitude=Drupal.ahsGeoHelper.preciseGeolocation(location.longitude);};storage.hasFormattedAddress=function(location){return typeof location!=='undefined'&&('formatted_address' in location)&&location.formatted_address.trim();};storage.getMaxAge=function(){return 3600000;};storage.isExpired=function(location){return typeof location!=='undefined'&&('timestamp' in location)&&location.timestamp&&(Date.now()-location.timestamp)>this.getMaxAge();};storage.ensureLocationState=function(location){if(typeof location!=='undefined'&&(!('state' in location)||!location.state)&&this.hasFormattedAddress(location)){const patterns=[/(?:^|[^A-Za-z])([A-Za-z]{2})\s\d{5}(?:,\s{0,1}USA)?/i,/,\s{0,1}([A-Za-z]{2})(?:,\s{0,1}USA)?/i];let stateFound=false;patterns.forEach((pattern)=>{if(!stateFound){const matches=(pattern).exec(location.formatted_address);if(matches!==null){location.state=matches[1].toUpperCase();stateFound=true;}}});}};storage.normalize=function(location){this.convertToPrecise(location);const latLngKeys={lat:'latitude',lng:'longitude'};
265Object.entries(latLngKeys).forEach(([key,value])=>{const keyHasValue=(key in location)&&typeof location[key]!=='undefined'&&Number.isFinite(location[key]);const valueHasValue=(value in location)&&typeof location[value]!=='undefined'&&Number.isFinite(location[value]);if(valueHasValue&&keyHasValue)location[key]=location[value];else if(keyHasValue)location[value]=location[key];else if(valueHasValue)location[key]=location[value];else{location[key]=null;location[value]=null;}});location.precision='';location.geocoded=false;if(this.hasFormattedAddress(location)){location.geocoded=true;location.formatted_address=location.formatted_address.trim();}this.ensureLocationState(location);};storage.getEmptyLocation=function(){return {latitude:null,lat:null,longitude:null,lng:null,formatted_address:'',city:'',state:'',zip:'',accuracy:null,geocoded:false};};storage.createLocation=function(values={}){const location=this.getEmptyLocation();if(window.GeolocationCoordinates&&values instanceof window.GeolocationCoordinates){location.latitude=values.latitude;location.longitude=values.longitude;location.accuracy=values.accuracy;}else if(values instanceof Object)Object.entries(values).forEach(([key,value])=>{if(key&&(key in location))location[key]=value;});else{location.timestamp=Date.now();return location;}this.normalize(location);location.timestamp=Date.now();return location;};storage.get=function(allowExpired=false){let obj=null;if(this.cachedLocation)obj=this.cachedLocation;else{if(window.localStorage){const text=window.localStorage.getItem('ah.lastKnownClientLocation');if(typeof text=='undefined'||text===null)return null;try{obj=window.JSON.parse(text);this.normalize(obj);}catch(e){}}}if(!obj||typeof obj!=='object')return null;if(!allowExpired&&this.isExpired(obj))return null;return obj;};storage.set=function(location){const storedLocation=this.createLocation(location);this.delete();if(Drupal.ahsGeoHelper.locationIsEmpty(storedLocation))return;this.cachedLocation=storedLocation;if(Drupal.ahsSite.localStorageIsAvailable()){let jsonText='';try{jsonText=JSON.stringify(storedLocation);}catch(e){}try{if(jsonText)window.localStorage.setItem('ah.lastKnownClientLocation',jsonText);else window.localStorage.removeItem('ah.lastKnownClientLocation');}catch($e){}}return storedLocation;};storage.delete=function(){this.cachedLocation=null;if(window.localStorage)window.localStorage.removeItem('ah.lastKnownClientLocation');};Drupal.ahsJsGeolocationClientStorage=storage;})(Drupal,window);;
266(function($,Drupal,drupalSettings,window,once){'use strict';const ns='ahsJsGeolocationClient';let initPermissionStateDone=false;function getDataDefaults(){return {defaultPermissionState:'prompt',deferredPermissionState:null,permissionState:null,attemptsLimit:2,attemptsValue:null,hasRequested:false,isRequesting:false,deferredRequest:null,ERROR_PERMISSION_DENIED:1,ERROR_REQUEST_LIMIT_EXCEEDED:9002,ERROR_NOT_ALLOWED:9003,callbacks:{success:[],error:[]}};}Drupal[ns]=Drupal[ns]||{};const app=Drupal[ns];app.data={};app.init=function(){const self=this;self.data=$.extend({},getDataDefaults(),self.data);if(self.data.attemptsValue===null)self.data.attemptsValue=self.getStoredAttemptsCount()||0;if(self.data.permissionState===null)self.data.permissionState=self.data.defaultPermissionState;};app.getStoredAttemptsCount=function(){if(window.localStorage){const text=window.localStorage.getItem('ah.geolocationClientAttempts');if(typeof text=='undefined'||text===null)return null;let obj=null;try{obj=window.JSON.parse(text);}catch(e){}if(obj&&('value' in obj)){if(('timestamp' in obj)&&(Date.now()-obj.timestamp)>(Drupal.ahsJsGeolocationClientStorage.getMaxAge()-(60*1000)))return null;return obj.value;}}return null;};app.setStoredAttemptsCount=function(value){if(window.localStorage){let jsonText='';try{jsonText=JSON.stringify({value,timestamp:Date.now()});}catch(e){}window.localStorage.setItem('ah.geolocationClientAttempts',jsonText);}};app.deleteStoredAttemptsCount=function(){if(window.localStorage)window.localStorage.removeItem('ah.geolocationClientAttempts');};app.getAttempts=function(){return this.data.attemptsValue;};app.setAttempts=function(value){let intValue=parseInt(value,10);if(Number.isFinite(intValue)){intValue=intValue>0?intValue:0;this.data.attemptsValue=intValue;this.setStoredAttemptsCount(intValue);}return this;};app.resetAttempts=function(){this.data.attemptsValue=0;this.deleteStoredAttemptsCount();return this;};app.geolocationRetrieved=function(){return !!drupalSettings.geolocation.html5.retrieved;};app.exceededAttempts=function(){return this.getAttempts()>=this.data.attemptsLimit;};app.browserSupportsGeolocation=function(){return ('geolocation' in window.navigator)&&typeof window.navigator.geolocation!=='undefined';};app.canRequestClientLocation=function(){return (window.location.protocol.indexOf('https')===0||window.location.hostname.indexOf('.docksal.site')!==-1)&&(!window.location.search||(new 
266URLSearchParams(window.location.search)).get('nogeo')!=='1')&&this.browserSupportsGeolocation();};app.hasDeferredRequest=function(){return this.data.deferredRequest!==null;};app.getDeferredRequest=function(createNew=false){if(createNew||!this.hasDeferredRequest())this.data.deferredRequest=$.Deferred();return this.data.deferredRequest;};app.hasRequested=function(){return this.data.hasRequested;};app.isRequesting=function(){return this.data.isRequesting;};app.onRequestStart=function(){this.data.hasRequested=true;this.data.isRequesting=true;this.getDeferredRequest();};app.onRequestStop=function(){this.data.isRequesting=false;};app.normalizePermissionState=function(permissionState){return permissionState?permissionState.toLowerCase():this.data.defaultPermissionState;};app.permissionState=function(){return this.data.permissionState;};app.setPermissionState=function(permissionState){permissionState=this.normalizePermissionState(permissionState);permissionState=permissionState==='granted'||permissionState==='denied'?permissionState:this.data.defaultPermissionState;this.data.permissionState=permissionState;switch(permissionState){case 'granted':drupalSettings.geolocation.html5.permissionDenied=false;break;case 'denied':this.deleteLastKnownLocation();drupalSettings.geolocation.html5.permissionDenied=true;drupalSettings.geolocation.html5.retrieved=false;break;default:drupalSettings.geolocation.html5.permissionDenied=true;drupalSettings.geolocation.html5.retrieved=false;break;}return this;};app.setDefaultPermissionState=function(){this.setPermissionState(this.data.defaultPermissionState);return this;};app.resolvePermissionStateDeferred=function(newState){if(this.data.deferredPermissionState!==null)this.data.deferredPermissionState.resolve(newState);else this.data.deferredPermissionState=$.Deferred().resolve(newState);};app.queryPermissionState=function(){if(this.data.deferredPermissionState!==null)return this.data.deferredPermissionState.promise();const self=this;self.data.deferredPermissionState=$.Deferred();if(self.browserSupportsGeolocation()&&('permissions' in window.navigator)&&typeof window.navigator.permissions!=='undefined'&&('query' in window.navigator.permissions)&&typeof window.navigator.permissions.query!=='undefined'&&(typeof window.navigator.permissions.query==='function'))window.navigator.permissions.query({name:'geolocation'}).then(function(result){self.setPermissionState(result.state);self.data.deferredPermissionState.resolve(result.state);});else{self.setPermissionState(self.data.defaultPermissionState);self.data.deferredPermissionState.resolve(self.data.defaultPermissionState);}return self.data.deferredPermissionState.promise();};app.deny=function(){this.setPermissionState('denied');return this;};app.allow=function(){this.setPermissionState('granted');return this;};app.isDenied=function(){return this.permissionState()==='denied';};app.isAllowed=function(){return this.permissionState()==='granted';};app.userCouldBePrompted=function(){return !this.isAllowed()&&!this.isDenied();};app.setLastKnownLocation=function(location){Drupal.ahsJsGeolocationClientStorage.set(location);return this;};app.getLastKnownLocation=function(){return Drupal.ahsJsGeolocationClientStorage.get();};app.deleteLastKnownLocation=function(){Drupal.ahsJsGeolocationClientStorage.delete();return this;};app.addGeolocationResultSuccessCallback=function(callback){this.data.callbacks.success.push(callback);};app.addGeolocationResultErrorCallback=function(callback){this.data.callbacks.error.push(callback);};app.onGeolocationResultSuccess=function(position){drupalSettings.geolocation.html5.retrieved=true;if(typeof position!=='undefined'&&('coords' in position)&&(!('isLastKnown' in position)||!position.isLastKnown))this.setLastKnownLocation(position.coords);const lastKnown=this.getLastKnownLocation();this.allow();this.resolvePermissionStateDeferred(this.permissionState());this.onRequestStop();Drupal.geolocation.html5.resultCallbacks=Drupal.geolocation.html5.resultCallbacks||[];Drupal.geolocation.html5.resultCallbacks.forEach((callbackContainer)=>{callbackContainer.callback(position,lastKnown);});this.data.callbacks.success.forEach((callback)=>{callback(position,lastKnown);});this.getDeferredRequest().resolve(position,lastKnown);};app.onGeolocationResultError=function(error){switch(error.code){case error.PERMISSION_DENIED:this.deny();break;case error.POSITION_UNAVAILABLE:break;case error.TIMEOUT:this.setAttempts(app.getAttempts()-1);break;case error.REQUEST_LIMIT_EXCEEDED:break;case error.NOT_ALLOWED:break;default:break;}if(error.code!==error.PERMISSION_DENIED)this.setDefaultPermissionState();this.resolvePermissionStateDeferred(this.permissionState());this.onRequestStop();Drupal.geolocation.html5.errorCallbacks=Drupal.geolocation.html5.errorCallbacks||[];Drupal.geolocation.html5.errorCallbacks.forEach((callbackContainer)=>{callbackContainer.callback(error);});this.data.callbacks.error.forEach((callback)=>{callback(error);});this.getDeferredRequest().reject(error);};app.getGeolocationSuccessCallback=function(successCallback){const self=this;if(typeof successCallback!=='undefined')return function(position){self.onGeolocationResultSuccess(position);successCallback(position);};return function(position){self.onGeolocationResultSuccess(position);};};app.getGeolocationErrorCallback=function(errorCallback){const self=this;if(typeof errorCallback!=='undefined')return function(error){self.onGeolocationResultError(error);errorCallback(error);};return function(error){self.onGeolocationResultError(error);};};app.getCurrentPosition=function(options,successCallback,errorCallback,geolocationOptions){if(this.isRequesting()||this.hasRequested())return;const self=this;let optionsApplied={onDemand:false};if(typeof options==='object'&&options)optionsApplied=$.extend(optionsApplied,options);
266const onDemand=('onDemand' in optionsApplied)&&!!optionsApplied.onDemand;const canUseLastKnown=!onDemand||!('allowLastKnown' in optionsApplied)||optionsApplied.allowLastKnown;const successCallbackApplied=this.getGeolocationSuccessCallback(successCallback);const errorCallbackApplied=this.getGeolocationErrorCallback(errorCallback);self.queryPermissionState().done(function(){if(self.isAllowed()&&canUseLastKnown&&self.getLastKnownLocation()!==null){const lastKnown=self.getLastKnownLocation();successCallbackApplied({coords:lastKnown,timestamp:'timestamp' in lastKnown?lastKnown.timestamp:null,isLastKnown:true});return;}if(!onDemand&&self.exceededAttempts()){self.queryPermissionState().done(function(){if(self.isDenied())errorCallbackApplied({code:self.data.ERROR_PERMISSION_DENIED,PERMISSION_DENIED:self.data.ERROR_PERMISSION_DENIED});else if(canUseLastKnown&&self.isAllowed()&&self.getLastKnownLocation()!==null)successCallbackApplied({coords:self.getLastKnownLocation()});else{$(window.document).trigger(`${ns}RequestLimitExceeded`,[self]);errorCallbackApplied({code:self.data.ERROR_REQUEST_LIMIT_EXCEEDED,REQUEST_LIMIT_EXCEEDED:self.data.ERROR_REQUEST_LIMIT_EXCEEDED});}});return;}if(!self.canRequestClientLocation()){self.getDeferredRequest().reject({code:self.data.ERROR_NOT_ALLOWED,NOT_ALLOWED:self.data.ERROR_NOT_ALLOWED});return;}self.onRequestStart();const geolocationOptionsApplied={enableHighAccuracy:true,timeout:5000,maximumAge:6000};if(typeof geolocationOptions==='object'&&geolocationOptions)$.extend(geolocationOptionsApplied,geolocationOptions);if(onDemand)window.navigator.geolocation.getCurrentPosition(successCallbackApplied,errorCallbackApplied,geolocationOptionsApplied);else self.queryPermissionState().done(function(){if(self.userCouldBePrompted())self.setAttempts(self.getAttempts()+1);window.navigator.geolocation.getCurrentPosition(successCallbackApplied,errorCallbackApplied,geolocationOptionsApplied);});});};app.requestClientLocation=function(options={}){if(this.hasDeferredRequest())if(this.hasRequested()||this.isRequesting())return this.getDeferredRequest().promise();const onDemand=options&&('onDemand' in options)&&options.onDemand;const dfd=this.getDeferredRequest(onDemand);const self=this;window.setTimeout(function(){self.getCurrentPosition(options);},1);return dfd.promise();};app.init();const initPermissionState=function(){const eventOptions=Drupal.ahsSite.getPassiveEventOptions();if(eventOptions!==false)eventOptions.once=true;window.removeEventListener('scroll',initPermissionState,eventOptions);if(initPermissionStateDone)return;initPermissionStateDone=true;app.queryPermissionState().done(function(){if(app.isDenied())app.onGeolocationResultError({code:app.data.ERROR_PERMISSION_DENIED,PERMISSION_DENIED:app.data.ERROR_PERMISSION_DENIED});else{if(app.isAllowed()&&app.getLastKnownLocation()!==null){const lastKnown=app.getLastKnownLocation();app.onGeolocationResultSuccess({coords:lastKnown,timestamp:'timestamp' in lastKnown?lastKnown.timestamp:null,isLastKnown:true});}}});};Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.html5=Drupal.geolocation&&Drupal.geolocation.html5?Drupal.geolocation.html5:{};drupalSettings.geolocation=drupalSettings.geolocation||{};drupalSettings.geolocation.html5=drupalSettings.geolocation.html5?drupalSettings.geolocation.html5:{};Drupal.geolocation.html5.addResultCallback=app.addGeolocationResultSuccessCallback.bind(app);Drupal.geolocation.html5.addErrorCallback=app.addGeolocationResultErrorCallback.bind(app);Drupal.geolocation.html5.getClientLocation=function(success,error,options){app.getCurrentPosition({},success,error,options);};Drupal.geolocation.html5.getClientLocationError=app.onGeolocationResultError.bind(app);Drupal.behaviors.geolocationHTML5={attach:function(context){if(context===document&&once(`${ns}PermCheckInit`,'html').length>0){const eventOptions=Drupal.ahsSite.getPassiveEventOptions();if(eventOptions!==false)eventOptions.once=true;window.addEventListener('scroll',initPermissionState,eventOptions);}}};}(jQuery,Drupal,window.drupalSettings,window,once));;
267(function(){var g=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/;function h(a){return null==a?String(a):(a=g.exec(Object.prototype.toString.call(Object(a))))?a[1].toLowerCase():"object";}function k(a,b){return Object.prototype.hasOwnProperty.call(Object(a),b);}function m(a){if(!a||"object"!=h(a)||a.nodeType||a==a.window)return !1;try{if(a.constructor&&!k(a,"constructor")&&!k(a.constructor.prototype,"isPrototypeOf"))return !1;}catch(b){return !1;}for(var c in a);return void 0===c||k(a,c);};function n(a,b,c){this.b=a;this.f=b||function(){};this.d=!1;this.a={};this.c=[];this.e=p(this);r(this,a,!c);var d=a.push,e=this;a.push=function(){var b=[].slice.call(arguments,0),c=d.apply(a,b);r(e,b);return c;};}window.DataLayerHelper=n;n.prototype.get=function(a){var b=this.a;a=a.split(".");for(var c=0;c<a.length;c++){if(void 0===b[a[c]])return;b=b[a[c]];}return b;};n.prototype.flatten=function(){this.b.splice(0,this.b.length);this.b[0]={};s(this.a,this.b[0]);};function r(a,b,c){for(a.c.push.apply(a.c,b);!1===a.d&&0<a.c.length;){b=a.c.shift();if("array"==h(b)){a:{var d=b,e=a.a;if("string"==h(d[0])){for(var f=d[0].split("."),u=f.pop(),d=d.slice(1),l=0;l<f.length;l++){if(void 0===e[f[l]])break a;e=e[f[l]];}try{e[u].apply(e,d);}catch(v){}}}}else if("function"==typeof b)try{b.call(a.e);}catch(w){}else if(m(b))for(var q in b)s(t(q,b[q]),a.a);else continue;c||(a.d=!0,a.f(a.a,b),a.d=!1);}}function p(a){return {set:function(b,c){s(t(b,c),a.a);},get:function(b){return a.get(b);}};}function t(a,b){for(var c={},d=c,e=a.split("."),f=0;f<e.length-1;f++)d=d[e[f]]={};d[e[e.length-1]]=b;return c;}function s(a,b){for(var c in a)if(k(a,c)){var d=a[c];"array"==h(d)?("array"==h(b[c])||(b[c]=[]),s(d,b[c])):m(d)?(m(b[c])||(b[c]={}),s(d,b[c])):b[c]=d;}};})();;
268(function(Drupal,window){Drupal.ahsDataLayer=Drupal.ahsDataLayer||{};const app=Drupal.ahsDataLayer;app.helper=null;app.getHelper=function(){if(typeof this.helper!=='undefined'&&this.helper!==null)return this.helper;if(('dataLayer' in window)&&('DataLayerHelper' in window)&&typeof window.DataLayerHelper==='function')this.helper=new window.DataLayerHelper(window.dataLayer);return this.helper;};app.push=function(obj){if('dataLayer' in window)window.dataLayer.push(obj);};app.get=function(path){const helper=this.getHelper();if(helper!==null)return helper.get(path);return undefined;};})(Drupal,window);;
269(function(Drupal,window,once){function onGeolocationSuccess(position,geolocation){if(!geolocation||typeof geolocation!=='object')return;const state=('state' in geolocation)?geolocation.state:'';if(state){const layerState=Drupal.ahsDataLayer.get('site.visitor.geolocation.state');if(layerState!==state)Drupal.ahsDataLayer.push({site:{visitor:{geolocation:{state}}}});}}function onGeolocationError(){const layerGeo=Drupal.ahsDataLayer.get('site.visitor.geolocation');if(typeof layerGeo!=='undefined')Drupal.ahsDataLayer.push({site:{visitor:undefined}});}Drupal.ahsJsGeolocationClient.addGeolocationResultSuccessCallback(onGeolocationSuccess);Drupal.ahsJsGeolocationClient.addGeolocationResultErrorCallback(onGeolocationError);Drupal.behaviors.ahsDatalayerVisitorGeolocation={attach:function(context){if(context===window.document&&once('ahsDatalayerVisitorGeolocationInit','html').length>0){const lastKnown=Drupal.ahsJsGeolocationClient.getLastKnownLocation();if(lastKnown!==null)onGeolocationSuccess(null,lastKnown);}}};})(Drupal,window,once);;
270/* @license MIT https://github.com/jackmoore/colorbox/blob/master/LICENSE.md */
271/*!
272	Colorbox 1.6.4
273	license: MIT
274	http://www.jacklmoore.com/colorbox
275*/
276(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}
vendor: 12,840 bytes, lines 276-278
276function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=t('<button type="button"/>').attr({id:Z+"Slideshow"}),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);;
277/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
278(function($,Drupal,drupalSettings,_,window,once){'use strict';const ns='ahsJsColorbox';Drupal[ns]=Drupal[ns]||{};const app=Drupal[ns];const resizer={};resizer.dimPrecision=1e-10;resizer.getNamespace=function(){return `${ns}Resizer`;};resizer.dimIsGreaterThan=function(dim,otherDim){return dim-otherDim>this.dimPrecision;};resizer.getBoundedWidth=function(width,cbSettings,windowWidth){let value=width;windowWidth=typeof windowWidth!=='undefined'?windowWidth:app.windowWidth();let settingsMaxWidth=null;if(app.valueIsDefined(windowWidth)&&('maxWidth' in cbSettings)&&app.valueIsDefined(cbSettings.maxWidth)){settingsMaxWidth=app.getSize(cbSettings.maxWidth,'x',windowWidth);if(!app.valueIsDefined(settingsMaxWidth)||!Number.isFinite(settingsMaxWidth))settingsMaxWidth=null;}if(settingsMaxWidth&&(this.dimIsGreaterThan(value,settingsMaxWidth)))value=settingsMaxWidth;if(this.dimIsGreaterThan(value,windowWidth))value=windowWidth*0.98;return value;};resizer.getBoundedHeight=function(height,cbSettings,windowHeight){let value=height;windowHeight=typeof windowHeight!=='undefined'?windowHeight:app.windowHeight();let settingsMaxHeight=null;if(('maxHeight' in cbSettings)&&app.valueIsDefined(cbSettings.maxHeight)){settingsMaxHeight=app.getSize(cbSettings.maxHeight,'x',windowHeight);if(!app.valueIsDefined(settingsMaxHeight)||!Number.isFinite(settingsMaxHeight))settingsMaxHeight=null;}if(settingsMaxHeight&&(this.dimIsGreaterThan(value,settingsMaxHeight)))value=settingsMaxHeight;if(this.dimIsGreaterThan(value,windowHeight))value=windowHeight*0.98;return value;};resizer.hasResponsiveStyles=function(){const $box=$('#colorbox');return $box.length>0&&$box.hasClass('responsive-modal');};resizer.init=function($content,refresh=false){const self=this;
278const $element=$.colorbox.element();if($element.length===0)return false;$content=typeof $content!=='undefined'?$($content):$('#cboxLoadedContent');if($content.length===0)return false;const contentAspectRatio=$content.data(`${ns}AspectRatio`);if(!refresh&&app.valueIsDefined(contentAspectRatio))return true;const content=$content.get(0);const image=content.querySelector('img');const iframe=content.querySelector('iframe');let ratio=null;let maxScaledWidth=null;let isImage=false;let isVideo=false;let isPodcast=false;const contentWidth=$content.width();const contentHeight=$content.height();const $image=$(image).first();let imageWidth=null;let imageHeight=null;if($image.length>0){isImage=true;const imageWidthAttr=$image.attr('width');const imageHeightAttr=$image.attr('height');if(this.hasResponsiveStyles())$image.removeAttr('width').removeAttr('height');else $image.css({width:'100%','max-width':'100%',height:'auto'}).attr('width','100%').removeAttr('height');const imageWidthCalc=$image.width();const imageHeightCalc=$image.height();if(imageWidthCalc&&imageHeightCalc)ratio=imageWidthCalc/imageHeightCalc;if(app.valueIsDefined($element.data('imageWidth'))){imageWidth=parseInt($element.data('imageWidth'),10);if(app.valueIsDefined($element.data('imageHeight')))imageHeight=parseInt($element.data('imageHeight'),10);}if(!imageWidth&&!imageHeight){if(app.valueIsDefined(imageWidthAttr))imageWidth=parseInt(imageWidthAttr,10);if(app.valueIsDefined(imageHeightAttr))imageHeight=parseInt(imageHeightAttr,10);}if(!imageWidth&&!imageHeight){imageWidth=imageWidthCalc;imageHeight=imageHeightCalc;}if(ratio==null&&imageWidth!==null&&imageHeight!==null&&imageHeight>0)ratio=imageWidth/imageHeight;if(ratio)if(imageWidth&&!imageHeight)imageHeight=imageWidth/ratio;else{if(imageHeight&&!imageWidth)imageWidth=imageHeight*ratio;}maxScaledWidth=imageWidth;}
278if(!isImage&&iframe)if(!iframe.classList.contains('cboxIframe')){isVideo=iframe.classList.contains('media-embed-content--video');isPodcast=!isVideo&&iframe.classList.contains('media-embed-content--podcast');let iframeWidth=iframe.getAttribute('width');if(Number.isFinite(iframeWidth)&&app.valueIsDefined(iframeWidth)){iframeWidth=parseInt(iframeWidth,10);maxScaledWidth=iframeWidth;}let iframeHeight=iframe.getAttribute('height');if(app.valueIsDefined(iframeHeight)){iframeHeight=parseInt(iframeHeight,10);if(Number.isFinite(iframeHeight)&&iframeHeight>0&&app.valueIsDefined(iframeWidth))ratio=iframeWidth/iframeHeight;}const embedContainer=iframe.parentElement&&iframe.parentElement.classList.contains('media-embed-modal-markup')?iframe.parentElement:null;if(embedContainer){let embedMaxWidth=embedContainer.style.width;if(embedMaxWidth){embedMaxWidth=parseInt(embedMaxWidth,10);if(Number.isFinite(embedMaxWidth))maxScaledWidth=embedMaxWidth;}}}$content.data(`${ns}IsImage`,isImage);$content.data(`${ns}IsVideo`,isVideo);$content.data(`${ns}IsPodast`,isPodcast);$content.data(`${ns}WidthOriginal`,contentWidth);$content.data(`${ns}ContentPaddingX`,Number.isFinite(contentWidth)?$content.outerWidth(true)-contentWidth:0);$content.data(`${ns}ContentPaddingY`,Number.isFinite(contentHeight)?$content.outerHeight(true)-contentHeight:0);if(ratio===null)if(Number.isFinite(contentWidth)&&Number.isFinite(contentHeight)&&contentHeight>0)ratio=contentWidth/contentHeight;$content.data(`${ns}AspectRatio`,ratio);$content.data(`${ns}MaxScaledWidth`,maxScaledWidth);if(image){const imagesPendingLoad=once('ahsColorboxLoad',image);if(imagesPendingLoad.length>0)imagesPendingLoad.forEach((imagePending)=>{if(imagePending.complete){self.resize(true);content.classList.add('loaded');}else imagePending.addEventListener('load',()=>{self.resize(true);content.classList.add('loaded');},{once:true});});}else{if(iframe){const iframesPendingLoad=once('ahsColorboxLoad',iframe);if(iframesPendingLoad.length>0)iframesPendingLoad.forEach((iframePending)=>{iframePending.addEventListener('load',()=>{self.resize(true);content.classList.add('loaded');},{once:true});});}}return true;};resizer.resize=function(refresh=false){const $element=$.colorbox.element();if($element.length===0)return;if(this.hasResponsiveStyles())return;const $content=$('#cboxLoadedContent');if($content.length===0)return;if(!this.init($content,refresh))return;const resizeOptions={};const cbSettingsStored=$element.data('colorbox');let cbSettings={};if(app.valueIsDefined(cbSettingsStored))cbSettings=$.extend({},cbSettingsStored);const winWidth=app.windowWidth();const winHeight=app.windowHeight();let contentWidthNew=null;let contentInnerWidthNew=null;let contentInnerHeightNew=null;let isResponsive=false;let contentAspectRatio=$content.data(`${ns}AspectRatio`);if(!app.valueIsDefined(contentAspectRatio)||!Number.isFinite(contentAspectRatio)||contentAspectRatio<=0)contentAspectRatio=null;if(('modalSize' in cbSettings)&&cbSettings.modalSize){const modalSize=app.getModalSize(cbSettings.modalSize);cbSettings.width=modalSize.width;cbSettings.height=modalSize.height;if(!('maxWidth' in cbSettings)||!cbSettings.maxWidth)cbSettings.maxWidth=modalSize.maxWidth;if(!('maxHeight' in cbSettings)||!cbSettings.maxHeight)cbSettings.maxHeight=modalSize.maxHeight;}let contentMaxScaledWidth=$content.data(`${ns}MaxScaledWidth`);if(!app.valueIsDefined(contentMaxScaledWidth))contentMaxScaledWidth=null;if('width' in cbSettings&&(`${cbSettings.width}`).indexOf('%')!==-1){contentWidthNew=cbSettings.width;if('maxWidth' in cbSettings&&cbSettings.maxWidth){const maxWidthPx=app.getSize(cbSettings.maxWidth,'x',winWidth);const percentageWidthPx=app.getSize(cbSettings.width,'x',winWidth);if(percentageWidthPx>maxWidthPx)contentWidthNew=cbSettings.maxWidth;}}else{isResponsive=true;if(contentMaxScaledWidth!==null&&contentAspectRatio!==null&&Number.isFinite(winWidth)&&winWidth>0){contentInnerWidthNew=contentMaxScaledWidth;if(this.dimIsGreaterThan(contentMaxScaledWidth,winWidth))contentInnerWidthNew=winWidth;contentInnerWidthNew=this.getBoundedWidth(contentInnerWidthNew,cbSettings,winWidth);contentInnerHeightNew=contentInnerWidthNew/contentAspectRatio;const contentInnerHeightNewBefore=contentInnerHeightNew;contentInnerHeightNew=this.getBoundedHeight(contentInnerHeightNewBefore,cbSettings,winHeight);if(contentInnerHeightNew!==contentInnerHeightNewBefore){contentInnerWidthNew=contentInnerHeightNew*contentAspectRatio;contentInnerWidthNew=this.getBoundedWidth(contentInnerWidthNew,cbSettings,winWidth);}}}let responsiveWidth=null;let responsiveHeight=null;if(isResponsive){responsiveWidth=contentInnerWidthNew;responsiveHeight=contentInnerHeightNew;if(responsiveWidth!==null){let paddingX=$content.data(`${ns}ContentPaddingX`);paddingX=app.valueIsDefined(paddingX)?paddingX:0;const responsiveWidthUnbounded=responsiveWidth+paddingX;responsiveWidth=this.getBoundedWidth(responsiveWidthUnbounded,cbSettings,winWidth);if(this.dimIsGreaterThan(responsiveWidthUnbounded,responsiveWidth)&&contentAspectRatio!==null&&contentAspectRatio>0&&responsiveHeight!==null)responsiveHeight+=(responsiveWidth-responsiveWidthUnbounded)/contentAspectRatio;}if(responsiveHeight!==null){let paddingY=$content.data(`${ns}ContentPaddingY`);paddingY=app.valueIsDefined(paddingY)?paddingY:0;paddingY+=$('#cboxTitle').outerHeight()||0;const responsiveHeightUnBounded=responsiveHeight+paddingY;responsiveHeight=this.getBoundedHeight(responsiveHeightUnBounded,cbSettings,winHeight);if(this.dimIsGreaterThan(responsiveHeightUnBounded,responsiveHeight)&&contentAspectRatio!==null&&contentAspectRatio>0&&responsiveWidth!==null)responsiveWidth+=(responsiveHeight-responsiveHeightUnBounded)*contentAspectRatio;}}const isPodcast=$content.data(`${ns}IsPodast`)||false;if(isPodcast)responsiveHeight=null;if(isResponsive&&responsiveWidth!==null)resizeOptions.width=responsiveWidth;else if(contentWidthNew!==null)resizeOptions.width=contentWidthNew;else resizeOptions.width='95%';if(isResponsive&&responsiveHeight!==null)resizeOptions.height=responsiveHeight;else if('height' in cbSettings&&(`${cbSettings.height}`).indexOf('%')!==-1)resizeOptions.height=cbSettings.height;else resizeOptions.height='auto';$.colorbox.resize(resizeOptions);};
278resizer.on=function($content){if($.colorbox.element().length===0||!app.canColorbox()){this.off();return;}this.init($content,true);const resizerNs=this.getNamespace();const self=this;if(once(`${resizerNs}On`,'html').length>0)$(window).on(`resize.${resizerNs} orientationchange.${resizerNs}`,_.debounce(function(){self.resize(this);},100));};resizer.off=function(){const resizerNs=this.getNamespace();$(window).off(`resize.${resizerNs} orientationchange.${resizerNs}`);once.remove(`${resizerNs}On`,'html');};app.canColorbox=function(){return typeof $.colorbox==='function';};app.valueIsDefined=function(x){return typeof x!=='undefined'&&x!==null;};app.getColorboxModuleSettings=function(){if(typeof drupalSettings.colorbox!=='undefined'&&drupalSettings.colorbox)return drupalSettings.colorbox;return {};};app.colorboxIsMobileDisabled=function(){const cbSettings=this.getColorboxModuleSettings();if(cbSettings.mobiledetect&&window.matchMedia){const mq=window.matchMedia(`(max-device-width: ${cbSettings.mobiledevicewidth})`);if(mq.matches)return true;}return false;};app.getModalSize=function(modalSize){const windowWidth=this.windowWidth();let modalHeight='95%';let modalWidth='98%';let modalMaxWidth='100%';const modalMaxHeight='98%';switch(modalSize){case 'xsmall':modalMaxWidth='420px';
278modalHeight='48%';if(windowWidth>1311)modalWidth='24%';else if(windowWidth>1055)modalWidth='32%';else if(windowWidth>671)modalWidth='48%';else modalWidth='98%';break;case 'small':modalMaxWidth='576px';modalHeight='72%';if(windowWidth>1311)modalWidth='36%';else if(windowWidth>1055)modalWidth='42%';else if(windowWidth>671)modalWidth='60%';else modalWidth='98%';break;case 'medium':modalMaxWidth='768px';modalHeight='84%';if(windowWidth>1311)modalWidth='48%';else if(windowWidth>1055)modalWidth='60%';else if(windowWidth>671)modalWidth='84%';else modalWidth='98%';break;case 'large':modalHeight='96%';if(windowWidth>1311)modalWidth='72%';else if(windowWidth>1055)modalWidth='84%';else if(windowWidth>671)modalWidth='96%';else modalWidth='98%';break;case 'xlarge':break;default:break;}return {width:modalWidth,height:modalHeight,maxWidth:modalMaxWidth,maxHeight:modalMaxHeight};};app.windowWidth=function(){return window.innerWidth?window.innerWidth:$(window).width();};app.windowHeight=function(){return window.innerHeight?window.innerHeight:$(window).height();};app.getSize=function(size,dimension,windowDim){if(typeof windowDim==='undefined')windowDim=dimension==='x'?this.windowWidth():this.windowHeight();return Math.round((/%/.test(size)?(windowDim/100):1)*parseInt(size,10));};app.resize=function(){return resizer.resize();};app.onColorboxOpen=function(){let cbSettings={};const $element=$.colorbox.element();if($element.length>0&&$element.data('colorbox'))cbSettings=$element.data('colorbox');if('modalSize' in cbSettings&&cbSettings.modalSize){const modalSize=this.getModalSize(cbSettings.modalSize);cbSettings.width=modalSize.width;cbSettings.maxWidth=modalSize.maxWidth;}const $body=$('body');$body.addClass('ahs-colorbox-open');if(!('allowBodyScrolling' in cbSettings)||!!cbSettings.allowBodyScrolling)$body.addClass('ahs-colorbox-open-body-scrolling-disabled');};app.onColorboxLoad=function(){$('#cboxTitle').addClass('cboxTitle--hidden');};app.onColorboxComplete=function(){const $element=$.colorbox.element();const $loadedContent=$('#cboxLoadedContent');const $title=$('#cboxTitle');const captionData=$element.data('captionContent');if(typeof captionData!=='undefined'&&captionData!==null&&typeof captionData==='object'&&('content' in captionData)&&!!captionData.content)$title.removeClass('cboxTitle--hidden').addClass('cboxTitle--with-caption').html(`<div class="cboxTitle__inner">${captionData.content}</div>`);else $title.removeClass('cboxTitle--with-caption');resizer.on($loadedContent);if($element.length>0){const $slide=$element.parent('.slick-slide');if($slide.length>0){const slideIndex=$slide.data('slickIndex');const $slider=$slide.closest('.slick-initialized');const slick=typeof $slider.slick!=='undefined'?$slider.slick('getSlick'):null;if(slick!==null)$slider.slick('slickGoTo',slideIndex);}}};app.onColorboxCleanup=function(){resizer.off();$('body').removeClass('ahs-colorbox-open').removeClass('ahs-colorbox-open-body-scrolling-disabled');};Drupal.behaviors[ns]={attach:function(context){if(context===window.document&&app.canColorbox()&&once(`${ns}Attach`,'html').length>0)$(window.document).on(`cbox_open.${ns}`,function(){app.onColorboxOpen();}).on(`cbox_load.${ns}`,function(){app.onColorboxLoad();}).on(`cbox_complete.${ns}`,function(){app.onColorboxComplete();}).on(`cbox_cleanup.${ns}`,function(){app.onColorboxCleanup();});}};})(jQuery,Drupal,window.drupalSettings,_,window,once);;
279(function($,Drupal,drupalSettings,once){'use strict';Drupal.behaviors.initColorbox={attach:function(context,settings){if(typeof $.colorbox!=='function'||typeof settings.colorbox==='undefined')return;if(!$.isFunction)$.isFunction=function(obj){return typeof obj==='function'||false;};if(settings.colorbox.mobiledetect&&window.matchMedia){var mq=window.matchMedia('(max-device-width: '+settings.colorbox.mobiledevicewidth+')');if(mq.matches){$.colorbox.remove();return;}}settings.colorbox.rel=function(){return $(this).data('colorbox-gallery');};settings.colorbox.html=function(){var $modalContent=$(this).find('> .modal-content');return $modalContent.length?$(this).find('> .modal-content').children().clone():false;};$(once('init-colorbox','.colorbox',context)).each(function(){var extendParams={photo:true};
279var title=$(this).attr('title');if(typeof title==='undefined')title=this.dataset.cboxTitle;if(title)extendParams.title=Drupal.colorbox.sanitizeMarkup(title);$(this).colorbox($.extend({},settings.colorbox,extendParams));var href=$(this).attr('href');var protocolRegex=/^(https?)/;if(href&&href.substring(0,1)!=='/'){var protocol=href.split(':')[0];if(!protocolRegex.test(protocol))$(this).removeAttr('href');}var dataHref=this.dataset.cboxHref;if(dataHref&&dataHref.substring(0,1)!=='/'){var dataProtocol=dataHref.split(':')[0];if(!protocolRegex.test(dataProtocol))delete this.dataset.cboxHref;}delete this.dataset.cboxTitle;delete this.dataset.cboxIframeAttrs;var sanitizeDataList=['cboxNext','cboxPrevious','cboxCurrent','cboxClose','cboxSlideshowstop','cboxSlideshowstart','cboxXhrError','cboxImgerror','cboxHtml'];for(var a of sanitizeDataList)if(this.dataset.hasOwnProperty(a))this.dataset[a]=Drupal.colorbox.sanitizeMarkup(this.dataset[a]);});$('.colorbox',context).colorbox({onComplete:function(e){var focus=$('#cboxContent').find('#cboxPrevious').css('display')!=='none'?$('#cboxContent').find('#cboxPrevious'):$('#cboxContent').find('#cboxClose');focus.focus();$('#cboxContent').on('keydown',function(e){var keyCode=e.keyCode||e.which;var firstElement=$('#cboxContent').find('#cboxPrevious').last().is(':focus');var lastElement=$('#cboxContent').find('#cboxClose').first().is(':focus');if(keyCode===9&&!e.shiftKey&&lastElement){e.preventDefault();$('#cboxContent').find('#cboxPrevious').first().focus();}else{if(keyCode===9&&e.shiftKey&&firstElement){e.preventDefault();$('#cboxContent').find('#cboxClose').first().focus();}}});}});}};if(!Drupal.hasOwnProperty('colorbox'))Drupal.colorbox={};Drupal.colorbox.sanitizeMarkup=function(markup){if(typeof DOMPurify!=='undefined'){var purifyConfig={ALLOWED_TAGS:['a','b','strong','i','em','u','cite','code','br'],ALLOWED_ATTR:['href','hreflang','title','target']};if(drupalSettings.hasOwnProperty('dompurify_custom_config'))purifyConfig=drupalSettings.dompurify_custom_config;return DOMPurify.sanitize(markup,purifyConfig);}else return Drupal.checkPlain(markup);};})(jQuery,Drupal,drupalSettings,once);;
280(function($,Drupal,drupalSettings,window,once){'use strict';const ns='AhsLinkFormatterModalTarget';const getModalQuery=function(data){let queryParams='ahs-webview-local=1';if(typeof data.showBannerHero!=='undefined')queryParams+='&show-banner-hero=1';if(typeof data.showBreadcrumb!=='undefined')queryParams+='&show-breadcrumb=1';return queryParams;};const setModalQuery=function(href,data){const query=getModalQuery(data);if(!query)return href;if(href.length===0)return href;if(href.indexOf(query)!==-1)return href;if(href.indexOf('?')!==-1)href=href.replace('?',`?${query}&`);else if(href.indexOf('#')!==-1)href=href.replace('#',`?${query}#`);else href=`${href}?${query}`;return href;};const canModal=function(){return Drupal.ahsJsColorbox.canColorbox();};const colorboxGetModalSize=function(modalSize){return Drupal.ahsJsColorbox.getModalSize(modalSize);};const colorboxModalLinkSettings=function(){const cbClassName=`${'className' in drupalSettings.colorbox?`${drupalSettings.colorbox.className} `:''}ahs-content-modal ahs-link-formatter-modal-target__modal`;return $.extend({},Drupal.ahsJsColorbox.getColorboxModuleSettings(),{iframe:true,scrolling:true,className:cbClassName,width:'98%',height:'95%'});};const modalizeLink=function(linkElement,onceName){const $links=$(linkElement);const cbSettings=colorboxModalLinkSettings();if(typeof onceName==='undefined')onceName=`${ns}Modalized`;$(once(onceName,$links)).each(function(){const $t=$(this);const href=$t.attr('href');if(typeof href!=='undefined'){$t.attr('href',setModalQuery(href,$t.data()));let modalSizeName=$t.data('modalSize');if(typeof modalSizeName==='undefined'||modalSizeName===null)modalSizeName='xlarge';const modalSize=colorboxGetModalSize(modalSizeName);cbSettings.modalSize=modalSizeName;cbSettings.width=modalSize.width;cbSettings.height=modalSize.height;cbSettings.maxWidth=modalSize.maxWidth;cbSettings.maxHeight=modalSize.maxHeight;$t.addClass('ahs-modalized-link');$t.removeAttr('target');$t.colorbox(cbSettings);}});return $links;};const getLinkContext=function(context){let $linkContext=$(context);if(context===window.document){const $site=$linkContext.find('.site').first();if($site.length>0){const $siteChildren=$site.children();const $siteUtility=$siteChildren.filter('.site__utility');$linkContext=$siteChildren.not($siteUtility);const $siteUtilityLinkContext=$siteUtility.children().not('#block-tabs');$linkContext=$linkContext.add($siteUtilityLinkContext.get());}}return $linkContext;};const processLinks=function(context){if(!canModal())return $([]);const $linkContext=getLinkContext(context);if($linkContext.length===0)return $([]);let $links=$(once(`${ns}Processed`,$linkContext.find('a'))).not('.ahs-modalized-link').filter('[data-modal="true"]').filter('[href]').not('[href*="/formstack-api-embed/"]').not('.colorbox').not('[data-media-modal-embedl]').not('[data-vi
vendor: 4,948 bytes, lines 280-289
280deo-embed-field-modal]').not(Drupal.ahsSite.filterForCurrentPageAnchors);$links=$links.filter(function(){let href=$(this).attr('href');if(typeof href==='undefined'||!href)return false;href=href.trim();if(!href)return false;if(href.indexOf('http')===0)return true;if(href.indexOf('#')===0||href.indexOf('?')===0||href.indexOf('tel:')===0||href.indexOf('javascript:')===0)return false;return true;});if($links.length>0)$links.each(function(){modalizeLink(this);});return $links;};$(window.document).off(`ahsContentUpdated.${ns}`).on(`ahsContentUpdated.${ns}`,function(event){if(event.target)processLinks($(event.target).parent());});Drupal.behaviors[ns]={attach:function(context){processLinks(context);const maps=once(`${ns}MapInit`,'.geolocation-common-map-container',context);if(maps.length>0)$(maps).on('geolocationInfoWindowOnDomReady',function(event,infoWindowContentElements){const $links=$(infoWindowContentElements).find('.ahs-modalized-link');if($links.length>0)modalizeLink($links,`${ns}ModalizedMap`);});}};})(jQuery,Drupal,window.drupalSettings,window,once);;
281/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v3.6.6 - 2019-02-26
282 *  Desc: Include this file in any page being loaded into an iframe
283 *        to force the iframe to resize to the content size.
284 *  Requires: iframeResizer.min.js on host page.
285 *  Copyright: (c) 2019 David J. Bradshaw - [email protected]
286 *  License: MIT
287 */
288
289!function(d){"use strict";if("undefined"!=typeof window){var n=!0,i=10,o="",r=0,a="",t=null,u="",c=!1,s={resize:1,click:1},l=128,f=!0,m=1,g="bodyOffset",h=g,p=!0,v="",y={},w=32,e=null,b=!1,T="[iFrameSizer]",E=T.length,S="",O={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",I=!0,N=window.parent,C="*",k=0,A=!1,x=null,z=16,L=1,R="scroll",F=R,P=window,D=function(){ue("MessageCallback function not defined")},q=function(){},H=function(){},W={height:function(){return ue("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ue("Custom width calculation function not defined"),document.body.scrollWidth}},j={},B=!1;try{var V=Object.create({},{passive:{get:function(){B=!0}},once:{get:function(){!0}}});window.addEventListener("test",te,V),window.removeEventListener("test",te,V)}catch(e){}var J,U,K,Q,X,Y,$,G=Date.now||function(){return(new Date).getTime()},Z={bodyOffset:function(){return document.body.offsetHeight+ye("marginTop")+ye("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return W.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,be(Z))},min:function(){return Math.min.apply(null,be(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),we("bottom",Ee()))},taggedElement:function(){return Te("bottom","data-iframe-height")}},_={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return W.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(_.bodyScroll(),_.documentElementScroll())},max:function(){return Math.max.apply(null,be(_))},min:function(){return Math.min.apply(null,be(_))},rightMostElement:function(){return we("right",Ee())},taggedElement:function(){return Te("right","data-iframe-width")}},ee=(J=Se,X=null,Y=0,$=function(){Y=G(),X=null,Q=J.apply(U,K),X||(U=K=null)},function(){var e=G();Y||(Y=e);var t=z-(e-Y);return U=this,K=arguments,t<=0||z<t?(X&&(clearTimeout(X),X=null),Y=e,Q=J.apply(U,K),X||(U=K=null)):X||(X=setTimeout($,t)),Q});ne(window,"message",ke),ne(window,"readystatechange",Ae),Ae()}function te(){}function ne(e,t,n,o){"addEventListener"in window?e.addEventListener(t,n,!!B&&(o||{})):"attachEvent"in window&&e.attachEvent("on"+t,n)}function oe(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function ie(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return T+"["+S+"] "+e}function ae(e){b&&"object"==typeof window.console&&console.log(re(e))}function ue(e){"object"==typeof window.console&&console.warn(re(e))}function ce(){var e;!function(){function e(e){return"true"===e}var t=v.substr(E).split(":");S=t[0],r=d!==t[1]?Number(t[1]):r,c=d!==t[2]?e(t[2]):c,b=d!==t[3]?e(t[3]):b,w=d!==t[4]?Number(t[4]):w,n=d!==t[6]?e(t[6]):n,a=t[7],h=d!==t[8]?t[8]:h,o=t[9],u=t[10],k=d!==t[11]?Number(t[11]):k,y.enable=d!==t[12]&&e(t[12]),M=d!==t[13]?t[13]:M,F=d!==t[14]?t[14]:F}(),ae("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ae("Setup custom "+t+"CalcMethod"),W[t]=e,e="
289custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t=window.iFrameResizer,ae("Reading data from page: "+JSON.stringify(t)),D="messageCallback"in t?t.messageCallback:D,q="readyCallback"in t?t.readyCallback:q,C="targetOrigin"in t?t.targetOrigin:C,h="heightCalculationMethod"in t?t.heightCalculationMethod:h,F="widthCalculationMethod"in t?t.widthCalculationMethod:F,h=e(h,"height"),F=e(F,"width"));var t;ae("TargetOrigin for parent set to: "+C)}(),function(){d===a&&(a=r+"px");se("margin",function(e,t){-1!==t.indexOf("-")&&(ue("Negative CSS value ignored for "+e),t="");return t}("margin",a))}(),se("background",o),se("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",document.body.appendChild(e),me(),ge(),document.documentElement.style.height="",document.body.style.height="",ae('HTML & body height set to "auto"'),ae("Enable public methods"),P.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,he()):!1===e&&!0===n&&(n=!1,pe()),n},close:function(){Ce(0,0,"close"),ae("Disable outgoing messages"),I=!1,ae("Remove event listener: Message"),oe(window,"message",ke),!0===n&&pe()},getId:function(){return S},getPageInfo:function(e){"function"==typeof e?(H=e,Ce(0,0,"pageInfo")):(H=function(){},Ce(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Ne("parentIFrame.reset")},scrollTo:function(e,t){Ce(t,e,"scrollTo")},scrollToOffset:function(e,t){Ce(t,e,"scrollToOffset")},sendMessage:function(e,t){Ce(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){h=e,me()},setWidthCalculationMethod:function(e){F=e,ge()},setTargetOrigin:function(e){ae("Set targetOrigin: "+e),C=e},size:function(e,t){var n=(e||"")+(t?","+t:"");Oe("size","parentIFrame.size("+n+")",e,t)}},he(),y=function(){function r(e){var t=e.getBoundingClientRect(),n={x:window.pageXOffset!==d?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==d?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function n(e){var t,n=e.split("#")[1]||e,o=decodeURIComponent(n),i=document.getElementById(o)||document.getElementsByName(o)[0];d!==i?(t=r(i),ae("Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),Ce(t.y,t.x,"scrollToOffset")):(ae("In page link (#"+n+") not found in iFrame, so sending to parent"),Ce(0,0,"inPageLink","#"+n))}function e(){""!==location.hash&&"#"!==location.hash&&n(location.href)}function t(){Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(e){function t(e){e.preventDefault(),n(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&ne(e,"click",t)})}y.enable?Array.prototype.forEach&&document.querySelectorAll?(ae("Setting up location.hash handlers"),t(),ne(window,"hashchange",e),setTimeout(e,l)):ue("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ae("In page linking not enabled");return{findTarget:n}}(),Oe("init","Init message from host page"),q()}function se(e,t){d!==t&&""!==t&&"null"!==t&&ae("Body "+e+' set to "'+(document.body.style[e]=t)+'"')}function le(n){var e={add:function(e){function t(){Oe(n.eventName,n.eventType)}j[e]=t,ne(window,e,t,{passive:!0})},remove:function(e){var t=j[e];delete j[e],oe(window,e,t)}};n.eventNames&&Array.prototype.map?(n.eventName=n.eventNames[0],n.eventNames.map(e[n.method])):e[n.method](n.eventName),ae(ie(n.method)+" event listener: "+n.eventType)}function de(e){le({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),le({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),le({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),le({method:e,eventType:"Input",eventName:"input"}),le({method:e,eventType:"Mouse Up",eventName:"mouseup"}),le({method:e,eventType:"Mouse Down",eventName:"mousedown"}),le({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),le({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),le({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),le({method:e,eventType:"Touch Start",eventName:"touchstart"}),le({method:e,eventType:"Touch End",eventName:"touchend"}),le({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),le({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),le({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),le({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
289),"child"===M&&le({method:e,eventType:"IFrame Resized",eventName:"resize"})}function fe(e,t,n,o){return t!==e&&(e in n||(ue(e+" is not a valid option for "+o+"CalculationMethod."),e=t),ae(o+' calculation method set to "'+e+'"')),e}function me(){h=fe(h,g,Z,"height")}function ge(){F=fe(F,R,_,"width")}function he(){var e;!0===n?(de("add"),e=w<0,window.MutationObserver||window.WebKitMutationObserver?e?ve():t=function(){function t(e){function t(e){!1===e.complete&&(ae("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function o(e){var t;ae("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),t=e,c.splice(c.indexOf(t),1)}function n(e,t,n){o(e.target),Oe(t,n+": "+e.target.src,d,d)}function i(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function e(e){Oe("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var a,u,c=[],s=window.MutationObserver||window.WebKitMutationObserver,l=(a=document.querySelector("body"),u={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},l=new s(e),ae("Create body MutationObserver"),l.observe(a,u),l);return{disconnect:function(){"disconnect"in l&&(ae("Disconnect body MutationObserver"),l.disconnect(),c.forEach(o))}}}():(ae("MutationObserver not supported in this browser!"),ve())):ae("Auto Resize disabled")}function pe(){de("remove"),null!==t&&t.disconnect(),clearInterval(e)}function ve(){0!==w&&(ae("setInterval: "+w+"ms"),e=setInterval(function(){Oe("interval","setInterval: "+w)},Math.abs(w)))}function ye(e,o){var t=0;return o=o||document.body,t="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(t=document.defaultView.getComputedStyle(o,null))?t[e]:0:function(e){if(/^\d+(px)?$/i.test(e))return parseInt(e,i);var t=o.style.left,n=o.runtimeStyle.left;return o.runtimeStyle.left=o.currentStyle.left,o.style.left=e||0,e=o.style.pixelLeft,o.style.left=t,o.runtimeStyle.left=n,e}(o.currentStyle[e]),parseInt(t,i)}function we(e,t){for(var n,o=t.length,i=0,r=0,a=ie(e),u=G(),c=0;c<o;c++)r<(i=t[c].getBoundingClientRect()[e]+ye("margin"+a,t[c]))&&(r=i);return u=G()-u,ae("Parsed "+o+" HTML elements"),ae("Element position calculated in "+u+"ms"),z/2<(n=u)&&ae("Event throttle increased to "+(z=2*n)+"ms"),r}function be(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function Te(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ue("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),we(e,n)}function Ee(){return document.querySelectorAll("body *")}function Se(e,t,n,o){var i,r;!function(){function e(e,t){return!(Math.abs(e-t)<=k)}return i=d!==n?n:Z[h](),r=d!==o?o:_[F](),e(m,i)||c&&e(L,r)}()&&"init"!==e?e in{init:1,interval:1,size:1}||!(h in O||c&&F in O)?e in{interval:1}||ae("No change in size detected"):Ne(t):(Me(),Ce(m=i,L=r,e))}function Oe(e,t,n,o){A&&e in s?ae("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ae("Trigger event: "+t),"init"===e?Se(e,t,n,o):ee(e,t,n,o))}function Me(){A||(A=!0,ae("Trigger event lock on")),clearTimeout(x),x=setTimeout(function(){A=!1,ae("Trigger event lock off"),ae("--")},l)}function Ie(e){m=Z[h](),L=_[F](),Ce(m,L,e)}function Ne(e){var t=h;h=g,ae("Reset trigger event: "+e),Me(),Ie("reset"),h=t}function Ce(e,t,n,o,i){var r;!0===I&&(d===i?i=C:ae("Message targetOrigin: "+i),ae("Sending message to host page ("+(r=S+":"+e+":"+t+":"+n+(d!==o?":"+o:""))+")"),N.postMessage(T+r,i))}function ke(t){var n={init:function(){v=t.data,N=t.source,ce(),f=!1,setTimeout(function(){p=!1},l)},reset:function(){p?ae("Page reset ignored by init"):(ae("Page size reset by host page"),Ie("resetPage"))},resize:function(){Oe("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ae("PageInfoFromParent called from parent: "+e),H(JSON.parse(e)),ae(" --")},message:function(){var e=i();ae("MessageCallback called from parent: "+e),D(JSON.parse(e)),ae(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function e(){var e=o();e in n?n[e]():("undefined"==typeof module||!module.exports)&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||ue("Unexpected message ("+t.data+")")}T===(""+t.data).substr(0,E)&&(!1===f?e():r()?n.init():ae('Ignored message of type "'+o()+'". Received before initialization.'))}function Ae(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}();
290
291(function($,Drupal,window){'use strict';const ns='ahsIframedPage';Drupal[ns]=Drupal[ns]||{};const app=Drupal[ns];app.debug=false;app.isIframeHandlingEnabled=function(win){return win.self!==win.parent&&(typeof win.name==='undefined'||win.name!=='preview')&&typeof win.IS_MARKUP_TOP_FRAME==='undefined';};app.convertToIframedPage=function(win){win.document.documentElement.classList.add('ahs-is-webview-page');};app.messageIsAllowed=function(event,targetWindow){const me=this;const win=typeof targetWindow!=='undefined'?targetWindow:window;if(!('origin' in event)||!me.isMessageOriginAllowed(event.origin,win.location.href))return false;if(typeof event.data==='undefined'||!$.isPlainObject(event.data)||!('type' in event.data))return false;return true;};app.isMessageOriginAllowed=function(origin,target){const targetHref=typeof target!=='undefined'?target:window.location.href;const targetHrefParts=targetHref.split('/');if(targetHrefParts.length>=3){const targetHostPartsReversed=targetHrefParts[2].split('.').reverse();const originParts=origin.split('/');if(originParts.length>=3){const originHostPartsReversed=originParts[2].split('.').reverse();let matches=0;for(let h=0;h<targetHostPartsReversed.length;h++)if(targetHostPartsReversed[h]===originHostPartsReversed[h])matches+=1;else break;return matches>=2;}}return origin===targetHref;};app.loadIframeFromMessage=function(event,targetWindow){if(('data' in event)&&('iframeSelector' in event.data)&&typeof event.data.iframeSelector!=='undefined'&&event.data.iframeSelector!==null){const win=typeof targetWindow!=='undefined'?targetWindow:window;return $(event.data.iframeSelector,win.document);}return $([]);};app.createMessage=function(type,namespace,win,extraMessage){let message={
291initiator:namespace,type,href:win.location.href,referrer:('referrer' in win.document)?win.document.referrer:null};if(typeof extraMessage!=='undefined'&&$.isPlainObject(extraMessage))message=$.extend({},message,extraMessage);let frameElement=null;try{if(('frameElement' in win)&&typeof win.frameElement!=='undefined'&&win.frameElement!==null)frameElement=win.frameElement;}catch(error){}if(frameElement!==null){const iframeId=frameElement.getAttribute('id');if(typeof iframeId!=='undefined'&&!!iframeId)message.iframeId=iframeId;const iframeClass=frameElement.getAttribute('class');if(typeof iframeClass!=='undefined'&&!!iframeClass)message.iframeClass=iframeClass;const iframeName=frameElement.getAttribute('name');if(typeof iframeName!=='undefined'&&!!iframeName)message.iframeName=iframeName;if('iframeId' in message)message.iframeSelector=`#${iframeId}`;else if(('iframeClass' in message)&&message.iframeClass.indexOf('cboxIframe')!==-1)message.iframeSelector='#cboxLoadedContent .cboxIframe';else{if(('iframeName' in message))message.iframeSelector=`iframe[name="${message.iframeName}"]`;}}return message;};app.postMessage=function(targetWindow,message,targetOrigin){const postTargetOrigin=typeof targetOrigin!=='undefined'?targetOrigin:'*';try{targetWindow.postMessage(message,postTargetOrigin);}catch(error){if(app.debug){console.log('Error while attempting postMessage():');console.log('-- message:');console.log(message);console.log('-- error:');console.log(error);}}};if(app.isIframeHandlingEnabled(window)){window.addEventListener('message',function(event){const w=this;if(!app.messageIsAllowed(event,w))return;if(event.data.type==='ahsIframedPageHtmlAttributesAlter'){if(('attributes' in event.data)&&$.isPlainObject(event.data.attributes)){const $html=$('html',w.document);if($html.length>0)$.each(event.data.attributes,function(attrName,attrValue){if(attrName==='class')$html.addClass(attrValue);else{let newValue;const currValue=$html.attr(attrName);if(typeof currValue!=='undefined'&&currValue!==null)newValue=currValue;newValue+=` ${attrValue}`;$html.attr(attrName,newValue);}});}app.postMessage(event.source,app.createMessage('ahsIframedPageHtmlAttributesAlterCompleted',ns,w,{messageCompleted:event.data}),event.origin);return;}if(('initiator' in event.data)&&event.data.initiator===ns&&event.source!==w.self)app.postMessage(w.parent,event.data,'*');},false);window.addEventListener('unload',function(){const w=this;app.postMessage(w.parent,app.createMessage(`${ns}Unload`,ns,w),'*');});window.addEventListener('load',function(){const w=this;app.postMessage(w.parent,app.createMessage(`${ns}Load`,ns,w),'*');});Drupal.behaviors[ns]={attach:function(context){if(context===window.document){app.convertToIframedPage(window);app.postMessage(window.parent,app.createMessage(`${ns}DOMContentLoaded`,ns,window),'*');}}};}})(jQuery,Drupal,window);;
292/*! iFrame Resizer (iframeSizer.min.js ) - v3.6.6 - 2019-02-26
293 *  Desc: Force cross domain iframes to size to content.
294 *  Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame.
295 *  Copyright: (c) 2019 David J. Bradshaw - [email protected]
296 *  License: MIT
297 */
298
299!function(l){"use strict";if("undefined"!=typeof window){var e,u=0,f=!1,n=!1,p="message".length,b="[iFrameSizer]",y=b.length,v=null,r=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},k={},i=null,g={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){R("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},F={};window.jQuery&&((e=window.jQuery).fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(i){return this.filter("iframe").each(function(e,n){d(n,i)}).end()}):z("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],B):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=B()),window.iFrameResize=window.iFrameResize||B()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function I(e,n,i){"addEventListener"in window?e.addEventListener(n,i,!1):"attachEvent"in window&&e.attachEvent("on"+n,i)}function M(e,n,i){"removeEventListener"in window?e.removeEventListener(n,i,!1):"detachEvent"in window&&e.detachEvent("on"+n,i)}function o(e){return b+"["+(i="Host page: "+(n=e),window.top!==window.self&&(i=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),i)+"]";var n,i}function t(e){return k[e]?k[e].log:f}function x(e,n){a("log",e,n,t(e))}function z(e,n){a("info",e,n,t(e))}function R(e,n){a("warn",e,n,!0)}function a(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](o(n),i)}function s(n){function a(){e("Height"),e("Width"),S(function(){P(w),T(h),f("resizedCallback",w)},w,"init")}function e(e){var n=Number(k[h]["max"+e]),i=Number(k[h]["min"+e]),t=e.toLowerCase(),o=Number(w[t]);x(h,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,x(h,"Set "+t+" to min value")),n<o&&(o=n,x(h,"Set "+t+" to max value")),w[t]=""+o}function s(e){return g.substr(g.indexOf(":")+p+e)}function d(i,t){var e,n,o;e=function(){var e,n;H("Send Page Info","pageInfo:"+(e=document.body.getBoundingClientRect(),n=w.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-e.top,10),offsetLeft:parseInt(n.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),i,t)},n=32,F[o=t]||(F[o]=setTimeout(function(){F[o]=null,e()},n))}function c(e){var n=e.getBoundingClientRect();return O(h),{x:Math.floor(Number(n.left)+Number(v.x)),y:Math.floor(Number(n.top)+Number(v.y))}}function l(e){var n=e?c(w.iframe):{x:0,y:0},i={x:Number(w.width)+n.x,y:Number(w.height)+n.y};x(h,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):R(h,"Unable to scroll to requested position, window.parentIFrame not found"):(v=i,u(),x(h,"--"))}function u(){!1!==f("scrollCallback",v)?T(h):N()}function f(e,n){return E(h,e,n)}var i,t,o,r,m,g=n.data,w={},h=null;"[iFrameResizerChild]Ready"===g?function(){for(var e in k)H("iFrame requested init",A
vendor: 5,015 bytes, line 299
299(e),document.getElementById(e),e)}():b===(""+g).substr(0,y)&&g.substr(y).split(":")[0]in k?(m=g.substr(y).split(":"),w={iframe:k[m[0]]&&k[m[0]].iframe,id:m[0],height:m[1],width:m[2],type:m[3]},h=w.id,k[h]&&(k[h].loaded=!0),(r=w.type in{true:1,false:1,undefined:1})&&x(h,"Ignoring init message from meta parent page"),!r&&(o=!0,k[t=h]||(o=!1,R(w.type+" No settings for "+t+". Message was: "+g)),o)&&(x(h,"Received: "+g),i=!0,null===w.iframe&&(R(h,"IFrame ("+w.id+") not found"),i=!1),i&&function(){var e,i=n.origin,t=k[h]&&k[h].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(x(h,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(e=k[h]&&k[h].remoteHost,x(h,"Checking connection is from: "+e),i===e)))throw new Error("Unexpected message received from: "+i+" for "+w.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(k[h]&&k[h].firstRun&&k[h]&&(k[h].firstRun=!1),w.type){case"close":k[h].closeRequestCallback?E(h,"closeRequestCallback",k[h].iframe):C(w.iframe);break;case"message":r=s(6),x(h,"MessageCallback passed: {iframe: "+w.iframe.id+", message: "+r+"}"),f("messageCallback",{iframe:w.iframe,message:JSON.parse(r)}),x(h,"--");break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":d(k[h]&&k[h].iframe,h),function(){function e(n,i){function t(){k[r]?d(k[r].iframe,r):o()}["scroll","resize"].forEach(function(e){x(r,n+e+" listener for sendPageInfo"),i(window,e,t)})}function o(){e("Remove ",M)}var r=h;e("Add ",I),k[r]&&(k[r].stopPageInfo=o)}();break;case"pageInfoStop":k[h]&&k[h].stopPageInfo&&(k[h].stopPageInfo(),delete k[h].stopPageInfo);break;case"inPageLink":e=s(9),i=e.split("#")[1]||"",t=decodeURIComponent(i),(o=document.getElementById(t)||document.getElementsByName(t)[0])?(n=c(o),x(h,"Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),v={x:n.x,y:n.y},u(),x(h,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):x(h,"In page link #"+i+" not found and window.parentIFrame not found"):x(h,"In page link #"+i+" not found");break;case"reset":W(w);break;case"init":a(),f("initCallback",w.iframe);break;default:a()}var e,n,i,t,o,r}())):z(h,"Ignored: "+g)}function E(e,n,i){var t=null,o=null;if(k[e]){if("function"!=typeof(t=k[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function h(e){var n=e.id;delete k[n]}function C(e){var n=e.id;x(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){}E(n,"closedCallback",n),x(n,"--"),h(e)}function O(e){null===v&&x(e,"Get page position: "+(v={x:window.pageXOffset!==l?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==l?window.pageYOffset:document.documentElement.scrollTop}).x+","+v.y)}function T(e){null!==v&&(window.scrollTo(v.x,v.y),x(e,"Set page position: "+v.x+","+v.y),N())}function N(){v=null}function W(e){x(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),S(function(){P(e),H("reset","reset",e.iframe,e.id)},e,"reset")}function P(i){function t(e){n||"0"!==i[e]||(n=!0,x(o,"Hidden iFrame detected, creating visibility listener"),function(){function n(){function e(n){function e(e){return"0px"===(k[n]&&k[n].iframe.style[e])}k[n]&&null!==k[n].iframe.offsetParent&&(e("height")||e("width"))&&H("Visibility change","resize",k[n].iframe,n)}for(var n in k)e(n)}function e(e){x("window","Mutation observed: "+e[0].target+" "+e[0].type),c(n,16)}var i=w();i&&(t=document.querySelector("body"),o={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},new i(e).observe(t,o));var t,o}())}function e(e){var n;n=e,i.id?(i.iframe.style[n]=i[n]+"px",x(i.id,"IFrame ("+o+") "+n+" set to "+i[n]+"px")):x("undefined","messageData id not set"),t(e)}var o=i.iframe.id;k[o]&&(k[o].sizeHeight&&e("height"),k[o].sizeWidth&&e("width"))}function S(e,n,i){i!==n.type&&r?(x(n.id,"Requesting animation frame"),r(e)):e()}function H(e,n,i,t,o){var r,a=!1;t=t||i.id,k[t]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=k[t]&&k[t].targetOrigin,x(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+r),i.contentWindow.postMessage(b+n,r)):R(t,"["+e+"] IFrame("+t+") not found"),o&&k[t]&&k[t].warningTimeout&&(k[t].msgTimeout=setTimeout(function(){!k[t]||k[t].loaded||a||(a=!0,R(t,"IFrame has not responded within "+k[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},k[t].warningTimeout)))}function A(e){return e+":"+k[e].bodyMarginV1+":"+k[e].sizeWidth+":"+k[e].log+":"+k[e].interval+":"+k[e].enablePublicMethods+":"+k[e].autoResize+":"+k[e].bodyMargin+":"+k[e].heightCalculationMethod+":"+k[e].bodyBackgroun
299d+":"+k[e].bodyPadding+":"+k[e].tolerance+":"+k[e].inPageLinks+":"+k[e].resizeFrom+":"+k[e].widthCalculationMethod}function d(i,e){var n,t,o,r,a,s,d,c=(n=i.id,""===n&&(i.id=(t=e&&e.id||g.id+u++,null!==document.getElementById(t)&&(t+=u++),n=t),f=(e||{}).log,x(n,"Added missing iframe ID: "+n+" ("+i.src+")")),n);c in k&&"iFrameResizer"in i?R(c,"Ignored iFrame, already setup."):(s=(s=e)||{},k[c]={firstRun:!0,iframe:i,remoteHost:i.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(s),function(e){for(var n in g)g.hasOwnProperty(n)&&(k[c][n]=e.hasOwnProperty(n)?e[n]:g[n])}(s),k[c]&&(k[c].targetOrigin=!0===k[c].checkOrigin?""===(d=k[c].remoteHost)||"file://"===d?"*":d:"*"),function(){switch(x(c,"IFrame scrolling "+(k[c]&&k[c].scrolling?"enabled":"disabled")+" for "+c),i.style.overflow=!1===(k[c]&&k[c].scrolling)?"hidden":"auto",k[c]&&k[c].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=k[c]?k[c].scrolling:"no"}}(),function(){function e(e){1/0!==k[c][e]&&0!==k[c][e]&&(i.style[e]=k[c][e]+"px",x(c,"Set "+e+" = "+k[c][e]+"px"))}function n(e){if(k[c]["min"+e]>k[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(k[c]&&k[c].bodyMargin)&&"0"!==(k[c]&&k[c].bodyMargin)||(k[c].bodyMarginV1=k[c].bodyMargin,k[c].bodyMargin=k[c].bodyMargin+"px"),o=A(c),(a=w())&&(r=a,i.parentNode&&new r(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===i&&C(i)})})}).observe(i.parentNode,{childList:!0})),I(i,"load",function(){var e,n;H("iFrame.onload",o,i,l,!0),e=k[c]&&k[c].firstRun,n=k[c]&&k[c].heightCalculationMethod in m,!e&&n&&W({iframe:i,height:0,width:0,type:"init"})}),H("init",o,i,l,!0),Function.prototype.bind&&k[c]&&(k[c].iframe.iFrameResizer={close:C.bind(null,k[c].iframe),removeListeners:h.bind(null,k[c].iframe),resize:H.bind(null,"Window resize","resize",k[c].iframe),moveToAnchor:function(e){H("Move to anchor","moveToAnchor:"+e,k[c].iframe,c)},sendMessage:function(e){H("Send Message","message:"+(e=JSON.stringify(e)),k[c].iframe,c)}}))}function c(e,n){null===i&&(i=setTimeout(function(){i=null,e()},n))}function L(e){x("window","Trigger event: "+e),c(function(){q("Window "+e,"resize")},16)}function j(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visiblity change"),c(function(){q("Tab Visable","resize")},16))}function q(e,n){for(var i in k)k[t=i]&&"parent"===k[t].resizeFrom&&k[t].autoResize&&!k[t].firstRun&&H(e,n,document.getElementById(i),i);var t}function B(){function t(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),d(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!r;e+=1)r=window[n[e]+"RequestAnimationFrame"];r||x("setup","RequestAnimationFrame not supported")}(),I(window,"message",s),I(window,"resize",function(){L("resize")}),I(document,"visibilitychange",j),I(document,"-webkit-visibilitychange",j),I(window,"focusin",function(){L("focus")}),I(window,"focus",function(){L("focus")}),function(e,n){var i;switch(o=[],(i=e)&&i.enablePublicMethods&&R("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),t.bind(l,e));break;case"object":t(e,n);break;default:throw new TypeError("Unexpected data type ("+typeof n+")")}return o}}}();
300
301(function($,Drupal,window){'use strict';Drupal.ahsIframeResizer=Drupal.ahsIframeResizer||{};const app=Drupal.ahsIframeResizer;app.canIFrameResize=function(){return typeof window.iFrameResize==='function';};app.iframeIsResizable=function(iframe){return this.canIFrameResize()&&iframe!==null&&iframe.matches('iframe')&&('iFrameResizer' in iframe);};app.onScrollFromIframe=function(position){let topBufferUsed=64;const threshold=topBufferUsed||64;const targetTop=position.y;const winTop=$(window).scrollTop()||0;const delta=Math.abs(winTop-targetTop);if(Drupal.ahsSite.isHeaderSticky()){const stickyHeaderHeight=Drupal.ahsSite.getStickyHeaderOuterHeight();if(stickyHeaderHeight!=='undefined'&&stickyHeaderHeight!==null)topBufferUsed+=stickyHeaderHeight;}position.y=targetTop-topBufferUsed;if(delta>threshold)$('html, body').animate({scrollTop:position.y,scrollLeft:position.x},400);return false;};app.attach=function(iframe,options){const self=this;if(self.canIFrameResize()&&iframe!==null&&iframe.matches('iframe')){const defaults={warningTimeout:0,heightCalculationMethod:'documentElementOffset',onScroll:self.onScrollFromIframe.bind(iframe),scrollCallback:self.onScrollFromIframe.bind(iframe)};const activeOptions=$.extend({},defaults,options);window.iFrameResize(activeOptions,iframe);}};app.detach=function(iframe){if(this.iframeIsResizable(iframe)&&typeof iframe.iFrameResizer.removeListeners==='function')iframe.iFrameResizer.removeListeners();};
301app.resize=function(iframe){if(this.iframeIsResizable(iframe)&&(typeof iframe.iFrameResizer.resize==='function'))iframe.iFrameResizer.resize();};})(jQuery,Drupal,window);;
302(function($,Drupal,window){'use strict';const ns='ahsFormstackApiEmbedManager';Drupal[ns]=Drupal[ns]||{};const app=Drupal[ns];app.submittedFormIframes={};app.removeLoadingOverlayTimer=null;app.removeLoadingOverlayDeferred=null;app.showLoadingOverlay=function(){let $overlay=$('#ahs-formstack-embed-overlay');if($overlay.length===0){$overlay=$('<div id="ahs-formstack-embed-overlay" class="ahs-formstack-embed-overlay"></div>');$('body').append($overlay);}$overlay.removeClass('hidden--important');return $overlay;};app.clearRemoveLoadingOverlayTimer=function(){const me=this;if(me.removeLoadingOverlayTimer!==null){window.clearTimeout(me.removeLoadingOverlayTimer);me.removeLoadingOverlayTimer=null;}};app.createRemoveLoadingOverlayDeferred=function(){this.removeLoadingOverlayDeferred=$.Deferred();return this.removeLoadingOverlayDeferred;};app.doRemoveLoadingOverlay=function(){$('#ahs-formstack-embed-overlay').addClass('hidden--important');this.clearRemoveLoadingOverlayTimer();if(this.removeLoadingOverlayDeferred!==null)this.removeLoadingOverlayDeferred.resolve();};app.removeLoadingOverlay=function(timeout){const me=this;if(me.removeLoadingOverlayDeferred!==null)me.removeLoadingOverlayDeferred=null;const deferred=me.createRemoveLoadingOverlayDeferred();me.clearRemoveLoadingOverlayTimer();if($('#ahs-formstack-embed-overlay').hasClass('hidden--important'))return deferred.promise();if(typeof timeout!=='undefined'&&timeout>0)me.removeLoadingOverlayTimer=window.setTimeout(function(){me.doRemoveLoadingOverlay();},timeout);else me.doRemoveLoadingOverlay();return deferred.promise();};app.isFormEmbedHref=function(href){return !!href&&href.indexOf('/formstack-api-embed/')!==-1;};app.getFormId=function(href){if(typeof href==='undefined'||!href)return null;const matches=href.match(/\/formstack-api-embed\/(\d+)/i);if(matches.length>1)return matches[1];return null;};app.getSubmittedFormIframe=function(href){const me=this;if(me.isFormEmbedHref(href)&&(href in me.submittedFormIframes)&&me.submittedFormIframes[href]!==null)return $(me.submittedFormIframes[href]);return $([]);};app.messageIsAllowed=function(event,win){return Drupal.ahsIframedPage.messageIsAllowed(event,win);};app.loadFormIframe=function(event,win,iframeSelector){const me=this;if(!('data' in event)||!$.isPlainObject(event.data))return $([]);let $formIframe=null;const $messageIframe=Drupal.ahsIframedPage.loadIframeFromMessage(event,win);if($messageIframe.length>0){const messageIframeSrc=$messageIframe.prop('src');if(typeof messageIframeSrc!=='undefined'&&!!messageIframeSrc&&messageIframeSrc!=='about:blank'&&me.isFormEmbedHref(messageIframeSrc))$formIframe=$messageIframe;}if($formIframe!==null){if(typeof iframeSelector!=='undefined'&&!!iframeSelector)return $formIframe.filter(iframeSelector).first();return $formIframe.first();}let hrefToFind=null;const hrefIsForm=!!event.data.href&&me.isFormEmbedHref(event.data.href);if(hrefIsForm)hrefToFind=event.data.href;if(!hrefIsForm&&!!event.data.referrer&&me.isFormEmbedHref(event.data.referrer))hrefToFind=event.data.referrer;if(hrefToFind!==null&&!!hrefToFind){const $submittedIframe=me.getSubmittedFormIframe(hrefToFind);if($submittedIframe.length>0){if(typeof iframeSelector!=='undefined'&&!!iframeSelector)return $submittedIframe.filter(iframeSelector).first();return $submittedIframe.first();}if(typeof iframeSelector!=='undefined'&&!!iframeSelector){const $selectorIframes=$(iframeSelector,win.document).filter(`[src="${hrefToFind}"]`);if($selectorIframes.length>0)return $selectorIframes.first();}else{hrefToFind=Drupal.ahsFrontendSecurity.sanitize(hrefToFind);const $hrefIframes=$(`[src="${hrefToFind}"]`,win.document);if($hrefIframes.length>0)return $hrefIframes.first();}}return $([]);};app.onFormSubmit=function(event,win){const me=this;let formHref=null;let formIframe=null;const $iframe=me.loadFormIframe(event,win);if($iframe.length>0){formHref=$iframe.prop('src');formIframe=$iframe.get(0);}if((formHref===null||!formHref)&&me.isFormEmbedHref(event.data.href))formHref=event.data.href;if(formHref)me.submittedFormIframes[formHref]=formIframe;};window.addEventListener("message",function(event){const win=this;if(!app.messageIsAllowed(event,win))return;let $iframe;switch(event.data.type){case 'ahsFormStackApiEmbedContentFormSubmit':app.onFormSubmit(event,win);return;case 'ahsIframedPageDOMContentLoaded':$iframe=app.loadFormIframe(event,win);if($iframe.length>0)Drupal.ahsIframedPage.postMessage(event.source,Drupal.ahsIframedPage.createMessage('ahsIframedPageHtmlAttributesAlter',ns,win,{attributes:{class:'ahs-is-formstack-embed-iframed-page'}}),event.origin);break;default:break;}},false);})(jQuery,Drupal,window);;
303(function($,Drupal,drupalSettings,window,once){'use strict';const getColorboxModuleSettings=function(){if(typeof drupalSettings.colorbox!=='undefined'&&drupalSettings.colorbox)return drupalSettings.colorbox;return {};};const colorboxModalLinkSettings=function(){const cbClassName=`${('colorbox' in drupalSettings)&&typeof drupalSettings.colorbox!=='undefined'&&('className' in drupalSettings.colorbox)?`${drupalSettings.colorbox.className} `:''}ahs-content-modal ahs-formstack-link-modal`;return $.extend({},getColorboxModuleSettings(),{iframe:true,scrolling:true,className:cbClassName,width:'66%',height:'95%'});};const modalizeLink=function(linkElement){const $links=$(linkElement);const cbSettings=colorboxModalLinkSettings();$(once('AhsFormLinksModalized',$links)).each(function(){const $t=$(this);const href=$t.attr('href');if(typeof href!=='undefined'){let modalSizeName=$t.data('fsModalSize');if(typeof modalSizeName==='undefined'||modalSizeName===null)modalSizeName='large';const modalSize=Drupal.ahsJsColorbox.getModalSize(modalSizeName);cbSettings.modalSize=modalSizeName;cbSettings.width=modalSize.width;cbSettings.height=modalSize.height;cbSettings.maxWidth=modalSize.maxWidth;cbSettings.maxHeight=modalSize.maxHeight;$t.addClass('ahs-modalized-link');$t.colorbox(cbSettings);}});return $links;};const processFormLinks=function(context){const embedLinks=$('a[href*="/formstack-api-embed/"]',context);modalizeLink(embedLinks);};const showLoadingOverlay=function(){$('#cboxLoadedContent').addClass('cboxLoadedContent--formstack-embed-loading');Drupal.ahsFormstackApiEmbedManager.showLoadingOverlay();};const removeLoadingOverlay=function(timeout){Drupal.ahsFormstackApiEmbedManager.removeLoadingOverlay(timeout).done(function(){$('#cboxLoadedContent').removeClass('cboxLoadedContent--formstack-embed-loading');});};window.addEventListener("message",function(event){const win=this;if(!Drupal.ahsFormstackApiEmbedManager.messageIsAllowed(event,win))return false;const $iframe=Drupal.ahsFormstackApiEmbedManager.loadFormIframe(event,win,'.cboxIframe');
303if(!$iframe.hasClass('cboxIframe'))return;switch(event.data.type){case 'ahsIframedPageHtmlAttributesAlterCompleted':if(('messageCompleted' in event.data)&&typeof event.data.messageCompleted!=='undefined'&&('initiator' in event.data.messageCompleted)&&event.data.messageCompleted.initiator==='ahsFormstackApiEmbedManager')removeLoadingOverlay(500);return;case 'ahsIframedPageUnload':if(Drupal.ahsFormstackApiEmbedManager.isFormEmbedHref(event.data.href)){showLoadingOverlay();removeLoadingOverlay(3000);}else removeLoadingOverlay();break;default:break;}},false);window.addEventListener("beforeunload",function(){removeLoadingOverlay();});$(window.document).off('ahsContentUpdated.AhsFormstackEmbedLinks').on('ahsContentUpdated.AhsFormstackEmbedLinks',function(event){if(event.target)processFormLinks($(event.target).parent());});Drupal.behaviors.AhsFormstackEmbedLinks={attach:function(context){const onceContext=context===window.document?'html':context;if(once('AhsFormstackEmbedLinksInit',onceContext).length>0)processFormLinks(context);}};})(jQuery,Drupal,window.drupalSettings,window,once);;
304(function($,Drupal,window,document,once){'use strict';const ns='ahsSitePopups';let isRepositioning=false;let gdprIsClosed=false;let locationBarIsOpen=false;function getChatbot(chatBot){if(typeof chatBot!=='undefined'&&chatBot!==null&&chatBot!==document&&chatBot.classList.contains('chatbot-embed'))return chatBot;return document.querySelector('.chatbot-embed');}function getGdprBanner(gdprBanner){if(typeof gdprBanner!=='undefined'&&gdprBanner!==null)return gdprBanner;return document.getElementById('sliding-popup');}function getAnimatedLocationBar(locationBar){if(typeof locationBar!=='undefined'&&locationBar!==null){if(locationBar.classList.contains('location-bar--animated'))return locationBar;return null;}return document.querySelector('.location-bar--animated');}function reposition(gdprElement=null,chatbotElement=null,locatonBarElement=null){if(isRepositioning)return;isRepositioning=true;let totalBottomAdjust=0;const locationBar=getAnimatedLocationBar(locatonBarElement);let locationBarVerticalAdjust=0;if(locationBar!==null&&locationBarIsOpen){locationBarVerticalAdjust=Drupal.ahsSite.getOuterHeightWithMargin(locationBar)||0;totalBottomAdjust=locationBarVerticalAdjust;}let gdprBottomAdjust=null;const gdpr=getGdprBanner(gdprElement);const gdprIsVisible=gdpr!==null&&!gdprIsClosed&&gdpr.classList.contains('sliding-popup-bottom')&&!gdpr.classList.contains('hidden');let gdprHeight=null;if(gdprIsVisible){gdprBottomAdjust=locationBarVerticalAdjust;if(gdprBottomAdjust<0)gdprBottomAdjust=0;const gdprTranslateY=gdprBottomAdjust>0?(-1)*gdprBottomAdjust:0;gdprHeight=Drupal.ahsSite.getOuterHeightWithMargin(gdpr)||0;totalBottomAdjust=gdprTranslateY+gdprHeight;Drupal.ahsSite.setTransform(gdpr,{translateY:`translateY(${gdprTranslateY.toFixed(2)}px)`});}const chatbot=getChatbot(chatbotElement);let chatbothHeight=null;if(chatbot!==null&&!chatbot.classList.contains('visually-hidden')){let chatbotBottomAdjust=0;if(gdprBottomAdjust===null)chatbotBottomAdjust=locationBarVerticalAdjust;else chatbotBottomAdjust=gdprBottomAdjust+(gdprHeight||0);let chatbotMarginBottom=chatbot.style.marginBottom;chatbotMarginBottom=chatbotMarginBottom?parseFloat(chatbotMarginBottom):0;if(Number.isFinite(chatbotMarginBottom))chatbotBottomAdjust-=chatbotMarginBottom;if(chatbotBottomAdjust<0)chatbotBottomAdjust=0;chatbothHeight=Drupal.ahsSite.getOuterHeightWithMargin(chatbot)||0;totalBottomAdjust=chatbotBottomAdjust+chatbothHeight;const chatbotTranslateY=chatbotBottomAdjust>0?(-1)*chatbotBottomAdjust:0;Drupal.ahsSite.setTransform(chatbot,{translateY:`translateY(${chatbotTranslateY.toFixed(2)}px)`});}document.documentElement.style.setProperty('--bottom-popups-total-offset',`${totalBottomAdjust.toFixed(2)}px`);if(totalBottomAdjust>0)document.body.classList.add('has-bottom-popups');else document.body.classList.remove('has-bottom-popups');isRepositioning=false;}function onGdprClose(gdprElement){gdprIsClosed=true;reposition(gdprElement);}function onGdprOpen(gdprElement){gdprIsClosed=false;reposition(gdprElement);}const onResize=Drupal.debounce(function(){window.requestAnimationFrame(function(){reposition();});},50);if(once(`${ns}EventListeners`,'html').length>0){const $document=$(document);window.addEventListener('resize',onResize);$document.off(`eu_cookie_compliance_popup_open.${ns}`,'#sliding-popup').on(`eu_cookie_compliance_popup_open.${ns}`,'#sliding-popup',function(){onGdprOpen(this);}).off(`eu_cookie_compliance_popup_close.${ns}`,'#sliding-popup').on(`eu_cookie_compliance_popup_close.${ns}`,'#sliding-popup',function(){onGdprClose(this);});document.addEventListener('chatbotEmbedLoaded',function(e){reposition(null,e.target);});document.addEventListener('locationBarCreate',function(e){locationBarIsOpen=!e.target.classList.contains('location-bar--slide-down');reposition(null,null,e.target);});document.addEventListener('locationBarDestroy',function(e){locationBarIsOpen=false;reposition(null,null,e.target);});document.addEventListener('locationBarOnPin',function(e){locationBarIsOpen=true;reposition(null,null,e.target);});document.addEventListener('locationBarOnUnPin',function(e){locationBarIsOpen=false;reposition(null,null,e.target);});$document.off(`close.offcanvas.${ns}`).on(`close.offcanvas.${ns}`,function(){window.setTimeout(()=>{reposition();},500);});}}(jQuery,Drupal,window,window.document,once));;
305!function(_,u,l){"use strict";var t,p=void 0===l.eu_cookie_compliance.cookie_value_disagreed||""===l.eu_cookie_compliance.cookie_value_disagreed?"0":l.eu_cookie_compliance.cookie_value_disagreed,r=void 0===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you||""===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you?"1":l.eu_cookie_compliance.cookie_value_agreed_show_thank_you,s=void 0===l.eu_cookie_compliance.cookie_value_agreed||""===l.eu_cookie_compliance.cookie_value_agreed?"2":l.eu_cookie_compliance.cookie_value_agreed;function m(e,o,i){var c="",n=(void 0!==i.expires&&("number"==typeof i.expires&&(n=new Date,i.expires=n.setTime(n.getTime()+24*i.expires*60*60*1e3)),c="; expires="+i.expires.toUTCString()),void 0===i.path?"/":i.path),a="";void 0!==i.domain&&(a="; domain="+i.domain),document.cookie=e+"="+(o||"")+c+"; path="+n+a+"; SameSite=Strict"}function a(e){var o=document.cookie.split(";");if(void 0===e)return o;for(var i=e+"=",c=0;c<o.length;c++){for(var n=o[c];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(i))return n.substring(i.length,n.length)}return null}function k(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}u.behaviors.euCookieCompliancePopup={attach:function(e){if(void 0!==l.eu_cookie_compliance){const i=document.querySelector(l.eu_cookie_compliance.containing_element);var o;i.getAttribute("data-eu-cookie-compliance-once")||(i.setAttribute("data-eu-cookie-compliance-once","true"),g=d.getCurrentStatus(),h=d.getAcceptedCategories(),l.eu_cookie_compliance.popup_eu_only_js?u.eu_cookie_compliance.showBanner()&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance-check",_.getJSON(o,{},function(e){e.in_eu?u.eu_cookie_compliance.execute():(u.eu_cookie_compliance.setStatus(s),l.eu_cookie_compliance.geoip_match=!1,c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),"categories"===l.eu_cookie_compliance.method&&(e=l.eu_cookie_compliance.cookie_categories,u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e)))})):l.eu_cookie_compliance.hide_the_banner||u.eu_cookie_compliance.execute(),_(i).addClass("eu-cookie-compliance-status-"+u.eu_cookie_compliance.getCurrentStatus()))}}},u.eu_cookie_compliance=u.eu_cookie_compliance||function(){(u.eu_cookie_compliance.queue=u.eu_cookie_compliance.queue||[]).push(arguments)},u.eu_cookie_compliance.a=+new Date;var d=u.eu_cookie_compliance,h=[],g=null,c=(d.updateSelectedCategories=function(e){h=e},d.updateCurrentStatus=function(e){g=e},u.eu_cookie_compliance.execute=function(){try{var e,o,i;l.eu_cookie_compliance.popup_enabled&&u.eu_cookie_compliance.cookiesEnabled()&&l.eu_cookie_compliance.modules_allow_popup&&(g=u.eu_cookie_compliance.getCurrentStatus(),void 0===u.eu_cookie_compliance.getVersion()&&u.eu_cookie_compliance.setVersion("unknown"),!0===l.eu_cookie_compliance.popup_eu_only&&!0!==l.eu_cookie_compliance.geoip_match||(e=u.eu_cookie_compliance.getVersion()!==l.eu_cookie_compliance.cookie_policy_version,o=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name,i=!l.eu_cookie_compliance.open_by_default||null!==g&&!e||"null"===a(o)&&l.eu_cookie_compliance.settings_tab_enabled,g!==p||!l.eu_cookie_compliance.settings_tab_enabled||"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method?g===p&&"default"===l.eu_cookie_compliance.method||null===g||g!==p&&l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup||g!==p&&e?!l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.mobile_popup_html_info,i):u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,i),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):g===r&&l.eu_cookie_compliance.popup_agreed_enabled?(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_agreed),u.eu_cookie_compliance.attachHideEvents()):g===s&&l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,null!==g),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner),u.eu_cookie_compliance.attachAgreeEvents())))}catch(e){}},u.eu_cookie_compliance.initPopup=function(){u.eu_cookie_compliance.attachAgreeEvents(),"categories"===l.eu_cookie_compliance.method&&(u.eu_cookie_compliance.setPreferenceCheckboxes(h),u.eu_cookie_compliance.attachSavePreferencesEvents()),l.eu_cookie_compliance.withdraw_enabled&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.positionTab=function(){if(l.eu_cookie_compliance.popup_position){let e=_(".eu-cookie-withdraw-tab").outerHeight();_("#sliding-popup").length&&(e+=_("#sliding-popup").outerHeight()),_(".eu-cookie-withdraw-wrapper").length?_(".eu-cookie-withdraw-tab").css("margin-top","0"):_(".eu-cookie-withdraw-tab").css("margin-top",e+"px")}},u.eu_cookie_compliance.createWithdrawBanner=function(e){var o=_("<div></div>").html(e),e=_(".eu-cookie-withdraw-banner",o),i=(o.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),o.addClass("eu-cookie-withdraw-wrapper"),o.trigger("eu_cookie_compliance_popup_close"),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||e.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),o.hide(),0);l.eu_cookie_compliance.popup_position?(o.prependTo(l.eu_cookie_compliance.containing_element),i=parseInt(o.outerHeight()),o.show().addClass("sliding-popup-top").addClass("clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(i)}),setTimeout(function(){var e=o.outerHeight();o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"})}.bind(o),0)):(l.eu_cookie_compliance.better_support_for_screen_readers?o.prependTo(l.eu_cookie_compliance.containing_element):o.appendTo(l.eu_cookie_compliance.containing_element),i=o.outerHeight(),o.show().addClass("sliding-popup-bottom").css({bottom:-1*i}),setTimeout(function(){var e=o.outerHeight();o.animate({bottom:-1*e},l.eu_cookie_compliance.popup_delay,null)}.bind(o),0)),_("body").removeClass("eu-cookie-compliance-popup-open"),e.attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.getBannerTopPosition=function(e){let o;return l.eu_cookie_compliance.fixed_top_position?(o=0,_(".toolbar-tray-horizontal.is-active").length&&(o+=parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o+=parseInt(_(".toolbar-bar").css("height"))),o+"px"):0},u.eu_cookie_compliance.getBannerTopHiddenPosition=function(e){let o=0;return l.eu_cookie_compliance.fixed_top_position?o=-e:(_(".toolbar-tray-horizontal.is-active").length&&(o=-parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o-=parseInt(_(".toolbar-bar").css("height")))),o+"px"},u.eu_cookie_compliance.getBannerBottomHiddenPosition=function(){return-_("#sliding-popup").outerHeight()+"px"},u.eu_cookie_compliance.toggleWithdrawBanner=function(){var e,o,i,c=_("#sliding-popup"),n=parseInt(c.outerHeight()),a=c.find(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").is(":visible");a&&(e=parseInt(c.css("top")),o=parseInt(_(l.eu_cookie_compliance.containing_element).css("padding-top")),i=parseInt(_(l.eu_cookie_compliance.containing_element).css("margin-top")),a=l.eu_cookie_compliance.popup_position?l.eu_cookie_compliance.fixed_top_position?!(e===-n):!(e===-(o+i+n)):0===parseInt(c.css("bottom"))),l.eu_cookie_compliance.popup_position?a?(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-n+"px"},l.eu_cookie_compliance.popup_delay),c.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close")):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),c.find(".eu-cookie-compliance-banner").show(),c.animate({top:u.eu_cookie_compliance.getBannerTopPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")):a?c.animate({bottom:-1*n},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close"):(c.find(".eu-cookie-compliance-banner").show(),c.animate({bottom:0},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")),a?(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0))},u.eu_cookie_compliance.resizeListener=function(){var e,o,i,c=_("#sliding-popup"),n=(e=function(){var e=c.outerHeight();l.eu_cookie_compliance.popup_position?(parseFloat(c.css("top"))<0&&(_("body").hasClass("eu-cookie-compliance-popup-open")?(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":"0px"}),c.css("top",u.eu_cookie_compliance.getBannerTopPosition(e))):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),c.css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)))),u.eu_cookie_compliance.positionTab()):0!==parseFloat(c.css("bottom"))&&c.css("bottom",-1*e),u.eu_cookie_compliance.positionTab()},o=50,function(){clearTimeout(i),i=setTimeout(function(){clearTimeout(i),e()},o)});setTimeout(function(){n()}),window.addEventListener("resize",n)},u.eu_cookie_compliance.createPopup=function(e,o){var i=_("<div></div>").html(e),e=(i.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||i.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),i.hide(),0);l.eu_cookie_compliance.popup_position?(i.prependTo(l.eu_cookie_compliance.containing_element),e=i
305.outerHeight(),i.addClass("sliding-popup-top clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)}),!0!==o?(i.show(),i.animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open"),u.eu_cookie_compliance.positionTab()})):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),setTimeout(function(){i.show(),u.eu_cookie_compliance.positionTab()},0))):(l.eu_cookie_compliance.better_support_for_screen_readers?i.prependTo(l.eu_cookie_compliance.containing_element):i.appendTo(l.eu_cookie_compliance.containing_element),e=i.outerHeight(),i.show().addClass("sliding-popup-bottom").css({bottom:-1*e}),!0!==o&&i.animate({bottom:0},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open")})),!0!==o?(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0)):(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1))},u.eu_cookie_compliance.attachAgreeEvents=function(){var e,o,i=l.eu_cookie_compliance.popup_clicking_confirmation,c=l.eu_cookie_compliance.popup_scrolling_confirmation;"categories"===l.eu_cookie_compliance.method&&l.eu_cookie_compliance.enable_save_preferences_button?_(".agree-button").click(u.eu_cookie_compliance.acceptAllAction):_(".agree-button").click(u.eu_cookie_compliance.acceptAction),_(".decline-button").click(u.eu_cookie_compliance.declineAction),_(".eu-cookie-compliance-close-button").click(u.eu_cookie_compliance.closeAction),_(".eu-cookie-compliance-reject-button").click(u.eu_cookie_compliance.rejectAllAction),i&&_("a, input[type=submit], button[type=submit]").not(".popup-content *").bind("click.euCookieCompliance",u.eu_cookie_compliance.acceptAction),c&&(e=!1,o=function(){e?(u.eu_cookie_compliance.acceptAction(),_(window).off("scroll",o)):e=!0},_(window).bind("scroll",o)),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.closeAction=function(){switch(l.eu_cookie_compliance.close_button_action){case"close_banner":u.eu_cookie_compliance.toggleWithdrawBanner();break;case"save_preferences":u.eu_cookie_compliance.savePreferencesAction();break;case"reject_all_cookies":u.eu_cookie_compliance.rejectAllAction();break;case"accept_all_cookies":u.eu_cookie_compliance.acceptAllAction()}},u.eu_cookie_compliance.attachSavePreferencesEvents=function(){_(".eu-cookie-compliance-save-preferences-button").click(u.eu_cookie_compliance.savePreferencesAction)},u.eu_cookie_compliance.attachHideEvents=function(){var e=l.eu_cookie_compliance.popup_hide_agreed,o=l.eu_cookie_compliance.popup_clicking_confirmation;_(".hide-popup-button").click(function(){u.eu_cookie_compliance.changeStatus(s)}),o&&_("a, input[type=submit], button[type=submit]").unbind("click.euCookieCompliance"),e&&_("a, input[type=submit], button[type=submit]").bind("click.euCookieComplianceHideAgreed",function(){u.eu_cookie_compliance.changeStatus(s)}),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.attachWithdrawEvents=function(){_(".eu-cookie-withdraw-button").click(u.eu_cookie_compliance.withdrawAction),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)},u.eu_cookie_compliance.acceptAction=function(){var e=l.eu_cookie_compliance.popup_agreed_enabled,o=r;e||(u.eu_cookie_compliance.setStatus(r),o=s),c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),void 0!==t&&clearInterval(t),"categories"===l.eu_cookie_compliance.method&&(e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(o=p)),u.eu_cookie_compliance.changeStatus(o),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.acceptAllAction=function(){var e=l.eu_cookie_compliance.cookie_categories;u.eu_cookie_compliance.setPreferenceCheckboxes(e),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.rejectAllAction=function(){u.eu_cookie_compliance.setStatus(p),u.eu_cookie_compliance.setPreferenceCheckboxes([]),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.savePreferencesAction=function(){var e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),o=l.eu_cookie_compliance.popup_agreed_enabled,i=r;o||(u.eu_cookie_compliance.setStatus(r),i=s),u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(i=p),u.eu_cookie_compliance.changeStatus(i)},u.eu_cookie_compliance.loadCategoryScripts=function(e){for(var o in e)!0!==i[e[o
305]]&&"function"==typeof euCookieComplianceLoadScripts&&(euCookieComplianceLoadScripts(e[o]),i[e[o]]=!0)},u.eu_cookie_compliance.declineAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(p);var e,o=_("#sliding-popup");o.hasClass("sliding-popup-top")?(e=o.outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),l.eu_cookie_compliance.settings_tab_enabled?(o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null).trigger("eu_cookie_compliance_popup_close"),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)):o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":0}),o.hide()}).trigger("eu_cookie_compliance_popup_close")):l.eu_cookie_compliance.settings_tab_enabled?(o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null).trigger("eu_cookie_compliance_popup_close"),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)):o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null,function(){o.hide()}).trigger("eu_cookie_compliance_popup_close"),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.withdrawAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(null),u.eu_cookie_compliance.setAcceptedCategories([]),location.reload()},u.eu_cookie_compliance.moreInfoAction=function(){l.eu_cookie_compliance.disagree_do_not_show_popup?(u.eu_cookie_compliance.setStatus(p),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?_("#sliding-popup .eu-cookie-compliance-banner").trigger("eu_cookie_compliance_popup_close").hide():_("#sliding-popup").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):l.eu_cookie_compliance.popup_link_new_window?window.open(l.eu_cookie_compliance.popup_link):window.location.href=l.eu_cookie_compliance.popup_link},u.eu_cookie_compliance.getCookieStatus=function(){var e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name);return e=void 0!==e&&"null"!==e?e:null},u.eu_cookie_compliance.getCurrentStatus=function(){var e=new o,e=(d.handleEvent("preStatusLoad",e),g=u.eu_cookie_compliance.getCookieStatus(),new n);return d.handleEvent("postStatusLoad",e),g},u.eu_cookie_compliance.setPreferenceCheckboxes=function(e){for(var o in null===u.eu_cookie_compliance.getCookieStatus()&&u.eu_cookie_compliance.getCookieStatus()!==p||_("#eu-cookie-compliance-categories input:checkbox").not(":disabled").prop("checked",!1),e){o=document.getElementById("cookie-category-"+e[o]);null!==o&&(o.checked=!0)}},u.eu_cookie_compliance.getAcceptedCategories=function(){var e=new C;d.handleEvent("prePreferencesLoad",e);var o,e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories");for(o in h=null!=e?(-1!==e.indexOf("%")&&(e=decodeURI(e).replaceAll(/%2C/g,",")),JSON.parse(e)):[],l.eu_cookie_compliance.cookie_categories_details){var i=l.eu_cookie_compliance.cookie_categories_details[o];"required"===i.checkbox_default_state&&-1===_.inArray(i.id,h)&&h.push(i.id)}e=new S;return d.handleEvent("postPreferencesLoad",e),h},u.eu_cookie_compliance.changeStatus=function(o){var e,i=l.eu_cookie_compliance.reload_page,c=g;if(g!==parseInt(o)){if(l.eu_cookie_compliance.popup_position){let e=_("#sliding-popup").outerHeight();l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(_("#sliding-popup").hide(),window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),e=_("#sliding-popup").outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").show()):(_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").css({"margin-top":"0px"})),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)})}else _(".sliding-popup-bottom").animate({bottom:-1*_("#sliding-popup").outerHeight()},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(_("#sliding-popup").css("display","none"),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),_(".sliding-popup-bottom").css("bottom",u.eu_cookie_compliance.getBannerBottomHiddenPosition()),_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").css("display","block")):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({bottom:0},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)});if(l.eu_cookie_compliance.reload_page)if(0!==(e=l.eu_cookie_compliance.reload_routes_list).length){for(var n=l.path.currentPath,a=!1,t=0;!a&&t<e.length;t++)var p=new RegExp(e[t],"g"),a=null!==n.match(p);(a&&!l.eu_cookie_compliance.reload_options||!a&&l.eu_cookie_compliance.reload_options)&&location.reload()}else location.reload();u.eu_cookie_compliance.setStatus(o)}},u.eu_cookie_compliance.showWithdrawBanner=function(e){e===s&&l.eu_cookie_compliance.withdraw_enabled&&(l.eu_cookie_compliance.withdraw_button_on_info_popup||(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.resizeListener()),u.eu_cookie_compliance.attachWithdrawEvents(),l.eu_cookie_compliance.popup_position&&u.eu_cookie_compliance.positionTab())},u.eu_cookie_compliance.setStatus=function(e){var o=new b,o=(d.handleEvent("preStatusSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name;1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a)));parseInt(l.eu_cookie_compliance.cookie_session)?m(n,e,{path:c,domain:i,sameSite:"strict"}):(a=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+a),m(n,e,{expires:o,path:c,domain:i,sameSite:"strict"}));var a="eu-cookie-compliance-status-"+g,n="eu-cookie-compliance-status-"+e,c=(_("."+a).removeClass(a).addClass(n),g=e,_(document).trigger("eu_cookie_compliance.changeStatus",[e]),u.eu_cookie_compliance.setVersion(),l.eu_cookie_compliance.store_consent&&(e===r&&l.eu_cookie_compliance.popup_agreed_enabled||e===s&&!l.eu_cookie_compliance.popup_agreed_enabled)&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance/store_consent/banner",_.post(o,{},function(e){})),new v);d.handleEvent("postStatusSave",c),e===p&&"opt_out"===l.eu_cookie_compliance.method&&(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3))},u.eu_cookie_compliance.setAcceptedCategories=function(e){var o=new P,o=(d.handleEvent("prePreferencesSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),JSON.stringify(e)),t=(parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(t=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+t),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}
305)),h=e,_(document).trigger("eu_cookie_compliance.changePreferences",[e]),new B);d.handleEvent("postPreferencesSave",t)},u.eu_cookie_compliance.hasAgreed=function(e){var o=g===r||g===s;return o=void 0!==e&&o&&"categories"===l.eu_cookie_compliance.method?u.eu_cookie_compliance.hasAgreedWithCategory(e):o},u.eu_cookie_compliance.hasAgreedWithCategory=function(e){return-1!==_.inArray(e,h)},u.eu_cookie_compliance.showBanner=function(){var e=!1;return g===p&&"default"===l.eu_cookie_compliance.method||null===g?l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(e=!0):(g===r&&l.eu_cookie_compliance.popup_agreed_enabled||g===s&&l.eu_cookie_compliance.withdraw_enabled)&&(e=!0),e},u.eu_cookie_compliance.cookiesEnabled=function(){var e=navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||e||(date.setDate(date.getDate()+100),m("testcookie","testcookie",{expires:date,sameSite:"strict"}),e=-1!==a("testcookie").indexOf("testcookie")),e},u.eu_cookie_compliance.cookieMatches=function(e,o){if(e===o)return!0;if(o.indexOf("*")<0)return!1;try{return new RegExp("^"+o.replace(/\./g,"\\.").replace(/\*/g,".+")+"$","g").test(e)}catch(e){return!1}},u.eu_cookie_compliance.isAllowed=function(e){if(0===e.indexOf("SESS")||0===e.indexOf("SSESS"))return!0;var o,i=l.eu_cookie_compliance.allowed_cookies.split(/\r\n|\n|\r/g);for(o in i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories"),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version"),i)if("string"==typeof i[o]){if(u.eu_cookie_compliance.cookieMatches(e,i[o]))return!0;if("categories"===l.eu_cookie_compliance.method){var c=i[o].indexOf(":");if(-1!==c){var n=i[o].substr(0,c),c=i[o].substr(c+1);if(u.eu_cookie_compliance.cookieMatches(e,c)&&u.eu_cookie_compliance.hasAgreedWithCategory(n))return!0}}}return!1},u.eu_cookie_compliance.getVersion=function(){return!!u.eu_cookie_compliance.hasAgreed()&&a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version")},!(u.eu_cookie_compliance.setVersion=function(e){if(!u.eu_cookie_compliance.hasAgreed())return!1;var o=new Date,i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),void 0!==e?e:l.eu_cookie_compliance.cookie_policy_version);parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(e=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+e),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}))})),i={},o=(_(function(){void 0!==l.eu_cookie_compliance&&(u.eu_cookie_compliance.hasAgreed()||null===g&&"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method)&&("function"==typeof euCookieComplianceLoadScripts&&euCookieComplianceLoadScripts(),c=!0,"categories"===l.eu_cookie_compliance.method&&u.eu_cookie_compliance.loadCategoryScripts(h))}),u.eu_cookie_compliance.BlockCookies=function(){var e,o=u.eu_cookie_compliance.getCookieStatus();if(o!==r&&o!==s||"categories"===l.eu_cookie_compliance.method||void 0===t)for(e in a()){var i,c=window.location.hostname,n=!1;if(!u.eu_cookie_compliance.isAllowed(e)){for(;!n&&""!==c;)k(e),(n=!a(e))||(k(e),n=!a(e)),c=-1===(i=c.indexOf("."))?"":c.substring(i+1);n||(document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;")}}else clearInterval(t)},void 0===l.eu_cookie_compliance||!l.eu_cookie_compliance.automatic_cookies_removal||("opt_in"!==l.eu_cookie_compliance.method||null!==g&&u.eu_cookie_compliance.hasAgreed())&&("opt_out"!==l.eu_cookie_compliance.method||u.eu_cookie_compliance.hasAgreed()||null===g)&&"categories"!==l.eu_cookie_compliance.method||(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3)),d.handleEvent=function(e,o){for(var i=function(e){var o=[];if(void 0!==u.eu_cookie_compliance&&void 0!==u.eu_cookie_compliance.queue&&u.eu_cookie_compliance.queue.length)for(var i,c,n=0;n<u.eu_cookie_compliance.queue.length;n++)u.eu_cookie_compliance.queue[n].length&&(i=(c=u.eu_cookie_compliance.queue[n])[0],c=c[1],"string"==typeof i&&"function"==typeof c&&i===e&&o.push(c));return o}(e),c=0;c<i.length;c++)void 0!==i[c]&&(o.subscribe(i[c]),o.fire({currentStatus:g,currentCategories:h}),o.unsubscribe(i[c]))},(T=e.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;
305this.handlers.forEach(function(e){e.call(i,o)})},e);function e(){this.handlers=[]}(T=f.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var n=f;function f(){this.handlers=[]}(T=w.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var b=w;function w(){this.handlers=[]}(T=y.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var v=y;function y(){this.handlers=[]}(T=x.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var C=x;function x(){this.handlers=[]}(T=A.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var S=A;function A(){this.handlers=[]}(T=E.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var P=E;function E(){this.handlers=[]}(T=H.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var T,B=H;function H(){this.handlers=[]}}(jQuery,Drupal,drupalSettings,window.Cookies);;
306(function($,Drupal,drupalSettings){'use strict';if(typeof Drupal.eu_cookie_compliance!=='undefined'&&typeof Drupal.eu_cookie_compliance.createPopup!=='undefined'){const originalCreatePopup=Drupal.eu_cookie_compliance.createPopup;Drupal.eu_cookie_compliance.createPopup=function(html,closed){const popup=window.document.getElementById('sliding-popup');if(popup){if(closed!==true)window.setTimeout(function(){popup.classList.remove('hidden');popup.classList.add('sliding-popup--open');window.document.body.classList.add('eu-cookie-compliance-popup-open');$(popup).trigger('eu_cookie_compliance_popup_open');},drupalSettings.eu_cookie_compliance.popup_delay||0);return;}originalCreatePopup(html,closed);};}})(jQuery,Drupal,window.drupalSettings);;
307(function($,Drupal,once){function ensureTooltip(){let tooltip=document.querySelector('.ahs-tooltip');if(!tooltip){tooltip=document.createElement('div');tooltip.classList.add('ahs-tooltip');tooltip.classList.add('arrow_box');}tooltip.style.opacity=0;if(!tooltip.isConnected)document.body.appendChild(tooltip);return $(tooltip);}function positionTooltip(tooltip){const targetElement=tooltip.data('ahsTooltipTarget');if(typeof targetElement==='undefined'||!targetElement)return;const target=$(targetElement);const windowWidth=window.innerWidth||0;const targetWidth=target.outerWidth();const targetOffset=target.offset();let tooltipWidth=tooltip.outerWidth();if(windowWidth<tooltipWidth*1.5)tooltip.css('max-width',windowWidth/2);else tooltip.css('max-width',340);tooltipWidth=tooltip.outerWidth();const buffer=10;let posLeft=targetOffset.left+(targetWidth/2)-(tooltipWidth/2);let posTop=targetOffset.top-tooltip.outerHeight()-buffer;if(posLeft<0){posLeft=targetOffset.left+targetWidth/2-buffer;tooltip.addClass('left');}else tooltip.removeClass('left');if(posLeft+tooltipWidth>windowWidth){posLeft=targetOffset.left-tooltipWidth+targetWidth/2+buffer;tooltip.addClass('right');}else tooltip.removeClass('right');if(posTop<0){posTop=targetOffset.top+target.outerHeight();tooltip.addClass('top');}else tooltip.removeClass('top');tooltip.css({left:posLeft,top:posTop,opacity:1});}function positionAllTooltips(){const tooltips=document.querySelectorAll('.ahs-tooltip');tooltips.forEach((tooltip)=>{positionTooltip($(tooltip));});}function closeAllTooltips(){const tooltips=document.querySelectorAll('.ahs-tooltip');tooltips.forEach((tooltip)=>{tooltip.classList.add('hidden');});}function openTooltip(targetElement){const target=$(targetElement);const tipMarkup=target.data('tooltip');if(typeof tipMarkup==='undefined'||!tipMarkup||tipMarkup==='')return false;const tooltip=ensureTooltip(target);tooltip.data('ahsTooltipTarget',target.get(0));tooltip.removeClass('hidden');tooltip.html(tipMarkup);positionTooltip(tooltip);if(!targetElement.hasAttribute('data-tooltip-click')){const pendingMouseTargets=once('AhsTooltipMouseLeave',targetElement);
307pendingMouseTargets.forEach((mouseTarget)=>{mouseTarget.addEventListener('mouseleave',closeAllTooltips);});}const pendingClickCloseTooltips=once('AhsTooltipClickClose',tooltip);pendingClickCloseTooltips.forEach((clickCloseTooltip)=>{clickCloseTooltip.addEventListener('click',closeAllTooltips);});}function onTargetMouseEnter(){openTooltip(this);}function toggleTooltip(target){if(target.classList.contains('open')){target.classList.remove('open');closeAllTooltips();}else{openTooltip(target);target.classList.add('open');}}function onTargetClick(event){event.preventDefault();event.stopImmediatePropagation();toggleTooltip(this);}function onTargetKeydown(event){if(!event.key)return;const key=event.key.toUpperCase();if(key!=='ENTER'&&key!==' '&&key!=='SPACEBAR')return;event.preventDefault();event.stopImmediatePropagation();toggleTooltip(this);}const attachTooltips=function(context){const targetElements=once('AhsTooltipInit','[data-tooltip]',context);if(!targetElements.length)return;targetElements.forEach((targetElement)=>{if(targetElement.hasAttribute('data-tooltip-click')){targetElement.addEventListener('click',onTargetClick);targetElement.addEventListener('keydown',onTargetKeydown);}else targetElement.addEventListener('mouseenter',onTargetMouseEnter);});if(once('AhsTooltipInit','html').length)$(window).on('resize orientationchange',positionAllTooltips);};$('.ahs-physician-scheduling-placeholder',window.document).on('ahsAppointmentsListingWidgetUpdated',function(){attachTooltips(this);});$(window.document).off('ahsContentUpdated.AhsTooltip').on('ahsContentUpdated.AhsTooltip',function(event){if(event.target)attachTooltips(event.target);});Drupal.behaviors.AhsTooltip={attach:function(context){attachTooltips(context);}};}(jQuery,Drupal,once));;
308(function($,Drupal,once){'use strict';const getLinkContext=function(context){let $linkContext=$(context);if(context===window.document){const $site=$linkContext.find('.site').first();if($site.length>0){const $siteChildren=$site.children();const $siteUtility=$siteChildren.filter('.site__utility');$linkContext=$siteChildren.not($siteUtility);const $siteUtilityLinkContext=$siteUtility.children().not('#block-tabs');$linkContext=$linkContext.add($siteUtilityLinkContext.get());}}return $linkContext;};Drupal.behaviors.AhsJsAnchorLinks={attach:function(context){const $linkContext=getLinkContext(context);if($linkContext.length>0){const $links=$(once('AhsJsAnchorLinks',$linkContext.find('a'))).not('.js-scroll-to-top').not('[href="#"]').not('[role="tab"]').not('.tab-widget__tab-link').not('.journey-point').not('.tabs-accordion-control').filter(Drupal.ahsSite.filterForCurrentPageAnchors);$links.on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();Drupal.ahsSite.scrollToAnchorTarget(this.hash,{skipAfterScrollClick:true});return false;});}}};}(jQuery,Drupal,once));;
309(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
310(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
311((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;
311if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
312(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>
312{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
312d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(`.${$(this.progress.element).attr('class').replace(/\s/g,'.')}`).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);if($wrapper.length===0)return;const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
312$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
312if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
313(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});return isTabbable(element);}});})(jQuery,Drupal,window.tabbable);;
314(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===9)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
314if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
315(function($,Drupal,once){'use strict';const ns='ahsAutocomplete';const renderMenu=function(ul,items){const that=this;let currentCategory="";
315$.each(items,function(index,item){const itemCategory=('category' in item)&&typeof item.category!=='undefined'?item.category:null;if(itemCategory&&itemCategory!==currentCategory){ul.append(`<li class='ui-autocomplete-category'>${itemCategory}</li>`);currentCategory=itemCategory;}const li=that._renderItemData(ul,item);let ariaLabel='';if(('label' in item)&&typeof item.label!=='undefined'&&item.label&&item.label.indexOf('<')===-1)ariaLabel=item.label;else{if(('value' in item)&&typeof item.value!=='undefined'&&item.value)ariaLabel=item.value;}if(ariaLabel)if(itemCategory)li.attr('aria-label',`${itemCategory} : ${ariaLabel}`);else{if(typeof item.label!=='undefined')li.attr('aria-label',ariaLabel);}});};const triggerAutocompleteSearch=function(input){const $input=$(input).first();if($input.data(`${ns}TriggerSearch`)!==true){$input.data(`${ns}TriggerSearch`,true);if(('autocomplete' in $input)&&(typeof $input.autocomplete==='function')&&$input.data(`${ns}State`)!=='open')$input.autocomplete('search');$input.data(`${ns}TriggerSearch`,false);}};Drupal.behaviors[ns]={attach:function attach(context){const autocompletes=once(`${ns}Attach`,'input.form-autocomplete',context);if(!autocompletes.length)return;$(autocompletes).each(function(){const $t=$(this);const uiAc=$t.data('ui-autocomplete');if(typeof uiAc==='undefined'||uiAc===null||!uiAc)return;uiAc._renderMenu=renderMenu;const uiWidget=$t.autocomplete('widget');if(uiWidget&&('menu' in uiWidget)&&(typeof uiWidget.menu==='function'))uiWidget.menu('option','items','> :not(.ui-autocomplete-category)');$(once(`${ns}OnFocus`,$t)).on('focus',function(){const val=$(this).val();if(val!==''&&val!==null)triggerAutocompleteSearch(this);});});}};}(jQuery,Drupal,once));;
316(function($,Drupal,once){'use strict';Drupal.behaviors.ahsMediaCustomEmbedModal={attach:function(context,settings){const modalEmbeds=once('ahsMediaCustomEmbedModalInit','[data-media-modal-embed]',context);modalEmbeds.forEach((modalEmbed)=>{const embedMarkup=modalEmbed.getAttribute('data-media-modal-embed');if(embedMarkup){const embedSettings={html:embedMarkup};if(modalEmbed.classList.contains('gallery-widget__video-link'))embedSettings.className='responsive-modal';const galleryId=modalEmbed.getAttribute('data-colorbox-gallery');if(galleryId)embedSettings.rel=galleryId;$(modalEmbed).colorbox($.extend({},settings.colorbox,embedSettings));}});}};})(jQuery,Drupal,once);;
317(function($,Drupal,drupalSettings,window,once){'use strict';const getLinkContext=function(context){let $linkContext=$(context);if(context===window.document){const $site=$linkContext.find('.site').first();if($site.length>0){const $siteChildren=$site.children();const $siteUtility=$siteChildren.filter('.site__utility');$linkContext=$siteChildren.not($siteUtility);const $siteUtilityLinkContext=$siteUtility.children().not('#block-tabs');$linkContext=$linkContext.add($siteUtilityLinkContext.get());}}return $linkContext;};const processLinks=function(context){const $linkContext=getLinkContext(context);if($linkContext.length===0)return $([]);const $links=$(once('AhsMicrositesNonMsPage',$linkContext.find('a'))).not('.js-scroll-to-top').not('[href="#"]').filter('[href*="micro=1"]').not(Drupal.ahsSite.filterForCurrentPageAnchors);if($links.length>0){$links.not('[target="_blank"]').not('[target="_self"]').attr('target','_blank');$links.each(function(){const $link=$(this);let href=$link.attr('href');if(typeof href!=='undefined'){if(href.indexOf('?micro=1')!==-1)href=href.replace('?micro=1','?');else{if(href.indexOf('&micro=1')!==-1)href=href.replace('&micro=1','');}$link.attr('href',href);}});}return $links;};$(window.document).off('ahsContentUpdated.AhsMicrositesNonMsPage').on('ahsContentUpdated.AhsMicrositesNonMsPage',function(event){if(event.target)processLinks($(event.target).parent());});Drupal.behaviors.AhsMicrositesNonMsPage={attach:function(context){processLinks(context);}};})(jQuery,Drupal,window.drupalSettings,window,once);;
318(function($,Drupal,once){'use strict';const ns='ahsSearchLocationSelector';function convertToSelectorValue(value){const valueString=`${value}`;if(valueString.indexOf(':')!==-1)return value;return `node:${value}`;}function convertToLocationId(id){return Drupal.ahsGeoHelper.parseLocationId(id);}function canChange(callerNamespace,$selector,newValue){if(typeof newValue==='undefined'||newValue===null)return false;const changedBy=$selector.data(`${ns}ChangedBy`);if(typeof changedBy!=='undefined'&&changedBy!==null&&callerNamespace!==changedBy){if(changedBy==='__user__')return false;if(changedBy==='ahsAppointmentsListingWidget')return false;}newValue=convertToSelectorValue(newValue);return $selector.find(`option[value="${newValue}"]`).length===1;}function setValue(callerNamespace,locationSelector,newValue,triggerChange,changeEventExtraParams){if(typeof locationSelector==='undefined'||locationSelector===null)return null;const $selector=$(locationSelector).first();if($selector.length===0)return null;const originalValue=$selector.val();let value=originalValue;if(typeof callerNamespace==='undefined'||callerNamespace===null||!callerNamespace)return value;newValue=convertToSelectorValue(newValue);if(canChange(callerNamespace,$selector,newValue)){value=newValue;$selector.data(`${ns}ChangedBy`,callerNamespace);if(newValue!==originalValue){$selector.val(newValue);if(typeof triggerChange==='undefined'||triggerChange===null||triggerChange){const eventParam
318s={length:1};eventParams[callerNamespace]=typeof changeEventExtraParams!=='undefined'?changeEventExtraParams:{};$selector.trigger('change',eventParams);}}}return value;}function findListWrapper($selector){return $selector.closest('.ahs-location-selector__form').siblings('.ahs-location-selector__list');}function findListItems($selector){return findListWrapper($selector).find('.ahs-location-selector__list-item');}function updateWidget(selectorElement){const $selector=$(selectorElement);let selected=$selector.val();if(typeof selected==='undefined'||!selected){selected=null;const $selectedOption=$selector.find('option').first();if($selectedOption.length>0)selected=setValue(ns,$selector,$selectedOption.val(),false);}if(selected!==null){const $items=findListItems($selector);const $date_selector=$items.filter(`[data-location-id="${selected}"]`).data('time-selector');$items.hide(0);$items.filter(`[data-location-id="${selected}"]`).show(0);if($date_selector==='datepicker'){$('.ahs_epic_preferred_dates').show(0);$('#edit-ahs-preferred-date-time').hide(0);}else{$('.ahs_epic_preferred_dates').hide(0);$('#edit-ahs-preferred-date-time').show(0);}}}Drupal[ns]=Drupal[ns]||{};Drupal[ns].setValue=setValue;Drupal[ns].convertToSelectorValue=convertToSelectorValue;Drupal[ns].convertToLocationId=convertToLocationId;Drupal.behaviors[ns]={attach:function(context){$(once(ns,'.ahs-location-selector-form__location',context)).each(function(){updateWidget(this);}).change(function(event,extraParams){if(typeof extraParams==='undefined'||$.isEmptyObject(extraParams))$(this).data(`${ns}ChangedBy`,'__user__');updateWidget(this);});}};}(jQuery,Drupal,once));;
319(function($,Drupal,drupalSettings,_,window,once){"use strict";const ns='ahsAppointmentsListingWidget';Drupal[ns]=(ns in Drupal)?Drupal[ns]:{};$.extend(Drupal[ns],{widgetClass:'ahs-physician-scheduling-placeholder',data:{},renderers:{}});function parseProviderId(val){if(typeof val==='undefined'||val===null)return null;const newVal=parseInt(val,10);return Number.isFinite(newVal)?newVal:null;}function parseReasonId(val){if(typeof val==='undefined'||val===null)return null;const newVal=parseInt(val,10);return Number.isFinite(newVal)?newVal:null;}function parseLocationId(id){return Drupal.ahsGeoHelper.parseLocationId(id);}function isSameDay(date1,date2){return date1.getDate()===date2.getDate()&&date1.getMonth()===date2.getMonth()&&date1.getFullYear()===date2.getFullYear();}function isGreaterDay(date1,date2){if(date1.getFullYear()>date2.getFullYear())return true;if(date1.getFullYear()===date2.getFullYear()){if(date1.getMonth()>date2.getMonth())return true;if(date1.getMonth()===date2.getMonth())if(date1.getDate()>date2.getDate())return true;}return false;}function isLesserDay(date1,date2){if(date1.getFullYear()<date2.getFullYear())return true;if(date1.getFullYear()===date2.getFullYear()){if(date1.getMonth()<date2.getMonth())return true;if(date1.getMonth()===date2.getMonth())if(date1.getDate()<date2.getDate())return true;}return false;}function getSetting(name){if(ns in drupalSettings&&(name in drupalSettings[ns]))return drupalSettings[ns][name];return null;}const providerSelector={ns:`${ns}ProviderSelector`,id:'ahs-time-slot-provider-selector',bodyClass:'ahs-time-slot-provider-selector-is-open',maxHeightFactor:0.98,values:{},defaults:{isOpen:false,isFocusing:false,$element:null,$overlay:null,$allElements:null}};providerSelector.values=$.extend({},providerSelector.values,providerSelector.defaults);providerSelector.resetProperties=function(){const self=this;self.values=$.extend({},self.values,self.defaults);};providerSelector.formatDay=function(date){let month='';switch(date.getMonth()){case 0:month=Drupal.t('January');break;case 1:month=Drupal.t('February');break;case 2:month=Drupal.t('March');break;case 3:month=Drupal.t('April');break;case 4:month=Drupal.t('May');break;case 5:month=Drupal.t('June');break;case 6:month=Drupal.t('July');break;case 7:month=Drupal.t('August');break;case 8:month=Drupal.t('September');break;case 9:month=Drupal.t('October');break;case 10:month=Drupal.t('November');break;case 11:month=Drupal.t('December');break;default:break;}if(!month)return '';return `${month} ${date.getDate()}, ${date.getFullYear()}`;};providerSelector.renderProviderSelectorContent=function(templateVars){if(!('providerItems' in templateVars))return '';return renderStyleTemplate('providerSelector',templateVars);};providerSelector.renderProviderSelectorItem=function(providerId,providerTimeSlotData){if($.isEmptyObject(providerTimeSlotData)||!('url' in providerTimeSlotData)||typeof providerTimeSlotData.url==='undefined'||!providerTimeSlotData.url)return '';const providerData=getProviderData(providerId);if($.isEmptyObject(providerData))return '';const templateVars=$.extend({},providerData,{url:providerTimeSlotData.url});return renderStyleTemplate('providerSelectorItem',templateVars);};providerSelector.create=function(){const self=this;$(`<div id="${self.id}-overlay" class="hidden--important" aria-hidden="true" focusable="false"></div>`).appendTo('body');const $selector=$(`<div id="${self.id}" class="hidden--important" tabindex="-1" aria-modal="true" role="dialog"></div>`);$selector.appendTo('body');return $selector;};providerSelector.buildContent=function(appt,apptDate){const self=this;if(!('time' in appt)||!appt.time)return $([]);if(typeof apptDate==='undefined')return $([]);if(!('provider_slots' in appt)||typeof appt.provider_slots==='undefined'||!$.isPlainObject(appt.provider_slots)||$.isEmptyObject(appt.provider_slots))return $([]);let providerItemsMarkup='';let providerItemsCount=0;$.each(appt.provider_slots,function(providerId,providerTimeSlotData){const itemMarkup=self.renderProviderSelectorItem(providerId,providerTimeSlotData,appt);if(itemMarkup){providerItemsCount+=1;providerItemsMarkup+=itemMarkup;}});if(!providerItemsMarkup)return $([]);const templateVars={day:self.formatDay(apptDate)||'',time:appt.time,providerItems:providerItemsMarkup};templateVars.sub_headline=Drupal.formatPlural(providerItemsCount,'1 physician available for <strong>@time</strong> on <strong>@day</strong>','@count physicians available for <strong>@time</strong> on <strong>@day</strong>
319',{'@day':templateVars.day,'@time':templateVars.time});const content=self.renderProviderSelectorContent(templateVars);if(!content)return $([]);const $content=$(content);const $closeLink=$content.find('.appointment-popup__close-link');$(once(`${ns}CloseOnClick`,$closeLink)).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();event.stopPropagation();self.close(true);});$content.find('ul').first().before(`<span class="visually-hidden">${Drupal.formatPlural(providerItemsCount,'1 item. To interact with this item, press Control-Option-Shift-Right Arrow.','@count items. To interact with these items, press Control-Option-Shift-Right Arrow.')}</span>`);$content.find('li').each(function(index){$(this).attr('aria-label',Drupal.t('Physician @index of @total',{'@index':index,'@total':providerItemsCount}));});return $content;};providerSelector.get=function(create){if(this.values.$element!==null)return this.values.$element;const $selector=$(`#${this.id}`);if($selector.length>0){this.values.$element=$selector;return $selector;}if(typeof create!=='undefined'&&!!create){this.values.$element=this.create();return this.values.$element;}return $selector;};providerSelector.getOverlay=function(){if(this.values.$overlay!==null)return this.values.$overlay;this.values.$overlay=$(`#${this.id}-overlay`);return this.values.$overlay;};providerSelector.setAllElements=function(){this.values.$allElements=this.get().find('*').addBack();return this.values.$allElements;};providerSelector.getAllElements=function(){if(this.values.$allElements!==null)return this.values.$allElements;this.setAllElements();return this.values.$allElements!==null?this.values.$allElements:$([]);};providerSelector.contains=function(element){const self=this;return $(element).is(self.getAllElements());};providerSelector.setDefaultFocus=function(){if(this.values.isFocusing)return;if(!this.values.isOpen)return;const self=this;const $focusTarget=self.get().find('h2').first();if($focusTarget.length>0){self.values.isFocusing=true;Drupal.ahsSite.focus($focusTarget);}};providerSelector.onClickDocument=function(event){const self=this;if(!self.values.isOpen)return;if(!self.contains(event.target))self.close();};providerSelector.onFocusDocument=function(event){const self=this;if(self.values.isOpen&&!self.values.isFocusing&&!self.contains(event.target)){event.preventDefault();event.stopPropagation();this.setDefaultFocus();}};providerSelector.onKeydownDocument=function(event){if(!this.values.isOpen)return;if(event.which===27){event.preventDefault();event.stopPropagation();this.close();}};providerSelector.onKeyupDocument=function(event){if(!this.values.isOpen)return;if(event.which===9)if(!this.contains(event.target))this.close();};providerSelector.position=function(){const self=this;const $selector=self.get();if($selector.hasClass('hidden--important'))return;$selector.position({my:'center center',at:'center center',of:window,collision:'fit'}).css({'max-height':self.maxHeightFactor*(window.innerHeight?window.innerHeight:$(window).height())});};providerSelector.open=function(timeSlotLinkElement){const self=this;const $link=$(timeSlotLinkElement).first();self.close();if($link.length===0)return;const $selector=self.get(true);if($selector.length===0)return;const appt=$link.data(`${ns}Appt`);if(typeof appt==='undefined'||appt===null||!$.isPlainObject(appt))return;const $widget=$link.closest(`.${Drupal[ns].widgetClass}`).first();if($widget.length===0)return;const selectedDate=$widget.data('ahsAppointmentsDateSelected');if(typeof selectedDate==='undefined'||!selectedDate)return;const $content=self.buildContent(appt,selectedDate);if($content.length===0)return;self.values.isOpen=true;$selector.html($content);self.setAllElements();$selector.data(`${ns}CurrentTarget`,$link.get(0));$(window.document).off(`click.${self.ns}`).on(`click.${self.ns}`,function(event){self.onClickDocument(event);}).off(`keydown.${self.ns}`).on(`keydown.${self.ns}`,function(event){self.onKeydownDocument(event);}).off(`keyup.${self.ns}`).on(`keyup.${self.ns}`,function(event){self.onKeyupDocument(event);}).off(`focus.${self.ns}`).on(`focus.${self.ns}`,function(event){self.onFocusDocument(event);});window.setTimeout(function(){$('.ahs-tooltip').remove();},100);self.getOverlay().removeClass('hidden--important').removeAttr('aria-hidden').removeAttr('focusable');$selector.removeClass('hidden--important').removeAttr('aria-hidden').removeAttr('focusable').removeAttr('style');self.position();const $body=$('body');if(self.bodyClass)$body.addClass(self.bodyClass);self.setDefaultFocus();$(window).off(`resize.${self.ns} orientationchange.${self.ns}`).on(`resize.${self.ns} orientationchange.${self.ns}`,_.debounce(function(){self.position();},50));};providerSelector.close=function(focusToLastTarget){const self=this;if(!self.values.isOpen)return;$(window).off(`resize.${self.ns} orientationchange.${self.ns}`);$(window.document).off(`click.${self.ns}
319`).off(`keydown.${self.ns}`).off(`focus.${self.ns}`);const $selector=this.get();if($selector.length===0){self.resetProperties();return;}$selector.addClass('hidden--important').attr('aria-hidden','true').attr('focusable','false').removeAttr('style');self.getOverlay().addClass('hidden--important').attr('aria-hidden','true').attr('focusable','false');if(this.bodyClass)$('body').removeClass(this.bodyClass);const lastTarget=$selector.data(`${ns}CurrentTarget`);$selector.data(`${ns}CurrentTarget`,null);self.resetProperties();if(typeof focusToLastTarget!=='undefined'&&!!focusToLastTarget&&typeof lastTarget!=='undefined'&&lastTarget!==null)Drupal.ahsSite.scrollTop($(lastTarget).closest(`.${Drupal[ns].widgetClass}`),{topBuffer:128,focusElement:lastTarget});};function requestData(uuid,reasonId,timeout_seconds){uuid=parseProviderId(uuid);reasonId=parseReasonId(reasonId);if(uuid===null||reasonId===null)return $.Deferred().resolve({}).promise();const requestUrl=`/ajax/physician-appointments/${encodeURIComponent(uuid)}/${encodeURIComponent(reasonId)}`;let timeout=30000;if(typeof timeout_seconds!=='undefined'&&timeout_seconds!==null){const timeout_ms=parseInt(timeout_seconds,10)*1000;if(timeout_ms&&timeout_ms>0)timeout=timeout_ms;}return $.get({url:requestUrl,dataType:'json',cache:false,timeout});}function getAppointments(){return Drupal[ns].data.appointments||{};}function setProviderAppointments(providerId,appointments){providerId=parseReasonId(providerId);if(providerId===null)return false;if(typeof appointments==='undefined'||!$.isPlainObject(appointments))return false;if(!('appointments' in Drupal[ns].data))Drupal[ns].data.appointments={};if(providerId in Drupal[ns].data.appointments)Drupal[ns].data.appointments[providerId]=$.extend({},Drupal[ns].data.appointments[providerId],appointments);else Drupal[ns].data.appointments[providerId]=appointments;return true;}function getProviderAppointments(providerId,locationId,dateKey){const appts=getAppointments();let providerAppts=null;let locAppts=null;providerId=parseReasonId(providerId);if(providerId===null)return {};if((providerId in appts)&&typeof appts[providerId]!=='undefined'&&$.isPlainObject(appts[providerId]))providerAppts=appts[providerId];if(providerAppts===null)return {};if(typeof locationId==='undefined')return providerAppts;locationId=parseLocationId(locationId);if(locationId===null)return {};if((locationId in providerAppts)&&typeof providerAppts[locationId]!=='undefined'&&$.isPlainObject(providerAppts[locationId]))locAppts=providerAppts[locationId];if(locAppts===null)return {};if((typeof dateKey==='undefined'))return locAppts;return !dateKey||(dateKey in locAppts)?locAppts[dateKey]:{};}function setProviderViewAllAnchors(providerId,anchors){providerId=parseReasonId(providerId);if(providerId===null)return false;if(typeof anchors==='undefined'||!$.isPlainObject(anchors))return false;if(!('viewAllAnchors' in Drupal[ns].data))Drupal[ns].data.viewAllAnchors={};if(providerId in Drupal[ns].data.viewAllAnchors)Drupal[ns].data.viewAllAnchors[providerId]=$.extend({},Drupal[ns].data.viewAllAnchors[providerId],anchors);else Drupal[ns].data.viewAllAnchors[providerId]=anchors;return true;}function getProviderViewAllAnchors(providerId,locationId,dateKey){let providerAnchors=null;let locAnchors=null;providerId=parseReasonId(providerId);const isSingleReturn=typeof dateKey!=='undefined';if(providerId===null)return isSingleReturn?null:{};if(!('viewAllAnchors' in Drupal[ns].data))return isSingleReturn?null:{};if((providerId in Drupal[ns].data.viewAllAnchors)&&typeof Drupal[ns].data.viewAllAnchors[providerId]!=='undefined'&&$.isPlainObject(Drupal[ns].data.viewAllAnchors[providerId]))providerAnchors=Drupal[ns].data.viewAllAnchors[providerId];if(providerAnchors===null)return isSingleReturn?null:{};if(typeof locationId==='undefined')return isSingleReturn?null:providerAnchors;locationId=parseLocationId(locationId);if(locationId===null)return isSingleReturn?null:{};if((locationId in providerAnchors)&&typeof providerAnchors[locationId]!=='undefined'&&$.isPlainObject(providerAnchors[locationId]))locAnchors=providerAnchors[locationId];if(locAnchors===null)return isSingleReturn?null:{};if((typeof dateKey==='undefined'))return isSingleReturn?null:locAnchors;return !dateKey||(dateKey in locAnchors)?locAnchors[dateKey]:null;}function setProvidersData(data){if(typeof data==='undefined'||!$.isPlainObject(data))return false;if(!('providers' in Drupal[ns].data))Drupal[ns].data.providers=data;else Drupal[ns].data.providers=$.extend({},Drupal[ns].data.providers,data);return true;}function getProviderData(providerId){if(!('providers' in Drupal[ns].data))return {};providerId=parseProviderId(providerId);if(providerId===null)return {};return providerId in Drupal[ns].data.providers?Drupal[ns].data.providers[providerId]:{};}function setStyleTemplates(templates){if(typeof templates==='undefined'||!$.isPlainObject(templates))return false;if(!('templates' in Drupal[ns].data))Drupal[ns].data.templates=templates;else Drupal[ns].data.templates=$.extend({},Drupal[ns].data.templates,templates);Drupal[ns].renderers={};return true;}function getStyleTemplate(name){if(!('templates' in Drupal[ns].data)||typeof Drupal[ns].data.templates==='undefined')return '';return (name in Drupal[ns].data.templates)?Drupal[ns].data.templates[name]:'';}function getStyleRenderer(name){if(name in Drupal[ns].renderers)return Drupal[ns].renderers[name];const styleTemplate=getStyleTemplate(name);if(styleTemplate){Drupal[ns].renderers[name]=_.template(styleTemplate);return Drupal[ns].renderers[name];}}
319function renderStyleTemplate(name,templateVars,fillMissing,missingVarNameFilled){if($.isEmptyObject(templateVars))return '';const renderer=getStyleRenderer(name);if(!renderer)return '';try{return renderer(templateVars);}catch(error){fillMissing=typeof fillMissing==='undefined'||!!fillMissing;if(fillMissing&&(error instanceof ReferenceError)&&error.message){const errorMatches=error.message.trim().match(/(\w+)\sis\snot\sdefined/i);if(errorMatches!==null&&errorMatches.length>0){const varNameToFill=errorMatches[1];if(varNameToFill&&(typeof missingVarNameFilled==='undefined'||varNameToFill!==missingVarNameFilled)){templateVars[varNameToFill]='';return renderStyleTemplate(name,templateVars,fillMissing,varNameToFill);}}}return '';}}function getCurrentReasonId(){const activeFacets=Drupal.ahsSearchHelper.getFacets();const activeReasonId=('reason' in activeFacets)?parseReasonId(activeFacets.reason):null;if(activeReasonId!==null)return activeReasonId;if(ns in drupalSettings&&('reasonDefault' in drupalSettings[ns]))return parseReasonId(drupalSettings[ns].reasonDefault);return null;}function canSetLocationDefaultValue(){const facets=Drupal.ahsSearchHelper.getFacets();if(!('availability' in facets)||typeof facets.availability==='undefined'||facets.availability===null)return false;const availabilityValues=Array.isArray(facets.availability)?facets.availability:[facets.availability];return availabilityValues.some((value)=>{if(typeof value!=='string')return false;return value.toLowerCase()==='offers online booking';});}function onLocationSelectorChange(locSelector){const $locSelector=$(locSelector);const $grid=$(locSelector).closest('.physician-block__item-wrapper--grid-right');if($grid.length>0){const uuid=parseProviderId($grid.data('providerId'));if(uuid!==null){let active_loc_id=$locSelector.val();if(typeof active_loc_id!='undefined'){active_loc_id=active_loc_id.split(":")[1];if(active_loc_id!=='')active_loc_id=parseLocationId(active_loc_id);}$grid.find(`.${Drupal[ns].widgetClass}[data-provider-id="${uuid}"]`).each(function(){const $widget=$(this);$widget.data('ahsAppointmentsLocationSelected',active_loc_id);$widget.find(".appointment-location-block").each(function(){const $locBlock=$(this);if($locBlock.data('locationId')===active_loc_id)$locBlock.show(0);else $locBlock.hide(0);});const locData=getProviderAppointments(uuid,active_loc_id);if(!$.isEmptyObject(locData)){let minDate=null;if(('minDate' in locData)&&locData.minDate){minDate=new Date(locData.minDate);$widget.data('ahsAppointmentsDateSelected',minDate);}}renderWidget($widget,active_loc_id);});}}}function hideNavLink(element,targetType){const $element=$(element);if(typeof targetType==='undefined')targetType=$element.is('.datepicker__nav-link--prev')?'prev':'next';const targetLinkSelector=`.datepicker__nav-link--${targetType}`;let $target=[];if($element.is(targetLinkSelector))$target=$element;else $target=$element.closest('.datepicker__nav').find(targetLinkSelector);if($target.length>0){const $targetItem=$target.parent('.datepicker__nav-item');$target.hide(0);$targetItem.hide(0);if($targetItem.siblings('.datepicker__nav-item').is(':hidden'))$targetItem.parent('.datepicker__nav').hide(0);}}function showNavLink(element,targetType){const $element=$(element);if(typeof targetType==='undefined')targetType=$element.is('.datepicker__nav-link--prev')?'prev':'next';const targetLinkSelector=`.datepicker__nav-link--${targetType}`;let $target=[];if($element.is(targetLinkSelector))$target=$element;else $target=$element.closest('.datepicker__nav').find(targetLinkSelector);if($target.length>0)$target.show(0).parent('.datepicker__nav-item').show(0).parent('.datepicker__nav').show(0);}function getPickerFormattedDay(date){if(isSameDay(date,new Date()))return Drupal.t('Today');switch(date.getDay()){case 0:return Drupal.t('Sunday');case 1:return Drupal.t('Monday');case 2:return Drupal.t('Tuesday');case 3:return Drupal.t('Wednesday');case 4:return Drupal.t('Thursday');case 5:return Drupal.t('Friday');case 6:return Drupal.t('Saturday');default:return '';}}function getPickerFormattedMonth(date){switch(date.getMonth()){case 0:return Drupal.t('Jan');case 1:return Drupal.t('Feb');case 2:return Drupal.t('Mar');case 3:return Drupal.t('Apr');case 4:return Drupal.t('May');case 5:return Drupal.t('Jun');case 6:return Drupal.t('Jul');case 7:return Drupal.t('Aug');case 8:return Drupal.t('Sep');case 9:return Drupal.t('Oct');case 10:return Drupal.t('Nov');case 11:return Drupal.t('Dec');default:return '';}}function getPickerDateParts(date){const month=getPickerFormattedMonth(date);return {day:getPickerFormattedDay(date),date:month?`${month} ${date.getDate()}`:''};}function getActiveLocationId($widget){let locId=$widget.data('ahsAppointmentsLocationSelected');if((typeof locId==='undefined')||locId===null){const $grid=$widget.closest('.physician-block__item-wrapper--gri
319d-right');if($grid.length>0){const $locSelector=$grid.find('.ahs-location-selector-form__location');if($locSelector.length>0){const locSelectorId=$locSelector.val();if(typeof locSelectorId!=='undefined'&&locSelectorId!==''){locId=locSelectorId.split(":")[1];locId=parseLocationId(locId);}}else{const $locValue=$grid.find('.ahs-location-selector-form input[name="value"]');if($locValue.length>0){const locValueId=$locValue.val();if(typeof locValueId!=='undefined'&&locValueId!==''){locId=locValueId.split(":")[1];locId=parseLocationId(locId);}}}}if((typeof locId==='undefined')||locId===null){const uuid=parseProviderId($widget.data('providerId'));if(uuid!==null){const providerAppts=getProviderAppointments(uuid);if(!$.isEmptyObject(providerAppts))$.each(providerAppts,function(dataLocId){locId=parseLocationId(dataLocId);return false;});}}}return locId;}function createDateKey(date){let dateMonthFormatted=date.getMonth()+1;if(dateMonthFormatted<10)dateMonthFormatted=`0${dateMonthFormatted}`;let dateDayFormatted=date.getDate();if(dateDayFormatted<10)dateDayFormatted=`0${dateDayFormatted}`;return `${date.getFullYear()}-${dateMonthFormatted}-${dateDayFormatted}`;}function replaceAppointmentTokens(text,appt){return text.replace(/{url}/g,('url' in appt)?appt.url:'').replace(/{time}/g,('time' in appt)?appt.time:'');}function getTimeSlotListTemplate(visitType){const templates=getSetting('listTemplates');if(templates!==null&&(visitType in templates)&&templates[visitType])return templates[visitType];return '<ul class="appointment-block__items hidden"></ul>';}function getTimeSlotItemTemplate(appt){if(('visit_type' in appt)&&appt.visit_type){const templates=getSetting('itemTemplates');if(templates!==null&&(appt.visit_type in templates))return replaceAppointmentTokens(templates[appt.visit_type],appt);}return `<li class="appointment-block__item"><a href="${appt.url}" class="appointment-block__time-slot">${appt.time}</a></li>`;}function createTimeSlotItem(appt){const template=getTimeSlotItemTemplate(appt);if(template){const $item=$(template);if($item.length>0){if(('provider_slots' in appt)&&typeof appt.provider_slots!=='undefined'&&$.isPlainObject(appt.provider_slots)&&!$.isEmptyObject(appt.provider_slots)){const $itemLinks=$item.find('a');$itemLinks.data(`${ns}Appt`,appt);$(once(`${ns}OnClick`,$itemLinks)).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();event.stopPropagation();providerSelector.open(this);});}if(('visit_type' in appt)&&appt.visit_type){const tooltips=getSetting('itemTooltips');if(typeof tooltips!=='undefined'&&(appt.visit_type in tooltips)&&!!tooltips[appt.visit_type])$item.find('a').data('tooltip',replaceAppointmentTokens(tooltips[appt.visit_type],appt));}return $item;}}return $([]);}function sortVisitTypeItemGroups(groups){const sorted=[];$.each(groups,function(visitType,group){if(group.visitType==='video'){sorted.push(group);return false;}});$.each(groups,function(visitType,group){if(group.visitType!=='video')sorted.push(group);});return sorted;}function showLoading(widgetElement){const $widget=$(widgetElement);let $loading=$widget.find('.physician-block__scheduling-loading');if($loading.length)return $loading;$loading=$(`<div class="physician-block__scheduling-loading"><div class="physician-block__scheduling-loading__message">${Drupal.t('Looking for available appointments ...')}</div><div class="physician-block__scheduling-loading__spinner">&nbsp;</div></div>`);$loading.prependTo($widget);return $loading;}function removeLoading(widgetElement){const $widget=$(widgetElement);$widget.find('.physician-block__scheduling-loading').remove();return $widget;}function renderLocationBlockEmptyAppointments(locBlock){const $locBlock=$(locBlock);$locBlock.attr('data-location-has-appts','false');const $apptDates=$locBlock.find('.appointment-location-block-dates');if($apptDates.length>0){$apptDates.addClass('hidden--important');$apptDates.siblings('.appointment-location-block-empty').removeClass('hidden--important');}}function renderWidget($widget,locId,callerOptions){const uuid=parseProviderId($widget.data('providerId'));if(uuid===null)return;
319const providerAppts=getProviderAppointments(uuid);if($.isEmptyObject(providerAppts))return;providerSelector.close();if((typeof locId==='undefined')||locId===null)locId=getActiveLocationId($widget);$widget.data('ahsAppointmentsLocationSelected',locId);const $locBlock=$widget.find(`.appointment-location-block[data-location-id="${locId}"]`);if($locBlock.length===0)return;if(!(locId in providerAppts)){renderLocationBlockEmptyAppointments($locBlock);return;}const options=$.extend({skipDatepickerNavLinks:false,skipUpdateEvent:false},typeof callerOptions!=='undefined'?callerOptions:{});const locData=providerAppts[locId];let minDate=null;if(('minDate' in locData)&&locData.minDate)minDate=new Date(locData.minDate);let maxDate=null;if(('maxDate' in locData)&&locData.maxDate)maxDate=new Date(locData.maxDate);let checkSelectedDateBounds=true;let selectedDate=$widget.data('ahsAppointmentsDateSelected');if(typeof selectedDate==='undefined')if(minDate!==null){selectedDate=minDate;checkSelectedDateBounds=false;}else selectedDate=new Date();if(checkSelectedDateBounds){if(minDate!==null&&isLesserDay(selectedDate,minDate))selectedDate=minDate;if(maxDate!==null&&isGreaterDay(selectedDate,maxDate))selectedDate=maxDate;}$widget.data('ahsAppointmentsDateSelected',selectedDate);const $datepicker=$locBlock.find('.datepicker');if($datepicker.length>0){$datepicker.find('.datepicker__nav').removeClass('hidden');const pickerParts=getPickerDateParts(selectedDate);$datepicker.find('.datepicker__current-day').html(`${pickerParts.day},`);$datepicker.find('.datepicker__current-date').html(` ${pickerParts.date}`);if(!options.skipDatepickerNavLinks){if(minDate===null||isGreaterDay(selectedDate,minDate))showNavLink($datepicker.find('.datepicker__nav-link--prev'));else hideNavLink($datepicker.find('.datepicker__nav-link--prev'));if(maxDate===null||isLesserDay(selectedDate,maxDate))showNavLink($datepicker.find('.datepicker__nav-link--next'));else hideNavLink($datepicker.find('.datepicker__nav-link--next'));}}const $apptBlock=$locBlock.find('.appointment-block');const $lists=$apptBlock.find('.appointment-block__items');const $empty=$apptBlock.find('.appointment-block__empty_text');let $allItem=$apptBlock.find('.appointment-block__view-all-item');$allItem=$allItem.first();const $allLink=$allItem.find('a[href]').first();const dateKey=createDateKey(selectedDate);if($allLink.length>0){const allHref=$allLink.attr('href');let allHrefNew=null;if(typeof allHref!=='undefined'&&!!allHref){let allAnchor=null;const allAnchorMatches=allHref.match(/#([^#]+)/);if(allAnchorMatches.length>0)allAnchor=allAnchorMatches[1];if(allHref.indexOf('appointment_datetime=')!==-1)allHrefNew=allHref.replace(/([?&]appointment_datetime=)[\d-]+/,`$1${dateKey}`);else if(allHref.indexOf('?')!==-1)allHrefNew=allHref.replace(/\?/,`?appointment_datetime=${dateKey}&`);else if(allHref.indexOf('#')!==-1)allHrefNew=allHref.replace('#',`?appointment_datetime=${dateKey}#`);else allHrefNew=`${allHref}?appointment_datetime=${dateKey}`;const allAnchorNew=getProviderViewAllAnchors(uuid,locId,dateKey);const originalAllAnchor=$allLink.data(`${ns}OriginalAnchor`);if(allAnchorNew){allHrefNew=allHrefNew||allHref;if(typeof originalAllAnchor==='undefined'||originalAllAnchor===null)$allLink.data(`${ns}OriginalAnchor`,allAnchor);if(allAnchor)allHrefNew=allHref.replace(`#${allAnchor}`,`#${allAnchorNew}`);else allHrefNew+=`#${allAnchorNew}`;}else if(typeof originalAllAnchor!=='undefined'&&!!originalAllAnchor&&originalAllAnchor!==allAnchor){allHrefNew=allHrefNew||allHref;allHrefNew=allHref.replace(`#${allAnchor}`,`#${originalAllAnchor}`);}else{if(allAnchor){allHrefNew=allHrefNew||allHref;allHrefNew=allHref.replace(`#${allAnchor}`,'#physician-appointment');}}if(allHrefNew)$allLink.attr('href',allHrefNew);}}$lists.remove();const newListGroups={};if(('dates' in locData)&&(dateKey in locData.dates))$.each(locData.dates[dateKey],function(timeKey,appt){if(('visit_type' in appt)&&appt.visit_type){const $newItem=createTimeSlotItem(appt);if($newItem.length>0){if(!(appt.visit_type in newListGroups))newListGroups[appt.visit_type]={visitType:appt.visit_type,items:[]};newListGroups[appt.visit_type].items.push($newItem[0]);}}});const newListGroupsSorted=sortVisitTypeItemGroups(newListGroups);let $newLists=$([]);$.each(newListGroupsSorted,function(listIndex,newListGroup){const listTemplate=getTimeSlotListTemplate(newListGroup.visitType);if(listTemplate){const $list=$(listTemplate);
319if($list.length>0){$list.append(newListGroup.items);$newLists=$newLists.add($list);}}});if($newLists.length>0){$empty.addClass('hidden');$empty.after($newLists);if(!options.skipUpdateEvent)$widget.trigger(`${ns}Updated`);$newLists.removeClass('hidden');}else $empty.removeClass('hidden');}function triggerNavLink(linkElement){const $link=$(linkElement);const dayOffset=$link.hasClass('datepicker__nav-link--prev')?-1:1;const $widget=$link.closest(`.${Drupal[ns].widgetClass}`);if($widget.length===0)return;const uuid=$widget.data('providerId');if(typeof uuid==='undefined'||!uuid)return;const appts=getProviderAppointments(uuid);if($.isEmptyObject(appts))return;let selectedDate=$widget.data('ahsAppointmentsDateSelected');if(typeof selectedDate==='undefined'||selectedDate===null)return;const $list=$('.appointment-block__items',$widget);if($list.length===0)return;const dateNew=new Date(selectedDate.getTime());if((typeof dateNew!=='undefined')&&dateNew!==null){dateNew.setHours(12);dateNew.setMinutes(0);dateNew.setSeconds(0);const activeLocId=getActiveLocationId($widget);if((typeof activeLocId==='undefined')||activeLocId===null)return;if(!(activeLocId in appts)||!('dates' in appts[activeLocId]))return;const apptDates=appts[activeLocId].dates;let dateNewFound=false;let newDateKey;do{dateNew.setDate(dateNew.getDate()+dayOffset);newDateKey=createDateKey(dateNew);if(newDateKey in apptDates)dateNewFound=true;}while(!dateNewFound);if(!dateNewFound)return;let minDate=null;const minDateText='minDate' in appts[activeLocId]?appts[activeLocId].minDate:null;if(minDateText!==null)minDate=new Date(minDateText);else minDate=new Date();let maxDate=null;const maxDateText='maxDate' in appts[activeLocId]?appts[activeLocId].maxDate:null;if(maxDateText!==null)maxDate=new Date(maxDateText);else{if(minDate!==null){maxDate=new Date(minDate.getTime());maxDate.setDate(maxDate.getDate()+30);}}let isMin=false;if((typeof minDate!=='undefined')&&minDate!==null){if(isLesserDay(dateNew,minDate)){hideNavLink($link,'prev');return;}isMin=isSameDay(dateNew,minDate);}let isMax=false;if((typeof maxDate!=='undefined')&&maxDate!==null){if(isGreaterDay(dateNew,maxDate)){hideNavLink($link,'next');return;}isMax=isSameDay(dateNew,maxDate);}$widget.data('ahsAppointmentsDateSelected',dateNew);selectedDate=dateNew;if(isMin&&isMax){hideNavLink($link,'prev');hideNavLink($link,'next');}else{if(isMin)hideNavLink($link,'prev');else showNavLink($link,'prev');if(isMax)hideNavLink($link,'next');else showNavLink($link,'next');}renderWidget($widget,null,{skipDatepickerNavLinks:true});}}function updateWidgetsByElement(elements,html){const $widgets=$(elements);$widgets.each(function(){const $widget=$(this);const uuid=parseProviderId($widget.data('providerId'));if(uuid===null)return true;$widget.html(html);let $callbutton='';$callbutton=$('.ahs-location-callbutton-button__location',$widget);if($callbutton.length)$(once(`${ns}OnClick`,$callbutton)).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();const $t=$(this);const $callthis=$t.closest('.physician-block__item-wrapper--grid-right').find('.ahs-location-selector__list-item:visible').attr('data-location-phone');if(typeof $callthis!=='undefined'&&$callthis!==null&&$callthis){event.stopImmediatePropagation();window.location.href=$callthis;}});const $nav_links=$('.datepicker__nav-link',$widget);if($nav_links.length>0){hideNavLink($nav_links.filter('.datepicker__nav-link--prev'),'prev');$(once(`${ns}NavLinks`,$nav_links)).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();event.stopPropagation();triggerNavLink(this);});}let active_loc_id=null;const $locs=$widget.children('.appointment-location-block');const $grid=$widget.closest('.physician-block__item-wrapper--grid-right');const $locSelector=$grid.find('.ahs-location-selector-form__location');if($locSelector.length>0){const $locSelectorOptions=$locSelector.find('option');if($locSelectorOptions.length>0&&canSetLocationDefaultValue())$locSelectorOptions.each(function(){const locOptionKey=$(this).val();const optionLocId=parseLocationId(locOptionKey);if(optionLocId!==''&&optionLocId!==null){const $loc=$locs.filter(`[data-location-id="${optionLocId}"]`).filter('[data-location-has-appts="true"]');if($loc.length>0){const locId=$loc.data('locationId');if(typeof locId!=='undefined'&&locId!==null){const actualOptionSelected=Drupal.ahsSearchLocationSelector.setValue(ns,$locSelector,locId,true,{skipProcessing:true});if(actualOptionSelected!==null)active_loc_id=parseLocationId(actualOptionSelected);return false;}}}});if(active_loc_id===null){active_loc_id=$locSelector.val();if(typeof active_loc_id!=='undefined'){active_loc_id=active_loc_id.split(":")[1];if(active_loc_id!=='')active_loc_id=parseLocationId(active_loc_id);}}}if((typeof active_loc_id==='undefined')||active_loc_id===null)active_loc_id=getActiveLocationId($widget);$widget.data('ahsAppointmentsLocationSelected',active_loc_id);let selectedDate=null;const locAppts=getProviderAppointments(uuid,active_loc_id);if(!$.isEmptyObject(locAppts)){if(('minDate' in locAppts)&&locAppts.minDate)selectedDate=new Date(locAppts.minDate);else{if('dates' in locAppts)$.each(locAppts.dates,function(dateText){const locDate=new Date(dateText);
319if(locDate){locDate.setHours(12);locDate.setMinutes(0);locDate.setSeconds(0);selectedDate=locDate;return false;}});}if(('dates' in locAppts)){let datesCount=0;$.each(locAppts.dates,function(){datesCount+=1;if(datesCount>1)return false;});if(datesCount===1)hideNavLink($locs.filter(`[data-location-id="${active_loc_id}"]`).find('.datepicker__nav-link--next'),'next');}}if(selectedDate===null)selectedDate=new Date();$widget.data('ahsAppointmentsDateSelected',selectedDate);renderWidget($widget,active_loc_id);if(active_loc_id!==null&&(typeof active_loc_id!=='undefined'))$locs.each(function(){if($(this).data('locationId')===active_loc_id)$(this).show(0);});else{if($locs.length===1)$locs.first().show(0);}$widget.removeClass('hidden');});}function onIntersection(widget){const $widget=$(widget);const reasonId=$widget.data(`${ns}ReasonId`);const uuid=parseProviderId($widget.data('providerId'));if(typeof reasonId==='undefined'||reasonId===null||uuid===null){$widget.addClass('hidden');return;}showLoading($widget);$widget.removeClass('hidden');const timeout=$widget.data('ajaxTimeout');requestData(uuid,reasonId,timeout).done(function(response){removeLoading(widget);if(typeof response!=='object')return;if('appointments' in response)setProviderAppointments(uuid,response.appointments);if('providers' in response)setProvidersData(response.providers);if('viewAllAnchors' in response)setProviderViewAllAnchors(uuid,response.viewAllAnchors);if('templates' in response)setStyleTemplates(response.templates);if('widgetHtml' in response)updateWidgetsByElement(widget,response.widgetHtml);}).always(function(){removeLoading(widget);});}let elementTimers=[];function removeElementTimer(element){const newTimers=[];elementTimers.forEach((elementTimer)=>{if(elementTimer.element!==element)newTimers.push(elementTimer);});elementTimers=newTimers;}function observerCallback(entries,triggeringObserver){entries.forEach((entry)=>{const target=entry.target;let targetTimer=null;elementTimers.forEach((elementTimer)=>{if(targetTimer===null&&elementTimer.element===target)targetTimer=elementTimer;});if(entry.isIntersecting){if(targetTimer===null){const timeoutId=setTimeout(()=>{triggeringObserver.unobserve(target);removeElementTimer(target);onIntersection(target);},500);elementTimers.push({element:target,timeoutId});}}else{if(targetTimer!==null){clearTimeout(targetTimer.timeoutId);removeElementTimer(target);}}});}function createObserver(widget){if(!('IntersectionObserver' in window))return;const observer=new IntersectionObserver(observerCallback,{root:null,rootMargin:"0px 0px 75px 0px",threshold:0});observer.observe(widget);}function updateWidgets(widgets){if(widgets.length===0)return;const reasonId=getCurrentReasonId();if(typeof reasonId==='undefined'||reasonId===null)return;const pendingWidgets=once(`${ns}WaypointInit`,widgets);pendingWidgets.forEach((widget)=>{$(widget).data(`${ns}ReasonId`,reasonId).removeClass('hidden');createObserver(widget);});}Drupal.behaviors[ns]={attach:function(context){const widgets=once(ns,`.${Drupal[ns].widgetClass}`,context);if(widgets.length>0)updateWidgets(widgets);$(once(ns,'.ahs-location-selector-form__location',context)).change(function(event,extraParams){if(typeof extraParams==='undefined'||($.isPlainObject(extraParams)&&(ns in extraParams)&&(typeof extraParams[ns].skipProcessing==='undefined'||!extraParams[ns].skipProcessing)))onLocationSelectorChange(this);});}};})(jQuery,Drupal,window.drupalSettings,_,window,once);;
320(function($,Drupal){'use strict';const showElements=function($elements){$elements.removeClass('visually-hidden').prop('disabled',false).removeAttr('tabindex').removeAttr('aria-hidden');};const hideElements=function($elements){$elements.addClass('visually-hidden').prop('disabled',true).attr('tabindex','-1').attr('aria-hidden','true');};Drupal.ahsRequestApptHelper=Drupal.ahsRequestApptHelper||{};Drupal.ahsRequestApptHelper.showCta=function(locId,context){if(typeof context==='undefined')return;const $context=$(context);const $buttons=$context.find('.request-appt-location-button');const $messages=$context.find('.request-appt-location-message');let locIdText=null;if(typeof locId!=='undefined'&&locId!==null){locIdText=`${locId}`;if(locIdText.indexOf('node:')===0)locIdText=locIdText.substring(5);}if(!locIdText){hideElements($buttons);hideElements($messages);return;}const targetClass=`request-appt-location--${locIdText}`;const $targetButtons=$buttons.filter(`.${targetClass}`);$targetButtons.each(function(){const $button=$(this);const href=$button.attr('href');showElements($button);if(typeof href!=='undefined'){const newHref=href.replace(/([&?])location=[^&]*(&|$)/gi,`$1location=${locIdText}$2`);if(newHref!==href)$button.attr('href',newHref);}});hideElements($buttons.not($targetButtons));const $targetMessages=$messages.filter(`.${targetClass}`);
320if($targetButtons.length===0||$targetMessages.length>0)showElements($targetMessages);else hideElements($messages);};Drupal.ahsRequestApptHelper.focus=function(target,scrollTarget){const $target=$(target).first();if($target.length>0){$target.not('[tabindex]').not('input').attr('tabindex','-1');$target.focus();let $scrollTarget=$target;let topBuffer;if(typeof scrollTarget!=='undefined'&&scrollTarget!==null){$scrollTarget=$(scrollTarget).first();if($scrollTarget.length===0)$scrollTarget=$target;else topBuffer=8;}this.scrollTop($scrollTarget,{topBuffer});}};Drupal.ahsRequestApptHelper.scrollTop=function(target,topBuffer){Drupal.ahsSite.scrollTop(target,{topBuffer,noFocus:true,duration:250});};}(jQuery,Drupal));;
321(function($,Drupal,window,once){'use strict';const ns='ahsPhysicianRequestApptCard';Drupal.behaviors[ns]={attach:function(context){$(once(`${ns}Wrapper`,'.physician-block__item-wrapper',context)).each(function(){const $wrapper=$(this);const $selector=$wrapper.find('.ahs-location-selector-form__location');if($selector.length>0){$selector.data('ahsPhysicianBlockItemWrapper',$wrapper[0]);Drupal.ahsRequestApptHelper.showCta($selector.val(),$wrapper[0]);$selector.on('change',function(){const $t=$(this);const tWrapper=$t.data('ahsPhysicianBlockItemWrapper');if(typeof tWrapper!=='undefined'&&tWrapper!==null)Drupal.ahsRequestApptHelper.showCta($t.val(),tWrapper);});$(once(`${ns}PhoneClick`,$wrapper.find('.ahs-location-callbutton-button__location'))).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();let callHref=null;const $thisWrapper=$(this).closest('.physician-block__item-wrapper');if($thisWrapper.length>0){callHref=$thisWrapper.find('.ahs-location-selector__list-item').filter(':visible').first().data('locationPhone');if(typeof callHref!=='undefined'&&callHref!==null&&callHref.length>0){event.stopImmediatePropagation();window.location.href=callHref;}}});}else{const $phone=$wrapper.find('.location-block').find('.telephone').first();if($phone.length>0)$(once(`${ns}PhoneClick`,$wrapper.find('.ahs-location-callbutton-button__location'))).data(`${ns}PhoneElement`,$phone.get(0)).on('click keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;event.preventDefault();const phoneElement=$(this).data(`${ns}PhoneElement`);if(typeof phoneElement!=='undefined'&&phoneElement!==null){const callHref=$(phoneElement).attr('href');if(typeof callHref!=='undefined'&&callHref!==null&&callHref.length>0){event.stopImmediatePropagation();window.location.href=callHref;}}});}});}};}(jQuery,Drupal,window,once));;
322(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;const displacingElements=document.querySelectorAll(`[data-offset-${edge}]`);const n=displacingElements.length;for(let i=0;i<n;i++){const el=displacingElements[i];if(el.style.display==='none')continue;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);}return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);;
323(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));}})(jQuery,Drupal,once);;
324class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,dialogClass:'',buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false});};dialog.showModal=()=>{openDialog({modal:true});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);;
325(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);;
326(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);;
327(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);;
328(function($,Drupal,drupalSettings,once){'use strict';const getModalContent=function(){if(typeof drupalSettings!=='undefined'&&('ahsProviderNetworksCareHighlightsModal' in drupalSettings)&&typeof drupalSettings.ahsProviderNetworksCareHighlightsModal!=='undefined'&&('markup' in drupalSettings.ahsProviderNetworksCareHighlightsModal)&&drupalSettings.ahsProviderNetworksCareHighlightsModal.markup!=='undefined')return drupalSettings.ahsProviderNetworksCareHighlightsModal.markup.trim();return '';};Drupal.behaviors.ahsProviderNetworksCareHighlightsModal={attach:function(context,settings){const triggers=once('ahsProviderNetworksCareHighlightsModalAttach','.care-highlights-modal-trigger',context);if(!triggers.length)return;
328triggers.forEach((trigger)=>{trigger.setAttribute('data-modal-id','provider-networks-care-highlights-modal-container');trigger.setAttribute('data-modal-trigger',true);trigger.setAttribute('data-modal-content-by-event',true);trigger.setAttribute('data-modal-title',Drupal.t('Provider Networks'));trigger.setAttribute('data-modal-classes','care-highlights-modal--provider-networks');trigger.addEventListener('ahs-modal-set-content',function(){Drupal.ahsThemeModal.setModalContent(getModalContent());});Drupal.behaviors.ahsThemeModal.attach(trigger.parentElement||window.document,settings);});}};})(jQuery,Drupal,window.drupalSettings,once);;
329(function(Drupal){'use strict';let observer=null;let callbacks=[];const canLazyLoad='IntersectionObserver' in window;Drupal.ahsWaypoints=Drupal.ahsWaypoints||{};const app=Drupal.ahsWaypoints;if(canLazyLoad){const observerCallback=function(entries,triggeringObserver){entries.forEach((entry)=>{if(entry.isIntersecting){const target=entry.target;let shouldUnobserve=true;const pendingCallbacks=[];const newCallbacks=[];callbacks.forEach((cb)=>{if(cb.el===target){pendingCallbacks.push(cb);if(cb.persistent){newCallbacks.push(cb);shouldUnobserve=false;}}else newCallbacks.push(cb);});callbacks=newCallbacks;if(pendingCallbacks.length===0||shouldUnobserve)triggeringObserver.unobserve(target);if(pendingCallbacks.length>0){pendingCallbacks.forEach((cb)=>{cb.fn(target,triggeringObserver);});if(shouldUnobserve)triggeringObserver.unobserve(target);}}});};observer=new IntersectionObserver(observerCallback,{root:null,rootMargin:"0px 0px 75px 0px",threshold:0});}app.createWaypoint=function(element,callback,disableFallback=false,persistent=false){if(canLazyLoad&&observer!==null){callbacks.push({fn:function(cbElement,cbObserver){window.setTimeout(()=>{callback.call(cbElement,cbElement,cbObserver);},1);},el:element,persistent});observer.observe(element);}else{if(!disableFallback)callback.call(element);}};})(Drupal);;
330(function($,Drupal,drupalSettings,window,once){'use strict';const ns='ahsGeolocationDistances';Drupal[ns]=(ns in Drupal)?Drupal[ns]:{};const app=Drupal[ns];$.extend(Drupal[ns],{distanceClass:'ahs-geolocation-distance',geoCenterInputElement:null,geoCenter:null});app.distanceTextTemplate=Drupal.ahsGeoHelper.distanceTextTemplate;app.getBlockType=function(location){const $location=$(location);let blockType=$location.data(`${ns}LocationBlockType`);if(blockType)return blockType;blockType=$location.hasClass('location-block--physician-search')?'physician_search':'default';$location.data(`${ns}LocationBlockType`,blockType);return blockType;};app.getDistanceSelector=function(location){if(this.getBlockType(location)==='physician_search')return '.physician-block__distance';return '.location-block__distance';};app.getContainer=function(location){const $location=$(location);if(this.getBlockType($location)==='physician_search')return $location.closest('.physicians-search-block__item');return $location;};app.getGeoCenterInputElement=function(){if(this.geoCenterInputElement!==null)return this.geoCenterInputElement;const $input=$('.views-exposed-form').find('.latlng-source');if($input.length>0)this.geoCenterInputElement=$input.get(0);return this.geoCenterInputElement;};app.getGeoCenterInput$=function(){const element=this.getGeoCenterInputElement();return element!==null?$(element):$([]);};app.getGeoCenterInputGeolocation=function(){const $geoCenterInput=this.getGeoCenterInput$();if($geoCenterInput.length>0){const val=$geoCenterInput.first().val();if(val){const latlngParts=val.split(',');if(latlngParts.length===2)return {latitude:Drupal.ahsGeoHelper.preciseGeolocation(latlngParts[0].trim()),longitude:Drupal.ahsGeoHelper.preciseGeolocation(latlngParts[1].trim())};}}return {};};app.getGeoCenter=function(){const self=this;if(self.geoCenter!==null)return $.Deferred().resolve(self.geoCenter).promise();if(self.getGeoCenterInput$().length>0){const inputGeoCenter=self.getGeoCenterInputGeolocation();if(!Drupal.ahsGeoHelper.locationIsEmpty(inputGeoCenter)){self.geoCenter=inputGeoCenter;return $.Deferred().resolve(self.geoCenter).promise();}}const lastKnownGeolocation=self.getLastKnownGeolocation();if(lastKnownGeolocation!==null){self.geoCenter=lastKnownGeolocation;return $.Deferred().resolve(self.geoCenter).promise();}const deferred=$.Deferred();Drupal.ahsJsGeolocationClient.requestClientLocation().done(function(geoPosition,geoCenter){deferred.resolve(geoCenter).promise();});return deferred;};app.calcDistance=function(location,otherLocation){return Drupal.ahsGeoHelper.calcDistance(location,otherLocation);};app.renderDistance=function(location){if(this.getBlockType(location)==='physician_search')return `<p class="physician-block__distance u-body-copy ${app.distanceClass}"></p>`;return `<div class="location-block__distance h3 ${app.distanceClass}"></div>`;};app.findLocations=function(context,onceId){const self=this;if(typeof context==='undefined')context=window.document;let locations=[];if(onceId)locations=once(onceId,'.location-block',context);else locations=context.querySelectorAll('.location-block');if(locations.length===0)return $([]);return $(locations).filter(function(){const $location=$(this);if($location.is('.location-block--physician-appointment'))return false;if($location.is('.location-block--map-widget-list-item'))return false;const distanceSelector=self.getDistanceSelector($location);const $container=self.getContainer($location);if(distanceSelector&&$container.find(distanceSelector).length>0)return false;return $location.find('.address').filter('[data-lat]').filter('[data-lng]').length>0;});};app.getLastKnownGeolocation=function(){return Drupal.ahsJsGeolocationClient.getLastKnownLocation();};app.reactGeolocation=function(fromGeolocation){const self=this;if(!Drupal.ahsGeoHelper.locationIsEmpty(self.getGeoCenterInputGeolocation()))return;self.geoCenter=fromGeolocation;self.updateLocationDistances(fromGeolocation,undefined,undefined);};
330app.onGeolocationSuccess=function(position,geolocation){this.reactGeolocation(geolocation);};app.onGeolocationDenied=function(error){if(error.code===error.PERMISSION_DENIED||Drupal.ahsJsGeolocationClient.isDenied())this.reactGeolocation({});};app.formatDistance=function(d){return Drupal.ahsGeoHelper.formatDistance(d);};app.geolocationKey=function(geolocation){let key='__empty__';if(!Drupal.ahsGeoHelper.locationIsEmpty(geolocation))key=`${geolocation.latitude.toFixed(6)}:${geolocation.longitude.toFixed(6)}`;return key;};app.updateLocationDistances=function(fromGeolocation,context,locations){const self=this;const fromGeolocationIsEmpty=Drupal.ahsGeoHelper.locationIsEmpty(fromGeolocation);const geoCenterKey=self.geolocationKey(fromGeolocation);if(typeof context==='undefined')context=window.document;let $locations;if(typeof locations!=='undefined')$locations=$(locations);else $locations=self.findLocations(context);const $updates=$(once(`${ns}UpdatedDistances${geoCenterKey}`,$locations));$updates.each(function(){const $location=$(this);const $address=$location.find('.address').first();const geo={lat:$address.data('lat'),lng:$address.data('lng')};if(typeof geo.lat==='undefined'||geo.lat===null)return true;if(typeof geo.lng==='undefined'||geo.lng===null)return true;let distance=null;let distanceFormatted='';let distanceElementNeedsInserted=false;const distanceSelector=self.getDistanceSelector($location);let $distanceElement=distanceSelector?$location.find(distanceSelector):$([]);if($distanceElement.length===0){$distanceElement=$(self.renderDistance($location));distanceElementNeedsInserted=true;}else{if(!$distanceElement.hasClass(self.distanceClass))return true;}if(!fromGeolocationIsEmpty){distance=self.calcDistance(geo,fromGeolocation);if(distance!==null)distanceFormatted=self.formatDistance(distance);}$location.data(`${ns}Distance`,distance);if(distanceFormatted){$distanceElement.html(distanceFormatted);$distanceElement.removeClass('visually-hidden--reduced');}else{$distanceElement.empty();$distanceElement.addClass('visually-hidden--reduced');}if(distanceElementNeedsInserted){const $addressContainer=$address.closest('.location-block__address');if($addressContainer.length>0){const $contactContainer=$addressContainer.closest('.location-block__contact');if($contactContainer.length>0)$distanceElement.insertBefore($contactContainer);else $distanceElement.insertBefore($addressContainer);}}});};app.init=function(context){const self=this;const $locations=self.findLocations(context,`${ns}Init`);const locationElements=$locations.get();if($locations.length>0){let $waypointElement=null;$locations.each(function(){const $loc=$(this);if($loc.is(':visible')){$waypointElement=$loc;return false;}if($loc.parent('.location-content').length>0){const $map=$loc.closest('.geolocation-common-map');if($map.length>0){$waypointElement=$map;return false;}}const $widget=$loc.closest('section');if($widget.length>0){$waypointElement=$widget;return false;}});if($waypointElement===null)$waypointElement=$locations.first();if($waypointElement&&$waypointElement.length>0)Drupal.ahsWaypoints.createWaypoint($waypointElement.get(0),function(){self.getGeoCenter().done(function(geoCenter){if(geoCenter!==null&&!Drupal.ahsGeoHelper.locationIsEmpty(geoCenter))self.updateLocationDistances(geoCenter,context,$(locationElements));});});}};Drupal.ahsJsGeolocationClient.addGeolocationResultSuccessCallback(function(position,geolocation){app.onGeolocationSuccess(position,geolocation);});Drupal.ahsJsGeolocationClient.addGeolocationResultErrorCallback(function(error){app.onGeolocationDenied(error);});$(window.document).off(`ahsContentUpdated.${ns}`).on(`ahsContentUpdated.${ns}`,function(event){if(event.target)app.init(event.target.parentElement||window.document);});Drupal.behaviors[ns]={attach:function(context){app.init(context);}};}(jQuery,Drupal,window.drupalSettings,window,once));;
331(function($,Drupal){"use strict";Drupal.ahsViewsHelper=Drupal.ahsViewsHelper||{};Drupal.ahsViewsHelper.findAjaxViewsInstanceByExposedForm=function(exposedForm){if(!('views' in Drupal)||!('instances' in Drupal.views)||typeof Drupal.views.instances==='undefined'||!$.isPlainObject(Drupal.views.instances)||$.isEmptyObject(Drupal.views.instances))return null;const $exposedForm=$(exposedForm);if($exposedForm.length!==1)return null;const exposedFormElement=$exposedForm.get(0);let foundViewInstance=null;$.each(Drupal.views.instances,(viewsInstanceKey,viewsInstance)=>{if(foundViewInstance===null&&('$exposed_form' in viewsInstance)&&viewsInstance.$exposed_form.length>
3310)viewsInstance.$exposed_form.get().forEach((viewsInstanceExposedFormElement)=>{if(foundViewInstance===null&&viewsInstanceExposedFormElement===exposedFormElement)foundViewInstance=viewsInstance;});});return foundViewInstance;};Drupal.ahsViewsHelper.findAjaxViewsInstanceByViewIds=function(viewId,viewDisplayId,viewContext,exposedFormContext){if(!('views' in Drupal)||!('instances' in Drupal.views)||typeof Drupal.views.instances==='undefined'||!$.isPlainObject(Drupal.views.instances)||$.isEmptyObject(Drupal.views.instances))return {};const $viewContext=typeof viewContext!=='undefined'&&viewContext!==null&&viewContext!==window.document?$(viewContext):null;const $exposedFormContext=typeof exposedFormContext!=='undefined'&&exposedFormContext!==null&&exposedFormContext!==window.document?$(exposedFormContext):null;let targetViewsInstance={};$.each(Drupal.views.instances,function(viewsInstanceKey,viewsInstance){if(('settings' in viewsInstance)&&viewId===viewsInstance.settings.view_name&&viewDisplayId===viewsInstance.settings.view_display_id&&('$view' in viewsInstance)&&(typeof viewsInstance.$view!=='undefined')&&viewsInstance.$view!==null&&viewsInstance.$view.length>0){if($viewContext!==null&&$viewContext.find(viewsInstance.$view).length===0)return true;if($exposedFormContext!==null&&(!('$exposed_form' in viewsInstance)||typeof viewsInstance.$exposed_form==='undefined'||$exposedFormContext.find(viewsInstance.$exposed_form).length===0))return true;targetViewsInstance=viewsInstance;return false;}});return targetViewsInstance;};Drupal.ahsViewsHelper.findAjaxViewsInstanceByViewElement=function(element){const $element=$(element);if($element.length===0)return {};if(!('views' in Drupal)||!('instances' in Drupal.views)||typeof Drupal.views.instances==='undefined')return {};let targetViewInstance={};const $view=$element.closest('.view');if($view!==null&&$view.length>0)$.each(Drupal.views.instances,function(instanceKey,viewsInstance){if(('$view' in viewsInstance)&&viewsInstance.$view.length>0&&('settings' in viewsInstance)&&('view_dom_id' in viewsInstance.settings)&&viewsInstance.settings.view_dom_id&&$view.is(`.js-view-dom-id-${viewsInstance.settings.view_dom_id}`)){targetViewInstance=viewsInstance;return false;}});return targetViewInstance;};Drupal.ahsViewsHelper.isExposedForm=function(element){return $(element).is('[id^="views-exposed-form-"]');};Drupal.ahsViewsHelper.exposedFormSelector=function(viewId,viewDisplayId){return `[id^="views-exposed-form-${viewId.replace(/_/g,'-')}-${viewDisplayId.replace(/_/g,'-')}"]`;};Drupal.ahsViewsHelper.findExposedFormsBySelector=function(selector,context){if(typeof context==='undefined')context=window.document;return $(context).find('form').filter(selector);};Drupal.ahsViewsHelper.findExposedFormByViewIds=function(viewId,viewDisplayId,context){const self=this;let hasContext=true;if(typeof context==='undefined'){hasContext=false;context=window.document;}const $context=$(context);if(hasContext){const contextViewInstance=self.findAjaxViewsInstanceByViewIds(viewId,viewDisplayId,null,$context);if(!$.isEmptyObject(contextViewInstance))if(('$exposed_form' in contextViewInstance)&&typeof contextViewInstance.$exposed_form!=='undefined')return contextViewInstance.$exposed_form;}const viewInstance=self.findAjaxViewsInstanceByViewIds(viewId,viewDisplayId);if(viewInstance)if(('settings' in viewInstance)&&typeof viewInstance.settings!=='undefined'&&!$.isEmptyObject(viewInstance.settings)&&('view_exposed_form_selector' in viewInstance.settings)&&!!viewInstance.settings.view_exposed_form_selector)return self.findExposedFormsBySelector(viewInstance.settings.view_exposed_form_selector,$context).first();return self.findExposedFormsBySelector(self.exposedFormSelector(viewId,viewDisplayId),$context).first();};Drupal.ahsViewsHelper.findExposedFormByViewElement=function(element,fallbackFormSelector){const $element=$(element);const $view=$element.closest('.view');const viewInstance=Drupal.ahsViewsHelper.findAjaxViewsInstanceByViewElement($view);if(!$.isEmptyObject(viewInstance)&&('$exposed_form' in viewInstance)&&typeof viewInstance.$exposed_form!=='undefined')return viewInstance.$exposed_form;if(typeof fallbackFormSelector!=='undefined'&&!!fallbackFormSelector)return $(fallbackFormSelector);return $([]);};})(jQuery,Drupal,window);;
332(function($,Drupal,once,window){'use strict';let isLoading=null;function getLoadingStorageFlag(){return Drupal.ahsSite.localStorageIsAvailable()?window.localStorage.getItem('ah.provider_search_is_loading'):'';}function setLoadingStorageFlag(){if(Drupal.ahsSite.localStorageIsAvailable())try{window.localStorage.setItem('ah.provider_search_is_loading','1');}catch(e){}}function clearLoadingStorageFlag(){if(Drupal.ahsSite.localStorageIsAvailable())try{window.localStorage.removeItem('ah.provider_search_is_loading');}catch(e){}}function hideModalLoadingOverlay(){Drupal.ahsSite.hideModalLoadingOverlay('ahs-provider-search-page__loading-overlay');}function showModalLoadingOverlay(){Drupal.ahsSite.showModalLoadingOverlay('ahs-provider-search-page__loading-overlay',Drupal.t('Please wait while we update your results for you ...'));window.setTimeout(function(){hideModalLoadingOverlay();},5000);}function setLoadingState(state=true){const wasLoading=isLoading;isLoading=state;if(isLoading){if(!wasLoading){setLoadingStorageFlag();Drupal.ahsSite.disableOnloadAccessibilityActions();showModalLoadingOverlay();}}else{if(wasLoading===null||wasLoading){clearLoadingStorageFlag();hideModalLoadingOverlay();}}}const onFilterChangeThrottled=Drupal.debounce(function(event){let canShowLoading=true;const target=event&&event.target;const form=target&&typeof target.closest==='function'?target.closest('form'):null;if(form){const ajaxViewInstance=Drupal.ahsViewsHelper.findAjaxViewsInstanceByExposedForm(form);canShowLoading=!ajaxViewInstance;}if(canShowLoading)setLoadingState();},50);Drupal.behaviors.ahsProviderSearchPage={attach:function(context){const refreshing=context===window.document||context.classList.contains('view');const viewsExposedForms=once('ahsProviderSearchPageViewsExposedForm','.views-exposed-form',context);if(refreshing&&getLoadingStorageFlag()==='1'){let focusElement=null;if(viewsExposedForms.length>0)focusElement=viewsExposedForms[0];else{const viewResult=document.querySelector('.view-ahs-physician-search');if(viewResult)focusElement=viewResult;}if(focusElement){const scrollOptions={noFocus:true};Drupal.ahsSite.scrollTop(focusElement,scrollOptions);}}if(once('ahsProviderSearchPageOnPageLoad','html').length)$(document).on('facets_filter',onFilterChangeThrottled);
332if(viewsExposedForms.length)viewsExposedForms.forEach((viewsExposedForm)=>{const sorts=once('ahsProviderSearchPageSort','[name="sort_bef_combine"]:not(.hidden)',viewsExposedForm);if(sorts.length>0)sorts.forEach((sort)=>{sort.addEventListener('change',onFilterChangeThrottled);});const submitButtons=once('ahsProviderSearchPageSort','input.form-submit:not(.hidden)',viewsExposedForm);if(submitButtons.length>0)submitButtons.forEach((submitButton)=>{submitButton.addEventListener('click',onFilterChangeThrottled);});});const clearFacetBlocks=once('ahsProviderSearchPageClearFacetBlock','.ahs-search-facets-clear-all-block',context);if(clearFacetBlocks.length)clearFacetBlocks.forEach((clearFacetBlock)=>{const links=once('ahsProviderSearchPageClearFacetLink','a',clearFacetBlock);if(links.length>0)links.forEach((link)=>{link.addEventListener('click',onFilterChangeThrottled);});});if(refreshing)setLoadingState(false);}};})(jQuery,Drupal,once,window);;
333/*! js-Offcanvas - v1.2.9 - 2019-01-22
334jQuery Accesible Offcanvas Panels
335 * https://github.com/vmitsaras/js-offcanvas
336 * Copyright (c) 2019 Vasileios Mitsaras (@vmitsaras)
337 * MIT License */
338!function(a){"use strict";var b=a.utils||{};b.classes={hiddenVisually:"u-hidden-visually",modifier:"--",isActive:"is-active",isClosed:"is-closed",isOpen:"is-open",isClicked:"is-clicked",isAnimating:"is-animating",isVisible:"is-visible",hidden:"u-hidden"},b.keyCodes={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},b.a11yclick=function(a){var c=a.charCode||a.keyCode,d=a.type;return"click"===d||"keydown"===d&&(c===b.keyCodes.SPACE||c===b.keyCodes.ENTER||void 0)},b.a11yclickBind=function(a,c,d){a.on("click."+d+" keydown."+d,function(e){b.a11yclick(e)&&(e.preventDefault(e),c&&"function"==typeof c&&c.call(),a.trigger("clicked."+d))})},b.supportTransition="transition"in document.documentElement.style||"WebkitTransition"in document.documentElement.style,b.whichTransitionEvent=function(){var a=document.createElement("fakeelement"),b={transition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var c in b)if(void 0!==a.style[c])return b[c]},b.transEndEventName=b.whichTransitionEvent(),b.onEndTransition=function(a,c){var d=function(a){if(b.supportTransition){if(a.target!=this)return;this.removeEventListener(b.transEndEventName,d)}c&&"function"==typeof c&&c.call()};b.supportTransition?a.addEventListener(b.transEndEventName,d):d()},b.createModifierClass=function(a,c){return a+b.classes.modifier+c},b.cssModifiers=function(a,c,d){for(var e=a.split(","),f=0,g=e.length;f<g;f++)c.push(b.createModifierClass(d,e[f].trim()))},b.getMetaOptions=function(a,b,c){var d="data-"+b,e=d+"-options",f=a.getAttribute(d)||a.getAttribute(e);try{return f&&JSON.parse(f)||{}}catch(g){return void(console&&console.error("Error parsing "+d+" on "+a.className+": "+g))}},a.utils=b}(this),function(a,b){"use strict";var c="trab-tab",d=c+"-component";a.componentNamespace=a.componentNamespace||{};var e=a.componentNamespace.TrapTabKey=function(a,c){if(!a)throw new Error("Element required to initialize object");this.element=a,this.$element=b(a),c=c||{},this.options=b.extend({},this.defaults,c)};e.prototype.init=function(){this.$element.data(d)||this.$element.data(d,this)},e.prototype.bindTrap=function(){var a=this;this.$element.on("keydown."+c,function(b){a._trapTabKey(a.$element,b)})},e.prototype.unbindTrap=function(){this.$element.off("keydown."+c)},e.prototype.giveFocus=function(){var a=this,b=a.options,c=a.$element.find("*"),d=a.$element.find("[data-focus]");d.length?d.first().focus():c.filter(b.focusableElementsString).filter(":visible").first().focus()},e.prototype._trapTabKey=function(a,b){var c=this,d=c.options;if(9==b.which){var e,f=a.find("*");e=f.filter(d.focusableElementsString).filter(":visible");var g;g=jQuery(":focus");var h;h=e.length;var i;i=e.index(g),b.shiftKey?0==i&&(e.get(h-1).focus(),b.preventDefault()):i==h-1&&(e.get(0).focus(),b.preventDefault())}},e.prototype.defaults={focusableElementsString:"a[href], area[href], input
338:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]"},e.defaults=e.prototype.defaults}(this,jQuery),function(a,b){"use strict";var c="button",d=c+"-component",e=a.utils,f={iconOnly:"icon-only",withIcon:"icon",toggleState:"toggle-state",showHide:"visible-on-active"};a.componentNamespace=a.componentNamespace||{};var g=a.componentNamespace.Button=function(a,d){if(!a)throw new Error("Element required to initialize object");this.element=a,this.$element=b(a),this.options=d=d||{},this.metadata=e.getMetaOptions(this.element,c),this.options=b.extend({},this.defaults,this.metadata,d)};g.prototype.init=function(){this.$element.data(d)||(this.$element.data(d,this),this.hasTitle=!!this.$element.attr("title"),this.$element.trigger("beforecreate."+c),this.isPressed=!1,this.isExpanded=!1,this._create())},g.prototype._create=function(){var a=this.options,d=[a.baseClass+"__text"];this._buttonClasses=[a.baseClass],null===a.label&&(a.label=this.$element.html()),a.wrapText&&(this.$buttonText=b("<span></span>").html(a.label).appendTo(this.$element.empty())),a.icon&&(this.$buttonIcon=b("<span class='"+a.iconFamily+" "+e.createModifierClass(a.iconFamily,a.icon)+"'></span>").prependTo(this.$element),this._buttonClasses.push(e.createModifierClass(a.baseClass,f.withIcon)),a.iconActive&&(a.toggle=!0,this.$buttonIconActive=b("<span class='"+a.iconFamily+" "+e.createModifierClass(a.iconFamily,a.iconActive)+" "+e.createModifierClass(a.iconFamily,f.showHide)+"'></span>").insertAfter(this.$buttonIcon),this._buttonClasses.push(e.createModifierClass(a.baseClass,f.toggleState))),a.hideText&&(d.push(e.classes.hiddenVisually),this._buttonClasses.push(e.createModifierClass(a.baseClass,f.iconOnly)))),a.modifiers&&e.cssModifiers(a.modifiers,this._buttonClasses,a.baseClass),a.wrapText&&this.$buttonText.addClass(d.join(" ")),a.textActive&&a.wrapText&&(a.toggle=!0,d.push(e.createModifierClass(a.baseClass+"__text",f.showHide)),this._buttonClasses.push(e.createModifierClass(a.baseClass,f.toggleState)),this.$buttonTextActive=b("<span></span>").addClass(d.join(" ")).html(a.textActive).insertAfter(this.$buttonText),this.$element.attr("aria-live","polite")),this.$element.addClass(this._buttonClasses.join(" ")),a.role&&this.$element.attr("role",a.role),a.controls&&this.controls(a.controls),a.pressed&&this._isPressed(a.pressed),a.expanded&&(this.isPressed=!0,this._isExpanded(a.expanded)),this.hasTitle||!a.hideText||a.hideTitle||this.$element.attr("title",this.$element.text()),this.$element.trigger("create."+c)},g.prototype._isPressed=function(a){this.isPressed=a,this.$element.attr("aria-pressed",a)[a?"addClass":"removeClass"](e.classes.isActive)},g.prototype._isExpanded=function(a){this.isExpanded=a,this.$element.attr("aria-expanded",a)[a?"addClass":"removeClass"](e.classes.isActive)},g.prototype.controls=function(a){this.$element.attr("aria-controls",a)},g.prototype.destroy=function(){var a=this.options;if(this.$element.removeData(d).removeAttr("role").removeAttr("aria-pressed").removeAttr("aria-expanded").removeAttr("aria-controls").removeClass(this._buttonClasses.join(" ")).removeClass(e.classes.isActive).off("."+c),this.options.icon&&this.$element.find('[class^="'+this.options.iconFamily+'"]').remove(),a.wrapText){var b=this.$buttonText.html();this.$element.empty().html(b)}this.element=null,this.$element=null},g.prototype.defaults={baseClass:"c-button",role:"button",label:null,modifiers:null,controls:null,textActive:null,wrapText:!0,hideText:!1,hideTitle:!1,icon:null,iconActive:null,iconFamily:"o-icon",iconPosition:null,pressed:!1,expanded:!1},g.defaults=g.prototype.defaults}(this,jQuery),function(a,b){"use strict";var c="jsButton",d=".js-button";b.fn[c]=function(){return this.each(function(){new window.componentNamespace.Button(this).init()})},b(document).bind("enhance",function(a){b(b(a.target).is(d)&&a.target).add(d,a.target).filter(d)[c]()})}(this,jQuery),function(a,b){"use strict";var c="offcanvas",d=c+"-component",e=a.utils,f=document;a.componentNamespace=a.componentNamespace||{};var g=a.componentNamespace.Offcanvas=function(a,d){if(!a)throw new Error("Element required to initialize object");this.element=a,this.$element=b(a),this.options=d=d||{},this.metadata=e.getMetaOptions(this.element,c),this.options=b.extend({},this.defaults,this.metadata,d),this.isOpen=!1,this.onOpen=this.options.onOpen,this.onClose=this.options.onClose,this.onInit=this.options.onInit};g.prototype.init=function(){this.$element.data(d)||(this.$element.data(d,this),this.$element.trigger("beforecreate."+c),this._addAttributes(),this._initTrigger(),this._createModal(),this._trapTabKey(),this._closeButton(),this.onInit&&"function"==typeof this.onInit&&this.onInit.call(this.element),this.$element.trigger("create."+c))},g.prototype._addAttributes=function(){var c=this.options,d={tabindex:"-1","aria-hidden":!this.isOpen};c.role&&(d.role=c.role),this._panelClasses=[c.baseClass,e.classes.isClosed],a.utils.supportTransition||this._panelClasses.push(e.createModifierClass(c.baseClass,c.supportNoTransitionsClass)),e.cssModifiers(c.modifiers,this._panelClasses,c.baseClass),this.$element.attr(d).addClass(this._panelClasses.join(" ")),this.$content=b("."+c.contentClass),this._contentOpenClasses=[],e.cssModifiers(c.modifiers,this._contentOpenClasses,c.contentClass),this._modalOpenClasses=[c.modalClass,e.classes.isClosed],e.cssModifiers(c.modifiers,this._modalOpenClasses,c.modalClass),this._bodyOpenClasses=[c.bodyModifierClass+"--visible"],e.cssModifiers(c.modifiers,this._bodyOpenClasses,c.bodyModifierClass),c.modifiers.toLowerCase().indexOf("reveal")>=0?this.transitionElement=this.$content[0]:this.transitionElement=this.element},g.prototype._createModal=function(){var a=this,d=a.$element.parent();this.options.modal&&(this.$modal=b("<div></div>").on("mousedown."+c,function(){a.close()}).appendTo(d),this.$modal.addClass(this._modalOpenClasses.join(" ")))},g.prototype._trapTabKey=function(){this.trapTabKey=new a.componentNamespace.TrapTabKey(this.element),this.trapTabKey.init()},g.prototype._trapTabEscKey=function(){var a=this;b(f).on("keyup."+c,function(c){var d=c.keyCode||c.which;if(d===e.keyCodes.ESCAPE&&a.isOpen){if(b("input").is(":focus"))return;a.close()}})},g.prototype._closeButton=function(){function b(){d.close()}var d=this,f=d.options;this.$closeBtn=this.$element.find("."+f.closeButtonClass),this.$closeBtn.length&&(this.closeBtn=new a.componentNamespace.Button(this.$closeBtn[0]),this.closeBtn.init(),this.closeBtn.controls(this.$element.attr("id")),e.a11ycl
338ickBind(this.$closeBtn,b,c))},g.prototype.open=function(){var a=this,g=a.options;this.isOpen||(g.resize&&this.resize(),this.$trigger||(this.$trigger=this.$element.data(d+"-trigger")),f.activeElement&&(this.lastFocus=f.activeElement),this.isOpen=!0,b("html, body").addClass(this._bodyOpenClasses.join(" ")),this._addClasses(this.$element,this.isOpen,!0),this._addClasses(this.$content,this.isOpen,!0),g.modal&&(this._addClasses(this.$modal,this.isOpen,!0),this.$modal.addClass(e.createModifierClass(g.modalClass,"opening"))),this.$element.attr("aria-hidden","false").addClass(e.createModifierClass(g.baseClass,"opening")).trigger("opening."+c),this.$content.addClass(this._contentOpenClasses.join(" ")),e.onEndTransition(this.transitionElement,function(){a.trapTabKey.giveFocus(),a.trapTabKey.bindTrap(),a._addClasses(a.$element,a.isOpen,!1),a._addClasses(a.$content,a.isOpen,!1),g.modal&&(a._addClasses(a.$modal,a.isOpen,!1),a.$modal.removeClass(e.createModifierClass(g.modalClass,"opening"))),a.$element.removeClass(e.createModifierClass(g.baseClass,"opening"))}),this.$trigger&&this.$trigger.button._isExpanded(!0),this.onOpen&&"function"==typeof this.onOpen&&this.onOpen.call(this.$element),this.$element.trigger("open."+c),this._trapTabEscKey())},g.prototype.close=function(){var d=this,g=d.options;this.isOpen&&(this.isOpen=!1,this._addClasses(this.$element,this.isOpen,!0),this._addClasses(this.$content,this.isOpen,!0),this.options.modal&&(this._addClasses(this.$modal,this.isOpen,!0),this.$modal.addClass(e.createModifierClass(g.modalClass,"closing"))),this.$element.attr("aria-hidden","true").addClass(e.createModifierClass(g.baseClass,"closing")).trigger("closing."+c),this.trapTabKey.unbindTrap(),d.$trigger&&d.$trigger.button._isExpanded(!1),e.onEndTransition(this.transitionElement,function(){d._addClasses(d.$element,d.isOpen,!1),d._addClasses(d.$content,d.isOpen,!1),d.options.modal&&(d._addClasses(d.$modal,d.isOpen,!1),d.$modal.removeClass(e.createModifierClass(g.modalClass,"closing"))),d.$content.removeClass(d._contentOpenClasses.join(" ")),d.$element.removeClass(e.createModifierClass(g.baseClass,"closing")),b("html, body").removeClass(d._bodyOpenClasses.join(" ")),d.lastFocus&&d.lastFocus.focus()}),this.onClose&&"function"==typeof this.onClose&&this.onClose.call(this.element),this.$element.trigger("close."+c),b(f).off("keyup."+c),b(a).off("."+c))},g.prototype._addClasses=function(a,b,c){b?c?a.removeClass(e.classes.isClosed).addClass(e.classes.isAnimating).addClass(e.classes.isOpen):a.removeClass(e.classes.isAnimating):c?a.removeClass(e.classes.isOpen).addClass(e.classes.isAnimating):a.addClass(e.classes.isClosed).removeClass(e.classes.isAnimating)},g.prototype.toggle=function(){this[this.isOpen?"close":"open"]()},g.prototype.resize=function(){function d(){g=!1}function e(){g||i(d),g=!0}function f(){e(),h.$element.trigger("resizing."+c),h.options.resize&&h.close()}var g,h=this,i=function(){return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(b){a.setTimeout(b,1e3/60)}}();b(a).on("resize."+c+" orientationchange."+c,f)},g.prototype._initTrigger=function(){var c=this,d=c.options,e=this.$element.attr("id"),f="data-offcanvas-trigger";d.triggerButton?this.$triggerBtn=b(d.triggerButton):this.$triggerBtn=b("["+f+"='"+e+"']"),new a.componentNamespace.OffcanvasTrigger(this.$triggerBtn[0],{offcanvas:e}).init()},g.prototype.setButton=function(a){this.$element.data(d+"-trigger",a)},g.prototype.destroy=function(){this.$element.trigger("destroy."+c),this.isOpen&&this.close(),this.options.modal&&this.$modal.remove(),this.$element.removeData().removeClass(this._panelClasses.join(" ")).removeAttr("tabindex").removeAttr("aria-hidden"),this.$triggerBtn&&this.$triggerBtn.removeData("offcanvas-trigger-component").off(".offcanvas").off(".offcanvas-trigger").data("button-component").destroy(),this.$element.off("."+c),b(f).off("."+c),b(a).off("."+c)},g.prototype.defaults={role:"dialog",modifiers:"left,overlay",baseClass:"c-offcanvas",modalClass:"c-offcanvas-bg",contentClass:"c-offcanvas-content-wrap",closeButtonClass:"js-offcanvas-close",bodyModifierClass:"has-offcanvas",supp
338ortNoTransitionsClass:"support-no-transitions",resize:!1,triggerButton:null,modal:!0,onOpen:null,onClose:null,onInit:null},g.defaults=g.prototype.defaults}(this,jQuery),function(a,b){"use strict";var c="offcanvas",d=".js-"+c;b.fn[c]=function(b){return this.each(function(){new a.componentNamespace.Offcanvas(this,b).init()})},b(a.document).on("enhance",function(a){b(b(a.target).is(d)&&a.target).add(d,a.target).filter(d)[c]()})}(this,jQuery),function(a,b){"use strict";var c="offcanvas-trigger",d=c+"-component",e=a.utils;a.componentNamespace=a.componentNamespace||{};var f=a.componentNamespace.OffcanvasTrigger=function(a,c){if(!a)throw new Error("Element required to initialize object");this.element=a,this.$element=b(a),this.options=c=c||{},this.options=b.extend({},this.defaults,c)};f.prototype.init=function(){this.$element.data(d)||(this.$element.data(d,this),this._create())},f.prototype._create=function(){if(this.options.offcanvas=this.options.offcanvas||this.$element.attr("data-offcanvas-trigger"),this.$offcanvas=b("#"+this.options.offcanvas),this.offcanvas=this.$offcanvas.data("offcanvas-component"),!this.offcanvas)throw new Error("Offcanvas Element not found");this.button=new a.componentNamespace.Button(this.element),this.button.init(),this.button.controls(this.options.offcanvas),this.button._isExpanded(!1),this._bindbehavior()},f.prototype._bindbehavior=function(){function a(){b.offcanvas.toggle()}var b=this;this.offcanvas.setButton(b),e.a11yclickBind(this.$element,a,c)},f.prototype.defaults={offcanvas:null}}(this,jQuery),function(a,b){"use strict";var c="offcanvasTrigger",d="[data-offcanvas-trigger],.js-"+c;b.fn[c]=function(b){return this.each(function(){new a.componentNamespace.OffcanvasTrigger(this,b).init()})},b(a.document).on("enhance",function(a){b(b(a.target).is(d)&&a.target).add(d,a.target).filter(d)[c]()})}(this,jQuery);;
339"use strict";!function(e,t){function n(t){if("keydown"===t.type&&"Enter"!==t.key)return;t.preventDefault();const n=t.currentTarget;n.hash&&e.ahsThemeSite.scrollToAnchorTarget(n.hash)}e.behaviors.themeScrollToTop={attach(e){const a=t("themeScrollToTop",".js-scroll-to-top",e);a.length&&a.forEach(e=>{e.addEventListener("click",n),e.addEventListener("keydown",n)})}}}(Drupal,once),function(e,t,n,a){let i=0;function o(t,n){n.find(".js-accordion__item-label").not(t).get().forEach(t=>{e(t).attr({tabindex:"-1","aria-selected":"false"})}),t.attr({tabindex:"0","aria-selected":"true"})}function r(t){const n=e(t).data("accordionOnlyOneOpenItem");return null!=n&&!!n}function s(t){const n=e(t),a=n.next(),i=n.closest(".js-accordion__section"),s=r(i);o(n,i),a.hasClass("js-accordion__item-body--active")?(n.attr("aria-expanded","false").removeClass("js-accordion__item-label--active"),a.attr("aria-hidden","true").removeClass("js-accordion__item-body--active")):(s&&(i.find(".js-accordion__item-body--active").removeClass("js-accordion__item-body--active").attr("aria-hidden","true"),i.find(".js-accordion__item-label--active").removeClass("js-accordion__item-label--active").attr("aria-expanded","false")),n.attr("aria-expanded","true").addClass("js-accordion__item-label--active"),a.attr("aria-hidden","false").addClass("js-accordion__item-body--active"))}function c(t){const n=t.currentTarget,a=e(n),i=!!a.parent().next().children(":first-child").is("dt")&&a.parent().next().children("dt"),o=!!a.parent().prev().children(":first-child").is("dt")&&a.parent().prev().children("dt"),r=a.parent().siblings().first().find("dt"),c=a.parent().siblings().last().find("dt");switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),t.stopPropagation(),o?o.focus():c.focus();break;case"ArrowRight":case"ArrowDown":t.preventDefault(),t.stopPropagation(),i?i.focus():r.focus();break;case"Home":t.preventDefault(),t.stopPropagation(),r.focus();break;case"End":t.preventDefault(),t.stopPropagation(),c.focus();break;case"Enter":case" ":t.preventDefault(),t.stopPropagation(),s(a)}}function l(e){s(e.currentTarget)}function d(t){const n=e(t.currentTarget);o(n,n.closest(".js-accordion__section"))}t.behaviors.themeAccordionMolecule={attach(t){!function(t){const n=a("themeAccordionMolecule",".js-accordion__section",t);
339n.length&&n.forEach(t=>{const n=e(t);let a=n.attr("id");const o=r(n)?"false":"true";i++,null==a&&(a=`js-accordion__section--${i}${Math.floor(1e4*Math.random())+1}`),n.attr({role:"tablist","aria-multiselectable":o}),n.find(".js-accordion__item").get().forEach((t,n)=>{const i=e(t),o=i.find(".js-accordion__item-label").first();i.find(".js-accordion__item-body").first().attr({id:`js-accordion__item-body--${a}--${n}`,role:"tabpanel","aria-labelledby":`js-accordion__item-label--${a}--${n}`,"aria-hidden":"true"}),o.attr({id:`js-accordion__item-label--${a}--${n}`,role:"tab","aria-controls":`js-accordion__item-body--${a}--${n}`,"aria-expanded":"false","aria-selected":"false",tabindex:"-1"}),0===n&&o.attr("tabindex","0"),o.on("click",l),o.on("keydown",c),o.on("focus",d)})})}(t)}}}(jQuery,Drupal,window,once),function(e,t,n){function a(e){const t=e.getAttribute("data-cta-block-toggle-target")||"";if(!t)return null;const n=function(e){return e.closest(".cta-block")||window.document}(e);return n?n.querySelector(`[data-cta-block-toggle-target-id="${t}"]`):null}function i(e){const n=e.currentTarget;n.classList.remove("cta-block__iframe-wrapper--loading"),"ahsIframeResizer"in t&&void 0!==t.ahsIframeResizer&&"resize"in t.ahsIframeResizer&&t.ahsIframeResizer.resize(n)}function o(o){if("keydown"===o.type){const e=o.key.toUpperCase();if(!("ENTER"===e||" "===e||"SPACEBAR"===e))return}o.preventDefault();const r=o.currentTarget,s=e(r),c=a(r);if(!c)return;const l=e(c);let d="",u="";r.classList.contains("cta-block__toggle")&&(d=r.getAttribute("data-expand-help")||"",u=r.getAttribute("data-collapse-help")||""),e(n("ctaBlockToggleLoadIframes",l)).find(".cta-block__content").find("iframe").filter("[data-src]").get().forEach(e=>{!function(e,t){const n=e.getAttribute("data-src");if(void 0!==n&&n&&n!==e.src){const a=t.find(".cta-block__iframe-wrapper");a.length>0&&a.addClass("cta-block__iframe-wrapper--loading"),e.addEventListener("load",i),e.src=n}}(e,l)});const f=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:"fast";l.slideToggle({duration:f,complete(){const n=e(this);let a;"none"===n.css("display")?(n.attr("aria-hidden","true"),s.attr("aria-expanded","false"),d&&s.hasClass("cta-block__toggle")&&(s.attr("aria-label",d),t.ahsThemeSite.scrollTop(s))):(n.attr("aria-hidden","false"),a=n.find("input, select, textarea").not(":button, :submit, :reset, :image, :file").filter(":visible").first(),t.ahsThemeSite.scrollTop(a),s.attr("aria-expanded","true"),u&&s.hasClass("cta-block__toggle")&&s.attr("aria-label",u))}})}t.behaviors.themeCtaBlockToggle={attach(t){const i=n("themeCtaBlockToggle","[data-cta-block-toggle-target]",t);i.length&&i.forEach(t=>{!function(t){const n=e(t),i=a(t);if(!i)return;let r="",s="";t.classList.contains("cta-block__toggle")&&(r=t.getAttribute("data-expand-help")||"",s=t.getAttribute("data-collapse-help")||"");const c=e(i);0!==c.length&&(0===c.find(".confirmation-message").length?(c.hide().attr("aria-hidden","true"),n.attr("aria-expanded","false"),r&&n.hasClass("cta-block__toggle")&&n.attr("aria-label",r)):s&&n.hasClass("cta-block__toggle")&&n.attr("aria-label",s),n.on("click keydown",o))}(t)})}}}(jQuery,Drupal,once),function(e,t,n){function a(){return(window.innerWidth||0)<1080}const i=new IntersectionObserver(function(e){e.forEach(e=>{const n=e.target,a=e.boundingClientRect,i=e.rootBounds,o=t.ahsThemeSite.getStickyHeaderOuterHeight();e.isIntersecting?a.bottom>i.bottom&&a.top-a.height>o?n.classList.add("open--upward"):a.top<0&&n.classList.remove("open--upward"):n.classList.remove("open--upward")})},{root:null,threshold:[0,1]});async function o(o,r){const s=o.children(".menu__submenu");if(0===o.length||0===s.length)return;const c=o.parent(".menu--wizard");let l=c.nextAll();l=l.add(c.siblings(".menu--wizard"));const d=void 0!==r?!r:o.hasClass("menu__item--submenu-expanded"),u=e("button.flyout-menu__close");if(d)s.removeClass("visible"),a()||await new Promise(e=>{setTimeout(e,300)}),c.removeClass("menu--wizard--expanded"),o.removeClass("menu__item--submenu-expanded"),s.addClass("hidden"),o.children("a").attr("aria-expanded","fal
339se"),o.siblings().removeClass("hidden"),function(t,n){const a=void 0!==n?!n:null;t.get().forEach(t=>{const n=e(t);(null!==a?a:n.hasClass("menu__submenu-item--expanded"))?(n.removeClass("menu__submenu-item--expanded"),n.children("a").attr("aria-expanded","false")):n.siblings(".menu__submenu-item").removeClass("menu__submenu-item--expanded").find(".menu__submenu-sub-headline-link").attr("aria-expanded","false")})}(s.find(".menu__submenu-item"),!1),a()&&(o.children(".menu__item--submenu-toggle").removeClass("hidden"),l.removeClass("hidden--important"),u.off("keydown")),t.ahsThemeSite.focus(o.children("a"));else{c.addClass("menu--wizard--expanded"),o.addClass("menu__item--submenu-expanded"),o.children("a").attr("aria-expanded","true"),s.removeClass("hidden"),setTimeout(()=>{s.addClass("visible")},a()?0:50);!function(e){if(!(e instanceof Element))return;const t=n("themeMenuWizardSubmenuObserver",e);t.length&&i.observe(t[0])}(s.get(0)),a()&&(o.siblings().addClass("hidden"),l.addClass("hidden--important"),o.children(".menu__item--submenu-toggle").addClass("hidden"));const e=s.find('a, button, input, [tabindex]:not([tabindex="-1"])').filter(":visible").first();e.length&&e.focus()}const f=s.find('a, button, input, [tabindex]:not([tabindex="-1"])').filter(":visible"),h=u,g=s;h.length&&a()&&g.push(h[0]);const b=f.first(),m=f.last();g.off("keydown.themeMenuWizard"),g.on("keydown.themeMenuWizard",t=>{"Tab"===t.key&&(t.shiftKey?e(document.activeElement).is(b)&&(t.preventDefault(),m.focus()):h.length&&a()?e(document.activeElement).is(m)&&f.length>1?(t.preventDefault(),h.focus()):e(document.activeElement).is(h)&&f.length>1&&(t.preventDefault(),b.focus()):e(document.activeElement).is(m)&&f.length>1&&(t.preventDefault(),b.focus()))})}function r(t){if("keydown"===t.type&&"Enter"!==t.key)return;t.preventDefault();const n=e(t.currentTarget);o(n.parent(".menu__item--has-submenu").siblings(".menu__item--submenu-expanded"),!1),o(n.parent(".menu__item--has-submenu"))}function s(t){if("keydown"===t.type&&"Enter"!==t.key)return;t.preventDefault();o(e(t.currentTarget).closest(".menu__item--has-submenu"),!1)}t.behaviors.themeMenuWizardSubmenu={attach(t){const a=n("themeMenuWizardSubmenu",".menu__item--has-submenu",t);a.length&&function(t){t.forEach(t=>{const a=e(t);e(n("themeMenuWizardSubmenuInitLinkClick",a.children(".menu__item--submenu-toggle"))).on("click keydown",r),e(n("themeMenuWizardSubmenuInitBackLinkClick",a.find(".menu__submenu-back-link"))).on("click keydown",s)})}(a)}}}(jQuery,Drupal,once),function(e,t,n){const a="search-toggle-submit-hidden";function i(t){if(0===t.length)return e([]);if(t.is("form"))return t;let n=t.find("form").first();if(n.length>0)return n;const a=t.find(".views-exposed-form").first();if(a.length>0){if(a.is("form"))return a;n=a.find("form").first()}return n}function o(t){const n=e(t);let a=i(function(t){let n=e(t).data("closeLinkContext");void 0===n&&(n=".page__sidebar-first--inner");const a=e(n);return 0===a.length?e([]):a.first()}(t));if(a.length>0)return a;const o=n.closest(".view, .views-element-container");if(a=i(o.find(".search-results-form--search").first()),a.length>0)return a;if(a=i(o),a.length>0)return a;return i(n.closest("main, .page").find(".search-results-form--search").first())}function r(t){if(0===t.length)return e([]);let n=t.find(".ahs-views-submit").not(".form-submit-reset").first();return 0===n.length&&(n=t.find('button[type="submit"], input[type="submit"]').not(".form-submit-reset").not('[data-drupal-selector^="edit-reset"]').first()),n}function s(t,n){const i=e(t),s=i.data("closeLinkText");if(void 0===s||!s)return;const c=o(i);if(0===c.length)return;const l=r(c);0!==l.length&&(n?l.addClass(a).addClass("visually-hidden"):l.hasClass(a)&&l.removeClass(a).removeClass("visually-hidden"))}function c(t){if(t.preventDefault(),t.stopPropagation(),"keydown"===t.type&&"Enter"!==t.key&&" "!==t.key)return;const n=e(t.currentTarget),a=n.data("searchToggleLink");void 0!==a&&a&&(!function(e){const t=o(e);if(0===t.length)return;const n=r(t);n.length>0?n.trigger("click"):t.trigger("submit")}(a),d(a)),n.addClass("hidden")}function l(t){const a=e(t);if(0===a.length)return e([]);const i=a.data("searchToggleCloseLink");if(null!=i){const t=e(i);if(t.length>0)return t}const o=a.data("closeLinkText");let r,s=a.data("closeLinkContext");if(void 0===o||!o)return e([]);void 0===s&&(s=".page__sidebar-first--inner");const l=e(s);return 0===l.length?e([]):(r=l.find(".search-toggle-link__close"),r.length>0||(r=e(`<div class="search-toggle-link__close"><button class="search-toggle-link__close-link">${o}</button></div>`),r.data("searchToggleLink",a.get(0)),a.data("searchToggleCloseLink",r.get(0)),e(n("searchToggleLinkCloseOnClick",r)).on("click keydown",c),r.appendTo(l)),r)}function d(n){const a=e(n);
339a.attr("aria-expanded","false").removeClass("search-toggle-link__link--expanded"),l(a).addClass("hidden"),e("body").removeClass("body--search-toggle-link-expanded"),e(".search-results-form--search").removeClass("visually-hidden"),s(a,!1),t.ahsThemeSite.scrollTop(a)}function u(t){if("keydown"===t.type&&"Enter"!==t.key&&" "!==t.key)return;t.preventDefault(),t.stopPropagation();const n=e(t.currentTarget);let a=e("body").hasClass("body--search-toggle-link-expanded");a="boolean"==typeof a&&a,a?d(n):function(t){const n=e(t);n.attr("aria-expanded","true").addClass("search-toggle-link__link--expanded"),e("body").addClass("body--search-toggle-link-expanded").trigger("searchToggleLinkExpanded"),e(".search-results-form--search").addClass("visually-hidden"),s(n,!0),l(n).removeClass("hidden")}(n)}t.behaviors.themeSearchToggleLink={attach(t){const a=n("themeSearchToggleLinkAttach",".search-toggle-link__link",t);a.length&&(e(a).on("click keydown",u),e("body").hasClass("body--search-toggle-link-expanded")&&(e(".search-results-form--search").addClass("visually-hidden"),a.forEach(e=>{s(e,!0)})))}}}(jQuery,Drupal,once),function(e,t,n){let a=0;const i="search-toggle-submit-hidden";function o(e){return e.length>0&&e[0].hasAttribute("data-hidden-persistent")}function r(e){return e.removeClass("hidden--important").attr("aria-hidden","false"),e}function s(e){return e.addClass("hidden--important").attr("aria-hidden","true"),e}function c(t){const n=e(t);let a=[];const i=n.data("searchToggleTargetElement");if(null!=i)a=e(i);else{const t=n.data("searchToggleTarget");null!=t&&(a=e(`.${t}`).first(),a.length>0&&n.data("searchToggleTargetElement",a[0]))}return a}function l(t){const n=c(t);if(0===n.length)return e([]);if(n.is("form"))return n;let a=n.find("form").first();if(a.length>0)return a;const i=n.find(".views-exposed-form").first();if(i.length>0){if(i.is("form"))return i;a=i.find("form").first()}return a}function d(t){if(0===t.length)return e([]);let n=t.find(".ahs-views-submit").not(".form-submit-reset").first();return 0===n.length&&(n=t.find('button[type="submit"], input[type="submit"]').not(".form-submit-reset").not('[data-drupal-selector^="edit-reset"]').first()),n}function u(t,n){const a=e(t),o=a.data("closeLinkText");if(void 0===o||!o)return;const r=l(a);if(0===r.length)return;const s=d(r);0!==s.length&&(n?s.addClass(i).addClass("visually-hidden"):s.hasClass(i)&&s.removeClass(i).removeClass("visually-hidden"))}function f(t){if(t.preventDefault(),t.stopPropagation(),"keydown"===t.type&&"Enter"!==t.key&&" "!==t.key)return;const n=t.currentTarget,a=e(n).data("searchToggleLink");if(void 0!==a&&a){const t=e(a),n=c(a);t.length>0&&n.length>0&&(!function(e){const t=l(e);if(0===t.length)return;const n=d(t);n.length>0?n.trigger("click"):t.trigger("submit")}(t),m(t,n),t.parents(".search-toggles-block").removeClass("is-active"))}n.classList.add("hidden")}function h(t){const a=e(t);if(0===a.length)return e([]);const i=a.data("searchToggleCloseLink");if(null!=i){const t=e(i);if(t.length>0)return t}const o=a.data("closeLinkText");let r,s=a.data("closeLinkContext");if(void 0===o||!o)return e([]);void 0===s&&(s=".page__sidebar-first--inner");const c=e(s);return 0===c.length?e([]):(r=c.find(".search-toggle-link__close"),r.length>0||(r=e(`<div class="search-toggle-link__close"><button class="search-toggle-link__close-link">${o}</button></div>`),r.data("searchToggleLink",t),a.data("searchToggleCloseLink",r.get(0)),e(n("searchToggleLinkCloseOnClick",r)).on("click keydown",f),r.appendTo(c.first())),r)}function g(e){r(e).addClass("expanded")}function b(e){s(e).removeClass("expanded")}function m(e,t){e.attr("aria-expanded","false"),b(t),u(e,!1),h(e).addClass("hidden")}function p(){a=e(window).width()}function v(e){const t=!0===e.data("searchToggleNoBreakpoint");a||p();const n=c(e);if(o(n))s(e);else if(!t&&a>=1344)s(e).prop("disabled",!0),r(n).removeClass("expanded"),u(e,!1);else{r(e).prop("disabled",!1);const t=e.attr("aria-expanded");void 0===t||"false"===t?b(n):g(n)}}function _(n){const a=e(n),i=c(n);if(i.length>0){if(o(i))return void s(a);if(i.hasClass("expanded"))m(a,i),a.parents(".search-toggles-block").removeClass("is-active");else{!function(e,t){e.attr("aria-expanded","true"),e.parents(".search-toggles-block").addClass("is-active"),g(t),u(e,!0),h(e).removeClass("hidden")}(a,i);
339a.parent().siblings().find(".js-search-toggle").get().forEach(t=>{m(e(t),c(t))}),t.ahsThemeSite.scrollTop(i,{topBuffer:200})}}}function k(e){e.preventDefault(),e.stopPropagation(),_(e.currentTarget)}function w(e){" "===e.key&&(e.preventDefault(),e.stopPropagation(),_(e.currentTarget))}t.behaviors.themeSearchToggle={attach(a){const i=n("themeSearchToggleRelocate",".search-toggles-block",a);i.length&&i.forEach(t=>{const n=e(t),a=n.find(".js-search-toggle");if(a.length<2)return;if(!a.get().some(t=>{const n=e(t).data("searchToggleTarget");return n&&"page__sidebar-first"!==n&&"page__sidebar-first--inner"!==n}))return;const i=n.closest(".page");if(0===i.length)return;const o=i.find(".page__sidebar-first").first();0!==o.length&&n.insertAfter(o)});const o=i.length?document:a,r=n("themeSearchToggleScriptBehaviors",".js-search-toggle",o);r.length&&r.forEach(a=>{!function(a){const i=e(a);if(void 0===i.attr("data-search-toggle-target"))return;const o=c(i);if(0===o.length)return;const r=i.attr("id");if(void 0===r||!r)return;let s=o.attr("id");void 0!==s&&s||(s=`search-target-${r}`,o.attr("id",s)),o.is(".physicians-search-results-form--hidden")?i.hide():(i.attr("aria-controls",s),o.attr("tabindex","-1"),o.attr("aria-labelledby",r),v(i),n("searchToggleScriptClick","html").length&&e(window).resize(t.ahsThemeSite.debounce(()=>{p(),document.querySelectorAll(".js-search-toggle").forEach(t=>{v(e(t))})},500)),e(n("searchToggleScriptClick",i)).on("click",k).on("keydown",w))}(a)})}}}(jQuery,Drupal,once),function(e,t,n,a){let i=!1;function o(t){const n=e(t);n.closest(".tab-links__item").siblings(".tab-links__item").find(".tab-links__link").removeClass("tab-links__link--active"),n.addClass("tab-links__link--active")}function r(e){"keydown"===e.type&&"Enter"!==e.key||o(e.currentTarget)}t.behaviors.themeTabsLinks={attach(t){const s=a("themeTabsLinks",".tab-links__link",t);s.length&&(!i&&"hash"in n.location&&n.location.hash&&s.forEach(e=>{if(i)return;const t=e.getAttribute("href");t&&0===t.indexOf("#")&&t===n.location.hash&&(o(e),i=!0)}),e(s).on("click keydown",r))}}}(jQuery,Drupal,window,once),function(e,t){function n(t,n){const a=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"iframe","object","embed","area[href]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");t.find(a).each(function(){const t=e(this);if(n){const e=t.attr("tabindex");t.data("accordion-original-tabindex",e||null),t.attr("tabindex","-1")}else{const e=t.data("accordion-original-tabindex");if(void 0===e)return;null===e?t.removeAttr("tabindex"):t.attr("tabindex",e),t.removeData("accordion-original-tabindex")}})}function a(e,t){t.not(e).attr("tabindex","-1").attr("aria-selected","false"),e.attr({tabindex:"0","aria-selected":"true"})}function i(e,t,i){const o=e.next();a(e,t),o.hasClass("accordion-widget__answer--active")?(o.removeClass("accordion-widget__answer--active"),e.attr("aria-expanded","false"),o.attr("aria-hidden","true"),n(o,!0),o.has(document.activeElement).length&&e.focus(),o.prev(t).removeClass("accordion-widget__question--active")):(o.addClass("accordion-widget__answer--active"),e.attr("aria-expanded","true"),o.attr("aria-hidden","false"),n(o,!1),o.prev(t).addClass("accordion-widget__question--active"));e.closest(".js-accordion-section").find(t).filter(".accordion-widget__question--active").length===t.length?e.closest(".js-accordion-section").find(".accordion-widget__toggle-all").addClass("collapse"):e.closest(".js-accordion-section").find(".accordion-widget__toggle-all").removeClass("collapse")}function o(t){if("keydown"===t.type&&"Enter"!==t.key)return;t.preventDefault();const a=t.currentTarget,i=e(a).closest(".js-accordion-section"),o=i.find(".accordion-widget__toggle-all"),r=i.find(".js-accordion-question"),s=i.find(".js-accordion-answer"),c=r.filter(".accordion-widget__question--active");0===c.length?(r.addClass("accordion-widget__question--active").attr("aria-expanded","true"),s.addClass("accordion-widget__answer--active").attr("aria-hidden","false"),s.each(function(){n(e(this),!1)}),o.addClass("collapse")):c.length===r.length?(r.removeClass("accordion-widget__question--active").attr("aria-expanded","fal
339se"),s.removeClass("accordion-widget__answer--active").attr("aria-hidden","true"),s.each(function(){n(e(this),!0)}),o.removeClass("collapse"),a.classList.contains("accordion-button--bottom")&&Drupal.ahsThemeSite.scrollTop(o.find(".accordion-button--top"),{focusElement:a})):(r.addClass("accordion-widget__question--active").attr("aria-expanded","true"),s.addClass("accordion-widget__answer--active").attr("aria-hidden","false"),s.each(function(){n(e(this),!1)}),o.addClass("collapse"))}function r(t){t.preventDefault();const n=t.currentTarget,a=e(n),o=a.closest(".js-accordion-section"),r=o.find(".js-accordion-question");o.find(".js-accordion-answer");i(a,r)}function s(t){const n=t.currentTarget,a=e(n),o=a.closest(".js-accordion-section"),r=o.find(".js-accordion-question");o.find(".js-accordion-answer");!function(e,t,n){const a=e.parent(),o=a.siblings(),r=a.next(),s=a.prev(),c=r.children(".js-accordion-question"),l=s.children(".js-accordion-question"),d=o.first().children(".js-accordion-question"),u=o.last().children(".js-accordion-question");switch(t.key){case"ArrowLeft":case"ArrowUp":t.preventDefault(),t.stopPropagation(),l.length>0?u.focus():l.focus();break;case"ArrowRight":case"ArrowDown":t.preventDefault(),t.stopPropagation(),c.length>0?d.focus():c.focus();break;case"Home":t.preventDefault(),t.stopPropagation(),d.focus();break;case"End":t.preventDefault(),t.stopPropagation(),u.focus();break;case"Enter":case" ":t.preventDefault(),t.stopPropagation(),i(e,n)}}(a,t,r)}function c(t){const n=t.currentTarget,i=e(n),o=i.closest(".js-accordion-section"),r=o.find(".js-accordion-question");o.find(".js-accordion-answer");a(i,r)}Drupal.behaviors.themeAccordionWidget={attach(a){const i=t("themeAccordionWidget",".js-accordion-section",a);0!==i.length&&i.forEach(t=>{!function(t){const a=e(t);a.find(".accordion-widget__toggle-all").find(".accordion-button").on("click keydown",o),a.find(".js-accordion-question").get().forEach((t,n)=>{const a=e(t);0===n&&a.attr("tabindex","0"),a.on("click",r),a.on("keydown",s),a.on("focus",c)}),a.find(".js-accordion-answer").each(function(){const t=e(this);("true"===t.attr("aria-hidden")||!t.hasClass("accordion-widget__answer--active"))&&n(t,!0)})}(t)})}}}(jQuery,once),function(e,t,n){t.behaviors.splitContentWidget={attach(e){n("split-content-widget-four-up",".split-content-widget--four-up",e).forEach(e=>{!function(e){const t=e.querySelectorAll(".split-content-widget__grid-image-item");if(!t.length)return;if(!e.classList.contains("split-content-widget--with-reveal-animation"))return;t.forEach((e,t)=>{const n=t<2?"top":"bottom",a=t%2==0?"left":"right";e.dataset.anim=n,e.dataset.col=a});let n=!1;const a=new IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>=.2&&!n&&(n=!0,t.forEach(e=>{e.classList.add("is-animated")}),a.disconnect())})},{threshold:[.2]});a.observe(e)}(e)});n("split-content-widget-single-media",".split-content-widget--image-left, .split-content-widget--image-right, .split-content-widget--with-video",e).forEach(e=>{!function(e){const t=e.querySelector(".split-content-widget__single-media-item");if(!t)return;if(!e.classList.contains("split-content-widget--with-reveal-animation"))return;let n=!1;const a=new IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>=.2&&!n&&(n=!0,t.classList.add("is-animated"),a.disconnect())})},{threshold:[.2]});a.observe(e)}(e)})}}}(jQuery,Drupal,once,window),function(e,t,n){function a(e){e.setAttribute("tabindex","0"),e.setAttribute("aria-selected","true"),e.parentNode.setAttribute("data-tab-active",""),e.setAttribute("data-tab-active","")}function i(e){e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),e.parentNode.removeAttribute("data-tab-active"),e.removeAttribute("data-tab-active")}function o(e){e.setAttribute("aria-hidden","false"),e.setAttribute("tabindex","0"),e.setAttribute("data-tab-active",""),e.querySelectorAll('[tabindex="-1"]').forEach(e=>{e.hasAttribute("data-original-tabindex")?(e.setAttribute("tabindex",e.getAttribute("data-original-tabindex")),e.removeAttribute("data-original-tabindex")):(["a","button","input","select","textarea","audio","video","embed","iframe","object","summary"].includes(e.tagName.toLowerCase())||e.hasAttribute("href")||"true"===e.getAttribute("contenteditable"))&&e.removeAttribute("tabindex")})}function r(e){e.classList.contains("single-tab")||(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),e.removeAttribute("data-tab-active"),e.querySelectorAll('a, button, input, select, textarea, [tabindex], [href], [contenteditable="true"], audio[controls], video[controls], embed, iframe, object, summary').forEach(e
339=>{e.hasAttribute("tabindex")&&e.setAttribute("data-original-tabindex",e.getAttribute("tabindex")),e.setAttribute("tabindex","-1")}))}function s(e,t){if(e.length>0&&t.length>0){const n=t.outerWidth();if(n>0){const a=t.position();"left"in a&&e.css({left:+a.left,width:n})}}}function c(t,n){const a=e(t);a.length>0&&(a.data("tabClickEventLocked",!1),a.trigger("ahsThemeTabSelected",[{panel:n}]))}function l(t,n,l,d,u){const f=t.currentTarget;let h;t.preventDefault(),"true"!==f.getAttribute("aria-selected")&&function(t){const n=e(t);return n.length>0&&!0!==n.data("tabClickEventLocked")&&(n.data("tabClickEventLocked",!0),!0)}(f)&&(n.forEach(e=>{i(e)}),a(f),l.forEach((e,t)=>{t!==u?r(e):(o(e),h=e)}),s(e(d),e(f).parent(".tab-item")),c(f,h))}function d(n,s,l,d){const u=n.currentTarget;let f;n.preventDefault();let h=!1;if(u.nextElementSibling.hasAttribute("data-tab-active")&&(h=!0),s.forEach(e=>{i(e)}),d.forEach(e=>{e.removeAttribute("data-tab-active")}),l.forEach(e=>{r(e)}),!h){u.setAttribute("data-tab-active","");const n=u.getAttribute("data-tab-index");s.forEach(e=>{e.getAttribute("data-tab-index")===n&&a(e)}),l.forEach(a=>{var i,r;a.getAttribute("data-tab-index")===n&&(o(a),f=a,i=e(a),r=175,t.ahsThemeSite.scrollTop(i,{topBuffer:r,noFocus:!0,duration:250}))})}c(u,f)}function u(n){const c=e(n),u=n.id,f=c.find(".tab-list").first(),h=f.find(".tab-item"),g=(h.get(),c.find(".tabs-accordion-control").get()),b=c.find(".tab-panel").get(),m=f.children(".tab-slider"),p=m.length>0?m.get(0):void 0,v=[];let _=window.location.hash,k=null,w=null,y=null,C=null;_.length>0&&0===_.indexOf("#")&&(_=_.substring(1)),f.attr("role","tablist"),h.get().forEach(t=>{const n=e(t),a=n.children(".tab-link").first(),i=a.attr("href").split("#")[1];v.push(a.get(0)),n.attr("role","presentation"),null===C&&(C=t),_&&null===w&&i===_&&(w=t)}),null===w&&(w=C),null!==w&&(y=e(w),w.setAttribute("data-tab-active",""),k=y.find("a").attr("href").substring(1),s(m,y)),e(window).on("resize orientationchange",t.ahsThemeSite.debounce(()=>{!function(t){const n=e(t).find(".tab-list"),a=n.find(".tab-item").find("[data-tab-active]");a.length>0&&s(n.children(".tab-slider"),a)}(n)},50)),v.forEach((e,t)=>{let n=!1;const o=e.getAttribute("href").split("#")[1],r={role:"tab","aria-controls":o};null!==k&&o===k&&(n=!0),Object.keys(r).forEach(t=>{({}).hasOwnProperty.call(r,t)&&e.setAttribute(t,r[t])}),n?a(e):i(e),e.addEventListener("click",e=>{e.preventDefault(),l(e,v,b,p,t)}),e.addEventListener("keydown",e=>{!function(e,t,n,a,i){const o=t[i-1],r=t[i+1],s=t[0],c=t[t.length-1];switch(e.key){case"ArrowLeft":case"ArrowUp":e.preventDefault(),o?o.focus():c.focus();break;case"ArrowRight":case"ArrowDown":e.preventDefault(),r?r.focus():s.focus()}}(e,v,0,0,t)})}),g.forEach((e,t)=>{const n=e.getAttribute("href").split("#")[1],a=e.getAttribute("id"),i={"aria-controls":n};a||(i.id=`tab-accordion-link-${t}
339`),Object.keys(i).forEach(t=>{({}).hasOwnProperty.call(i,t)&&e.setAttribute(t,i[t])}),e.addEventListener("click",e=>{e.preventDefault(),d(e,v,b,g)})}),b.forEach((t,n)=>{let a=!1;const i={role:"tabpanel","aria-labelledby":`tab-${u}-tab-link-${n}`};if(null!==k&&e(t).attr("id")===k){a=!0;const e=t.previousElementSibling;null!=e&&e.classList.contains("tabs-accordion-control")&&e.setAttribute("data-tab-active","")}Object.keys(i).forEach(e=>{({}).hasOwnProperty.call(i,e)&&t.setAttribute(e,i[e])}),a?o(t):r(t)})}t.behaviors.themeTabWidget={attach(e){const t=n("themeTabWidgetInit",".js-tab-widget",e);t.length&&t.forEach(e=>{u(e)})}}}(jQuery,Drupal,once);
340
341;
342!function(e,t,i){"use strict";function r(e,t){return t?e?e=-1!==e.indexOf("?")?e.replace("?",`?${t}&`):-1!==e.indexOf("#")?e.replace("#",`?${t}#`):`${e}?${t}`:`?${t}`:e}function c(e){const t=e.getAttribute("href");if(!t)return"";const i=t.split("?",1);if(i.length<2)return"";return i[1].split("#")[0]||""}function n(){const t={};return t.filter=function(){let t="",r=e.ahsSite.getUrlQueryParameter("service");if(r){r=r.trim().toLowerCase();const e=i.querySelector(`.location-block__services-list a[data-service-line-label="${r}"]`);if(e)t=e.getAttribute("data-service-line-id")||"";else{const e=i.querySelector(`.location-block__services-list a[data-facility-service-label="${r}"]`);e&&(t=e.getAttribute("data-service-line-id")||"")}}return t}(),t.facet=function(){let t="";const i=e.ahsSearchHelper.getFacets();return"service"in i&&i.service.length>0&&(t=i.service[0]||""),t}(),t.filter||t.facet?t:null}e.behaviors.ahsThemeLocationBlock={attach(i){const l=t("ahsThemeLocationBlockInit",".location-block",i);if(!l.length)return;const o=n();if(o){const t="journey=service-location-finder";l.forEach(i=>{const n=i.querySelectorAll(".location-block__services-list a[data-service-line-id]"),l={};if(n.forEach(e=>{!function(e,t){const i=e.getAttribute("href"),c=r(i,t);c&&i!==c&&e.setAttribute("href",c)}(e,t),Object.entries(o).forEach(([t,i])=>{i&&e.getAttribute("href")&&e.getAttribute("data-service-line-id")===i&&(e.classList.add("location-block__service-link--active"),t in l||(l[t]=e))})}),Object.values(l).length>0){const n=(l.filter||l.facet).getAttribute("href"),o=i.querySelector(".location-block__name-link[data-service-line-may-redirect]");if(o){let e=r(n,c(o));e=r(e,t),o.setAttribute("href",e)}const a=i.querySelector(".location-block__scheduling a[data-service-line-may-redirect]");if(a){let i=r(n,c(a));i=r(i,t),a.setAttribute("href",i),a.textContent=e.t("Visit Service Page")}}})}}}}(Drupal,once,document);;
343!function(t,e,a,o){"use strict";function n(a){let o=a.getAttribute("data-modal-id");o||(o=`ahs-modal-${Math.floor(1e4*Math.random())}`,a.setAttribute("data-modal-id",o));const n=function(t){if(t.hasAttribute("data-modal-content-by-event")){e.ahsThemeModal.modalContent="";const a=new Event("ahs-modal-set-content",{bubbles:!1});return t.dispatchEvent(a),e.ahsThemeModal.modalContent||""}const a=t.getAttribute("data-modal-content");if(a)return a;const o=t.getAttribute("data-modal-content-json");if(o)try{const t=JSON.parse(o);if(t&&"value"in t)return t.value}catch(t){return""}return""}(a);if(!n)return null;const s=document.createElement("div");s.setAttribute("id",o),s.innerHTML=n,s.classList.add("care-highlights-modal__container"),s.classList.add("hidden");const i=a.getAttribute("data-modal-content-classes");if(i){let t=i.split(" ");t=t.map(t=>t.trim()),s.classList.add(...t)}s.isConnected||document.body.appendChild(s);const d={title:a.getAttribute("data-modal-title"),autoOpen:!1,closeText:e.t("Close"),classes:{"ui-dialog":"care-highlights-modal"},buttonClass:"",show:{effect:"fadeIn",duration:300},hide:{effect:"fadeOut",duration:300},width:"auto",height:"auto",resizable:!1,draggable:!1,modal:!0,open(){const a=t(this).siblings(".ui-dialog-titlebar").find(".ui-dialog-title");a.length>0&&e.ahsThemeSite.focus(a)},close(){e.ahsThemeSite.focus(a)},buttons:[{text:e.t("Got It"),class:"button",click(){t(this).dialog("close")}}]},l=a.getAttribute("data-modal-classes");l&&(d.classes["ui-dialog"]+=` ${l}`);const c=a.getAttribute("data-modal-button-text");c&&(d.buttons[0].text=c);const r=a.getAttribute("data-modal-button-classes");if(r)for(let t=0;t<d.buttons.length;t++)d.buttons[t].class+=` ${r}`;return t(s).dialog(d),s.classList.remove("hidden"),s}function s(e){const a=function(t){const e=t.getAttribute("data-modal-id");if(e){const t=document.querySelector(`#${e}`);if(t)return t}return n(t)}(e);a&&t(a).dialog("open")}function i(t){t.preventDefault(),t.stopImmediatePropagation(),s(this)}function d(t){if(!t.key)return;const e=t.key.toUpperCase();"ENTER"!==e&&" "!==e&&"SPACEBAR"!==e||(t.preventDefault(),t.stopImmediatePropagation(),s(this))}e.ahsThemeModal={modalContent:"",setModalContent(t){this.modalContent=t}},e.behaviors.ahsThemeModal={attach(t){const e=o("ahsThemeModalInit","[data-modal-trigger]",t);e.length&&e.forEach(t=>{t.addEventListener("click",i),t.addEventListener("keydown",d)})}}}(jQuery,Drupal,window.drupalSettings,once);;
344(function($,Drupal,window,once){'use strict';const processBlocks=function($blocks){if($blocks.length===0)return;const params=Drupal.ahsSite.getUrlQueryParameters();const hasParams=params!==null&&!$.isEmptyObject(params);const hasFacets=hasParams&&('f' in params);const clearAllHref=window.location.pathname;let clearFacetsHref=clearAllHref;if(hasFacets&&!!window.location.search&&window.location.search.length>1){const queryNoFacets=Drupal.ahsSite.removeFacetsFromQueryString(window.location.search.substring(1));clearFacetsHref=window.location.pathname+(queryNoFacets?`?${queryNoFacets}`:'');}$blocks.each(function(){const $block=$(this);const $link=$block.find('a').first();let href=clearFacetsHref;let clearsAll=$block.data('clearsAll');clearsAll=typeof clearsAll!=='undefined'&&clearsAll!==null;if(clearsAll)href=clearAllHref;$link.attr('href',href);const show=(clearsAll&&hasParams)||hasFacets;if(show)$block.removeClass('visually-hidden');else $block.addClass('visually-hidden');});};$(window.document).on('ahsSiteUrlQueryParametersUpdated',function(){processBlocks($('.ahs-search-facets-clear-all-block'));});Drupal.behaviors.ahsSearchClearAllFacetsBlock={attach:function(context){const $blocksToProcess=$(once('ahsSearchClearAllFacetsBlockProcessed','.ahs-search-facets-clear-all-block',context));if($blocksToProcess.length>0)processBlocks($blocksToProcess);}};})(jQuery,Drupal,window,once);;
345(function($,Drupal){'use strict';Drupal.behaviors.ahsSearchFacetsHeaderBlock={attach:function(context){const $context=$(context);let $facetsContext=$context;
345if($context.is('.block-facets-ajax')||$context.children('.block-facets-ajax').length>0)$facetsContext=$context.closest('.page__sidebar-first');if($facetsContext.length>0){let reProcessEmptySidebars=false;$facetsContext.find('.ahs-search-facets-header-block').each(function(){const $block=$(this);const blockIsHidden=$block.hasClass('hidden--important');const $visibleFacets=$block.siblings('.block-facet').not('.block-facet-empty').not('.hidden--important').not('.hidden');if($visibleFacets.length===0){if(!blockIsHidden){$block.addClass('hidden--important');reProcessEmptySidebars=true;}}else{if(blockIsHidden){$block.removeClass('hidden--important');reProcessEmptySidebars=true;}}});if(reProcessEmptySidebars)Drupal.ahsSite.processEmptySidebars(null,true);}}};})(jQuery,Drupal);;
346(function($,Drupal,once){'use strict';const ns='ahsSearchFacetsModuleCheckboxWidgetExtended';Drupal.facets=Drupal.facets||{};const parentMakeCheckboxes=Drupal.facets.makeCheckboxes;Drupal.facets.makeCheckboxes=function(context){parentMakeCheckboxes(context);$('.facet-item--expanded.facet-item--active-trail > input').removeProp('indeterminate');};Drupal.facets.transformCheckbox=function(context){$('.search-facets__item--active-expanded-parent',context).each(function(){const facetsCheckboxP=$(this).children('.facets-checkbox');const facetsCheckboxC=$(this).children('.facets-widget-checkbox').find('.facets-checkbox');const facetsChecked=facetsCheckboxC.filter(':checked');if(facetsChecked.length<facetsCheckboxC.length)facetsCheckboxP.siblings('label').addClass('facets-checkbox--partial-check');else facetsCheckboxP.siblings('label').addClass('facets-checkbox--full-check');});};Drupal.behaviors[ns]={attach:function(context){Drupal.facets.transformCheckbox(context);const $resetFacets=$(once(`${ns}Reset`,'.facets-reset',context));$(once(`${ns}Reset`,$resetFacets.find('.facets-checkbox'))).each(function(){const resetCheckbox=this;const $resetCheckbox=$(this);$resetCheckbox.closest('.facets-reset').siblings().find('.facets-checkbox').on('change facets_filter.facets',function(){if($(this).prop('checked'))$(resetCheckbox).prop('checked',false);});}).on('change facets_filter.facets',function(event){const $resetCheckbox=$(this);if($resetCheckbox.prop('checked'))$resetCheckbox.closest('.facets-reset').siblings().find('.facets-checkbox').prop('checked',false);else event.preventDefault();});}};})(jQuery,Drupal,once);;
347(function($,Drupal,drupalSettings,window,once){'use strict';let lastSearchQuery='';let lastGeolocationKey='';function getUrlQueryFacilityId(){const facilityId=Drupal.ahsSite.getUrlQueryParameter('facility');return facilityId||'';}function getUrlPathFacilityId(){if(('path' in drupalSettings)&&typeof drupalSettings.path!=='undefined'&&('currentPath' in drupalSettings.path)&&typeof drupalSettings.path.currentPath!=='undefined'&&drupalSettings.path.currentPath){const matches=drupalSettings.path.currentPath.match(/^group\/(\d+)(?:\/|$)/);if(matches!==null&&matches.length>1)return matches[1];}return '';}function getCurrentFacilityId(){const queryId=getUrlQueryFacilityId();if(queryId)return queryId;if(('ahsSearchGeolocationLinks' in drupalSettings)&&typeof drupalSettings.ahsSearchGeolocationLinks!=='undefined'&&'facilityId' in drupalSettings.ahsSearchGeolocationLinks)return drupalSettings.ahsSearchGeolocationLinks.facilityId;return getUrlPathFacilityId();}function setQueryStringParameter(query,paramName,paramValue){const nameEncoded=encodeURIComponent(paramName);const valueEncoded=encodeURIComponent(paramValue);const regex=new RegExp(`(^|&)${nameEncoded}=([^&#]*)(|&|#|$)`,'i');const results=regex.exec(query);const newKeyValue=`${nameEncoded}=${valueEncoded}`;if(!results){if(query)return newKeyValue?`${query}&${newKeyValue}`:query;return newKeyValue;}if(results[2]===valueEncoded)return query;const replacement=results[1]+newKeyValue+(results[3]?results[3]:'');return query.replace(results[0],replacement);}function buildUrlSearchQuery(location){const params={};params.latlng={value:`${location.lat},${location.lng}`,distance:{from:'-'}};if(('formatted_address' in location)&&location.formatted_address){params.geolocation_geocoder_google_geocoding_api=location.formatted_address;params.geolocation_geocoder_google_geocoding_api_state=1;}params.sort_bef_combine='ahs_geolocation_latlng_distance_ASC';const facilityId=getCurrentFacilityId();if(facilityId)params.facility=facilityId;return params;}function buildUrlSearchQueryString(location){return $.param(buildUrlSearchQuery(location));}function findLinkContext(context){const linkContextSelectors=['.site__menu .menu','.site-header__wrapper','.physician-cta-widget','.page__sidebar-first--inner > .text-block'];const $context=$(context);
347$.each(linkContextSelectors,function(s,selector){if($context.is(selector))return $context;});return $context.find(linkContextSelectors.join(','));}function processLink(linkElement,searchQuery){const $link=$(linkElement);if(!searchQuery)return $link;let href=$link.attr('href');if(typeof href!=='undefined'&&href.indexOf('#')!==0&&href.indexOf('javascript')!==0&&href.indexOf('http')!==0&&href.indexOf('tel')!==0){const hrefOriginal=href;if(lastSearchQuery&&href.indexOf(lastSearchQuery)!==-1)href=href.replace(lastSearchQuery,searchQuery);else if(href.indexOf('?')!==-1)href=href.replace('?',`?${searchQuery}&`);else if(href.indexOf('#')!==-1)href=href.replace('#',`?${searchQuery}#`);else href=`${href}?${searchQuery}`;if(hrefOriginal!==href)$link.attr('href',href);}return $link;}function processLinks(context,location,update){const searchQuery=buildUrlSearchQueryString(location);if(!searchQuery)return $([]);update=typeof update!=='undefined'?update:false;const $linkContext=findLinkContext(context);if($linkContext.length===0)return $([]);let $links=$linkContext.find('a');if(!update)$links=$(once('ahsSearchGeolocationLinksAlter',$links));const targetLinkSelectors=[];$.each(drupalSettings.ahsSearchGeolocationLinks.targets,function(targetIndex,targetUrl){targetLinkSelectors.push(`[href^="${targetUrl}"]`);});if(targetLinkSelectors.length===0)return $([]);$links=$links.filter(targetLinkSelectors.join(','));if($links.length>0){$links.each(function(){processLink(this,searchQuery);});lastSearchQuery=searchQuery;}if(update)$links=$(once('ahsSearchGeolocationLinksAlter',$links));return $links;}function processSchedulingEmbeds(context,location,update){let $embeds=$('.iframe-embed-widget__ahs-scheduling-iframe',context);if(!update)$embeds=$(once('ahsSearchGeolocationEmbedsAlter',$embeds));if($embeds.length===0)return $embeds;const embedParams={};if(('formatted_address' in location)&&(typeof location.formatted_address!=='undefined')&&location.formatted_address)embedParams.location=location.formatted_address;else{if(('zip' in location)&&(typeof location.zip!=='undefined')&&location.zip)embedParams.location=location.zip;}if($.isEmptyObject(embedParams))return $embeds;const canOverrideSrcQuery=typeof window.location.search==='undefined'||window.location.search.indexOf('location=')===-1;$embeds.each(function(){const $iframe=$(this);const src=$iframe.attr('src');if(typeof src==='undefined'||src===null)return;let newSrc=src;if(src.indexOf('?')!==-1){if(canOverrideSrcQuery){const srcQueryMatches=src.match(/\?(.*)$/);if(srcQueryMatches!==null&&srcQueryMatches.length>1){const srcQuery=srcQueryMatches[1];let newSrcQuery=srcQuery;$.each(embedParams,function(paramName,paramValue){newSrcQuery=setQueryStringParameter(newSrcQuery,paramName,paramValue);});newSrc=newSrc.replace(`?${srcQuery}`,`?${newSrcQuery}`);}}}else{const embedQueryString=$.param(embedParams);if(embedQueryString)newSrc+=`?${embedQueryString}`;}if(newSrc!==src)setTimeout(function(){$iframe[0].src=newSrc;},0);});if(update)$embeds=$(once('ahsSearchGeolocationEmbedsAlter',$embeds));return $embeds;}const processAll=Drupal.debounce(function(context,location,update){const isEmpty=Drupal.ahsGeoHelper.locationIsEmpty(location);if(!isEmpty){const updatedKey=Drupal.ahsGeoHelper.geolocationKey(location);if(updatedKey!==lastGeolocationKey){lastGeolocationKey=updatedKey;processLinks(context,location,update);processSchedulingEmbeds(context,location,update);}}},50,true);$(window.document).on('ahsSearchLocationLoaded ahsSearchLocationChanged',function(event,geoWidget,newLocation){processAll(this,newLocation,true);});Drupal.ahsJsGeolocationClient.addGeolocationResultSuccessCallback(function(position,geolocation){processAll(this,geolocation,true);});Drupal.behaviors.ahsSearchGeolocationLinks={attach:function(context){if(context===window.document){const lastKnown=Drupal.ahsJsGeolocationClient.getLastKnownLocation();if(lastKnown)processAll(context,lastKnown);}}};}(jQuery,Drupal,window.drupalSettings,window,once));;
348(function($,Drupal,drupalSettings){'use strict';function geolocationInfoWindowOnVisible(){if(!('mapMarker' in this)||typeof this.mapMarker==='undefined')return;
348this.mapMarker.zIndexOriginal=this.mapMarker.zIndex||0;this.mapMarker.zIndex=1000;}function geolocationInfoWindowOnClose(){if(!('mapMarker' in this)||typeof this.mapMarker==='undefined')return;if(typeof this.mapMarker.zIndexOriginal!=='undefined')this.mapMarker.zIndex=this.mapMarker.zIndexOriginal;}Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.maps=Drupal.geolocation.maps||[];Drupal.geolocation.maps_api_loading=false;Drupal.geolocation.maps_api_loaded=false;Drupal.geolocation.defaultMapSettings={scrollwheel:false,panControl:false,mapTypeControl:true,scaleControl:false,streetViewControl:false,overviewMapControl:false,rotateControl:false,fullscreenControl:false,zoomControl:true,mapTypeId:'roadmap',zoom:2,maxZoom:0,minZoom:18,style:[],gestureHandling:'cooperative'};Drupal.geolocation.isGoogleApiLoaded=function(){return Drupal.geolocation.maps_api_loaded;};Drupal.geolocation.googleCallback=function(){if(!Drupal.geolocation.isGoogleApiLoaded())return;Drupal.geolocation.googleCallbacks=Drupal.geolocation.googleCallbacks||[];$(document).ready(function(){$.each(Drupal.geolocation.googleCallbacks,function(c,cb){cb.callback();});Drupal.geolocation.googleCallbacks=[];});};Drupal.geolocation.addCallback=function(callback){Drupal.geolocation.googleCallbacks=Drupal.geolocation.googleCallbacks||[];Drupal.geolocation.googleCallbacks.push({callback});};async function importGoogleMapsLibrary(){if(typeof google==='undefined'||typeof google.maps==='undefined'){if(typeof drupalSettings.geolocation.google_map_url==='undefined'){console.error('Geolocation - Google map url not set.');return;}const urlParts=drupalSettings.geolocation.google_map_url.split('?',2);if(urlParts.length!==2){console.error('Geolocation - Google map url is malformed.');return;}const mapsParams={};const urlParams=new URLSearchParams(urlParts[1]);urlParams.forEach((value,key)=>{if(value)mapsParams[key]=value;});if(!('key' in mapsParams)||!mapsParams.key){console.error('Geolocation - Google map API key not set.');return;}if('callback' in mapsParams)delete mapsParams.callback;((g)=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set(),e=new URLSearchParams(),u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,(t)=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a);}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n));})(mapsParams);}await google.maps.importLibrary('maps');}Drupal.geolocation.loadGoogle=async function(callback){if(typeof callback!=='undefined')Drupal.geolocation.addCallback(callback);if(!Drupal.geolocation.isGoogleApiLoaded()){if(!Drupal.geolocation.maps_api_loading){Drupal.geolocation.maps_api_loading=true;await importGoogleMapsLibrary();Drupal.geolocation.maps_api_loading=false;Drupal.geolocation.maps_api_loaded=true;Drupal.geolocation.googleCallback();}}else Drupal.geolocation.googleCallback();};Drupal.geolocation.addMap=async function(map){await google.maps.importLibrary('marker');if(typeof map.id==='undefined')map.id=`map${Math.floor(Math.random()*10000)}`;map.mapMarkers=map.mapMarkers||[];map.container.css({height:map.settings.google_map_settings.height,width:map.settings.google_map_settings.width});const center=new google.maps.LatLng(map.lat,map.lng);map.settings.google_map_settings=$.extend(Drupal.geolocation.defaultMapSettings,map.settings.google_map_settings);map.settings.google_map_settings.zoom=parseInt(map.settings.google_map_settings.zoom,10)||Drupal.geolocation.defaultMapSettings.zoom;map.settings.google_map_settings.maxZoom=parseInt(map.settings.google_map_settings.maxZoom,10)||Drupal.geolocation.defaultMapSettings.maxZoom;map.settings.google_map_settings.minZoom=parseInt(map.settings.google_map_settings.minZoom,10)||Drupal.geolocation.defaultMapSettings.minZoom;map.googleMap=new google.maps.Map(map.container.get(0),{zoom:map.settings.google_map_settings.zoom,maxZoom:map.settings.google_map_settings.maxZoom,minZoom:map.settings.google_map_settings.minZoom,center,mapId:map.id,mapTypeId:google.maps.MapTypeId[map.settings.google_map_settings.type],mapTypeControlOptions:{position:google.maps.ControlPosition.RIGHT_BOTTOM},rotateControl:map.settings.google_map_settings.rotateControl,fullscreenControl:map.settings.google_map_settings.fullscreenControl,zoomControl:map.settings.google_map_settings.zoomControl,zoomControlOptions:{style:google.maps.ZoomControlStyle.LARGE,position:google.maps.ControlPosition.RIGHT_CENTER},streetViewControl:map.settings.google_map_settings.streetViewControl,streetViewControlOptions:{position:google.maps.ControlPosition.RIGHT_CENTER},mapTypeControl:map.settings.google_map_settings.mapTypeControl,styles:map.settings.google_map_settings.style,gestureHandling:map.settings.google_map_settings.gestureHandling});Drupal.geolocation.maps.push(map);google.maps.event.addListenerOnce(map.googleMap,'tilesloaded',function(){Drupal.geolocation.mapLoadedCallback(map,map.id);});return map.googleMap;};Drupal.geolocation.setMapMarker=function(map,markerSettings,skipInfoWindow){map.mapMarkers=map.mapMarkers||[];skipInfoWindow=skipInfoWindow||false;let markerLabel='';if(typeof markerSettings.label==='string'&&markerSettings.label){markerLabel=markerSettings.label;delete markerSettings.label;}
348if(markerLabel&&!markerSettings.title)markerSettings.title=markerLabel;let markerContentElement=null;if(typeof markerSettings.markerContentHtml!=='undefined'&&markerSettings.markerContentHtml){const customMarkerWrapper=document.createElement('div');customMarkerWrapper.classList.add('map-marker-wrapper');customMarkerWrapper.innerHTML=markerSettings.markerContentHtml;markerContentElement=customMarkerWrapper;}if(markerContentElement===null){let markerIconUrl=null;const markerIconScaledSize={};if(typeof markerSettings.icon!=='undefined'&&typeof markerSettings.icon.url!=='undefined'&&markerSettings.icon.url){markerIconUrl=markerSettings.icon.url;if(markerSettings.icon?.scaledSize){markerIconScaledSize.width=markerSettings.icon.scaledSize.width;markerIconScaledSize.height=markerSettings.icon.scaledSize.height;}}else{if(typeof map.settings.google_map_settings.marker_icon_path==='string'&&map.settings.google_map_settings.marker_icon_path)markerIconUrl=map.settings.google_map_settings.marker_icon_path;}if(markerIconUrl){const markerImage=document.createElement('img');markerImage.src=markerIconUrl;markerImage.classList.add('map-marker-image');if('width' in markerIconScaledSize)markerImage.width=markerIconScaledSize.width;if('height' in markerIconScaledSize)markerImage.height=markerIconScaledSize.height;delete markerSettings.icon;markerContentElement=markerImage;}if(markerLabel)if(markerContentElement!==null){const iconMarkerWrapper=document.createElement('div');iconMarkerWrapper.classList.add('map-marker-wrapper');iconMarkerWrapper.appendChild(markerContentElement);const markerText=document.createElement('div');markerText.classList.add('map-marker-wrapper-text');markerText.textContent=markerLabel;iconMarkerWrapper.appendChild(markerText);markerContentElement=iconMarkerWrapper;}else{}}const infoWindowConfig={};if(!skipInfoWindow&&typeof markerSettings.infoWindowContent!=='undefined'){infoWindowConfig.content=markerSettings.infoWindowContent;if(typeof map.settings.google_map_settings.disableAutoPan!=='undefined')infoWindowConfig.disableAutoPan=!!map.settings.google_map_settings.disableAutoPan;if(typeof markerSettings.infoWindowWidth!=='undefined')infoWindowConfig.maxWidth=markerSettings.infoWindowWidth;}delete markerSettings.icon;delete markerSettings.label;delete markerSettings.markerContentHtml;delete markerSettings.infoWindowContent;delete markerSettings.infoWindowWidth;delete markerSettings.infoWindowSolitary;
348if(typeof map.googleMap!=='undefined')markerSettings.map=map.googleMap;if(markerContentElement!==null)markerSettings.content=markerContentElement;else{if(typeof markerSettings.content!=='undefined')delete markerSettings.content;}const newMarker=new google.maps.marker.AdvancedMarkerElement(markerSettings);if(markerSettings.position)newMarker.originalPosition=markerSettings.position;if(!skipInfoWindow){const infoWindow=new google.maps.InfoWindow(infoWindowConfig);infoWindow.addListener('domready',function geolocationInfoWindowOnDomReady(){const $map=$(map.container);const $infoWindows=$map.find('[role="dialog"]');if($infoWindows.length>0)$map.trigger('geolocationInfoWindowOnDomReady',[$infoWindows.get()]);});newMarker.infoWindowObject=infoWindow;infoWindow.mapMarker=newMarker;newMarker.addListener('gmp-click',function geolocationMarkerOnClick(){const thisMarker=this;if(!('infoWindowObject' in thisMarker)||typeof thisMarker.infoWindowObject==='undefined')return;if(typeof map.infoWindow!=='undefined')map.infoWindow.close();map.infoWindow=thisMarker.infoWindowObject;thisMarker.infoWindowObject.open({anchor:thisMarker,map:thisMarker.map});});infoWindow.addListener('visible',geolocationInfoWindowOnVisible);infoWindow.addListener('close',geolocationInfoWindowOnClose);}if(map.settings.google_map_settings.info_auto_display)google.maps.event.addListenerOnce(map.googleMap,'tilesloaded',function geolocationTilesloaded(){google.maps.event.trigger(newMarker,'click');});map.mapMarkers.push(newMarker);return newMarker;};Drupal.geolocation.removeMapMarker=function(map){map.mapMarkers=map.mapMarkers||[];$.each(map.mapMarkers,function(index,item){item.setMap(null);});map.mapMarkers=[];};Drupal.geolocation.drawAccuracyIndicator=function(location,accuracy,map){const circle=new google.maps.Circle({center:location,radius:accuracy,map,fillColor:'#4285F4',fillOpacity:0.5,strokeColor:'#4285F4',strokeOpacity:1,clickable:false});map.fitBounds(circle.getBounds());function fadeCityCircles(){let fillOpacity=circle.get('fillOpacity');fillOpacity-=0.02;let strokeOpacity=circle.get('strokeOpacity');strokeOpacity-=0.04;if(strokeOpacity>0&&fillOpacity>0)circle.setOptions({fillOpacity,strokeOpacity});else circle.setMap(null);}setInterval(fadeCityCircles,100);};Drupal.geolocation.mapLoadedCallback=function(map,mapId){Drupal.geolocation.mapLoadedCallbacks=Drupal.geolocation.mapLoadedCallbacks||[];$.each(Drupal.geolocation.mapLoadedCallbacks,function(index,callbackContainer){if(callbackContainer.mapId===mapId)callbackContainer.callback(map);});};Drupal.geolocation.addMapLoadedCallback=function(callback,mapId){if(typeof mapId==='undefined')return;Drupal.geolocation.mapLoadedCallbacks=Drupal.geolocation.mapLoadedCallbacks||[];Drupal.geolocation.mapLoadedCallbacks.push({callback,mapId});};Drupal.geolocation.removeMapLoadedCallback=function(mapId){Drupal.geolocation.mapLoadedCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];$.each(Drupal.geolocation.mapLoadedCallbacks,function(index,callback){if(callback.mapId===mapId)Drupal.geolocation.mapLoadedCallbacks.splice(index,1);});};})(jQuery,Drupal,window.drupalSettings);;
349(function(Drupal){Drupal.ahsGoogleMaps=Drupal.ahsGoogleMaps||{googleLoaded:false,googleApiPromise:null};const wrapper=Drupal.ahsGoogleMaps;wrapper.getGoogleApiPromise=function(){const self=this;if(self.googleApiPromise===null)self.googleApiPromise=new Promise((resolve)=>{if(self.googleLoaded)resolve(true);Drupal.geolocation.loadGoogle(function(){self.onGoogleAPILoaded();resolve(true);});});return self.googleApiPromise;};wrapper.loadGoogleAPI=function(callback){return this.getGoogleApiPromise().then(()=>{if(callback&&typeof callback!=='undefined')callback();});};wrapper.onGoogleAPILoaded=function(){this.googleLoaded=true;};wrapper.isGoogleMapsLoaded=function(){return this.googleLoaded;};}(Drupal));;
350(function($,Drupal,drupalSettings){'use strict';Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.geocoder=Drupal.geolocation.geocoder||{};drupalSettings.geolocation=drupalSettings.geolocation||{};drupalSettings.geolocation.geocoder=drupalSettings.geolocation.geocoder||{};Drupal.geolocation.geocoder.resultCallback=function(result,elementId){Drupal.geolocation.geocoder.resultCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];$.each(Drupal.geolocation.geocoder.resultCallbacks,function(index,callbackContainer){if(callbackContainer.elementId===elementId)callbackContainer.callback(result);});};Drupal.geolocation.geocoder.addResultCallback=function(callback,elementId){if
350(typeof elementId==='undefined')return;Drupal.geolocation.geocoder.resultCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];Drupal.geolocation.geocoder.resultCallbacks.push({callback,elementId});};Drupal.geolocation.geocoder.removeResultCallback=function(elementId){Drupal.geolocation.geocoder.resultCallbacks=Drupal.geolocation.geocoder.resultCallbacks||[];$.each(Drupal.geolocation.geocoder.resultCallbacks,function(index,callback){if(callback.elementId===elementId)Drupal.geolocation.geocoder.resultCallbacks.splice(index,1);});};Drupal.geolocation.geocoder.clearCallback=function(elementId){Drupal.geolocation.geocoder.clearCallbacks=Drupal.geolocation.geocoder.clearCallbacks||[];$.each(Drupal.geolocation.geocoder.clearCallbacks,function(index,callbackContainer){if(callbackContainer.elementId===elementId)callbackContainer.callback();});};Drupal.geolocation.geocoder.addClearCallback=function(callback,elementId){if(typeof elementId==='undefined')return;Drupal.geolocation.geocoder.clearCallbacks=Drupal.geolocation.geocoder.clearCallbacks||[];Drupal.geolocation.geocoder.clearCallbacks.push({callback,elementId});};Drupal.geolocation.geocoder.removeClearCallback=function(elementId){Drupal.geolocation.geocoder.clearCallbacks=Drupal.geolocation.geocoder.clearCallbacks||[];$.each(Drupal.geolocation.geocoder.clearCallbacks,function(index,callback){if(callback.elementId===elementId)Drupal.geolocation.geocoder.clearCallbacks.splice(index,1);});};})(jQuery,Drupal,window.drupalSettings);;
351(function($,Drupal,drupalSettings,once){'use strict';if(typeof Drupal.geolocation.geocoder==='undefined')return false;drupalSettings.geolocation=drupalSettings.geolocation||{};drupalSettings.geolocation.geocoder=drupalSettings.geolocation.geocoder||{};drupalSettings.geolocation.geocoder.googleGeocodingAPI=drupalSettings.geolocation.geocoder.googleGeocodingAPI||{};Drupal.geolocation.geocoder.googleGeocodingAPI={};function googleMapsExists(){return typeof google!=='undefined'&&typeof google.maps!=='undefined';}async function ensureGoogleGeocoder(){if(typeof Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder==='undefined'&&googleMapsExists()){const {Geocoder}=await google.maps.importLibrary("geocoding");Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder=new Geocoder();}}Drupal.geolocation.geocoder.googleGeocodingAPI.loadGoogleGeocodingLibrary=async function(){if(typeof Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder==='undefined')if(!googleMapsExists())await Drupal.geolocation.loadGoogle(ensureGoogleGeocoder);else await ensureGoogleGeocoder();};async function autocompleteSource(request,response){const autocompleteResults=[];let componentRestrictions={};if(typeof drupalSettings.geolocation.geocoder.googleGeocodingAPI.components!=='undefined')componentRestrictions=drupalSettings.geolocation.geocoder.googleGeocodingAPI.components;if(typeof Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder!=='undefined')Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder.geocode({address:request.term,componentRestrictions},function autocompleteSourceGeocodeCallback(results,status){if(status===google.maps.GeocoderStatus.OK)$.each(results,function(index,result){autocompleteResults.push({value:result.formatted_address,address:result});});response(autocompleteResults);});else response([]);}function onInputListener(event){const t=event.currentTarget;const form=t.form;const sourceIdentifier=$(t).data('source-identifier');$(form).find(`.geolocation-geocoder-google-geocoding-api-state[data-source-identifier="${sourceIdentifier}"]`).val(0);Drupal.geolocation.geocoder.clearCallback(sourceIdentifier);}function onAutocompleteSelectListener(event,ui){const form=event.currentTarget.form;const sourceIdentifier=$(event.currentTarget).data('source-identifier');Drupal.geolocation.geocoder.resultCallback(ui.item.address,sourceIdentifier);$(form).find(`.geolocation-geocoder-google-geocoding-api-state[data-source-identifier="${sourceIdentifier}"]`).val(1);}Drupal.geolocation.geocoder.googleGeocodingAPI.attach=function(context){const inputs=once('googleGeocodingAPIAttach','input.geolocation-geocoder-google-geocoding-api',context);if(!inputs.length)return;
351inputs.forEach((input)=>{const $input=$(input);if(window.document.activeElement===input)Drupal.geolocation.geocoder.googleGeocodingAPI.loadGoogleGeocodingLibrary();$input.on('focus',function(){Drupal.geolocation.geocoder.googleGeocodingAPI.loadGoogleGeocodingLibrary();});$input.autocomplete({autoFocus:true,source:autocompleteSource,select:onAutocompleteSelectListener});$input.on('input',onInputListener);});};Drupal.behaviors.geolocationGeocoderGoogleGeocodingApi={attach:function(context){Drupal.geolocation.geocoder.googleGeocodingAPI.attach(context);}};})(jQuery,Drupal,window.drupalSettings,once);;
352(function(Drupal,drupalSettings){Drupal.ahsGeolocationGeocoder={geocoder:null,geocodingAddressRestrictions(){let obj={};if(typeof drupalSettings!=='undefined'&&typeof drupalSettings.geolocation!=='undefined'&&typeof drupalSettings.geolocation.geocoder!=='undefined'&&typeof drupalSettings.geolocation.geocoder.googleGeocodingAPI!=='undefined'&&typeof drupalSettings.geolocation.geocoder.googleGeocodingAPI.components==='object')obj=drupalSettings.geolocation.geocoder.googleGeocodingAPI.components;obj.country='US';return obj;},getGeocoder(){if(this.geocoder!==null)return this.geocoder;let geocoder=null;if(typeof Drupal.geolocation!=='undefined'&&typeof Drupal.geolocation.geocoder!=='undefined'&&typeof Drupal.geolocation.geocoder.googleGeocodingAPI!=='undefined'&&typeof Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder!=='undefined'&&Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder)geocoder=Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder;this.geocoder=geocoder;return this.geocoder;},setGeocoder(geocoder){this.geocoder=geocoder;Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.geocoder=Drupal.geolocation.geocoder||{};Drupal.geolocation.geocoder.googleGeocodingAPI=Drupal.geolocation.geocoder.googleGeocodingAPI||{};Drupal.geolocation.geocoder.googleGeocodingAPI.geocoder=geocoder;return geocoder;},async createGeocoder(){await Drupal.geolocation.geocoder.googleGeocodingAPI.loadGoogleGeocodingLibrary();},ensureGeocoder(){if(!this.getGeocoder())return this.createGeocoder();return Promise.resolve(this.getGeocoder());},async loadGeocoder(){const self=this;const currentGeocoder=self.getGeocoder();if(currentGeocoder!==null)return currentGeocoder;if(Drupal.ahsGoogleMaps.isGoogleMapsLoaded()){await self.ensureGeocoder();return self.getGeocoder();}await new Promise((resolve,reject)=>{Drupal.ahsGoogleMaps.loadGoogleAPI().then(resolve).catch(reject);});const existingGeocoder=self.getGeocoder();if(existingGeocoder!==null)return existingGeocoder;await self.ensureGeocoder();return self.getGeocoder();},formatAddress(addressText){return addressText?addressText.replace(/,\s?USA$/ig,'').trim():'';},buildLocationByGeocoderAddress(address,requestedLocation=null){if(typeof address!=='object')return {};if(!('address_components' in address)||typeof address.address_components==='undefined'||!Array.isArray(address.address_components)||address.address_components.length===0)return {};if(!('types' in address))return {};if(!('geometry' in address)||!('location' in address.geometry))return {};const componentMap={country:{type:'country'},state:{type:'administrative_area_level_1'},city:{type:'locality'},zip:{type:'postal_code'},street:{type:'street_address',alternateTypes:['route','intersection']}};const componentData={};address.address_components.forEach((addrComponent)=>{if(!('types' in addrComponent))return;Object.entries(componentMap).forEach(([dataProperty,compDef])=>{if(('found' in compDef)&&compDef.found)return;let preferredFound=false;if(addrComponent.types.includes(compDef.type)){compDef.found=true;preferredFound=true;if(('property' in compDef)&&(compDef.property in addrComponent))componentData[dataProperty]=addrComponent[compDef.property];else componentData[dataProperty]=addrComponent.short_name;}if(preferredFound)return;if('alternateTypes' in compDef&&compDef.alternateTypes.length>0){let altFound=false;compDef.alternateTypes.forEach((alternateType)=>{if(!altFound&&addrComponent.types.includes(alternateType)){altFound=true;if(('property' in compDef)&&(compDef.property in addrComponent))componentData[dataProperty]=addrComponent[compDef.property];else componentData[dataProperty]=addrComponent.short_name;}});}});});let location={};
352Object.entries(componentData).forEach(([dataProperty,dataValue])=>{location[dataProperty]=dataValue;});if(('state' in location)&&typeof location.state!=='undefined'&&location.state!==null)location.state=location.state.toUpperCase();if(('formatted_address' in address)&&!!address.formatted_address)location.formatted_address=this.formatAddress(address.formatted_address);location.geocoded=true;location.lat=address.geometry.location.lat();location.lng=address.geometry.location.lng();let requestedLat=null;let requestedLng=null;if(requestedLocation&&typeof requestedLocation==='object'){requestedLat=Drupal.ahsGeoHelper.getLatitude(requestedLocation);requestedLng=Drupal.ahsGeoHelper.getLongitude(requestedLocation);}location=Drupal.ahsJsGeolocationClientStorage.createLocation(location);if(requestedLat!==null&&requestedLng!==null){location.lat=requestedLat;location.lng=requestedLng;}let precision='';const precisionTypeMap={zip:['postal_code'],city:['locality'],state:['administrative_area_level_1'],country:['country']};let precisionFound=false;Object.entries(precisionTypeMap).forEach(([prec,precisionAddressTypes])=>{if(precisionFound)return;for(let t=0;t<precisionAddressTypes.length;t++){const precisionAddressType=precisionAddressTypes[t];if(address.types.includes(precisionAddressType)){precision=prec;precisionFound=true;break;}}});location.precision=precision;return location;},geocodeAddress(address){const self=this;return new Promise((resolve,reject)=>{self.loadGeocoder().then((geocoder)=>{if(!geocoder){reject(new Error('geocoder not found'));return {};}geocoder.geocode({address,componentRestrictions:self.geocodingAddressRestrictions()}).then((geocoderResult)=>{const {results}=geocoderResult;if(results&&results.length>0){const location=self.buildLocationByGeocoderAddress(results[0]);if(location){resolve(location);return location;}}resolve({});return {};}).catch(reject);}).catch(reject);});}};}(Drupal,drupalSettings));;
353(function($,Drupal,drupalSettings,window){Drupal.ahsGeolocationAddressResolver=Drupal.ahsGeolocationAddressResolver||{resolveAddressDeferreds:[]};const resolver=Drupal.ahsGeolocationAddressResolver;resolver.getGeolocationKey=function(location){return Drupal.ahsGeoHelper.geolocationKey(location);};resolver.locationHasFormattedAddress=function(location){return typeof location!=='undefined'&&('formatted_address' in location)&&!!location.formatted_address;};resolver.getCurrentResolveAddressDeferred=function(location){if(Drupal.ahsGeoHelper.locationIsEmpty(location))return null;const key=this.getGeolocationKey(location);return key in this.resolveAddressDeferreds?this.resolveAddressDeferreds[key]:null;};resolver.addressIsResolving=function(location){const deferred=this.getCurrentResolveAddressDeferred(location);return deferred&&deferred.state()==='pending';};resolver.getResolveAddressDeferred=function(location){if(Drupal.ahsGeoHelper.locationIsEmpty(location))return $.Deferred().resolve(location);const defer=this.getCurrentResolveAddressDeferred(location);if(defer)return defer;const key=this.getGeolocationKey(location);this.resolveAddressDeferreds[key]=$.Deferred();if((('geocoded' in location)&&!!location.geocoded)||this.locationHasFormattedAddress(location))this.resolveAddressDeferreds[key].resolve(location);return this.resolveAddressDeferreds[key];};resolver.resolveAddress=function(location=null){if(Drupal.ahsGeoHelper.locationIsEmpty(location))return $.Deferred().resolve(location);const self=this;const currentDeferred=self.getCurrentResolveAddressDeferred(location);if(self.addressIsResolving(location)&&currentDeferred)return currentDeferred.promise();return self.resolveAddressByLocation(location);};resolver.resolveAddressByLocation=function(location){const self=this;const currentDeferred=self.getCurrentResolveAddressDeferred(location);if(currentDeferred)return currentDeferred.promise();const deferred=self.getResolveAddressDeferred(location);if(deferred.state()!=='pending')return deferred.promise();if(Drupal.ahsGeoHelper.locationIsEmpty(location)||(('geocoded' in location)&&!!location.geocoded)||self.locationHasFormattedAddress(location))return deferred.resolve(location).promise();Drupal.ahsGeolocationGeocoder.loadGeocoder().then(function(geocoder){if(!geocoder)return self.getResolveAddressDeferred(location).reject(location).promise();geocoder.geocode({location:{lat:location.lat,lng:location.lng}},function(results,status){if(status===window.google.maps.GeocoderStatus.OK&&results&&results.length>0){const locationUpdate=Drupal.ahsGeolocationGeocoder.buildLocationByGeocoderAddress(results[0],location);if(locationUpdate)return self.getResolveAddressDeferred(location).resolve(locationUpdate);const locationEmpty=$.extend({},location,{formatted_address:'',geocoded:true});return self.getResolveAddressDeferred(location).resolve(locationEmpty);}});return self.getResolveAddressDeferred(location);});return deferred.promise();};}(jQuery,Drupal,window.drupalSettings,window));;
354(function($,Drupal,drupalSettings,window,once){'use strict';if(!Drupal.ahsSearchGeolocationWidget){Drupal.ahsSearchGeolocationWidget={isLoadingFullscreen:false,location:{},locationStorage:{},locationStorageLoaded:false,locationLoaded:false,autoSubmitGeolocationInputOnce:false,permissionDenied:false,geolocationInputSelector:'input.geolocation-geocoder-google-geocoding-api',settings:{autoFillInputOnLoad:false,autoSubmitOnLoad:true,sortsWrapperSelector:'.ahs-exposed-sort-options-wrapper',sortsGeolocationSelector:'.ahs-geolocation-sort-option'}};if('ahsSearchGeolocationWidget' in drupalSettings)$.extend(Drupal.ahsSearchGeolocationWidget.settings,drupalSettings.ahsSearchGeolocationWidget);}const widget=Drupal.ahsSearchGeolocationWidget;if(!window.localStorage){widget.settings.autoFillInputOnLoad=false;widget.settings.autoSubmitOnLoad=false;}const autoActionsStorage={cached:null};autoActionsStorage.getStorageKey=function(){const path=drupalSettings.path.currentPath||'_';const lang=drupalSettings.path.currentLanguage||'_';return `${path}__${lang}`;};
354autoActionsStorage.isExpired=function(values=null){if(typeof values==='undefined'||values===null)values=this.get();return typeof values!=='undefined'&&('timestamp' in values)&&values.timestamp&&(Date.now()-values.timestamp)>3600000;};autoActionsStorage.getAll=function(){if(this.cached!==null)return this.cached;this.cached={};if(!window.localStorage)return {};const text=window.localStorage.getItem('ah.geolocationWidgetAutoActions');if(typeof text=='undefined'||text===null)return {};let obj={};try{obj=window.JSON.parse(text);}catch(e){}if(!obj||typeof obj!=='object')return {};this.cached=obj;return obj;};autoActionsStorage.get=function(){const key=this.getStorageKey();const obj=this.getAll();return (key in obj)&&!this.isExpired(obj[key])?obj[key]:{};};autoActionsStorage.isEnabled=function(){const value=this.get();return !('enabled' in value)?true:value.enabled;};autoActionsStorage.set=function(enabled=false){if(!Drupal.ahsSite.localStorageIsAvailable())return;const key=this.getStorageKey();const obj=this.getAll();if(enabled){if(key in obj)delete obj[key];}else obj[key]={enabled:false,timestamp:Date.now()};this.cached=obj;let jsonText='';try{jsonText=JSON.stringify(obj);}catch(e){}try{if(jsonText)window.localStorage.setItem('ah.geolocationWidgetAutoActions',jsonText);else window.localStorage.removeItem('ah.geolocationWidgetAutoActions');}catch($e){}};autoActionsStorage.enable=function(){this.set(true);};autoActionsStorage.disable=function(){this.set(false);};const sortSelector={sortsCanAutoSet:false,sortFormsChanged:{}};sortSelector.isSelectOption=function($options,is_select){return typeof is_select!=='undefined'?is_select:($options.is('option')&&$options.parent('select').is('select'))||$options.is('select');};sortSelector.getAutoUnSelected=function($options){return $options.filter('[data-ahs-geolocation-sort-unchecked]');};sortSelector.enable=function($options){const is_select=this.isSelectOption($options);if(is_select)$options.removeClass('hidden').prop('disabled',false);else $options.prop('disabled',false);$options.removeAttr('data-ahs-geolocation-sort-unchecked');if(!this.isSelectOption($options))$options.closest('.form-item').removeClass('form-disabled');};sortSelector.disable=function($options){const is_select=this.isSelectOption($options);if(is_select)$options.addClass('hidden').prop('disabled',true);else $options.prop('disabled',true);this.unselect($options,is_select);if(!is_select)$options.closest('.form-item').addClass('form-disabled');};sortSelector.select=function($options,is_select){is_select=this.isSelectOption($options,is_select);const selectAction=is_select?'selected':'checked';if(is_select){if(!$options.is(`:${selectAction}`)){const $selectElement=$options.parent('select');if($selectElement.length>0)$selectElement.val($options.first().attr('value'));else $options.prop(selectAction,true);}}else{if($options.is('.form-radio')){const $radiosElement=$options.closest('.form-radios');if($radiosElement.length>0){const $otherOptions=$radiosElement.find('.form-radio').not(':disabled').not($options);if($otherOptions.length>0)$otherOptions.prop(selectAction,false);}}$options.prop(selectAction,true);}};sortSelector.unselect=function($options,is_select){is_select=this.isSelectOption($options,is_select);const selectAction=is_select?'selected':'checked';let $otherOptions;$options.filter(`:${selectAction}`).attr('data-ahs-geolocation-sort-unchecked',1);if(is_select){if($options.is(`:${selectAction}`)){const $selectElement=$options.parent('select');if($selectElement.length>0){$otherOptions=$selectElement.find('option').not(':disabled').not($options);if($otherOptions.length>0){if($otherOptions.filter(`:${selectAction}`).length===0)$selectElement.val($otherOptions.first().attr('value'));}else $selectElement.val('');}else $options.prop(selectAction,false);}}else{$options.prop(selectAction,false);if($options.is('.form-radio')&&$options.filter(`:${selectAction}`).length===0){const $radiosElement=$options.closest('.form-radios');if($radiosElement.length>0){$otherOptions=$radiosElement.find('.form-radio').not(':disabled').not($options);if($otherOptions.length>0&&$otherOptions.filter(`:${selectAction}`).length===0)$otherOptions.first().prop(selectAction,true);}}}};sortSelector.canAutoSet=function($options){if($options.length===0)return false;let $form=[];
354if('form' in $options[0])$form=$($options[0].form);else $form=$options.first().closet('form');if($form.length===0)return false;const self=this;const formId=$form.attr('id');let changed=false;if(typeof formId!=='undefined')$.each(self.sortFormsChanged,function(changedFormId){if(formId===changedFormId){changed=true;return false;}});if(changed)return false;return self.sortsCanAutoSet;};widget.getLocationDefaultProperties=function(){const props={lat:null,lng:null,formatted_address:'',city:'',state:'',zip:''};props.precision='';props.geocoded=false;return props;};widget.createLocation=function(values={}){return Drupal.ahsJsGeolocationClientStorage.createLocation(values);};widget.parseLocation=function(location){if(typeof location!=='undefined')return this.createLocation(location);return location;};widget.getPathCurrentQuery=function(){return Drupal.ahsSite.getUrlQueryParameters();};widget.hasPathCurrentQuery=function(){return !$.isEmptyObject(this.getPathCurrentQuery());};widget.localStorageOnLoad=function(){const self=this;if(!autoActionsStorage.isEnabled())if(autoActionsStorage.isExpired())autoActionsStorage.enable();else{self.settings.autoFillInputOnLoad=false;self.settings.autoSubmitOnLoad=false;}};widget.disableAutoActions=function(){const self=this;autoActionsStorage.disable();self.settings.autoFillInputOnLoad=false;self.settings.autoSubmitOnLoad=false;};widget.localStorageOnFormSubmit=function(){this.disableAutoActions();};widget.localStorageOnFormReset=function(){this.disableAutoActions();};widget.canAutoFillInput=function($input){const self=this;if($input.is('[data-search-widget-auto-fill-disabled]'))return false;if($input.data('autoActionsForcedByWidget')===true)return true;if(!self.settings.autoFillInputOnLoad||$input.data('autoFillOnLoad')!==1)return false;const autoFilled=self.inputAutoFilledByWidget($input);if(!autoFilled&&self.inputFilledByWidget($input))return false;const canFillByValue=autoFilled||$input.val()==='';if(!canFillByValue)return false;if(self.inputHasSubmittedData($input))return false;if($input.data('autoFillOnLoadForced')===1)return true;if(self.canAutoSubmitOnLoad($input))return true;return !self.hasPathCurrentQuery();};widget.canAutoSubmitOnLoad=function($input){if($input.data('autoActionsForcedByWidget')===true)return true;const self=this;return self.settings.autoSubmitOnLoad&&$input.data('autoSubmitOnLoad')===1&&$input.val()===''&&!self.inputHasSubmittedData($input);};widget.hasAjaxSubmit=function($input){return $input.data('ajaxSubmit')===1;};widget.getGeocodingInputPlaceholderText=function($input){const text=$input.data('geocodingInputPlaceholder');return typeof text!=='undefined'&&text!==null?text:'';};widget.inputFilledByWidget=function($input){return $input.hasClass('ahs-search-geolocation--filled')||this.inputAutoFilledByWidget($input);};widget.inputAutoFilledByWidget=function($input){return $input.hasClass('ahs-search-geolocation--autofilled');};widget.inputHasSubmittedData=function($input){if($input.hasClass('ahs-search-geolocation--has-submitted'))return true;const name=$input.attr('name');if(!name)return false;const query=this.getPathCurrentQuery();return name in query;};widget.getSortsGeolocationSelector=function($input){const self=this;const selector=$input.data('sortsGeolocationSelector');return typeof selector!=='undefined'&&selector!==null?selector:self.settings.sortsGeolocationSelector;};widget.sortsFindAll=function($input){const self=this;const $wrapper=$input.closest('form').find(self.settings.sortsWrapperSelector);if($wrapper.length>0)return $('option, .form-radio',$wrapper);return $wrapper;};widget.sortsFindGeolocation=function($input){const self=this;const geoSortSelector=self.getSortsGeolocationSelector($input);return geoSortSelector?self.sortsFindAll($input).filter(geoSortSelector).first():$([]);};widget.canRequestLocation=function(){return (Drupal.ahsJsGeolocationClient.canRequestClientLocation()&&(Drupal.ahsJsGeolocationClient.geolocationRetrieved()||!Drupal.ahsJsGeolocationClient.isDenied()));};widget.requestLocation=function(options){return Drupal.ahsJsGeolocationClient.requestClientLocation(options);};widget.locationIsDenied=function(){return this.permissionDenied||Drupal.ahsJsGeolocationClient.isDenied();};widget.locationIsAllowed=function(){return !this.locationIsDenied();};widget.readLocationStorage=function(){return Drupal.ahsJsGeolocationClient.getLastKnownLocation()||this.createLocation();};widget.writeLocationStorage=function(location){Drupal.ahsJsGeolocationClient.setLastKnownLocation(location);return this;};widget.deleteLocationStorage=function(){Drupal.ahsJsGeolocationClient.deleteLastKnownLocation();return this;};widget.locationIsEmpty=function(){return this.checkLocationIsEmpty(this.location);};widget.checkLocationIsEmpty=function(location){return Drupal.ahsGeoHelper.locationIsEmpty(location);};widget.locationHasFormattedAddress=function(location){return typeof location!=='undefined'&&('formatted_address' in location)&&!!location.formatted_address;};widget.locationHasAddress=widget.locationHasFormattedAddress;widget.storeLocation=function(newLocationProvided){const originalLocation=this.location||{};let update={};let changed=false;if(typeof newLocationProvided!=='undefined'){let geoChanged=false;const newLocation=this.createLocation(newLocationProvided);const defaultProps=this.getLocationDefaultProperties();$.each(newLocation,function(propName,propValue){if(propName==='lat'||propName==='lng'){const propValuePrecise=Drupal.ahsGeoHelper.preciseGeolocation(propValue);if(propValuePrecise!==null){update[propName]=propValuePrecise;if(!(propName in originalLocation)||originalLocation[propName]===null||originalLocation[propName]===''||originalLocation[propName].toFixed(2)!==propValuePrecise.toFixed(2)){geoChanged=true;changed=true;}}}});$.each(newLocation,function(propName,propValue){if(propName==='geocoded'||propName==='lat'||propName==='lng')return true;if(propName in defaultProps){if(geoChanged||!(propName in originalLocation)||(propValue!==''&&originalLocation[propName]!==propValue)){update[propName]=propValue;changed=true;}}else update[propName]=propValue;});if(changed){if(!geoChanged){update=$.extend({},originalLocation,update);if('precision' in originalLocation&&!!originalLocation.precision&&'precision' in update&&!update.precision)update.precision=originalLocation.precision;}update.geocoded=this.locationHasFormattedAddress(update);this.purgeLocation();$.extend(this.location,update);this.writeLocationStorage(this.location);this.loadLocationByStorage();$(window.document).trigger('ahsSearchLocationChanged',[this,this.location]);}}return changed;};widget.setLocationLoaded=function(newLocation){const self=this;self.locationLoaded=true;self.location=newLocation;$(window.document).trigger('ahsSearchLocationLoaded',[self,newLocation]);return this;};widget.getLocation=function(){if(this.locationIsAllowed()){if(!this.locationLoaded&&this.locationIsEmpty())this.loadLocationByStorage();return this.location;}return {};};widget.loadLocationByStorage=function(){const self=this;const storage=self.readLocationStorage();if('lat' in storage)self.setLocationLoaded(storage);};widget.clearLocation=function(){this.location={};this.locationLoaded=false;$(window.document).trigger('ahsSearchLocationChanged',[this,this.location]);return this;};widget.purgeLocation=function(location){if(typeof location==='undefined')location=this.location;$.each(location,function(prop){delete location[prop];});};widget.getState=function(){const location=this.getLocation();if(this.checkLocationIsEmpty(location))return '';return ('state' in location)?location.state:'';};widget.onGeolocationResultSuccess=function(position,newLocation){const self=this;this.permissionDenied=false;if(!self.checkLocationIsEmpty(newLocation))if(!this.locationHasFormattedAddress(newLocation))self.resolveAddress(newLocation);return self;};widget.onGeolocationResultError=function(error){if(error.code===error.PERMISSION_DENIED||Drupal.ahsJsGeolocationClient.isDenied())this.denyGeolocation();else this.permissionDenied=false;};widget.denyGeolocation=function(){this.permissionDenied=true;if(!this.locationIsEmpty()){this.deleteLocationStorage();this.clearLocation();this.clearAutoFilledGeolocationInputs();}else this.clearLocation();};widget.getAddress=function(){const location=this.getLocation();return 'formatted_address' in location?location.formatted_address:'';};widget.formatAddress=function(addressText){return Drupal.ahsGeolocationGeocoder.formatAddress(addressText);};widget.resolveAddress=function(locationInput=null){const self=this;const location=locationInput||self.getLocation();return Drupal.ahsGeolocationAddressResolver.resolveAddress(location).done(function(locationUpdated){self.storeLocation($.extend({},locationUpdated));});};widget.disableGeolocationInputs=function($inputs,placeholder){const self=this;placeholder=typeof placeholder!=='undefined'?placeholder:'';$inputs.each(function(){const $input=$(this);$input.prop('disabled',true);$input.addClass('ahs-search-geolocation--disabled');$input.closest('.form-item').addClass('form-disabled');const inputPlaceholder=placeholder||self.getGeocodingInputPlaceholderText($input);if(inputPlaceholder){let placeholderOriginal=$input.data('placeholderOriginal');if(typeof placeholderOriginal==='undefined'){placeholderOriginal=$input.attr('placeholder');placeholderOriginal=typeof placeholderOriginal!=='undefined'?placeholderOriginal:'';$input.data('placeholderOriginal',placeholderOriginal);}$input.attr('placeholder',inputPlaceholder);}});};widget.enableGeolocationInputs=function($inputs){$inputs.each(function(){const $input=$(this);const placeholderOriginal=$input.data('placeholderOriginal');if(typeof placeholderOriginal!=='undefined')$input.attr('placeholder',placeholderOriginal);$input.removeClass('ahs-search-geolocation--disabled').prop('disabled',false);$input.closest('.form-item').removeClass('form-disabled');});};widget.updateGeolocationInputs=function(context,callerOptions,locationInput){const self=this;const location=typeof locationInput!=='undefined'?locationInput:this.getLocation();const locationIsEmpty=this.checkLocationIsEmpty(location);const inputsToFill=[];context=context||window.document;if(self.locationHasFormattedAddress(location)){const options=$.extend({auto:false,reEnableInput:true,scrollToInput
354:false},callerOptions);this.getAllGeolocationInputs(context).each(function(){const $input=$(this);if(self.getForm($input).data('ahsGeolocationFormSubmitting')===true)return true;if($input.data('autoActionsForcedByWidget')===true)inputsToFill.push(this);else if(options.auto){if(self.canAutoFillInput($input)&&!locationIsEmpty)inputsToFill.push(this);}else{if($input.val()==='')inputsToFill.push(this);}});if(inputsToFill.length>0){const $inputsToFill=$(inputsToFill);if(options.scrollToInput)Drupal.ahsSite.scrollTop($inputsToFill.closest('form').first(),{topBuffer:24,noFocus:true,duration:500});self.fillGeolocationInputs($inputsToFill,location,null,options.auto);if(options.reEnableInput)self.enableGeolocationInputs($inputsToFill);}}};widget.updateOtherGeolocationInputs=function($input,location,noChangeEvent=false){if(!$input.length)return;const input=$input.get(0);const sourceId=$input.data('source-identifier');if(sourceId&&$input.data('search-widget-update-other-views-forms')){const $others=$('.views-exposed-form').not(input.form).find(`${widget.geolocationInputSelector}[data-source-identifier="${sourceId}"]`).not($input);if($others.length>0)widget.fillGeolocationInputs($others,location,false,false,noChangeEvent);}};widget.fillGeolocationInputs=function(inputs,locationProvided,skipInputValue=false,autoFill=false,noChangeEvent=false){const $inputs=$(inputs);if($inputs.length>0){const self=this;const location=self.parseLocation(locationProvided);const fillValues=$.extend({},location,{latlng:'',geocodingState:0});const locIsEmpty=self.checkLocationIsEmpty(location);if(!locIsEmpty){fillValues.lat=location.lat;fillValues.lng=location.lng;fillValues.latlng=`${fillValues.lat},${fillValues.lng}`;fillValues.geocodingState=location.formatted_address?1:0;}if(!('formatted_address' in fillValues))fillValues.formatted_address='';skipInputValue=typeof skipInputValue!=='undefined'&&skipInputValue!==null&&skipInputValue;autoFill=typeof autoFill!=='undefined'&&autoFill!==null&&autoFill;noChangeEvent=typeof noChangeEvent!=='undefined'&&noChangeEvent!==null&&noChangeEvent;const changedInputs=[];$inputs.each(function(){const $input=$(this);const sourceId=$input.data('source-identifier');const $formItem=$input.closest('.form-item');let currentVal=$input.val();if(typeof currentVal==='undefined'||currentVal===null)currentVal='';if(self.getForm($input).data('ahsGeolocationFormSubmitting')===true)return true;const changed=currentVal!==fillValues.formatted_address;if(changed)if(!skipInputValue){if(autoFill&&(locIsEmpty||!self.canAutoFillInput($input)))return true;$input.val(fillValues.formatted_address);changedInputs.push(this);}if(locIsEmpty)$input.removeClass('ahs-search-geolocation--autofilled').removeClass('ahs-search-geolocation--filled');else{$input.addClass('ahs-search-geolocation--filled');if(autoFill)$input.addClass('ahs-search-geolocation--autofilled');else $input.removeClass('ahs-search-geolocation--autofilled');}$input.data('ahsSearchGeolocationWidgetLocation',$.extend({},location));if($formItem.length>0){$formItem.siblings(`[name="${$input.attr('name')}_state"]`).val(fillValues.geocodingState);if((typeof sourceId!=='undefined')&&sourceId){const rootSourceId=sourceId.substring(0,sourceId.indexOf('['));const $sourceSiblings=$formItem.siblings('input.latlng-source');if($sourceSiblings.length>0)if($sourceSiblings.length===1)$sourceSiblings.val(fillValues.latlng);else $sourceSiblings.filter(`[name='${sourceId}']`).val(fillValues.latlng);$.each(['state','city','precision'],function(h,hiddenProp){let hiddenVal='';if((hiddenProp in fillValues)&&fillValues[hiddenProp]!==null)hiddenVal=fillValues[hiddenProp];$formItem.siblings(`.latlng-${hiddenProp}`).val(hiddenVal);});const $viewsFilterLat=$formItem.siblings(`input[name='${rootSourceId}-lat']`);if($viewsFilterLat.length>0){$viewsFilterLat.val(fillValues.lat);$formItem.siblings(`input[name='${rootSourceId}-lng']`).val(fillValues.lng);$formItem.siblings(`.form-item-${rootSourceId}-state`).find(`input[name='${rootSourceId}-state']`).val(fillValues.state);}}}self.updateGeolocationInputDependents($input,location);});if(!noChangeEvent&&changedInputs.length>0)$(changedInputs).trigger('change',[{ahsSearchGeolocationWidget:{caller:'fillGeolocationInputs',location}}]);}};widget.updateGeolocationInputDependents=function($inputs,location){this.updateLocationDistanceSelect(location,$inputs);this.updateLocationSortOptions(location,$inputs);};widget.clearGeolocationInputs=function($inputs){const self=this;const emptyLocation=this.createLocation();$inputs.filter(function(){return self.getForm($(this)).data('ahsGeolocationFormSubmitting')!==true;}).each(function(){const $input=$(this);self.fillGeolocationInputs($input,emptyLocation);$input.removeClass('ahs-search-geolocation--filled').removeClass('ahs-search-geolocation--autofilled');});return this;};widget.getAllGeolocationInputs=function(context=null){context=context||window.document;return $(this.geolocationInputSelector,context);};
354widget.clearAllGeolocationInputs=function(context){const $inputs=this.getAllGeolocationInputs(context);if($inputs.length>0)this.clearGeolocationInputs($inputs);return this;};widget.clearFilledGeolocationInputs=function(context){const $inputs=this.getAllGeolocationInputs(context).filter('.ahs-search-geolocation--filled');if($inputs.length>0)this.clearGeolocationInputs($inputs);return this;};widget.clearAutoFilledGeolocationInputs=function(context=null){const $inputs=this.getAllGeolocationInputs(context).filter('.ahs-search-geolocation--autofilled');if($inputs.length>0)this.clearGeolocationInputs($inputs);return this;};widget.buildLocationByAddressInput=function(input,useCached=false){const $input=$(input);useCached=typeof useCached!=='undefined'&&useCached;if(useCached){const storedLocation=$input.data('ahsSearchGeolocationWidgetLocation');if(typeof storedLocation==='object'&&storedLocation!==null&&storedLocation)return storedLocation;}let location={};let $latlng;let latlngInput;let latlngValues;const sourceId=$input.data('source-identifier');const $formItem=$input.closest('.form-item');if((typeof sourceId!=='undefined')&&sourceId){const rootSourceId=sourceId.substring(0,sourceId.indexOf('['));if(rootSourceId!==sourceId){$latlng=$formItem.siblings(`input.latlng-source[name='${sourceId}']`);if($latlng.length>0){latlngInput=$latlng.val();if(typeof latlngInput!=='undefined'&&latlngInput){latlngValues=latlngInput.split(',',2);if(latlngValues.length>0){location.lat=Drupal.ahsGeoHelper.preciseGeolocation(latlngValues[0].trim());if(latlngValues.length>1)location.lng=Drupal.ahsGeoHelper.preciseGeolocation(latlngValues[1].trim());}}}else{let filterLatValue=$formItem.siblings(`input[name='${rootSourceId}-lat']`).val();if(typeof filterLatValue!=='undefined'&&filterLatValue!==null){filterLatValue=parseFloat(filterLatValue);if(Number.isFinite(filterLatValue)){location.lat=filterLatValue;let filterLngValue=$formItem.siblings(`input[name='${rootSourceId}-lng']`).val();if(typeof filterLngValue!=='undefined'&&filterLngValue!==null){filterLngValue=parseFloat(filterLngValue);if(Number.isFinite(filterLngValue))location.lng=filterLngValue;}}}}location.formatted_address=$input.val();const state=$formItem.siblings(`.form-item-${rootSourceId}-state`).find(`input[name='${rootSourceId}-state']`).val();location.state=typeof state!=='undefined'&&state!==null?state:'';$.each(['state','city','precision'],function(h,hiddenProp){if(!(hiddenProp in location)||location[hiddenProp]===null||!location[hiddenProp]){let $hiddenInput=$formItem.siblings(`.latlng-${hiddenProp}`);if($hiddenInput.length===0)$hiddenInput=$formItem.siblings(`.${rootSourceId}-${hiddenProp}`);if($hiddenInput.length>0){const hiddenVal=$hiddenInput.val();if(typeof hiddenVal!=='undefined'&&hiddenVal!==null)location[hiddenProp]=hiddenVal;}}});}}location=this.parseLocation(location);$input.data('ahsSearchGeolocationWidgetLocation',location);return location;};widget.setUrlParam=function(url,name,value){name=name.replace(/[[\]]/g,"\\$&");const nameEncoded=encodeURIComponent(name);const regex=new RegExp(`([?&])${nameEncoded}=([^&#]*)(|&|#|$)`,'i');const results=regex.exec(url);const newKeyValue=`${nameEncoded}=${encodeURIComponent(value)}`;if(!results){if(url.indexOf('?')!==-1)return url.replace('?',`?${newKeyValue}&`);return `${url}?${newKeyValue}`;}if(results[2]===value)return url;const replacement=results[1]+newKeyValue+(results[3]?results[3]:'');return url.replace(results[0],replacement);};widget.updateLocationDistanceSelect=function(location,$inputs){const self=this;let distanceSelectEnabled=!self.checkLocationIsEmpty(location);if(distanceSelectEnabled)if(('precision' in location)&&!!location.precision)if(location.precision==='country'||location.precision==='state')distanceSelectEnabled=false;$inputs.each(function(){const $input=$(this);const $form=('form' in $input[0])?$($input[0].form):$input.closest('form');if($form.length>0){const currentVal=$input.val();if(distanceSelectEnabled&&currentVal!=='')$("select[name*='latlng[distance][from]']",$form).prop('disabled',false).closest('.form-item').removeClass('form-disabled');else $("select[name*='latlng[distance][from]']",$form).prop('disabled',true).closest('.form-item').addClass('form-disabled');}});};widget.updateLocationSortOptions=function(location,$inputs){const self=this;const haveLocation=!self.checkLocationIsEmpty(location);$inputs.each(function(){const $input=$(this);const geoSortSelector=self.getSortsGeolocationSelector($input);let $sorts;let $geoSorts;let $geoSortsUnchecked;let haveInputVal=false;const inputVal=$input.val();if(typeof inputVal!=='undefined'&&inputVal!==null&&inputVal)haveInputVal=true;if(geoSortSelector){$sorts=self.sortsFindAll($input);if($sorts.length>0){$geoSorts=$sorts.filter(geoSortSelector);if($geoSorts.length>
3540){const hasAutoGeoSort=$geoSorts.is('.ahs-search-auto-geolocation-sort');if(haveLocation&&(haveInputVal||hasAutoGeoSort)){$geoSortsUnchecked=sortSelector.getAutoUnSelected($geoSorts);sortSelector.enable($geoSorts);if(haveInputVal)if($geoSortsUnchecked.length>0)sortSelector.select($geoSortsUnchecked.first());else{if(sortSelector.canAutoSet($geoSorts)&&!hasAutoGeoSort)sortSelector.select($geoSorts.first());}}else sortSelector.disable($geoSorts);}$sorts.trigger('ahsSearchGeolocationWidgetSortChanged');}}});};widget.attachAjaxProgressFullscreen=function(){this.isLoadingFullscreen=true;const $body=$('body');const $existing=$body.siblings('.ahs-geolocation--ajax-progress-fullscreen');if($existing.length>0)return $existing;return $body.append($('<div class="ajax-progress ajax-progress-fullscreen ahs-geolocation--ajax-progress-fullscreen" role="progressbar">&nbsp;</div>'));};widget.removeAjaxProgressFullscreen=function(){this.isLoadingFullscreen=false;return $('.ahs-geolocation--ajax-progress-fullscreen').remove();};widget.showModalLoadingOverlay=function(message=''){Drupal.ahsSite.showModalLoadingOverlay('search-geolocation__loading-overlay',message);this.isLoadingFullscreen=true;};widget.hideModalLoadingOverlay=function(){Drupal.ahsSite.hideModalLoadingOverlay('search-geolocation__loading-overlay');this.isLoadingFullscreen=false;};widget.getForm=function(element){const $element=$(element);if($element.length>0){if('form' in $element[0])return $($element[0].form);if($element.first().prop('tagName').toUpperCase()==='FORM')return $element.first();return $element.first().closest('form');}return $([]);};widget.submitForm=function($inputs){const self=this;if($inputs.length===0)return;let $form=self.getForm($inputs);if($form===null||$form.length===0)return;$form=$form.first();if($form.data('ahsGeolocationFormSubmitting')===true)return;$form.data('ahsGeolocationFormSubmitting',true);if($form.closest('.views-exposed-form').hasClass('ahs-views-exposed-form--ajax-submit')){let $buttons=[];const $formItems=$inputs.closest('.form-item');if($formItems.length>0)$buttons=$formItems.siblings('.form-actions').find('.ahs-views-submit');if($buttons.length===0)$buttons=$form.find('.ahs-views-submit');if($buttons.length>0){const $firstButton=$buttons.first();if(!$firstButton.prop('disabled')){$firstButton.trigger('click');$form.data('ahsGeolocationFormSubmitting',false);}return;}}if(!self.isLoadingFullscreen)self.attachAjaxProgressFullscreen();$form.submit();};widget.submitFormDebounced=Drupal.debounce(($input)=>{widget.submitForm($input);},250,true);widget.updateGeolocationInputsWithCurrentLocation=function($input,updateOptions={},requestOptions={}){const self=this;const deferred=$.Deferred();self.disableGeolocationInputs($input);const hasAjaxSubmit=updateOptions.submitForm&&self.hasAjaxSubmit($input);let showLoader=function(){self.attachAjaxProgressFullscreen();};let hideLoader=function(){self.removeAjaxProgressFullscreen();};if(updateOptions.submitForm&&updateOptions.useModalLoading){let inputLoadingMessage=$input.data('autoSubmitLoadingMessage');if(typeof inputLoadingMessage==='undefined'||!inputLoadingMessage)inputLoadingMessage=Drupal.t('Please wait while we update your results for you ...');showLoader=function(){self.showModalLoadingOverlay(inputLoadingMessage);};hideLoader=function(){self.hideModalLoadingOverlay();};}showLoader();self.requestLocation(requestOptions).fail(function(){self.enableGeolocationInputs($input);window.setTimeout(function(){hideLoader();},1000);deferred.reject($input);}).done(function(geoPosition,geoLocation){self.resolveAddress(geoLocation).always(function(){self.enableGeolocationInputs($input);}).fail(function(){hideLoader();deferred.reject($input);}).done(function(newLocation){if(!self.checkLocationIsEmpty(newLocation)){$input.data('autoActionsForcedByWidget',true);self.updateGeolocationInputs($input.parent(),updateOptions,newLocation);$input.data('autoActionsForcedByWidget',false);if(updateOptions.submitForm){if(hasAjaxSubmit&&updateOptions.useModalLoading)window.setTimeout(function(){hideLoader();self.submitForm($input);self.enableGeolocationInputs($input);deferred.resolve($input);},1000);else{self.submitForm($input);deferred.resolve($input);}return;}}hideLoader();deferred.resolve($input);});});return deferred.promise();};widget.autoSubmitGeolocationInput=function($input){const self=this;if(self.autoSubmitGeolocationInputOnce)return;if(!self.settings.autoFillInputOnLoad)return;if(!self.canAutoSubmitOnLoad($input))return;if(!Drupal.ahsJsGeolocationClient.canRequestClientLocation())return;self.autoSubmitGeolocationInputOnce=true;Drupal.ahsJsGeolocationClient.queryPermissionState().done(function(){if(Drupal.ahsJsGeolocationClient.isDenied())return;self.disableAutoActions();self.updateGeolocationInputsWithCurrentLocation($input,{auto:true,scrollToInput
354:false,reEnableInput:false,submitForm:true,useModalLoading:true});});};widget.onUseMyLocationLinkClick=function(linkElement){const self=this;const $link=$(linkElement);let submitForm=$link.data('ahsSearchMyLocationSubmitsForm');submitForm=typeof submitForm!=='undefined'&&submitForm!==null?submitForm===1:true;const $input=$link.parent('.field-suffix, .form-item__suffix').siblings(self.geolocationInputSelector);if($input.length>0){$link.data('ahsSearchChangeTriggeredByMyLocationLink',true);self.updateGeolocationInputsWithCurrentLocation($input,{submitForm},{onDemand:true}).then(()=>{$link.data('ahsSearchChangeTriggeredByMyLocationLink',false);});}};widget.hideUseMyLocationLinks=function(context=null,$links=null){context=context||window.document;$links=$links||$('.ahs-search-my-location-link',context);if($links.length===0)return;const geolocationIsDenied=Drupal.ahsJsGeolocationClient.isDenied();$links.each(function(){const $link=$(this);const $fieldSuffix=$link.parent('.field-suffix');$link.addClass('hidden');$fieldSuffix.siblings('.description.visually-hidden').find('.ahs-search-geolocation--my-location-aria-description').addClass('hidden').attr('aria-hidden','true');$link.data('geolocationDenied',geolocationIsDenied);if(geolocationIsDenied&&$link.data('ahsSearchChangeTriggeredByMyLocationLink')===true){$fieldSuffix.addClass('field-suffix--long');$link.siblings('.ahs-search-geolocation--my-location-not-available').removeClass('hidden').removeAttr('aria-hidden');}else $fieldSuffix.removeClass('field-suffix--long');});};widget.showUseMyLocationLinks=function(context=null,$links=null){context=context||window.document;$links=$links||$('.ahs-search-my-location-link',context);if($links.length===0)return;const self=this;const geolocationIsDenied=Drupal.ahsJsGeolocationClient.isDenied();$links.each(function(){const $link=$(this);const $input=$link.parent('.field-suffix').siblings(self.geolocationInputSelector);if($input.length===1){if(once('ahs-search-geolocation--my-location-link-input-setup',$link).length>0){const inputId=$input.attr('id');if(typeof inputId!=='undefined'&&inputId){const linkAriaControls=$link.attr('aria-controls');if(typeof linkAriaControls==='undefined'||linkAriaControls===null)$link.attr('aria-controls',inputId);}}const linkInputAriaDescription=$link.data('inputAriaDescription');if(typeof linkInputAriaDescription!=='undefined'&&linkInputAriaDescription){const $description=$input.siblings('.description.visually-hidden');if($description.length===1){const $currentDescription=$description.find('.ahs-search-geolocation--my-location-aria-description');if($currentDescription.length===0)if($description.html().trim().length>0)$description.append(`<span class="ahs-search-geolocation--my-location-aria-description"> - ${linkInputAriaDescription}</span>`);else $description.html(`<span class="ahs-search-geolocation--my-location-aria-description">${linkInputAriaDescription}</span>`);else $currentDescription.removeClass('hidden').removeAttr('aria-hidden');}}}$link.data('geolocationDenied',geolocationIsDenied);$link.siblings('.ahs-search-geolocation--my-location-not-available').addClass('hidden').attr('aria-hidden');$link.removeClass('hidden');});};const widgetReactor={init(element){const $input=$(element);if($input.length===0)return;const input=$input.get(0);if(!input)return;if(typeof $input.data('ui-autocomplete')==='undefined'){Drupal.geolocation.geocoder.googleGeocodingAPI.attach($input.parent());if(typeof $input.data('ui-autocomplete')==='undefined')return;}$input.autocomplete('option','minLength',4);$input.autocomplete('option','delay',200);const $inputAcWidget=$input.autocomplete('widget');if($inputAcWidget.length>0)$inputAcWidget.addClass('geolocation-geocoder-google-geocoding-api-autocomplete-list');$input.data('ahsGeolocationAutocompleteSourceOriginal',$input.autocomplete('option','source'));$input.autocomplete('option','source',function ahsGeolocationAutocompleteSource(request,response){if(input)Drupal.ahsGoogleMaps.loadGoogleAPI(function ahsGeolocationAutocompleteSourceOnGoogle(){const sourceOriginal=$(input).data('ahsGeolocationAutocompleteSourceOriginal');if(typeof sourceOriginal!=='undefined'&&sourceOriginal!==null)sourceOriginal(request,response);});});},getAddressFromUi(ui){if(typeof ui!=='object'||!ui)return null;let address=null;if(typeof ui.item==='object'&&ui.item){if(typeof ui.item.address==='object'&&ui.item.address)address=ui.item.address;}else{if(typeof ui.address==='object'&&ui.address)address=ui.address;}return address;},getFormSubmitButtons($input){if($input.length===0)return $([]);const $form='form' in $input[0]?$($input[0].form):$input.closest('form');return $form.find('.ahs-views-action-submit');}
354,clearTopResult($input){$input.data('ahsGeolocationTopResult',null);},setTopResult($input,result){$input.data('ahsGeolocationTopResult',result);},getTopResult($input){return $input.data('ahsGeolocationTopResult');},allowFormSubmission($input){this.getFormSubmitButtons($input).prop('disabled',false);},preventFormSubmission($input){this.getFormSubmitButtons($input).prop('disabled',true);},onInput(event){const $input=$(event.currentTarget);const emptyLocation=widget.createLocation();this.clearTopResult($input);if(!$input.val())this.allowFormSubmission($input);else this.preventFormSubmission($input);widget.fillGeolocationInputs($input,emptyLocation,true);widget.updateOtherGeolocationInputs($input,emptyLocation);},onChange(event){const $input=$(event.currentTarget);this.allowFormSubmission($input);},onAutocompleteChange(event,ui){const $input=$(event.currentTarget);this.clearTopResult($input);this.allowFormSubmission($input);if($input.data('submitOnAutocompleteSelect')){const address=widgetReactor.getAddressFromUi(ui);if(!address){if(!$input.val())widget.submitForm($input);}else{const location=Drupal.ahsGeolocationGeocoder.buildLocationByGeocoderAddress(address);if(widget.checkLocationIsEmpty(location))widget.submitFormDebounced($input);}}},onAutocompleteSelect(event,ui){const $input=$(event.currentTarget);this.clearTopResult($input);this.allowFormSubmission($input);const address=widgetReactor.getAddressFromUi(ui);if(address!==null&&typeof address.geometry==='object'&&typeof address.geometry.location==='object'){$input.attr('aria-invalid','false');const location=Drupal.ahsGeolocationGeocoder.buildLocationByGeocoderAddress(address);if(typeof ui.item.value!=='undefined'&&ui.item.value!==null&&ui.item.value.length>0)location.formatted_address=ui.item.value;let hasChanged=true;const lastLocation=$input.data('ahsSearchGeolocationWidgetLocation');if(typeof lastLocation==='object'&&lastLocation!==null&&lastLocation)hasChanged=!Drupal.ahsGeoHelper.isSameLatLng(lastLocation,location);const noChangeEvent=true;widget.fillGeolocationInputs($input,location,false,false,noChangeEvent);widget.updateOtherGeolocationInputs($input,location,noChangeEvent);if(hasChanged&&$input.data('submitOnAutocompleteSelect')&&!widget.checkLocationIsEmpty(location)){event.preventDefault();widget.submitFormDebounced($input);}}},onAutocompleteSearch(event){const $input=$(event.currentTarget);const inputVal=$input.val();if(inputVal){const zipMatches=inputVal.match(/^(\d{1,5}
354)(?:-\d{1,4})?$/);if(zipMatches!==null&&zipMatches.length>0&&zipMatches[1].length<5){event.preventDefault();this.allowFormSubmission($input);return false;}}this.preventFormSubmission($input);},onAutocompleteResponse(event,ui){const self=this;const $input=$(event.currentTarget);self.setTopResult($input,null);if(('content' in ui)&&ui.content.length>0){const inputVal=$input.val();const zipMode=inputVal&&inputVal.match(/^(\d{1,5})(?:-\d{1,4})?$/)!==null;$.each(ui.content,function(index,item){if('label' in item&&item.label){const label=item.label.trim();if(label.toLowerCase()==='united states')item.label=Drupal.t('Keep typing to find better matches ...');else item.label=widget.formatAddress(label);}if('value' in item)if(zipMode){let zip=null;if(item.address&&('address_components' in item.address))$.each(item.address.address_components,function(addrIndex,addrComponent){if(('types' in addrComponent)&&$.inArray('postal_code',addrComponent.types)>-1)zip=addrComponent.short_name;});if(zip!==null)item.value=zip;else item.value=widget.formatAddress(item.value);}else item.value=widget.formatAddress(item.value);});if('address' in ui.content[0]&&('geometry' in ui.content[0].address)&&('location' in ui.content[0].address.geometry))self.setTopResult($input,ui.content[0]);}self.allowFormSubmission($input);},onAutocompleteClose(event){const $input=$(event.currentTarget);const topResult=this.getTopResult($input);this.clearTopResult($input);this.allowFormSubmission($input);if($input.val()!==''&&(typeof topResult!=='undefined')&&topResult!==null)$('.ui-menu-item',$input.autocomplete('instance').menu.element).first().trigger('click');},addEventListeners(element){const self=this;const $input=$(element);$input.on('input',self.onInput.bind(self)).on('change',self.onChange.bind(self)).on('autocompleteselect',self.onAutocompleteSelect.bind(self)).on('autocompletesearch',self.onAutocompleteSearch.bind(self)).on('autocompleteresponse',self.onAutocompleteResponse.bind(self)).on('autocompletechange',self.onAutocompleteChange.bind(self)).on('autocompleteclose',self.onAutocompleteClose.bind(self));}};function initSorts($input){const geoSortSelector=widget.getSortsGeolocationSelector($input);const $sorts=widget.sortsFindAll($input);$sorts.change(function(){if('form' in this){const $form=$(this.form);const formId=$form.attr('id');if(typeof formId!=='undefined')sortSelector.sortFormsChanged[formId]=true;}});const $autoSorts=$sorts.filter(`${geoSortSelector}.ahs-search-auto-geolocation-sort`);if($autoSorts.length>0){$autoSorts.change(function(){let $context;if('form' in this)$context=$(this.form);else $context=$(this).closest('form');if($context.length>0){const $inputs=$context.find(this.geolocationInputSelector);if($inputs.length>0)widget.updateGeolocationInputsWithCurrentLocation($inputs.first(),{scrollToInput:false,submitForm:true});}});const $autoSortOtherRadios=$autoSorts.closest('.form-item').siblings('.form-item').find('.form-radio');$autoSortOtherRadios.change(function(){const $sort=$(this);let $context;if('form' in this)$context=$(this.form);else $context=$sort.closest('form');if($context.length>0)widget.submitForm($sort);});}}if(once('ahs-search-geolocation--on-page-load','html').length>0){$(window.document).on('ahsJsGeolocationClientRequestLimitExceeded',function(event,ahsJsGeolocationClient){if(ahsJsGeolocationClient.isAllowed()){widget.permissionDenied=false;widget.readLocationStorage();}else widget.denyGeolocation();});$(window.document).on('ahsSearchLocationLoaded ahsSearchLocationChanged',function(event,triggeringWidget){const context=this;const locationIsEmpty=triggeringWidget.locationIsEmpty();const canRequestLocation=triggeringWidget.canRequestLocation();if((locationIsEmpty&&!canRequestLocation)||Drupal.ahsJsGeolocationClient.isDenied())triggeringWidget.hideUseMyLocationLinks();else{if(!locationIsEmpty||(canRequestLocation&&event.type!=='ahsSearchLocationLoaded'))triggeringWidget.showUseMyLocationLinks();}if(locationIsEmpty)triggeringWidget.clearAutoFilledGeolocationInputs(context);});}if('ahsJsGeolocationClient' in Drupal){if('addGeolocationResultSuccessCallback' in Drupal.ahsJsGeolocationClient)Drupal.ahsJsGeolocationClient.addGeolocationResultSuccessCallback(function(position,newLocation){widget.onGeolocationResultSuccess(position,newLocation);});if('addGeolocationResultErrorCallback' in Drupal.ahsJsGeolocationClient)Drupal.ahsJsGeolocationClient.addGeolocationResultErrorCallback(function(error){widget.onGeolocationResultError(error);});}Drupal.behaviors.ahsSearchGeolocationWidget={attach:function(context){const isPageLoad=context===window.document;if(isPageLoad)widget.localStorageOnLoad();const inputs=once('ahs-search-geolocation--init',widget.geolocationInputSelector,context);const pendingAutoSubmitInputs=[];
354inputs.forEach((input)=>{const $input=$(input);const inputLocation=widget.buildLocationByAddressInput($input,true);if(isPageLoad&&widget.canAutoSubmitOnLoad($input))pendingAutoSubmitInputs.push($input);if(typeof $input.data('ui-autocomplete')==='undefined')$input.on('autocompletecreate',(event)=>{widgetReactor.init(event.currentTarget);});else widgetReactor.init($input);widgetReactor.addEventListeners($input);initSorts($input);widget.updateGeolocationInputDependents($input,inputLocation);const $form='form' in $input[0]?$($input[0].form):$input.closest('form');if($form.length>0){$form.find('.ahs-views-action-reset').on('click mousedown keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;widget.localStorageOnFormReset();});$form.find('.ahs-views-action-submit').on('click mousedown keydown',function(event){if(event.type==='keydown'&&event.which!==13)return;widget.localStorageOnFormSubmit();});}});const $useMyLocationLinks=$(once('ahs-search-geolocation--init','.ahs-search-my-location-link',context));if($useMyLocationLinks.length>0){if(Drupal.ahsJsGeolocationClient.isDenied())widget.hideUseMyLocationLinks(null,$useMyLocationLinks);else Drupal.ahsJsGeolocationClient.queryPermissionState().done(function(){if(Drupal.ahsJsGeolocationClient.isDenied()||!widget.canRequestLocation())widget.hideUseMyLocationLinks(null,$useMyLocationLinks);else widget.showUseMyLocationLinks(null,$useMyLocationLinks);});$useMyLocationLinks.on('keydown',function(event){const key=event.key.toUpperCase();if(key==='ENTER'||key===' '||key==='SPACEBAR'){event.preventDefault();widget.onUseMyLocationLinkClick(this);}}).on('click',function(event){event.preventDefault();widget.onUseMyLocationLinkClick(this);});}widget.getLocation();if(isPageLoad&&pendingAutoSubmitInputs.length>0)if(once('ahsSearchGeolocationRequestClientGeolocation','html').length>0){let $autoSubmitInput=null;const $navs=$('nav');pendingAutoSubmitInputs.forEach(($input)=>{if($autoSubmitInput===null&&$navs.find($input).length===0)$autoSubmitInput=$input;});if($autoSubmitInput!==null)widget.autoSubmitGeolocationInput($autoSubmitInput);}}};})(jQuery,Drupal,window.drupalSettings,window,once);;
355(function($,Drupal,drupalSettings,window,once){'use strict';const ns='ahsSearchPhysicianAutocomplete';let mApiIsAlive=true;const mAllowSelectDrilldown=false;function redirect(url){if(url&&url!==null)if('assign' in window.location)window.location.assign(url);else window.location=url;}function ucfirst(text){if(text.length>0)return text.charAt(0).toUpperCase()+(text.length>1?text.slice(1).toLowerCase():'');return '';}function renderItem(ul,item){if(!('labelMarkup' in item))return $([]);const $li=$("<li>");const $wrapper=$('<a>');let $details=$wrapper;if(('photoMarkup' in item)&&item.photoMarkup){$wrapper.addClass('ui-menu-item-wrapper--with-image');$wrapper.append(`<div class="physician-autocomplete-image">${item.photoMarkup}</div>`);$details=$('<div class="physician-autocomplete-details">');$wrapper.append($details);}$details.append(`<div class="physician-autocomplete-label">${item.labelMarkup}</div>`);if(('specialties' in item)&&item.specialties)$.each(item.specialties,function(s,specialty){$details.append(`<div class="physician-autocomplete-specialty">${specialty}</div>`);});$li.append($wrapper);$li.appendTo(ul);return $li;}function renderMenu(ul,items,widget){let currentCategory="";$.each(items,function(index,item){if(item.category!==currentCategory){ul.append(`<li class='ui-autocomplete-category'>${item.category}</li>`);currentCategory=item.category;}const li=widget._renderItemData(ul,item);if(item.category)li.attr("aria-label",`${item.category} : ${item.label}`);});}function getSettings(){if(drupalSettings&&(ns in drupalSettings)&&typeof drupalSettings[ns]!=='undefined')return drupalSettings[ns];return {};}function getAutocompleteApiUrl(){const settings=getSettings();return 'apiUrl' in settings?settings.apiUrl:'';}function getProviderPlaceholderImageMarkup(){const settings=getSettings();return ('providerPlaceholderImageMarkup' in settings)&&settings.providerPlaceholderImageMarkup?settings.providerPlaceholderImageMarkup:'';}function getNpiUrl(npi,nameSearch){let url='';if(typeof npi!=='undefined'&&npi!==null&&npi){url=`${window.location.protocol}//${window.location.hostname}/npi/${npi}`;const query={};if(typeof nameSearch!=='undefined'&&nameSearch)query.providerName=nameSearch;if(window.location.search){const listFilters=window.location.search.substring(1);if(listFilters)query.listFilters=listFilters;}if(!$.isEmptyObject(query))url+=`?${$.param(query)}`;}return url;}function apiIsAlive(){return mApiIsAlive;}function setApiIsAlive(alive){mApiIsAlive=typeof alive==='undefined'?true:(!!alive);return mApiIsAlive;}function canAutocomplete(){return !!(apiIsAlive()&&getAutocompleteApiUrl());}function buildProviderImageMarkup(imageUrl){return imageUrl?`<img alt='Physician Portrait' src='${imageUrl}' />`:'';}function highlight(markup){return markup.replace(/<em>/ig,'<strong class="physician-autocomplete-highlight">').replace(/<\/em>/ig,'</strong>');}function removeTrailingCredentials(text){return text.replace(/(,\s?[A-Z][^,]+)+$/,'');}function convertDisplayNameToValue(text){return removeTrailingCredentials(text.trim());}function processCategoryLabel(catKey){return ucfirst(catKey.trim());}function categoryIsDisplayed(catLabel){return catLabel==='Specialty'||catLabel==='Providers'||catLabel==='Keywords';}function buildAutocompleteItem(sourceItem,categoryLabel){const item={};item.data=sourceItem;item.category=categoryLabel;if(('value' in sourceItem))item.value=sourceItem.value;if(('label' in sourceItem))item.label=sourceItem.label;else{if(('value' in item))item.label=item.value;}if(categoryLabel==='Providers'){if(!('npi' in sourceItem)||typeof sourceItem.npi==='undefined'||!sourceItem.npi)return {};if(!('value' in sourceItem)&&('displayName' in sourceItem)&&sourceItem.displayName){item.value=convertDisplayNameToValue(sourceItem.displayName);item.label=sourceItem.displayName;}if('photoURL' in sourceItem&&typeof sourceItem.photoURL!=='undefined'&&sourceItem.photoURL)item.photoMarkup=buildProviderImageMarkup(sourceItem.photoURL);else item.photoMarkup=getProviderPlaceholderImageMarkup();const specialties={};if(('specialty' in sourceItem)&&!$.isEmptyObject(sourceItem.specialty))$.each(sourceItem.specialty,function(i,specialty){specialties[specialty]=specialty;});if(('hl' in sourceItem)&&!$.isEmptyObject(sourceItem.hl))$.each(sourceItem.hl,function(h,hValue){if(!$.isPlainObject(hValue)){item.labelMarkup=highlight(hValue);return false;}if(('field' in hValue)&&('name' in hValue.field)&&('snipplets' in hValue)&&!$.isEmptyObject(hValue.snipplets)){const hlName=hValue.field.name.toLowerCase();if(hlName==='specialties')$.each(hValue.snipplets,function(s,snipplet){const specialtyPlain=$(`<div>${snipplet}</div>`).text();if((specialtyPlain in specialties))specialties[specialtyPlain]=highlight(snipplet);});else{if(hlName==='displayname')$.each(hValue.snipplets,function(s,snipplet){item.labelMarkup=highlight(snipplet);return false;});}}});item.specialties=specialties;}else{if(('hl' in sourceItem)&&!$.isEmptyObject(sourceItem.hl))item.labelMarkup=highlight(sourceItem.hl[0]);}
355if(!('labelMarkup' in item)&&('label' in item))item.labelMarkup=item.label;return item;}function buildAutocompleteItems(apiData){if(!$.isPlainObject(apiData))return [];const output=[];const uniqueValues={};$.each(apiData,function(catKey,catItems){if(catItems.length>0){const catLabel=processCategoryLabel(catKey);if(!categoryIsDisplayed(catLabel))return true;if(!(catLabel in uniqueValues))uniqueValues[catLabel]={};$.each(catItems,function(i,catItem){const item=buildAutocompleteItem(catItem,catLabel);if(item.value!==null&&item.value&&!(item.value in uniqueValues[catLabel])){uniqueValues[catLabel][item.value]=true;output.push(item);}});}});return output;}function triggerAutocompleteSearch(input){const $input=$(input).first();if($input.data(`${ns}TriggerSearch`)!==true){$input.data(`${ns}TriggerSearch`,true);if((typeof $input[ns]==='function')&&$input.data(`${ns}State`)!=='open')$input[ns]('search');$input.data(`${ns}TriggerSearch`,false);}}function getLastResponseAutocompleteItems($element){if($element.length>0){const cache=$element.data(`${ns}LastResponse`);if(typeof cache!=='undefined'&&cache!==null)return cache;}return null;}function autocompleteSource(request,response){if(!apiIsAlive()){response([]);return;}if(!('term' in request)||!request.term){response([]);return;}const queryTerm=request.term.trim();if(!queryTerm){response([]);return;}const widget=typeof this!=='undefined'&&this!==window?this:{};const $element=('element' in widget)?$(widget.element):$([]);const cache=getLastResponseAutocompleteItems($element);if(cache!==null&&cache.queryTerm&&cache.queryTerm===queryTerm){if(cache.items)response(cache.items);else response([]);return;}const apiUrl=getAutocompleteApiUrl();if(!apiUrl){response([]);return;}$.ajax({url:apiUrl,data:{terms:queryTerm},dataType:'json',cache:false,crossDomain:true,timeout:5000}).done(function(data){const items=buildAutocompleteItems(data);if($element.length>0)$element.data(`${ns}LastResponse`,{queryTerm,items});response(items);}).fail(function(){setApiIsAlive(false);response([]);});}function autocompleteSelect(event,ui){if(('data' in ui.item)&&('npi' in ui.item.data)&&ui.item.data.npi){const url=getNpiUrl(ui.item.data.npi,ui.item.value);if(url){event.preventDefault();redirect(url);return false;}}if(mAllowSelectDrilldown){const $input=$(event.target);if((typeof $input[ns]==='function')&&$input[ns]('option','selectDrilldown')===true)window.setTimeout(function(){triggerAutocompleteSearch($input);},100);}}function setupAutocompleteWidget(){if(typeof $.fn[ns]==='function')return;$.widget(`custom.${ns}`,$.ui.autocomplete,{_create:function(){this._super();this.widget().menu("option","items","> :not(.ui-autocomplete-category)");},_renderMenu:function(ul,items){const widget=this;return renderMenu(ul,items,widget);},_renderItem:function(ul,item){return renderItem(ul,item);},options:{classes:{'ui-autocomplete':"physician-autocomplete"},minLength:2,delay:200,source:autocompleteSource,selectDrilldown:false,select:autocompleteSelect,open:function(){$(this).data(`${ns}State`,'open');},close:function(){$(this).data(`${ns}State`,'closed');}}});}Drupal.behaviors[ns]={attach:function attach(context){if(canAutocomplete()){setupAutocompleteWidget();const $inputs=$(once(ns,'.physician-search-autocomplete-input',context));if($inputs.length>0)$inputs[ns]().on('focus',function(){const val=$(this).val();if(val!==''&&val!==null)triggerAutocompleteSearch(this);});}}};})(jQuery,Drupal,window.drupalSettings,window,once);;
356(($,Drupal,drupalSettings,once)=>{if(!Drupal.autocomplete)return;const autocomplete={};autocomplete.getSettings=(input,globalSettings)=>{globalSettings=globalSettings||drupalSettings||{};const settings={auto_submit:false,delay:0,min_length:1,selector:':submit'};const search=$(input).data('search-api-autocomplete-search');if(search&&globalSettings.search_api_autocomplete&&globalSettings.search_api_autocomplete[search])$.extend(settings,globalSettings.search_api_autocomplete[search]);return settings;};Drupal.behaviors.searchApiAutocomplete={attach(context,settings){const s='.ui-autocomplete-input[data-search-api-autocomplete-search]';$(once('search-api-autocomplete',s,context)).each(function foreach(){const uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;const $element=uiAutocomplete.menu.element;$element.data('search-api-autocomplete-input-id',this.id);$element.addClass('search-api-autocomplete-search');$element.attr('tabindex','-1');const elementSettings=autocomplete.getSettings(this,settings);if(elementSettings.delay)uiAutocomplete.options.delay=elementSettings.delay;if(elementSettings.min_length)uiAutocomplete.options.minLength=elementSettings.min_length;const oldSelect=uiAutocomplete.options.select;uiAutocomplete.options.select=function select(event,ui,...args){if(ui.item.url){if(event.keyCode===9)return false;window.location.href=ui.item.url;return false;}const ret=oldSelect.apply(this,[event,ui,...args]);if(elementSettings.auto_submit&&elementSettings.selector)$(elementSettings.selector,this.form).trigger('click');return ret;};});}};Drupal.SearchApiAutocomplete=autocomplete;})(jQuery,Drupal,drupalSettings,once);;
357(function(Drupal,once){'use strict';function onSubmitClick(){const submitButton=this;submitButton.classList.add('submitting');const actionsWrapper=submitButton.closest('.search-header-form__actions');if(actionsWrapper)actionsWrapper.classList.add('submitting');}Drupal.behaviors.ahsSearchHeaderForm={attach:function(context){const submitButtons=once('ahsSearchHeaderForm','.search-header-form__submit',context);submitButtons.forEach((submitButton)=>{submitButton.addEventListener('click',onSubmitClick);});}};})(Drupal,once);;
358(function(Drupal){Drupal.behaviors.ahsFormstackAnalytics={attach:function(context){if(context===window.document&&typeof window.FSATracker==='undefined'){(function(t,e,n,r,a){var c,i=e[a]=e[a]||{init:function(t){function e(t){i[t]=function(){i.q.push([t,[].slice.call(arguments,0)]);};}var n,r;i.q=[],n="addListener track".split(" ");for(r in n)e(n[r]);i.q.push(["init",[t||{}]]);}},s=t.createElement(r);s.async=1,s.src=n,c=t.getElementsByTagName(r)[0],c.parentNode.insertBefore(s,c);})(document,window,"https://formstack.com/js/fsa.js","script","FSATracker");if(typeof window.FSATracker!=='undefined')window.FSATracker.init({account:"787875",endpoint:"https://analytics.formstack.com"});}}};}(Drupal));;
359(function(Drupal,once){Drupal.behaviors.ahsSkaiAnalytics={attach:function(context){once('ahsSkaiAnalytics','html',context).forEach(function(){const sanitizeString=function(str){if(!str)return '';str=String(str).trim();str=str.replace(/<[^>]*>/g,'');const div=document.createElement('div');div.textContent=str;str=div.innerHTML;str=str.replace(/[<>"'`]/g,'');str=str.substring(0,500);return str;};const skaiParams={prof:'Integer',camp:'Integer',kct:'String',kchid:'Integer',criteriaid:'String',campaignid:'Integer',locphy:'Integer',adgroupid:'Integer',adpos:'Integer',cid:'Integer',networkType:'String',kdv:'String',kext:'String',kpg:'Integer',kadtype:'String',kmc:'Integer',kpid:'String',queryStr:'String',npclid:'String'};
359const urlParams=new URLSearchParams(window.location.search);const skaiData={};let hasValidParams=false;Object.keys(skaiParams).forEach(function(param){if(urlParams.has(param)){const value=urlParams.get(param);const type=skaiParams[param];if(type==='Integer'){const intValue=parseInt(value,10);if(!Number.isNaN(intValue)&&String(intValue)===value){skaiData[param]=intValue;hasValidParams=true;}}else{if(type==='String'){const sanitizedValue=sanitizeString(value);if(sanitizedValue!==''){skaiData[param]=sanitizedValue;hasValidParams=true;}}}}});if(hasValidParams)try{localStorage.setItem('skai',JSON.stringify(skaiData));}catch(e){}});}};}(Drupal,once));;
360(function($,Drupal,once){Drupal.behaviors.betterExposedFiltersAutoSubmit={attach:function(context){var selectors='form[data-bef-auto-submit-full-form], [data-bef-auto-submit-full-form] form, [data-bef-auto-submit]';$(selectors,context).addBack(selectors).each(function(i,e){const $e=$(e);let $needsAutoSubmit=$e;let autoSubmitDelay=500;if(e.hasAttribute('data-bef-auto-submit-delay'))autoSubmitDelay=$e.data('bef-auto-submit-delay');else{if(!e.hasAttribute('data-bef-auto-submit-full-form')){const $container=$e.closest('[data-bef-auto-submit-full-form]');if($container.length&&$container.get(0).hasAttribute('data-bef-auto-submit-delay')){$needsAutoSubmit=$container;autoSubmitDelay=$container.data('bef-auto-submit-delay');}}}autoSubmitDelay=autoSubmitDelay||500;$(once('bef-auto-submit',$needsAutoSubmit)).on('change',triggerSubmit).on('keyup',Drupal.debounce(triggerSubmit,autoSubmitDelay));});function triggerSubmit(e){var ignoredKeyCodes=[16,17,18,20,33,34,35,36,37,38,39,40,9,13,27];var $target=$(e.target);var $submit=$target.closest('form').find('[data-bef-auto-submit-click]');if($target.is('[data-bef-auto-submit-exclude], :submit'))return true;if($target.is(':text:not(.hasDatepicker), textarea')&&$.inArray(e.keyCode,ignoredKeyCodes)===-1)$submit.click();else{if(e.type==='change')$submit.click();}}}};}(jQuery,Drupal,once));;
361(function($,Drupal,once){'use strict';Drupal.behaviors.ahsViewsBefAutoSubmit={attach:function(context){const $triggers=$('[data-bef-auto-submit]:not([data-bef-auto-submit-exclude]):not(.hidden):not(.physicians-search-sort-form__sort)',context);if($triggers.length===0)return;$(once('ahs-views-bef-auto-submit',$triggers)).not('.views-exposed-form').each(function(){const $t=$(this);const $form=$t.closest('.views-exposed-form');if($form.length>0&&$form.is(':not(.ahs-views-exposed-form--ajax-submit)')&&$form.filter('[data-bef-auto-submit]').length===0)$t.on('change',function(){const form=this.form;let canAddSpinner=true;if(form){const ajaxViewInstance=Drupal.ahsViewsHelper.findAjaxViewsInstanceByExposedForm(form);canAddSpinner=!ajaxViewInstance;}if(canAddSpinner)$('body').append($('<div class="ajax-progress ajax-progress-fullscreen ahs-views--ajax-progress-fullscreen" role="progressbar">&nbsp;</div>'));});});}};})(jQuery,Drupal,once);;
362(function($,Drupal,once){'use strict';Drupal.behaviors.ahsViewsExposedFormPersistentFacetsNonAjax={attach:function(context){$(once('ahsViewsExposedFormPersistentFacetsNonAjaxOnChange','[data-views-reset-facets-onchange]',context)).on('change',function(){let $form;if('form' in this)$form=$(this.form);else $form=$(this).closest('form');if($form.length>0)$form.find('.exposed-facets-container').empty();});}};})(jQuery,Drupal,once);;
363/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
364(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: ski
364pping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
364if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
364try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=parseJSON(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
364if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
364);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));;
365/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
366(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);;
367(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1).replace(/q=[^&]+&?|page=[^&]+&?|&?render=[^&]+/,'');if(queryString!=='')queryString=(/\?/.test(ajaxPath)?'&':'?')+queryString;}this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;this.$exposed_form=$(`form[id^="views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}"]`);if(once('exposed-form',this.$exposed_form).length)this.attachExposedFormAjax();once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEach(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;const pendingForms=once('exposed-form-attach',this.$exposed_form);if(!pendingForms.length)return;this.exposedFormAjax=this.exposedFormAjax||[];$(pendingForms).find('input[type=submit], button[type=submit], input[type=image]').not('[data-drupal-selector=edit-reset]').not('[data-views-ajax-submit-disabled]').each(function(){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax.push(Drupal.ajax(selfSettings));});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.viewsScrollTop=function(ajax,response){Drupal.AjaxCommands.prototype.scrollTop(ajax,response);};})(jQuery,Drupal,drupalSettings);;
368(function($,Drupal){"use strict";Drupal.ahsViewsAjax=Drupal.ahsViewsAjax||{disabledOnce:false};Drupal.ahsViewsAjax.disableScrollTopOnce=function(){this.disabledOnce=true;};const original=Drupal.AjaxCommands.prototype.scrollTop;Drupal.AjaxCommands.prototype.scrollTop=function(ajax,response){if(!response.selector){original(ajax,response);return;}if(('options' in ajax)&&typeof ajax.options!=='undefined'&&('data' in ajax.options)&&typeof ajax.options.data!=='undefined'&&('view_name' in ajax.options.data)&&typeof ajax.options.data.view_name!=='undefined'&&ajax.options.data.view_name)if(Drupal.ahsViewsAjax.disabledOnce)Drupal.ahsViewsAjax.disabledOnce=false;else if(typeof Drupal.ahsSite?.scrollTop==='function'){const $responseTarget=$(response.selector);if($responseTarget.length===0){original(ajax,response);return;}const offset=$responseTarget.offset();let $scrollable=$responseTarget;while($scrollable.scrollTop()===0&&$scrollable.parent().length>0)$scrollable=$scrollable.parent();if(offset.top-10<$scrollable.scrollTop()){let $scrollTarget=$responseTarget;if($responseTarget.hasClass('view')){const $viewResultsHeader=$responseTarget.find('.search-results-header');if($viewResultsHeader.length>0)$scrollTarget=$viewResultsHeader;else{const $viewResults=$responseTarget.find('.search-results');if($viewResults.length>0)$scrollTarget=$viewResults;}}Drupal.ahsSite.scrollTop($scrollTarget,{topBuffer:10,duration:500});}}else original(ajax,response);else original(ajax,response);};})(jQuery,Drupal);;
369(function($,Drupal){Drupal.behaviors.betterExposedFilters={attach:function(context){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context);}).filter(':checked').closest('.form-item',context).addClass('highlight');}};function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight');}})(jQuery,Drupal);;
370(function(){Drupal.behaviors.dataLayer={langPrefixes:function langPrefixes(){var languages=Drupal.settings.dataLayer.languages,langList=[];for(var lang in languages)if(languages[lang].prefix!=='')langList.push(languages[lang].prefix);return langList;},attach:function(){return;}};})();;
371((Drupal,drupalSettings)=>{Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=(context,drupalSettings)=>{if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;let extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!=='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;const pattern=/^(([^:]+?\.)*)([^.:]+)((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;const host=window.location.host.replace(pattern,'$2$3$6');const subdomain=window.location.host.replace(host,'');let subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');let whitelistedDomains=false;
371if(drupalSettings.data.extlink.whitelistedDomains){whitelistedDomains=[];for(let i=0;i<drupalSettings.data.extlink.whitelistedDomains.length;i++)whitelistedDomains.push(new RegExp(`^https?:\\/\\/${drupalSettings.data.extlink.whitelistedDomains[i].replace(/(\r\n|\n|\r)/gm,'')}.*$`,'i'));}const internalLink=new RegExp(`^https?://([^@]*@)?${subdomains}${host}`,'i');let extInclude=false;if(drupalSettings.data.extlink.extInclude)extInclude=new RegExp(drupalSettings.data.extlink.extInclude.replace(/\\/,'\\'),'i');let extExclude=false;if(drupalSettings.data.extlink.extExclude)extExclude=new RegExp(drupalSettings.data.extlink.extExclude.replace(/\\/,'\\'),'i');let extExcludeNoreferrer=false;if(drupalSettings.data.extlink.extExcludeNoreferrer)extExcludeNoreferrer=new RegExp(drupalSettings.data.extlink.extExcludeNoreferrer.replace(/\\/,'\\'),'i');let extCssExclude=false;if(drupalSettings.data.extlink.extCssExclude)extCssExclude=drupalSettings.data.extlink.extCssExclude;let extCssInclude=false;if(drupalSettings.data.extlink.extCssInclude)extCssInclude=drupalSettings.data.extlink.extCssInclude;let extCssExplicit=false;if(drupalSettings.data.extlink.extCssExplicit)extCssExplicit=drupalSettings.data.extlink.extCssExplicit;const externalLinks=[];const mailtoLinks=[];const telLinks=[];const extlinks=context.querySelectorAll('a:not([data-extlink]), area:not([data-extlink])');extlinks.forEach((el)=>{try{let url='';if(typeof el.href==='string')url=el.href.toLowerCase();else{if(typeof el.href==='object')url=el.href.baseVal;}const isExtCssIncluded=extCssInclude&&(el.matches(extCssInclude)||el.closest(extCssInclude));if(url.indexOf('http')===0&&((!internalLink.test(url)&&!(extExclude&&extExclude.test(url)))||(extInclude&&extInclude.test(url))||isExtCssIncluded)&&!(extCssExclude&&el.matches(extCssExclude))&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit))){let match=false;if(!isExtCssIncluded&&whitelistedDomains){for(let i=0;i<whitelistedDomains.length;i++)if(whitelistedDomains[i].test(url)){match=true;break;}}if(!match)externalLinks.push(el);}else{if(el.tagName!=='AREA'&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit)))if(url.indexOf('mailto:')===0)mailtoLinks.push(el);else{if(url.indexOf('tel:')===0)telLinks.push(el);}}}catch(error){return false;}});const hasExtIcon=drupalSettings.data.extlink.extClass!=='0'&&drupalSettings.data.extlink.extClass!=='';const hasAdditionalExtClasses=drupalSettings.data.extlink.extAdditionalLinkClasses!=='';Drupal.extlink.applyClassAndSpan(externalLinks,'ext',hasExtIcon?extIconPlacement:null);if(hasAdditionalExtClasses)Drupal.extlink.applyClassAndSpan(externalLinks,drupalSettings.data.extlink.extAdditionalLinkClasses,null);const hasMailtoClass=drupalSettings.data.extlink.mailtoClass!=='0'&&drupalSettings.data.extlink.mailtoClass!=='';const hasAdditionalMailtoClasses=drupalSettings.data.extlink.extAdditionalMailtoClasses!=='';if(hasMailtoClass)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.mailtoClass,extIconPlacement);if(hasAdditionalMailtoClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalMailtoClasses,null);const hasTelClass=drupalSettings.data.extlink.telClass!=='0'&&drupalSettings.data.extlink.telClass!=='';const hasAdditionalTelClasses=drupalSettings.data.extlink.extAdditionalTelClasses!=='0'&&drupalSettings.data.extlink.extAdditionalTelClasses!=='';if(hasTelClass)Drupal.extlink.applyClassAndSpan(telLinks,drupalSettings.data.extlink.telClass,extIconPlacement);if(hasAdditionalTelClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalTelClasses,null);if(drupalSettings.data.extlink.extTarget){externalLinks.forEach((link,i)=>{if(!(drupalSettings.data.extlink.extTargetNoOverride&&link.matches('a[target]')))externalLinks[i].setAttribute('target','_blank');});externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noopener');return;}if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)externalLinks[i].setAttribute('rel',`${val} noopener`);else{}else externalLinks[i].setAttribute('rel',`${val} noopener`);});}if(drupalSettings.data.extlink.extNofollow)externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');
371if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','nofollow');return;}let target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)externalLinks[i].setAttribute('rel',`${val} nofollow`);});if(drupalSettings.data.extlink.extTitleNoOverride===false)externalLinks.forEach((link,i)=>{const oldTitle=link.getAttribute('title');let newTitle=drupalSettings.data.extlink.extTarget?drupalSettings.data.extlink.extTargetAppendNewWindowLabel:'';if(oldTitle!==null){if(Drupal.extlink.hasNewWindowText(oldTitle))return;newTitle=Drupal.extlink.combineLabels(oldTitle,newTitle);}if(newTitle)externalLinks[i].setAttribute('title',newTitle);});if(drupalSettings.data.extlink.extNoreferrer)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extExcludeNoreferrer&&extExcludeNoreferrer.test(link.getAttribute('href')))return;const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noreferrer');return;}externalLinks[i].setAttribute('rel',`${val} noreferrer`);});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||(()=>{if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);});const _that=this;Drupal.extlink.handleClick=function(event){const shouldNavigate=Drupal.extlink.popupClickHandler.call(_that,event);if(typeof shouldNavigate!=='undefined'&&!shouldNavigate)event.preventDefault();};externalLinks.forEach((val,i)=>{externalLinks[i].removeEventListener('click',Drupal.extlink.handleClick);externalLinks[i].addEventListener('click',Drupal.extlink.handleClick);});};Drupal.extlink.hasNewWindowText=function(label){return label.toLowerCase().indexOf(Drupal.t('new window'))!==-1;};Drupal.extlink.combineLabels=function(labelA,labelB){labelA=labelA||'';labelB=labelB||'';const labelANoParens=labelA.trim().replace('(','').replace(')','');const labelBNoParens=labelB.trim().replace('(','').replace(')','');if(labelA===labelANoParens){if(labelB===labelBNoParens)return `${labelA}, ${labelB}`;return `${labelA} ${labelB}`;}if(labelB===labelBNoParens)return `${labelB} ${labelA}`;return `(${labelANoParens}, ${labelBNoParens})`;};Drupal.extlink.applyClassAndSpan=(links,className,iconPlacement)=>{let linksToProcess;if(drupalSettings.data.extlink.extImgClass)linksToProcess=links;else linksToProcess=links.filter((link)=>{return link.querySelector('img, svg')===null;});for(let i=0;i<linksToProcess.length;i++){if(className!=='0')linksToProcess[i].classList.add(className);if(className===drupalSettings.data.extlink.mailtoClass&&drupalSettings.data.extlink.extAdditionalMailtoClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalMailtoClasses);else if(className===drupalSettings.data.extlink.telClass&&drupalSettings.data.extlink.extAdditionalTelClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalTelClasses);else{if(drupalSettings.data.extlink.extAdditionalLinkClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalLinkClasses);}linksToProcess[i].setAttribute('data-extlink','');if(iconPlacement){let link=linksToProcess[i];if(drupalSettings.data.extlink.extPreventOrphan&&iconPlacement==='append'){let lastTextNode=link.lastChild;let trailingWhitespace=null;let parentNode=link;while(lastTextNode)if(lastTextNode.lastChild){parentNode=lastTextNode;lastTextNode=lastTextNode.lastChild;}else if(lastTextNode.nodeName==='#text'&&parentNode.lastElementChild&&lastTextNode.textContent.trim().length===0){trailingWhitespace=lastTextNode;parentNode=parentNode.lastElementChild;lastTextNode=parentNode.lastChild;}else break;if(lastTextNode&&lastTextNode.nodeName==='#text'&&lastTextNode.textContent.length>0){const lastText=lastTextNode.textContent;const lastWordRegex=new RegExp(/\S+\s*$/,'g');const lastWord=lastText.match(lastWordRegex);if(lastWord!==null){const breakPreventer=document.createElement('span');breakPreventer.classList.add('extlink-nobreak');breakPreventer.textContent=lastWord[0];if(trailingWhitespace){trailingWhitespace.textContent='';breakPreventer.append(trailingWhitespace.textContent);}lastTextNode.textContent=lastText.substring(0,lastText.length-lastWord[0].length);lastTextNode.parentNode.append(breakPreventer);link=breakPreventer;}}}let iconElement;if(drupalSettings.data.extlink.extUseFontAwesome){iconElement=document.createElement('span');iconElement.setAttribute('class',`fa-${className} extlink`);
371if(className===drupalSettings.data.extlink.mailtoClass){if(drupalSettings.data.extlink.mailtoLabel)link.ariaLabel=drupalSettings.data.extlink.mailtoLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_mailto',drupalSettings,iconPlacement);}else if(className===drupalSettings.data.extlink.extClass){if(drupalSettings.data.extlink.extLabel)link.ariaLabel=drupalSettings.data.extlink.extLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_extlink',drupalSettings,iconPlacement);}else{if(className===drupalSettings.data.extlink.telClass){if(drupalSettings.data.extlink.telLabel)link.ariaLabel=drupalSettings.data.extlink.telLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_tel',drupalSettings,iconPlacement);}}}else{iconElement=document.createElementNS('http://www.w3.org/2000/svg','svg');iconElement.setAttribute('focusable','false');iconElement.classList.add(className);iconElement.setAttribute('data-extlink-placement',iconPlacement);if(className===drupalSettings.data.extlink.mailtoClass)iconElement=Drupal.theme('extlink_mailto',iconElement,drupalSettings);else if(className===drupalSettings.data.extlink.extClass)iconElement=Drupal.theme('extlink_extlink',iconElement,drupalSettings);else{if(className===drupalSettings.data.extlink.telClass)iconElement=Drupal.theme('extlink_tel',iconElement,drupalSettings);}}iconElement.setAttribute('role','img');iconElement.setAttribute('aria-hidden',drupalSettings.data.extlink.extHideIcons);link[iconPlacement](iconElement);}}};Drupal.theme.extlink_fa_mailto=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaMailtoClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_extlink=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_tel=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_mailto=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.mailtoLabel);iconElement.setAttribute('viewBox','0 10 70 20');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.mailtoLabel}</title><path d="M56 14H8c-1.1 0-2 0.9-2 2v32c0 1.1 0.9 2 2 2h48c1.1 0 2-0.9 2-2V16C58 14.9 57.1 14 56 14zM50.5 18L32 33.4 13.5 18H50.5zM10 46V20.3l20.7 17.3C31.1 37.8 31.5 38 32 38s0.9-0.2 1.3-0.5L54 20.3V46H10z"/>`;return iconElement;};Drupal.theme.extlink_extlink=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.extLabel);iconElement.setAttribute('viewBox','0 0 80 40');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.extLabel}</title><path d="M48 26c-1.1 0-2 0.9-2 2v26H10V18h26c1.1 0 2-0.9 2-2s-0.9-2-2-2H8c-1.1 0-2 0.9-2 2v40c0 1.1 0.9 2 2 2h40c1.1 0 2-0.9 2-2V28C50 26.9 49.1 26 48 26z"/><path d="M56 6H44c-1.1 0-2 0.9-2 2s0.9 2 2 2h7.2L30.6 30.6c-0.8 0.8-0.8 2 0 2.8C31 33.8 31.5 34 32 34s1-0.2 1.4-0.6L54 12.8V20c0 1.1 0.9 2 2 2s2-0.9 2-2V8C58 6.9 57.1 6 56 6z"/>`;return iconElement;};Drupal.theme.extlink_tel=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.telLabel);iconElement.setAttribute('viewBox','0 0 181.352 181.352');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.telLabel}</title><path xmlns="http://www.w3.org/2000/svg" d="M169.393,167.37l-14.919,9.848c-9.604,6.614-50.531,14.049-106.211-53.404C-5.415,58.873,9.934,22.86,17.134,14.555L29.523,1.678c2.921-2.491,7.328-2.198,9.839,0.811l32.583,38.543l0.02,0.02c2.384,2.824,2.306,7.22-0.83,9.868v0.029l-14.44,10.415c-5.716,5.667-0.733,14.587,5.11,23.204l27.786,32.808c12.926,12.477,20.009,18.241,26.194,14.118l12.008-13.395c2.941-2.472,7.328-2.169,9.839,0.821l32.603,38.543v0.02C172.607,160.316,172.519,164.703,169.393,167.37z"/>`;return iconElement;};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=(context,drupalSettings)=>{if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(Drupal,drupalSettings);;
372(function($,Drupal,once){'use strict';Drupal.facets=Drupal.facets||{};Drupal.behaviors.facetsDropdownWidget={attach:function(context,settings){Drupal.facets.makeDropdown(context,settings);}};Drupal.facets.makeDropdown=function(context,settings){$(once('facets-dropdown-transform','.js-facets-dropdown-links')).each(function(){var $ul=$(this);var $links=$ul.find('.facet-item a');var $dropdown=$('<select></select>');$ul.each(function(){$.each(this.attributes,function(idx,elem){$dropdown.attr(elem.name,elem.value);});});$dropdown.removeClass('js-facets-dropdown-links');$dropdown.addClass('facets-dropdown');$dropdown.addClass('js-facets-widget');$dropdown.addClass('js-facets-dropdown');var id=$(this).data('drupal-facet-id');$dropdown.attr('aria-labelledby',"facet_"+id+"_label");
372var default_option_label=settings.facets.dropdown_widget[id]['facet-default-option-label'];var $default_option=$('<option></option>').attr('value','').text(default_option_label);$dropdown.append($default_option);$ul.prepend('<li class="default-option"><a href="'+window.location.href.split('?')[0]+'">'+Drupal.checkPlain(default_option_label)+'</a></li>');var has_active=false;$links.each(function(){var $link=$(this);var active=$link.hasClass('is-active');var $option=$('<option></option>').attr('value',$link.attr('href')).data($link.data());if(active){has_active=true;$default_option.attr('value',$link.attr('href'));$ul.find('.default-option a').attr("href",$link.attr('href'));$option.attr('selected','selected');$link.find('.js-facet-deactivate').remove();}$option.text(function(){var $parents=$link.parent('li.facet-item').parents('li.facet-item');var prefix='';for(var i=0;i<$parents.length;i++)prefix+='-';return prefix+' '+$link.text().trim();});$dropdown.append($option);});$dropdown.on('change.facets',function(){var anchor=$($ul).find("[data-drupal-facet-item-id='"+$(this).find(':selected').data('drupalFacetItemId')+"']");var $linkElement=(anchor.length>0)?$(anchor):$ul.find('.default-option a');var url=$linkElement.attr('href');$(this).trigger('facets_filter',[url]);});if(!has_active)$default_option.attr('selected','selected');$ul.after($dropdown).hide();Drupal.attachBehaviors($dropdown.parent()[0],Drupal.settings);});};})(jQuery,Drupal,once);;
373(function($,Drupal){'use strict';Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.geocoder=Drupal.geolocation.geocoder||{};Drupal.behaviors.geolocationViewsFilterGeocoder={attach:function(context,drupalSettings){$.each(drupalSettings.geolocation.geocoder.viewsFilterGeocoder,function(elementId,settings){Drupal.geolocation.geocoder.addResultCallback(function(address){if(typeof address.geometry.location==='undefined')return false;if(typeof address.geometry.viewport==='undefined')address.geometry.viewport={getNorthEast:function(){return {lat:function(){return address.geometry.location.lat();},lng:function(){return address.geometry.location.lng();}};},getSouthWest:function(){return {lat:function(){return address.geometry.location.lat();},lng:function(){return address.geometry.location.lng();}};}};switch(settings.type){case 'boundary':$(context).find(`input[name='${elementId}[lat_north_east]']`).val(address.geometry.viewport.getNorthEast().lat());$(context).find(`input[name='${elementId}[lng_north_east]']`).val(address.geometry.viewport.getNorthEast().lng());$(context).find(`input[name='${elementId}
373[lat_south_west]']`).val(address.geometry.viewport.getSouthWest().lat());$(context).find(`input[name='${elementId}[lng_south_west]']`).val(address.geometry.viewport.getSouthWest().lng());break;case 'proximity':$(context).find(`input[name='${elementId}-lat']`).val(address.geometry.location.lat());$(context).find(`input[name='${elementId}-lng']`).val(address.geometry.location.lng());break;default:break;}},elementId);Drupal.geolocation.geocoder.addClearCallback(function(){switch(settings.type){case 'boundary':$(context).find(`input[name='${elementId}[lat_north_east]']`).val('');$(context).find(`input[name='${elementId}[lng_north_east]']`).val('');$(context).find(`input[name='${elementId}[lat_south_west]']`).val('');$(context).find(`input[name='${elementId}[lng_south_west]']`).val('');break;case 'proximity':$(context).find(`input[name='${elementId}-lat']`).val('');$(context).find(`input[name='${elementId}-lng']`).val('');break;default:break;}},elementId);delete drupalSettings.geolocation.geocoder.viewsFilterGeocoder[elementId];});}};})(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.