// Run ECMAScript in strict mode.
'use strict';

jQuery( () => {

	// Check if the post-type-hdsnav is on the page.
	if ( ! jQuery( 'body' ).hasClass( 'post-type-hdsnav' ) ) {

		// If the secondary navigation "usa-accordion__button" is clicked, change "aria-expanded" to
		// true and remove "hidden" from the "usa-nav__submenu" item directly beneath it.
		jQuery(document).on( 'click', '.hds-secondary-navigation .usa-accordion__button', function() {

			// Before we do this, we need to close any other open submenus.
			// Any submenu that is not this one, and is open, should be closed.
			jQuery( '.hds-secondary-navigation .usa-accordion__button' ).not(this).attr( 'aria-expanded', 'false' );
			jQuery( '.hds-secondary-navigation .usa-accordion__button' ).not(this).next().attr( 'hidden', 'hidden' );

			// Now we can open the submenu that was clicked.
			// Toggle this in case the menu is already open.
			jQuery( this ).attr( 'aria-expanded', function(index, attr) {
				return attr === 'true' ? 'false' : 'true';
			});

			jQuery( this ).next( '.usa-nav__submenu' ).attr( 'hidden', function(index, attr) {
				return attr === 'hidden' ? null : 'hidden';
			});
		});

		// Let's make sure the .hds-secondary-navigation-menu-items is hidden but set to flex.
		jQuery( '.hds-secondary-navigation-menu-items' ).attr( 'hidden', 'hidden' );

		// If the user clicks on the mobile secondary nav trigger, let's open the mobile nav.
		jQuery(document).on( 'click', '.hds-secondary-nav-mobile-button', function() {

			// Add an "is-active" class to both.
			jQuery( this ).toggleClass( 'hds-active' );
			jQuery( '.hds-secondary-navigation-menu-items' ).toggleClass( 'hds-active' );

			// Slide toggle the secondary nav track.
			jQuery( '.hds-secondary-navigation-menu-items' ).slideToggle(300);

			// Toggle the "hidden" attribute on the "hds-secondary-nav-mobile" class.
			jQuery( '.hds-secondary-navigation-menu-items' ).attr( 'hidden', function(index, attr) {
				return attr === 'hidden' ? null : 'hidden';
			});

			// Now, toggle the "hds-secondary-nav-mobile-button" class to aria-expanded.
			jQuery( '.hds-secondary-nav-mobile-button' ).attr( 'aria-expanded', function(index, attr) {
				return attr === 'true' ? 'false' : 'true';
			}
			);
		});
	}
});
;
/*! This file is auto-generated */
!function(){"use strict";var t,e={754:function(t,e,n){n.d(e,{c4:function(){return Ve},tL:function(){return De},h:function(){return le}});var r,o,i,_,s,u,c,l,a,f={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function v(t,e){for(var n in e)t[n]=e[n];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,n){var o,i,_,s={};for(_ in e)"key"==_?o=e[_]:"ref"==_?i=e[_]:s[_]=e[_];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===s[_]&&(s[_]=t.defaultProps[_]);return g(t,s,o,i,null)}function g(t,e,n,r,_){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==_?++i:_,__i:-1,__u:0};return null==_&&null!=o.vnode&&o.vnode(s),s}function b(t){return t.children}function w(t,e){this.props=t,this.context=e}function x(t,e){if(null==e)return t.__?x(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?x(t):null}function k(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return k(t)}}function S(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!P.__r++||u!==o.debounceRendering)&&((u=o.debounceRendering)||c)(P)}function P(){var t,e,n,r,i,_,u,c,a;for(s.sort(l);t=s.shift();)t.__d&&(e=s.length,r=void 0,_=(i=(n=t).__v).__e,c=[],a=[],(u=n.__P)&&((r=v({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),U(u,r,i,n.__n,void 0!==u.ownerSVGElement,32&i.__u?[_]:null,c,null==_?x(i):_,!!(32&i.__u),a),r.__.__k[r.__i]=r,j(c,r,a),r.__e!=_&&k(r)),s.length>e&&s.sort(l));P.__r=0}function $(t,e,n,r,o,i,_,s,u,c,l){var a,h,d,v,y,m=r&&r.__k||p,g=e.length;for(n.__d=u,E(n,e,m),u=n.__d,a=0;a<g;a++)null!=(d=n.__k[a])&&"boolean"!=typeof d&&"function"!=typeof d&&(h=-1===d.__i?f:m[d.__i]||f,d.__i=a,U(t,d,h,o,i,_,s,u,c,l),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&W(h.ref,null,d),l.push(d.ref,d.__c||v,d)),null==y&&null!=v&&(y=v),65536&d.__u||h.__k===d.__k?u=C(d,u,t):"function"==typeof d.type&&void 0!==d.__d?u=d.__d:v&&(u=v.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=u,n.__e=y}function E(t,e,n){var r,o,i,_,s,u=e.length,c=n.length,l=c,a=0;for(t.__k=[],r=0;r<u;r++)null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?g(null,o,null,null,o):d(o)?g(b,{children:o},null,null,null):o.__b>0?g(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,s=O(o,n,_=r+a,l),o.__i=s,i=null,-1!==s&&(l--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&a--,"function"!=typeof o.type&&(o.__u|=65536)):s!==_&&(s===_+1?a++:s>_?l>u-_?a+=s-_:a--:a=s<_&&s==_-1?s-_:0,s!==r+a&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==t.__d&&(t.__d=x(i)),M(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=x(i)),M(i,i))}function C(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=C(r[o],e,n));return e}return t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function O(t,e,n,r){var o=t.key,i=t.type,_=n-1,s=n+1,u=e[n];if(null===u||u&&o==u.key&&i===u.type)return n;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;_>=0||s<e.length;){if(_>=0){if((u=e[_])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return _;_--}if(s<e.length){if((u=e[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s++}}return-1}function A(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function T(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||A(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||A(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,i?H:N,i)):t.removeEventListener(e,i?H:N,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function N(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(o.event?o.event(t):t)}function H(t){return this.l[t.type+!0](o.event?o.event(t):t)}function U(t,e,n,r,i,_,s,u,c,l){var a,f,p,h,y,m,g,x,k,S,P,E,C,O,A,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),_=[u=e.__e=n.__e]),(a=o.__b)&&a(e);t:if("function"==typeof T)try{if(x=e.props,k=(a=T.contextType)&&r[a.__c],S=a?k?k.props.value:a.__:r,n.__c?g=(f=e.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?e.__c=f=new T(x,S):(e.__c=f=new w(x,S),f.constructor=T,f.render=D),k&&k.sub(f),f.props=x,f.state||(f.state={}),f.context=S,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,T.getDerivedStateFromProps(x,f.__s))),h=f.props,y=f.state,f.__v=e,p)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&x!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(x,S),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(x,f.__s,S)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=x,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(x,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,m)}))}if(f.context=S,f.props=x,f.__P=t,f.__e=!1,E=o.__r,C=0,"prototype"in T&&T.prototype.render){for(f.state=f.__s,f.__d=!1,E&&E(e),a=f.render(f.props,f.state,f.context),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);f._sb=[]}else do{f.__d=!1,E&&E(e),a=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=v(v({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(h,y)),$(t,d(A=null!=a&&a.type===b&&null==a.key?a.props.children:a)?A:[A],e,n,r,i,_,s,u,c,l),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),g&&(f.__E=f.__=null)}catch(t){e.__v=null,c||null!=_?(e.__e=u,e.__u|=c?160:32,_[_.indexOf(u)]=null):(e.__e=n.__e,e.__k=n.__k),o.__e(t,e,n)}else null==_&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=L(n.__e,e,n,r,i,_,s,c,l);(a=o.diffed)&&a(e)}function j(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)W(n[r],n[++r],n[++r]);o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function L(t,e,n,o,i,_,s,u,c){var l,a,p,h,v,m,g,b=n.props,w=e.props,k=e.type;if("svg"===k&&(i=!0),null!=_)for(l=0;l<_.length;l++)if((v=_[l])&&"setAttribute"in v==!!k&&(k?v.localName===k:3===v.nodeType)){t=v,_[l]=null;break}if(null==t){if(null===k)return document.createTextNode(w);t=i?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,w.is&&w),_=null,u=!1}if(null===k)b===w||u&&t.data===w||(t.data=w);else{if(_=_&&r.call(t.childNodes),b=n.props||f,!u&&null!=_)for(b={},l=0;l<t.attributes.length;l++)b[(v=t.attributes[l]).name]=v.value;for(l in b)v=b[l],"children"==l||("dangerouslySetInnerHTML"==l?p=v:"key"===l||l in w||T(t,l,null,v,i));for(l in w)v=w[l],"children"==l?h=v:"dangerouslySetInnerHTML"==l?a=v:"value"==l?m=v:"checked"==l?g=v:"key"===l||u&&"function"!=typeof v||b[l]===v||T(t,l,v,b[l],i);if(a)u||p&&(a.__html===p.__html||a.__html===t.innerHTML)||(t.innerHTML=a.__html),e.__k=[];else if(p&&(t.innerHTML=""),$(t,d(h)?h:[h],e,n,o,i&&"foreignObject"!==k,_,s,_?_[0]:n.__k&&x(n,0),u,c),null!=_)for(l=_.length;l--;)null!=_[l]&&y(_[l]);u||(l="value",void 0!==m&&(m!==t[l]||"progress"===k&&!m||"option"===k&&m!==b[l])&&T(t,l,m,b[l],!1),l="checked",void 0!==g&&g!==t[l]&&T(t,l,g,b[l],!1))}return t}function W(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function M(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||W(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],e,n||"function"!=typeof t.type);n||null==t.__e||y(t.__e),t.__=t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function F(t,e,n){var i,_,s,u;o.__&&o.__(t,e),_=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],u=[],U(e,t=(!i&&n||e).__k=m(b,null,[t]),_||f,f,void 0!==e.ownerSVGElement,!i&&n?[n]:_?null:e.firstChild?r.call(e.childNodes):null,s,!i&&n?n:_?_.__e:e.firstChild,i,u),j(s,t,u)}function R(t,e){F(t,e,R)}function V(t,e){var n={__c:e="__cC"+a++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,S(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=p.slice,o={__e:function(t,e,n,r){for(var o,i,_;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),_=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),_=o.__d),_)return o.__E=o}catch(e){t=e}throw t}},i=0,_=function(t){return null!=t&&null==t.constructor},w.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof t&&(t=t(v({},n),this.props)),t&&v(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),S(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S(this))},w.prototype.render=b,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},P.__r=0,a=0;var q,I,B,z,G=0,J=[],K=[],Q=o.__b,X=o.__r,Y=o.diffed,Z=o.__c,tt=o.unmount;function et(t,e){o.__h&&o.__h(I,t,G||e),G=0;var n=I.__H||(I.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:K}),n.__[t]}function nt(t,e){var n=et(q++,3);!o.__s&&ft(n.__H,e)&&(n.__=t,n.i=e,I.__H.__h.push(n))}function rt(t,e){var n=et(q++,4);!o.__s&&ft(n.__H,e)&&(n.__=t,n.i=e,I.__h.push(n))}function ot(t){return G=5,it((function(){return{current:t}}),[])}function it(t,e){var n=et(q++,7);return ft(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function _t(t){var e=I.context[t.__c],n=et(q++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(I)),e.props.value):t.__}function st(){for(var t;t=J.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(lt),t.__H.__h.forEach(at),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}}o.__b=function(t){I=null,Q&&Q(t)},o.__r=function(t){X&&X(t),q=0;var e=(I=t.__c).__H;e&&(B===I?(e.__h=[],I.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=K,t.__N=t.i=void 0}))):(e.__h.forEach(lt),e.__h.forEach(at),e.__h=[],q=0)),B=I},o.diffed=function(t){Y&&Y(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==J.push(e)&&z===o.requestAnimationFrame||((z=o.requestAnimationFrame)||ct)(st)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==K&&(t.__=t.__V),t.i=void 0,t.__V=K}))),B=I=null},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(lt),t.__h=t.__h.filter((function(t){return!t.__||at(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),Z&&Z(t,e)},o.unmount=function(t){tt&&tt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{lt(t)}catch(t){e=t}})),n.__H=void 0,e&&o.__e(e,n.__v))};var ut="function"==typeof requestAnimationFrame;function ct(t){var e,n=function(){clearTimeout(r),ut&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);ut&&(e=requestAnimationFrame(n))}function lt(t){var e=I,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),I=e}function at(t){var e=I;t.__c=t.__(),I=e}function ft(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function pt(){throw new Error("Cycle detected")}var ht=Symbol.for("preact-signals");function dt(){if(gt>1)gt--;else{for(var t,e=!1;void 0!==mt;){var n=mt;for(mt=void 0,bt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Pt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(bt=0,gt--,e)throw t}}var vt=void 0;var yt,mt=void 0,gt=0,bt=0,wt=0;function xt(t){if(void 0!==vt){var e=t.n;if(void 0===e||e.t!==vt)return e={i:0,S:t,p:vt.s,n:void 0,t:vt,e:void 0,x:void 0,r:e},void 0!==vt.s&&(vt.s.n=e),vt.s=e,t.n=e,32&vt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=vt.s,e.n=void 0,vt.s.n=e,vt.s=e),e}}function kt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function St(t){return new kt(t)}function Pt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function $t(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Et(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function Ct(t){kt.call(this,void 0),this.x=t,this.s=void 0,this.g=wt-1,this.f=4}function Ot(t){return new Ct(t)}function At(t){var e=t.u;if(t.u=void 0,"function"==typeof e){gt++;var n=vt;vt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Tt(t),e}finally{vt=n,dt()}}}function Tt(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,At(t)}function Nt(t){if(vt!==this)throw new Error("Out-of-order effect");Et(this),vt=t,this.f&=-2,8&this.f&&Tt(this),dt()}function Ht(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ut(t){var e=new Ht(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function jt(t,e){o[t]=e.bind(null,o[t]||function(){})}function Lt(t){yt&&yt(),yt=t&&t.S()}function Wt(t){var e=this,n=t.data,r=function(t){return it((function(){return St(t)}),[])}(n);r.value=n;var o=it((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;_(o.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=o.peek()},Ot((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function Mt(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=St(n);return{o:function(t,e){i.value=t,r=e},d:Ut((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}kt.prototype.brand=ht,kt.prototype.h=function(){return!0},kt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},kt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},kt.prototype.subscribe=function(t){var e=this;return Ut((function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}}))},kt.prototype.valueOf=function(){return this.value},kt.prototype.toString=function(){return this.value+""},kt.prototype.toJSON=function(){return this.value},kt.prototype.peek=function(){return this.v},Object.defineProperty(kt.prototype,"value",{get:function(){var t=xt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(vt instanceof Ct&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){bt>100&&pt(),this.v=t,this.i++,wt++,gt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{dt()}}}}),(Ct.prototype=new kt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===wt)return!0;if(this.g=wt,this.f|=1,this.i>0&&!Pt(this))return this.f&=-2,!0;var t=vt;try{$t(this),vt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return vt=t,Et(this),this.f&=-2,!0},Ct.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}kt.prototype.S.call(this,t)},Ct.prototype.U=function(t){if(void 0!==this.t&&(kt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Ct.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Ct.prototype.peek=function(){if(this.h()||pt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Ct.prototype,"value",{get:function(){1&this.f&&pt();var t=xt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Ht.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Ht.prototype.S=function(){1&this.f&&pt(),this.f|=1,this.f&=-9,At(this),$t(this),gt++;var t=vt;return vt=this,Nt.bind(this,t)},Ht.prototype.N=function(){2&this.f||(this.f|=2,this.o=mt,mt=this)},Ht.prototype.d=function(){this.f|=8,1&this.f||Tt(this)},Wt.displayName="_st",Object.defineProperties(kt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Wt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),jt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof kt&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),jt("__r",(function(t,e){Lt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return Ut((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),r,Lt(n),t(e)})),jt("__e",(function(t,e,n,r){Lt(),void 0,t(e,n,r)})),jt("diffed",(function(t,e){var n;if(Lt(),void 0,"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var _ in i){var s=i[_];void 0===s||_ in r||(s.d(),i[_]=void 0)}else n.U=i={};for(var u in r){var c=i[u],l=r[u];void 0===c?(c=Mt(n,u,l,o),i[u]=c):c.o(l,o)}}}t(e)})),jt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var _=e.__c;if(_){var s=_.__$u;s&&(_.__$u=void 0,s.d())}}t(e)})),jt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),w.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};var Dt=new WeakMap,Ft=new WeakMap,Rt=new WeakMap,Vt=new WeakSet,qt=new WeakMap,It=/^\$/,Bt=!1,zt=function(t){if(!ee(t))throw new Error("This object can't be observed.");return Ft.has(t)||Ft.set(t,Jt(t,Xt)),Ft.get(t)},Gt=function(t,e){Bt=!0;var n=t[e];try{Bt=!1}catch(t){}return n},Jt=function(t,e){var n=new Proxy(t,e);return Vt.add(n),n},Kt=function(){throw new Error("Don't mutate the signals directly.")},Qt=function(t){return function(e,n,r){var o;if(Bt)return Reflect.get(e,n,r);var i=t||"$"===n[0];if(!t&&i&&Array.isArray(e)){if("$"===n)return Rt.has(e)||Rt.set(e,Jt(e,Yt)),Rt.get(e);i="$length"===n}Dt.has(r)||Dt.set(r,new Map);var _=Dt.get(r),s=i?n.replace(It,""):n;if(_.has(s)||"function"!=typeof(null==(o=Object.getOwnPropertyDescriptor(e,s))?void 0:o.get)){var u=Reflect.get(e,s,r);if(i&&"function"==typeof u)return;if("symbol"==typeof s&&Zt.has(s))return u;_.has(s)||(ee(u)&&(Ft.has(u)||Ft.set(u,Jt(u,Xt)),u=Ft.get(u)),_.set(s,St(u)))}else _.set(s,Ot((function(){return Reflect.get(e,s,r)})));return i?_.get(s):_.get(s).value}},Xt={get:Qt(!1),set:function(t,e,n,r){Dt.has(r)||Dt.set(r,new Map);var o=Dt.get(r);if("$"===e[0]){n instanceof kt||Kt();var i=e.replace(It,"");return o.set(i,n),Reflect.set(t,i,n.peek(),r)}var _=n;ee(n)&&(Ft.has(n)||Ft.set(n,Jt(n,Xt)),_=Ft.get(n));var s=!(e in t),u=Reflect.set(t,e,n,r);return o.has(e)?o.get(e).value=_:o.set(e,St(_)),s&&qt.has(t)&&qt.get(t).value++,Array.isArray(t)&&o.has("length")&&(o.get("length").value=t.length),u},deleteProperty:function(t,e){"$"===e[0]&&Kt();var n=Dt.get(Ft.get(t)),r=Reflect.deleteProperty(t,e);return n&&n.has(e)&&(n.get(e).value=void 0),qt.has(t)&&qt.get(t).value++,r},ownKeys:function(t){return qt.has(t)||qt.set(t,St(0)),qt._=qt.get(t).value,Reflect.ownKeys(t)}},Yt={get:Qt(!0),set:Kt,deleteProperty:Kt},Zt=new Set(Object.getOwnPropertyNames(Symbol).map((function(t){return Symbol[t]})).filter((function(t){return"symbol"==typeof t}))),te=new Set([Object,Array]),ee=function(t){return"object"==typeof t&&null!==t&&(!("function"==typeof t.constructor&&t.constructor.name in globalThis&&globalThis[t.constructor.name]===t.constructor)||te.has(t.constructor))&&!Vt.has(t)};function ne(t){return this.getChildContext=()=>t.context,t.children}function re(t){const e=this,n=t._container;e.componentWillUnmount=function(){F(null,e._temp),e._temp=null,e._container=null},e._container&&e._container!==n&&e.componentWillUnmount(),t._vnode?(e._temp||(e._container=n,e._temp={nodeType:1,parentNode:n,childNodes:[],appendChild(t){this.childNodes.push(t),e._container.appendChild(t)},insertBefore(t){this.childNodes.push(t),e._container.appendChild(t)},removeChild(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e._container.removeChild(t)}}),F(m(ne,{context:e.context},t._vnode),e._temp)):e._temp&&e.componentWillUnmount()}function oe(t){nt((()=>{let e=null,n=!1;return e=function(t,e){let n;const r=Ut((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await(t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})))(e.flush),n=!1)})),e.dispose}),[])}const ie=t=>t&&"object"==typeof t&&!Array.isArray(t),_e=(t,e)=>{if(ie(t)&&ie(e))for(const n in e)ie(e[n])?(t[n]||Object.assign(t,{[n]:{}}),_e(t[n],e[n])):Object.assign(t,{[n]:e[n]})},se=new Set,ue=(()=>{const t=document.querySelector('script[type="application/json"]#wp-interactivity-store-data');if(!t)return{};try{const{state:e}=JSON.parse(t.textContent);if(ie(e))return e;throw Error("Parsed state is not an object")}catch(t){console.log(t)}return{}})(),ce={state:zt(ue)},le=({state:t,...e},{afterLoad:n}={})=>{_e(ce,e),_e(ue,t),n&&se.add(n)};var ae=0;Array.isArray;function fe(t,e,n,r,i,_){var s,u,c={};for(u in e)"ref"==u?s=e[u]:c[u]=e[u];var l={type:t,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ae,__i:-1,__u:0,__source:i,__self:_};if("function"==typeof t&&(s=t.defaultProps))for(u in s)void 0===c[u]&&(c[u]=s[u]);return o.vnode&&o.vnode(l),l}const pe=V({}),he={},de={},ve=(t,e,{priority:n=10}={})=>{he[t]=e,de[t]=n},ye=({ref:t}={})=>(e,n={})=>{const r="!"===e[0]&&!!(e=e.slice(1)),o=((t,e)=>{let n={...ce,context:e};return t.split(".").forEach((t=>n=n[t])),n})(e,n.context),i="function"==typeof o?o({ref:t.current,...ce,...n}):o;return r?!i:i},me=({directives:t,priorityLevels:[e,...n],element:o,evaluate:i,originalProps:_,elemRef:s})=>{s=s||ot(null),i=i||function(t,e){return G=8,it((function(){return t}),e)}(ye({ref:s}),[]),o=function(t,e,n){var o,i,_,s,u=v({},t.props);for(_ in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==_?o=e[_]:"ref"==_?i=e[_]:u[_]=void 0===e[_]&&void 0!==s?s[_]:e[_];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),g(t.type,u,o||t.key,i||t.ref,null)}(o,{ref:s});const u=n.length>0?fe(me,{directives:t,priorityLevels:n,element:o,evaluate:i,originalProps:_,elemRef:s}):o,c={..._,children:u},l={directives:t,props:c,element:o,context:pe,evaluate:i};for(const t of e){const e=he[t]?.(l);void 0!==e&&(c.children=e)}return c.children},ge=o.vnode;o.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.default),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(he[e]){const n=de[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>t-e)).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:m(t.type,e),top:!0},t.type=me)}ge&&ge(t)};const be=V(),we=({slot:t,children:e})=>{const n=_t(be);return nt((()=>{if(t)return n.value={...n.value,[t]:e},()=>{n.value={...n.value,[t]:null}}}),[n,t,e]),t?null:e},xe=({children:t})=>fe(be.Provider,{value:St({}),children:t}),ke=({name:t,children:e})=>_t(be).value[t]||e,Se=t=>t&&"object"==typeof t&&!Array.isArray(t),Pe=(t,e,n)=>{for(const r in e)Se(Gt(t,r))&&Se(Gt(e,r))?Pe(t[`$${r}`].peek(),e[`$${r}`].peek(),n):(n||void 0===Gt(t,r))&&(t[`$${r}`]=e[`$${r}`])};var $e=()=>{ve("context",(({directives:{context:{default:t}},props:{children:e},context:n})=>{const{Provider:r}=n,o=_t(n),i=ot(zt({}));return i.current=it((()=>{const e=zt(t);return Pe(e,o),Pe(i.current,e,!0),i.current}),[t,o]),fe(r,{value:i.current,children:e})}),{priority:5}),ve("body",(({props:{children:t}})=>function(t,e){const n=m(re,{_vnode:t,_container:e});return n.containerInfo=e,n}(t,document.body))),ve("effect",(({directives:{effect:t},context:e,evaluate:n})=>{const r=_t(e);Object.values(t).forEach((t=>{oe((()=>n(t,{context:r})))}))})),ve("init",(({directives:{init:t},context:e,evaluate:n})=>{const r=_t(e);Object.values(t).forEach((t=>{nt((()=>n(t,{context:r})),[])}))})),ve("on",(({directives:{on:t},element:e,evaluate:n,context:r})=>{const o=_t(r);Object.entries(t).forEach((([t,r])=>{e.props[`on${t}`]=t=>{n(r,{event:t,context:o})}}))})),ve("class",(({directives:{class:t},element:e,evaluate:n,context:r})=>{const o=_t(r);Object.keys(t).filter((t=>"default"!==t)).forEach((r=>{const i=n(t[r],{className:r,context:o}),_=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");i?s.test(_)||(e.props.class=_?`${_} ${r}`:r):e.props.class=_.replace(s," ").trim(),nt((()=>{i?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}),[])}))}));const t=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,e=/\/\*[^]*?\*\/|  +/g,n=/\n+/g;ve("style",(({directives:{style:r},element:o,evaluate:i,context:_})=>{const s=_t(_);Object.keys(r).filter((t=>"default"!==t)).forEach((_=>{const u=i(r[_],{key:_,context:s});o.props.style=o.props.style||{},"string"==typeof o.props.style&&(o.props.style=(r=>{const o=[{}];let i,_;for(;i=t.exec(r.replace(e,""));)i[4]?o.shift():i[3]?(_=i[3].replace(n," ").trim(),o.unshift(o[0][_]=o[0][_]||{})):o[0][i[1]]=i[2].replace(n," ").trim();return o[0]})(o.props.style)),u?o.props.style[_]=u:delete o.props.style[_],nt((()=>{u?o.ref.current.style[_]=u:o.ref.current.style.removeProperty(_)}),[])}))})),ve("bind",(({directives:{bind:t},element:e,context:n,evaluate:r})=>{const o=_t(n);Object.entries(t).filter((t=>"default"!==t)).forEach((([t,n])=>{const i=r(n,{context:o});e.props[t]=i,rt((()=>{"role"===t&&null==i&&e.ref.current.removeAttribute(t)}),[t,i]),nt((()=>{const n=e.ref.current;if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in n)try{return void(n[t]=null==i?"":i)}catch(t){}null==i||!1===i&&"-"!==t[4]?n.removeAttribute(t):n.setAttribute(t,i)}),[])}))})),ve("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>fe(t,{dangerouslySetInnerHTML:{__html:it((()=>e),[])},...n}))),ve("text",(({directives:{text:{default:t}},element:e,evaluate:n,context:r})=>{const o=_t(r);e.props.children=n(t,{context:o})})),ve("slot",(({directives:{slot:{default:t}},props:{children:e},element:n})=>{const r="string"==typeof t?t:t.name,o=t.position||"children";return"before"===o?fe(b,{children:[fe(ke,{name:r}),e]}):"after"===o?fe(b,{children:[e,fe(ke,{name:r})]}):"replace"===o?fe(ke,{name:r,children:e}):void("children"===o&&(n.props.children=fe(ke,{name:r,children:n.props.children})))}),{priority:4}),ve("fill",(({directives:{fill:{default:t}},props:{children:e},evaluate:n,context:r})=>{const o=n(t,{context:_t(r)});return fe(we,{slot:o,children:e})}),{priority:4}),ve("slot-provider",(({props:{children:t}})=>fe(xe,{children:t})),{priority:4})};const Ee="wp",Ce=`data-${Ee}-ignore`,Oe=`data-${Ee}-interactive`,Ae=`data-${Ee}-`,Te=new RegExp(`^data-${Ee}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Ne=new WeakSet;function He(t){const e=document.createTreeWalker(t,205);return function t(n){const{attributes:r,nodeType:o}=n;if(3===o)return[n.data];if(4===o){const t=e.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,t]}if(8===o||7===o){const t=e.nextSibling();return n.remove(),[null,t]}const i={},_=[],s={};let u=!1,c=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t].name;if(e[Ae.length]&&e.slice(0,Ae.length)===Ae)if(e===Ce)c=!0;else if(e===Oe)l=!0;else{u=!0;let n=r[t].value;try{n=JSON.parse(n)}catch(t){}const[,o,i]=Te.exec(e);s[o]=s[o]||{},s[o][i||"default"]=n}else if("ref"===e)continue;i[e]=r[t].value}if(c&&!l)return[m(n.localName,{...i,innerHTML:n.innerHTML,__directives:{ignore:!0}})];l&&Ne.add(n),u&&(i.__directives=s);let a=e.firstChild();if(a){for(;a;){const[n,r]=t(a);n&&_.push(n),a=r||e.nextSibling()}e.parentNode()}return[m(n.localName,i,_)]}(e.currentNode)}const Ue=new Map,je=new WeakMap,Le=t=>(je.has(t)||je.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),je.get(t)),We=t=>{const e=new URL(t,window.location);return e.pathname+e.search},Me=t=>{const e={},n=`data-${Ee}-navigation-id`;t.querySelectorAll(`[${n}]`).forEach((t=>{const r=t.getAttribute(n);e[r]=He(t)}));const r=t.querySelector("title")?.innerText;return{regions:e,title:r}},De=(t,e={})=>{t=We(t),!e.force&&Ue.has(t)||Ue.set(t,(async(t,{html:e})=>{try{if(!e){const n=await window.fetch(t);if(200!==n.status)return!1;e=await n.text()}const n=(new window.DOMParser).parseFromString(e,"text/html");return Me(n)}catch(t){return!1}})(t,e))},Fe=t=>{const e=`data-${Ee}-navigation-id`;document.querySelectorAll(`[${e}]`).forEach((n=>{const r=n.getAttribute(e),o=Le(n);F(t.regions[r],o)})),t.title&&(document.title=t.title)};let Re="";const Ve=async(t,e={})=>{const n=We(t);Re=t,De(n,e);const r=new Promise((t=>setTimeout(t,e.timeout??1e4))),o=await Promise.race([Ue.get(n),r]);Re===t&&(o?(Fe(o),window.history[e.replace?"replaceState":"pushState"]({},"",t)):(window.location.assign(t),await new Promise((()=>{}))))};window.addEventListener("popstate",(async()=>{const t=We(window.location),e=Ue.has(t)&&await Ue.get(t);e?Fe(e):window.location.reload()}));document.addEventListener("DOMContentLoaded",(async()=>{$e(),await(async()=>{document.querySelectorAll(`[data-${Ee}-interactive]`).forEach((t=>{if(!Ne.has(t)){const e=Le(t);R(He(t),e)}})),Ue.set(We(window.location),Promise.resolve(Me(document)))})(),se.forEach((t=>t(ce)))}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.m=e,t=[],r.O=function(e,n,o,i){if(!n){var _=1/0;for(l=0;l<t.length;l++){n=t[l][0],o=t[l][1],i=t[l][2];for(var s=!0,u=0;u<n.length;u++)(!1&i||_>=i)&&Object.keys(r.O).every((function(t){return r.O[t](n[u])}))?n.splice(u--,1):(s=!1,i<_&&(_=i));if(s){t.splice(l--,1);var c=o();void 0!==c&&(e=c)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[n,o,i]},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t={440:0};r.O.j=function(e){return 0===t[e]};var e=function(e,n){var o,i,_=n[0],s=n[1],u=n[2],c=0;if(_.some((function(e){return 0!==t[e]}))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(u)var l=u(r)}for(e&&e(n);c<_.length;c++)i=_[c],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return r.O(l)},n=self.__WordPressPrivateInteractivityAPI__=self.__WordPressPrivateInteractivityAPI__||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}()}();;
"use strict";(self.__WordPressPrivateInteractivityAPI__=self.__WordPressPrivateInteractivityAPI__||[]).push([[354],{699:function(e,t,i){var o=i(754);const n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'];let a,r=!1,c=0;function l(e){!r&&Date.now()-c>450&&window.scrollTo(e.core.image.scrollLeftReset,e.core.image.scrollTopReset)}function g(e,t){let{naturalWidth:i,naturalHeight:o,offsetWidth:n,offsetHeight:a}=t,{x:r,y:c}=t.getBoundingClientRect();const l=i/o;let g=n/a;if("contain"===e.core.image.scaleAttr)if(l>g){const e=n/l;c+=(a-e)/2,a=e}else{const e=a*l;r+=(n-e)/2,n=e}g=n/a;let d=parseFloat("none"!==e.core.image.targetWidth?e.core.image.targetWidth:i),m=parseFloat("none"!==e.core.image.targetHeight?e.core.image.targetHeight:o),s=d/m,h=d,u=m,f=d,w=m;if(l.toFixed(2)!==s.toFixed(2)){if(l>s){const e=d/l;m-e>d?(m=e,d=e*l):m=d/l}else{const e=m*l;d-e>m?(d=e,m=e/l):d=m*l}f=d,w=m,s=d/m,g>s?(h=d,u=h/g):(u=m,h=u*g)}(n>f||a>w)&&(f=n,w=a);let b=0;window.innerWidth>480?b=80:window.innerWidth>1920&&(b=160);const x=Math.min(window.innerWidth-b,f),p=Math.min(window.innerHeight-80,w);g>x/p?(f=x,w=f/g):(w=p,f=w*g);const E=n/f,y=d*(f/h),v=m*(w/u);let A=document.getElementById("wp-lightbox-styles");A||(A=document.createElement("style"),A.id="wp-lightbox-styles",document.head.appendChild(A)),A.innerHTML=`\n\t\t:root {\n\t\t\t--wp--lightbox-initial-top-position: ${c}px;\n\t\t\t--wp--lightbox-initial-left-position: ${r}px;\n\t\t\t--wp--lightbox-container-width: ${f+1}px;\n\t\t\t--wp--lightbox-container-height: ${w+1}px;\n\t\t\t--wp--lightbox-image-width: ${y}px;\n\t\t\t--wp--lightbox-image-height: ${v}px;\n\t\t\t--wp--lightbox-scale: ${E};\n\t\t}\n\t`}(0,o.h)({state:{core:{image:{windowWidth:window.innerWidth,windowHeight:window.innerHeight}}},actions:{core:{image:{showLightbox:({context:e,event:t})=>{e.core.image.imageLoaded&&(e.core.image.initialized=!0,e.core.image.lastFocusedElement=window.document.activeElement,e.core.image.scrollDelta=0,e.core.image.pointerType=t.pointerType,e.core.image.lightboxEnabled=!0,g(e,e.core.image.imageRef),e.core.image.scrollTopReset=window.pageYOffset||document.documentElement.scrollTop,e.core.image.scrollLeftReset=window.pageXOffset||document.documentElement.scrollLeft,a=l.bind(null,e),window.addEventListener("scroll",a,!1))},hideLightbox:async({context:e})=>{e.core.image.hideAnimationEnabled=!0,e.core.image.lightboxEnabled&&(setTimeout((function(){window.removeEventListener("scroll",a),e.core.image.lightboxTriggerRef.focus({preventScroll:!0})}),450),e.core.image.lightboxEnabled=!1)},handleKeydown:({context:e,actions:t,event:i})=>{e.core.image.lightboxEnabled&&("Tab"!==i.key&&9!==i.keyCode||(i.shiftKey&&window.document.activeElement===e.core.image.firstFocusableElement?(i.preventDefault(),e.core.image.lastFocusableElement.focus()):i.shiftKey||window.document.activeElement!==e.core.image.lastFocusableElement||(i.preventDefault(),e.core.image.firstFocusableElement.focus())),"Escape"!==i.key&&27!==i.keyCode||t.core.image.hideLightbox({context:e,event:i}))},handleLoad:({context:e,effects:t,ref:i})=>{e.core.image.imageLoaded=!0,e.core.image.imageCurrentSrc=i.currentSrc,t.core.image.setButtonStyles({context:e,ref:i})},handleTouchStart:()=>{r=!0},handleTouchMove:({context:e,event:t})=>{e.core.image.lightboxEnabled&&t.preventDefault()},handleTouchEnd:()=>{c=Date.now(),r=!1}}}},selectors:{core:{image:{roleAttribute:({context:e})=>e.core.image.lightboxEnabled?"dialog":null,ariaModal:({context:e})=>e.core.image.lightboxEnabled?"true":null,dialogLabel:({context:e})=>e.core.image.lightboxEnabled?e.core.image.dialogLabel:null,lightboxObjectFit:({context:e})=>{if(e.core.image.initialized)return"cover"},enlargedImgSrc:({context:e})=>e.core.image.initialized?e.core.image.imageUploadedSrc:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}}},effects:{core:{image:{initOriginImage:({context:e,ref:t})=>{e.core.image.imageRef=t,e.core.image.lightboxTriggerRef=t.parentElement.querySelector(".lightbox-trigger"),t.complete&&(e.core.image.imageLoaded=!0,e.core.image.imageCurrentSrc=t.currentSrc)},initLightbox:async({context:e,ref:t})=>{if(e.core.image.lightboxEnabled){const i=t.querySelectorAll(n);e.core.image.firstFocusableElement=i[0],e.core.image.lastFocusableElement=i[i.length-1],t.focus()}},setButtonStyles:({context:e,ref:t})=>{const{naturalWidth:i,naturalHeight:o,offsetWidth:n,offsetHeight:a}=t;if(0===i||0===o)return;const r=t.parentElement,c=t.parentElement.clientWidth;let l=t.parentElement.clientHeight;const g=r.querySelector("figcaption");if(g){const e=window.getComputedStyle(g);l=l-g.offsetHeight-parseFloat(e.marginTop)-parseFloat(e.marginBottom)}const d=l-a,m=c-n;if("contain"===e.core.image.scaleAttr){const t=i/o;if(t>=n/a){const i=n/t;e.core.image.imageButtonTop=(a-i)/2+d+16,e.core.image.imageButtonRight=m+16}else{const i=a*t;e.core.image.imageButtonTop=d+16,e.core.image.imageButtonRight=(n-i)/2+m+16}}else e.core.image.imageButtonTop=d+16,e.core.image.imageButtonRight=m+16},setStylesOnResize:({state:e,context:t,ref:i})=>{t.core.image.lightboxEnabled&&(e.core.image.windowWidth||e.core.image.windowHeight)&&g(t,i)}}}}},{afterLoad:({state:e})=>{window.addEventListener("resize",function(e,t=50){let i;return()=>{const o=()=>{i=null,e()};clearTimeout(i),i=setTimeout(o,t)}}((()=>{e.core.image.windowWidth=window.innerWidth,e.core.image.windowHeight=window.innerHeight})))}})}},function(e){var t;t=699,e(e.s=t)}]);;