import{$ as e,B as t,Q as n,U as r,V as i,Z as a,et as o,rt as s}from"./client.js";var c=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],l=[`difference`,`intersection`,`symmetricDifference`,`union`],u=!1,d=class t extends Set{#e=new Map;#t=o(0);#n=o(0);#r=r||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#n.v=super.size}u||this.#a()}#i(t){return r===this.#r?o(t):e(t)}#a(){u=!0;var e=t.prototype,n=Set.prototype;for(let t of c)e[t]=function(...e){return i(this.#t),n[t].apply(this,e)};for(let r of l)e[r]=function(...e){return i(this.#t),new t(n[r].apply(this,e))}}has(e){var t=super.has(e),n=this.#e,r=n.get(e);if(r===void 0){if(!t)return i(this.#t),!1;r=this.#i(!0),n.set(e,r)}return i(r),t}add(e){return super.has(e)||(super.add(e),n(this.#n,super.size),a(this.#t)),this}delete(e){var t=super.delete(e),r=this.#e,i=r.get(e);return i!==void 0&&(r.delete(e),n(i,!1)),t&&(n(this.#n,super.size),a(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())n(t,!1);e.clear(),n(this.#n,0),a(this.#t)}}keys(){return this.values()}values(){return i(this.#t),super.values()}entries(){return i(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return i(this.#n)}},f=class extends Map{#e=new Map;#t=o(0);#n=o(0);#r=r||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(t){return r===this.#r?o(t):e(t)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return i(this.#t),!1;return i(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{i(this.#t);return}return i(n),super.get(e)}set(e,t){var r=this.#e,i=r.get(e),o=super.get(e),s=super.set(e,t),c=this.#t;if(i===void 0)i=this.#i(0),r.set(e,i),n(this.#n,super.size),a(c);else if(o!==t){a(i);var l=c.reactions===null?null:new Set(c.reactions);(l===null||!i.reactions?.every(e=>l.has(e)))&&a(c)}return s}delete(e){var t=this.#e,r=t.get(e),i=super.delete(e);return r!==void 0&&(t.delete(e),n(r,-1)),i&&(n(this.#n,super.size),a(this.#t)),i}clear(){if(super.size!==0){super.clear();var e=this.#e;n(this.#n,0);for(var t of e.values())n(t,-1);a(this.#t),e.clear()}}#a(){i(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)i(n)}keys(){return i(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return i(this.#n),super.size}},p=class{#e;#t;constructor(e,t){this.#e=e,this.#t=s(t)}get current(){return this.#t(),this.#e()}},m=/\(.+\)/,h=new Set([`all`,`print`,`screen`,`and`,`or`,`not`,`only`]),g=class extends p{constructor(e,n){let r=m.test(e)||e.split(/[\s,]+/).some(e=>h.has(e.trim()))?e:`(${e})`,i=window.matchMedia(r);super(()=>i.matches,e=>t(i,`change`,e))}};export{f as n,d as r,g as t};
//# sourceMappingURL=index-client.js.map