"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["ui_packages_hydro-analytics_hydro-analytics_ts-ui_packages_query-builder-element_element-entry_ts"],{70170:(e,t,n)=>{function r(e,t=0,{start:n=!0,middle:o=!0,once:i=!1}={}){let a,c=n,l=0,u=!1;function s(...r){if(u)return;let d=Date.now()-l;l=Date.now(),n&&o&&d>=t&&(c=!0),c?(c=!1,e.apply(this,r),i&&s.cancel()):(o&&d{l=Date.now(),e.apply(this,r),i&&s.cancel()},o?t-d:t))}return s.cancel=()=>{clearTimeout(a),u=!0},s}function o(e,t=0,{start:n=!1,middle:i=!1,once:a=!1}={}){return r(e,t,{start:n,middle:i,once:a})}n.d(t,{n:()=>r,s:()=>o})},7799:(e,t,n)=>{let r;function o(){if(!r)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return r}function i(){return r?.locale??"en-US"}function a(){return!!o().login}n.d(t,{JK:()=>i,M3:()=>a,_$:()=>o});!function(){if("undefined"!=typeof document){let e=document.getElementById("client-env");if(e)try{r=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}}()},32475:(e,t,n)=>{n.d(t,{G:()=>o,K:()=>i});var r=n(96679);let o=r.XC?.readyState==="interactive"||r.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{r.XC?.addEventListener("DOMContentLoaded",()=>{e()})}),i=r.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{r.cg?.addEventListener("load",e)})},27851:(e,t,n)=>{n.d(t,{G7:()=>l,XY:()=>u,fQ:()=>c});var r=n(5225),o=n(7799);function i(){return new Set((0,o._$)().featureFlags)}let a=n(96679).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?i:(0,r.A)(i);function c(){return Array.from(a())}function l(e){return a().has(e)}let u={isFeatureEnabled:l}},38007:(e,t,n)=>{let r;n.d(t,{BI:()=>h,Ti:()=>g,lA:()=>f,sX:()=>m});var o=n(70837),i=n(18679),a=n(85351),c=n(7479);let{getItem:l}=(0,a.A)("localStorage"),u="dimension_",s=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];try{let e=(0,o.O)("octolytics");delete e.baseContext,r=new i.s(e)}catch{}function d(e){let t=(0,o.O)("octolytics").baseContext||{};if(t)for(let[e,n]of(delete t.app_id,delete t.event_url,delete t.host,Object.entries(t)))e.startsWith(u)&&(t[e.replace(u,"")]=n,delete t[e]);let n=document.querySelector("meta[name=visitor-payload]");for(let[e,r]of(n&&Object.assign(t,JSON.parse(atob(n.content))),new URLSearchParams(window.location.search)))s.includes(e.toLowerCase())&&(t[e]=r);return t.staff=(0,c.X)().toString(),Object.assign(t,e)}function f(e){r?.sendPageView(d(e))}function m(){return document.head?.querySelector('meta[name="current-catalog-service"]')?.content}function h(e,t={}){let n=m(),o=n?{service:n}:{};for(let[e,n]of Object.entries(t))null!=n&&(o[e]=`${n}`);r&&(d(o),r.sendEvent(e||"unknown",d(o)))}function g(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,JSON.stringify(t)]))}},16913:(e,t,n)=>{n.r(t),n(42671)},43827:(e,t,n)=>{n.d(t,{k:()=>a,v:()=>c});var r=n(5225),o=n(96679);let i=(0,r.A)(function(){return o.XC?.head?.querySelector('meta[name="runtime-environment"]')?.content||""}),a=(0,r.A)(function(){return"enterprise"===i()}),c="webpack"},85351:(e,t,n)=>{n.d(t,{A:()=>a,D:()=>c});var r=n(96679),o=n(7479);let i=class NoOpStorage{getItem(){return null}setItem(){}removeItem(){}clear(){}key(){return null}get length(){return 0}};function a(e,t={throwQuotaErrorsOnSet:!1},n=r.cg,c=e=>e,l=e=>e){let u;try{if(!n)throw Error();u=n[e]||new i}catch{u=new i}let{throwQuotaErrorsOnSet:s}=t;function d(e){t.sendCacheStats&&(0,o.i)({incrementKey:e})}function f(e){try{if(u.removeItem(e),t.ttl){let t=`${e}:expiry`;u.removeItem(t)}}catch{}}return{getItem:function(e,t=Date.now()){try{let n=u.getItem(e);if(!n)return null;let r=`${e}:expiry`,o=Number(u.getItem(r));if(o&&t>o)return f(e),f(r),d("SAFE_STORAGE_VALUE_EXPIRED"),null;return d("SAFE_STORAGE_VALUE_WITHIN_TTL"),c(n)}catch{return null}},setItem:function(e,n,r=Date.now()){try{if(u.setItem(e,l(n)),t.ttl){let n=`${e}:expiry`,o=r+t.ttl;u.setItem(n,o.toString())}}catch(e){if(s&&e instanceof Error&&e.message.toLowerCase().includes("quota"))throw e}},removeItem:f,clear:u.clear,getKeys:function(){return Object.keys(u)},get length(){return u.length}}}function c(e){return a(e,{throwQuotaErrorsOnSet:!1},r.cg,JSON.parse,JSON.stringify)}},96679:(e,t,n)=>{n.d(t,{KJ:()=>r.KJ,Kn:()=>o.Kn,X3:()=>r.X3,XC:()=>o.XC,cg:()=>o.cg,fV:()=>o.fV,g5:()=>r.g5});var r=n(28583),o=n(46570)},46570:(e,t,n)=>{n.d(t,{Kn:()=>a,XC:()=>o,cg:()=>i,fV:()=>c});let r="undefined"!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,o="undefined"==typeof document||r?void 0:document,i="undefined"==typeof window||r?void 0:window,a="undefined"==typeof history||r?void 0:history,c="undefined"==typeof location||r?{pathname:"",origin:"",search:"",hash:"",href:""}:location},28583:(e,t,n)=>{n.d(t,{KJ:()=>i,X3:()=>o,g5:()=>a});var r=n(46570);let o=void 0===r.XC,i=!o;function a(){return!!o||!r.XC||!!(r.XC.querySelector('react-app[data-ssr="true"]')||r.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},7479:(e,t,n)=>{n.d(t,{X:()=>h,i:()=>s});var r=n(96679),o=n(32475),i=n(43827),a=n(27851),c=n(7799),l=n(70170);let u=[];function s(e,t=!1,n=.5){if(!r.X3&&!0!==(0,a.G7)("browser_stats_disabled")){if(n<0||n>1)throw RangeError("Sampling probability must be between 0 and 1");void 0===e.timestamp&&(e.timestamp=Date.now()),e.loggedIn=(0,c.M3)(),e.staff=h(),e.bundler=i.v,Math.random()JSON.stringify(e));for(;n.length>0;)t.push(function(e){let t=e.shift(),n=[t],r=t.length;for(;e.length>0&&r<=65536;){let t=e[0].length;if(r+t<=65536){let o=e.shift();n.push(o),r+=t}else break}return n}(n));return t}(u)){var t=e,n=`{"stats": [${o.join(",")}], "target": "${r.XC?.head?.querySelector('meta[name="ui-target"]')?.content||"full"}"}`;try{navigator.sendBeacon&&navigator.sendBeacon(t,n)}catch{}}u=[]}}function h(){return!!r.XC?.head?.querySelector('meta[name="user-staff"]')?.content}r.XC?.addEventListener("pagehide",m),r.XC?.addEventListener("visibilitychange",m)},18679:(e,t,n)=>{n.d(t,{s:()=>AnalyticsClient});let r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var o=n(36301);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.y)()}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 o=t.toLowerCase();r.includes(o)&&(e[o]=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]})}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})}}},36301:(e,t,n)=>{let r;function o(){return`${Math.round(0x7fffffff*Math.random())}.${Math.round(Date.now()/1e3)}`}function i(){try{let e=function(){let e,t=document.cookie.match(/_octo=([^;]+)/g);if(!t)return;let n=[0,0];for(let r of t){let[,t]=r.split("="),[,o,...i]=t.split("."),a=o.split("-").map(Number);a>n&&(n=a,e=i.join("."))}return e}();if(e)return e;let t=o();return!function(e){let t=`GH1.1.${e}`,n=new Date(Date.now()+31536e6).toUTCString(),{domain:r}=document;r.endsWith(".github.com")&&(r="github.com"),document.cookie=`_octo=${t}; expires=${n}; path=/; domain=${r}; secure; samesite=lax`}(t),t}catch(e){return r||(r=o()),r}}n.d(t,{y:()=>i})},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:o,content:i}=r,a=o.replace(`${e}-`,"").replace(/-/g,"_");"url"===a?t=i:n[a]=i}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}},5225:(e,t,n)=>{function r(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function o(e,t={}){let{hash:n=r,cache:i=new Map}=t;return function(...t){let r=n.apply(this,t);if(i.has(r))return i.get(r);let o=e.apply(this,t);return o instanceof Promise&&(o=o.catch(e=>{throw i.delete(r),e})),i.set(r,o),o}}n.d(t,{A:()=>o})}}]); //# sourceMappingURL=ui_packages_hydro-analytics_hydro-analytics_ts-ui_packages_query-builder-element_element-entry_ts-a04489587658.js.map