summaryrefslogtreecommitdiff
path: root/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js')
-rw-r--r--assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js b/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js
new file mode 100644
index 0000000..8806261
--- /dev/null
+++ b/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/29434-2774a83323075b9c.js
@@ -0,0 +1,16 @@
+performance.mark("js-parse-end:29434-2774a83323075b9c.js");
+"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["29434"],{89272(){if(void 0!==globalThis.Element&&void 0!==globalThis.Document&&(!("ariaNotify"in Element.prototype)||!("ariaNotify"in Document.prototype))){let e=`${Date.now()}`;try{e=crypto.randomUUID()}catch{}let t=Symbol(),i=`live-region-${e}`;class n{element;message;priority="normal";constructor({element:e,message:t,priority:i="normal"}){this.element=e,this.message=t,this.priority=i}#e(){return this.element.isConnected&&!this.element.closest("[inert]")&&(this.element.ownerDocument.querySelector(CSS.supports("selector(:modal)")?":modal":"dialog[open]")?.contains(this.element)??!0)}async announce(){if(!this.#e())return;let e=this.element.closest("dialog")||this.element.closest("[role='dialog']")||this.element.getRootNode();(!e||e instanceof Document)&&(e=document.body);let n=e.querySelector(i);n||(n=document.createElement(i),e.append(n)),await new Promise(e=>setTimeout(e,250)),n.handleMessage(t,this.message)}}let s=new class{#t=[];#i;enqueue(e){let{priority:t}=e;if("high"===t){let t=this.#t.findLastIndex(e=>"high"===e.priority);this.#t.splice(t+1,0,e)}else this.#t.push(e);this.#i||this.#n()}async #n(){this.#i=this.#t.shift(),this.#i&&(await this.#i.announce(),this.#n())}};class o extends HTMLElement{#s=this.attachShadow({mode:"closed"});connectedCallback(){this.ariaLive="polite",this.ariaAtomic="true",this.style.marginLeft="-1px",this.style.marginTop="-1px",this.style.position="absolute",this.style.width="1px",this.style.height="1px",this.style.overflow="hidden",this.style.clipPath="rect(0 0 0 0)",this.style.overflowWrap="normal"}handleMessage(e=null,i=""){t===e&&(this.#s.textContent==i&&(i+="\xa0"),this.#s.textContent=i)}}customElements.define(i,o),"ariaNotify"in Element.prototype||(Element.prototype.ariaNotify=function(e,{priority:t="normal"}={}){s.enqueue(new n({element:this,message:e,priority:t}))}),"ariaNotify"in Document.prototype||(Document.prototype.ariaNotify=function(e,{priority:t="normal"}={}){s.enqueue(new n({element:this.documentElement,message:e,priority:t}))})}},46493(e,t,i){i.d(t,{Cj:()=>K,iP:()=>J});let n="less",s="equal",o="greater";var l,r,a,h,c,u,d,p,m,f,g,y,w,v,b,E,T,x=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},C=(e,t,i)=>(x(e,t,"read from private field"),i?i.call(e):t.get(e)),k=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},M=(e,t,i,n)=>(x(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),S=(e,t,i)=>(x(e,t,"access private method"),i);class W{constructor({compareFn:e}){k(this,a),k(this,c),k(this,l,void 0),k(this,r,void 0),M(this,l,e),M(this,r,[])}insert(e){C(this,r).push(e),S(this,c,u).call(this)}pop(){let e=C(this,r)[0];return C(this,r)[C(this,r).length-1]&&(C(this,r)[0]=C(this,r)[C(this,r).length-1],C(this,r).pop()),S(this,a,h).call(this),e}peek(){return C(this,r)[0]}delete(e){let t=C(this,r).indexOf(e);-1!==t&&(N(C(this,r),t,C(this,r).length-1),C(this,r).pop(),S(this,a,h).call(this))}clear(){M(this,r,[])}get size(){return C(this,r).length}}function q(e){return Math.floor((e-1)/2)}function N(e,t,i){let n=e[t];e[t]=e[i],e[i]=n}l=new WeakMap,r=new WeakMap,a=new WeakSet,h=function(){let e=0;for(;2*e+1<C(this,r).length;){var t,i;let s=2*e+1;if(2*e+2<C(this,r).length&&C(this,l).call(this,(t=C(this,r),t[2*e+2]),(i=C(this,r),i[2*e+1]))===n&&(s=2*e+2),C(this,l).call(this,C(this,r)[e],C(this,r)[s])===n)break;N(C(this,r),e,s),e=s}},c=new WeakSet,u=function(){var e;let t=C(this,r).length-1;for(;t>0&&C(this,l).call(this,C(this,r)[t],(e=C(this,r),e[q(t)]))===n;)N(C(this,r),t,q(t)),t=q(t)};var P=Object.defineProperty,D=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},_=(e,t,i)=>(D(e,t,"read from private field"),i?i.call(e):t.get(e)),A=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},R=(e,t,i,n)=>(D(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);class L{constructor(){((e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?P(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i})(this,d,"Deferred"),A(this,p,void 0),A(this,m,void 0),A(this,f,void 0),R(this,p,new Promise((e,t)=>{R(this,m,e),R(this,f,t)}))}then(e,t){return Promise.prototype.then.apply(_(this,p),[e,t])}catch(e){return Promise.prototype.catch.apply(_(this,p),[e])}finally(e){return Promise.prototype.finally.apply(_(this,p),[e])}resolve(e){_(this,m).call(this,e)}reject(e){_(this,f).call(this,e)}getPromise(){return _(this,p)}}d=Symbol.toStringTag,p=new WeakMap,m=new WeakMap,f=new WeakMap;var I=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},$=(e,t,i)=>(I(e,t,"read from private field"),i?i.call(e):t.get(e)),F=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},U=(e,t,i,n)=>(I(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),j=(e,t,i)=>(I(e,t,"access private method"),i);class H extends HTMLElement{constructor(){if(super(),F(this,v),F(this,E),F(this,g,void 0),F(this,y,void 0),F(this,w,void 0),!this.shadowRoot){const e=(B||((B=document.createElement("template")).innerHTML=O),B);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}U(this,g,!1),U(this,w,null),U(this,y,new W({compareFn:z}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:i,politeness:n="polite"}=t,s=Date.now(),o=new L,l={deferred:o,politeness:n,contents:e,scheduled:void 0!==i?s+i:s};return $(this,y).insert(l),j(this,v,b).call(this),{...o.getPromise(),cancel:()=>{$(this,y).delete(l),o.resolve()}}}announceFromElement(e,t){var i;let n,s=(n="",(i=e).hasAttribute("aria-label")?n=i.getAttribute("aria-label"):i.innerText?n=i.innerText:i.textContent&&(n=i.textContent),n?n.trim():"");return""!==s?this.announce(s,t):{...Promise.resolve(),cancel:G}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==$(this,w)&&(clearTimeout($(this,w)),U(this,w,null)),$(this,y).clear()}}g=new WeakMap,y=new WeakMap,w=new WeakMap,v=new WeakSet,b=function(){if($(this,g))return;let e=$(this,y).peek();if(!e)return;null!==$(this,w)&&(clearTimeout($(this,w)),U(this,w,null));let t=Date.now();if(e.scheduled<=t){(e=$(this,y).pop())&&j(this,E,T).call(this,e),j(this,v,b).call(this);return}let i=e.scheduled-t;U(this,w,window.setTimeout(()=>{U(this,w,null),j(this,v,b).call(this)},i))},E=new WeakSet,T=function(e){U(this,g,!0);let{contents:t,deferred:i,politeness:n}=e,s=this.shadowRoot?.getElementById(n);if(!s)throw U(this,g,!1),Error(`Unable to find container for message. Expected a container with id="${n}"`);s.textContent===t?s.textContent=`${t}\xa0`:s.textContent=t,null!==$(this,w)&&clearTimeout($(this,w)),i.resolve(),this.delay>0?U(this,w,window.setTimeout(()=>{U(this,w,null),U(this,g,!1),j(this,v,b).call(this)},this.delay)):(U(this,w,null),U(this,g,!1),j(this,v,b).call(this))};let B=null,O=`
+<style>
+:host {
+ clip-path: inset(50%);
+ height: 1px;
+ overflow: hidden;
+ position: absolute;
+ white-space: nowrap;
+ width: 1px;
+}
+</style>
+<div id="polite" aria-live="polite" aria-atomic="true"></div>
+<div id="assertive" aria-live="assertive" aria-atomic="true"></div>
+`;function z(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?s:e.scheduled<t.scheduled?n:o:"assertive"===e.politeness&&"assertive"!==t.politeness?n:"assertive"!==e.politeness&&"assertive"===t.politeness?o:s}function G(){}function J(e,t={}){let i=Q(t.from);if(!i){i=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(i):V(t.from).appendChild(i);let n=!1,s=()=>{n=!0};return{...Y(X).then(()=>{if(!n){let n=i.announce(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announce(e,t)}function K(e,t={}){let i=Q(t.from);if(!i){i=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(i):V(t.from).appendChild(i);let n=!1,s=()=>{n=!0};return{...Y(X).then(()=>{if(!n){let n=i.announceFromElement(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announceFromElement(e,t)}function Q(e){let t=null;return null!==(t=e?function(e){let t=e.closest("dialog"),i=e;for(;(i=i.parentElement)&&(!t||t.contains(i));)for(let e of i.childNodes)if(e instanceof H)return e;return null}(e):null)||null!==(t=V(e).querySelector("live-region"))?t:null}function V(e){let t=document.body;if(e){let i=e.closest("dialog");i&&(t=i)}return t}customElements.get("live-region")||customElements.define("live-region",H);let X=150;function Y(e){return new Promise(t=>{setTimeout(t,e)})}}}]);
+//# sourceMappingURL=29434-2774a83323075b9c-c48b5492297cbe8b.js.map \ No newline at end of file