"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js","vendors-node_modules_delegated-events_dist_index_js-node_modules_github_memoize_dist_esm_inde-455471","vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-2ef075","vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-70450e"],{13937:(e,t,n)=>{let o;n.d(t,{Ax:()=>l,JW:()=>c,ZV:()=>a});let ErrorWithResponse=class ErrorWithResponse extends Error{constructor(e,t){super(e),this.response=t}};function r(){let e,t;return[new Promise(function(n,o){e=n,t=o}),e,t]}let i=[],s=[];function a(e){i.push(e)}function l(e){s.push(e)}function c(e,t){o||(o=new Map,"undefined"!=typeof document&&document.addEventListener("submit",d));let n=o.get(e)||[];o.set(e,[...n,t])}function d(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[];for(let n of o.keys())if(e.matches(n)){let e=o.get(n)||[];t.push(...e)}return t}(t);if(0===n.length)return;let a=function(e){let t={method:e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===t.method.toUpperCase()){let n=function(e){let t=new URLSearchParams;for(let[n,o]of[...new FormData(e).entries()])t.append(n,o.toString());return t.toString()}(e);n&&(t.url+=(~t.url.indexOf("?")?"&":"?")+n)}else t.body=new FormData(e);return t}(t),[l,c,d]=r();e.preventDefault(),u(n,t,a,l).then(async e=>{if(e){for(let e of s)await e(t);h(a).then(c,d).catch(()=>{}).then(()=>{for(let e of i)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function u(e,t,n,o){let i=!1;for(let s of e){let[e,a]=r(),l=()=>(i=!0,a(),o),c={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([e,s(t,c,n)])}return i}async function h(e){let t=await window.fetch(e.url,{method:e.method,body:null!==e.body?e.body:void 0,headers:e.headers,credentials:"same-origin"}),n={url:t.url,status:t.status,statusText:t.statusText,headers:t.headers,text:"",get json(){let e=JSON.parse(this.text);return delete this.json,this.json=e,this.json},get html(){return delete this.html,this.html=function(e,t){let n=e.createElement("template");return n.innerHTML=t,e.importNode(n.content,!0)}(document,this.text),this.html}},o=await t.text();if(n.text=o,t.ok)return n;throw new ErrorWithResponse("request failed",n)}},97797:(e,t,n)=>{function o(){if(!(this instanceof o))return new o;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>_,A:()=>A,on:()=>C});var r,i=window.document.documentElement,s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector;o.prototype.matchesSelector=function(e,t){return s.call(e,t)},o.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},o.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;o.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),o.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},r="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function u(e,t){var n,o,r,i,s,a,l=(e=e.slice(0).concat(e.default)).length,c=t,u=[];do if(d.exec(""),(r=d.exec(c))&&(c=r[3],r[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},i=!!r.capture,s=i?p:f,a=s[e];a||(a=new o,s[e]=a,document.addEventListener(e,S,i)),a.add(t,n)}function A(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=!!o.capture,i=r?p:f,s=i[e];s&&(s.remove(t,n),s.size||(delete i[e],document.removeEventListener(e,S,r)))}function _(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},39595:(e,t,n)=>{let o;n.d(t,{CF:()=>m,p_:()=>T,FB:()=>u,Se:()=>S,aC:()=>M,zV:()=>P});let r=new WeakSet,i=new WeakMap;function s(e=document){if(i.has(e))return i.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)d(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&a(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let o={get closed(){return t},unsubscribe(){t=!0,i.delete(e),n.disconnect()}};return i.set(e,o),o}function a(e){for(let t of e.querySelectorAll("[data-action]"))d(t);e instanceof Element&&e.hasAttribute("data-action")&&d(e)}function l(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let o=t.closest(n.tag);r.has(o)&&"function"==typeof o[n.method]&&o[n.method](e);let i=t.getRootNode();if(i instanceof ShadowRoot&&r.has(i.host)&&i.host.matches(n.tag)){let t=i.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute("data-action")||"").trim().split(/\s+/)){let e=t.lastIndexOf(":"),n=Math.max(0,t.lastIndexOf("#"))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||"handleEvent"}}}function d(e){for(let t of c(e))e.addEventListener(t.type,l)}function u(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let o of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!o.closest(n))return o}for(let o of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(o.closest(n)===e)return o}let h=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),f=(e,t="property")=>{let n=h(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},p="attr";function m(e,t){_(e,p).add(t)}let g=new WeakSet;function b(e,t){if(g.has(e))return;g.add(e);let n=Object.getPrototypeOf(e),o=n?.constructor?.attrPrefix??"data-";for(let r of(t||(t=_(n,p)),t)){let t=e[r],n=f(`${o}${r}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,r,i),r in e&&!e.hasAttribute(n)&&i.set.call(e,t)}}let y=new Map,v=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),w=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},o=()=>t.abort();document.addEventListener("mousedown",o,n),document.addEventListener("touchstart",o,n),document.addEventListener("keydown",o,n),document.addEventListener("pointerdown",o,n)}),x={ready:()=>v,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},E=new WeakMap;function k(e){cancelAnimationFrame(E.get(e)||0),E.set(e,requestAnimationFrame(()=>{for(let t of y.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let o=n?.getAttribute("data-load-on")||"ready",r=o in x?x[o]:x.ready;for(let e of y.get(t)||[])r(t).then(e);y.delete(t),E.delete(e)}}}))}function S(e,t){for(let[n,o]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))y.has(n)||y.set(n,new Set),y.get(n).add(o);C(document)}function C(e){o||(o=new MutationObserver(e=>{if(y.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),o.observe(e,{subtree:!0,childList:!0})}let A=Symbol.for("catalyst");let CatalystDelegate=class CatalystDelegate{constructor(e){let t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};let o=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,o)};let r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,o){t.attributeChangedCallback(this,e,n,o,r)};let i=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return t.observedAttributes(this,i)},set(e){i=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",o=e=>f(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[..._(e.prototype,p)].map(o).concat(t),set(e){t=e}})}(e),function(e){let t=h(e.name).replace(/-element$/,"");try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,o;e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),!function(e){for(let t of e.querySelectorAll("template[data-shadowroot]"))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0))}(e),b(e),r.add(e),e.shadowRoot&&(a(o=e.shadowRoot),s(o)),a(e),s(e.ownerDocument),t?.call(e),e.shadowRoot&&(a(n=e.shadowRoot),s(n),C(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,o,r){b(e),"data-catalyst"!==t&&r&&r.call(e,t,n,o)}};function _(e,t){if(!Object.prototype.hasOwnProperty.call(e,A)){let t=e[A],n=e[A]=new Map;if(t)for(let[e,o]of t)n.set(e,new Set(o))}let n=e[A];return n.has(t)||n.set(t,new Set),n.get(t)}function M(e,t){_(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function P(e,t){_(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return function(e,t){let n=e.tagName.toLowerCase(),o=[];if(e.shadowRoot)for(let r of e.shadowRoot.querySelectorAll(`[data-targets~="${n}.${t}"]`))r.closest(n)||o.push(r);for(let r of e.querySelectorAll(`[data-targets~="${n}.${t}"]`))r.closest(n)===e&&o.push(r);return o}(this,t)}})}function T(e){new CatalystDelegate(e)}},5225:(e,t,n)=>{function o(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function r(e,t={}){let{hash:n=o,cache:i=new Map}=t;return function(...t){let o=n.apply(this,t);if(i.has(o))return i.get(o);let r=e.apply(this,t);return r instanceof Promise&&(r=r.catch(e=>{throw i.delete(o),e})),i.set(o,r),r}}n.d(t,{A:()=>r})},46493:(e,t,n)=>{n.d(t,{Cj:()=>G,iP:()=>H});let o={Less:"less",Equal:"equal",Greater:"greater"};var r,i,s,a,l,c,d,u,h,f,p,m,g,b,y,v,w,x=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},E=(e,t,n)=>(x(e,t,"read from private field"),n?n.call(e):t.get(e)),k=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},S=(e,t,n,o)=>(x(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),C=(e,t,n)=>(x(e,t,"access private method"),n);let MinHeap=class MinHeap{constructor({compareFn:e}){k(this,s),k(this,l),k(this,r,void 0),k(this,i,void 0),S(this,r,e),S(this,i,[])}insert(e){E(this,i).push(e),C(this,l,c).call(this)}pop(){let e=E(this,i)[0];return E(this,i)[E(this,i).length-1]&&(E(this,i)[0]=E(this,i)[E(this,i).length-1],E(this,i).pop()),C(this,s,a).call(this),e}peek(){return E(this,i)[0]}delete(e){let t=E(this,i).indexOf(e);-1!==t&&(_(E(this,i),t,E(this,i).length-1),E(this,i).pop(),C(this,s,a).call(this))}clear(){S(this,i,[])}get size(){return E(this,i).length}};function A(e){return Math.floor((e-1)/2)}function _(e,t,n){let o=e[t];e[t]=e[n],e[n]=o}r=new WeakMap,i=new WeakMap,s=new WeakSet,a=function(){let e=0;for(;2*e+10&&E(this,r).call(this,E(this,i)[e],E(this,i)[A(e)])===o.Less;)_(E(this,i),e,A(e)),e=A(e)};var M=Object.defineProperty,P=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(P(e,"symbol"!=typeof t?t+"":t,n),n),L=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},j=(e,t,n)=>(L(e,t,"read from private field"),n?n.call(e):t.get(e)),O=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},W=(e,t,n,o)=>(L(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){T(this,d,"Deferred"),O(this,u,void 0),O(this,h,void 0),O(this,f,void 0),W(this,u,new Promise((e,t)=>{W(this,h,e),W(this,f,t)}))}then(e,t){return Promise.prototype.then.apply(j(this,u),[e,t])}catch(e){return Promise.prototype.catch.apply(j(this,u),[e])}finally(e){return Promise.prototype.finally.apply(j(this,u),[e])}resolve(e){j(this,h).call(this,e)}reject(e){j(this,f).call(this,e)}getPromise(){return j(this,u)}};d=Symbol.toStringTag,u=new WeakMap,h=new WeakMap,f=new WeakMap;var F=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},R=(e,t,n)=>(F(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},q=(e,t,n,o)=>(F(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),D=(e,t,n)=>(F(e,t,"access private method"),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),$(this,b),$(this,v),$(this,p,void 0),$(this,m,void 0),$(this,g,void 0),!this.shadowRoot){let e=(I||((I=document.createElement("template")).innerHTML=N),I);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}q(this,p,!1),q(this,g,null),q(this,m,new MinHeap({compareFn:z}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:n,politeness:o="polite"}=t,r=Date.now(),i=new Deferred,s={deferred:i,politeness:o,contents:e,scheduled:void 0!==n?r+n:r};return R(this,m).insert(s),D(this,b,y).call(this),{...i.getPromise(),cancel:()=>{R(this,m).delete(s),i.resolve()}}}announceFromElement(e,t){let n;let o=(n="",e.hasAttribute("aria-label")?n=e.getAttribute("aria-label"):e.innerText?n=e.innerText:e.textContent&&(n=e.textContent),n?n.trim():"");return""!==o?this.announce(o,t):{...Promise.resolve(),cancel:U}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==R(this,g)&&(clearTimeout(R(this,g)),q(this,g,null)),R(this,m).clear()}};p=new WeakMap,m=new WeakMap,g=new WeakMap,b=new WeakSet,y=function(){if(R(this,p))return;let e=R(this,m).peek();if(!e)return;null!==R(this,g)&&(clearTimeout(R(this,g)),q(this,g,null));let t=Date.now();if(e.scheduled<=t){(e=R(this,m).pop())&&D(this,v,w).call(this,e),D(this,b,y).call(this);return}let n=e.scheduled-t;q(this,g,window.setTimeout(()=>{q(this,g,null),D(this,b,y).call(this)},n))},v=new WeakSet,w=function(e){q(this,p,!0);let{contents:t,deferred:n,politeness:o}=e,r=this.shadowRoot?.getElementById(o);if(!r)throw q(this,p,!1),Error(`Unable to find container for message. Expected a container with id="${o}"`);r.textContent===t?r.textContent=`${t}\xa0`:r.textContent=t,null!==R(this,g)&&clearTimeout(R(this,g)),n.resolve(),this.delay>0?q(this,g,window.setTimeout(()=>{q(this,g,null),q(this,p,!1),D(this,b,y).call(this)},this.delay)):(q(this,g,null),q(this,p,!1),D(this,b,y).call(this))};let I=null,N=`
`;function z(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?o.Equal:e.scheduled{o=!0};return{...X(J).then(()=>{if(!o){let o=n.announce(e,t);return r=o.cancel,o}}),cancel:()=>{r()}}}return n.announce(e,t)}function G(e,t={}){let n=V(t.from);if(!n){n=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(n):B(t.from).appendChild(n);let o=!1,r=()=>{o=!0};return{...X(J).then(()=>{if(!o){let o=n.announceFromElement(e,t);return r=o.cancel,o}}),cancel:()=>{r()}}}return n.announceFromElement(e,t)}function V(e){let t=null;return null!==(t=e?function(e){let t=e.closest("dialog"),n=e;for(;(n=n.parentElement)&&(!t||t.contains(n));)for(let e of n.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=B(e).querySelector("live-region"))?t:null}function B(e){let t=document.body;if(e){let n=e.closest("dialog");n&&(t=n)}return t}customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);let J=150;function X(e){return new Promise(t=>{setTimeout(t,e)})}}}]); //# sourceMappingURL=vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-2ef075-f774defe6f22.js.map