performance.mark("js-parse-end:16643-8f0ad7358e18ebd9.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["16643"],{95136(e,t,s){s.d(t,{y:()=>i});var n=s(74848),a=s(16522),r=s(8470);function i(e){let t,s,i=(0,a.c)(7),{children:l,appName:o,category:c,metadata:d}=e;i[0]!==o||i[1]!==c||i[2]!==d?(t={appName:o,category:c,metadata:d},i[0]=o,i[1]=c,i[2]=d,i[3]=t):t=i[3];let u=t;return i[4]!==l||i[5]!==u?(s=(0,n.jsx)(r.I,{value:u,children:l}),i[4]=l,i[5]=u,i[6]=s):s=i[6],s}i.displayName="AnalyticsProvider"},8470(e,t,s){s.d(t,{I:()=>n});let n=(0,s(96540).createContext)(null);n.displayName="AnalyticsContext"},34619(e,t,s){s.d(t,{O:()=>i,S:()=>r});var n=s(26316);let a=n.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",r="X-GitHub-Client-Version";function i(){return a}},13705(e,t,s){s.d(t,{D:()=>r,Y:()=>i});var n=s(49481),a=s(26316);function r(e){if(!a.XC)return;let t=a.XC.querySelector("title"),s=a.XC.createElement("title");s.textContent=e,t?t.textContent!==e&&(t.replaceWith(s),(0,n.i)(e)):(a.XC.head.appendChild(s),(0,n.i)(e))}function i(e){return document.body.classList.contains("logged-out")?`${e} \xb7 GitHub`:e}},5045(e,t,s){s.d(t,{jC:()=>l,kt:()=>r,tV:()=>i});var n=s(34619),a=s(381);function r(e){let t={"X-Requested-With":"XMLHttpRequest",...(0,a.wE)(e)};return{...t,[n.S]:(0,n.O)()}}function i(e,t){for(let[s,n]of Object.entries(r(t)))e.set(s,n)}function l(e){return{"X-GitHub-App-Type":e}}},381(e,t,s){s.d(t,{$r:()=>i,M1:()=>l,li:()=>a,pS:()=>c,wE:()=>o});var n=s(26316);let a="X-Fetch-Nonce",r=new Set;function i(e){r.add(e)}function l(){return r.values().next().value||""}function o(e){let t={};return void 0!==e&&(t["X-Fetch-Nonce-To-Validate"]=e),void 0===e?t[a]=l():r.has(e)?t[a]=e:t[a]=Array.from(r).join(","),t}function c(){let e=n.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&i(e)}},10225(e,t,s){s.d(t,{t:()=>a});var n=s(4069);let a=({items:e,filter:t,key:s,secondaryKey:a})=>{let r=[];for(let i of e){let e=(0,n.dt)(t,s(i)),l=a?Math.max(e,(0,n.dt)(t,a(i))):e;l>n.IP&&r.push([l,i])}return r.sort(([e,t],[n,a])=>n===e?s(t).localeCompare(s(a)):n-e),r.map(([,e])=>e)}},4069(e,t,s){s.d(t,{Dx:()=>i,IP:()=>r,M4:()=>a,dt:()=>l});var n=s(91385);let a=1/0,r=-1/0,i=1,l=(e,t,s=i)=>{let l=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(l===o)return a;if(0===o.length||0===l.length)return r;let c=(0,n.fN)(l,o);return c===1/0&&l!==o?r:o.startsWith(l)||o.endsWith(l)?c+s:c}},13759(e,t,s){s.d(t,{Av:()=>l,BM:()=>n,HX:()=>u,M_:()=>h,RD:()=>d,rb:()=>a});let n="GraphQLTraces",a="GraphQLTracingRefresh",r=i()?decodeURIComponent(new URLSearchParams(window.location.search).get("disable_clusters")||"").split(",").filter(e=>""!==e):[];function i(){return"u">typeof window}function l(e){if(!i()||!o()||!e)return;let t=window;t&&!t[n]&&(t[n]=[]),t&&e.__trace&&(t[n].push(e.__trace),"function"==typeof t[a]&&t[a]())}function o(){if(!i())return!1;let e=window;return"true"===new URLSearchParams(window.location.search).get("_tracing")||e&&void 0!==e[n]}function c(){return r.length>0}function d(e){if(!i()||!o()&&!c())return e;let t=new URL(e,window.location.origin);return o()&&t.searchParams.set("_tracing","true"),c()&&t.searchParams.set("disable_clusters",r.join(",")),t.pathname+t.search}function u(e){return r.indexOf(e)>-1}function h(e){if(!i())return;let t=r.indexOf(e);t>-1?r.splice(t,1):r.push(e);let s=new URLSearchParams(window.location.search);s.set("disable_clusters",r.join(",")),window.location.search=s.toString()}},52111(e,t,s){s.d(t,{l:()=>n});let n=()=>void 0},70199(e,t,s){var n=s(5468),a=s(74848),r=s(96540),i=s(67323),l=s(49305),o=s(61398),c=s(38621),d=s(73537),u=s(78597);let h=async e=>{try{let t=await (0,u.DI)("/notifications/subscribe",{method:"POST",body:e});if(t.ok)return{ok:!0,errorMsg:""};{let e=await t.json(),s=e.error?e.error:"Failed to update";return{ok:!1,errorMsg:s}}}catch(e){return{ok:!1,errorMsg:e instanceof Error?e.message:"Failed to update"}}};var p=s(16522),m=s(18990);let b="none",f="watching",g="ignoring",w="custom",_={[b]:"Participating and @mentions",[f]:"All Activity",[g]:"Ignore",[w]:"Custom"},y={..._,[b]:"Participating"},x={[b]:"Watch",[f]:"Unwatch",[g]:"Stop ignoring",[w]:"Unwatch"},v=[{name:_[b],description:"Only receive notifications from this repository when participating or @mentioned.",subscriptionType:b},{name:_[f],description:"Notified of all notifications on this repository.",subscriptionType:f},{name:_[g],description:"Never be notified.",subscriptionType:g},{name:_[w],description:"Select events you want to be notified of in addition to participating and @mentions.",trailingIcon:(0,r.createElement)(c.ArrowRightIcon),subscriptionType:w}],S=e=>e in x?x[e]:"";function L(e){let t,s,n=(0,p.c)(4);return n[0]!==e?(t=v.map((t,s)=>(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)(m.l.Item,{selected:t.subscriptionType===e.selected,onSelect:()=>e.onSelect(t.subscriptionType),children:[(0,a.jsx)("span",{className:"SubscriptionList-module__subscriptionTypeName__ysvF9",children:t.name}),(0,a.jsx)(m.l.Description,{variant:"block",children:t.description}),t.trailingIcon?(0,a.jsx)(m.l.TrailingVisual,{children:t.trailingIcon}):null]}),s!==v.length-1?(0,a.jsx)(m.l.Divider,{}):""]},s)),n[0]=e,n[1]=t):t=n[1],n[2]!==t?(s=(0,a.jsx)(m.l,{selectionVariant:"single",children:t}),n[2]=t,n[3]=s):s=n[3],s}L.displayName="SubscriptionList";var T=s(7624),j=s(85965),C=s(21373),N=s(93607);function A(e){let t,s,n,i,l,o=(0,p.c)(19),[d,u]=(0,r.useState)(!1),[h,m]=(0,r.useState)("");if(o[0]!==h||o[1]!==e.items){let s;o[3]!==h?(s=e=>e?.text?.toLowerCase().startsWith(h.toLowerCase()),o[3]=h,o[4]=s):s=o[4],t=e.items.filter(s),o[0]=h,o[1]=e.items,o[2]=t}else t=o[2];let b=t;return o[5]!==e.items.length||o[6]!==e.labelsText?(s=t=>{let{children:s,...n}=t;return 0===e.items.length?(0,a.jsx)(C.Q,{...n,trailingAction:c.TriangleDownIcon,"aria-haspopup":"dialog",children:"No labels available"}):(0,a.jsxs)(C.Q,{...n,trailingAction:c.TriangleDownIcon,"aria-haspopup":"dialog",children:[(0,a.jsx)("span",{className:"color-fg-muted",children:"Labels: "}),(0,a.jsx)("span",{id:"select-labels",children:e.labelsText})]})},o[5]=e.items.length,o[6]=e.labelsText,o[7]=s):s=o[7],o[8]!==e?(n=(t,s)=>{u(t),"click-outside"===s&&e.applyLabels()},o[8]=e,o[9]=n):n=o[9],o[10]===Symbol.for("react.memo_cache_sentinel")?(i={width:"small",height:"medium",maxHeight:"medium"},o[10]=i):i=o[10],o[11]!==b||o[12]!==d||o[13]!==e.onChangeLabels||o[14]!==e.resetLabels||o[15]!==e.selectedLabels||o[16]!==s||o[17]!==n?(l=(0,a.jsx)(N.X,{title:"Select labels",renderAnchor:s,placeholder:"Filter labels",open:d,onCancel:e.resetLabels,onOpenChange:n,items:b,selected:e.selectedLabels,onSelectedChange:e.onChangeLabels,onFilterChange:m,showItemDividers:!0,overlayProps:i}),o[11]=b,o[12]=d,o[13]=e.onChangeLabels,o[14]=e.resetLabels,o[15]=e.selectedLabels,o[16]=s,o[17]=n,o[18]=l):l=o[18],l}A.displayName="FilterLabels";var I=s(5584);function E(e){let t,s,n,r,i=(0,p.c)(12),{owner:l,repo:o,selectedLabels:d,labelsText:u,onSelectionChange:h}=e;i[0]!==d?(t=d.map(M),i[0]=d,i[1]=t):t=i[1];let m=t;i[2]!==h?(s=e=>{h(e.map(k))},i[2]=h,i[3]=s):s=i[3];let b=s;return i[4]!==u?(n=(e,t)=>(0,a.jsxs)(C.Q,{ref:t,trailingAction:c.TriangleDownIcon,...e,"aria-haspopup":"dialog",children:[(0,a.jsx)("span",{className:"color-fg-muted",children:"Labels: "}),(0,a.jsx)("span",{id:"select-labels",children:u})]}),i[4]=u,i[5]=n):n=i[5],i[6]!==b||i[7]!==m||i[8]!==l||i[9]!==o||i[10]!==n?(r=(0,a.jsx)(I.t,{owner:l,repo:o,labels:m,canCreateLabel:!1,showColors:!1,showEditLabelsButton:!1,selectionVariant:"multiple",onSelectionChange:b,title:"Select Labels",anchorElement:n}),i[6]=b,i[7]=m,i[8]=l,i[9]=o,i[10]=n,i[11]=r):r=i[11],r}function k(e){return{id:e.id,text:e.name}}function M(e){return{id:String(e.id??""),name:e.text??"",nameHTML:e.text??"",color:"",description:void 0,url:""}}E.displayName="DeferredFilterLabels";var F=s(7478);function R(e){let t,s,n,i,l,o,c,d,u,h,m,b,f,g=(0,p.c)(35),{nextFocusRef:w,onApply:_,checkStatus:y,onCancel:x,disabled:v,showError:S,overrideButtonStyles:L}=e,[T,j]=(0,r.useState)(!1);g[0]!==w?(t=()=>(w?.current?.focus(),!0),g[0]=w,g[1]=t):t=g[1];let N=t;g[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{j(!0)},g[2]=s):s=g[2];let A=s;g[3]!==y||g[4]!==_?(n=()=>{_(),setTimeout(()=>{y&&y(A)},600)},g[3]=y,g[4]=_,g[5]=n):n=g[5];let I=n;return g[6]!==S?(i=S?(0,a.jsx)("span",{className:"FooterActions-module__errorMessageText__Efym7",children:"Error. Please try again."}):null,g[6]=S,g[7]=i):i=g[7],g[8]!==L?(l=L??{padding:"var(--base-size-16)"},g[8]=L,g[9]=l):l=g[9],g[10]!==S||g[11]!==T?(o=!S&&T?(0,a.jsx)(F.A,{size:"small",className:"FooterActions-module__FooterActionsSpinner__fUxDq"}):null,g[10]=S,g[11]=T,g[12]=o):o=g[12],g[13]!==x?(c=()=>x(),g[13]=x,g[14]=c):c=g[14],g[15]!==v||g[16]!==N?(d=e=>{v&&N(e)},g[15]=v,g[16]=N,g[17]=d):d=g[17],g[18]!==c||g[19]!==d?(u=(0,a.jsx)(C.Q,{size:"small",onClick:c,onBlur:d,children:"Cancel"}),g[18]=c,g[19]=d,g[20]=u):u=g[20],g[21]!==I?(h=()=>I(),g[21]=I,g[22]=h):h=g[22],g[23]!==v||g[24]!==N||g[25]!==h?(m=(0,a.jsx)(C.Q,{disabled:v,variant:"primary",size:"small",onClick:h,onBlur:N,className:"FooterActions-module__applyButton__kE8rg",children:"Apply"}),g[23]=v,g[24]=N,g[25]=h,g[26]=m):m=g[26],g[27]!==m||g[28]!==l||g[29]!==o||g[30]!==u?(b=(0,a.jsxs)("div",{className:"FooterActions-module__buttonsContainer__mh5X3",style:l,children:[o,u,m]}),g[27]=m,g[28]=l,g[29]=o,g[30]=u,g[31]=b):b=g[31],g[32]!==b||g[33]!==i?(f=(0,a.jsxs)("div",{className:"FooterActions-module__footerContainer__g3gZH",children:[i,b]}),g[32]=b,g[33]=i,g[34]=f):f=g[34],f}R.displayName="FooterActions";let D=e=>{let t=$(e,2);if(e.length>=2){if(2===e.length)return P(e);let s=$(e,3);if(s.length>30)return`${t.slice(0,30)}... +${e.length-2} more`;{let t=e.length>3?` +${e.length-3} more`:"";return`${s}${t}`}}if(1!==e.length)return"All";{let t=e[0]?.text||"";return t.length>30?`${t.slice(0,30)}...`:t}},P=e=>{let t=e[0]?.text||"",s=$(e,2);return s.length>30?t.length>25?`${t.slice(0,25)}... +1 more`:`${s.slice(0,30)}...`:s},$=(e,t)=>e.slice(0,t).map(e=>e.text).join(", "),O=e=>{switch(e){case"PullRequest":return"Pull requests";case"SecurityAlert":return"Security alerts";default:return`${e}s`}};function B(e){let t,s,n,i,l,o,c,d,u,h,m,b,f,g,w=(0,p.c)(57);w[0]!==e?({deferLabels:s,...t}=e,w[0]=e,w[1]=t,w[2]=s):(t=w[1],s=w[2]);let _=void 0!==s&&s;w[3]!==t.appliedLabels.length||w[4]!==t.appliedThreads?(n=()=>{let e=[...t.appliedThreads];return t.appliedLabels.length>0&&!e.includes("Issue")&&e.push("Issue"),e},w[3]=t.appliedLabels.length,w[4]=t.appliedThreads,w[5]=n):n=w[5];let[y,x]=(0,r.useState)(n),[v,S]=(0,r.useState)(t.appliedLabels),[L,C]=(0,r.useState)(t.appliedLabels);w[6]!==t.appliedLabels?(i=()=>D(t.appliedLabels),w[6]=t.appliedLabels,w[7]=i):i=w[7];let[N,I]=(0,r.useState)(i);w[8]!==t.repo?(l=t.repo.split("/"),w[8]=t.repo,w[9]=l):l=w[9];let[k,M]=l;w[10]!==y?(o=e=>{y&&y.includes(e)?x(y.filter(t=>t!==e)):x([...y,e])},w[10]=y,w[11]=o):o=w[11];let F=o;w[12]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{C(e),I(D(e))},w[12]=c):c=w[12];let P=c;w[13]!==L?(d=()=>{S(L)},w[13]=L,w[14]=d):d=w[14];let $=d;w[15]!==v?(u=()=>{C(v),I(D(v))},w[15]=v,w[16]=u):u=w[16];let B=u;if(w[17]!==$||w[18]!==_||w[19]!==N||w[20]!==k||w[21]!==t.repoLabels||w[22]!==t.showLabelSubscriptions||w[23]!==t.subscribableThreadTypes||w[24]!==M||w[25]!==B||w[26]!==L||w[27]!==y||w[28]!==F){let e;w[30]!==$||w[31]!==_||w[32]!==N||w[33]!==k||w[34]!==t.repoLabels||w[35]!==t.showLabelSubscriptions||w[36]!==t.subscribableThreadTypes.length||w[37]!==M||w[38]!==B||w[39]!==L||w[40]!==y||w[41]!==F?(e=(e,s)=>(0,a.jsxs)("div",{className:"ThreadList-module__threadRow__LMSGw",style:s===t.subscribableThreadTypes.length-1?{}:{borderBottom:"1px solid var(--borderColor-default, var(--color-border-default))"},children:[(0,a.jsxs)(T.A,{children:[(0,a.jsx)(j.A,{checked:y.includes(e.name),onChange:()=>F(e.name)}),(0,a.jsx)(T.A.Label,{children:O(e.name)})]}),e.enabled?null:(0,a.jsxs)("p",{className:"ThreadList-module__threadDisabledMessage__ClV8c",children:[O(e.name)," are not enabled for this repository"]}),(0,a.jsx)("div",{"aria-live":"polite",children:"Issue"===e.name&&t.showLabelSubscriptions&&y.includes("Issue")?(0,a.jsx)("div",{className:"ThreadList-module__filterContainer__iGO0D",children:_?(0,a.jsx)(E,{owner:k||"",repo:M||"",selectedLabels:L,labelsText:N,onSelectionChange:P}):(0,a.jsx)(A,{items:t.repoLabels,labelsText:N,onChangeLabels:P,selectedLabels:L,applyLabels:$,resetLabels:B})}):null})]},s),w[30]=$,w[31]=_,w[32]=N,w[33]=k,w[34]=t.repoLabels,w[35]=t.showLabelSubscriptions,w[36]=t.subscribableThreadTypes.length,w[37]=M,w[38]=B,w[39]=L,w[40]=y,w[41]=F,w[42]=e):e=w[42],h=t.subscribableThreadTypes.map(e),w[17]=$,w[18]=_,w[19]=N,w[20]=k,w[21]=t.repoLabels,w[22]=t.showLabelSubscriptions,w[23]=t.subscribableThreadTypes,w[24]=M,w[25]=B,w[26]=L,w[27]=y,w[28]=F,w[29]=h}else h=w[29];w[43]!==h?(m=(0,a.jsx)("div",{className:"ThreadList-module__threadContent__NddmL",children:h}),w[43]=h,w[44]=m):m=w[44],w[45]!==t||w[46]!==L||w[47]!==y?(b=()=>t.saveThreads(y,L),w[45]=t,w[46]=L,w[47]=y,w[48]=b):b=w[48];let X=0===y.length||t.isSavingThreads;return w[49]!==t.cancelMenuCallback||w[50]!==t.showError||w[51]!==b||w[52]!==X?(f=(0,a.jsx)(R,{onCancel:t.cancelMenuCallback,onApply:b,showError:t.showError,disabled:X}),w[49]=t.cancelMenuCallback,w[50]=t.showError,w[51]=b,w[52]=X,w[53]=f):f=w[53],w[54]!==m||w[55]!==f?(g=(0,a.jsxs)(a.Fragment,{children:[m,f]}),w[54]=m,w[55]=f,w[56]=g):g=w[56],g}B.displayName="ThreadList";function X({repositoryId:e,repositoryName:t,watchersCount:s,subscriptionType:n,subscribableThreadTypes:u,repositoryLabels:p,showLabelSubscriptions:m,subscribedLabelIds:_}){let x=(0,d.G7)("notifications_menu_defer_labels"),v=(0,r.useMemo)(()=>(p??[]).map(e=>({id:e.id,text:e.name,selected:e.subscribed})),[p]),T=v.filter(e=>e.selected),j=x?(_??[]).length>0:T.length>0,C=(0,r.useMemo)(()=>u.map(e=>e.subscribed||"Issue"===e.name&&m&&j?e.name:null).filter(e=>null!==e),[u,m,j]),[N,A]=(0,r.useState)(!1),[I,E]=(0,r.useState)(!1),[k,M]=(0,r.useState)(!1),[F,R]=(0,r.useState)(""),D=(0,r.useCallback)(()=>M(!1),[]),[P,$]=(0,r.useState)(C.length>0?w:n),[O,H]=(0,r.useState)(P),[U,G]=(0,r.useState)(C),[W,Q]=(0,r.useState)(()=>x&&_?_.map(e=>({id:e})):T),[q,V]=(0,r.useState)(!1),z=(0,r.useRef)(null),J=(0,r.useCallback)(()=>{E(!1),$(O)},[O]),Y=(0,r.useCallback)(async(t,s)=>{V(!0),G(t),Q(s),H(w);let n=new FormData;n.set("do","custom"),n.set("repository_id",e),t.map(e=>{n.append("thread_types[]",e)}),s.map(e=>{e.id&&n.append("labels[]",e.id.toString())}),(await h(n)).ok?(E(!1),V(!1)):A(!0)},[e]),Z=(0,r.useCallback)(async t=>{let s=new FormData;return t===g?s.set("do","ignore"):t===f?s.set("do","subscribed"):(t===b||t===w&&0===U.length)&&s.set("do","included"),s.append("thread_types[]",""),s.set("repository_id",e),await h(s)},[e,U]),K=(0,r.useCallback)(async e=>{if(e===w)E(!0),$(w);else{let t=await Z(e);t.ok?($(e),H(e),G([])):ee(t.errorMsg)}},[$]),ee=e=>{switch(e){case"limit_exceeded":M(!0),R("limit_exceeded");break;case"forbidden":M(!0),R("forbidden")}},et=(0,r.useCallback)(e=>{G(e)},[G]),es=(0,r.useMemo)(()=>{let e,s;return e=S(P),s=y[P],P===g?`${e} in ${t}`:`${e}: ${s} in ${t}`},[P,t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.W,{children:[(0,a.jsxs)(i.W.Button,{"data-testid":"notifications-subscriptions-menu-button",size:"small",leadingVisual:P===g?c.BellSlashIcon:c.EyeIcon,className:"NotificationsSubscriptionsMenu-module__ActionMenuButton__FVE3w","aria-label":es,children:[S(P),(0,a.jsx)("span",{className:"ml-2 Counter rounded-3 NotificationsSubscriptionsMenu-module__watchCounter__iKoWw",children:s})]}),(0,a.jsx)(i.W.Overlay,{width:"medium",children:(0,a.jsx)(L,{selected:P,onSelect:K})})]}),(0,a.jsx)(l.A,{className:"NotificationsSubscriptionsMenu-module__subscriptionDialog__cEs3l",returnFocusRef:z,isOpen:I,onDismiss:()=>J(),"aria-labelledby":"header",children:(0,a.jsxs)("div",{"data-testid":"inner",children:[(0,a.jsxs)(l.A.Header,{id:"header",children:["Subscribe to events for ",t]}),(0,a.jsx)(B,{subscribableThreadTypes:u,showLabelSubscriptions:m,cancelMenuCallback:J,appliedThreads:U,repoLabels:v,subscribedThreads:C,applyThreads:et,appliedLabels:W,saveThreads:Y,showError:N,isSavingThreads:q,deferLabels:x,repo:t})]})}),k&&(0,a.jsx)(o.l,{title:"You are unable to watch this repository",onClose:D,children:(0,a.jsxs)(o.l.Body,{children:["forbidden"===F&&"This action is not available for this repository.","limit_exceeded"===F&&(0,a.jsxs)(a.Fragment,{children:["You have reached the limit of 10,000 watched repositories. Update your"," ",(0,a.jsx)("a",{href:"/watching",children:"watch settings"})," to continue."]})]})})]})}X.displayName="NotificationsSubscriptionsMenu",(0,n.k)("notifications-subscriptions-menu",{Component:X})},58418(e,t,s){let n;s.d(t,{A:()=>d});var a=s(35205),r=s(51189);let{getItem:i,setItem:l,removeItem:o}=(0,a.A)("localStorage"),c="REACT_PROFILING_DISABLED_UNTIL",d={enable:()=>{o(c),n=void 0},disable:()=>{l(c,String(Date.now()+864e5)),n=!1},isEnabled:()=>!("u"=t)&&(o(c),!0)}():.02>Math.random()),resetCache:()=>{n=void 0}}},16497(e,t,s){s.d(t,{$6:()=>c,JR:()=>l,Jg:()=>u,vb:()=>i});var n=s(74848),a=s(16522),r=s(94709);let i=h(r.az),l=h(r.EY),o=e=>{let t,s,r,i=(0,a.c)(6);return i[0]!==e?({ref:s,...t}=e,i[0]=e,i[1]=t,i[2]=s):(t=i[1],s=i[2]),i[3]!==t||i[4]!==s?(r=(0,n.jsx)("div",{...t,ref:s}),i[3]=t,i[4]=s,i[5]=r):r=i[5],r};o.displayName="Div";let c=h(o),d=e=>{let t,s,r,i=(0,a.c)(6);return i[0]!==e?({ref:s,...t}=e,i[0]=e,i[1]=t,i[2]=s):(t=i[1],s=i[2]),i[3]!==t||i[4]!==s?(r=(0,n.jsx)("bdi",{...t,ref:s}),i[3]=t,i[4]=s,i[5]=r):r=i[5],r};d.displayName="Bdi";let u=h(d);function h(e){let t=t=>{let s,r,i,l,o=(0,a.c)(8);o[0]!==t?({html:s,...r}=t,o[0]=t,o[1]=s,o[2]=r):(s=o[1],r=o[2]);let c=r;return o[3]!==s?(i=s?{__html:s}:void 0,o[3]=s,o[4]=i):i=o[4],o[5]!==c||o[6]!==i?(l=(0,n.jsx)(e,{...c,dangerouslySetInnerHTML:i}),o[5]=c,o[6]=i,o[7]=l):l=o[7],l};return t.displayName=`SafeHTML${e.displayName||e.name}`,t}},5384(e,t,s){s.d(t,{Tt:()=>l,X7:()=>i,Ou:()=>o});let n="service_worker.postrequest";var a=s(66743);let r=null;async function i(e){if(null===r)try{let t=navigator.serviceWorker?.controller;if(!t||!function(e){let t=new URL(e,self.location.origin).pathname.split("/").filter(Boolean);if(4!==t.length||"issues"!==t[2])return!1;let s=t[3];return!!(void 0!==s&&/^\d+$/.test(s))&&!!t[0]&&!!t[1]}(e))return;let s=performance.now();r=await new Promise((r,i)=>{let l=new MessageChannel;function o(){l.port1.onmessage=null,l.port1.onmessageerror=null,l.port1.close(),l.port2.close()}let c=setTimeout(()=>{o();let e=performance.now()-s;(0,a.BI)(n,{duration_ms:e,timedOut:!0}),r(null)},500);l.port1.onmessage=e=>{clearTimeout(c),o();let t=performance.now()-s;if(e.data?.type==="CACHED_QUERIES_RESPONSE"&&e.data.data){let s=e.data.data.preloadedQueries;(0,a.BI)(n,{duration_ms:t,timedOut:!1}),r(s)}else(0,a.BI)(n,{duration_ms:t,timedOut:!1}),r(null)},l.port1.onmessageerror=()=>{clearTimeout(c),o(),i(Error("SW message channel error"))},t.postMessage({type:"GET_CACHED_QUERIES",url:e},[l.port2])})}catch{r=null}}function l(){return r}function o(){r=null}},70247(e,t,s){s.d(t,{V:()=>p});var n=s(74848),a=s(16522),r=s(96540),i=s(40914),l=s(38621),o=s(52870),c=s(56149);let d={info:"",success:"Toast--success",error:"Toast--error"},u={info:(0,n.jsx)(l.InfoIcon,{}),success:(0,n.jsx)(l.CheckIcon,{}),error:(0,n.jsx)(l.StopIcon,{})},h=e=>{let t,s,i,l,h,p=(0,a.c)(14),{message:m,timeToLive:b,icon:f,type:g,role:w}=e,_=void 0===g?"info":g,y=void 0===w?"log":w,[x,v]=r.useState(!0),{safeSetTimeout:S}=(0,o.A)();p[0]!==S||p[1]!==b?(t=()=>{b&&S(()=>v(!1),b-300)},s=[S,b],p[0]=S,p[1]=b,p[2]=t,p[3]=s):(t=p[2],s=p[3]),(0,r.useEffect)(t,s);let L=`Toast ${d[_]} ${x?"Toast--animateIn":"Toast--animateOut"}`,T=`ui-app-toast-${_}`,j=f||u[_];return p[4]!==j?(i=(0,n.jsx)("span",{className:"Toast-icon",children:j}),p[4]=j,p[5]=i):i=p[5],p[6]!==m?(l=(0,n.jsx)("span",{className:"Toast-content",children:m}),p[6]=m,p[7]=l):l=p[7],p[8]!==y||p[9]!==L||p[10]!==T||p[11]!==i||p[12]!==l?(h=(0,n.jsx)(c.ZL,{children:(0,n.jsx)("div",{className:"p-1 position-fixed bottom-0 left-0 tmp-mb-3 tmp-ml-3",children:(0,n.jsxs)("div",{className:L,id:"ui-app-toast","data-testid":T,role:y,children:[i,l]})})}),p[8]=y,p[9]=L,p[10]=T,p[11]=i,p[12]=l,p[13]=h):h=p[13],h};function p(){let e,t,s,l=(0,a.c)(7),{toasts:o,persistedToast:c}=(0,r.use)(i.T8);return l[0]!==o?(e=o.map(m),l[0]=o,l[1]=e):e=l[1],l[2]!==c?(t=c&&(0,n.jsx)(h,{message:c.message,icon:c.icon,type:c.type,role:c.role}),l[2]=c,l[3]=t):t=l[3],l[4]!==e||l[5]!==t?(s=(0,n.jsxs)(n.Fragment,{children:[e,t]}),l[4]=e,l[5]=t,l[6]=s):s=l[6],s}function m(e,t){return(0,n.jsx)(h,{message:e.message,icon:e.icon,timeToLive:i.Qn,type:e.type,role:e.role},t)}h.displayName="Toast",p.displayName="Toasts"},51581(e,t,s){s.d(t,{S:()=>o,s:()=>l});var n=s(16522),a=s(96540),r=s(66743),i=s(8470);function l(){let e,t,s=(0,n.c)(6),l=(0,a.use)(i.I);if(!l)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:o,category:c,metadata:d}=l;s[0]!==o||s[1]!==c||s[2]!==d?(e=(e,t,s)=>{let n={react:!0,app_name:o,category:c,...d};(0,r.BI)(e,{...n,...void 0===s?{}:s,target:t})},s[0]=o,s[1]=c,s[2]=d,s[3]=e):e=s[3];let u=e;return s[4]!==u?(t={sendAnalyticsEvent:u},s[4]=u,s[5]=t):t=s[5],t}function o(){let e,t,s=(0,n.c)(4),{sendAnalyticsEvent:a}=l();s[0]!==a?(e=e=>{a("analytics.click",void 0,void 0===e?{}:e)},s[0]=a,s[1]=e):e=s[1];let r=e;return s[2]!==r?(t={sendClickAnalyticsEvent:r},s[2]=r,s[3]=t):t=s[3],t}},63397(e,t,s){s.d(t,{d:()=>i});var n=s(53449),a=s(52246),r=s(96540);let i=(e,t,{leading:s=!1,maxWait:i,trailing:l=!0,onChangeBehavior:o="flush"}={})=>{let c=(0,n.M)(e),d=(0,r.useMemo)(()=>{let e=void 0===i?{leading:s,trailing:l}:{leading:s,trailing:l,maxWait:i};return(0,a.A)((...e)=>c.current(...e),t,e)},[c,t,s,i,l]);return(0,r.useEffect)(()=>()=>{d?.[o]()},[d,o]),d}},78597(e,t,s){s.d(t,{DI:()=>i,QJ:()=>o,Sr:()=>c,lS:()=>l});var n=s(5045),a=s(41763),r=s(13759);async function i(e,t={}){let s,l,o,c;var d,u=e;if(new URL(u,window.location.origin).origin!==window.location.origin)throw Error("Can not make cross-origin requests from verifiedFetch");let{tracingEnabled:h,fetchPath:p}=(s=new URL(d=e,window.location.href),(o=(l=new URL(window.location.href,window.location.origin)).searchParams.get("_features"))&&!s.searchParams.has("_features")&&s.searchParams.set("_features",o),(c=l.searchParams.get("_tracing"))&&!s.searchParams.has("_tracing")&&s.searchParams.set("_tracing",c),{tracingEnabled:!!c,fetchPath:d.startsWith(window.location.origin)?s.href:`${s.pathname}${s.search}`}),m={...t.headers,"GitHub-Verified-Fetch":"true",...(0,n.kt)()},b=await fetch(p,{...t,headers:m}),f=b?.headers?.get("X-Github-Request-Id");if(f&&(0,a.Ex)(f),h&&b){let e=b.clone();try{let t=await e.text(),s=t&&JSON.parse(t);(0,r.Av)(s)}catch{}}return b}function l(e,t){let s={...t?.headers??{},Accept:"application/json","Content-Type":"application/json"},n=t?.body?JSON.stringify(t.body):void 0;return i(e,{...t,body:n,headers:s})}function o(e,t={}){let s={...t.headers,"GitHub-Is-React":"true"};return i(e,{...t,headers:s})}function c(e,t){let s={...t?.headers??{},"GitHub-Is-React":"true"};return l(e,{...t,headers:s})}}}]); //# sourceMappingURL=16643-8f0ad7358e18ebd9-81a563d2f819077e.js.map