"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-6a10dd"],{86058:(e,t,n)=>{n.d(t,{R:()=>AnalyticsClient});var o=n(82918);let AnalyticsClient=class AnalyticsClient{constructor(e){this.options=e}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,o.b)()}createEvent(e){return{page:location.href,title:document.title,context:{...this.options.baseContext,...e}}}sendPageView(e){let t=this.createEvent(e);this.send({page_views:[t]})}sendEvent(e,t){let n={...this.createEvent(t),type:e};this.send({events:[n]})}send({page_views:e,events:t}){let n={client_id:this.clientId,page_views:e,events:t,request_context:{referrer:function(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(e){}}return""===e&&(e=document.referrer),e}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(e){return"unknown"}}(),browser_resolution:function(){let e=0,t=0;try{return"number"==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(e){return"unknown"}}(),browser_languages:navigator.languages?navigator.languages.join(","):navigator.language||"",pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}},o=JSON.stringify(n);try{if(navigator.sendBeacon){navigator.sendBeacon(this.collectorUrl,o);return}}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:o,keepalive:!1})}}},88149:(e,t,n)=>{n.d(t,{n:()=>o});function o(e="ha"){let t;let n={},o=document.head.querySelectorAll(`meta[name^="${e}-"]`);for(let r of Array.from(o)){let{name:o,content:i}=r,l=o.replace(`${e}-`,"").replace(/-/g,"_");"url"===l?t=i:n[l]=i}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}},13604:()=>{var e=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:n="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(n||"")}},t=new WeakMap;function n(n,o,r){t.set(n,setTimeout(()=>{t.has(n)&&n.dispatchEvent(new e("toggle",{cancelable:!1,oldState:o,newState:r}))},0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,l=new WeakMap,a=new WeakMap;function c(e){return a.get(e)||"hidden"}var u=new WeakMap;function s(e,t){return!("auto"!==e.popover&&"manual"!==e.popover||!e.isConnected||t&&"showing"!==c(e)||!t&&"hidden"!==c(e)||e instanceof r&&e.hasAttribute("open"))&&document.fullscreenElement!==e}function p(e){return e?Array.from(l.get(e.ownerDocument)||[]).indexOf(e)+1:0}function d(e){let t=l.get(e);for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function f(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?f(e.parentNode):e}function h(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===a.get(e))return e;if((e=e.parentElement||f(e))instanceof o&&(e=e.host),e instanceof Document)return}}var g=new WeakMap;function m(t){if(!s(t,!1))return;let r=t.ownerDocument;if(!t.dispatchEvent(new e("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!s(t,!1))return;let c=!1;if("auto"===t.popover){let e=t.getAttribute("popover"),n=function(e){let t=new Map,n=0,o=e.ownerDocument;for(let e of l.get(o)||[])t.set(e,n),n+=1;t.set(e,n),n+=1;let r=null;return!function(e){let n=h(e);if(null===n)return;let o=t.get(n);(null===r||t.get(r)p(n)?t:n}(t);if(i&&"pointerdown"===e.type)y.set(n,i);else if("pointerup"===e.type){let e=y.get(n)===i;y.delete(n),e&&b(i||n,!1,!0)}}var T=new WeakMap;function S(e,t=!1){if(!e)return;T.has(e)||T.set(e,e.getAttribute("aria-expanded"));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)e.setAttribute("aria-expanded",String(t));else{let t=T.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function M(e,t,n){let o=e[t];Object.defineProperty(e,t,{value(e){return o.call(this,n(e))}})}var L=/(^|[^\\]):popover-open\b/g,k=` :where([popover]) { position: fixed; z-index: 2147483647; inset: 0; padding: 0.25em; width: fit-content; height: fit-content; border-width: initial; border-color: initial; border-image: initial; border-style: solid; background-color: canvas; color: canvastext; overflow: auto; margin: auto; } :where(dialog[popover][open]) { display: revert; } :where([anchor].\\:popover-open) { inset: auto; } :where([anchor]:popover-open) { inset: auto; } @supports not (background-color: canvas) { :where([popover]) { background-color: white; color: black; } } @supports (width: -moz-fit-content) { :where([popover]) { width: -moz-fit-content; height: -moz-fit-content; } } @supports not (inset: 0) { :where([popover]) { top: 0; left: 0; right: 0; bottom: 0; } } :where([popover]:not(.\\:popover-open)) { display: none; } `,H=null;function D(e){if(null===H)try{(H=new CSSStyleSheet).replaceSync(k)}catch{H=!1}if(!1===H){let t=document.createElement("style");t.textContent=k,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[H,...e.adoptedStyleSheets]}"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){var t;function n(e){return e?.includes(":popover-open")&&(e=e.replace(L,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||e,M(Document.prototype,"querySelector",n),M(Document.prototype,"querySelectorAll",n),M(Element.prototype,"querySelector",n),M(Element.prototype,"querySelectorAll",n),M(Element.prototype,"matches",n),M(Element.prototype,"closest",n),M(DocumentFragment.prototype,"querySelectorAll",n),M(DocumentFragment.prototype,"querySelectorAll",n),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){m(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){v(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===a.get(this)&&void 0===e||!1===e?v(this,!0,!0):(void 0===e||!0===e)&&m(this)}}});let o=Element.prototype.attachShadow;o&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let t=o.call(this,e);return D(t),t}}});let r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=r.call(this);return e.shadowRoot&&D(e.shadowRoot),e}}});let i=new WeakMap;function l(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),i.delete(this);else if(e instanceof Element)this.setAttribute("popovertarget",""),i.set(this,e);else throw TypeError("popoverTargetElement must be an element or null")},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let e=i.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return i.delete(this),null;let t=f(this),n=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof A)&&n&&t.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}l(HTMLButtonElement),l(HTMLInputElement),(t=document).addEventListener("click",e=>{let t=e.composedPath()[0];if(!(t instanceof Element)||t?.shadowRoot)return;let n=f(t);if(!(n instanceof A||n instanceof Document))return;let o=t.closest("[popovertargetaction],[popovertarget]");if(o){(function(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=c(t);("show"!==e.popoverTargetAction||"showing"!==n)&&("hide"!==e.popoverTargetAction||"hidden"!==n)&&("showing"===n?v(t,!0,!0):s(t,!1)&&(u.set(t,e),m(t)))})(o),e.preventDefault();return}}),t.addEventListener("keydown",e=>{let t=e.key,n=e.target;!e.defaultPrevented&&n&&("Escape"===t||"Esc"===t)&&b(n.ownerDocument,!0,!0)}),t.addEventListener("pointerdown",E),t.addEventListener("pointerup",E),D(document)}()}}]); //# sourceMappingURL=vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-6a10dd-fbb5929d9920.js.map