13 lines
95 KiB
JavaScript
13 lines
95 KiB
JavaScript
System.register(["./chunk-vendor.js"],function(H){"use strict";var j,A,B,b,gr,br,rn,sn,Qe,vr;return{setters:[function($){j=$.h,A=$.o,B=$.f,b=$.a,gr=$.S,br=$.D,rn=$.r,sn=$.T,Qe=$.t,vr=$.c}],execute:function(){H({A:Ci,B:un,C:Vi,D:eo,E:Fi,F:lt,G:Fe,H:Gi,I:Zi,J:Wi,K:fo,L:Ki,N:ri,O:yo,P:is,Q:es,R:ts,S:qn,T:et,U:_s,V:ws,W:xs,X:Bi,Y:bs,Z:Xo,_:Fs,a:Q,a$:ti,a2:Wo,a3:vi,a4:Rt,a5:Ys,a6:Ln,a8:Li,a9:Ti,aA:kt,aB:tt,aC:Wn,aD:Ui,aE:Bn,aF:ar,aG:sr,aH:pt,aI:li,aJ:ci,aK:wt,aL:Gt,aM:Jt,aN:en,aO:Na,aP:Da,aQ:xo,aR:Yt,aS:Mn,aT:$n,aU:Vs,aV:Hr,aW:ss,aX:Vr,aY:_e,aZ:yr,a_:Rn,aa:ia,ab:Cn,ac:hi,ad:wn,ae:En,ai:sa,aj:_t,al:xi,an:_a,ao:Dn,ap:hs,aq:Po,ar:Ia,as:va,at:Dl,av:Zn,aw:Lt,ax:Uo,ay:jt,az:rs,b:Se,b0:kr,b1:rr,b2:Ut,b3:pr,b4:Ai,b5:er,b6:wa,b7:Rl,b8:Pi,b9:Go,ba:Jo,bb:Yo,bc:Zo,bd:ys,be:Ko,bf:os,c:V,d:ot,e:ct,f:gn,g:ut,h:ft,i:Rr,j:Ae,k:Pr,m:yn,n:st,o:ce,p:xr,q:qr,r:_n,s:Tn,t:yi,u:oi,v:z,w:Xn,x:wi,y:Z,z:$e});var $=Object.defineProperty,an=(e,t)=>$(e,"name",{value:t,configurable:!0});class Ze{constructor(t){this.closed=!1,this.unsubscribe=()=>{t(),this.closed=!0}}}H("ak",Ze),an(Ze,"Subscription");function V(e,t,n,o={capture:!1}){return e.addEventListener(t,n,o),new Ze(()=>{e.removeEventListener(t,n,o)})}an(V,"fromEvent");function et(...e){return new Ze(()=>{for(const t of e)t.unsubscribe()})}an(et,"compose");var Ka=Object.defineProperty,ie=(e,t)=>Ka(e,"name",{value:t,configurable:!0});function yr(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}ie(yr,"offset");function se(e){let t=e;const n=t.ownerDocument;if(!n||!t.offsetParent)return;const o=n.defaultView.HTMLElement;if(t!==n.body){for(;t!==n.body;){if(t.parentElement instanceof o)t=t.parentElement;else return;const{position:r,overflowY:i,overflowX:s}=getComputedStyle(t);if(r==="fixed"||i==="auto"||s==="auto"||i==="scroll"||s==="scroll")break}return t instanceof Document?null:t}}ie(se,"overflowParent");function Ee(e,t){let n=t;const o=e.ownerDocument;if(!o)return;const r=o.documentElement;if(!r||e===r)return;const i=tt(e,n);if(!i)return;n=i._container;const s=n===o.documentElement&&o.defaultView?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},a=i.top-s.top,c=i.left-s.left,l=n.clientHeight,f=n.clientWidth,d=l-(a+e.offsetHeight),u=f-(c+e.offsetWidth);return{top:a,left:c,bottom:d,right:u,height:l,width:f}}ie(Ee,"overflowOffset");function tt(e,t){let n=e;const o=n.ownerDocument;if(!o)return;const r=o.documentElement;if(!r)return;const i=o.defaultView.HTMLElement;let s=0,a=0;const c=n.offsetHeight,l=n.offsetWidth;for(;!(n===o.body||n===t);)if(s+=n.offsetTop||0,a+=n.offsetLeft||0,n.offsetParent instanceof i)n=n.offsetParent;else return;let f,d,u;if(!t||t===o||t===o.defaultView||t===o.documentElement||t===o.body)u=r,f=wr(o.body,r),d=Er(o.body,r);else if(t instanceof i)u=t,f=t.scrollHeight,d=t.scrollWidth;else return;const m=f-(s+c),p=d-(a+l);return{top:s,left:a,bottom:m,right:p,_container:u}}ie(tt,"positionedOffset");function wr(e,t){return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight)}ie(wr,"getDocumentHeight");function Er(e,t){return Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)}ie(Er,"getDocumentWidth");var Ga=Object.defineProperty,cn=(e,t)=>Ga(e,"name",{value:t,configurable:!0});const Ja=H("a0",cn(()=>{const e=document.querySelector("meta[name=keyboard-shortcuts-preference]");return e?e.content==="all":!0},"areCharacterKeyShortcutsEnabled")),Ya=H("a1",cn(e=>/Enter|Arrow|Escape|Meta|Control|Esc/.test(e)||e.includes("Alt")&&e.includes("Shift"),"isNonCharacterKeyShortcut")),Qa=H("l",cn(e=>{const t=j(e);return Ja()?!0:Ya(t)},"isShortcutAllowed"));var Za=Object.defineProperty,ec=(e,t)=>Za(e,"name",{value:t,configurable:!0});function ln(e,t){let n=e;const o=e.ownerDocument;(n===o||n===o.defaultView||n===o.documentElement||n===o.body)&&(n=o);const r=o.defaultView.Document;if(n instanceof r){const s=t.top!=null?t.top:o.defaultView.pageYOffset,a=t.left!=null?t.left:o.defaultView.pageXOffset;o.defaultView.scrollTo(a,s);return}const i=o.defaultView.HTMLElement;if(!(n instanceof i))throw new Error("invariant");n.scrollTop=t.top,t.left!=null&&(n.scrollLeft=t.left)}ec(ln,"scrollTo");var tc=Object.defineProperty,Sr=(e,t)=>tc(e,"name",{value:t,configurable:!0});function _r(e){return e.offsetWidth<=0&&e.offsetHeight<=0}Sr(_r,"hidden");function un(e){return!_r(e)}Sr(un,"visible");var nc=Object.defineProperty,w=(e,t)=>nc(e,"name",{value:t,configurable:!0});const X=navigator.userAgent.match(/Macintosh/),fn=X?"metaKey":"ctrlKey",Lr=X?"Meta":"Control";let dn=!1,mn={x:0,y:0};A(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:e=>et(V(e,"mouseover",Tr),V(e,"mouseover",Cr))});function Tr(e){e instanceof MouseEvent&&((mn.x!==e.clientX||mn.y!==e.clientY)&&(dn=!1),mn={x:e.clientX,y:e.clientY})}w(Tr,"onContainerMouseMove");function Cr(e){if(dn)return;const t=e.currentTarget,{target:n}=e;if(!(n instanceof Element)||!(t instanceof HTMLElement)||!t.closest(".js-active-navigation-container"))return;const o=n.closest(".js-navigation-item");o&&R(o,t)}w(Cr,"onContainerMouseOver");let nt=0;A(".js-active-navigation-container",{add(){nt++,nt===1&&document.addEventListener("keydown",pn)},remove(){nt--,nt===0&&document.removeEventListener("keydown",pn)}});function pn(e){if(e.target!==document.body&&e.target instanceof HTMLElement&&!e.target.classList.contains("js-navigation-enable"))return;dn=!0;const t=rt();let n=!1;if(t){const o=t.querySelector(".js-navigation-item.navigation-focus")||t;n=B(o,"navigation:keydown",{hotkey:j(e),originalEvent:e,originalTarget:e.target})}n||e.preventDefault()}w(pn,"fireCustomKeydown"),b("navigation:keydown",".js-active-navigation-container",function(e){const t=e.currentTarget,n=e.detail.originalTarget.matches("input, textarea"),o=e.target;if(!!Qa(e.detail.originalEvent)){if(o.classList.contains("js-navigation-item"))if(n){if(X)switch(j(e.detail.originalEvent)){case"Control+n":Te(o,t);break;case"Control+p":Le(o,t)}switch(j(e.detail.originalEvent)){case"ArrowUp":Le(o,t);break;case"ArrowDown":Te(o,t);break;case"Enter":case`${Lr}+Enter`:bn(o,e.detail.originalEvent[fn]);break}}else{if(X)switch(j(e.detail.originalEvent)){case"Control+n":Te(o,t);break;case"Control+p":Le(o,t);break;case"Alt+v":jr(o,t);break;case"Control+v":Or(o,t)}switch(j(e.detail.originalEvent)){case"j":case"J":Te(o,t);break;case"k":case"K":Le(o,t);break;case"o":case"Enter":case`${Lr}+Enter`:bn(o,e.detail[fn]);break}}else{const r=J(t)[0];if(r)if(n){if(X)switch(j(e.detail.originalEvent)){case"Control+n":R(r,t)}switch(j(e.detail.originalEvent)){case"ArrowDown":R(r,t)}}else{if(X)switch(j(e.detail.originalEvent)){case"Control+n":case"Control+v":R(r,t)}switch(j(e.detail.originalEvent)){case"j":R(r,t)}}}if(n){if(X)switch(j(e.detail.originalEvent)){case"Control+n":case"Control+p":e.preventDefault()}switch(j(e.detail.originalEvent)){case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Enter":e.preventDefault()}}else{if(X)switch(j(e.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":e.preventDefault()}switch(j(e.detail.originalEvent)){case"j":case"k":case"o":e.preventDefault();break;case"Enter":case`${fn}+Enter`:e.preventDefault()}}}});function hn(e){const t=e.modifierKey||e.altKey||e.ctrlKey||e.metaKey;B(e.currentTarget,"navigation:open",{modifierKey:t,shiftKey:e.shiftKey})||e.preventDefault()}w(hn,"fireOpen"),b("click",".js-active-navigation-container .js-navigation-item",function(e){hn(e)}),b("navigation:keyopen",".js-active-navigation-container .js-navigation-item",function(e){const t=e.currentTarget.classList.contains("js-navigation-open")?e.currentTarget:e.currentTarget.querySelector(".js-navigation-open");t instanceof HTMLAnchorElement?(e.detail.modifierKey?(window.open(t.href,"_blank"),window.focus()):t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))&&t.click(),e.preventDefault()):hn(e)});function Se(e){const t=rt();e!==t&&(t!==null&&ot(t),e==null||e.classList.add("js-active-navigation-container"))}w(Se,"activate");function ot(e){e.classList.remove("js-active-navigation-container")}w(ot,"deactivate");const Ar=[];function Pr(e){const t=rt();t&&Ar.push(t),Se(e)}w(Pr,"push");function xr(e){ot(e),_e(e);const t=Ar.pop();t&&Se(t)}w(xr,"pop");function gn(e,t){const n=t||e,o=J(e)[0],r=n.closest(".js-navigation-item")||o;if(Se(e),r instanceof HTMLElement){if(R(r,e))return;const s=se(r);it(s,r)}}w(gn,"focus");function _e(e){const t=e.querySelectorAll(".js-navigation-item.navigation-focus");for(const n of t)n.classList.remove("navigation-focus")}w(_e,"clear");function kr(e,t){_e(e),gn(e,t)}w(kr,"refocus");function Le(e,t){const n=J(t),o=n.indexOf(e),r=n[o-1];if(r){if(R(r,t))return;const s=se(r);vn(t)==="page"?Ce(s,r):it(s,r)}}w(Le,"cursorUp");function Te(e,t){const n=J(t),o=n.indexOf(e),r=n[o+1];if(r){if(R(r,t))return;const s=se(r);vn(t)==="page"?Ce(s,r):it(s,r)}}w(Te,"cursorDown");function jr(e,t){const n=J(t);let o=n.indexOf(e);const r=se(e);if(r==null)return;let i,s;for(;(i=n[o-1])&&(s=Ee(i,r))&&s.top>=0;)o--;if(i){if(R(i,t))return;Ce(r,i)}}w(jr,"pageUp");function Or(e,t){const n=J(t);let o=n.indexOf(e);const r=se(e);if(r==null)return;let i,s;for(;(i=n[o+1])&&(s=Ee(i,r))&&s.bottom>=0;)o++;if(i){if(R(i,t))return;Ce(r,i)}}w(Or,"pageDown");function bn(e,t=!1){B(e,"navigation:keyopen",{modifierKey:t})}w(bn,"keyOpen");function R(e,t){return B(e,"navigation:focus")?(_e(t),e.classList.add("navigation-focus"),!1):!0}w(R,"focusItem");function rt(){return document.querySelector(".js-active-navigation-container")}w(rt,"getActiveContainer");function J(e){const t=[];for(const n of e.querySelectorAll(".js-navigation-item"))n instanceof HTMLElement&&un(n)&&t.push(n);return t}w(J,"getItems");function vn(e){return e.getAttribute("data-navigation-scroll")||"item"}w(vn,"getScrollStyle");function Ce(e,t,n="smooth"){const o=Ee(t,e);!o||(o.bottom<=0?t.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&t.scrollIntoView({behavior:n,block:"end"}))}w(Ce,"scrollPageTo");function it(e,t){const n=tt(t,e),o=Ee(t,e);if(!(n==null||o==null))if(o.bottom<=0&&document.body){const i=(e.offsetParent!=null?e.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height);ln(e,{top:i})}else o.top<=0&&ln(e,{top:n.top})}w(it,"scrollItemTo");function oc(...e){return JSON.stringify(e,(t,n)=>typeof n=="object"?n:String(n))}function yn(e,t={}){const{hash:n=oc,cache:o=new Map}=t;return function(...r){const i=n.apply(this,r);if(o.has(i))return o.get(i);let s=e.apply(this,r);return s instanceof Promise&&(s=s.catch(a=>{throw o.delete(i),a})),o.set(i,s),s}}var rc=Object.defineProperty,$r=(e,t)=>rc(e,"name",{value:t,configurable:!0});function wn(e){const t=e.closest("form");if(!(t instanceof HTMLFormElement))return;let n=En(t);if(e.name){const o=e.matches("input[type=submit]")?"Submit":"",r=e.value||o;n||(n=document.createElement("input"),n.type="hidden",n.classList.add("is-submit-button-value"),t.prepend(n)),n.name=e.name,n.value=r}else n&&n.remove()}$r(wn,"persistSubmitButtonValue");function En(e){const t=e.querySelector("input.is-submit-button-value");return t instanceof HTMLInputElement?t:null}$r(En,"findPersistedSubmitButtonValue");var ic=Object.defineProperty,Mr=(e,t)=>ic(e,"name",{value:t,configurable:!0});function Ae(){const e=document.getElementById("ajax-error-message");e&&(e.hidden=!1)}Mr(Ae,"showGlobalError");function st(){const e=document.getElementById("ajax-error-message");e&&(e.hidden=!0)}Mr(st,"hideGlobalError"),b("deprecatedAjaxError","[data-remote]",function(e){const t=e.detail,{error:n,text:o}=t;e.currentTarget===e.target&&(n==="abort"||n==="canceled"||(/<html/.test(o)?(Ae(),e.stopImmediatePropagation()):setTimeout(function(){e.defaultPrevented||Ae()},0)))}),b("deprecatedAjaxSend","[data-remote]",function(){st()}),b("click",".js-ajax-error-dismiss",function(){st()});var sc=Object.defineProperty,Y=(e,t)=>sc(e,"name",{value:t,configurable:!0});b("click",".js-remote-submit-button",async function(e){const n=e.currentTarget.form;e.preventDefault();let o;try{o=await fetch(n.action,{method:n.method,body:new FormData(n),headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})}catch{}o&&!o.ok&&Ae()});function Sn(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:n}))}Y(Sn,"fire");function _n(e,t){t&&(Ir(e,t),wn(t)),Sn(e,"submit",!0)&&e.submit()}Y(_n,"requestSubmit");function Ir(e,t){if(!(e instanceof HTMLFormElement))throw new TypeError("The specified element is not of type HTMLFormElement.");if(!(t instanceof HTMLElement))throw new TypeError("The specified element is not of type HTMLElement.");if(t.type!=="submit")throw new TypeError("The specified element is not a submit button.");if(!e||e!==t.form)throw new Error("The specified element is not owned by the form element.")}Y(Ir,"checkButtonValidity");function qr(e,t){if(typeof t=="boolean")if(e instanceof HTMLInputElement)e.checked=t;else throw new TypeError("only checkboxes can be set to boolean value");else{if(e.type==="checkbox")throw new TypeError("checkbox can't be set to string value");e.value=t}Sn(e,"change",!1)}Y(qr,"changeValue");function Hr(e,t){for(const n in t){const o=t[n],r=e.elements.namedItem(n);(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(r.value=o)}}Y(Hr,"fillFormValues");function Ln(e){if(!(e instanceof HTMLElement))return!1;const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return t==="select"||t==="textarea"||t==="input"&&n!=="submit"&&n!=="reset"||e.isContentEditable}Y(Ln,"isFormField");function Rr(e){return new URLSearchParams(new FormData(e)).toString()}Y(Rr,"serialize");var ac=Object.defineProperty,Pe=(e,t)=>ac(e,"name",{value:t,configurable:!0});class Dr{getItem(){return null}setItem(){}removeItem(){}clear(){}key(){return null}get length(){return 0}}Pe(Dr,"NoOpStorage");function Tn(e,t={throwQuotaErrorsOnSet:!1},n=window){let o;try{o=n[e]}catch{o=new Dr}const{throwQuotaErrorsOnSet:r}=t;function i(c){try{return o.getItem(c)}catch{return null}}Pe(i,"getItem");function s(c,l){try{o.setItem(c,l)}catch(f){if(r&&f.message.toLowerCase().includes("quota"))throw f}}Pe(s,"setItem");function a(c){try{o.removeItem(c)}catch{}}return Pe(a,"removeItem"),{getItem:i,setItem:s,removeItem:a}}Pe(Tn,"safeStorage");var cc=Object.defineProperty,lc=(e,t)=>cc(e,"name",{value:t,configurable:!0});function Cn(e){var t,n;const o=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="expected-hostname"]'))==null?void 0:n.content;if(!o)return!1;const r=o.replace(/\.$/,"").split(".").slice(-2).join("."),i=e.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".");return r!==i}lc(Cn,"detectProxySite");const An=H("a7",function(){return document.readyState==="interactive"||document.readyState==="complete"?Promise.resolve():new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>{e()})})}()),Pn=H("M",function(){return document.readyState==="complete"?Promise.resolve():new Promise(e=>{window.addEventListener("load",e)})}());var uc=Object.defineProperty,at=(e,t)=>uc(e,"name",{value:t,configurable:!0});let xn=[];function Q(e,t=!1){e.timestamp===void 0&&(e.timestamp=new Date().getTime()),e.loggedIn=Fr(),xn.push(e),t?jn():Nr()}at(Q,"sendStats");let kn=null;async function Nr(){await Pn,kn==null&&(kn=window.requestIdleCallback(jn))}at(Nr,"scheduleSendStats");function jn(){var e,t;if(kn=null,Cn(document))return;const n=(t=(e=document.head)==null?void 0:e.querySelector('meta[name="browser-stats-url"]'))==null?void 0:t.content;if(!n)return;const o=JSON.stringify({stats:xn});try{navigator.sendBeacon&&navigator.sendBeacon(n,o)}catch{}xn=[]}at(jn,"flushStats");function Fr(){var e,t;return!!((t=(e=document.head)==null?void 0:e.querySelector('meta[name="user-login"]'))==null?void 0:t.content)}at(Fr,"isLoggedIn");var fc=Object.defineProperty,On=(e,t)=>fc(e,"name",{value:t,configurable:!0});function $n(e){const t=[...e.querySelectorAll("meta[name=html-safe-nonce]")].map(n=>n.content);if(t.length<1)throw new Error("could not find html-safe-nonce on document");return t}On($n,"getDocumentHtmlSafeNonces");class xe extends Error{constructor(t,n){super(`${t} for HTTP ${n.status}`);this.response=n}}On(xe,"ResponseError");function Mn(e,t,n=!1){const o=t.headers.get("content-type")||"";if(!n&&!o.startsWith("text/html"))throw new xe(`expected response with text/html, but was ${o}`,t);if(n&&!(o.startsWith("text/html")||o.startsWith("application/json")))throw new xe(`expected response with text/html or application/json, but was ${o}`,t);const r=t.headers.get("x-html-safe");if(r){if(!e.includes(r))throw new xe("response X-HTML-Safe nonce did not match",t)}else throw new xe("missing X-HTML-Safe nonce",t)}On(Mn,"verifyResponseHtmlSafeNonce");var dc=Object.defineProperty,mc=(e,t)=>dc(e,"name",{value:t,configurable:!0});function Z(e,t){const n=e.createElement("template");return n.innerHTML=t,e.importNode(n.content,!0)}mc(Z,"parseHTML");var pc=Object.defineProperty,In=(e,t)=>pc(e,"name",{value:t,configurable:!0});async function ct(e,t,n){const o=new Request(t,n);o.headers.append("X-Requested-With","XMLHttpRequest");const r=await self.fetch(o);if(r.status<200||r.status>=300)throw new Error(`HTTP ${r.status}${r.statusText||""}`);return Mn($n(e),r),Z(e,await r.text())}In(ct,"fetchSafeDocumentFragment");function Vr(e,t,n=1e3){return In(async function o(r){const i=new Request(e,t);i.headers.append("X-Requested-With","XMLHttpRequest");const s=await self.fetch(i);if(s.status<200||s.status>=300)throw new Error(`HTTP ${s.status}${s.statusText||""}`);if(s.status===200)return s;if(s.status===202)return await new Promise(a=>setTimeout(a,r)),o(r*1.5);throw new Error(`Unexpected ${s.status} response status from poll endpoint`)},"poll")(n)}In(Vr,"fetchPoll");var hc=Object.defineProperty,ae=(e,t)=>hc(e,"name",{value:t,configurable:!0});let Br=!1;const Ur=new gr;function Xr(e){const t=e.target;if(t instanceof HTMLElement&&t.nodeType!==Node.DOCUMENT_NODE)for(const n of Ur.matches(t))n.data.call(null,t)}ae(Xr,"handleFocus");function ce(e,t){Br||(Br=!0,document.addEventListener("focus",Xr,!0)),Ur.add(e,t),document.activeElement instanceof HTMLElement&&document.activeElement.matches(e)&&t(document.activeElement)}ae(ce,"onFocus");function qn(e,t,n){function o(r){const i=r.currentTarget;!i||(i.removeEventListener(e,n),i.removeEventListener("blur",o))}ae(o,"blurHandler"),ce(t,function(r){r.addEventListener(e,n),r.addEventListener("blur",o)})}ae(qn,"onKey");function lt(e,t){function n(o){const{currentTarget:r}=o;!r||(r.removeEventListener("input",t),r.removeEventListener("blur",n))}ae(n,"blurHandler"),ce(e,function(o){o.addEventListener("input",t),o.addEventListener("blur",n)})}ae(lt,"onInput");var gc=Object.defineProperty,le=(e,t)=>gc(e,"name",{value:t,configurable:!0});const bc=["input[pattern]","input[required]","textarea[required]","input[data-required-change]","textarea[data-required-change]","input[data-required-value]","textarea[data-required-value]"].join(",");function Hn(e){const t=e.getAttribute("data-required-value"),n=e.getAttribute("data-required-value-prefix");if(e.value===t)e.setCustomValidity("");else{let o=t;n&&(o=n+o),e.setCustomValidity(o)}}le(Hn,"checkValidityForRequiredValueField"),lt("[data-required-value]",function(e){const t=e.currentTarget;Hn(t)}),b("change","[data-required-value]",function(e){const t=e.currentTarget;Hn(t),z(t.form)}),lt("[data-required-trimmed]",function(e){const t=e.currentTarget;t.value.trim()===""?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity("")}),b("change","[data-required-trimmed]",function(e){const t=e.currentTarget;t.value.trim()===""?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity(""),z(t.form)}),ce(bc,e=>{let t=e.checkValidity();function n(){const o=e.checkValidity();o!==t&&e.form&&z(e.form),t=o}le(n,"inputHandler"),e.addEventListener("input",n),e.addEventListener("blur",le(function o(){e.removeEventListener("input",n),e.removeEventListener("blur",o)},"blurHandler"))});const zr=new WeakMap;function Wr(e){zr.get(e)||(e.addEventListener("change",()=>z(e)),zr.set(e,!0))}le(Wr,"installHandlers");function z(e){const t=e.checkValidity();for(const n of e.querySelectorAll("button[data-disable-invalid]"))n.disabled=!t}le(z,"validate"),A("button[data-disable-invalid]",{constructor:HTMLButtonElement,initialize(e){const t=e.form;t&&(Wr(t),e.disabled=!t.checkValidity())}}),A("input[data-required-change], textarea[data-required-change]",function(e){const t=e,n=t.type==="radio"&&t.form?t.form.elements.namedItem(t.name).value:null;function o(r){const i=t.form;if(r&&t.type==="radio"&&i&&n)for(const s of i.elements.namedItem(t.name))s instanceof HTMLInputElement&&s.setCustomValidity(t.value===n?"unchanged":"");else t.setCustomValidity(t.value===(n||t.defaultValue)?"unchanged":"")}le(o,"customValidity"),t.addEventListener("input",o),t.addEventListener("change",o),o(),t.form&&z(t.form)}),document.addEventListener("reset",function(e){if(e.target instanceof HTMLFormElement){const t=e.target;setTimeout(()=>z(t))}});var vc=Object.defineProperty,yc=(e,t)=>vc(e,"name",{value:t,configurable:!0});async function ut(e){const n=document.querySelector("#site-details-dialog").content.cloneNode(!0),o=n.querySelector("details"),r=o.querySelector("details-dialog"),i=o.querySelector(".js-details-dialog-spinner");e.detailsClass&&o.classList.add(...e.detailsClass.split(" ")),e.dialogClass&&r.classList.add(...e.dialogClass.split(" ")),e.label?(r.setAttribute("aria-label",e.label),r.removeAttribute("aria-labelledby")):e.labelledBy&&r.setAttribute("aria-labelledby",e.labelledBy),document.body.append(n);const s=await e.content;return i.remove(),r.prepend(s),o.addEventListener("toggle",()=>{o.hasAttribute("open")||(B(r,"dialog:remove"),o.remove())}),r}yc(ut,"dialog");var wc=Object.defineProperty,U=(e,t)=>wc(e,"name",{value:t,configurable:!0});function Rn(e,t=!1){return ft(e)||Jr(e,t)||Zr(e)||ei(e)}U(Rn,"hasInteractions");function ft(e){for(const t of e.querySelectorAll("input, textarea"))if((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&Kr(t))return!0;return!1}U(ft,"hasDirtyFields");function Kr(e){if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")){if(e.checked!==e.defaultChecked)return!0}else if(e.value!==e.defaultValue)return!0;return!1}U(Kr,"formFieldValueChanged");let dt;async function Ec(e,t){dt=e;try{await t()}finally{dt=null}}U(Ec,"withActiveElement");function Gr(e){return dt instanceof Element?dt:e&&e.ownerDocument&&e.ownerDocument.activeElement?e.ownerDocument.activeElement:null}U(Gr,"getActiveElement");let ue;document.addEventListener("mouseup",function(e){ue=e.target});function Jr(e,t){const n=Gr(e);return n===null||t&&n===e?!1:n===e&&Ln(n)||e.contains(n)&&!Qr(n)?!0:ue instanceof Element&&e.contains(ue)&&!!ue.closest("details[open] > summary")}U(Jr,"hasFocus");const Yr="a[href], button";function Qr(e){var t;if(e instanceof br)return!0;const n=e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement,o=(t=e.parentElement)==null?void 0:t.classList.contains("task-list-item");if(n&&o)return!0;if(!(ue instanceof Element))return!1;const r=e.closest(Yr);if(!r)return!1;const i=ue.closest(Yr);return r===i}U(Qr,"activeElementIsSafe");function Zr(e){return e.matches(":active:enabled")}U(Zr,"hasMousedown");function ei(e){return!!(e.closest(".is-dirty")||e.querySelector(".is-dirty"))}U(ei,"markedAsDirty");function ti(e,t){return Dn(Sc(e),t)}function Dn(e,t){var n=e;if(!n)return Promise.resolve(t());var o=n.ownerDocument.documentElement;function r(a){for(var c=[];a;){var l=a.getBoundingClientRect(),f=l.top,d=l.left;c.push({element:a,top:f,left:d}),a=a.parentElement}return c}function i(a){for(var c=0;c<a.length;c++){var l=a[c];if(o.contains(l.element))return l}}var s=r(n);return Promise.resolve(t()).then(function(a){var c=i(s);if(c){n=c.element;var l=c.top,f=c.left,d=n.getBoundingClientRect(),u=d.top,m=d.left;_c(n,m-f,u-l)}return a})}function Sc(e){if(e.activeElement!==e.body)return e.activeElement;var t=e.querySelectorAll(":hover"),n=t.length;if(n)return t[n-1]}function _c(e,t,n){var o=e.ownerDocument,r=o.defaultView;function i(u){return u.offsetParent?{top:u.scrollTop,left:u.scrollLeft}:{top:r.pageYOffset,left:r.pageXOffset}}function s(u,m,p){if(m===0&&p===0)return[0,0];var v=i(u),y=v.top+p,g=v.left+m;u===o||u===r||u===o.documentElement||u===o.body?o.defaultView.scrollTo(g,y):(u.scrollTop=y,u.scrollLeft=g);var C=i(u);return[C.left-v.left,C.top-v.top]}function a(u){var m=u;if(!(!m.offsetParent||m===o.body)){for(;m!==o.body;){if(m.parentElement)m=m.parentElement;else return;var p=r.getComputedStyle(m),v=p.position,y=p.overflowY,g=p.overflowX;if(v==="fixed"||y==="auto"||g==="auto"||y==="scroll"||g==="scroll")break}return m}}for(var c=a(e),l=0,f=0;c;){var d=s(c,t-l,n-f);if(l+=d[0],f+=d[1],l===t&&f===n)break;c=a(c)}}var Lc=Object.defineProperty,Nn=(e,t)=>Lc(e,"name",{value:t,configurable:!0});const mt=new WeakMap,ni=H("au",{});async function oi(e){if(mt.get(e))return;const t=e.hasAttribute("data-retain-focus"),n=e.getAttribute("data-url");if(!n)throw new Error("could not get url");const o=new AbortController;mt.set(e,o);try{const r=await fetch(n,{signal:o.signal,headers:{Accept:"text/html","X-Requested-With":"XMLHttpRequest"}});if(!r.ok)return;const i=await r.text();if(Rn(e,t)){console.warn("Failed to update content with interactions",e);return}return ni[n]=i,Fn(e,i,t)}catch{}finally{mt.delete(e)}}Nn(oi,"updateContent");async function ri(e,t,n=!1){const o=mt.get(e);o==null||o.abort();const r=e.closest(".js-updatable-content[data-url], .js-updatable-content [data-url]");return!n&&r&&r===e&&(ni[r.getAttribute("data-url")||""]=t),Fn(e,t)}Nn(ri,"replaceContent");function Fn(e,t,n=!1){return ti(document,()=>{const o=Z(document,t.trim()),r=n&&e.ownerDocument&&e===e.ownerDocument.activeElement?o.querySelector("*"):null,i=Array.from(e.querySelectorAll("details[open][id]")).map(s=>s.id);e.tagName==="DETAILS"&&e.id&&e.hasAttribute("open")&&i.push(e.id);for(const s of e.querySelectorAll(".js-updatable-content-preserve-scroll-position")){const a=s.getAttribute("data-updatable-content-scroll-position-id")||"";ii.set(a,s.scrollTop)}for(const s of i){const a=o.querySelector(`#${s}`);a&&a.setAttribute("open","")}e.replaceWith(o),r instanceof HTMLElement&&r.focus()})}Nn(Fn,"replace");const ii=new Map;A(".js-updatable-content-preserve-scroll-position",{constructor:HTMLElement,add(e){const t=e.getAttribute("data-updatable-content-scroll-position-id");if(!t)return;const n=ii.get(t);n!=null&&(e.scrollTop=n)}});var fe=-1/0,Tc=1/0,Cc=-.005,Ac=-.005,Pc=-.01,si=1,xc=.9,kc=.8,jc=.7,Oc=.6;function $c(e){return e.toLowerCase()===e}function Mc(e){return e.toUpperCase()===e}function Ic(e){for(var t=e.length,n=new Array(t),o="/",r=0;r<t;r++){var i=e[r];o==="/"?n[r]=xc:o==="-"||o==="_"||o===" "?n[r]=kc:o==="."?n[r]=Oc:$c(o)&&Mc(i)?n[r]=jc:n[r]=0,o=i}return n}function ai(e,t,n,o){for(var r=e.length,i=t.length,s=e.toLowerCase(),a=t.toLowerCase(),c=Ic(t),l=0;l<r;l++){n[l]=new Array(i),o[l]=new Array(i);for(var f=fe,d=l===r-1?Ac:Pc,u=0;u<i;u++)if(s[l]===a[u]){var m=fe;l?u&&(m=Math.max(o[l-1][u-1]+c[u],n[l-1][u-1]+si)):m=u*Cc+c[u],n[l][u]=m,o[l][u]=f=Math.max(m,f+d)}else n[l][u]=fe,o[l][u]=f=f+d}}function ci(e,t){var n=e.length,o=t.length;if(!n||!o)return fe;if(n===o)return Tc;if(o>1024)return fe;var r=new Array(n),i=new Array(n);return ai(e,t,r,i),i[n-1][o-1]}function li(e,t){var n=e.length,o=t.length,r=new Array(n);if(!n||!o)return r;if(n===o){for(var i=0;i<n;i++)r[i]=i;return r}if(o>1024)return r;var s=new Array(n),a=new Array(n);ai(e,t,s,a);for(var c=!1,i=n-1,l=o-1;i>=0;i--)for(;l>=0;l--)if(s[i][l]!==fe&&(c||s[i][l]===a[i][l])){c=i&&l&&a[i][l]===s[i-1][l-1]+si,r[i]=l--;break}return r}function pt(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,o=0,r=0;o<n;o+=1)if(r=t.indexOf(e[o],r)+1,r===0)return!1;return!0}var qc=Object.defineProperty,ke=(e,t)=>qc(e,"name",{value:t,configurable:!0});const ui=ke((e,t,n)=>{if(!pt(e,t))return-1/0;const o=ci(e,t);return o<n?-1/0:o},"getScore"),Hc=ke((e,t,n)=>{e.innerHTML="";let o=0;for(const r of li(t,n)){n.slice(o,r)!==""&&e.appendChild(document.createTextNode(n.slice(o,r))),o=r+1;const s=document.createElement("mark");s.textContent=n[r],e.appendChild(s)}e.appendChild(document.createTextNode(n.slice(o)))},"highlightElement"),fi=new WeakMap,de=new WeakMap,ht=new WeakMap,Vn=ke(e=>{if(!ht.has(e)&&e instanceof HTMLElement){const t=(e.getAttribute("data-value")||e.textContent||"").trim();return ht.set(e,t),t}return ht.get(e)||""},"getTextCache");class gt extends HTMLElement{connectedCallback(){const t=this.querySelector("ul");if(!t)return;const n=new Set(t.querySelectorAll("li")),o=this.querySelector("input");o instanceof HTMLInputElement&&o.addEventListener("input",()=>{this.value=o.value});const r=new MutationObserver(s=>{let a=!1;for(const c of s)if(c.type==="childList"&&c.addedNodes.length){for(const l of c.addedNodes)if(l instanceof HTMLLIElement&&!n.has(l)){const f=Vn(l);a=a||pt(this.value,f),n.add(l)}}a&&this.sort()});r.observe(t,{childList:!0});const i={handler:r,items:n,lazyItems:new Map,timer:null};de.set(this,i)}disconnectedCallback(){const t=de.get(this);t&&(t.handler.disconnect(),de.delete(this))}addLazyItems(t,n){const o=de.get(this);if(!o)return;const{lazyItems:r}=o,{value:i}=this;let s=!1;for(const a of t)r.set(a,n),s=s||Boolean(i)&&pt(i,a);s&&this.sort()}sort(){const t=fi.get(this);t&&(t.aborted=!0);const n={aborted:!1};fi.set(this,n);const{minScore:o,markSelector:r,maxMatches:i,value:s}=this,a=de.get(this);if(!a||!this.dispatchEvent(new CustomEvent("fuzzy-list-will-sort",{cancelable:!0,detail:s})))return;const{items:c,lazyItems:l}=a,f=this.hasAttribute("mark-selector"),d=this.querySelector("ul");if(!d)return;const u=[];if(s){for(const m of c){const p=Vn(m),v=ui(s,p,o);v!==-1/0&&u.push({item:m,score:v})}for(const[m,p]of l){const v=ui(s,m,o);v!==-1/0&&u.push({text:m,render:p,score:v})}u.sort((m,p)=>p.score-m.score).splice(i)}else{let m=u.length;for(const p of c){if(m>=i)break;u.push({item:p,score:1}),m+=1}for(const[p,v]of l){if(m>=i)break;u.push({text:p,render:v,score:1}),m+=1}}requestAnimationFrame(()=>{if(n.aborted)return;const m=d.querySelector('input[type="radio"]:checked');d.innerHTML="";let p=0;const v=ke(()=>{if(n.aborted)return;const y=Math.min(u.length,p+100),g=document.createDocumentFragment();for(let O=p;O<y;O+=1){const I=u[O];let q=null;if("render"in I&&"text"in I){const{render:Ye,text:re}=I;q=Ye(re),c.add(q),ht.set(q,re),l.delete(re)}else"item"in I&&(q=I.item);q instanceof HTMLElement&&(f&&Hc(r&&q.querySelector(r)||q,f?s:"",Vn(q)),g.appendChild(q))}p=y;let C=!1;if(m instanceof HTMLInputElement)for(const O of g.querySelectorAll('input[type="radio"]:checked'))O instanceof HTMLInputElement&&O.value!==m.value&&(O.checked=!1,C=!0);if(d.appendChild(g),m&&C&&m.dispatchEvent(new Event("change",{bubbles:!0})),y<u.length)requestAnimationFrame(v);else{d.hidden=u.length===0;const O=this.querySelector("[data-fuzzy-list-show-on-empty]");O&&(O.hidden=u.length>0),this.dispatchEvent(new CustomEvent("fuzzy-list-sorted",{detail:u.length}))}},"nextBatch");v()})}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get markSelector(){return this.getAttribute("mark-selector")||""}set markSelector(t){t?this.setAttribute("mark-selector",t):this.removeAttribute("mark-selector")}get minScore(){return Number(this.getAttribute("min-score")||0)}set minScore(t){Number.isNaN(t)||this.setAttribute("min-score",String(t))}get maxMatches(){return Number(this.getAttribute("max-matches")||1/0)}set maxMatches(t){Number.isNaN(t)||this.setAttribute("max-matches",String(t))}static get observedAttributes(){return["value","mark-selector","min-score","max-matches"]}attributeChangedCallback(t,n,o){if(n===o)return;const r=de.get(this);!r||(r.timer&&window.clearTimeout(r.timer),r.timer=window.setTimeout(()=>this.sort(),100))}}H("$",gt),ke(gt,"FuzzyListElement"),window.customElements.get("fuzzy-list")||(window.FuzzyListElement=gt,window.customElements.define("fuzzy-list",gt));var Rc=Object.defineProperty,di=(e,t)=>Rc(e,"name",{value:t,configurable:!0});function Bn(){return/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null}di(Bn,"getPlatform");function mi(e){const t=(e.getAttribute("data-platforms")||"").split(","),n=Bn();return Boolean(n&&t.includes(n))}di(mi,"runningOnPlatform"),A(".js-remove-unless-platform",function(e){mi(e)||e.remove()});function Dc(){let e;try{e=window.top.document.referrer}catch{if(window.parent)try{e=window.parent.document.referrer}catch{}}return e===""&&(e=document.referrer),e}function Nc(){try{return`${screen.width}x${screen.height}`}catch{return"unknown"}}function Fc(){let e=0,t=0;try{return typeof window.innerWidth=="number"?(t=window.innerWidth,e=window.innerHeight):document.documentElement!=null&&document.documentElement.clientWidth!=null?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):document.body!=null&&document.body.clientWidth!=null&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch{return"unknown"}}function Vc(){return{referrer:Dc(),user_agent:navigator.userAgent,screen_resolution:Nc(),browser_resolution:Fc(),pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:new Date().getTimezoneOffset()*-60}}let Un;function pi(){return`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(Date.now()/1e3)}`}function Bc(e){const t=`GH1.1.${e}`,n=Date.now(),o=new Date(n+1*365*86400*1e3).toUTCString();let{domain:r}=document;r.endsWith(".github.com")&&(r="github.com"),document.cookie=`_octo=${t}; expires=${o}; path=/; domain=${r}; secure; samesite=lax`}function Uc(){let e;const n=document.cookie.match(/_octo=([^;]+)/g);if(!n)return;let o=[0,0];for(const r of n){const[,i]=r.split("="),[,s,...a]=i.split("."),c=s.split("-").map(Number);c>o&&(o=c,e=a.join("."))}return e}function hi(){try{const e=Uc();if(e)return e;const t=pi();return Bc(t),t}catch{return Un||(Un=pi()),Un}}class Xc{constructor(t){this.options=t}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:hi()}createEvent(t){return{page:location.href,title:document.title,context:{...this.options.baseContext,...t}}}sendPageView(t){const n=this.createEvent(t);this.send({page_views:[n]})}sendEvent(t,n){const o={...this.createEvent(n),type:t};this.send({events:[o]})}send({page_views:t,events:n}){const o={client_id:this.clientId,page_views:t,events:n,request_context:Vc()},r=JSON.stringify(o);try{if(navigator.sendBeacon){navigator.sendBeacon(this.collectorUrl,r);return}}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:r,keepalive:!1})}}function zc(e="ha"){let t;const n={},o=document.head.querySelectorAll(`meta[name^="${e}-"]`);for(const r of Array.from(o)){const{name:i,content:s}=r,a=i.replace(`${e}-`,"").replace(/-/g,"_");a==="url"?t=s:n[a]=s}if(!t)throw new Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}var Wc=Object.defineProperty,gi=(e,t)=>Wc(e,"name",{value:t,configurable:!0});const bi="dimension_";let je;try{const e=zc("octolytics");if(e.baseContext){delete e.baseContext.app_id,delete e.baseContext.event_url,delete e.baseContext.host;for(const n in e.baseContext)n.startsWith(bi)&&(e.baseContext[n.replace(bi,"")]=e.baseContext[n],delete e.baseContext[n])}const t=document.querySelector("meta[name=visitor-payload]");if(t){const n=JSON.parse(atob(t.content)),o=e.baseContext||{};Object.assign(o,n),e.baseContext=o}je=new Xc(e)}catch{}function vi(e){je==null||je.sendPageView(e)}gi(vi,"sendPageView");function yi(e,t){var n,o;const r=(o=(n=document.head)==null?void 0:n.querySelector('meta[name="current-catalog-service"]'))==null?void 0:o.content,i=r?{service:r}:{};for(const[s,a]of Object.entries(t))a!=null&&(i[s]=`${a}`);je==null||je.sendEvent(e||"unknown",i)}gi(yi,"sendEvent");var Kc=Object.defineProperty,bt=(e,t)=>Kc(e,"name",{value:t,configurable:!0});let ee=null;(async function(){await An,Ei()})();function wi(e){Xn(Si(e))}bt(wi,"announceFromElement");function Xn(e){!ee||(ee.textContent="",ee.textContent=e)}bt(Xn,"announce");function Ei(){ee=document.createElement("div"),ee.setAttribute("aria-live","polite"),ee.classList.add("sr-only"),document.body.append(ee)}bt(Ei,"createNoticeContainer");function Si(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}bt(Si,"getTextContent");var Gc=Object.defineProperty,M=(e,t)=>Gc(e,"name",{value:t,configurable:!0});const Oe=[];let vt=0,yt;function wt(){return yt}M(wt,"getState");function Et(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch{return 0}}M(Et,"safeGetHistory");function _i(){const e={_id:new Date().getTime()};return me(e),e}M(_i,"initializeState");function St(){return Et()-1+vt}M(St,"position");function me(e){yt=e;const t=location.href;Oe[St()]={url:t,state:yt},Oe.length=Et(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}M(me,"setState");function zn(){return new Date().getTime()}M(zn,"uniqueId");function Wn(e,t,n){vt=0;const o=Object.assign({},{_id:zn()},e);history.pushState(o,t,n),me(o)}M(Wn,"pushState");function $e(e,t,n){const o=Object.assign({},{_id:wt()._id},e);history.replaceState(o,t,n),me(o)}M($e,"replaceState");function Li(){const e=Oe[St()-1];if(e)return e.url}M(Li,"getBackURL");function Ti(){const e=Oe[St()+1];if(e)return e.url}M(Ti,"getForwardURL"),yt=_i(),window.addEventListener("popstate",M(function(t){const n=t.state;if(!n||!n._id)return;n._id<(wt()._id||NaN)?vt--:vt++,me(n)},"onPopstate"),!0),window.addEventListener("hashchange",M(function(){if(Et()>Oe.length){const t={_id:zn()};history.replaceState(t,"",location.href),me(t)}},"onHashchange"),!0);var Jc=Object.defineProperty,pe=(e,t)=>Jc(e,"name",{value:t,configurable:!0});function Ci(){return Promise.resolve()}pe(Ci,"microtask");function Ai(){return new Promise(window.requestAnimationFrame)}pe(Ai,"animationFrame");async function Yc(e,t){let n;const o=new Promise((r,i)=>{n=self.setTimeout(()=>i(new Error("timeout")),e)});if(!t)return o;try{await Promise.race([o,Kn(t)])}catch(r){throw self.clearTimeout(n),r}}pe(Yc,"timeout");async function Pi(e,t){let n;const o=new Promise(r=>{n=self.setTimeout(r,e)});if(!t)return o;try{await Promise.race([o,Kn(t)])}catch(r){throw self.clearTimeout(n),r}}pe(Pi,"wait");function Kn(e){return new Promise((t,n)=>{const o=new Error("aborted");o.name="AbortError",e.aborted?n(o):e.addEventListener("abort",()=>n(o))})}pe(Kn,"whenAborted");function xi(e){const t=[];return function(n){t.push(n),t.length===1&&queueMicrotask(()=>{const o=[...t];t.length=0,e(o)})}}pe(xi,"taskQueue");var Qc=Object.defineProperty,ki=(e,t)=>Qc(e,"name",{value:t,configurable:!0});const Gn={},Me={};(async()=>{await An,Gn[document.location.pathname]=Array.from(document.querySelectorAll("head [data-pjax-transient]")),Me[document.location.pathname]=Array.from(document.querySelectorAll("[data-pjax-replace]"))})(),document.addEventListener("pjax:beforeReplace",function(e){const t=e.detail.contents||[],n=e.target;for(let o=0;o<t.length;o++){const r=t[o];r instanceof Element&&(r.id==="pjax-head"?(Gn[document.location.pathname]=Array.from(r.children),t[o]=null):r.hasAttribute("data-pjax-replace")&&(Me[document.location.pathname]||(Me[document.location.pathname]=[]),Me[document.location.pathname].push(r),n.querySelector(`#${r.id}`)||(t[o]=null)))}});function Jn(){const e=Me[document.location.pathname];if(!!e)for(const t of e){const n=document.querySelector(`#${t.id}`);n&&n.replaceWith(t)}}ki(Jn,"replaceCachedElements");function Yn(){const e=Gn[document.location.pathname];if(!e)return;const t=document.head;for(const n of document.querySelectorAll("head [data-pjax-transient]"))n.remove();for(const n of e)n.matches("title, script, link[rel=stylesheet]")?n.matches("link[rel=stylesheet]")&&t.append(n):(n.setAttribute("data-pjax-transient",""),t.append(n))}ki(Yn,"replaceTransientTags");var Zc=Object.defineProperty,Qn=(e,t)=>Zc(e,"name",{value:t,configurable:!0});function _t(e,t=location.hash){return Lt(e,Zn(t))}Qn(_t,"findFragmentTarget");function Lt(e,t){return t===""?null:e.getElementById(t)||e.getElementsByName(t)[0]}Qn(Lt,"findElementByFragmentName");function Zn(e){try{return decodeURIComponent(e.slice(1))}catch{return""}}Qn(Zn,"decodeFragmentValue");var el=Object.defineProperty,E=(e,t)=>el(e,"name",{value:t,configurable:!0});const ji=20;let P,Ie=null;function x(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}E(x,"dispatch");async function eo(e){var t,n,o,r;const i={push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,...e};i.requestUrl=i.url;const a=He(i.url).hash,c=i.container,l=ro(c);P||(P={id:no(),url:window.location.href,title:document.title,container:l,fragment:i.fragment},$e(P,P.title,P.url)),Ie==null||Ie.abort();const{signal:f}=Ie=new AbortController;i.push===!0&&i.replace!==!0&&(Hi(P.id,oo(c)),Wn(null,"",i.requestUrl)),x(c,"pjax:start",{url:i.url}),x(c,"pjax:send");let d;const u=Ni();try{d=await fetch(i.url,{signal:f,method:i.type,body:i.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":l,"X-Requested-With":"XMLHttpRequest","X-PJAX-VERSION":(t=u.pjax)!=null?t:"","X-PJAX-CSP-VERSION":(n=u.csp)!=null?n:"","X-PJAX-CSS-VERSION":(o=u.css)!=null?o:"","X-PJAX-JS-VERSION":(r=u.js)!=null?r:""}})}catch{d=void 0}if(!d||!d.ok){const we=x(c,"pjax:error");if(i.type==="GET"&&we){const hr=d&&d.headers.get("X-PJAX-URL"),ou=hr?He(hr).href:i.requestUrl;Q({pjaxFailureReason:"response_error",requestUrl:i.requestUrl}),qe(ou)}x(c,"pjax:complete"),x(c,"pjax:end");return}const m=P,p=Di(),v=d.headers.get("X-PJAX-Version"),y=await d.text(),g=Mi(y,d,i),{contents:C}=g,O=He(g.url);if(a&&(O.hash=a,g.url=O.href),p&&v&&p!==v){x(c,"pjax:hardLoad",{reason:"version_mismatch"}),Q({pjaxFailureReason:"version_mismatch",requestUrl:i.requestUrl}),qe(g.url);return}if(!C){x(c,"pjax:hardLoad",{reason:"missing_response_body"}),Q({pjaxFailureReason:"missing_response_body",requestUrl:i.requestUrl}),qe(g.url);return}P={id:i.id!=null?i.id:no(),url:g.url,title:g.title,container:l,fragment:i.fragment},(i.push===!0||i.replace===!0)&&$e(P,g.title,g.url);const I=document.activeElement,q=i.container!=null&&i.container.contains(I);if(I instanceof HTMLElement&&q)try{I.blur()}catch{}g.title&&(document.title=g.title),x(c,"pjax:beforeReplace",{contents:C,state:P,previousState:m}),io(c,C),Jn(),Yn();const Ye=c.querySelector("input[autofocus], textarea[autofocus]");Ye&&document.activeElement!==Ye&&Ye.focus(),g.scripts&&Ii(g.scripts),g.stylesheets&&qi(g.stylesheets);let re=i.scrollTo;if(a){const we=_t(document,a);we&&(re=we.getBoundingClientRect().top+window.pageYOffset)}typeof re=="number"&&window.scrollTo(window.pageXOffset,re),x(c,"pjax:success"),x(c,"pjax:complete"),x(c,"pjax:end")}E(eo,"pjaxRequest");function qe(e){P&&$e(null,"",P.url),window.location.replace(e)}E(qe,"locationReplace");let Tt=!0;const tl=window.location.href,to=window.history.state;to&&to.container&&(P=to),"state"in window.history&&(Tt=!1);function Oi(e){Tt||Ie==null||Ie.abort();const t=P,n=e.state;let o=null;if(n&&n.container){if(Tt&&tl===n.url)return;if(t){if(t.id===n.id)return;o=t.id<n.id?"forward":"back"}const[r,i,s]=De[n.id]||[],a=document.querySelector(r||n.container);if(a instanceof HTMLElement){t&&Ri(o,t.id,oo(a)),x(a,"pjax:popstate",{state:n,direction:o,cachedAt:s});const c={id:n.id,url:n.url,container:a,push:!1,fragment:n.fragment||"",scrollTo:!1};i?(x(a,"pjax:start"),P=n,n.title&&(document.title=n.title),x(a,"pjax:beforeReplace",{contents:i,state:n,previousState:t}),io(a,i),Jn(),Yn(),x(a,"pjax:end")):eo(c),a.offsetHeight}else Q({pjaxFailureReason:"no_container",requestUrl:t==null?void 0:t.url}),qe(location.href)}Tt=!1}E(Oi,"onPjaxPopstate");function no(){return new Date().getTime()}E(no,"uniqueId");function oo(e){const t=e.cloneNode(!0);return[ro(e),Array.from(t.childNodes),Date.now()]}E(oo,"cloneContents");function He(e){const t=document.createElement("a");return t.href=e,t}E(He,"parseURL");function ro(e){if(e.id)return`#${e.id}`;throw new Error("pjax container has no id")}E(ro,"getContainerSelector");function Re(e,t,n){let o=[];for(const r of e)r instanceof Element&&(r instanceof n&&r.matches(t)&&o.push(r),o=o.concat(Array.from(r.querySelectorAll(t))));return o}E(Re,"findAll");function io(e,t){e.innerHTML="";for(const n of t)n!=null&&e.appendChild(n)}E(io,"replaceWithNodes");function $i(e,t){const n=e.headers.get("X-PJAX-URL");return n?He(n).href:t}E($i,"resolveUrl");function Mi(e,t,n){const o={url:$i(t,n.requestUrl),title:""},r=/<html/i.test(e);if((t.headers.get("Content-Type")||"").split(";",1)[0].trim()!=="text/html")return o;let s,a;if(r){const f=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i),d=e.match(/<body[^>]*>([\s\S.]*)<\/body>/i);s=f?Array.from(Z(document,f[0]).childNodes):[],a=d?Array.from(Z(document,d[0]).childNodes):[]}else s=a=Array.from(Z(document,e).childNodes);if(a.length===0)return o;const c=Re(s,"title",HTMLTitleElement);o.title=c.length>0&&c[c.length-1].textContent||"";let l;if(n.fragment){if(n.fragment==="body")l=a;else{const f=Re(a,n.fragment,Element);l=f.length>0?[f[0]]:[]}if(l.length&&(n.fragment==="body"?o.contents=l:o.contents=l.flatMap(f=>Array.from(f.childNodes)),!o.title)){const f=l[0];f instanceof Element&&(o.title=f.getAttribute("title")||f.getAttribute("data-title")||"")}}else r||(o.contents=a);if(o.contents){o.contents=o.contents.filter(function(u){return u instanceof Element?!u.matches("title"):!0});for(const u of o.contents)if(u instanceof Element)for(const m of u.querySelectorAll("title"))m.remove();const f=Re(o.contents,"script[src]",HTMLScriptElement);for(const u of f)u.remove();o.scripts=f,o.contents=o.contents.filter(u=>f.indexOf(u)===-1);const d=Re(o.contents,"link[rel=stylesheet]",HTMLLinkElement);for(const u of d)u.remove();o.stylesheets=d,o.contents=o.contents.filter(u=>!d.includes(u))}return o.title&&(o.title=o.title.trim()),o}E(Mi,"extractContainer");function Ii(e){const t=document.querySelectorAll("script[src]");for(const n of e){const{src:o}=n;if(Array.from(t).some(s=>s.src===o))continue;const r=document.createElement("script"),i=n.getAttribute("type");i&&(r.type=i),r.src=o,document.head&&document.head.appendChild(r)}}E(Ii,"executeScriptTags");function qi(e){const t=document.querySelectorAll("link[rel=stylesheet]");for(const n of e)Array.from(t).some(o=>o.href===n.href)||document.head&&document.head.appendChild(n)}E(qi,"injectStyleTags");const De={},so=[],Ct=[];function Hi(e,t){De[e]=t,Ct.push(e),At(so,0),At(Ct,ji)}E(Hi,"cachePush");function Ri(e,t,n){let o,r;De[t]=n,e==="forward"?(o=Ct,r=so):(o=so,r=Ct),o.push(t);const i=r.pop();i&&delete De[i],At(o,ji)}E(Ri,"cachePop");function At(e,t){for(;e.length>t;){const n=e.shift();if(n==null)return;delete De[n]}}E(At,"trimCacheStack");function Di(){for(const e of document.getElementsByTagName("meta")){const t=e.getAttribute("http-equiv");if(t&&t.toUpperCase()==="X-PJAX-VERSION")return e.content}return null}E(Di,"findVersion");function Ne(e){var t;const n=document.querySelector(`meta[http-equiv="${e}"]`);return(t=n==null?void 0:n.content)!=null?t:null}E(Ne,"pjaxMeta");function Ni(){return{pjax:Ne("X-PJAX-VERSION"),csp:Ne("X-PJAX-CSP-VERSION"),css:Ne("X-PJAX-CSS-VERSION"),js:Ne("X-PJAX-JS-VERSION")}}E(Ni,"findAllVersions");function Fi(){return P}E(Fi,"getState"),window.addEventListener("popstate",Oi);var nl=Object.defineProperty,te=(e,t)=>nl(e,"name",{value:t,configurable:!0});const W=new WeakMap;function ao(e){const t=W.get(e);!t||(t.timer!=null&&clearTimeout(t.timer),t.timer=window.setTimeout(()=>{t.timer!=null&&(t.timer=null),t.inputed=!1,t.listener.call(null,e)},t.wait))}te(ao,"schedule");function co(e){const t=e.currentTarget,n=W.get(t);!n||(n.keypressed=!0,n.timer!=null&&clearTimeout(n.timer))}te(co,"onKeydownInput");function lo(e){const t=e.currentTarget,n=W.get(t);!n||(n.keypressed=!1,n.inputed&&ao(t))}te(lo,"onKeyupInput");function uo(e){const t=e.currentTarget,n=W.get(t);!n||(n.inputed=!0,n.keypressed||ao(t))}te(uo,"onInputInput");function Vi(e,t,n={wait:null}){W.set(e,{keypressed:!1,inputed:!1,timer:void 0,listener:t,wait:n.wait!=null?n.wait:100}),e.addEventListener("keydown",co),e.addEventListener("keyup",lo),e.addEventListener("input",uo)}te(Vi,"addThrottledInputEventListener");function Bi(e,t){e.removeEventListener("keydown",co),e.removeEventListener("keyup",lo),e.removeEventListener("input",uo);const n=W.get(e);n&&(n.timer!=null&&n.listener===t&&clearTimeout(n.timer),W.delete(e))}te(Bi,"removeThrottledInputEventListener");function Ui(e){const t=W.get(e);t&&t.listener.call(null,e)}te(Ui,"dispatchThrottledInputEvent");var ol=Object.defineProperty,D=(e,t)=>ol(e,"name",{value:t,configurable:!0});function fo(e){const t=e.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(t)if(t.length===1){const n=Pt(t[0]);return n?Object.freeze({start:n,end:n}):void 0}else if(t.length===2){const n=Pt(t[0]),o=Pt(t[1]);return!n||!o?void 0:ho(Object.freeze({start:n,end:o}))}else return;else return}D(fo,"parseBlobRange");function Xi(e){const{start:t,end:n}=ho(e);return t.column!=null&&n.column!=null?`L${t.line}C${t.column}-L${n.line}C${n.column}`:t.line===n.line?`L${t.line}`:`L${t.line}-L${n.line}`}D(Xi,"formatBlobRange");function zi(e){const t=e.match(/(file-.+?-)L\d+?/i);return t?t[1]:""}D(zi,"parseAnchorPrefix");function Wi(e){const t=fo(e),n=zi(e);return{blobRange:t,anchorPrefix:n}}D(Wi,"parseFileAnchor");function Ki({anchorPrefix:e,blobRange:t}){return t?`#${e}${Xi(t)}`:"#"}D(Ki,"formatBlobRangeAnchor");function Pt(e){const t=e.match(/L(\d+)/),n=e.match(/C(\d+)/);return t?Object.freeze({line:parseInt(t[1]),column:n?parseInt(n[1]):null}):null}D(Pt,"parseBlobOffset");function Gi(e,t){const[n,o]=mo(e.start,!0,t),[r,i]=mo(e.end,!1,t);if(!n||!r)return;let s=o,a=i;if(s===-1&&(s=0),a===-1&&(a=r.childNodes.length),!n.ownerDocument)throw new Error("DOMRange needs to be inside document");const c=n.ownerDocument.createRange();return c.setStart(n,s),c.setEnd(r,a),c}D(Gi,"DOMRangeFromBlob");function mo(e,t,n){const o=[null,0],r=n(e.line);if(!r)return o;if(e.column==null)return[r,-1];let i=e.column-1;const s=po(r);for(let a=0;a<s.length;a++){const c=s[a],l=i-(c.textContent||"").length;if(l===0){const f=s[a+1];return t&&f?[f,0]:[c,i]}else if(l<0)return[c,i];i=l}return o}D(mo,"findRangeOffset");function po(e){if(e.nodeType===Node.TEXT_NODE)return[e];if(!e.childNodes||!e.childNodes.length)return[];let t=[];for(const n of e.childNodes)t=t.concat(po(n));return t}D(po,"getAllTextNodes");function ho(e){const t=[e.start,e.end];return t.sort(Ji),t[0]===e.start&&t[1]===e.end?e:Object.freeze({start:t[0],end:t[1]})}D(ho,"ascendingBlobRange");function Ji(e,t){return e.line===t.line&&e.column===t.column?0:e.line===t.line&&typeof e.column=="number"&&typeof t.column=="number"?e.column-t.column:e.line-t.line}D(Ji,"compareBlobOffsets");var rl=Object.defineProperty,go=(e,t)=>rl(e,"name",{value:t,configurable:!0});const he=[];let bo=0;function Fe(e){(async function(){he.push(e),await An,Yi()})()}go(Fe,"hashChange"),Fe.clear=()=>{he.length=bo=0};function Yi(){const e=bo;bo=he.length,xt(he.slice(e),null,window.location.href)}go(Yi,"runRemainingHandlers");function xt(e,t,n){const o=window.location.hash.slice(1),r=o?document.getElementById(o):null,i={oldURL:t,newURL:n,target:r};for(const s of e)s.call(null,i)}go(xt,"runHandlers");let vo=window.location.href;window.addEventListener("popstate",function(){vo=window.location.href}),window.addEventListener("hashchange",function(e){const t=window.location.href;try{xt(he,e.oldURL||vo,t)}finally{vo=t}});let Qi=null;document.addEventListener("pjax:start",function(){Qi=window.location.href}),document.addEventListener("pjax:end",function(){xt(he,Qi,window.location.href)});var il=Object.defineProperty,sl=(e,t)=>il(e,"name",{value:t,configurable:!0});function Zi(e,t){t.appendChild(e.extractContents()),e.insertNode(t)}sl(Zi,"surroundContents");var al=Object.defineProperty,Ve=(e,t)=>al(e,"name",{value:t,configurable:!0});function kt(e){const t="\u200D",n=e.split(t);let o=0;for(const r of n)o+=Array.from(r.split(/[\ufe00-\ufe0f]/).join("")).length;return o/n.length}Ve(kt,"getUtf8StringLength");function yo(e,t,n){let o=e.value.substring(0,e.selectionEnd||0),r=e.value.substring(e.selectionEnd||0);return o=o.replace(t,n),r=r.replace(t,n),wo(e,o+r,o.length),n}Ve(yo,"replaceText");function es(e,t,n){if(e.selectionStart===null||e.selectionEnd===null)return yo(e,t,n);const o=e.value.substring(0,e.selectionStart),r=e.value.substring(e.selectionEnd);return wo(e,o+n+r,o.length),n}Ve(es,"replaceSelection");function ts(e,t,n={}){const o=e.selectionEnd||0,r=e.value.substring(0,o),i=e.value.substring(o),s=e.value===""||r.match(/\n$/)?"":`
|
|
`,a=n.appendNewline?`
|
|
`:"",c=s+t+a;e.value=r+c+i;const l=o+c.length;return e.selectionStart=l,e.selectionEnd=l,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),c}Ve(ts,"insertText");function wo(e,t,n){e.value=t,e.selectionStart=n,e.selectionEnd=n,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1}))}Ve(wo,"setTextareaValueAndCursor");var cl=Object.defineProperty,ge=(e,t)=>cl(e,"name",{value:t,configurable:!0});function ns(e,t,n){const o=n.closest(".js-characters-remaining-container");if(!o)return;const r=o.querySelector(".js-characters-remaining"),i=String(r.getAttribute("data-suffix")),s=kt(e),a=t-s;a<=20?(r.textContent=`${a} ${i}`,r.classList.toggle("color-fg-danger",a<=5),r.hidden=!1):r.hidden=!0}ge(ns,"showRemainingCharacterCount");function Eo(e){return e.hasAttribute("data-maxlength")?parseInt(e.getAttribute("data-maxlength")||""):e.maxLength}ge(Eo,"getFieldLimit");function os(e){const t=Eo(e),n=kt(e.value);return t-n<0}ge(os,"hasExceededCharacterLimit");function jt(e){const t=Eo(e);ns(e.value,t,e)}ge(jt,"updateInputRemainingCharacters");function rs(e){const t=e.querySelectorAll(".js-characters-remaining-container");for(const n of t){const o=n.querySelector(".js-characters-remaining-field");jt(o)}}ge(rs,"resetCharactersRemainingCounts"),ce(".js-characters-remaining-field",function(e){function t(){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&jt(e)}ge(t,"onInput"),t(),e.addEventListener("input",t),e.addEventListener("blur",()=>{e.removeEventListener("input",t)},{once:!0})});var ll=Object.defineProperty,Ot=(e,t)=>ll(e,"name",{value:t,configurable:!0});const So=new WeakMap;function is(e){return So.get(e)}Ot(is,"getCodeEditor");async function ss(e){return So.get(e)||_o(await as(e,"codeEditor:ready"))}Ot(ss,"getAsyncCodeEditor");function _o(e){if(!(e instanceof CustomEvent))throw new Error("assert: event is not a CustomEvent");const t=e.detail.editor;if(!e.target)throw new Error("assert: event.target is null");return So.set(e.target,t),t}Ot(_o,"onEditorFromEvent"),b("codeEditor:ready",".js-code-editor",_o);function as(e,t){return new Promise(n=>{e.addEventListener(t,n,{once:!0})})}Ot(as,"nextEvent");var ul=Object.defineProperty,Lo=(e,t)=>ul(e,"name",{value:t,configurable:!0});const fl="ontransitionend"in window;function cs(e,t){if(!fl){t();return}const n=Array.from(e.querySelectorAll(".js-transitionable"));e.classList.contains("js-transitionable")&&n.push(e);for(const o of n){const r=To(o);o instanceof HTMLElement&&(o.addEventListener("transitionend",()=>{o.style.display="",o.style.visibility="",r&&Co(o,function(){o.style.height=""})},{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",r&&Co(o,function(){o.style.height=getComputedStyle(o).height}),o.offsetHeight)}t();for(const o of n)if(o instanceof HTMLElement&&To(o)){const r=getComputedStyle(o).height;o.style.boxSizing="",r==="0px"?o.style.height=`${o.scrollHeight}px`:o.style.height="0px"}}Lo(cs,"performTransition");function To(e){return getComputedStyle(e).transitionProperty==="height"}Lo(To,"isTransitioningHeight");function Co(e,t){e.style.transition="none",t(),e.offsetHeight,e.style.transition=""}Lo(Co,"withoutTransition");var dl=Object.defineProperty,N=(e,t)=>dl(e,"name",{value:t,configurable:!0});function ls(e,t){t.find(n=>{const o=e.querySelectorAll(n),r=o[o.length-1];if(r&&document.activeElement!==r)return r.focus(),!0})}N(ls,"findAndFocusByQuerySelector");function us(e){ls(e,[".js-focus-on-dismiss","input[autofocus], textarea[autofocus]"])}N(us,"restoreAutofocus");function fs(e){!e.classList.contains("tooltipped")||(e.classList.remove("tooltipped"),e.addEventListener("mouseleave",()=>{e.classList.add("tooltipped"),e.blur()},{once:!0}))}N(fs,"hideTooltip");function ds(e){return[...document.querySelectorAll(".js-details-container")].filter(t=>t.getAttribute("data-details-container-group")===e)}N(ds,"groupMembers");function ms(e){return[...e.querySelectorAll(".js-details-target")].filter(t=>t.closest(".js-details-container")===e)}N(ms,"containerTargets");function ps(e,t){const n=e.getAttribute("data-details-container-group");return n?(Dn(e,()=>{for(const o of ds(n))o!==e&&Ao(o,t)}),n):null}N(ps,"toggleGroup");function Ao(e,t){e.classList.toggle("open",t),e.classList.toggle("Details--on",t);for(const n of ms(e))n.setAttribute("aria-expanded",t.toString())}N(Ao,"updateOpenState");function Po(e,t){var n,o;const r=e.getAttribute("data-details-container")||".js-details-container",i=e.closest(r),s=(n=t==null?void 0:t.force)!=null?n:!i.classList.contains("open"),a=(o=t==null?void 0:t.withGroup)!=null?o:!1;cs(i,()=>{Ao(i,s);const c=a?ps(i,s):null;Promise.resolve().then(()=>{us(i),fs(e),i.dispatchEvent(new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:s}})),c&&i.dispatchEvent(new CustomEvent("details:toggled-group",{bubbles:!0,cancelable:!1,detail:{open:s,group:c}}))})})}N(Po,"toggleDetailsTarget");function hs(e){const t=e.getAttribute("data-details-container")||".js-details-container",o=e.closest(t).classList;return o.contains("Details--on")||o.contains("open")}N(hs,"isDetailsTargetExpanded");function gs(e){const t=e.altKey,n=e.currentTarget;Po(n,{withGroup:t}),e.preventDefault()}N(gs,"handleDetailsTargetClick"),b("click",".js-details-target",gs),Fe(function({target:e}){e&&xo(e)});function xo(e){let t=!1,n=e.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(t=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!t),n.classList.toggle("Details--on",!t),t=!1),n=n.parentElement}N(xo,"ensureExpanded");var ml=Object.defineProperty,Be=(e,t)=>ml(e,"name",{value:t,configurable:!0});function bs(e,t){let n=ko(e,t);if(n&&t.indexOf("/")===-1){const o=e.substring(e.lastIndexOf("/")+1);n+=ko(o,t)}return n}Be(bs,"fuzzyScore");function vs(e){const t=e.toLowerCase().split("");let n="";for(let o=0;o<t.length;o++){const i=t[o].replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");o===0?n+=`(.*)(${i})`:n+=`([^${i}]*?)(${i})`}return new RegExp(`${n}(.*?)$`,"i")}Be(vs,"fuzzyRegexp");function ys(e,t,n){if(t){const o=e.innerHTML.trim().match(n||vs(t));if(!o)return;let r=!1;const i=[];for(let s=1;s<o.length;++s){const a=o[s];!a||(s%2==0?r||(i.push("<mark>"),r=!0):r&&(i.push("</mark>"),r=!1),i.push(a))}e.innerHTML=i.join("")}else{const o=e.innerHTML.trim(),r=o.replace(/<\/?mark>/g,"");o!==r&&(e.innerHTML=r)}}Be(ys,"fuzzyHighlightElement");function ko(e,t){let n=e;if(n===t)return 1;const o=n.length;let r=0,i=0;for(let l=0;l<t.length;l++){const f=t[l],d=n.indexOf(f.toLowerCase()),u=n.indexOf(f.toUpperCase()),m=Math.min(d,u),p=m>-1?m:Math.max(d,u);if(p===-1)return 0;r+=.1,n[p]===f&&(r+=.1),p===0&&(r+=.8,l===0&&(i=1)),n.charAt(p-1)===" "&&(r+=.8),n=n.substring(p+1,o)}const s=t.length,a=r/s;let c=(a*(s/o)+a)/2;return i&&c+.1<1&&(c+=.1),c}Be(ko,"stringScore");function ws(e,t){return e.score>t.score?-1:e.score<t.score?1:e.text<t.text?-1:e.text>t.text?1:0}Be(ws,"compare");var pl=Object.defineProperty,hl=(e,t)=>pl(e,"name",{value:t,configurable:!0});function*Es(e,t){for(const n of e){const o=t(n);o!=null&&(yield o)}}hl(Es,"filterMap");var gl=Object.defineProperty,Ss=(e,t)=>gl(e,"name",{value:t,configurable:!0});function _s(e,t,n){return[...Es(e,Ss(r=>{const i=t(r);return i!=null?[r,i]:null},"sortKey"))].sort((r,i)=>n(r[1],i[1])).map(([r])=>r)}Ss(_s,"filterSort");var bl=Object.defineProperty,K=(e,t)=>bl(e,"name",{value:t,configurable:!0});function Ls(e){return new Promise(t=>{e.addEventListener("dialog:remove",t,{once:!0})})}K(Ls,"waitForDialogClose");function jo(e){const t=document.querySelector(".sso-modal");!t||(t.classList.remove("success","error"),e?t.classList.add("success"):t.classList.add("error"))}K(jo,"setModalStatus");function Ts(e){const t=document.querySelector("meta[name=sso-expires-around]");t&&t.setAttribute("content",e)}K(Ts,"updateExpiresAroundTag");async function Cs(){const e=document.querySelector("link[rel=sso-modal]"),t=await ut({content:ct(document,e.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(r){r.error?(n=!1,jo(n)):(n=!0,jo(n),Ts(r.expiresAround),window.focus()),o.ssoComplete=null},await Ls(t),!n)throw new Error("sso prompt canceled")}K(Cs,"ssoPrompt"),A(".js-sso-modal-complete",function(e){if(window.opener&&window.opener.external.ssoComplete){const t=e.getAttribute("data-error"),n=e.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:t,expiresAround:n}),window.close()}else{const t=e.getAttribute("data-fallback-url");t&&(window.location.href=t)}});function As(e){if(!(e instanceof HTMLMetaElement))return!0;const t=parseInt(e.content);return new Date().getTime()/1e3>t}K(As,"expiresSoon");async function Ps(){const e=document.querySelector("link[rel=sso-session]"),t=document.querySelector("meta[name=sso-expires-around]");if(!(e instanceof HTMLLinkElement)||!As(t))return!0;const n=e.href;return await(await fetch(n,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})).json()}K(Ps,"fetchSsoStatus");let $t=null;function Oo(){$t=null}K(Oo,"clearActiveSsoPrompt");async function xs(){await Ps()||($t||($t=Cs().then(Oo).catch(Oo)),await $t)}K(xs,"default");var vl=Object.defineProperty,Mt=(e,t)=>vl(e,"name",{value:t,configurable:!0});b("click",".js-skip-to-content",function(e){const t=document.getElementById("start-of-content");if(t){const n=t.nextElementSibling;n instanceof HTMLElement&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-skipped-to-content","1"),n.focus())}e.preventDefault()});function ks(){let e=!1;const t=document.getElementById("start-of-content");if(t){const n=t.nextElementSibling;if(n instanceof HTMLElement)return e=n.getAttribute("data-skipped-to-content")==="1",e&&n.removeAttribute("data-skipped-to-content"),e}}Mt(ks,"hasSkippedToContent");const yl="ontouchstart"in document;function js(){return window.innerWidth>1012}Mt(js,"compatibleDesktop");for(const e of document.querySelectorAll(".HeaderMenu-details"))e.addEventListener("toggle",Os),yl||(e.addEventListener("mouseover",Mo),e.addEventListener("mouseleave",Mo));let $o=!1;function Os(e){if(!$o){$o=!0;for(const t of document.querySelectorAll(".HeaderMenu-details"))t!==e.currentTarget&&t.removeAttribute("open");setTimeout(()=>$o=!1)}}Mt(Os,"onMenuToggle");function Mo(e){const{currentTarget:t}=e;!(t instanceof HTMLElement)||!js()||(e.type==="mouseover"&&e instanceof MouseEvent?e.target instanceof Node&&e.relatedTarget instanceof Node&&t.contains(e.target)&&!t.contains(e.relatedTarget)&&t.setAttribute("open",""):t.removeAttribute("open"))}Mt(Mo,"onMenuHover");var wl=Object.defineProperty,_=(e,t)=>wl(e,"name",{value:t,configurable:!0});let Io=!1,Ue=0;const Xe=[];function qo(){Xe.length?$s():Ms()}_(qo,"manageObservers");function $s(){Io||(window.addEventListener("resize",ze),document.addEventListener("scroll",ze),Io=!0)}_($s,"addObservers");function Ms(){window.removeEventListener("resize",ze),document.removeEventListener("scroll",ze),Io=!1}_(Ms,"removeObservers");function It(){qt(!0)}_(It,"forceStickyRelayout");function ze(){qt()}_(ze,"checkElementsForStickingHandler");function qt(e=!1){for(const t of Xe)if(t.element.offsetHeight>0){const{element:n,placeholder:o,top:r}=t,i=n.getBoundingClientRect();if(o){const s=o.getBoundingClientRect();n.classList.contains("is-stuck")?s.top>be(n,r)?Ro(t):Do(t):i.top<=be(n,r)?Ho(t):e&&Do(t)}else i.top<=be(n,r)?Ho(t):Ro(t)}}_(qt,"checkElementsForSticking");function Is(e){const{position:t}=window.getComputedStyle(e);return/sticky/.test(t)}_(Is,"browserHasSticky");function Ho({element:e,placeholder:t,top:n}){if(t){const o=e.getBoundingClientRect();Ht(e,be(e,n)),e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.marginTop="0",e.style.position="fixed",t.style.display="block"}e.classList.add("is-stuck")}_(Ho,"pinSet");function Ro({element:e,placeholder:t}){t&&(e.style.position="static",e.style.marginTop=t.style.marginTop,t.style.display="none"),e.classList.remove("is-stuck")}_(Ro,"unpinSet");function Do({element:e,placeholder:t,offsetParent:n,top:o}){if(t&&!ks()){const r=e.getBoundingClientRect(),i=t.getBoundingClientRect();if(Ht(e,be(e,o)),e.style.left=`${i.left}px`,e.style.width=`${i.width}px`,n){const s=n.getBoundingClientRect();s.bottom<r.height+parseInt(String(o))&&(e.style.top=`${s.bottom-r.height}px`)}}}_(Do,"updatePinnedSet");function qs(e){if(Is(e))return null;const t=e.previousElementSibling;if(t&&t.classList.contains("is-placeholder"))return t;const n=document.createElement("div");return n.style.visibility="hidden",n.style.display="none",n.style.height=window.getComputedStyle(e).height,n.className=e.className,n.classList.remove("js-sticky"),n.classList.add("is-placeholder"),e.parentNode.insertBefore(n,e)}_(qs,"findOrCreatePlaceholder");function Hs(e){const t=qs(e),n=window.getComputedStyle(e).position;e.style.position="static";const o=e.offsetParent;e.style.position="fixed";const r=Vo(e),i={element:e,placeholder:t,offsetParent:o,top:r==="auto"?0:parseInt(r||"0")};e.style.position=n,Xe.push(i)}_(Hs,"createSet");function Rs(e){const t=Xe.map(n=>n.element).indexOf(e);Xe.splice(t,1)}_(Rs,"removeSet");async function Ds(e){await Pn,Hs(e),qt(),qo()}_(Ds,"initializeSet"),A(".js-sticky",{constructor:HTMLElement,add(e){Ds(e)},remove(e){Rs(e),qo()}}),A(".js-notification-top-shelf",{constructor:HTMLElement,add(e){Ns(e)},remove(){for(const e of document.querySelectorAll(".js-notification-top-shelf"))e.remove();Ue>0&&(Ue=0,No(),It())}}),A(".js-notification-shelf-offset-top, .js-position-sticky",{constructor:HTMLElement,add:Fo});async function Ns(e){if(e.offsetParent===null)return;await Pn;const t=Math.floor(e.getBoundingClientRect().height);t>0&&(Ue=t,No(),It())}_(Ns,"initializeNotificationShelf");function No(){for(const e of document.querySelectorAll(".js-position-sticky, .js-notification-shelf-offset-top"))Fo(e)}_(No,"updateTopOffsets");function Fo(e){if(e.classList.contains("js-notification-top-shelf"))return;const t=parseInt(Vo(e))||0;Ht(e,t+Ue)}_(Fo,"updateTopOffset");function Vo(e){const t=e.getAttribute("data-original-top");if(t!=null)return t;const n=window.getComputedStyle(e).top;return e.setAttribute("data-original-top",n),n}_(Vo,"getOriginalTop");function be(e,t){return e.classList.contains("js-notification-top-shelf")?t:t+Ue}_(be,"withShelfOffset");function Ht(e,t){e.style.setProperty("top",`${t}px`,"important")}_(Ht,"setTopImportant");var El=Object.defineProperty,Bo=(e,t)=>El(e,"name",{value:t,configurable:!0});function Uo(e){const t=e.ownerDocument;setTimeout(()=>{t&&t.defaultView&&(e.scrollIntoView(),t.defaultView.scrollBy(0,-Xo(t)))},0)}Bo(Uo,"scrollIntoView");function Fs(e){const t=_t(e);t&&Uo(t)}Bo(Fs,"scrollToFragmentTarget");function Xo(e){It();const t=e.querySelectorAll(".js-sticky-offset-scroll"),n=e.querySelectorAll(".js-position-sticky"),o=Math.max(0,...Array.from(t).map(s=>{const{top:a,height:c}=s.getBoundingClientRect();return a===0?c:0}))+Math.max(0,...Array.from(n).map(s=>{const{top:a,height:c}=s.getBoundingClientRect(),l=parseInt(getComputedStyle(s).top);if(!s.parentElement)return 0;const f=s.parentElement.getBoundingClientRect().top;return a===l&&f<0?c:0})),r=e.querySelectorAll(".js-position-sticky-stacked"),i=Array.from(r).reduce((s,a)=>{const{height:c,top:l}=a.getBoundingClientRect(),f=l<0,d=a.classList.contains("is-stuck");return s+(!f&&d?c:0)},0);return o+i}Bo(Xo,"computeFixedYOffset");var Sl=Object.defineProperty,zo=(e,t)=>Sl(e,"name",{value:t,configurable:!0});function Rt(e,t,n){const o={hydroEventPayload:e,hydroEventHmac:t,visitorPayload:"",visitorHmac:"",hydroClientContext:n},r=document.querySelector("meta[name=visitor-payload]");r instanceof HTMLMetaElement&&(o.visitorPayload=r.content);const i=document.querySelector("meta[name=visitor-hmac]")||"";i instanceof HTMLMetaElement&&(o.visitorHmac=i.content),Q(o,!0)}zo(Rt,"sendData");function Wo(e){const t=e.getAttribute("data-hydro-view")||"",n=e.getAttribute("data-hydro-view-hmac")||"",o=e.getAttribute("data-hydro-client-context")||"";Rt(t,n,o)}zo(Wo,"trackView");function Vs(e){const t=e.getAttribute("data-hydro-click-payload")||"",n=e.getAttribute("data-hydro-click-hmac")||"",o=e.getAttribute("data-hydro-client-context")||"";Rt(t,n,o)}zo(Vs,"sendHydroEvent");var _l=Object.defineProperty,We=(e,t)=>_l(e,"name",{value:t,configurable:!0});const Bs={frequency:.6,recency:.4};function Us(e,t){return e.sort((n,o)=>t(n)-t(o))}We(Us,"sortBy");function Ko(e){const t=zs(e),n=Ws(e);return function(o){return Xs(t.get(o)||0,n.get(o)||0)}}We(Ko,"scorer");function Xs(e,t){return e*Bs.frequency+t*Bs.recency}We(Xs,"score");function zs(e){const t=[...Object.values(e)].reduce((n,o)=>n+o.visitCount,0);return new Map(Object.keys(e).map(n=>[n,e[n].visitCount/t]))}We(zs,"frequencyMap");function Ws(e){const t=Us([...Object.keys(e)],o=>e[o].lastVisitedAt),n=t.length;return new Map(t.map((o,r)=>[o,(r+1)/n]))}We(Ws,"recencyMap");var Ll=Object.defineProperty,F=(e,t)=>Ll(e,"name",{value:t,configurable:!0});const Tl=/^\/orgs\/([a-z0-9-]+)\/teams\/([\w-]+)/,Ks=[/^\/([^/]+)\/([^/]+)\/?$/,/^\/([^/]+)\/([^/]+)\/blob/,/^\/([^/]+)\/([^/]+)\/tree/,/^\/([^/]+)\/([^/]+)\/issues/,/^\/([^/]+)\/([^/]+)\/pulls?/,/^\/([^/]+)\/([^/]+)\/pulse/],Gs=[["organization",/^\/orgs\/([a-z0-9-]+)\/projects\/([0-9-]+)/],["repository",/^\/([^/]+)\/([^/]+)\/projects\/([0-9-]+)/]],Js=100;function Ys(e){const t=e.match(Tl);if(t){Dt(Go(t[1],t[2]));return}let n;for(let r=0,i=Gs.length;r<i;r++){const[s,a]=Gs[r];if(n=e.match(a),n){let c=null,l=null;switch(s){case"organization":c=n[1],l=n[2];break;case"repository":c=`${n[1]}/${n[2]}`,l=n[3];break}c&&l&&Dt(Yo(c,l));return}}let o;for(let r=0,i=Ks.length;r<i;r++)if(o=e.match(Ks[r]),o){Dt(Jo(o[1],o[2]));return}}F(Ys,"logPageView");function Qs(e){const t=Object.keys(e);if(t.length<=Js)return e;const n=Ko(e),o=t.sort((r,i)=>n(i)-n(r)).slice(0,Js/2);return Object.fromEntries(o.map(r=>[r,e[r]]))}F(Qs,"limitedPageViews");function Dt(e){const t=Zo(),n=Zs(),o=t[e]||{lastVisitedAt:n,visitCount:0};o.visitCount+=1,o.lastVisitedAt=n,t[e]=o,Qo(Qs(t))}F(Dt,"logPageViewByKey");function Zs(){return Math.floor(Date.now()/1e3)}F(Zs,"currentEpochTimeInSeconds");function Go(e,t){return`team:${e}/${t}`}F(Go,"buildTeamKey");function Jo(e,t){return`repository:${e}/${t}`}F(Jo,"buildRepositoryKey");function Yo(e,t){return`project:${e}/${t}`}F(Yo,"buildProjectKey");const Cl=/^(team|repository|project):[^/]+\/[^/]+(\/([^/]+))?$/,ea="jump_to:page_views";function Qo(e){ta(ea,JSON.stringify(e))}F(Qo,"setPageViewsMap");function Zo(){const e=na(ea);if(!e)return{};let t;try{t=JSON.parse(e)}catch{return Qo({}),{}}const n={};for(const o in t)o.match(Cl)&&(n[o]=t[o]);return n}F(Zo,"getPageViewsMap");function ta(e,t){try{window.localStorage.setItem(e,t)}catch{}}F(ta,"setItem");function na(e){try{return window.localStorage.getItem(e)}catch{return null}}F(na,"getItem");var Al=Object.defineProperty,Nt=(e,t)=>Al(e,"name",{value:t,configurable:!0});function Ft(e){const t=document.querySelectorAll(e);if(t.length>0)return t[t.length-1]}Nt(Ft,"queryLast");function oa(){const e=Ft("meta[name=analytics-location]");return e?e.content:window.location.pathname}Nt(oa,"pagePathname");function ra(){const e=Ft("meta[name=analytics-location-query-strip]");let t="";e||(t=window.location.search);const n=Ft("meta[name=analytics-location-params]");n&&(t+=(t?"&":"?")+n.content);for(const o of document.querySelectorAll("meta[name=analytics-param-rename]")){const r=o.content.split(":",2);t=t.replace(new RegExp(`(^|[?&])${r[0]}($|=)`,"g"),`$1${r[1]}$2`)}return t}Nt(ra,"pageQuery");function ia(){return`${window.location.protocol}//${window.location.host}${oa()+ra()}`}Nt(ia,"requestUri");const{getItem:Pl,setItem:xl,removeItem:kl}=Tn("sessionStorage");H({ag:Pl,ah:xl,af:kl});var jl=Object.defineProperty,Vt=(e,t)=>jl(e,"name",{value:t,configurable:!0});function sa(e,t){const n=e.closest("[data-notification-id]");t.hasAttribute("data-status")&&aa(n,t.getAttribute("data-status")),t.hasAttribute("data-subscription-status")&&ca(n,t.getAttribute("data-subscription-status")),t.hasAttribute("data-starred-status")&&la(n,t.getAttribute("data-starred-status"))}Vt(sa,"updateNotificationStates");function aa(e,t){e.classList.toggle("notification-archived",t==="archived"),e.classList.toggle("notification-unread",t==="unread"),e.classList.toggle("notification-read",t==="read")}Vt(aa,"toggleNotificationStatus");function ca(e,t){e.classList.toggle("notification-unsubscribed",t==="unsubscribed")}Vt(ca,"toggleNotificationSubscriptionStatus");function la(e,t){e.classList.toggle("notification-starred",t==="starred")}Vt(la,"toggleNotificationStarredStatus");var Ol=Object.defineProperty,ua=(e,t)=>Ol(e,"name",{value:t,configurable:!0});const $l=yn(fa);function fa(){var e,t;return(((t=(e=document.head)==null?void 0:e.querySelector('meta[name="enabled-features"]'))==null?void 0:t.content)||"").split(",")}ua(fa,"enabledFeatures");const ru=H("am",yn(da));function da(e){return $l().indexOf(e)!==-1}ua(da,"isEnabled");function ma(e){const t="==".slice(0,(4-e.length%4)%4),n=e.replace(/-/g,"+").replace(/_/g,"/")+t,o=atob(n),r=new ArrayBuffer(o.length),i=new Uint8Array(r);for(let s=0;s<o.length;s++)i[s]=o.charCodeAt(s);return r}function pa(e){const t=new Uint8Array(e);let n="";for(const o of t)n+=String.fromCharCode(o);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ve(e,t,n){if(t==="copy")return n;if(t==="convert")return e(n);if(t instanceof Array)return n.map(o=>ve(e,t[0],o));if(t instanceof Object){const o={};for(const[r,i]of Object.entries(t))if(r in n)n[r]!=null?o[r]=ve(e,i.schema,n[r]):o[r]=null;else if(i.required)throw new Error("Missing key: "+r);return o}}function h(e){return{required:!0,schema:e}}function L(e){return{required:!1,schema:e}}const ha={type:h("copy"),id:h("convert"),transports:L("copy")},ga={appid:L("copy"),appidExclude:L("copy"),credProps:L("copy")},ba={appid:L("copy"),appidExclude:L("copy"),credProps:L("copy")},Ml={publicKey:h({rp:h("copy"),user:h({id:h("convert"),name:h("copy"),displayName:h("copy")}),challenge:h("convert"),pubKeyCredParams:h("copy"),timeout:L("copy"),excludeCredentials:L([ha]),authenticatorSelection:L("copy"),attestation:L("copy"),extensions:L(ga)}),signal:L("copy")},Il={type:h("copy"),id:h("copy"),rawId:h("convert"),response:h({clientDataJSON:h("convert"),attestationObject:h("convert")}),clientExtensionResults:h(ba)},ql={mediation:L("copy"),publicKey:h({challenge:h("convert"),timeout:L("copy"),rpId:L("copy"),allowCredentials:L([ha]),userVerification:L("copy"),extensions:L(ga)}),signal:L("copy")},Hl={type:h("copy"),id:h("copy"),rawId:h("convert"),response:h({clientDataJSON:h("convert"),authenticatorData:h("convert"),signature:h("convert"),userHandle:h("convert")}),clientExtensionResults:h(ba)};async function Rl(e){return function(t){const n=t;return n.clientExtensionResults=t.getClientExtensionResults(),ve(pa,Il,n)}(await navigator.credentials.create(function(t){return ve(ma,Ml,t)}(e)))}async function Dl(e){return function(t){const n=t;return n.clientExtensionResults=t.getClientExtensionResults(),ve(pa,Hl,n)}(await navigator.credentials.get(function(t){return ve(ma,ql,t)}(e)))}function va(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}var Nl=Object.defineProperty,ya=(e,t)=>Nl(e,"name",{value:t,configurable:!0});function er(){return va()?"supported":"unsupported"}ya(er,"webauthnSupportLevel");async function wa(){var e;return await((e=window.PublicKeyCredential)==null?void 0:e.isUserVerifyingPlatformAuthenticatorAvailable())?"supported":"unsupported"}ya(wa,"iuvpaaSupportLevel");var Fl=Object.defineProperty,Bt=(e,t)=>Fl(e,"name",{value:t,configurable:!0});let tr=!1;function Ea(e){const t=new URL(e,window.location.origin),n=new URLSearchParams(t.search.slice(1));return n.set("webauthn-support",er()),t.search=n.toString(),t.toString()}Bt(Ea,"urlWithParams");async function Sa(){const e=document.querySelector("link[rel=sudo-modal]"),t=document.querySelector(".js-sudo-prompt");if(t instanceof HTMLTemplateElement)return t;if(e){const n=await ct(document,Ea(e.href));return document.body.appendChild(n),document.querySelector(".js-sudo-prompt")}else throw new Error("couldn't load sudo prompt")}Bt(Sa,"loadPromptTemplate");let nr=!1;async function or(){if(tr)return!1;tr=!0,nr=!1;const t=(await Sa()).content.cloneNode(!0),n=await ut({content:t});return await new Promise(o=>{n.addEventListener("dialog:remove",function(){tr=!1,o()},{once:!0})}),nr}Bt(or,"sudoPrompt"),rn(".js-sudo-form",async function(e,t){try{await t.text()}catch(n){if(!n.response)throw n;let o;switch(n.response.status){case 401:o="Incorrect password.";break;case 429:o="Too many password attempts. Please wait and try again later.";break;default:o="Failed to receive a response. Please try again later."}e.querySelector(".js-sudo-error").textContent=o,e.querySelector(".js-sudo-error").hidden=!1,e.querySelector(".js-sudo-password").value="";return}nr=!0,e.closest("details").removeAttribute("open")});async function _a(){const e=await fetch("/sessions/in_sudo",{headers:{accept:"application/json","X-Requested-With":"XMLHttpRequest"}});return e.ok&&await e.text()==="true"?!0:or()}Bt(_a,"triggerSudoPrompt");var Vl=Object.defineProperty,k=(e,t)=>Vl(e,"name",{value:t,configurable:!0});A(".js-task-list-container .js-task-list-field",function(e){const t=e.closest(".js-task-list-container");Ut(t),Wt(t)}),b("task-lists-move","task-lists",function(e){const{src:t,dst:n}=e.detail,o=e.currentTarget.closest(".js-task-list-container");ir(o,"reordered",{operation:"move",src:t,dst:n})}),b("task-lists-check","task-lists",function(e){const{position:t,checked:n}=e.detail,o=e.currentTarget.closest(".js-task-list-container");ir(o,`checked:${n?1:0}`,{operation:"check",position:t,checked:n})});function Ut(e){if(e.querySelector(".js-task-list-field")){const t=e.querySelectorAll("task-lists");for(const n of t)if(n instanceof sn){n.disabled=!1;const o=n.querySelectorAll("button");for(const r of o)r.disabled=!1}}}k(Ut,"enableTaskList");function rr(e){for(const t of e.querySelectorAll("task-lists"))if(t instanceof sn){t.disabled=!0;const n=t.querySelectorAll("button");for(const o of n)o.disabled=!0}}k(rr,"disableTaskList");function ir(e,t,n){const o=e.querySelector(".js-comment-update");rr(e),Wt(e);const r=o.elements.namedItem("task_list_track");r instanceof Element&&r.remove();const i=o.elements.namedItem("task_list_operation");i instanceof Element&&i.remove();const s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","task_list_track"),s.setAttribute("value",t),o.appendChild(s);const a=document.createElement("input");if(a.setAttribute("type","hidden"),a.setAttribute("name","task_list_operation"),a.setAttribute("value",JSON.stringify(n)),o.appendChild(a),!o.elements.namedItem("task_list_key")){const f=o.querySelector(".js-task-list-field").getAttribute("name").split("[")[0],d=document.createElement("input");d.setAttribute("type","hidden"),d.setAttribute("name","task_list_key"),d.setAttribute("value",f),o.appendChild(d)}e.classList.remove("is-comment-stale"),_n(o)}k(ir,"saveTaskList"),rn(".js-task-list-container .js-comment-update",async function(e,t){const n=e.closest(".js-task-list-container"),o=e.elements.namedItem("task_list_track");o instanceof Element&&o.remove();const r=e.elements.namedItem("task_list_operation");r instanceof Element&&r.remove();let i;try{i=await t.json()}catch(s){let a;try{a=JSON.parse(s.response.text)}catch{}if(a&&a.stale){const c=n.querySelector(".js-task-list-field");c.classList.add("session-resumable-canceled"),c.classList.remove("js-session-resumable")}else s.response.status===422||window.location.reload()}i&&(r&&i.json.source&&(n.querySelector(".js-task-list-field").value=i.json.source),Ut(n),requestAnimationFrame(()=>Wt(n)))});let Ke=!1,Xt=!1,Ge=null;function La(e){e.inputType==="insertLineBreak"?Ke=!0:Ke=!1}k(La,"tryAutoCompleteOnBeforeInput");function Ta(e){const t=e;if(!Ke&&!(t.inputType==="insertLineBreak"))return;const n=t.target;Ca(n),Ke=!1}k(Ta,"autoCompleteOnInput");function Ca(e){const t=Oa(e.value,[e.selectionStart,e.selectionEnd]);t!==void 0&&zt(e,t)}k(Ca,"listAutocomplete");function zt(e,t){if(Ge===null||Ge===!0){e.contentEditable="true";try{Ke=!1;let n;t.commandId===ne.insertText?(n=t.autocompletePrefix,t.writeSelection[0]!==null&&t.writeSelection[1]!==null&&(e.selectionStart=t.writeSelection[0],e.selectionEnd=t.writeSelection[1])):e.selectionStart=t.selection[0],Ge=document.execCommand(t.commandId,!1,n)}catch{Ge=!1}e.contentEditable="false"}if(!Ge){try{document.execCommand("ms-beginUndoUnit")}catch{}e.value=t.text;try{document.execCommand("ms-endUndoUnit")}catch{}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}t.selection[0]!=null&&t.selection[1]!=null&&(e.selectionStart=t.selection[0],e.selectionEnd=t.selection[1])}k(zt,"updateElementText");function Aa(e){if(Xt)return;const t=e;if(t.key==="Enter"&&t.shiftKey&&!t.metaKey){const n=t.target,o=ja(n.value,[n.selectionStart,n.selectionEnd]);if(o===void 0)return;zt(n,o),t.preventDefault(),B(n,"change")}}k(Aa,"handleShiftEnter");function Pa(){Xt=!0}k(Pa,"onCompositionStart");function xa(){Xt=!1}k(xa,"onCompositionEnd");function ka(e){if(Xt)return;const t=e;if(t.key==="Escape"){Ma(e);return}if(t.key!=="Tab")return;const n=t.target,o=$a(n.value,[n.selectionStart,n.selectionEnd],t.shiftKey);o!==void 0&&(t.preventDefault(),zt(n,o))}k(ka,"updateIndentation"),A(".js-task-list-field",{subscribe:e=>et(V(e,"keydown",ka),V(e,"keydown",Aa),V(e,"beforeinput",La),V(e,"input",Ta),V(e,"compositionstart",Pa),V(e,"compositionend",xa))});var ne;(function(e){e.insertText="insertText",e.delete="delete"})(ne||(ne={}));const Bl=/^(\s*)?/;function ja(e,t){const n=t[0];if(!n||!e)return;const o=e.substring(0,n).split(`
|
|
`),r=o[o.length-1],i=r==null?void 0:r.match(Bl);if(!i)return;const a=`
|
|
${i[1]||""}`;return{text:e.substring(0,n)+a+e.substring(n),autocompletePrefix:a,selection:[n+a.length,n+a.length],commandId:ne.insertText,writeSelection:[null,null]}}k(ja,"addSoftNewline");const Ul=/^(\s*)([*-]|(\d+)\.)\s(\[[\sx]\]\s)?/;function Oa(e,t){const n=t[0];if(!n||!e)return;const o=e.substring(0,n).split(`
|
|
`),r=o[o.length-2],i=r==null?void 0:r.match(Ul);if(!i)return;const s=i[0],a=i[1],c=i[2],l=parseInt(i[3],10),f=Boolean(i[4]);let u=`${isNaN(l)?c:`${l+1}.`} ${f?"[ ] ":""}`,m=e.indexOf(`
|
|
`,n);m<0&&(m=e.length);const p=e.substring(n,m);if(p.startsWith(u)&&(u=""),r.replace(s,"").trim().length>0||p.trim().length>0){const y=`${a}${u}`;return{autocompletePrefix:y,text:e.substring(0,n)+y+e.substring(n),selection:[n+y.length,n+y.length],commandId:ne.insertText,writeSelection:[null,null]}}else{const y=n-`
|
|
${s}`.length;return{autocompletePrefix:"",text:e.substring(0,y)+e.substring(n),selection:[y,y],commandId:ne.delete,writeSelection:[null,null]}}}k(Oa,"autocompletedList");function $a(e,t,n){const o=t[0]||0,r=t[1]||o;if(t[0]===null||o===r)return;const i=e.substring(0,o).lastIndexOf(`
|
|
`)+1,s=e.indexOf(`
|
|
`,r-1),a=s>0?s:e.length-1,c=e.substring(i,a).split(`
|
|
`);let l=!1,f=0,d=0;const u=[];for(const y of c){const g=y.match(/^\s*/);if(g){let C=g[0];const O=y.substring(C.length);if(n){const I=C.length;C=C.slice(0,-2),f=l?f:C.length-I,l=!0,d+=C.length-I}else C+=" ",f=2,d+=2;u.push(C+O)}}const m=u.join(`
|
|
`),p=e.substring(0,i)+m+e.substring(a),v=[Math.max(i,o+f),r+d];return{text:p,selection:v,autocompletePrefix:m,commandId:ne.insertText,writeSelection:[i,a]}}k($a,"indent");function Ma(e){const n=e.target;n.selectionDirection==="backward"?n.selectionEnd=n.selectionStart:n.selectionStart=n.selectionEnd}k(Ma,"deselectText");function Wt(e){if(document.querySelectorAll("tracked-issues-progress").length===0||e.closest(".js-timeline-item"))return;const n=e.querySelectorAll(".js-comment-body [type=checkbox]"),o=n.length,r=Array.from(n).filter(s=>s.checked).length,i=document.querySelectorAll("tracked-issues-progress[data-type=checklist]");for(const s of i)s.setAttribute("data-completed",String(r)),s.setAttribute("data-total",String(o))}k(Wt,"updateProgress");var Xl=Object.defineProperty,zl=(e,t)=>Xl(e,"name",{value:t,configurable:!0});function Ia(){if("Intl"in window)try{return new window.Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}zl(Ia,"timezone");var qa=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Kl=(e,t)=>qa(e,"name",{value:t,configurable:!0}),Kt=(e,t,n,o)=>{for(var r=o>1?void 0:o?Wl(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(r=(o?s(t,n,r):s(r))||r);return o&&r&&qa(t,n,r),r};let ye=class extends HTMLElement{connectedCallback(){this.submitButton.disabled=!0,this.toggleSpecificOptions()}enableForm(){this.submitButton.disabled=!1}toggleSpecificOptions(){this.selectRadio.checked?this.specificOptions.hidden=!1:this.specificOptions.hidden=!0}};Kl(ye,"ActionsPolicyFormElement"),Kt([Qe],ye.prototype,"specificOptions",2),Kt([Qe],ye.prototype,"submitButton",2),Kt([Qe],ye.prototype,"selectRadio",2),ye=Kt([vr],ye);var Gl=Object.defineProperty,Ha=(e,t)=>Gl(e,"name",{value:t,configurable:!0});async function sr(e,t=!0){const n=e.querySelector('[name="codespace[location]"]');if(!n||n.value)return;const o=e.querySelector("button[type=submit]");o instanceof HTMLInputElement&&(o.disabled=!0);const r=e.getAttribute("data-codespace-locations-url");if(!r)return;const i=await ar(r);return t&&i&&(n.value=i.current),i}Ha(sr,"prefetchCodespaceLocation");async function ar(e){const t=await fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}});if(!t.ok){const n=new Error,o=t.statusText?` ${t.statusText}`:"";throw n.message=`HTTP ${t.status}${o}`,n}return t.json()}Ha(ar,"fetchLocationValues"),b("submit",".js-prefetch-codespace-location",async function(e){const t=e.currentTarget;e.preventDefault(),await sr(t),t.submit()});var Jl=Object.defineProperty,Ra=(e,t)=>Jl(e,"name",{value:t,configurable:!0});b("click",".js-toggle-inline-comment-form",function(e){const t=e.currentTarget.closest(".js-line-comments");Gt(t)}),b("quote-selection",".js-line-comments",function(e){Gt(e.currentTarget)}),qn("keydown",".js-inline-comment-form-container form .js-comment-field",function(e){const t=e.target;if(!t.classList.contains("js-navigation-enable")&&e.key==="Escape"&&t.value.length===0){const n=t.closest("form");Jt(n),e.preventDefault()}}),b("click",".js-hide-inline-comment-form",function(e){const t=e.currentTarget.closest("form");!ft(t)||confirm(e.target.getAttribute("data-confirm-cancel-text"))?Jt(t):e.preventDefault()});function Gt(e){var t;const n=e.querySelector(".js-inline-comment-form-container");n.classList.add("open"),(t=n.querySelector(".js-write-tab"))==null||t.click(),n.querySelector(".js-comment-field").focus(),B(n,"inlinecomment:focus")}Ra(Gt,"focusForm");function Jt(e){e.reset();const t=e.closest(".js-inline-comment-form-container");t.classList.remove("open");const n=t.querySelector(".js-multi-line-preview");n&&(n.hidden=!0),B(t,"inlinecomment:collapse")}Ra(Jt,"blurForm");var Yl=Object.defineProperty,cr=(e,t)=>Yl(e,"name",{value:t,configurable:!0});class lr{constructor(t,n,o){this.diffId=t,this.side=n,this.lineNumber=o,this.element=Lt(document,this.anchor())}sideForCommenting(){return this.element&&this.element.classList.contains("blob-num-context")?"right":{R:"right",L:"left"}[this.side]}isContext(){return this.element?this.element.classList.contains("blob-num-context"):!1}anchor(){return`${this.diffId}${this.anchorSuffix()}`}anchorSuffix(){return`${this.side}${this.lineNumber}`}is(t){return this.diffId===t.diffId&&this.side===t.side&&this.lineNumber===t.lineNumber}}cr(lr,"DiffPosition");class ur{constructor(t,n,o,r,i){this.elements=new Set,this.isParsed=!1,this.isSplit=!1,this._rows=new Set,this._isAcrossHunks=!1,this._isContextOnly=!0,this._includesExpandedLine=!1,this._commentOutsideTheDiff=!1,this.diffId=t,this.diffTable=document.querySelector(`.js-diff-table[data-diff-anchor="${t}"]`),this.diffTable&&(this.isSplit=this.diffTable.classList.contains("js-file-diff-split")),this.start=new lr(t,n,o),this.end=new lr(t,r,i),this.lineCount=0,this.parse()}anchor(){const t=[];return t.push(this.start.anchor()),this.start.is(this.end)||t.push(this.end.anchorSuffix()),t.join("-")}parse(){if(!this.diffTable)return;let t=this.unify(this.diffTable.querySelectorAll(".js-linkable-line-number"));t=this.filterInRange(t),this.lineCount=t.length,this.elements=this.expandRelatedElements(t),this._commentOutsideTheDiff=this.diffTable.classList.contains("js-comment-outside-the-diff"),this.isParsed=!0}unify(t){if(!this.isSplit)return Array.from(t);const n=[];let o=[],r=[];for(const i of t)i.classList.contains("blob-num-addition")?o.push(i):i.classList.contains("blob-num-deletion")?r.push(i):(n.push(...r,...o,i),o=[],r=[]);return n.push(...r,...o),n}filterInRange(t){if(!this.start.element||!this.end.element)return[];let n=t.indexOf(this.start.element),o=t.indexOf(this.end.element);if(n>o){[n,o]=[o,n];const[r,i]=[this.end,this.start];this.start=r,this.end=i}return t.slice(n,o+1)}isContextOnly(){return this.isParsed||this.parse(),this._isContextOnly}isAcrossHunks(){return this.isParsed||this.parse(),this._isAcrossHunks}includesExpandedLine(){return this.isParsed||this.parse(),this._includesExpandedLine}commentOutsideTheDiffEnabled(){return this.isParsed||this.parse(),this._commentOutsideTheDiff}rows(){return this.isParsed||this.parse(),this._rows}expandRelatedElements(t){const n=this.isSplit,o=t[0],r=t[t.length-1];if(o&&r){const s=o.closest("[data-hunk]"),a=r.closest("[data-hunk]");if(s&&a){const c=s.getAttribute("data-hunk"),l=a.getAttribute("data-hunk");c!==l&&(this._isAcrossHunks=!0)}}const i=cr((s,a)=>{!this._includesExpandedLine&&a.closest(".blob-expanded")&&(this._includesExpandedLine=!0);const c=a.parentElement;c instanceof HTMLElement&&this._rows.add(c);const l=a.classList.contains("blob-num-deletion")||a.classList.contains("blob-num-addition");if(l&&(this._isContextOnly=!1),!c)return s;if(n&&l)return Array.from(c.children).indexOf(a)<2?s.add(c.children[0]).add(c.children[1]):s.add(c.children[2]).add(c.children[3]);for(const f of Array.from(c.children))s.add(f);return s},"expander");return t.reduce(i,new Set)}}cr(ur,"DiffRange");var Ql=Object.defineProperty,Zl=(e,t)=>Ql(e,"name",{value:t,configurable:!0});function Yt(e){const t=e.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(t!=null&&t.length===6)return t;const n=e.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return n!=null&&n.length===6?n:null}Zl(Yt,"matchHash");var eu=Object.defineProperty,T=(e,t)=>eu(e,"name",{value:t,configurable:!0});let S=null,Qt=null,Zt=!1,oe=null;function Da(){return S}T(Da,"getCurrentRange");function fr(e){return!!e.closest(".js-multi-line-comments-enabled")}T(fr,"isMultiLineCommentingEnabled");function en(e,t){if(!fr(e))return!1;const{start:{lineNumber:n},end:{lineNumber:o}}=t;return!(n===o&&t.isContextOnly()||!t.commentOutsideTheDiffEnabled()&&(t.isAcrossHunks()||t.includesExpandedLine()))}T(en,"isMultiLineCommentAllowed");function tn(e){return e.closest(".js-diff-table").classList.contains("is-selecting")}T(tn,"isSelecting");function Na(){window.history.replaceState(null,"","#"),G()}T(Na,"clearSelection");function Je(e,t){let n=e.id;if(t){const o=Yt(n);if(!o)return;const r=o[1],i=o[2],s=o[3];if(S&&S.diffId===r){if(i===S.start.side&&s<S.start.lineNumber)return;const a=new ur(r,S.start.side,S.start.lineNumber,i,+s);n=a.anchor();const c=e.closest(".js-file-content[data-hydro-view]");c instanceof HTMLElement&&Wa(c,a),Zt&&tn(e)&&e.closest(".js-diff-table").classList.toggle("is-commenting",en(e,a)),Qt=T(function(){if(en(e,a)){const f=`.js-add-line-comment[data-side="${a.end.sideForCommenting()}"]`,d=e.closest("tr").querySelector(f);d&&a&&d.click()}},"showMultiLineCommentForm")}}window.history.replaceState(null,null,`#${n}`),G()}T(Je,"setSelection");function nn(e){if(!(e instanceof HTMLElement))return null;if(e.classList.contains("js-linkable-line-number"))return e;const t=e.previousElementSibling;return t?nn(t):null}T(nn,"nearestLinkableLineNumber");function Fa(e){!S||e.target.closest(".js-diff-table")||(window.history.replaceState(null,null,"#"),G())}T(Fa,"handleClick");function Va(){if(!oe)return;Je(oe,!1);const e=oe.closest(".js-diff-table");oe=null,e.classList.add("is-selecting"),e.classList.add("is-commenting"),document.addEventListener("mouseup",function(t){e.classList.remove("is-selecting"),e.classList.remove("is-selecting","is-commenting"),Qt&&Qt(),Qt=null,on(e),t.preventDefault()},{once:!0})}T(Va,"beginDrag");function Ba(e){const t=nn(e);!t||!tn(t)||Je(t,!0)}T(Ba,"commentSelectionMouseverToCode");function Ua(e){!tn(e)||Je(e,!0)}T(Ua,"commentSelectionMouseverToLineNumbers");function dr(e){const t=e.target;if(!(t instanceof Element))return;oe&&Va();const n=t.closest(".blob-code, .js-linkable-line-number");if(!!n){if(n.classList.contains("blob-code"))return Ba(n);n.classList.contains("js-linkable-line-number")&&Ua(n)}}T(dr,"handleDragMouseEvent");function mr(e){e.addEventListener("mouseenter",dr,{capture:!0})}T(mr,"addCommentSelectionEvents");function on(e){Zt=!1,e.removeEventListener("mouseenter",dr,{capture:!0}),setTimeout(()=>{document.addEventListener("click",Fa,{once:!0})},0)}T(on,"removeCommentSelectionEvents"),b("mousedown",".js-add-line-comment",function(e){if(!(e instanceof MouseEvent)||e.button!==0)return;const t=e.target.parentElement;if(!t||!fr(e.target))return;const n=nn(t);if(!n)return;const o=e.target.closest(".js-diff-table");mr(o),oe=n,Zt=!0,e.target.addEventListener("mouseup",function(){on(o),oe=null,Zt=!1},{once:!0}),S&&S.lineCount>1&&e.preventDefault()}),b("mousedown",".js-linkable-line-number",function(e){if(!(e instanceof MouseEvent)||e.button!==0)return;const t=e.target;if(!(t instanceof Element))return;const n=t.closest(".js-diff-table");n.classList.add("is-selecting"),mr(n),document.addEventListener("mouseup",function(){t.closest(".js-diff-table").classList.remove("is-selecting"),on(n)},{once:!0}),Je(t,e instanceof MouseEvent&&e.shiftKey),e.preventDefault()});function Xa(){if(!S)return;for(const i of S.elements)i.classList.add("selected-line");const e=[],t=[],n=[],o=[];for(const i of S.rows()){const[s,a,c,l]=i.children;e.push(s),t.push(a),n.push(c),o.push(l)}function r(i){for(const[s,a]of i.entries()){if(a.classList.contains("empty-cell"))continue;const c=i[s-1];(!c||!c.classList.contains("selected-line"))&&a.classList.add("selected-line-top");const l=i[s+1];(!l||!l.classList.contains("selected-line"))&&a.classList.add("selected-line-bottom")}}T(r,"doBorder"),r(e),r(t),r(n),r(o);for(const[i,s]of t.entries())o[i].classList.contains("selected-line")||s.classList.add("selected-line-right");for(const[i,s]of n.entries())t[i].classList.contains("selected-line")||s.classList.add("selected-line-left")}T(Xa,"drawBorderForSplit");function za(){if(!S)return;for(const o of S.elements)o.classList.add("selected-line");const e=Array.from(S.rows()),t=e[0];for(const o of t.children)o.classList.add("selected-line-top");const n=e[e.length-1];for(const o of n.children)o.classList.add("selected-line-bottom")}T(za,"drawBorderForUnified");function G(){if(S){for(const c of S.elements)c.classList.remove("selected-line","selected-line-top","selected-line-bottom","selected-line-left","selected-line-right");S=null}const e=Yt(window.location.hash);if(!e)return;const t=e[1],n=e[2],o=e[3],r=e[4]||n,i=e[5]||o;S=new ur(t,n,+o,r,+i);const a=Array.from(S.elements)[0];!a||(a.closest(".js-diff-table").classList.contains("file-diff-split")?Xa():za())}T(G,"showHighlight");function Wa(e,t){const n={starting_diff_position:t.start.side+t.start.lineNumber,ending_diff_position:t.end.side+t.end.lineNumber,line_count:t.lineCount};e.setAttribute("data-hydro-client-context",JSON.stringify(n)),Wo(e)}T(Wa,"sendHydroEvent"),Fe(G),A(".blob-expanded",G),A(".js-diff-progressive-loader",function(e){e.addEventListener("load",G)}),A(".js-diff-entry-loader",function(e){e.addEventListener("load",G)}),b("click",".js-rich-diff.collapsed .js-expandable",function(e){if(!(e.target instanceof Element))return;e.preventDefault(),e.target.closest(".js-rich-diff").classList.remove("collapsed")}),b("click",".js-show-rich-diff",function(e){const t=e.currentTarget.closest(".js-warn-no-visible-changes");if(!t)return;t.classList.add("d-none");const o=t.parentElement.querySelector(".js-no-rich-changes");o&&o.classList.remove("d-none")});var tu=Object.defineProperty,nu=(e,t)=>tu(e,"name",{value:t,configurable:!0});function pr(e,t){const n=e.nextElementSibling;return n instanceof HTMLElement?n.classList.contains(t)?n:pr(n,t):null}nu(pr,"findNextElementSibling")}}});
|
|
//# sourceMappingURL=chunk-frameworks-69f1f2a5.js.map
|