티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[66990],{15838:(e,t,a)=>{a.d(t,{Cd:()=>c,E5:()=>l,Im:()=>o,nW:()=>s});var n=a(82518),r=a(94416);let i=”stats:soft-nav-duration”,s={turbo:”TURBO”,react:”REACT”,”turbo.frame”:”FRAME”,”turbo.error”:”TURBO.ERROR”,ui:”UI”,hard:”HARD”};function l(){window.performance.clearResourceTimings(),window.performance.mark(i)}function c(e){(0,n.iv)({turboFailureReason:e,turboStartUrl:(0,r.dR)(),turboEndUrl:window.location.href})}function o(){let e=function(){if(0===performance.getEntriesByName(i).length)return null;performance.measure(i,i);let e=performance.getEntriesByName(i).pop();return e?e.duration:null}();if(!e)return;let t=s[(0,r.di)()],a=Math.round(e);t===s.react&&document.dispatchEvent(new CustomEvent(“staffbar-update”,{detail:{duration:a}})),(0,n.iv)({requestUrl:window.location.href,softNavigationTiming:{mechanism:t,destination:(0,r.fX)()||”rails”,duration:a,initiator:(0,r.Pv)()||”rails”}})}},23470:(e,t,a)=>{a.d(t,{F:()=>d});var n,r=a(28278),i=a(68273),s=a(21728),l=a(5524),c=a(59014),o=a(51220);function d({items:e,itemHeight:t,style:a,renderItem:n,makeKey:i,ariaControls:s,shouldUseActionList:l=!1,className:d,containerRole:m=”none”}){let f=(0,c.useRef)(null),g=(0,o.Te)({count:e.length,getScrollElement:(0,c.useCallback)(()=>f.current,[]),estimateSize:(0,c.useCallback)(()=>t,[t])});return(0,r.jsx)(h,{ref:f,style:a,virtualizer:g,id:s,shouldUseActionList:l,className:d,children:g.getVirtualItems().map((t,a)=>(0,r.jsx)(u,{containerRole:m,virtualRow:t,children:n(e[t.index],a)},i(e[t.index])))})}let h=c.forwardRef((0,i.th)()?function(e,t){let a,n,i=(0,s.c)(11),{children:c,style:o,virtualizer:d,id:h,shouldUseActionList:u,className:m}=e;return i[0]!==c||i[1]!==h||i[2]!==u||i[3]!==d?(a=u?(0,r.jsx)(l.l,{id:h,role:”menu”,style:{height:d.getTotalSize(),width:”100%”,position:”relative”},selectionVariant:”single”,children:c}):(0,r.jsx)(“ul”,{role:”menu”,style:{height:d.getTotalSize(),width:”100%”,position:”relative”},id:h,children:c}),i[0]=c,i[1]=h,i[2]=u,i[3]=d,i[4]=a):a=i[4],i[5]!==m||i[6]!==t||i[7]!==h||i[8]!==o||i[9]!==a?(n=(0,r.jsx)(“div”,{ref:t,style:o,id:h,className:m,children:a}),i[5]=m,i[6]=t,i[7]=h,i[8]=o,i[9]=a,i[10]=n):n=i[10],n}:function({children:e,style:t,virtualizer:a,id:n,shouldUseActionList:i,className:s},c){return(0,r.jsx)(“div”,{ref:c,style:t,id:n,className:s,children:i?(0,r.jsx)(l.l,{id:n,role:”menu”,style:{height:a.getTotalSize(),width:”100%”,position:”relative”},selectionVariant:”single”,children:e}):(0,r.jsx)(“ul”,{role:”menu”,style:{height:a.getTotalSize(),width:”100%”,position:”relative”},id:n,children:e})})}),u=(0,i.th)()?function(e){let t,a,n=(0,s.c)(7),{children:i,containerRole:l,virtualRow:c}=e,o=void 0===l?”none”:l,d=`${c.size}px`,h=`translateY(${c.start}px)`;return n[0]!==d||n[1]!==h?(t={position:”absolute”,top:0,left:0,width:”100%”,height:d,transform:h},n[0]=d,n[1]=h,n[2]=t):t=n[2],n[3]!==i||n[4]!==o||n[5]!==t?(a=(0,r.jsx)(“li”,{role:o,style:t,children:i}),n[3]=i,n[4]=o,n[5]=t,n[6]=a):a=n[6],a}:function({children:e,containerRole:t=”none”,virtualRow:a}){return(0,r.jsx)(“li”,{role:t,style:{position:”absolute”,top:0,left:0,width:”100%”,height:`${a.size}px`,transform:`translateY(${a.start}px)`},children:e})};try{d.displayName||(d.displayName=”FixedSizeVirtualList”)}catch{}try{(n=VirtualListContainerInner).displayName||(n.displayName=”VirtualListContainerInner”)}catch{}try{u.displayName||(u.displayName=”ItemContainer”)}catch{}},38077:(e,t,a)=>{a.d(t,{z:()=>c});var n=a(28278),r=a(68273),i=a(21728);let s=”HighlightedText-module__HighlightedText–XiJMv”;function l(e,t){if(!t)return[e];let a=e.toLowerCase().split(t.toLowerCase());if(a.length<2)return[e];let n=0,r=[];for(let i of a)r.push(e.substring(n,n+i.length)),n+=i.length,r.push(e.substring(n,n+t.length)),n+=t.length;return r}let c=(0,r.th)()?function(e){let t,a,r,c=(0,i.c)(10),{text:d,search:h,hideOverflow:u,overflowWidth:m}=e,f=void 0===m?0:m;c[0]!==h||c[1]!==d?(t=l(d,h).map(o),c[0]=h,c[1]=d,c[2]=t):t=c[2];let g=t,p=void 0!==u&&u?"hidden":"visible",x=f?`${f}px`:void 0,y=h.length?"fg.muted":"fg.default";return c[3]!==p||c[4]!==x||c[5]!==y?(a={maxWidth:x,overflow:p,color:y},c[3]=p,c[4]=x,c[5]=y,c[6]=a):a=c[6],c[7]!==g||c[8]!==a?(r=(0,n.jsx)("div",{style:a,className:s,children:g}),c[7]=g,c[8]=a,c[9]=r):r=c[9],r}:function({text:e,search:t,hideOverflow:a=!1,overflowWidth:r=0}){let i=l(e,t).map((e,t)=>t%2==1?(0,n.jsx)(“strong”,{className:”color-fg-default”,children:e},t):e),c=r?`${r}px`:void 0;return(0,n.jsx)(“div”,{style:{maxWidth:c,overflow:a?”hidden”:”visible”,color:t.length?”fg.muted”:”fg.default”},className:s,children:i})};function o(e,t){return t%2==1?(0,n.jsx)(“strong”,{className:”color-fg-default”,children:e},t):e}try{c.displayName||(c.displayName=”HighlightedText”)}catch{}},41245:(e,t,a)=>{a.d(t,{A:()=>n});let n=(e,t)=>{let a=new URL(e,window.location.origin),n=new URL(t,window.location.origin);return n.href.includes(“#”)&&a.host===n.host&&a.pathname===n.pathname&&a.search===n.search}},65432:(e,t,a)=>{a.d(t,{Bu:()=>f,SC:()=>o,Ti:()=>u,iS:()=>d,k5:()=>c,o4:()=>h,rZ:()=>m});var n=a(82591),r=a(73900),i=a(15838),s=a(94416);let l=0;function c(){l=0,document.dispatchEvent(new Event(n.z.INITIAL)),(0,s.xT)()}function o(e){(0,s.LM)()||(document.dispatchEvent(new Event(n.z.PROGRESS_BAR.START)),document.dispatchEvent(new r.sW(e)),(0,s.Vy)(e),(0,s.ZW)(),(0,s.HK)(),(0,i.E5)())}function d(e={}){p(e)&&(l+=1,document.dispatchEvent(new r.ni((0,s.di)(),l)),u(e))}function h(e={}){if(!p(e))return;l=0;let t=(0,s.my)()||s.BW;document.dispatchEvent(new r.Kq((0,s.di)(),t)),g(),(0,i.Cd)(t),(0,s.xT)()}function u(e={}){if(!p(e))return;let t=(0,s.di)();g(),document.dispatchEvent(new r.RQ(t)),(0,s.Ff)(),(0,s.JA)(t)}function m(e={}){p(e)&&((0,i.Im)(),document.dispatchEvent(new Event(n.z.RENDER)))}function f(){document.dispatchEvent(new Event(n.z.FRAME_UPDATE))}function g(){document.dispatchEvent(new Event(n.z.PROGRESS_BAR.END))}function p({skipIfGoingToReactApp:e,allowedMechanisms:t=[]}={}){return(0,s.LM)()&&(0===t.length||t.includes((0,s.di)()))&&(!e||!(0,s.gc)())}},66990:(e,t,a)=>{a.d(t,{aH:()=>eD,PI:()=>eO,Qe:()=>eL,JJ:()=>eA});var n=a(28278),r=a(68273),i=a(21728),s=a(21373),l=a(72511),c=a(10436),o=a(25407),d=a(38621),h=a(81960),u=a(26108),m=a(5524),f=a(99511),g=a(69726),p=a(59014),x=a(71315),y=a(54571),b=a(29e3),v=a(98871);let S=”CheckTagNameDialog-module__DialogFooterButtons–HNAWb”,j=(0,r.th)()?function(e){let t,a,r=(0,i.c)(6),{isOpen:l,onDismiss:c,onConfirm:o}=e;r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[x.XC?.body],r[0]=t):t=r[0];let[d]=(0,y.I)(C,null,t);return r[1]!==d||r[2]!==l||r[3]!==o||r[4]!==c?(a=d?(0,v.createPortal)((0,n.jsxs)(b.A,{isOpen:l,onDismiss:c,children:[(0,n.jsx)(b.A.Header,{children:”Create branch”}),(0,n.jsxs)(“div”,{className:”p-3″,children:[(0,n.jsx)(“span”,{children:”A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?”}),(0,n.jsxs)(“div”,{className:S,children:[(0,n.jsx)(s.Q,{onClick:c,children:”Cancel”}),(0,n.jsx)(s.Q,{variant:”danger”,onClick:o,className:”ml-2″,children:”Create”})]})]})]}),document.body):null,r[1]=d,r[2]=l,r[3]=o,r[4]=c,r[5]=a):a=r[5],a}:function({isOpen:e,onDismiss:t,onConfirm:a}){let[r]=(0,y.I)(()=>document.body,null,[x.XC?.body]);return r?(0,v.createPortal)((0,n.jsxs)(b.A,{isOpen:e,onDismiss:t,children:[(0,n.jsx)(b.A.Header,{children:”Create branch”}),(0,n.jsxs)(“div”,{className:”p-3″,children:[(0,n.jsx)(“span”,{children:”A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?”}),(0,n.jsxs)(“div”,{className:S,children:[(0,n.jsx)(s.Q,{onClick:t,children:”Cancel”}),(0,n.jsx)(s.Q,{variant:”danger”,onClick:a,className:”ml-2″,children:”Create”})]})]})]}),document.body):null};function C(){return document.body}try{j.displayName||(j.displayName=”CheckTagNameDialog”)}catch{}var R=a(86877),T=a(15220),N=a(96379),w=a(70170);function _({onDismiss:e,onCreate:t,initialTagName:a,tagValidationUrl:r}){let[i,s]=(0,p.useState)(a),l=(0,p.useRef)(!1),c=(0,p.useRef)(null),o=i?.trim(),{state:d,message:h,validateTag:u}=function(e){let[t,a]=(0,p.useState)(“empty”),[n,r]=(0,p.useState)(“”),i=(0,p.useRef)(“”),s=(0,p.useCallback)(async t=>{if(i.current=t,!t){a(“empty”),r(“Tag cannot be blank”);return}a(“loading”);let n=new URL(e,window.location.origin),s=new URLSearchParams(n.search.slice(1));s.append(“tag_name”,t),n.search=s.toString();try{let e=await (0,N.DI)(n.toString(),{headers:{Accept:”application/json”}});if(t!==i.current)return;if(!e.ok){a(“invalid”),r(“Unable to validate tag name. Please try again.”);return}let s=(await e.json()).status;a(s||”empty”),r(function(e,t){switch(e){case”branch_exists”:case”pending”:case”valid”:return`${t} will be created on publish`;case”duplicate”:return`${t} is used by another release`;case”empty”:return”Tag cannot be blank”;case”immutable”:return`${t} is used by an immutable release and cannot be reused`;case”invalid”:return”Contains invalid characters. Use safe special characters ., -, or _ instead”;default:return””}}(s||”empty”,t))}catch{if(t!==i.current)return;a(“invalid”),r(“Unable to validate tag name. Please try again.”)}},[e]);return{state:t,message:n,validateTag:(0,p.useMemo)(()=>(0,w.s)(s,500),[s])}}(r),m=”loading”===d,g=”empty”===d&&l.current,x=”invalid”===d||”immutable”===d||”duplicate”===d||g,y=!m&&h&&(“valid”===d||”pending”===d||”branch_exists”===d||x);(0,p.useEffect)(()=>{a?.trim()&&u(a.trim())},[]);let b=(0,p.useCallback)(e=>{let t=e.target.value;s(t),l.current=!0,u(t.trim())},[u]),v=(0,p.useCallback)(()=>{o&&(t(o),e())},[o,t,e]),S=(0,p.useCallback)(e=>{e.preventDefault(),m||x||v()},[v,m,x]);return(0,n.jsx)(T.l,{onClose:e,title:”Create new tag”,width:”medium”,className:”CreateTagDialog-module__Dialog–a69Xp”,initialFocusRef:c,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:e},{buttonType:”primary”,content:”Create”,onClick:v,disabled:m||x,type:”submit”}],children:(0,n.jsx)(“form”,{onSubmit:S,children:(0,n.jsxs)(R.A,{required:!0,children:[(0,n.jsx)(R.A.Label,{children:”Tag”}),(0,n.jsx)(f.A,{ref:c,value:i,onChange:b,”aria-label”:”Tag name”,block:!0,loading:m}),y&&(0,n.jsx)(R.A.Validation,{variant:x?”error”:”success”,children:h}),”branch_exists”===d&&(0,n.jsx)(R.A.Caption,{children:”Creating a tag with the same name as a branch can cause ambiguity when selecting refs”})]})})})}try{_.displayName||(_.displayName=”CreateTagDialog”)}catch{}async function E(e,t){let a=new FormData;a.set(“value”,t);let n=await (0,N.DI)(e,{method:”POST”,body:a,headers:{Accept:”application/json”}});return!!n.ok&&!!await n.text()}async function k(e,t,a){let n=new FormData;n.set(“name”,t),n.set(“branch”,a);let r=await (0,N.DI)(e,{method:”POST”,body:n,headers:{Accept:”application/json”}});if(r.ok)return{success:!0,name:(await r.json()).name};try{let{error:e}=await r.json();if(e)return{success:!1,error:e};throw Error(“Unknown response from create branch API”)}catch{return{success:!1,error:”Something went wrong.”}}}var I=a(31604),A=a(69676);let O=”RefSelectorAnchoredOverlay-module__RefSelectorOverlayBtn–D34zl”,L=”RefSelectorAnchoredOverlay-module__RefSelectorOverlayContainer–mCbv8″,D=”RefSelectorAnchoredOverlay-module__RefSelectorOverlayHeader–D4cnZ”,F=”RefSelectorAnchoredOverlay-module__RefSelectorBtnTextContainer–yO402″,z=”RefSelectorAnchoredOverlay-module__RefSelectorText–bxVhQ”;var P=a(34164);let B=(0,r.th)()?function(e){let t,a,r,l,c,o,h,u,m,f,g,x=(0,i.c)(52),{ariaDescribedBy:y,ariaLabelledBy:b,ariaLabel:v,hotKey:S,onOpenChange:j,size:C,displayCommitish:R,variant:T,refType:N,children:w,preventClosing:_,inputRef:E,overlayOpen:k,onOverlayChange:B,focusTrapEnabled:$,buttonClassName:V,buttonText:H,persistButtonText:W,buttonPrefix:K,showIcon:U,allowResizing:M,useFocusZone:Q,disabled:G,anchoredOverlayProps:X,renderAnchor:Z}=e,q=void 0===W||W,J=void 0===U||U,Y=(0,p.useId)(),ee=`-${e.idEnding||Y}`,et=`ref-picker${ee}`;x[0]!==j||x[1]!==B?(t=e=>{B(e),j?.(e)},x[0]=j,x[1]=B,x[2]=t):t=x[2];let ea=t;e:{let e;if(void 0===$||$){let e;x[3]!==E?(e={initialFocusRef:E},x[3]=E,x[4]=e):e=x[4],a=e;break e}x[5]!==E?(e={initialFocusRef:E,disabled:!0},x[5]=E,x[6]=e):e=x[6],a=e}let en=a;x[7]!==K||x[8]!==H||x[9]!==R||x[10]!==q?(r=()=>{let e=R.length>0,t=H&&q?H:e?R:H||””;return K?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(“span”,{className:”fgColor-muted”,children:[K,”:”]}),(0,n.jsxs)(“span”,{children:[” “,t]})]}):t},x[7]=K,x[8]=H,x[9]=R,x[10]=q,x[11]=r):r=x[11];let er=r,ei=”branch”===N?”Select a branch”:”Select a tag”;return x[12]!==ei?(l={role:”dialog”,width:”medium”,”aria-label”:ei},x[12]=ei,x[13]=l):l=x[13],x[14]!==ea?(c=()=>ea(!0),x[14]=ea,x[15]=c):c=x[15],x[16]!==ea||x[17]!==_?(o=()=>!_&&ea(!1),x[16]=ea,x[17]=_,x[18]=o):o=x[18],x[19]!==M||x[20]!==y||x[21]!==v||x[22]!==b||x[23]!==V||x[24]!==et||x[25]!==G||x[26]!==R||x[27]!==er||x[28]!==S||x[29]!==ea||x[30]!==N||x[31]!==Z||x[32]!==J||x[33]!==C||x[34]!==T?(h=e=>Z?Z({…e,”aria-labelledby”:b,disabled:G}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Q,{…e,”data-hotkey”:S,disabled:G,size:C,variant:T,style:{minWidth:M?0:void 0},trailingVisual:d.TriangleDownIcon,”aria-describedby”:y,”aria-labelledby”:b,”aria-label”:b?void 0:v??`${R} ${N}`,”data-testid”:”anchor-button”,id:et,className:(0,P.$)(V,O),children:(0,n.jsxs)(“div”,{className:L,children:[J&&(0,n.jsx)(“div”,{className:D,children:”tag”===N?(0,n.jsx)(d.TagIcon,{size:”small”}):(0,n.jsx)(d.GitBranchIcon,{size:”small”})}),(0,n.jsx)(“div”,{style:{maxWidth:M?void 0:125},className:(0,P.$)(“ref-selector-button-text-container”,F),children:(0,n.jsxs)(“span”,{className:z,children:[“\xa0”,er()]})})]})}),(0,n.jsx)(“button”,{hidden:!0,”data-testid”:”ref-selector-hotkey-button”,”data-hotkey”:S,onClick:()=>ea(!0),”data-hotkey-scope”:”read-only-cursor-text-area”,disabled:G})]}),x[19]=M,x[20]=y,x[21]=v,x[22]=b,x[23]=V,x[24]=et,x[25]=G,x[26]=R,x[27]=er,x[28]=S,x[29]=ea,x[30]=N,x[31]=Z,x[32]=J,x[33]=C,x[34]=T,x[35]=h):h=x[35],x[36]!==Q?(u=Q?{bindKeys:A.z0.ArrowAll|A.z0.Tab}:{disabled:!0},x[36]=Q,x[37]=u):u=x[37],x[38]===Symbol.for(“react.memo_cache_sentinel”)?(m={height:”100%”},x[38]=m):m=x[38],x[39]!==et||x[40]!==w?(f=(0,n.jsx)(“div”,{“data-testid”:”overlay-content”,”aria-labelledby”:et,id:”selectPanel”,style:m,children:w}),x[39]=et,x[40]=w,x[41]=f):f=x[41],x[42]!==X||x[43]!==en||x[44]!==k||x[45]!==h||x[46]!==u||x[47]!==f||x[48]!==l||x[49]!==c||x[50]!==o?(g=(0,n.jsx)(I.T,{open:k,overlayProps:l,onOpen:c,onClose:o,renderAnchor:h,focusTrapSettings:en,focusZoneSettings:u,…X,children:f}),x[42]=X,x[43]=en,x[44]=k,x[45]=h,x[46]=u,x[47]=f,x[48]=l,x[49]=c,x[50]=o,x[51]=g):g=x[51],g}:function(e){let{ariaDescribedBy:t,ariaLabelledBy:a,ariaLabel:r,hotKey:i,onOpenChange:l,size:c,displayCommitish:o,variant:h,refType:u,children:m,preventClosing:f,inputRef:g,overlayOpen:x,onOverlayChange:y,focusTrapEnabled:b=!0,buttonClassName:v,buttonText:S,persistButtonText:j=!0,buttonPrefix:C,showIcon:R=!0,allowResizing:T,useFocusZone:N,disabled:w,anchoredOverlayProps:_,renderAnchor:E}=e,k=(0,p.useId)(),B=`-${e.idEnding||k}`,$=`ref-picker${B}`,V=(0,p.useCallback)(e=>{y(e),l?.(e)},[l,y]),H=(0,p.useMemo)(()=>b?{initialFocusRef:g}:{initialFocusRef:g,disabled:!0},[b,g]);return(0,n.jsx)(I.T,{open:x,overlayProps:{role:”dialog”,width:”medium”,”aria-label”:”branch”===u?”Select a branch”:”Select a tag”},onOpen:()=>V(!0),onClose:()=>!f&&V(!1),renderAnchor:e=>{let l,m;return E?E({…e,”aria-labelledby”:a,disabled:w}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Q,{…e,”data-hotkey”:i,disabled:w,size:c,variant:h,style:{minWidth:T?0:void 0},trailingVisual:d.TriangleDownIcon,”aria-describedby”:t,”aria-labelledby”:a,”aria-label”:a?void 0:r??`${o} ${u}`,”data-testid”:”anchor-button”,id:$,className:(0,P.$)(v,O),children:(0,n.jsxs)(“div”,{className:L,children:[R&&(0,n.jsx)(“div”,{className:D,children:”tag”===u?(0,n.jsx)(d.TagIcon,{size:”small”}):(0,n.jsx)(d.GitBranchIcon,{size:”small”})}),(0,n.jsx)(“div”,{style:{maxWidth:T?void 0:125},className:(0,P.$)(“ref-selector-button-text-container”,F),children:(0,n.jsxs)(“span”,{className:z,children:[“\xa0″,(l=o.length>0,m=S&&j?S:l?o:S||””,C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(“span”,{className:”fgColor-muted”,children:[C,”:”]}),(0,n.jsxs)(“span”,{children:[” “,m]})]}):m)]})})]})}),(0,n.jsx)(“button”,{hidden:!0,”data-testid”:”ref-selector-hotkey-button”,”data-hotkey”:i,onClick:()=>V(!0),”data-hotkey-scope”:”read-only-cursor-text-area”,disabled:w})]})},focusTrapSettings:H,focusZoneSettings:N?{bindKeys:A.z0.ArrowAll|A.z0.Tab}:{disabled:!0},…_,children:(0,n.jsx)(“div”,{“data-testid”:”overlay-content”,”aria-labelledby”:$,id:”selectPanel”,style:{height:”100%”},children:m})})};try{B.displayName||(B.displayName=”RefSelectorAnchoredOverlay”)}catch{}var $=a(12683);let V=(0,r.th)()?function(e){let t,a,r,s,l=(0,i.c)(11),{text:c,onClick:o,href:d,sx:h}=e,u=!!d;l[0]!==h?(t={…h},l[0]=h,l[1]=t):t=l[1],l[2]!==t||l[3]!==c?(a=(0,n.jsx)($.az,{sx:t,children:c}),l[2]=t,l[3]=c,l[4]=a):a=l[4];let f=a;l[5]===Symbol.for(“react.memo_cache_sentinel”)?(r={sx:{minWidth:0}},l[5]=r):r=l[5];let g=r;return l[6]!==d||l[7]!==f||l[8]!==u||l[9]!==o?(s=u?(0,n.jsx)(m.l.LinkItem,{role:”link”,href:d,onClick:()=>o?.(),…g,children:f}):(0,n.jsx)(m.l.Item,{role:”button”,onSelect:()=>o?.(),…g,children:f}),l[6]=d,l[7]=f,l[8]=u,l[9]=o,l[10]=s):s=l[10],s}:function({text:e,onClick:t,href:a,sx:r}){let i=!!a,s=(0,n.jsx)($.az,{sx:{…r},children:e}),l={sx:{minWidth:0}};return i?(0,n.jsx)(m.l.LinkItem,{role:”link”,href:a,onClick:()=>t?.(),…l,children:s}):(0,n.jsx)(m.l.Item,{role:”button”,onSelect:()=>t?.(),…l,children:s})};try{V.displayName||(V.displayName=”RefSelectorFooter”)}catch{}var H=a(23470),W=a(26607),K=a(38077),U=a(96459);let M=”RefItem-module__ItemIcon–uDlDK”,Q=p.memo((0,r.th)()?function(e){let t,a,r=(0,i.c)(7),{isCurrent:s,isDefault:l,href:c,gitRef:o,filterText:d,ariaPosInSet:h,ariaSetSize:u,onSelect:f,onClick:g,shouldSetAsDiv:p,isPendingTag:x}=e,y=void 0!==p&&p,b=void 0!==x&&x;r[0]!==d||r[1]!==o||r[2]!==s||r[3]!==l||r[4]!==b?(t=(0,n.jsx)(G,{gitRef:o,isDefault:l,isCurrent:s,filterText:d,isPendingTag:b}),r[0]=d,r[1]=o,r[2]=s,r[3]=l,r[4]=b,r[5]=t):t=r[5];let v=t;r[6]===Symbol.for(“react.memo_cache_sentinel”)?(a={minWidth:0},r[6]=a):a=r[6];let S={“aria-posinset”:y?void 0:h,”aria-setsize”:y?void 0:u,”aria-checked”:s,sx:a,onSelect:()=>{f?.(o),c&&j(c,{reloadDocument:!0})},onClick:()=>{g?.(o),c&&j(c,{reloadDocument:!0})}},j=(0,U.Z)();return y?(0,n.jsxs)(m.l.Item,{role:”menuitemradio”,as:”div”,…S,children:[v,b&&(0,n.jsx)(m.l.TrailingVisual,{className:”fg-muted mr-1″,children:”Created on publish”})]}):(0,n.jsxs)(m.l.Item,{role:”menuitemradio”,…S,children:[v,b&&(0,n.jsx)(m.l.TrailingVisual,{className:”fg-muted mr-1″,children:”Created on publish”})]})}:function({isCurrent:e,isDefault:t,href:a,gitRef:r,filterText:i,ariaPosInSet:s,ariaSetSize:l,onSelect:c,onClick:o,shouldSetAsDiv:d=!1,isPendingTag:h=!1}){let u=(0,n.jsx)(G,{gitRef:r,isDefault:t,isCurrent:e,filterText:i,isPendingTag:h}),f={“aria-posinset”:d?void 0:s,”aria-setsize”:d?void 0:l,”aria-checked”:e,sx:{minWidth:0},onSelect:()=>{c?.(r),a&&g(a,{reloadDocument:!0})},onClick:()=>{o?.(r),a&&g(a,{reloadDocument:!0})}},g=(0,U.Z)();return d?(0,n.jsxs)(m.l.Item,{role:”menuitemradio”,as:”div”,…f,children:[u,h&&(0,n.jsx)(m.l.TrailingVisual,{className:”fg-muted mr-1″,children:”Created on publish”})]}):(0,n.jsxs)(m.l.Item,{role:”menuitemradio”,…f,children:[u,h&&(0,n.jsx)(m.l.TrailingVisual,{className:”fg-muted mr-1″,children:”Created on publish”})]})}),G=p.memo((0,r.th)()?function(e){let t,a,r,s,l,c,o,h=(0,i.c)(16),{isCurrent:u,isDefault:m,gitRef:f,filterText:g,showLeadingVisual:p}=e,x=void 0===p||p;return h[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={display:”flex”,justifyContent:”space-between”},a={display:”flex”,minWidth:0,alignItems:”flex-end”},h[0]=t,h[1]=a):(t=h[0],a=h[1]),h[2]!==u||h[3]!==x?(r=x&&(0,n.jsx)(d.CheckIcon,{“aria-hidden”:!0,”data-icon-visibility”:u?”visible”:”hidden”,className:M}),h[2]=u,h[3]=x,h[4]=r):r=h[4],h[5]!==g||h[6]!==f?(s=(0,n.jsx)(K.z,{hideOverflow:!0,search:g,text:f},f),h[5]=g,h[6]=f,h[7]=s):s=h[7],h[8]!==r||h[9]!==s?(l=(0,n.jsxs)(“div”,{style:a,children:[r,s]}),h[8]=r,h[9]=s,h[10]=l):l=h[10],h[11]!==m?(c=m&&(0,n.jsx)(W.A,{children:”default”}),h[11]=m,h[12]=c):c=h[12],h[13]!==l||h[14]!==c?(o=(0,n.jsxs)(“div”,{style:t,children:[l,c]}),h[13]=l,h[14]=c,h[15]=o):o=h[15],o}:function({isCurrent:e,isDefault:t,gitRef:a,filterText:r,showLeadingVisual:i=!0}){return(0,n.jsxs)(“div”,{style:{display:”flex”,justifyContent:”space-between”},children:[(0,n.jsxs)(“div”,{style:{display:”flex”,minWidth:0,alignItems:”flex-end”},children:[i&&(0,n.jsx)(d.CheckIcon,{“aria-hidden”:!0,”data-icon-visibility”:e?”visible”:”hidden”,className:M}),(0,n.jsx)(K.z,{hideOverflow:!0,search:r,text:a},a)]}),t&&(0,n.jsx)(W.A,{children:”default”})]})});try{Q.displayName||(Q.displayName=”RefItem”)}catch{}try{G.displayName||(G.displayName=”RefItemContent”)}catch{}let X=”RefsList-module__FixedSizeVirtualList–sfJlf”,Z=(0,r.th)()?function(e){let t,a=(0,i.c)(2);return a[0]!==e?(t=e.refs.length>20?(0,n.jsx)(J,{…e}):(0,n.jsx)(q,{…e}),a[0]=e,a[1]=t):t=a[1],t}:function(e){return e.refs.length>20?(0,n.jsx)(J,{…e}):(0,n.jsx)(q,{…e})},q=(0,r.th)()?function(e){let t,a,r,s=(0,i.c)(12),{refs:l,defaultBranch:c,currentCommitish:o,getHref:d,filterText:h,onSelectItem:u,ariaControls:m,pendingTag:f}=e;return s[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={maxHeight:330,height:”100%”,overflowY:”auto”,padding:”var(–base-size-8)”},s[0]=t):t=s[0],s[1]!==o||s[2]!==c||s[3]!==h||s[4]!==d||s[5]!==u||s[6]!==f||s[7]!==l?(a=l.map(e=>(0,n.jsx)(Q,{href:d?.(e),isCurrent:o===e,isDefault:c===e,filterText:h,gitRef:e,onSelect:u,onClick:u,ariaPosInSet:l.indexOf(e)+1,ariaSetSize:l.length,isPendingTag:f===e},e)),s[1]=o,s[2]=c,s[3]=h,s[4]=d,s[5]=u,s[6]=f,s[7]=l,s[8]=a):a=s[8],s[9]!==m||s[10]!==a?(r=(0,n.jsx)(“ul”,{style:t,id:m,children:a}),s[9]=m,s[10]=a,s[11]=r):r=s[11],r}:function({refs:e,defaultBranch:t,currentCommitish:a,getHref:r,filterText:i,onSelectItem:s,ariaControls:l,pendingTag:c}){return(0,n.jsx)(“ul”,{style:{maxHeight:330,height:”100%”,overflowY:”auto”,padding:”var(–base-size-8)”},id:l,children:e.map(l=>(0,n.jsx)(Q,{href:r?.(l),isCurrent:a===l,isDefault:t===l,filterText:i,gitRef:l,onSelect:s,onClick:s,ariaPosInSet:e.indexOf(l)+1,ariaSetSize:e.length,isPendingTag:c===l},l))})},J=(0,r.th)()?function(e){let t,a,r,s=(0,i.c)(13),{refs:l,defaultBranch:c,currentCommitish:o,getHref:d,filterText:h,onSelectItem:u,ariaControls:m,pendingTag:f}=e;return s[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={maxHeight:330,height:”100%”,overflowY:”auto”,padding:”var(–base-size-8)”},s[0]=t):t=s[0],s[1]!==o||s[2]!==c||s[3]!==h||s[4]!==d||s[5]!==u||s[6]!==f||s[7]!==l?(a=e=>(0,n.jsx)(Q,{shouldSetAsDiv:!0,href:d?.(e),isCurrent:o===e,isDefault:c===e,filterText:h,gitRef:e,onSelect:u,onClick:u,ariaPosInSet:l.indexOf(e)+1,ariaSetSize:l.length,isPendingTag:f===e},e),s[1]=o,s[2]=c,s[3]=h,s[4]=d,s[5]=u,s[6]=f,s[7]=l,s[8]=a):a=s[8],s[9]!==m||s[10]!==l||s[11]!==a?(r=(0,n.jsx)(H.F,{ariaControls:m,items:l,itemHeight:32,style:t,containerRole:”group”,makeKey:Y,renderItem:a,className:X}),s[9]=m,s[10]=l,s[11]=a,s[12]=r):r=s[12],r}:function({refs:e,defaultBranch:t,currentCommitish:a,getHref:r,filterText:i,onSelectItem:s,ariaControls:l,pendingTag:c}){return(0,n.jsx)(H.F,{ariaControls:l,items:e,itemHeight:32,style:{maxHeight:330,height:”100%”,overflowY:”auto”,padding:”var(–base-size-8)”},containerRole:”group”,makeKey:e=>e,renderItem:l=>(0,n.jsx)(Q,{shouldSetAsDiv:!0,href:r?.(l),isCurrent:a===l,isDefault:t===l,filterText:i,gitRef:l,onSelect:s,onClick:s,ariaPosInSet:e.indexOf(l)+1,ariaSetSize:e.length,isPendingTag:c===l},l),className:X})};function Y(e){return e}try{Z.displayName||(Z.displayName=”RefsList”)}catch{}try{q.displayName||(q.displayName=”FullRefsList”)}catch{}try{J.displayName||(J.displayName=”VirtualRefsList”)}catch{}var ee=a(69655);function et(e,t,a,n,r,i){let[s,l]=(0,p.useState)({status:”uninitialized”,refs:[],showCreateAction:!1,searchIndex:null}),c=(0,p.useRef)({render:()=>{l(en(d.current,i))}}),o=(0,p.useRef)({render:()=>{l(en(h.current,i))}}),d=er(()=>ea(e,t,a,”branch”,c.current)),h=er(()=>ea(e,t,a,”tag”,o.current));return(0,p.useEffect)(()=>{let r=`${t}/${a}`;d.current.nameWithOwner!==r&&(d.current=ea(e,t,a,”branch”,c.current)),h.current.nameWithOwner!==r&&(h.current=ea(e,t,a,”tag”,o.current)),async function(){let e=”branch”===n?d.current:h.current;e.render(),await e.fetchData(),e.search(“”),e.render()}()},[e,t,a,n,d,h]),(0,p.useEffect)(()=>{let e=”branch”===n?d.current:h.current;e.search(r),e.render()},[r,n,d,h]),s}function ea(e,t,a,n,r){return new ee.d(“branch”===n?ee._.Branch:ee._.Tag,r,(0,o.SHX)({owner:t,repo:a,action:”refs”}),e,`${t}/${a}`)}function en(e,t){let a=e.fetchFailed?”failed”:e.isLoading?”loading”:”loaded”;return{status:a,refs:e.currentSearchResult,showCreateAction:t&&e.searchTerm.length>0&&!e.exactMatchFound,searchIndex:e}}function er(e){let t=(0,p.useRef)(void 0);return t.current||(t.current=e()),t}var ei=a(4559);let es=”RefSelectorV1-module__RefSelectorContainer–DFuLg”,el=”RefSelectorV1-module__RefSelectorInnerContainer–pH_Dn”,ec=”RefSelectorV1-module__RefSelectorHeading–FSd2d”,eo=”RefSelectorV1-module__RefSelectorCloseButton–x91Lr”,ed=”RefSelectorV1-module__RefTypeTabs–slHyr”,eh=”RefSelectorV1-module__RefSelectorFilterContainer–nzwdI”,eu=”RefSelectorV1-module__RefSelectorInput–Myj_6″,em=”RefSelectorV1-module__LoadingContainer–B9AR4″,ef=”RefSelectorV1-module__ZeroStateText–ZRhw5″,eg=”RefSelectorV1-module__ViewAllRefsActionLink–riztS”,ep=”RefSelectorV1-module__ViewAllRefsActionText–T80I4″,ex=”RefSelectorV1-module__BranchOcticon–Fpshx”,ey=”RefSelectorV1-module__RefActionText–b19i0″,eb=”RefSelectorV1-module__Divider–fKdqp”,ev=(0,r.th)()?function(e){let t,a,r,s,l,c,d,h,u,m,f,g,x,y,b,v,S,C=(0,i.c)(90),{ariaDescribedBy:R,ariaLabelledBy:T,ariaLabel:N,cacheKey:w,owner:I,repo:A,canCreate:O,canCreateTag:L,types:D,hotKey:F,onOpenChange:z,size:P,variant:$,getHref:V,onBeforeCreate:H,onRefTypeChanged:W,currentCommitish:K,onCreateError:U,onSelectItem:M,closeOnSelect:Q,selectedRefType:G,customFooterItemProps:X,buttonClassName:Z,buttonText:q,persistButtonText:J,buttonPrefix:Y,showIcon:ee,allowResizing:ea,idEnding:en,useFocusZone:er,disabled:ei,anchoredOverlayProps:es,renderAnchor:el,actionListDescription:ec}=e,eo=void 0!==L&&L,[ed,eh]=(0,p.useState)(“”),eu=(0,p.useRef)(null),em=(0,p.useRef)(null),ef=”tree”===G?”branch”:G;C[0]!==K||C[1]!==G?(t=”tree”===G?K.slice(0,7):K,C[0]=K,C[1]=G,C[2]=t):t=C[2];let eg=t,[ep,ex]=(0,p.useState)(!1),[ey,eb]=(0,p.useState)(!0),[ev,ej]=(0,p.useState)(!1),[eC,eR]=(0,p.useState)(!1),[eT,eN]=(0,p.useState)(null),[ew,e_]=(0,p.useState)(ef??(D??eA)[0]),eE=(0,p.useId)(),ek=et(w,I,A,ew,ed,O);C[3]!==I||C[4]!==A?(a=(0,o.SHX)({owner:I,repo:A,action:”branches”}),C[3]=I,C[4]=A,C[5]=a):a=C[5];let eI=a;C[6]!==I||C[7]!==A?(r=(0,o.FeW)({owner:I,repo:A}),C[6]=I,C[7]=A,C[8]=r):r=C[8];let eO=r;C[9]!==I||C[10]!==A?(s=(0,o.BUl)({owner:I,repo:A}),C[9]=I,C[10]=A,C[11]=s):s=C[11];let eL=s;C[12]!==K||C[13]!==V||C[14]!==ed||C[15]!==H||C[16]!==U||C[17]!==eI||C[18]!==ek.searchIndex?(l=async()=>{H?.(ed);let e=await k(eI,ed,K);e.success?V&&(ek.searchIndex?.clearLocalStorage(),window.location.href=V(e.name)):U?.(e.error)},C[12]=K,C[13]=V,C[14]=ed,C[15]=H,C[16]=U,C[17]=eI,C[18]=ek.searchIndex,C[19]=l):l=C[19];let eD=l;C[20]!==eO||C[21]!==eD||C[22]!==ed?(c=async()=>{if(await E(eO,ed)){ej(!0),eb(!1);return}ej(!1),eb(!1),eD()},C[20]=eO,C[21]=eD,C[22]=ed,C[23]=c):c=C[23];let eF=c;C[24]!==W?(d=e=>{e_(e),W?.(e)},C[24]=W,C[25]=d):d=C[25];let ez=d;C[26]===Symbol.for(“react.memo_cache_sentinel”)?(h=function(){ex(!1)},C[26]=h):h=C[26];let eP=h;C[27]!==M?(u=(e,t)=>{M?.(e,t),eP()},C[27]=M,C[28]=u):u=C[28];let eB=u;C[29]!==eF||C[30]!==ed||C[31]!==eB||C[32]!==ew?(m=()=>{“tag”===ew?(eB(ed,”tag”),eP()):eF()},C[29]=eF,C[30]=ed,C[31]=eB,C[32]=ew,C[33]=m):m=C[33];let e$=m;C[34]!==eB||C[35]!==ek.refs?(f=e=>{ek.refs.includes(e)||eN(e),eh(“”),eB(e,”tag”),eR(!1)},C[34]=eB,C[35]=ek.refs,C[36]=f):f=C[36];let eV=f;C[37]===Symbol.for(“react.memo_cache_sentinel”)?(g=()=>{eR(!0),eP()},C[37]=g):g=C[37];let eH=g,eW=ec?eE:R;return C[38]!==eo||C[39]!==ez||C[40]!==Q||C[41]!==X||C[42]!==eE||C[43]!==eg||C[44]!==ed||C[45]!==e$||C[46]!==eB||C[47]!==eT||C[48]!==e||C[49]!==ew||C[50]!==ek||C[51]!==ev?(x=(0,n.jsx)(eS,{filterText:ed,displayCommitish:eg,onFilterChange:eh,refType:ew,onRefTypeChange:ez,refsState:ek,onCreateError:e.onCreateError,showTagWarningDialog:ev,setShowTagWarningDialog:ej,onCreateRef:e$,inputRef:eu,createButtonRef:em,onSelectItem:eB,closeOnSelect:Q,closeRefSelector:eP,customFooterItemProps:X,…e,selectedRefType:ew,onOpenCreateTagDialog:eH,pendingTag:eT,canCreateTag:eo,descriptionId:eE}),C[38]=eo,C[39]=ez,C[40]=Q,C[41]=X,C[42]=eE,C[43]=eg,C[44]=ed,C[45]=e$,C[46]=eB,C[47]=eT,C[48]=e,C[49]=ew,C[50]=ek,C[51]=ev,C[52]=x):x=C[52],C[53]!==ea||C[54]!==es||C[55]!==N||C[56]!==T||C[57]!==Z||C[58]!==Y||C[59]!==q||C[60]!==ei||C[61]!==eg||C[62]!==ey||C[63]!==F||C[64]!==en||C[65]!==z||C[66]!==ep||C[67]!==J||C[68]!==ew||C[69]!==el||C[70]!==ee||C[71]!==ev||C[72]!==P||C[73]!==eW||C[74]!==x||C[75]!==er||C[76]!==$?(y=(0,n.jsx)(B,{ariaDescribedBy:eW,ariaLabelledBy:T,ariaLabel:N,refType:ew,displayCommitish:eg,focusTrapEnabled:ey,preventClosing:ev,size:P,variant:$,onOpenChange:z,hotKey:F,inputRef:eu,overlayOpen:ep,onOverlayChange:ex,buttonClassName:Z,buttonText:q,persistButtonText:J,buttonPrefix:Y,showIcon:ee,allowResizing:ea,idEnding:en,useFocusZone:er,disabled:ei,anchoredOverlayProps:es,renderAnchor:el,children:x}),C[53]=ea,C[54]=es,C[55]=N,C[56]=T,C[57]=Z,C[58]=Y,C[59]=q,C[60]=ei,C[61]=eg,C[62]=ey,C[63]=F,C[64]=en,C[65]=z,C[66]=ep,C[67]=J,C[68]=ew,C[69]=el,C[70]=ee,C[71]=ev,C[72]=P,C[73]=eW,C[74]=x,C[75]=er,C[76]=$,C[77]=y):y=C[77],C[78]!==eD||C[79]!==ev?(b=ev&&(0,n.jsx)(j,{isOpen:ev,onDismiss:()=>{ej(!1),em.current?.focus()},onConfirm:eD}),C[78]=eD,C[79]=ev,C[80]=b):b=C[80],C[81]!==eV||C[82]!==ed||C[83]!==eC||C[84]!==eL?(v=eC&&(0,n.jsx)(_,{onDismiss:()=>eR(!1),onCreate:eV,initialTagName:ed,tagValidationUrl:eL}),C[81]=eV,C[82]=ed,C[83]=eC,C[84]=eL,C[85]=v):v=C[85],C[86]!==y||C[87]!==b||C[88]!==v?(S=(0,n.jsxs)(n.Fragment,{children:[y,b,v]}),C[86]=y,C[87]=b,C[88]=v,C[89]=S):S=C[89],S}:function(e){let{ariaDescribedBy:t,ariaLabelledBy:a,ariaLabel:r,cacheKey:i,owner:s,repo:l,canCreate:c,canCreateTag:d=!1,types:h,hotKey:u,onOpenChange:m,size:f,variant:g,getHref:x,onBeforeCreate:y,onRefTypeChanged:b,currentCommitish:v,onCreateError:S,onSelectItem:C,closeOnSelect:R,selectedRefType:T,customFooterItemProps:N,buttonClassName:w,buttonText:I,persistButtonText:A,buttonPrefix:O,showIcon:L,allowResizing:D,idEnding:F,useFocusZone:z,disabled:P,anchoredOverlayProps:$,renderAnchor:V,actionListDescription:H}=e,[W,K]=(0,p.useState)(“”),U=(0,p.useRef)(null),M=(0,p.useRef)(null),Q=”tree”===T?v.slice(0,7):v,[G,X]=(0,p.useState)(!1),[Z,q]=(0,p.useState)(!0),[J,Y]=(0,p.useState)(!1),[ee,ea]=(0,p.useState)(!1),[en,er]=(0,p.useState)(null),[ei,es]=(0,p.useState)((“tree”===T?”branch”:T)??(h??eA)[0]),el=(0,p.useId)(),ec=et(i,s,l,ei,W,c),eo=(0,o.SHX)({owner:s,repo:l,action:”branches”}),ed=(0,o.FeW)({owner:s,repo:l}),eh=(0,o.BUl)({owner:s,repo:l}),eu=(0,p.useCallback)(async()=>{y?.(W);let e=await k(eo,W,v);e.success?x&&(ec.searchIndex?.clearLocalStorage(),window.location.href=x(e.name)):S?.(e.error)},[y,W,eo,v,x,S,ec.searchIndex]),em=(0,p.useCallback)(async()=>{if(await E(ed,W)){Y(!0),q(!1);return}Y(!1),q(!1),eu()},[ed,W,eu,Y]),ef=(0,p.useCallback)(e=>{es(e),b?.(e)},[es,b]);function eg(){X(!1)}let ep=(0,p.useCallback)((e,t)=>{C?.(e,t),eg()},[C]),ex=(0,p.useCallback)(()=>{“tag”===ei?(ep(W,”tag”),eg()):em()},[ei,W,ep,em]),ey=(0,p.useCallback)(e=>{ec.refs.includes(e)||er(e),K(“”),ep(e,”tag”),ea(!1)},[ep,er,K,ec.refs]),eb=(0,p.useCallback)(()=>{ea(!0),eg()},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B,{ariaDescribedBy:H?el:t,ariaLabelledBy:a,ariaLabel:r,refType:ei,displayCommitish:Q,focusTrapEnabled:Z,preventClosing:J,size:f,variant:g,onOpenChange:m,hotKey:u,inputRef:U,overlayOpen:G,onOverlayChange:X,buttonClassName:w,buttonText:I,persistButtonText:A,buttonPrefix:O,showIcon:L,allowResizing:D,idEnding:F,useFocusZone:z,disabled:P,anchoredOverlayProps:$,renderAnchor:V,children:(0,n.jsx)(eS,{filterText:W,displayCommitish:Q,onFilterChange:K,refType:ei,onRefTypeChange:ef,refsState:ec,onCreateError:e.onCreateError,showTagWarningDialog:J,setShowTagWarningDialog:Y,onCreateRef:ex,inputRef:U,createButtonRef:M,onSelectItem:ep,closeOnSelect:R,closeRefSelector:eg,customFooterItemProps:N,…e,selectedRefType:ei,onOpenCreateTagDialog:eb,pendingTag:en,canCreateTag:d,descriptionId:el})}),J&&(0,n.jsx)(j,{isOpen:J,onDismiss:()=>{Y(!1),M.current?.focus()},onConfirm:eu}),ee&&(0,n.jsx)(_,{onDismiss:()=>ea(!1),onCreate:ey,initialTagName:W,tagValidationUrl:eh})]})},eS=(0,r.th)()?function(e){let t,a,r,l,c,o,f,g,x,y,b,v,S,j,C,R,T,N,w,_,E,k,I,A=(0,i.c)(96),{canCreate:O,currentCommitish:L,displayCommitish:D,defaultBranch:F,filterText:z,getHref:B,hideShowAll:$,onSelectItem:H,closeOnSelect:W,closeRefSelector:K,onFilterChange:U,onRefTypeChange:M,owner:Q,selectedRefType:G,refsState:X,refType:q,repo:J,types:Y,onCreateRef:ee,inputRef:et,createButtonRef:ea,customFooterItemProps:en,viewAllJustify:er,actionListHeadingText:eh,actionListDescription:eu,onOpenCreateTagDialog:em,pendingTag:ef,canCreateTag:eg,descriptionId:ep}=e,{refs:ex,showCreateAction:ey,status:ev}=X;e:{if(“tag”===q&&ef&&!ex.includes(ef)){let e;A[0]!==ef||A[1]!==ex?(e=[ef,…ex],A[0]=ef,A[1]=ex,A[2]=e):e=A[2],t=e;break e}t=ex}let eS=t;A[3]!==K||A[4]!==en?(a=function(){en?.onClick?.(),K()},A[3]=K,A[4]=en,A[5]=a):a=A[5];let eC=a;A[6]!==eS.length||A[7]!==q?(r=()=>{let{single:e,plural:t}={branch:{single:”branch”,plural:”branches”},tag:{single:”tag”,plural:”tags”}}[q],a=`${eS.length} ${1===eS.length?e:t} found`,n=setTimeout(()=>{(0,ei.i)(a)},1e3);return()=>clearTimeout(n)},A[6]=eS.length,A[7]=q,A[8]=r):r=A[8],A[9]!==eS||A[10]!==q?(l=[eS,q],A[9]=eS,A[10]=q,A[11]=l):l=A[11],(0,p.useEffect)(r,l),A[12]===Symbol.for(“react.memo_cache_sentinel”)?(c={display:”flex”,flexDirection:”column”,height:”100%”},A[12]=c):c=A[12],A[13]!==eh||A[14]!==Y?(o=eh??eT(Y??eA),A[13]=eh,A[14]=Y,A[15]=o):o=A[15],A[16]!==o?(f=(0,n.jsx)(h.A,{as:”h2″,className:ec,children:o}),A[16]=o,A[17]=f):f=A[17],A[18]!==K?(g=(0,n.jsx)(u.K,{tooltipDirection:”w”,”aria-label”:”Cancel”,variant:”invisible”,icon:d.XIcon,onClick:K,className:eo}),A[18]=K,A[19]=g):g=A[19],A[20]!==f||A[21]!==g?(x=(0,n.jsxs)(“div”,{className:el,children:[f,g]}),A[20]=f,A[21]=g,A[22]=x):x=A[22],A[23]!==eu||A[24]!==ep?(y=eu&&(0,n.jsx)(“p”,{id:ep,className:”color-fg-muted f5″,style:{paddingLeft:”16px”,paddingRight:”16px”,paddingBottom:”8px”},children:eu}),A[23]=eu,A[24]=ep,A[25]=y):y=A[25],A[26]!==O||A[27]!==z||A[28]!==et||A[29]!==U||A[30]!==q?(b=(0,n.jsx)(ej,{defaultText:z,refType:q,canCreate:O,onFilterChange:U,ref:et}),A[26]=O,A[27]=z,A[28]=et,A[29]=U,A[30]=q,A[31]=b):b=A[31],A[32]!==y||A[33]!==b||A[34]!==x?(v=(0,n.jsxs)(“div”,{className:es,children:[x,y,b]}),A[32]=y,A[33]=b,A[34]=x,A[35]=v):v=A[35];let eR=ey&&0===eS.length?0:2;return A[36]!==eR?(S={paddingBottom:eR,flex:1,minHeight:0},A[36]=eR,A[37]=S):S=A[37],A[38]!==M||A[39]!==q||A[40]!==Y?(j=(Y??eA).length>1&&(0,n.jsx)(“div”,{className:”px-2 pb-2″,children:(0,n.jsx)(eL,{refType:q,onRefTypeChanged:M,className:ed})}),A[38]=M,A[39]=q,A[40]=Y,A[41]=j):j=A[41],A[42]!==W||A[43]!==K||A[44]!==L||A[45]!==F||A[46]!==eS||A[47]!==z||A[48]!==B||A[49]!==H||A[50]!==ef||A[51]!==q||A[52]!==G||A[53]!==ey||A[54]!==ev?(C=”loading”===ev||”uninitialized”===ev?(0,n.jsx)(eN,{refType:q}):”failed”===ev?(0,n.jsx)(eD,{refType:q}):0!==eS.length||ey&&”tag”!==q?(0,n.jsx)(Z,{ariaControls:”branch”===q?”branches”:”tags”,filterText:z,refs:eS,defaultBranch:”branch”===q?F:””,currentCommitish:q===G?L:””,getHref:B,onSelectItem:e=>{H?.(e,q),W&&K()},pendingTag:ef}):(0,n.jsx)(ew,{}),A[42]=W,A[43]=K,A[44]=L,A[45]=F,A[46]=eS,A[47]=z,A[48]=B,A[49]=H,A[50]=ef,A[51]=q,A[52]=G,A[53]=ey,A[54]=ev,A[55]=C):C=A[55],A[56]!==S||A[57]!==j||A[58]!==C?(R=(0,n.jsxs)(“div”,{style:S,children:[j,C]}),A[56]=S,A[57]=j,A[58]=C,A[59]=R):R=A[59],A[60]!==ea||A[61]!==D||A[62]!==z||A[63]!==ee||A[64]!==q||A[65]!==ex||A[66]!==ey?(T=ey&&(0,n.jsxs)(n.Fragment,{children:[“branch”===q&&ex.length>0&&(0,n.jsx)(m.l.Divider,{className:(0,P.$)(“d-block mt-0″,eb)}),(0,n.jsx)(eE,{displayCommitish:D,newRefName:z,onCreateRef:ee,createButtonRef:ea,refType:q})]}),A[60]=ea,A[61]=D,A[62]=z,A[63]=ee,A[64]=q,A[65]=ex,A[66]=ey,A[67]=T):T=A[67],A[68]!==en||A[69]!==$||A[70]!==ey?(N=(!$||en)&&(0,n.jsx)(m.l.Divider,{className:(0,P.$)(`d-block ${ey?”mt-2″:”mt-0″}`,eb)}),A[68]=en,A[69]=$,A[70]=ey,A[71]=N):N=A[71],A[72]!==K||A[73]!==$||A[74]!==Q||A[75]!==q||A[76]!==J||A[77]!==er?(w=!$&&(0,n.jsx)(e_,{justify:er,refType:q,owner:Q,repo:J,onClick:K}),A[72]=K,A[73]=$,A[74]=Q,A[75]=q,A[76]=J,A[77]=er,A[78]=w):w=A[78],A[79]!==en||A[80]!==eC?(_=en&&(0,n.jsx)(V,{…en,onClick:eC}),A[79]=en,A[80]=eC,A[81]=_):_=A[81],A[82]!==T||A[83]!==N||A[84]!==w||A[85]!==_?(E=(0,n.jsxs)(m.l,{className:”p-0”,children:[T,N,w,_]}),A[82]=T,A[83]=N,A[84]=w,A[85]=_,A[86]=E):E=A[86],A[87]!==eg||A[88]!==em||A[89]!==q?(k=”tag”===q&&eg&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.l.Divider,{className:(0,P.$)(“d-block mt-0”,eb)}),(0,n.jsx)(“div”,{className:”px-2″,children:(0,n.jsx)(s.Q,{onClick:em,block:!0,children:”Create new tag”})})]}),A[87]=eg,A[88]=em,A[89]=q,A[90]=k):k=A[90],A[91]!==v||A[92]!==R||A[93]!==E||A[94]!==k?(I=(0,n.jsxs)(“div”,{className:”py-2″,style:c,children:[v,R,E,k]}),A[91]=v,A[92]=R,A[93]=E,A[94]=k,A[95]=I):I=A[95],I}:function({canCreate:e,currentCommitish:t,displayCommitish:a,defaultBranch:r,filterText:i,getHref:l,hideShowAll:c,onSelectItem:o,closeOnSelect:f,closeRefSelector:g,onFilterChange:x,onRefTypeChange:y,owner:b,selectedRefType:v,refsState:S,refType:j,repo:C,types:R,onCreateRef:T,inputRef:N,createButtonRef:w,customFooterItemProps:_,viewAllJustify:E,actionListHeadingText:k,actionListDescription:I,onOpenCreateTagDialog:A,pendingTag:O,canCreateTag:L,descriptionId:D}){let{refs:F,showCreateAction:z,status:B}=S,$=(0,p.useMemo)(()=>”tag”===j&&O&&!F.includes(O)?[O,…F]:F,[F,O,j]);return(0,p.useEffect)(()=>{let{single:e,plural:t}={branch:{single:”branch”,plural:”branches”},tag:{single:”tag”,plural:”tags”}}[j],a=`${$.length} ${1===$.length?e:t} found`,n=setTimeout(()=>{(0,ei.i)(a)},1e3);return()=>clearTimeout(n)},[$,j]),(0,n.jsxs)(“div”,{className:”py-2″,style:{display:”flex”,flexDirection:”column”,height:”100%”},children:[(0,n.jsxs)(“div”,{className:es,children:[(0,n.jsxs)(“div”,{className:el,children:[(0,n.jsx)(h.A,{as:”h2″,className:ec,children:k??eT(R??eA)}),(0,n.jsx)(u.K,{tooltipDirection:”w”,”aria-label”:”Cancel”,variant:”invisible”,icon:d.XIcon,onClick:g,className:eo})]}),I&&(0,n.jsx)(“p”,{id:D,className:”color-fg-muted f5″,style:{paddingLeft:”16px”,paddingRight:”16px”,paddingBottom:”8px”},children:I}),(0,n.jsx)(ej,{defaultText:i,refType:j,canCreate:e,onFilterChange:x,ref:N})]}),(0,n.jsxs)(“div”,{style:{paddingBottom:z&&0===$.length?0:2,flex:1,minHeight:0},children:[(R??eA).length>1&&(0,n.jsx)(“div”,{className:”px-2 pb-2″,children:(0,n.jsx)(eL,{refType:j,onRefTypeChanged:y,className:ed})}),”loading”===B||”uninitialized”===B?(0,n.jsx)(eN,{refType:j}):”failed”===B?(0,n.jsx)(eD,{refType:j}):0!==$.length||z&&”tag”!==j?(0,n.jsx)(Z,{ariaControls:”branch”===j?”branches”:”tags”,filterText:i,refs:$,defaultBranch:”branch”===j?r:””,currentCommitish:j===v?t:””,getHref:l,onSelectItem:e=>{o?.(e,j),f&&g()},pendingTag:O}):(0,n.jsx)(ew,{})]}),(0,n.jsxs)(m.l,{className:”p-0″,children:[z&&(0,n.jsxs)(n.Fragment,{children:[“branch”===j&&F.length>0&&(0,n.jsx)(m.l.Divider,{className:(0,P.$)(“d-block mt-0″,eb)}),(0,n.jsx)(eE,{displayCommitish:a,newRefName:i,onCreateRef:T,createButtonRef:w,refType:j})]}),(!c||_)&&(0,n.jsx)(m.l.Divider,{className:(0,P.$)(`d-block ${z?”mt-2″:”mt-0”}`,eb)}),!c&&(0,n.jsx)(e_,{justify:E,refType:j,owner:b,repo:C,onClick:g}),_&&(0,n.jsx)(V,{…_,onClick:function(){_?.onClick?.(),g()}})]}),”tag”===j&&L&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.l.Divider,{className:(0,P.$)(“d-block mt-0”,eb)}),(0,n.jsx)(“div”,{className:”px-2″,children:(0,n.jsx)(s.Q,{onClick:A,block:!0,children:”Create new tag”})})]})]})},ej=(0,p.forwardRef)(eR),eC=(0,r.th)();function eR(e,t){return eC?function(e,t){let a,r,s=(0,i.c)(8),{refType:l,canCreate:c,onFilterChange:o,defaultText:h}=e,u=”tag”===l?c?”Search or create a new tag”:”Search”:c?”Find or create a branch…”:”Find a branch…”,m=”tag”===l?”Filter tags”:”Filter branches”;return s[0]!==o?(a=e=>{let t=e.target;t instanceof HTMLInputElement&&o(t.value)},s[0]=o,s[1]=a):a=s[1],s[2]!==m||s[3]!==h||s[4]!==u||s[5]!==t||s[6]!==a?(r=(0,n.jsx)(“div”,{className:eh,children:(0,n.jsx)(f.A,{“aria-label”:m,leadingVisual:d.SearchIcon,value:h,placeholder:u,ref:t,onInput:a,className:eu})}),s[2]=m,s[3]=h,s[4]=u,s[5]=t,s[6]=a,s[7]=r):r=s[7],r}(e,t):function({refType:e,canCreate:t,onFilterChange:a,defaultText:r},i){return(0,n.jsx)(“div”,{className:eh,children:(0,n.jsx)(f.A,{“aria-label”:”tag”===e?”Filter tags”:”Filter branches”,leadingVisual:d.SearchIcon,value:r,placeholder:”tag”===e?t?”Search or create a new tag”:”Search”:t?”Find or create a branch…”:”Find a branch…”,ref:i,onInput:e=>{let t=e.target;t instanceof HTMLInputElement&&a(t.value)},className:eu})})}(e,t)}function eT(e){return e.includes(“branch”)&&e.includes(“tag”)?”Switch branches/tags”:e.includes(“branch”)?”Switch branches”:e.includes(“tag”)?”Switch tags”:void 0}let eN=(0,r.th)()?function(e){let t,a=(0,i.c)(2),{refType:r}=e,s=`Loading ${“branch”===r?”branches”:”tags”}…`;return a[0]!==s?(t=(0,n.jsx)(“div”,{className:em,children:(0,n.jsx)(g.A,{size:”medium”,”aria-label”:s})}),a[0]=s,a[1]=t):t=a[1],t}:function({refType:e}){return(0,n.jsx)(“div”,{className:em,children:(0,n.jsx)(g.A,{size:”medium”,”aria-label”:`Loading ${“branch”===e?”branches”:”tags”}…`})})},ew=(0,r.th)()?function(){let e,t=(0,i.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,n.jsx)(“div”,{className:ef,children:”Nothing to show”}),t[0]=e):e=t[0],e}:function(){return(0,n.jsx)(“div”,{className:ef,children:”Nothing to show”})},e_=(0,r.th)()?function(e){let t,a,r,s,l=(0,i.c)(13),{refType:c,owner:d,repo:h,onClick:u,justify:f}=e,g=void 0===f?”start”:f,p=”branch”===c?”branches”:”tags”;return l[0]!==d||l[1]!==h||l[2]!==p?(t=(0,o.SHX)({owner:d,repo:h,action:p}),l[0]=d,l[1]=h,l[2]=p,l[3]=t):t=l[3],l[4]!==g?(a={justifyContent:g},l[4]=g,l[5]=a):a=l[5],l[6]!==a||l[7]!==p?(r=(0,n.jsxs)(“div”,{style:a,className:ep,children:[“View all “,p]}),l[6]=a,l[7]=p,l[8]=r):r=l[8],l[9]!==u||l[10]!==t||l[11]!==r?(s=(0,n.jsx)(m.l.LinkItem,{role:”link”,href:t,onClick:u,className:eg,children:r}),l[9]=u,l[10]=t,l[11]=r,l[12]=s):s=l[12],s}:function({refType:e,owner:t,repo:a,onClick:r,justify:i=”start”}){let s=”branch”===e?”branches”:”tags”;return(0,n.jsx)(m.l.LinkItem,{role:”link”,href:(0,o.SHX)({owner:t,repo:a,action:s}),onClick:r,className:eg,children:(0,n.jsxs)(“div”,{style:{justifyContent:i},className:ep,children:[“View all “,s]})})},eE=(0,r.th)()?function(e){let t,a,r,s,l,c,o=(0,i.c)(12),{displayCommitish:h,newRefName:u,onCreateRef:f,createButtonRef:g,refType:p}=e;return”tag”===p?null:(o[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,n.jsx)(d.GitBranchIcon,{className:ex}),a=(0,n.jsx)(“span”,{children:”Create branch\xa0″}),o[0]=t,o[1]=a):(t=o[0],a=o[1]),o[2]!==u?(r=(0,n.jsx)(“span”,{className:ey,children:u}),o[2]=u,o[3]=r):r=o[3],o[4]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,n.jsx)(“span”,{children:”\xa0from\xa0″}),o[4]=s):s=o[4],o[5]!==h?(l=(0,n.jsx)(“span”,{className:ey,children:h}),o[5]=h,o[6]=l):l=o[6],o[7]!==g||o[8]!==f||o[9]!==r||o[10]!==l?(c=(0,n.jsxs)(m.l.Item,{role:”button”,onSelect:f,ref:g,children:[t,a,r,s,l]}),o[7]=g,o[8]=f,o[9]=r,o[10]=l,o[11]=c):c=o[11],c)}:function({displayCommitish:e,newRefName:t,onCreateRef:a,createButtonRef:r,refType:i}){return”tag”===i?null:(0,n.jsxs)(m.l.Item,{role:”button”,onSelect:a,ref:r,children:[(0,n.jsx)(d.GitBranchIcon,{className:ex}),(0,n.jsx)(“span”,{children:”Create branch\xa0″}),(0,n.jsx)(“span”,{className:ey,children:t}),(0,n.jsx)(“span”,{children:”\xa0from\xa0″}),(0,n.jsx)(“span”,{className:ey,children:e})]})};try{ev.displayName||(ev.displayName=”RefSelectorV1″)}catch{}try{eS.displayName||(eS.displayName=”RefSelectorActionList”)}catch{}try{ej.displayName||(ej.displayName=”RefTextFilter”)}catch{}try{eR.displayName||(eR.displayName=”RefTextFilterWithRef”)}catch{}try{eN.displayName||(eN.displayName=”Loading”)}catch{}try{ew.displayName||(ew.displayName=”RefsZeroState”)}catch{}try{e_.displayName||(e_.displayName=”ViewAllRefsAction”)}catch{}try{eE.displayName||(eE.displayName=”CreateRefAction”)}catch{}let ek=”RefSelector-module__RefSelectorTabs–nkSFr”,eI=”RefSelector-module__RefSelectorTabLink–WGX7u”,eA=[“branch”,”tag”],eO=(0,r.th)()?function(e){let t,a=(0,i.c)(2);return a[0]!==e?(t=(0,n.jsx)(ev,{…e}),a[0]=e,a[1]=t):t=a[1],t}:function(e){return(0,n.jsx)(ev,{…e})},eL=(0,r.th)()?function(e){let t,a,r,l,o,d,h,u=(0,i.c)(19),{refType:m,onRefTypeChanged:f,sx:g,className:p}=e;u[0]!==g?(t={…g},u[0]=g,u[1]=t):t=u[1],u[2]!==p?(a=(0,P.$)(ek,p),u[2]=p,u[3]=a):a=u[3];let x=”branch”===m;u[4]!==f?(r=()=>f(“branch”),u[4]=f,u[5]=r):r=u[5],u[6]!==x||u[7]!==r?(l=(0,n.jsx)(c.jl.Link,{as:s.Q,id:”branch-button”,”aria-controls”:”branches”,selected:x,onClick:r,className:eI,children:”Branches”}),u[6]=x,u[7]=r,u[8]=l):l=u[8];let y=”tag”===m;return u[9]!==f?(o=()=>f(“tag”),u[9]=f,u[10]=o):o=u[10],u[11]!==y||u[12]!==o?(d=(0,n.jsx)(c.jl.Link,{as:s.Q,id:”tag-button”,”aria-controls”:”tags”,selected:y,onClick:o,className:eI,children:”Tags”}),u[11]=y,u[12]=o,u[13]=d):d=u[13],u[14]!==t||u[15]!==a||u[16]!==l||u[17]!==d?(h=(0,n.jsxs)(c.jl,{sx:t,”aria-label”:”Ref type”,className:a,children:[l,d]}),u[14]=t,u[15]=a,u[16]=l,u[17]=d,u[18]=h):h=u[18],h}:function({refType:e,onRefTypeChanged:t,sx:a,className:r}){return(0,n.jsxs)(c.jl,{sx:{…a},”aria-label”:”Ref type”,className:(0,P.$)(ek,r),children:[(0,n.jsx)(c.jl.Link,{as:s.Q,id:”branch-button”,”aria-controls”:”branches”,selected:”branch”===e,onClick:()=>t(“branch”),className:eI,children:”Branches”}),(0,n.jsx)(c.jl.Link,{as:s.Q,id:”tag-button”,”aria-controls”:”tags”,selected:”tag”===e,onClick:()=>t(“tag”),className:eI,children:”Tags”})]})},eD=(0,r.th)()?function(e){let t,a=(0,i.c)(2),{refType:r}=e,s=”branch”===r?”branches”:”tags”;return a[0]!==s?(t=(0,n.jsxs)(l.A,{variant:”danger”,children:[“Could not load “,s]}),a[0]=s,a[1]=t):t=a[1],t}:function({refType:e}){return(0,n.jsxs)(l.A,{variant:”danger”,children:[“Could not load “,”branch”===e?”branches”:”tags”]})};try{eO.displayName||(eO.displayName=”RefSelector”)}catch{}try{eL.displayName||(eL.displayName=”RefTypeTabs”)}catch{}try{eD.displayName||(eD.displayName=”LoadingFailed”)}catch{}},69655:(e,t,a)=>{a.d(t,{_:()=>o,d:()=>SearchIndex});var n=a(50467),r=a(82075),i=a(82518);let{getItem:s,setItem:l,removeItem:c}=(0,r.A)(“localStorage”,{throwQuotaErrorsOnSet:!0}),o={Branch:”branch”,Tag:”tag”};let SearchIndex=class SearchIndex{render(){this.selector.render()}async fetchData(){try{if(!this.isLoading||this.fetchInProgress)return;if(!this.bootstrapFromLocalStorage()){this.fetchInProgress=!0,this.fetchFailed=!1;let e=await fetch(`${this.refEndpoint}?type=${this.refType}`,{headers:{Accept:”application/json”}});await this.processResponse(e)}this.isLoading=!1,this.fetchInProgress=!1,this.render()}catch{this.fetchInProgress=!1,this.fetchFailed=!0}}async processResponse(e){if(this.emitStats(e),!e.ok){this.fetchFailed=!0;return}let t=e.clone(),a=await e.json();this.knownItems=a.refs,this.cacheKey=a.cacheKey,this.flushToLocalStorage(await t.text())}emitStats(e){if(!e.ok)return void(0,i.iv)({incrementKey:”REF_SELECTOR_BOOT_FAILED”},!0);switch(e.status){case 200:(0,i.iv)({incrementKey:”REF_SELECTOR_BOOTED_FROM_UNCACHED_HTTP”});break;case 304:(0,i.iv)({incrementKey:”REF_SELECTOR_BOOTED_FROM_HTTP_CACHE”});break;default:(0,i.iv)({incrementKey:”REF_SELECTOR_UNEXPECTED_RESPONSE”})}}search(e){let t;if(this.searchTerm=e,””===e){this.currentSearchResult=this.knownItems;return}let a=[],n=[];for(let r of(this.exactMatchFound=!1,this.knownItems))if(!((t=r.indexOf(e))<0)){if(0===t){e===r?(n.unshift(r),this.exactMatchFound=!0):n.push(r);continue}a.push(r)}this.currentSearchResult=[...n,...a]}bootstrapFromLocalStorage(){let e=s(this.localStorageKey);if(!e)return!1;let t=JSON.parse(e);return t.cacheKey===this.cacheKey&&"refs"in t?(this.knownItems=t.refs,this.isLoading=!1,(0,i.iv)({incrementKey:"REF_SELECTOR_BOOTED_FROM_LOCALSTORAGE"}),!0):(c(this.localStorageKey),!1)}async flushToLocalStorage(e){try{l(this.localStorageKey,e)}catch(t){if(t.message.toLowerCase().includes("quota")){this.clearSiblingLocalStorage(),(0,i.iv)({incrementKey:"REF_SELECTOR_LOCALSTORAGE_OVERFLOWED"});try{l(this.localStorageKey,e)}catch(e){e.message.toLowerCase().includes("quota")&&(0,i.iv)({incrementKey:"REF_SELECTOR_LOCALSTORAGE_GAVE_UP"})}}else throw t}}clearSiblingLocalStorage(){for(let e of Object.keys(localStorage))e.startsWith(SearchIndex.LocalStoragePrefix)&&c(e)}clearLocalStorage(){c(this.localStorageKey)}get localStorageKey(){return`${SearchIndex.LocalStoragePrefix}:${this.nameWithOwner}:${this.refType}`}constructor(e,t,a,r,i){(0,n._)(this,"refType",void 0),(0,n._)(this,"selector",void 0),(0,n._)(this,"knownItems",[]),(0,n._)(this,"currentSearchResult",[]),(0,n._)(this,"exactMatchFound",!1),(0,n._)(this,"searchTerm",""),(0,n._)(this,"refEndpoint",void 0),(0,n._)(this,"cacheKey",void 0),(0,n._)(this,"nameWithOwner",void 0),(0,n._)(this,"isLoading",!0),(0,n._)(this,"fetchInProgress",!1),(0,n._)(this,"fetchFailed",!1),this.refType=e,this.selector=t,this.refEndpoint=a,this.cacheKey=r,this.nameWithOwner=i}};(0,n._)(SearchIndex,"LocalStoragePrefix","ref-selector")},73900:(e,t,a)=>{a.d(t,{Kq:()=>SoftNavErrorEvent,RQ:()=>SoftNavEndEvent,gh:()=>SoftNavPayloadEvent,ni:()=>SoftNavSuccessEvent,sW:()=>SoftNavStartEvent});var n=a(50467),r=a(82591);let i=class SoftNavEvent extends Event{constructor(e,t){super(t),(0,n._)(this,”mechanism”,void 0),this.mechanism=e}};let SoftNavStartEvent=class SoftNavStartEvent extends i{constructor(e){super(e,r.z.START)}};let SoftNavSuccessEvent=class SoftNavSuccessEvent extends i{constructor(e,t){super(e,r.z.SUCCESS),(0,n._)(this,”visitCount”,void 0),this.visitCount=t}};let SoftNavErrorEvent=class SoftNavErrorEvent extends i{constructor(e,t){super(e,r.z.ERROR),(0,n._)(this,”error”,void 0),this.error=t}};let SoftNavEndEvent=class SoftNavEndEvent extends i{constructor(e){super(e,r.z.END)}};let SoftNavPayloadEvent=class SoftNavPayloadEvent extends Event{constructor(e){super(“soft-nav:payload”),(0,n._)(this,”payload”,void 0),(0,n._)(this,”appPayload”,void 0),this.payload=e.payload,this.appPayload=e.appPayload}}},82591:(e,t,a)=>{a.d(t,{z:()=>n});let n=Object.freeze({INITIAL:”soft-nav:initial”,START:”soft-nav:start”,REPLACE_MECHANISM:”soft-nav:replace-mechanism”,SUCCESS:”soft-nav:success”,ERROR:”soft-nav:error”,FRAME_UPDATE:”soft-nav:frame-update”,END:”soft-nav:end”,RENDER:”soft-nav:render”,REACT_DONE:”soft-nav:react-done”,PROGRESS_BAR:{START:”soft-nav:progress-bar:start”,END:”soft-nav:progress-bar:end”}})},96459:(e,t,a)=>{a.d(t,{Z:()=>o,o:()=>d});var n=a(59014),r=a(61526),i=a(41245),s=a(65432),l=a(58578),c=a(24518);let o=()=>{let{routes:e}=n.useContext(c.k),t=(0,r.Zp)();return n.useCallback((c,o={})=>{let d=(0,r.o1)(c).pathname;if(!(0,r.ue)(e,d)||o.reloadDocument){let e=”string”==typeof c?c:(0,r.AO)(c);o.preventTurbo?window.location.href=e:(async()=>{let{softNavigate:t}=await Promise.all([a.e(7332),a.e(54563)]).then(a.bind(a,54563));t(e)})()}else{(0,i.A)(location.href,c.toString())||(0,s.SC)(“react”);let{preventAutofocus:e,…a}=o;(0,n.startTransition)(()=>{t(c,e?{…a,state:{[l.V]:!0,…a.state}}:a)})}},[t,e])},d=()=>{let[e]=(0,r.ok)(),t=o(),{pathname:a}=(0,r.zy)(),i=n.useCallback((n,i={})=>{t({pathname:a,search:(0,r.PI)(“function”==typeof n?n(e):n).toString()},i)},[e,t,a]);return[e,i]}}}]); //# sourceMappingURL=66990-5abc39cdc509.js.map