1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1534],{1534:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var o=n(7859);n(3447);var i=n(2408);function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function s(t,e){return Object.keys(e).reduce((t,n)=>t.replace(`{${n}}`,e[n]||""),t||"")}class a{constructor(){var t;this.id="swup-announcer",this.style="position:absolute;top:0;left:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;word-wrap:normal;width:1px;height:1px;",this.region=void 0,this.region=null!=(t=this.getRegion())?t:this.createRegion()}getRegion(){return document.getElementById(this.id)}createRegion(){var t;let e,n=(t=`<p aria-live="assertive" aria-atomic="true" id="${this.id}" style="${this.style}"></p>`,(e=document.createElement("template")).innerHTML=t,e.content.children[0]);return document.body.appendChild(n),n}announce(t,e=0){return new Promise(n=>{setTimeout(()=>{this.region.textContent===t&&(t=`${t}.`),this.region.textContent="",this.region.textContent=t,n()},e)})}}function u(t){let e;if(!((e="string"==typeof t?document.querySelector(t):t)instanceof HTMLElement))return;let n=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),null!==n&&e.setAttribute("tabindex",n)}class c extends o.A{constructor(t={}){super(),this.name="SwupA11yPlugin",this.requires={swup:">=4"},this.defaults={headingSelector:["main h1","h1"],respectReducedMotion:!0,autofocus:!1,announcements:{visit:"Navigated to: {title}",url:"New page at {url}"}},this.options=void 0,this.announcer=void 0,this.announcementDelay=100,this.rootSelector="body",this.handleAnchorScroll=(t,{hash:e})=>{let n=this.swup.getAnchorElement(e);n instanceof HTMLElement&&u(n)},this.options=r({},this.defaults,t),this.announcer=new a}mount(){this.swup.hooks.create("content:announce"),this.swup.hooks.create("content:focus"),this.before("visit:start",this.prepareVisit),this.on("visit:start",this.markAsBusy),this.on("visit:end",this.unmarkAsBusy),this.on("content:replace",this.maybeFocusEarly),this.on("visit:end",this.maybeFocusLate),this.on("visit:end",this.announceContent),this.on("scroll:anchor",this.handleAnchorScroll),this.before("visit:start",this.disableAnimations),this.before("link:self",this.disableAnimations),this.before("link:anchor",this.disableAnimations),this.swup.announce=this.announce.bind(this)}unmount(){this.swup.announce=void 0}async announce(t){await this.announcer.announce(t)}markAsBusy(){document.documentElement.setAttribute("aria-busy","true")}unmarkAsBusy(){document.documentElement.removeAttribute("aria-busy")}prepareVisit(t){t.a11y={announce:void 0,focus:{selector:this.rootSelector,wait:!0}}}announceContent(t){this.swup.hooks.callSync("content:announce",t,void 0,t=>{void 0===t.a11y.announce&&(t.a11y.announce=this.getPageAnnouncement()),t.a11y.announce&&this.announcer.announce(t.a11y.announce,this.announcementDelay)})}maybeFocusEarly(t){let e=this.parseVisitFocus(t.a11y.focus);e&&!e.wait&&this.focusContent(t)}maybeFocusLate(t){let e=this.parseVisitFocus(t.a11y.focus);e&&e.wait&&this.focusContent(t)}focusContent(t){this.swup.hooks.callSync("content:focus",t,void 0,t=>{let e,n=this.parseVisitFocus(t.a11y.focus);n&&(this.options.autofocus&&!0==(!!(e=function(){let t=document.querySelector("body [autofocus]");if(t&&!t.closest('[inert], [aria-disabled], [aria-hidden="true"]'))return t}())&&(e!==document.activeElement&&e.focus(),!0))||u(n.selector))})}parseVisitFocus(t){if(!t)return!1;let e="string"==typeof t?{selector:t,wait:!0}:t;return!!e.selector&&e}getPageAnnouncement(){let{headingSelector:t,announcements:e}=this.options;return function({headingSelector:t="h1",announcements:e={}}){var n,o;let r=document.documentElement.lang||"*",{href:a,url:u,pathname:c}=i.Location.fromUrl(window.location.href),l=null!=(n=null!=(o=e[r])?o:e["*"])?n:e;if("object"!=typeof l)return;let h=Array.isArray(t)?t:[t],d=h.reduce((t,e)=>null!=t?t:document.querySelector(e),null);d||console.warn(`SwupA11yPlugin: No main heading (${h.join(" / ")}) found on new page`);let p=(null==d?void 0:d.getAttribute("aria-label"))||(null==d?void 0:d.textContent)||document.title||s(l.url,{href:a,url:u,path:c});return s(l.visit,{title:p,href:a,url:u,path:c})}({headingSelector:t,announcements:e})}disableAnimations(t){this.options.respectReducedMotion&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(t.animation.animate=!1,t.scroll.animate=!1)}}},3447:()=>
1{if("u">typeof window&&"u">typeof document&&"u">typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",function(t){t.preventDefault(),t.stopPropagation()},!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=t.parentNode,n=[],o=document.scrollingElement||document.documentElement;e&&e!==o;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return n.push([e=o,e.scrollTop,e.scrollLeft]),n},o=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=n(this);if("function"==typeof setTimeout){var i=this;setTimeout(function(){i.nativeFocus(),o(e)},0)}else this.nativeFocus(),o(e)}else this.nativeFocus()}}}},7859:(t,e,n)=>{"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}n.d(e,{A:()=>r});let i=t=>String(t).split(".").map(t=>String(parseInt(t||"0",10))).concat(["0","0"]).slice(0,3).join(".");class r{constructor(){this.isSwupPlugin=!0,this.swup=void 0,this.version=void 0,this.requires={},this.handlersToUnregister=[]}mount(){}unmount(){this.handlersToUnregister.forEach(t=>t()),this.handlersToUnregister=[]}_beforeMount(){if(!this.name)throw Error("You must define a name of plugin when creating a class.")}_afterUnmount(){}_checkRequirements(){return"object"!=typeof this.requires||Object.entries(this.requires).forEach(([t,e])=>{var n;let o;if(n=e=Array.isArray(e)?e:[e],!((o=function(t,e){var n,o;if("swup"===t)return null!=(n=e.version)?n:"";{let n=e.findPlugin(t);return null!=(o=null==n?void 0:n.version)?o:""}}(t,this.swup))&&n.every(t=>{var e,n,r,s;let a,[,u,c]=t.match(/^([\D]+)?(.*)$/)||[];return n=c,e=i(e=o),n=i(n),r=e.localeCompare(n,void 0,{numeric:!0}),s=u||">=",((a={"":t=>0===t,">":t=>t>0,">=":t=>t>=0,"<":t=>t<0,"<=":t=>t<=0})[s]||a[""])(r)}))){let n=`${t} ${e.join(", ")}`;throw Error(`Plugin version mismatch: ${this.name} requires ${n}`)}}),!0}on(t,e,n={}){var o;e=!(o=e).name.startsWith("bound ")||o.hasOwnProperty("prototype")?e.bind(this):e;let i=this.swup.hooks.on(t,e,n);return this.handlersToUnregister.push(i),i}once(t,e,n={}){return this.on(t,e,o({},n,{once:!0}))}before(t,e,n={}){return this.on(t,e,o({},n,{before:!0}))}replace(t,e,n={}){return this.on(t,e,o({},n,{replace:!0}))}off(t,e){return this.swup.hooks.off(t,e)}}}}]);
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.