performance.mark("js-parse-end:18728-664614aa8ee76cdd.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["18728"],{13937(e,t,n){let r;n.d(t,{Ax:()=>c,JW:()=>u,ZV:()=>a});class i extends Error{constructor(e,t){super(e),this.response=t}}function o(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let l=[],s=[];function a(e){l.push(e)}function c(e){s.push(e)}function u(e,t){!r&&(r=new Map,"u">typeof document&&document.addEventListener("submit",d));let n=r.get(e)||[];r.set(e,[...n,t])}function d(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[],n=t=>"object"==typeof t?t===e:"string"==typeof t&&e.matches(t);for(let e of r.keys())if(n(e)){let n=r.get(e)||[];t.push(...n)}return t}(t);if(0===n.length)return;let i=function(e,t){let n={method:t?.formMethod||e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===n.method.toUpperCase()){let t=function(e){let t=new URLSearchParams;for(let[n,r]of[...new FormData(e).entries()])t.append(n,r.toString());return t.toString()}(e);t&&(n.url+=(~n.url.indexOf("?")?"&":"?")+t)}else n.body=new FormData(e);return n}(t,e instanceof SubmitEvent?e.submitter:null),[a,c,u]=o();e.preventDefault(),h(n,t,i,a).then(async e=>{if(e){for(let e of s)await e(t);f(i).then(c,u).catch(()=>{}).then(()=>{for(let e of l)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function h(e,t,n,r){let i=!1;for(let l of e){let[e,s]=o(),a=()=>(i=!0,s(),r),c={text:a,json:()=>(n.headers.set("Accept","application/json"),a()),html:()=>(n.headers.set("Accept","text/html"),a())};await Promise.race([e,l(t,c,n)])}return i}async function f(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(){var r,o;let e;return delete this.html,this.html=(r=document,o=this.text,(e=r.createElement("template")).innerHTML=o,r.importNode(e.content,!0)),this.html}};if(n.text=await t.text(),t.ok)return n;throw new i("request failed",n)}},21744(e,t,n){function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>x,on:()=>C});var i,o=window.document.documentElement,l=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return l.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var s=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(s))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var a=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);else if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.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()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="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 u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var n,r,i,o,l,s,a=(e=e.slice(0).concat(e.default)).length,c=t,d=[];do if(u.exec(""),(i=u.exec(c))&&(c=i[3],i[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,l=o?p:f,s=l[e];s||(s=new r,l[e]=s,document.addEventListener(e,S,o)),s.add(t,n)}function x(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},95493(e,t,n){function r(e,t){return i(function(e){if(e.activeElement!==e.body)return e.activeElement;var t=e.querySelectorAll(":hover"),n=t.length;if(n)return t[n-1]}(e),t)}function i(e,t){var n=e;if(!n)return Promise.resolve(t());var r=n.ownerDocument.documentElement,i=function(e){for(var t=[];e;){var n=e.getBoundingClientRect(),r=n.top,i=n.left;t.push({element:e,top:r,left:i}),e=e.parentElement}return t}(n);return Promise.resolve(t()).then(function(e){var t=function(e){for(var t=0;tr,_H:()=>i})},94571(e,t,n){let r;n.d(t,{Se:()=>S,FB:()=>d,p_:()=>I,CF:()=>m,aC:()=>O,zV:()=>P});let i=new WeakSet,o=new WeakMap;function l(e=document){if(o.has(e))return o.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)u(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&s(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return t},unsubscribe(){t=!0,o.delete(e),n.disconnect()}};return o.set(e,r),r}function s(e){for(let t of e.querySelectorAll("[data-action]"))u(t);e instanceof Element&&e.hasAttribute("data-action")&&u(e)}function a(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let r=t.closest(n.tag);i.has(r)&&"function"==typeof r[n.method]&&r[n.method](e);let o=t.getRootNode();if(o instanceof ShadowRoot&&i.has(o.host)&&o.host.matches(n.tag)){let t=o.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 u(e){for(let t of c(e))e.addEventListener(t.type,a)}function d(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(r.closest(n)===e)return r}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){L(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),r=n?.constructor?.attrPrefix??"data-";for(let i of(t||(t=L(n,p)),t)){let t=e[i],n=f(`${r}${i}`),o={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?o={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(o={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,i,o),i in e&&!e.hasAttribute(n)&&o.set.call(e,t)}}let v=new Map,y=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},r=()=>t.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),E={ready:()=>y,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},k=new WeakMap;function A(e){cancelAnimationFrame(k.get(e)||0),k.set(e,requestAnimationFrame(()=>{for(let t of v.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute("data-load-on")||"ready",i=r in E?E[r]:E.ready;for(let e of v.get(t)||[])i(t).then(e);v.delete(t),k.delete(e)}}}))}function S(e,t){for(let[n,r]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))v.has(n)||v.set(n,new Set),v.get(n).add(r);C(document)}function C(e){r||(r=new MutationObserver(e=>{if(v.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&A(e)})),A(e),r.observe(e,{subtree:!0,childList:!0})}let x=Symbol.for("catalyst");class T{constructor(e,t){const n=this,r=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const i=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,i)};const o=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,r){n.attributeChangedCallback(this,e,t,r,o)};let l=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,l)},set(e){l=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",r=e=>f(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...L(e.prototype,p)].map(r).concat(t),set(e){t=e}})}(e),function(e,t){let n=t||h(e.name).replace(/-element$/,"");try{window.customElements.define(n,e),window[e.name]=customElements.get(n)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e,t)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,r;for(let t of(e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),e.querySelectorAll("template[data-shadowroot]")))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0));(b(e),i.add(e),e.shadowRoot&&(s(r=e.shadowRoot),l(r)),s(e),l(e.ownerDocument),t?.call(e),e.shadowRoot)&&(s(n=e.shadowRoot),l(n),C(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,i){b(e),"data-catalyst"!==t&&i&&i.call(e,t,n,r)}}function L(e,t){if(!Object.prototype.hasOwnProperty.call(e,x)){let t=e[x],n=e[x]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[x];return n.has(t)||n.set(t,new Set),n.get(t)}function O(e,t){L(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function P(e,t){L(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)===this&&n.push(r);return n}})}function I(e){if("string"==typeof e)return t=>{new T(t,e)};new T(e)}},74057(e,t,n){n.d(t,{A:()=>b});let r="data-close-dialog",i=`[${r}]`;function o(e){let t=Array.from(e.querySelectorAll("[autofocus]")).filter(s)[0];t||(t=e,e.setAttribute("tabindex","-1")),t.focus()}function l(e){let t=e.currentTarget;t instanceof Element&&("Escape"===e.key||"Esc"===e.key?(d(t,!1),e.stopPropagation()):"Tab"===e.key&&function(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.querySelector("details-dialog");if(!t)return;e.preventDefault();let n=Array.from(t.querySelectorAll("*")).filter(s);if(0===n.length)return;let r=e.shiftKey?-1:1,i=t.getRootNode(),o=t.contains(i.activeElement)?i.activeElement:null,l=-1===r?-1:0;if(o instanceof HTMLElement){let e=n.indexOf(o);-1!==e&&(l=e+r)}l<0?l=n.length-1:l%=n.length,n[l].focus()}(e))}function s(e){var t;return e.tabIndex>=0&&!e.disabled&&!(t=e).hidden&&(!t.type||"hidden"!==t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function a(e){let t=e.querySelector("details-dialog");return!(t instanceof g)||t.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function c(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.closest("details");t&&t.hasAttribute("open")&&(a(t)||(e.preventDefault(),e.stopPropagation()))}function u(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector("details-dialog");if(n instanceof g)if(t.hasAttribute("open")){let e="getRootNode"in n?n.getRootNode():document;e.activeElement instanceof HTMLElement&&m.set(n,{details:t,activeElement:e.activeElement}),o(n),t.addEventListener("keydown",l)}else{var r,i;let e;for(let e of n.querySelectorAll("form"))e.reset();let o=(r=t,i=n,(e=m.get(i))&&e.activeElement instanceof HTMLElement?e.activeElement:r.querySelector("summary"));o&&o.focus(),t.removeEventListener("keydown",l)}}function d(e,t){t!==e.hasAttribute("open")&&(t?e.setAttribute("open",""):a(e)&&e.removeAttribute("open"))}function h(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector("details-dialog");if(!(n instanceof g))return;let r=n.querySelector("include-fragment:not([src])");if(!r)return;let i=n.src;null!==i&&(r.addEventListener("loadend",()=>{t.hasAttribute("open")&&o(n)}),r.setAttribute("src",i),p(t))}function f(e,t,n){p(e),t&&e.addEventListener("toggle",h,{once:!0}),t&&n&&e.addEventListener("mouseover",h,{once:!0})}function p(e){e.removeEventListener("toggle",h),e.removeEventListener("mouseover",h)}let m=new WeakMap;class g extends HTMLElement{static get CLOSE_ATTR(){return r}static get CLOSE_SELECTOR(){return i}constructor(){super(),m.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:e}){if(!(e instanceof Element))return;let t=e.closest("details");t&&e.closest(i)&&d(t,!1)})}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e||"")}get preload(){return this.hasAttribute("preload")}set preload(e){e?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");let e=m.get(this);if(!e)return;let t=this.parentElement;if(!t)return;let n=t.querySelector("summary");n&&(n.hasAttribute("role")||n.setAttribute("role","button"),n.addEventListener("click",c,{capture:!0})),t.addEventListener("toggle",u),e.details=t,f(t,this.src,this.preload)}disconnectedCallback(){let e=m.get(this);if(!e)return;let{details:t}=e;if(!t)return;t.removeEventListener("toggle",u),p(t);let n=t.querySelector("summary");n&&n.removeEventListener("click",c,{capture:!0}),e.details=null}toggle(e){let t=m.get(this);if(!t)return;let{details:n}=t;n&&d(n,e)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){let e=m.get(this);if(!e)return;let{details:t}=e;t&&f(t,this.src,this.preload)}}let b=g;window.customElements.get("details-dialog")||(window.DetailsDialogElement=g,window.customElements.define("details-dialog",g))},50515(e,t,n){n.d(t,{JC:()=>E,KK:()=>h,Vy:()=>a,ai:()=>w,rd:()=>f});class r{constructor(e){this.children=[],this.parent=e}delete(e){let t=this.children.indexOf(e);return -1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class i{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let t=this;for(let n=0;n","\xbf":"?"},l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?",q:"Q",w:"W",e:"E",r:"R",t:"T",y:"Y",u:"U",i:"I",o:"O",p:"P",a:"A",s:"S",d:"D",f:"F",g:"G",h:"H",j:"J",k:"K",l:"L",z:"Z",x:"X",c:"C",v:"V",b:"B",n:"N",m:"M"},s={" ":"Space","+":"Plus"};function a(e,t=navigator.platform){var n,r,i;let{ctrlKey:u,altKey:h,metaKey:f,shiftKey:p,key:m}=e,g=[];for(let[e,t]of[u,h,f,p].entries())t&&g.push(c[e]);if(!c.includes(m)){let e=g.includes("Alt")&&d.test(t)&&null!=(n=o[m])?n:m,a=g.includes("Shift")&&d.test(t)&&null!=(r=l[e])?r:e,c=null!=(i=s[a])?i:a;g.push(c)}return g.join("+")}let c=["Control","Alt","Meta","Shift"];function u(e,t){let n,r,i;{var o,l,s,a=(o=e,l=t,r="u"this.reset(),h.CHORD_TIMEOUT)}}function f(e){return e.split(" ").map(e=>u(e)).join(" ")}function p(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||e.isContentEditable}h.CHORD_TIMEOUT=1500;let m=new i,g=new WeakMap,b=m,v=new h({onReset(){b=m}});function y(e){if(e.defaultPrevented||!(e.target instanceof Node))return;if(p(e.target)){let t=e.target;if(!t.id||!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}let t=b.get(a(e));if(!t)return void v.reset();if(v.registerKeypress(e),b=t,t instanceof r){let r,i=e.target,o=!1,l=p(i);for(let e=t.children.length-1;e>=0;e-=1){let n=(r=t.children[e]).getAttribute("data-hotkey-scope");if(!l&&!n||l&&i.id===n){o=!0;break}}if(r&&o){var n;let t;n=r,t=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:v.path}}),n.dispatchEvent(t)&&(p(n)?n.focus():n.click()),e.preventDefault()}v.reset()}}function w(e,t){0===Object.keys(m.children).length&&document.addEventListener("keydown",y);let n=(function(e){let t=[],n=[""],r=!1;for(let i=0;ie.map(e=>u(e)).filter(e=>""!==e)).filter(e=>e.length>0)})(t||e.getAttribute("data-hotkey")||"").map(t=>m.insert(t).add(e));g.set(e,n)}function E(e){let t=g.get(e);if(t&&t.length)for(let n of t)n&&n.delete(e);0===Object.keys(m.children).length&&document.removeEventListener("keydown",y)}},97088(e,t,n){n.d(t,{s:()=>o});let r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var i=n(36301);class o{constructor(e){this.options=e,this.eventBatch=[],this.idleCallbackId=null,this.waitTimerId=null,this.onVisibilityChange=()=>{"hidden"===document.visibilityState&&this.flushBatch()},this.boundFlush=()=>this.flushBatch(),"u">typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.addEventListener("pagehide",this.boundFlush)}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,i.y)()}get maxBatchSize(){return this.options.maxBatchSize??10}get idleTimeout(){return this.options.idleTimeout??1e3}createEvent(e){return{page:location.href,title:document.title,context:{...this.options.baseContext,...function(){let e={};try{for(let[t,n]of new URLSearchParams(window.location.search)){let i=t.toLowerCase();r.includes(i)&&(e[i]=n)}return e}catch(e){return{}}}(),...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]})}sendBatchedEvent(e,t){let n={...this.createEvent(t),type:e};this.eventBatch.push(n),this.eventBatch.length>=this.maxBatchSize?this.flushBatch():this.scheduleFlush()}flushBatch(){if(0===this.eventBatch.length)return;this.cancelScheduledFlush();let e=this.eventBatch;this.eventBatch=[],this.send({events:e})}destroy(){this.flushBatch(),"u">typeof document&&document.removeEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.removeEventListener("pagehide",this.boundFlush)}scheduleFlush(){null===this.idleCallbackId&&null===this.waitTimerId&&(this.waitTimerId=setTimeout(()=>{this.waitTimerId=null,"function"==typeof requestIdleCallback?this.idleCallbackId=requestIdleCallback(this.boundFlush):this.boundFlush()},this.idleTimeout))}cancelScheduledFlush(){null!==this.idleCallbackId&&("function"==typeof cancelIdleCallback&&cancelIdleCallback(this.idleCallbackId),this.idleCallbackId=null),null!==this.waitTimerId&&(clearTimeout(this.waitTimerId),this.waitTimerId=null)}send({page_views:e,events:t}){let n=JSON.stringify({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()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:n,keepalive:!1})}}},70837(e,t,n){n.d(t,{O:()=>r});function r(e="ha"){let t,n={};for(let r of Array.from(document.head.querySelectorAll(`meta[name^="${e}-"]`))){let{name:i,content:o}=r,l=i.replace(`${e}-`,"").replace(/-/g,"_");"url"===l?t=o:n[l]=o}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}}}]); //# sourceMappingURL=18728-664614aa8ee76cdd-29967404cc3603f6.js.map