var Kl=Object.create;var Ds=Object.defineProperty;var Ul=Object.getOwnPropertyDescriptor;var Bl=Object.getOwnPropertyNames;var Hl=Object.getPrototypeOf,Yl=Object.prototype.hasOwnProperty;var Wl=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var Gl=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Bl(t))!Yl.call(i,s)&&s!==e&&Ds(i,s,{get:()=>t[s],enumerable:!(r=Ul(t,s))||r.enumerable});return i};var Xl=(i,t,e)=>(e=i!=null?Kl(Hl(i)):{},Gl(t||!i||!i.__esModule?Ds(e,"default",{value:i,enumerable:!0}):e,i));var nl=Wl((Hc,Qi)=>{"use strict";var Mt=typeof Reflect=="object"?Reflect:null,Xo=Mt&&typeof Mt.apply=="function"?Mt.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},nr;Mt&&typeof Mt.ownKeys=="function"?nr=Mt.ownKeys:Object.getOwnPropertySymbols?nr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:nr=function(t){return Object.getOwnPropertyNames(t)};function ra(i){console&&console.warn&&console.warn(i)}var Jo=Number.isNaN||function(t){return t!==t};function x(){x.init.call(this)}Qi.exports=x;Qi.exports.once=oa;x.EventEmitter=x;x.prototype._events=void 0;x.prototype._eventsCount=0;x.prototype._maxListeners=void 0;var Qo=10;function or(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(x,"defaultMaxListeners",{enumerable:!0,get:function(){return Qo},set:function(i){if(typeof i!="number"||i<0||Jo(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");Qo=i}});x.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};x.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Jo(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Zo(i){return i._maxListeners===void 0?x.defaultMaxListeners:i._maxListeners}x.prototype.getMaxListeners=function(){return Zo(this)};x.prototype.emit=function(t){for(var e=[],r=1;r0&&(o=e[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var h=n[t];if(h===void 0)return!1;if(typeof h=="function")Xo(h,this,e);else for(var u=h.length,c=sl(h,u),r=0;r0&&o.length>s&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=i,l.type=t,l.count=o.length,ra(l)}return i}x.prototype.addListener=function(t,e){return tl(this,t,e,!1)};x.prototype.on=x.prototype.addListener;x.prototype.prependListener=function(t,e){return tl(this,t,e,!0)};function ia(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function el(i,t,e){var r={fired:!1,wrapFn:void 0,target:i,type:t,listener:e},s=ia.bind(r);return s.listener=e,r.wrapFn=s,s}x.prototype.once=function(t,e){return or(e),this.on(t,el(this,t,e)),this};x.prototype.prependOnceListener=function(t,e){return or(e),this.prependListener(t,el(this,t,e)),this};x.prototype.removeListener=function(t,e){var r,s,n,o,l;if(or(e),s=this._events,s===void 0)return this;if(r=s[t],r===void 0)return this;if(r===e||r.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete s[t],s.removeListener&&this.emit("removeListener",t,r.listener||e));else if(typeof r!="function"){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){l=r[o].listener,n=o;break}if(n<0)return this;n===0?r.shift():sa(r,n),r.length===1&&(s[t]=r[0]),s.removeListener!==void 0&&this.emit("removeListener",t,l||e)}return this};x.prototype.off=x.prototype.removeListener;x.prototype.removeAllListeners=function(t){var e,r,s;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var n=Object.keys(r),o;for(s=0;s=0;s--)this.removeListener(t,e[s]);return this};function rl(i,t,e){var r=i._events;if(r===void 0)return[];var s=r[t];return s===void 0?[]:typeof s=="function"?e?[s.listener||s]:[s]:e?na(s):sl(s,s.length)}x.prototype.listeners=function(t){return rl(this,t,!0)};x.prototype.rawListeners=function(t){return rl(this,t,!1)};x.listenerCount=function(i,t){return typeof i.listenerCount=="function"?i.listenerCount(t):il.call(i,t)};x.prototype.listenerCount=il;function il(i){var t=this._events;if(t!==void 0){var e=t[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}x.prototype.eventNames=function(){return this._eventsCount>0?nr(this._events):[]};function sl(i,t){for(var e=new Array(t),r=0;r=0?i.replace(Ql,function(t){return t.charAt(1).toUpperCase()}):i}function Te(i,t,e){if(!i)return;let r=Object.getOwnPropertyDescriptor(i,t);return r||i==e?r||void 0:Te(Reflect.getPrototypeOf(i),t,e)}var Rs=function(i,t,e){let r,s,n;for(;(r=e)&&(e=e.next);)(s=e.listener)&&(e.path&&s[e.path]?n=t?s[e.path].apply(s,t):s[e.path]():n=t?s.apply(e,t):s.call(e)),e.times&&--e.times<=0&&(r.next=e.next,e.listener=null)};function A(i,t,e,r){var s;let n,o,l;return n=i[we]||(i[we]={}),o=n[t]||(n[t]={}),l=o.tail||(o.tail=o.next={}),l.listener=e,l.path=r,o.tail=l.next={},l}function D(i,t,e){let r=A(i,t,e);return r.times=1,r}function bt(i,t,e,r){let s,n,o=i[we];if(!!o&&(s=o[t])){for(;(n=s)&&(s=s.next);)if(s==e||s.listener==e){n.next=s.next,s.listener=null;break}}}function $(i,t,e){let r;(r=i[we])&&(r[t]&&Rs(t,e,r[t]),r.all&&Rs(t,[t,e],r.all))}var jt=class{emit(t,...e){return $(this,t,e)}on(t,...e){return A(this,t,...e)}once(t,...e){return D(this,t,...e)}un(t,...e){return bt(this,t,...e)}};function Jl(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var $s=Symbol.for("#__init__");var js=Symbol.for("#schedule"),wr=Symbol.for("#frames"),Ee=Symbol.for("#interval"),Tt=Symbol.for("#stage"),Et=Symbol.for("#scheduled"),Ne=Symbol.for("#version"),Zl=Symbol.for("#fps"),qs=Symbol.for("#ticker"),th=globalThis.requestAnimationFrame||function(i){return globalThis.setTimeout(i,1e3/60)};var Pa=1/60,Tr=class{constructor(t=null){this[$s](t)}[$s](t=null){var e;this.owner=t&&(e=t.owner)!==void 0?e:null,this.target=t&&(e=t.target)!==void 0?e:null,this.active=t&&(e=t.active)!==void 0?e:!1,this.value=t&&(e=t.value)!==void 0?e:void 0,this.skip=t&&(e=t.skip)!==void 0?e:0,this.last=t&&(e=t.last)!==void 0?e:0}tick(t,e){return this.last=this.owner[wr],this.target.tick(this,e),1}update(t,e){let r=this.active,s=t.value;return this.value!=s&&(this.deactivate(),this.value=s),(this.value||r||e)&&this.activate(),this}queue(){this.owner.add(this)}activate(){return this.value===!0?this.owner.on("commit",this):this.value===!1||typeof this.value=="number"&&(this.value/16.666666666666668<=2?this.owner.on("raf",this):this[Ee]=globalThis.setInterval(this.queue.bind(this),this.value)),this.active=!0,this}deactivate(){return this.value===!0&&this.owner.un("commit",this),this.owner.un("raf",this),this[Ee]&&(globalThis.clearInterval(this[Ee]),this[Ee]=null),this.active=!1,this}},Er=class{constructor(){var t=this;this.id=Symbol(),this.queue=[],this.stage=-1,this[Tt]=-1,this[wr]=0,this[Et]=!1,this[Ne]=0,this.listeners={},this.intervals={},t.commit=function(){return t.add("commit"),t},this[Zl]=0,t.$promise=null,t.$resolve=null,this[qs]=function(e){return t[Et]=!1,t.tick(e)}}touch(){return this[Ne]++}get version(){return this[Ne]}add(t,e){return(e||this.queue.indexOf(t)==-1)&&this.queue.push(t),this[Et]||this[js](),this}get committingΦ(){return this.queue.indexOf("commit")>=0}get syncingΦ(){return this[Tt]==1}listen(t,e){let r=this.listeners[t],s=!r;return r||(r=this.listeners[t]=new Set),r.add(e),t=="raf"&&s&&this.add("raf"),this}unlisten(t,e){var r;let s=this.listeners[t];return s&&s.delete(e),t=="raf"&&s&&s.size==0&&(r=this.listeners.raf,delete this.listeners.raf),this}on(t,e){return this.listen(t,e)}un(t,e){return this.unlisten(t,e)}get promise(){var t=this;return t.$promise||(t.$promise=new Promise(function(e){return t.$resolve=e}))}tick(t){var e=this;let r=this.queue,s=this[wr]++;if(this.ts||(this.ts=t),this.dt=t-this.ts,this.ts=t,this.queue=[],this[Tt]=1,this[Ne]++,r.length)for(let n=0,o=Jl(r),l=o.length;n0&&setTimeout(function(){return r.decr(t)},e),s[t]=Math.max(n,0)+1}decr(t){let e=this.stacks,r=e[t]||0;return r==1&&this.remove(t),e[t]=Math.max(r,1)-1}reconcile(t,e){let r=this[Ks],s=this[Us],n=!0;if(!r)r=this[Ks]=[t],s=this[Us]=[e||""],this.toString=this.valueOf=this[Vs];else{let o=r.indexOf(t),l=e||"";o==-1?(r.push(t),s.push(l)):s[o]!=l?s[o]=l:n=!1}n&&(this[Bs]=" "+s.join(" "),this.sync())}valueOf(){return this.string}toString(){return this.string}[Vs](){return this.string+(this[Bs]||"")}sync(){return this.dom.flagSync$()}get stacks(){return this[Hs]||(this[Hs]={})}};var Ce=Symbol.for("#__init__"),Ys=Symbol.for("#__initor__"),Ws=Symbol.for("#__inited__"),Nr=Symbol.for("#getRenderContext"),nh=Symbol.for("#getDynamicContext"),Gs=Symbol(),L={context:null},Cr=class{constructor(t=null){this[Ce](t)}[Ce](t=null){var e;this.stack=t&&(e=t.stack)!==void 0?e:[]}push(t){return this.stack.push(t)}pop(t){return this.stack.pop()}},Vt=new Cr,Y=class extends Map{static[Ce](){return this.prototype[Ys]=Gs,this}constructor(t,e=null){super(),this._=t,this.sym=e,this[Ys]===Gs&&this[Ws]&&this[Ws]()}pop(){return L.context=null}[Nr](t){let e=this.get(t);return e||this.set(t,e=new Y(this._,t)),L.context=e}[nh](t,e){return this[Nr](t)[Nr](e)}run(t){return this.value=t,L.context==this&&(L.context=null),this.get(t)}cache(t){return this.set(this.value,t),t}};Y[Ce]();function Xs(i,t=Symbol(),e=i){return L.context=i[t]||(i[t]=new Y(e,t))}function Va(){let i=L.context,t=i||new Y(null);return globalThis.DEBUG_IMBA&&!i&&Vt.stack.length>0&&console.warn("detected unmemoized nodes in",Vt.stack.slice(0),"see https://imba.io",t),i&&(L.context=null),t}function Ht(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function oh(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Ut=Symbol.for("#parent"),Qs=Symbol.for("#closestNode"),lh=Symbol.for("#parentNode"),hh=Symbol.for("#context"),ke=Symbol.for("#__init__"),mn=Symbol.for("##inited"),Or=Symbol.for("#getRenderContext"),uh=Symbol.for("#getDynamicContext"),Js=Symbol.for("#insertChild"),Bt=Symbol.for("#appendChild"),Pr=Symbol.for("#replaceChild"),Zs=Symbol.for("#removeChild"),et=Symbol.for("#insertInto"),tn=Symbol.for("#insertIntoDeopt"),Kt=Symbol.for("#removeFrom"),en=Symbol.for("#removeFromDeopt"),Ct=Symbol.for("#replaceWith"),rn=Symbol.for("#replaceWithDeopt"),kr=Symbol.for("#placeholderNode"),ah=Symbol.for("#attachToParent"),fh=Symbol.for("#detachFromParent"),ch=Symbol.for("#placeChild"),dh=Symbol.for("#beforeReconcile"),ph=Symbol.for("#afterReconcile"),mh=Symbol.for("#afterVisit"),gh=Symbol.for("#visitContext"),sn=Symbol.for("#__initor__"),nn=Symbol.for("#__inited__"),gn=Symbol.for("##parent"),Lr=Symbol.for("##up"),on=Symbol.for("##context"),_t=Symbol.for("#domNode"),Oe=Symbol.for("##placeholderNode"),ln=Symbol.for("#domDeopt"),Pe=Symbol.for("##visitContext"),yn=Symbol.for("#isRichElement"),hn=Symbol.for("#src"),Ot=Symbol.for("#htmlNodeName"),yh=Symbol.for("#getSlot"),un=Symbol.for("#ImbaElement"),an=Symbol.for("#cssns"),bh=Symbol.for("#cssid"),fn=Symbol(),{Event:W,UIEvent:Wa,MouseEvent:bn,PointerEvent:_n,KeyboardEvent:vn,CustomEvent:P,Node:j,Comment:Fe,Text:zr,Element:_,HTMLElement:Vr,HTMLHtmlElement:Ga,HTMLSelectElement:Sn,HTMLInputElement:xn,HTMLTextAreaElement:wn,HTMLButtonElement:Tn,HTMLOptionElement:En,HTMLScriptElement:Xa,SVGElement:Nn,DocumentFragment:Qa,ShadowRoot:Ja,Document:Yt,Window:Za,customElements:tf}=globalThis.window,cn={};function Cn(i,t,e){if(!i)return e[t]=null;if(e[t]!==void 0)return e[t];let r=Object.getOwnPropertyDescriptor(i,t);return r!==void 0||i==Nn?e[t]=r||null:Cn(Reflect.getPrototypeOf(i),t,e)}var Ir={},Fr={},Mr={},_h={};function Me(){return globalThis.document}function ef(){return!0}var vh={get(i,t){let e=i,r;for(;e&&r==null;)(e=e[Ut])&&(r=e[t]);return r},set(i,t,e){let r=i,s;for(;r&&s==null;){if(Te(r,t,_))return r[t]=e,!0;r=r[Ut]}return!0}},Dr=class{get flags(){return this.documentElement.flags}};Ht(Yt.prototype,Dr.prototype);var Rr=class{get[Ut](){return this[gn]||this.parentNode||this[Lr]}get[Qs](){return this}get[lh](){return this[Ut][Qs]}get[hh](){return this[on]||(this[on]=new Proxy(this,vh))}[ke](){return this}[mn](){return this}[Or](t){return Xs(this,t)}[uh](t,e){return this[Or](t)[Or](e)}[Js](t,e){return t[et](this,e)}[Bt](t){return t[et](this,null)}[Pr](t,e){let r=this[Js](t,e);return this[Zs](e),r}[Zs](t){return t[Kt](this)}[et](t,e=null){return e?t.insertBefore(this,e):t.appendChild(this),this}[tn](t,e){return e?t.insertBefore(this[_t]||this,e):t.appendChild(this[_t]||this),this}[Kt](t){return t.removeChild(this)}[en](t){return t.removeChild(this[_t]||this)}[Ct](t,e){return e[Pr](t,this)}[rn](t,e){return e[Pr](t,this[_t]||this)}get[kr](){return this[Oe]||(this[Oe]=globalThis.document.createComment("placeholder"))}set[kr](t){let e=this[Oe];this[Oe]=t,e&&e!=t&&e.parentNode&&e[Ct](t)}[ah](){let t=this[_t],e=t&&t.parentNode;return t&&e&&t!=this&&(this[_t]=null,this[et](e,t),t[Kt](e)),this}[fh](){this[ln]!=!0&&(this[ln]=!0,!0)&&(this[Ct]=this[rn],this[Kt]=this[en],this[et]=this[tn],this[Lr]||(this[Lr]=this[Ut]));let t=this[kr];return this.parentNode&&t!=this&&(t[et](this.parentNode,this),this[Kt](this.parentNode)),this[_t]=t,this}[ch](t,e,r){let s=typeof t;if(s==="undefined"||t===null){if(r&&r instanceof Fe)return r;let n=globalThis.document.createComment("");return r?r[Ct](n,this):n[et](this,null)}if(t===r)return t;if(s!=="object"){let n,o=t;return e&128&&e&256,r?r instanceof zr?(r.textContent=o,r):(n=globalThis.document.createTextNode(o),r[Ct](n,this),n):(this.appendChild(n=globalThis.document.createTextNode(o)),n)}else{if(globalThis.DEBUG_IMBA&&!t[et])throw console.warn("Tried to insert",t,"into",this),new TypeError("Only DOM Nodes can be inserted into DOM");return r?r[Ct](t,this):t[et](this,null)}}};Ht(j.prototype,Rr.prototype);var Ar=class{log(...t){return console.log(...t)}emit(t,e,r={bubbles:!0,cancelable:!0}){e!=null&&(r.detail=e);let s=new P(t,r),n=this.dispatchEvent(s);return s}text$(t){return this.textContent=t,this}[dh](){return this}[ph](){return this}[mh](){this.render&&this.render(),this[Pe]&&(this[Pe]=null)}get[gh](){return this[Pe]||(this[Pe]={})}get flags(){return this.$flags||(this.$flags=new Nt(this),this.flag$==_.prototype.flag$&&(this.flags$ext=this.className),this.flagDeopt$()),this.$flags}flag$(t){let e=this.flags$ns;this.className=e?e+(this.flags$ext=t):this.flags$ext=t}flagDeopt$(){var t=this;this.flag$=this.flagExt$,t.flagSelf$=function(e){return t.flagSync$(t.flags$own=e)}}flagExt$(t){return this.flagSync$(this.flags$ext=t)}flagSelf$(t){return this.flagDeopt$(),this.flagSelf$(t)}flagSync$(){return this.className=(this.flags$ns||"")+(this.flags$ext||"")+" "+(this.flags$own||"")+" "+(this.$flags||"")}set$(t,e){let r=Te(this,t,_);!r||!r.set?this.setAttribute(t,e):this[t]=e}get richValue(){return this.value}set richValue(t){this.value=t}};Ht(_.prototype,Ar.prototype);_.prototype.setns$=_.prototype.setAttributeNS;_.prototype[yn]=!0;function rf(i,t,e,r){let s=globalThis.document.createElement(i);return e&&(s.className=e),r!==null&&s.text$(r),t&&t[Bt]&&t[Bt](s),s}var $r=class{set$(t,e){var r;let s=cn[r=this.nodeName]||(cn[r]={}),n=Cn(this,t,s);!n||!n.set?this.setAttribute(t,e):this[t]=e}flag$(t){let e=this.flags$ns;this.setAttribute("class",e?e+(this.flags$ext=t):this.flags$ext=t)}flagSelf$(t){var e=this;return e.flag$=function(r){return e.flagSync$(e.flags$ext=r)},e.flagSelf$=function(r){return e.flagSync$(e.flags$own=r)},e.flagSelf$(t)}flagSync$(){return this.setAttribute("class",(this.flags$ns||"")+(this.flags$ext||"")+" "+(this.flags$own||"")+" "+(this.$flags||""))}};Ht(Nn.prototype,$r.prototype);var jr=class{set src(t){if(this[hn]!=t&&(this[hn]=t,!0)){if(t&&t.adoptNode)t.adoptNode(this);else if(t&&t.type=="svg"){if(t.attributes)for(let e=t.attributes,r=0,s=Object.keys(e),n=s.length,o,l;r-1||dn.indexOf("CriOS")>=0||dn.indexOf("FxiOS")>=0,Ie=!xh,pn=new Map,qr=class extends Vr{connectedCallback(){return Ie?this.parentNode.removeChild(this):this.parentNode.connectedCallback()}disconnectedCallback(){if(!Ie)return this.parentNode.disconnectedCallback()}};window.customElements.define("i-hook",qr);function wh(i,t){let e=pn.get(t);if(!e){e={};let r=t.prototype,s=[r];for(;(r=r&&Object.getPrototypeOf(r))&&r.constructor!=i.constructor;)s.unshift(r);for(let n=0,o=oh(s),l=o.length;n=0&&this.childNodes.splice(r,0,t),t}[In](t){this.parentNode&&this.parentNode[In](t);let e=this.childNodes.indexOf(t);e>=0&&this.childNodes.splice(e,1)}[Fn](t,e){this.parentNode&&this.parentNode[Fn](t,e);let r=this.childNodes.indexOf(e);return this.childNodes[r]=t,t}[rt](t,e){let r=this.parentNode;if(this.parentNode!=t&&(this.parentNode=t,!0)){this[K]&&(e=this[K][rt](t,e));for(let s=0,n=Ur(this.childNodes),o=n.length;s=0&&this.childNodes.splice(r,0,t)}else this.childNodes.push(t);return t}[Re](t){for(let e=0,r=Ur(this.childNodes),s=r.length;et)for(;e>t;)r[jh](s[--e]);else if(t>e)for(;t>e;)r[qh](s[e++],n);this.length=t}[qe](t,e){this.parentNode=t,this[ut]&&this[ut][qe](t,e),e=this[ut];for(let r=0,s=Mh(this.childNodes),n=s.length;r0;)this.childNodes[--e][Wr](t);this[ut]&&t.removeChild(this[ut]),this.parentNode=null}};ze[Bn]();function bf(i,t){return new ze(i,t)}function Hn(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Gr=Symbol.for("#appendChild"),Ve=Symbol.for("#insertChild"),zh=Symbol.for("#replaceWith"),Ke=Symbol.for("#insertInto"),Xr=Symbol.for("#removeFrom"),Vh=Symbol.for("#afterVisit"),Yn=Symbol.for("#__initor__"),Wn=Symbol.for("#__inited__"),Jn=Symbol.for("#__init__"),Ue=Symbol.for("#domFlags"),Gn=Symbol.for("##parent"),at=Symbol.for("#end"),Xn=Symbol.for("#removeChild"),Qn=Symbol(),Be=class extends ht{static[Jn](){return this.prototype[Yn]=Qn,this}constructor(t,e){super(...arguments),this[Ue]=t,this[Gn]=e,this.changes=new Map,this.dirty=!1,this.array=this.childNodes,this.$=new Y(this,Symbol()),t&256||(this[at]=ot("map")),e&&e[Gr](this),this[Yn]===Qn&&this[Wn]&&this[Wn]()}[Gr](t){if(this.parentNode)return this.parentNode[Ve](t,this[at])}hasChildNodes(){return this.childNodes.length!=0}push(t,e){if(!(this[Ue]&1)){this.array.push(t),this[Gr](t);return}let r=this.array[e];if(r!==t){this.dirty=!0;let s=this.array.indexOf(t),n=this.changes.get(t);s===-1?(this.array.splice(e,0,t),this.insertChild(t,e,s)):s===e+1?(r&&this.changes.set(r,-1),this.array.splice(e,1)):(s>=0&&this.array.splice(s,1),this.array.splice(e,0,t),this.moveChild(t,e,s)),n==-1&&this.changes.delete(t)}}insertChild(t,e,r){let s=this.parentNode;if(!!s)if(e>0){let n=this.array[e-1];s[Ve](t,n.nextSibling)}else s[Ve](t,this.childNodes[e+1]||this[at])}moveChild(t,e,r){return this.insertChild(t,e,r)}removeChild(t,e){t.parentNode&&t[Xr](t.parentNode)}[Ve](t,e){}[zh](t,e){let r=t[Ke](e,this[at]);return this[Xr](e),r}[Ke](t,e){this[Gn]=t;let r=this.parentNode;if(t!=r){this.parentNode=t;for(let s=0,n=Hn(this.array),o=n.length;st)for(;e.array.length>t;){let r=e.array.pop();e.removeChild(r)}}};Be[Jn]();function wf(i,t){return new Be(i,t)}var kt=Symbol.for("#__init__"),Zn=Symbol.for("#__initor__"),to=Symbol.for("#__inited__"),Kh=Symbol.for("##inited"),Uh=Symbol.for("#afterVisit"),Bh=Symbol.for("#beforeReconcile"),Hh=Symbol.for("#afterReconcile"),eo=Symbol.for("#__hooks__"),Pt=Symbol.for("#autorender"),He=Symbol.for("##visitContext"),ro=Symbol(),io=new class{constructor(i=null){this[kt](i)}[kt](i=null){var t;this.items=i&&(t=i.items)!==void 0?t:[],this.current=i&&(t=i.current)!==void 0?t:null,this.lastQueued=i&&(t=i.lastQueued)!==void 0?t:null,this.tests=i&&(t=i.tests)!==void 0?t:0}flush(){let i=null;for(;i=this.items.shift();){if(!i.parentNode||i.hydratedΦ)continue;let t=this.current;this.current=i,i.__F|=1024,i.connectedCallback(),this.current=t}}queue(i){var t=this;let e=this.items.length,r=0,s=this.lastQueued;this.lastQueued=i;let n=j.DOCUMENT_POSITION_PRECEDING,o=j.DOCUMENT_POSITION_FOLLOWING;if(e){let l=this.items.indexOf(s),h=l,u=function(a,p){return t.tests++,a.compareDocumentPosition(p)};(l==-1||s.nodeName!=i.nodeName)&&(h=l=0);let c=t.items[h];for(;c&&u(c,i)&o;)c=t.items[++h];if(h!=l)c?t.items.splice(h,0,i):t.items.push(i);else{for(;c&&u(c,i)&n;)c=t.items[--h];h!=l&&(c?t.items.splice(h+1,0,i):t.items.unshift(i))}}else t.items.push(i),t.current||globalThis.queueMicrotask(t.flush.bind(t))}};function kf(){return io.flush()}var Lt=class extends Vr{static[kt](){return this.prototype[Zn]=ro,this}constructor(){super(),this.flags$ns&&(this.flag$=this.flagExt$),this.setup$(),this.build(),this[Zn]===ro&&this[to]&&this[to]()}setup$(){return this.__slots={},this.__F=0}[kt](){return this.__F|=3,this}[Kh](){if(this[eo])return this[eo].inited(this)}flag$(t){this.className=this.flags$ext=t}build(){return this}awaken(){return this}mount(){return this}unmount(){return this}rendered(){return this}dehydrate(){return this}hydrate(){return this.autoschedule=!0,this}tick(){return this.commit()}visit(){return this.commit()}commit(){return this.renderΦ?(this.__F|=256,this.render&&this.render(),this.rendered(),this.__F=(this.__F|512)&-257&-8193):(this.__F|=8192,this)}get autoschedule(){return(this.__F&64)!=0}set autoschedule(t){t?this.__F|=64:this.__F&=-65}set autorender(t){let e=this[Pt]||(this[Pt]={});e.value=t,this.mountedΦ&&k.schedule(this,e)}get renderΦ(){return!this.suspendedΦ}get mountingΦ(){return(this.__F&16)!=0}get mountedΦ(){return(this.__F&32)!=0}get awakenedΦ(){return(this.__F&8)!=0}get renderedΦ(){return(this.__F&512)!=0}get suspendedΦ(){return(this.__F&4096)!=0}get renderingΦ(){return(this.__F&256)!=0}get scheduledΦ(){return(this.__F&128)!=0}get hydratedΦ(){return(this.__F&2)!=0}get ssrΦ(){return(this.__F&1024)!=0}schedule(){return k.on("commit",this),this.__F|=128,this}unschedule(){return k.un("commit",this),this.__F&=-129,this}async suspend(t=null){let e=this.flags.incr("@suspended");return this.__F|=4096,t instanceof Function&&(await t(),this.unsuspend()),this}unsuspend(){return this.flags.decr("@suspended")==0&&(this.__F&=-4097,this.commit()),this}[Uh](){if(this.visit(),this[He])return this[He]=null}[Bh](){return this.__F&1024&&(this.__F=this.__F&-1025,this.classList.remove("_ssr_"),this.flags$ext&&this.flags$ext.indexOf("_ssr_")==0&&(this.flags$ext=this.flags$ext.slice(5)),this.__F&512||(this.innerHTML="")),globalThis.DEBUG_IMBA&&Vt.push(this),this[He]&&(this[He]=null),this}[Hh](){return globalThis.DEBUG_IMBA&&Vt.pop(this),this}connectedCallback(){let t=this.__F,e=t&1,r=t&8;if(!e&&!(t&1024)){io.queue(this);return}if(t&48)return;this.__F|=16,e||this[kt](),t&2||(this.flags$ext=this.className,this.__F|=2,this.hydrate(),this.commit()),r||(this.awaken(),this.__F|=8),$(this,"mount");let s=this.mount();return s&&s.then instanceof Function&&s.then(k.commit),t=this.__F=(this.__F|32)&-17,t&64&&this.schedule(),this[Pt]&&k.schedule(this,this[Pt]),this}disconnectedCallback(){if(this.__F=this.__F&-49,this.__F&128&&this.unschedule(),$(this,"unmount"),this.unmount(),this[Pt])return k.unschedule(this,this[Pt])}};Lt[kt]();var Lf=Lt;function Yh(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var so=Symbol.for("#__init__");var Wh={cm:1,mm:1,Q:1,pc:1,pt:1,px:1,em:1,ex:1,ch:1,rem:1,vw:1,vh:1,vmin:1,vmax:1,s:1,ms:1,fr:1,"%":1,in:1,turn:1,grad:1,rad:1,deg:1,Hz:1,kHz:1};var no={prefix:1,suffix:1,content:1},Zr={rose:[[356,100,97],[356,100,95],[353,96,90],[353,96,82],[351,95,71],[350,89,60],[347,77,50],[345,83,41],[343,80,35],[342,75,30]],pink:[[327,73,97],[326,78,95],[326,85,90],[327,87,82],[329,86,70],[330,81,60],[333,71,51],[335,78,42],[336,74,35],[336,69,30]],fuchsia:[[289,100,98],[287,100,95],[288,96,91],[291,93,83],[292,91,73],[292,84,61],[293,69,49],[295,72,40],[295,70,33],[297,64,28]],purple:[[270,100,98],[269,100,95],[269,100,92],[269,97,85],[270,95,75],[271,91,65],[271,81,56],[272,72,47],[273,67,39],[274,66,32]],violet:[[250,100,98],[251,91,95],[251,95,92],[252,95,85],[255,92,76],[258,90,66],[262,83,58],[263,70,50],[263,69,42],[264,67,35]],indigo:[[226,100,97],[226,100,94],[228,96,89],[230,94,82],[234,89,74],[239,84,67],[243,75,59],[245,58,51],[244,55,41],[242,47,34]],blue:[[214,100,97],[214,95,93],[213,97,87],[212,96,78],[213,94,68],[217,91,60],[221,83,53],[224,76,48],[226,71,40],[224,64,33]],sky:[[204,100,97],[204,94,94],[201,94,86],[199,95,74],[198,93,60],[199,89,48],[200,98,39],[201,96,32],[201,90,27],[202,80,24]],cyan:[[183,100,96],[185,96,90],[186,94,82],[187,92,69],[188,86,53],[189,94,43],[192,91,36],[193,82,31],[194,70,27],[196,64,24]],teal:[[166,76,97],[167,85,89],[168,84,78],[171,77,64],[172,66,50],[173,80,40],[175,84,32],[175,77,26],[176,69,22],[176,61,19]],emerald:[[152,81,96],[149,80,90],[152,76,80],[156,72,67],[158,64,52],[160,84,39],[161,94,30],[163,94,24],[163,88,20],[164,86,16]],green:[[138,76,97],[141,84,93],[141,79,85],[142,77,73],[142,69,58],[142,71,45],[142,76,36],[142,72,29],[143,64,24],[144,61,20]],lime:[[78,92,95],[80,89,89],[81,88,80],[82,85,67],[83,78,55],[84,81,44],[85,85,35],[86,78,27],[86,69,23],[88,61,20]],yellow:[[55,92,95],[55,97,88],[53,98,77],[50,98,64],[48,96,53],[45,93,47],[41,96,40],[35,92,33],[32,81,29],[28,73,26]],amber:[[48,100,96],[48,96,89],[48,97,77],[46,97,65],[43,96,56],[38,92,50],[32,95,44],[26,90,37],[23,83,31],[22,78,26]],orange:[[33,100,96],[34,100,92],[32,98,83],[31,97,72],[27,96,61],[25,95,53],[21,90,48],[17,88,40],[15,79,34],[15,75,28]],red:[[0,86,97],[0,93,94],[0,96,89],[0,94,82],[0,91,71],[0,84,60],[0,72,51],[0,74,42],[0,70,35],[0,63,31]],warmer:[[60,9,98],[60,5,96],[20,6,90],[24,6,83],[24,5,64],[25,5,45],[33,5,32],[30,6,25],[12,6,15],[24,10,10]],warm:[[0,0,98],[0,0,96],[0,0,90],[0,0,83],[0,0,64],[0,0,45],[0,0,32],[0,0,25],[0,0,15],[0,0,9]],gray:[[0,0,98],[240,5,96],[240,6,90],[240,5,84],[240,5,65],[240,4,46],[240,5,34],[240,5,26],[240,4,16],[240,6,10]],cool:[[210,20,98],[220,14,96],[220,13,91],[216,12,84],[218,11,65],[220,9,46],[215,14,34],[217,19,27],[215,28,17],[221,39,11]],cooler:[[210,40,98],[210,40,96],[214,32,91],[213,27,84],[215,20,65],[215,16,47],[215,19,35],[215,25,27],[217,33,17],[222,47,11]]},Gh=new RegExp("^("+Object.keys(Zr).join("|")+")(\\d+(?:\\.\\d+)?)$"),Xh=/^([xyz])$/,Qh=/^([tlbr]|size|[whtlbr]|[mps][tlbrxy]?|[rcxy]?[gs])$/,Jh=`*,::before,::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: currentColor; }`,Qr=class{constructor(t=null){this[so](t)}[so](t=null){var e;this.entries=t&&(e=t.entries)!==void 0?e:{}}register(t,e){let r=this.entries[t];r?r&&(r.css=e,r.node&&(r.node.textContent=e)):(r=this.entries[t]={sourceId:t,css:e},this.entries.resets||this.register("resets",Jh),r.node=globalThis.document.createElement("style"),r.node.setAttribute("data-id",t),r.node.textContent=r.css,globalThis.document.head.appendChild(r.node))}toString(){return Object.values(this.entries).map(function(t){return t.css}).join(` `)}toValue(t,e,r,s=null){let n;no[r]&&(t=String(t));let o=typeof t;if(o=="number"){if(e||(Xh.test(r)?e="px":Qh.test(r)?e="u":r=="rotate"&&(e="turn",t=(t%1).toFixed(4))),e)return Wh[e]?t+e:e=="u"?t*4+"px":"calc(var(--u_"+e+",1px) * "+t+")"}else if(o=="string"){if(r&&no[r]&&t[0]!='"'&&t[0]!="'"&&(t.indexOf('"')>=0?t.indexOf("'")==-1&&(t="'"+t+"'"):t='"'+t+'"'),n=t.match(Gh)){let h=Zr[n[1]][parseInt(n[2])],u="100%";if(typeof s=="number"?u=s+"%":typeof s=="string"&&(u=s),h)return"hsla("+h[0]+","+h[1]+"%,"+h[2]+"%,"+u+")"}}else if(t&&t.toStyleString instanceof Function)return t.toStyleString();return t}parseDimension(t){if(typeof t=="string"){let[e,r,s]=t.match(/^([-+]?[\d\.]+)(%|\w+)$/);return[parseFloat(r),s]}else if(typeof t=="number")return[t]}},Zh=new Qr,Df=Object.keys(Zr);function Rf(){return!0}var Jr=class{css$(t,e,r){return this.style[t]=e}css$var(t,e,r,s,n=null){let o=Zh.toValue(e,r,s,n);this.style.setProperty(t,o)}};Yh(_.prototype,Jr.prototype);var tu=Symbol.for("#insertInto"),oo=Symbol.for("#removeFrom");function qf(i,t={}){let e=L.context;L.context=t;let r=i(t);return L.context==t&&(L.context=e),r}function eu(i,t){let e=t||globalThis.document.body,r=i;if(i instanceof Function){let s=new Y(e,null),n=function(){let o=L.context;L.context=s;let l=i(s);return L.context==s&&(L.context=o),l};r=n(),k.listen("commit",n)}else r.__F|=64;return r[tu](e),r}function ru(i){return i&&i[oo]&&i[oo](i.parentNode),i}var lo=globalThis.imba||(globalThis.imba={});lo.mount=eu;lo.unmount=ru;function It(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function Gt(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Xt=Symbol.for("##onchange"),Jt=Symbol.for("#afterVisit"),Qt=Symbol.for("##oninput"),Ye=Symbol.for("##onclick"),Zt=Symbol.for("##bound"),ft=Symbol.for("##visitContext");function Uf(){return!0}var iu={INPUT:!0,SELECT:!0,TEXTAREA:!0,BUTTON:!0},ti=function(i){return i instanceof Array||i&&i.has instanceof Function},li=function(i,t){return i==t?!0:i instanceof Array?i.indexOf(t)>=0:i&&i.has instanceof Function?i.has(t):i&&i.contains instanceof Function?i.contains(t):!1},hi=function(i,t){if(i instanceof Array)return i.push(t);if(i&&i.add instanceof Function)return i.add(t)},ui=function(i,t){if(i instanceof Array){let e=i.indexOf(t);if(e>=0)return i.splice(e,1)}else if(i&&i.delete instanceof Function)return i.delete(t)};function su(i){function t(){return i[0]?i[0][i[1]]:void 0}function e(r){return i[0]?i[0][i[1]]=r:null}return{get:t,set:e}}var ei=class{getRichValue(){return this.value}setRichValue(t){return this.value=t}bind$(t,e){let r=e||[];return t=="data"&&!this[Zt]&&iu[this.nodeName]&&(this[Zt]=!0,this[Xt]&&this.addEventListener("change",this[Xt]=this[Xt].bind(this)),this[Qt]&&this.addEventListener("input",this[Qt]=this[Qt].bind(this),{capture:!0}),this[Ye]&&this.addEventListener("click",this[Ye]=this[Ye].bind(this),{capture:!0})),Object.defineProperty(this,t,r instanceof Array?su(r):r),r}};It(_.prototype,ei.prototype);Object.defineProperty(_.prototype,"richValue",{get:function(){return this.getRichValue()},set:function(i){return this.setRichValue(i)}});var ri=class{[Xt](t){let e=this.data,r=this.$$value;this.$$value=void 0;let s=this.getRichValue();if(this.multiple){if(r)for(let n=0,o=Gt(r),l=o.length;n0&&(a=a.split("~")[0]);let v=null,f=[t,o],d,m=null,g,b=!1,E=typeof a=="string";if(a[0]=="$"&&a[1]=="_"&&p[0]instanceof Function)a=p[0],a.passive||(o.commit=!0),f=[t,o].concat(p.slice(1)),m=e;else if(p instanceof Array){f=p.slice(),v=f;for(let y=0,S=vo(f),O=S.length;y2)}};function Ft(i,t){let e=t;return i instanceof Element?i:typeof i=="string"?i=="this"||i==""?e:i=="up"?e.parentNode:i=="op"?e.offsetParent:e.closest(i)||e.querySelector(i)||globalThis.document.querySelector(i):null}function dt(i){if(typeof i=="string"){let[t,e,r]=i.match(/^([-+]?[\d\.]+)(%|\w+)$/);return[parseFloat(e),r]}else if(typeof i=="number")return[i]}function rr(i,t=1){let e=1/t;return Math.round(i*e)/e}function Tu(i,t,e){return t>e?Math.max(e,Math.min(t,i)):Math.min(e,Math.max(t,i))}function Ti(i,t,e,r,s=.1){let[n,o]=dt(e),[l,h]=dt(r),[u,c]=dt(s);return o=="%"&&(n=(t-i)*(n/100)),h=="%"&&(l=(t-i)*(l/100)),c=="%"&&(u=(l-n)*(u/100)),function(a,p){let v=(a-i)/(t-i),f=n+(l-n)*v;return s&&(f=rr(f,u)),p&&(f=Tu(f,n,l)),f}}function Eu(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}Ze();function vc(){return!0}var Ni=class{αprimary(){return!!this.isPrimary}αmouse(){return this.pointerType=="mouse"}αpen(){return this.pointerType=="pen"}αtouch(){return this.pointerType=="touch"}αpressure(t=.5){return this.pressure>=t}αlock(){return!0}};Eu(_n.prototype,Ni.prototype);function Nu(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var No=Symbol.for("#capture"),Q=Symbol.for("#step"),Cu=Symbol.for("#cancel"),Ci=Symbol.for("#reframe");var Co=Symbol.for("#mods"),Oi=Symbol.for("#dx"),Pi=Symbol.for("#dy"),pt=Symbol.for("#context"),ir=Symbol.for("#locked"),Lo=Symbol.for("#teardown"),Oo=Symbol.for("#x"),Po=Symbol.for("#y"),Ou=Symbol.for("#pinTarget");function Tc(){return!0}var ko=null,ki=class{constructor(t,e,r){this.phase="init",this.events=[],this.originalEvent=t,this.handler=e,this.target=this.currentTarget=r,this[Co]={}}set event(t){this.events.push(t)}get ctrlKey(){return this.originalEvent.ctrlKey}get altKey(){return this.originalEvent.altKey}get shiftKey(){return this.originalEvent.shiftKey}get metaKey(){return this.originalEvent.metaKey}get isPrimary(){return this.originalEvent.isPrimary}get pointerType(){return this.originalEvent.pointerType}get start(){return this.originalEvent}get originalTarget(){return this.originalEvent.target}get event(){return this.events[this.events.length-1]}get elapsed(){return this.event.timeStamp-this.events[0].timeStamp}get type(){return this.event.type}get pointerId(){return this.originalEvent.pointerId}get pressure(){return this.event.pressure}get clientX(){return this.event.clientX}get clientY(){return this.event.clientY}get offsetX(){return this.event.offsetX}get offsetY(){return this.event.offsetY}get activeΦ(){return this.phase!="ended"}get endedΦ(){return this.phase=="ended"}get dx(){return this[Oi]==null?this.event.x-this.start.x:this[Oi]}get dy(){return this[Pi]==null?this.event.y-this.start.y:this[Pi]}stopImmediatePropagation(){return this.cancelBubble=!0,this.event.stopImmediatePropagation(),this}stopPropagation(){return this.cancelBubble=!0,this.event.stopPropagation(),this}preventDefault(){return this.defaultPrevented=!0,this.event.preventDefault()}emit(t,...e){return $(this,t,e)}on(t,...e){return A(this,t,...e)}once(t,...e){return D(this,t,...e)}un(t,...e){return bt(this,t,...e)}αflag(t,e){let{element:r}=this[pt],s=Date.now(),n=e instanceof _?e:e?r.closest(e):r;return this[Q].setup!=!0&&(this[Q].setup=!0,!0)&&(n.flags.incr(t),D(this,"end",function(){return n.flags.decr(t)})),!0}αlock(){return this[No](),!0}[No](){if(this[ir]!=!0&&(this[ir]=!0,!0))return this[pt].element.setPointerCapture(this.pointerId)}get[Q](){var t,e;return(t=this[Co])[e=this[pt].step]||(t[e]={})}[Cu](){return this[Lo]()}αmoved(t,e){let r=this[Q],{element:s,state:n,event:o}=this[pt];if(!r.setup){let a=t||4;typeof t=="string"&&t.match(/^(up|down|left|right|x|y)$/)&&(r.dir=t,a=e||4),typeof e=="string"&&e.match(/^(up|down|left|right|x|y)$/)&&(r.dir=e),r.setup=!0;let[p,v]=dt(a);r.threshold=p,r.sy=p,r.x0=this.x,r.y0=this.y,r.dir||(r.dir="dist"),r.x=r.left=r.right=r.y=r.up=r.down=r.dist=0,v&&v!="px"&&console.warn("only px threshold allowed in @touch.moved")}if(r.active)return!0;if(r.cancelled)return!1;let l=r.threshold,h=this.x-r.x0,u=this.y-r.y0;r.x=Math.max(r.x,Math.abs(h)),r.y=Math.max(r.y,Math.abs(u)),r.left=Math.max(r.left,-h),r.right=Math.max(r.right,h),r.up=Math.max(r.up,-u),r.down=Math.max(r.down,u),r.dist=Math.max(r.dist,Math.sqrt(h*h+u*u));let c=r[r.dir];if(c>l&&c>=r.x&&c>=r.y){r.active=!0;let a=n.pinTarget;return s.flags.incr("@move"),a&&a.flags.incr("@move"),this.preventDefault(),D(this,"end",function(){return a&&a.flags.decr("@move"),s.flags.decr("@move")}),!0}else if(r.x>l||r.y>l)return r.cancelled=!0,!1;return!1}αhold(t=250){var e=this;let r=this[Q],s=this[pt].element;if(r.cancelled)return!1;if(r.setup&&!r.active){let n=this.clientX,o=this.clientY,l=n-r.x,h=o-r.y;Math.sqrt(l*l+h*h)>5&&!r.cancelled&&(clearTimeout(r.timeout),r.cancelled=!0)}if(r.setup!=!0&&(r.setup=!0,!0)){r.active=!1,r.x=this.clientX,r.y=this.clientY;let n;return r.timeout=setTimeout(function(){return r.active=!0,e.preventDefault(),s.flags.incr("@hold"),n&&n(!0),n=null},t),D(e,"end",function(){return r.active&&s.flags.decr("@hold"),clearTimeout(r.timeout),n&&n(!1),n=null}),new Promise(function(o){return n=o})}return r.active}αsync(t,e="x",r="y"){let s=this[Q];return s.setup!=!0&&(s.setup=!0,!0)?(s.x=t[e]||0,s.y=t[r]||0,s.tx=this.x,s.ty=this.y):(e&&(t[e]=s.x+(this.x-s.tx)),r&&(t[r]=s.y+(this.y-s.ty))),this[pt].commit=!0,!0}αapply(t,e="x",r="y"){return e&&(t[e]=this.x),r&&(t[r]=this.y),this[pt].commit=!0,!0}αcss(t="x",e="y"){let r=this[Q];if(r.setup!=!0&&(r.setup=!0,!0))r.el=this[pt].element,r.x=r.el[Oo]||0,r.y=r.el[Po]||0,r.tx=this.x,r.ty=this.y;else{let s=r.el[Oo]=r.x+(this.x-r.tx),n=r.el[Po]=r.y+(this.y-r.ty);t&&r.el.style.setProperty("--x",s+"px"),e&&r.el.style.setProperty("--y",n+"px")}return!0}αend(){return this.phase=="ended"}αshift(){return!!this.shiftKey}αalt(){return!!this.altKey}αctrl(){return!!this.ctrlKey}αmeta(){return!!this.metaKey}αprimary(){return!!this.isPrimary}αmouse(){return this.pointerType=="mouse"}αpen(){return this.pointerType=="pen"}αtouch(){return this.pointerType=="touch"}αpressure(t=.5){return this.pressure>=t}αlog(...t){return console.info(...t),!0}αleft(){return this.originalEvent.button==0}αmiddle(){return this.originalEvent.button==1}αright(){return this.originalEvent.button==2}αround(t=1,e=t){return this.x=rr(this.x,t),this.y=rr(this.y,e),!0}[Ci](...t){let e=this[Q];if(e.setup!=!0&&(e.setup=!0,!0)){let r=this.target,s=t.length,n=t[0],o=0,l="100%",h=0,u=typeof n;u=="number"||u=="string"&&/^([-+]?\d[\d\.]*)(%|\w+)$/.test(n)||n instanceof Array?n=null:u=="string"&&(n=="this"||n==""?n=r:n=="up"?n=r.parentNode:n=="op"?n=r.offsetParent:n=r.closest(n)||r.querySelector(n)),n==null&&(s++,t.unshift(n=r)),s==2?h=t[1]:s>2&&([o,l,h=0]=t.slice(1));let c=n.getBoundingClientRect();o instanceof Array||(o=[o,o]),l instanceof Array||(l=[l,l]),h instanceof Array||(h=[h,h]),e.rect=c,e.x=Ti(c.left,c.right,o[0],l[0],h[0]),e.y=Ti(c.top,c.bottom,o[1],l[1],h[1]),this.x0=this.x=e.x(this.x,e.clamp),this.y0=this.y=e.y(this.y,e.clamp)}else{let r=this.x=e.x(this.x,e.clamp),s=this.y=e.y(this.y,e.clamp);this[Oi]=r-this.x0,this[Pi]=s-this.y0}return!0}αfit(...t){return this[Q].clamp=!0,this[Ci](...t)}αreframe(...t){return this[Ci](...t)}αpin(...t){let e=this[Q];if(e.setup!=!0&&(e.setup=!0,!0)){let r=Ft(t[0],this.target);r instanceof _||t.unshift(r=this.target);let s=t[1]||0,n=t[2]==null?t[2]=s:t[2],o=r.getBoundingClientRect();e.x=this.clientX-(o.left+o.width*s),e.y=this.clientY-(o.top+o.height*n),r&&(this[Ou]=r,r.flags.incr("_touch_"),D(this,"end",function(){return r.flags.decr("_touch_")}))}return this.x-=e.x,this.y-=e.y,!0}},Li=class{on$touch(t,e,r,s){return r.type="touch",this.addEventListener("pointerdown",r,{passive:!1}),er.iosΦ&&globalThis.parent!=globalThis&&ko!=!0&&(ko=!0,!0)&&globalThis.parent.postMessage("setupTouchFix"),r}};Nu(_.prototype,Li.prototype);if(globalThis.parent==globalThis&&er.iosΦ){let i=function(t){if(t.data=="setupTouchFix")return globalThis.addEventListener("touchmove",function(){return!1},{passive:!1}),globalThis.removeEventListener("message",i)};globalThis.addEventListener("message",i)}W.touch$handle=function(){let i=this.event,t=this.element,e=this.state.pointerId,r=this.modifiers,s=this.handler,n=er.iosΦ;if(this.current=this.state,e!=null)return e==i.pointerId;if(r.ctrl&&!i.ctrlKey||r.alt&&!i.altKey||r.meta&&!i.metaKey||r.shift&&!i.shiftKey||r.if&&!r.if[0]||r.self&&i.target!=t||r.primary&&!i.isPrimary||r.pen&&i.pointerType!="pen"||r.mouse&&i.pointerType!="mouse"||r.touch&&i.pointerType!="touch"||r.sel&&!i.target.matches(String(r.sel[0])))return;let o=this.state=s.state=this.current=new ki(i,s,t);e=o.pointerId;let l=function(f){return f.preventDefault(),!1},h=null,u=Symbol(),c=function(f){let d=o.clientX,m=o.clientY,g=f.clientX,b=f.clientY;(o[ir]||o.defaultPrevented)&&(f.pointerId==o.pointerId||d==g&&m==b)&&(f.preventDefault(),f.stopPropagation()),c&&(globalThis.removeEventListener("click",c,{capture:!0}),c=null)},a=function(f){if(!(o.type=="touchmove"&&f.changedTouches[0].identifier!=e)&&(o.defaultPrevented||o[ir]))return f.preventDefault()},p=function(f){let d=f.type,m=o.phase;if(f.pointerId&&o.pointerId!=f.pointerId||f[u])return;f[u]=!0;let g=d=="pointerup"||d=="pointercancel";if(f.pressure==0&&f.pointerType=="mouse"&&d=="pointermove"&&o.originalEvent.pressure>0)return h(f);d=="pointercancel"?(o.x=o.clientX,o.y=o.clientY):(o.x=f.clientX,o.y=f.clientY),o.event=f,g&&(o.phase="ended");try{s.handleEvent(o)}catch{}if(m=="init"&&!g&&(o.phase="active"),g&&h)return h(f)},v=!1;return h=function(f){if(!v&&(v=!0,t.flags.decr("_touch_"),o.phase!="ended"&&(o.phase="ended",o.x=o.clientX,o.y=o.clientY,s.handleEvent(o)),o.emit("end"),r.passive||--s.prevents==0&&t.style.removeProperty("touch-action"),s.state={},globalThis.removeEventListener("pointermove",p,{passive:!!r.passive}),globalThis.removeEventListener("pointerup",p),globalThis.removeEventListener("pointercancel",p),setTimeout(function(){if(c&&(globalThis.removeEventListener("click",c,{capture:!0}),c=null),n&&a)return globalThis.removeEventListener("touchend",a),globalThis.removeEventListener("touchmove",a,{passive:!1}),a=null},100),!r.passive))return globalThis.document.removeEventListener("selectstart",l,{capture:!0})},o[Lo]=h,r.passive||(s.prevents||(s.prevents=0),s.prevents++,t.style.setProperty("touch-action","none"),t.offsetWidth),t.flags.incr("_touch_"),globalThis.addEventListener("pointermove",p,{passive:!!r.passive}),globalThis.addEventListener("pointerup",p),globalThis.addEventListener("pointercancel",p),globalThis.addEventListener("click",c,{capture:!0}),n&&!r.passive&&(globalThis.addEventListener("touchend",a),globalThis.addEventListener("touchmove",a,{passive:!1})),r.passive||globalThis.document.addEventListener("selectstart",l,{capture:!0}),p(i),!1};function Mo(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Pu(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var ku=Symbol.for("#context"),Lu=Symbol.for("#extendType");function Cc(){return!0}var Io=new(globalThis.WeakMap||Map),Ii={threshold:[0]},Iu={};W.intersect$handle=function(){let i=this.event.detail.observer;return this.modifiers._observer==i};var Fi=class extends P{αin(){return this.delta>=0&&this.entry.isIntersecting}αout(){return this.delta<0}αcss(t="ratio"){return this.target.style.setProperty("--ratio",this.ratio),!0}αflag(t,e){let{state:r,step:s}=this[ku],n=Ft(e||"",this.target);return this.isIntersecting&&!r[s]?(n.flags.incr(t),r[s]=!0):r[s]&&!this.isIntersecting&&(n.flags.decr(t),r[s]=!1),!0}};function Fu(i,t){return function(e,r){let s=r.prevRatios||(r.prevRatios=new WeakMap);for(let n=0,o=Mo(e),l=o.length;n1)for(o[0]=0;o.length"+n.map(function(o){return""+o+""}).join("")+""}).join(" "))}var mt={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},zo={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Vo={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},Ko={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},re;for(Z=1;Z<20;++Z)mt[111+Z]="f"+Z;var Z;for(Z=0;Z<=9;++Z)mt[Z+96]=Z.toString();function Vi(i,t,e){if(i.addEventListener){i.addEventListener(t,e,!1);return}i.attachEvent("on"+t,e)}function Ki(i,t,e){if(i.removeEventListener){i.removeEventListener(t,e,!1);return}i.detachEvent("on"+t,e)}function Uo(i){if(i.type=="keypress"){var t=String.fromCharCode(i.which);return i.shiftKey||(t=t.toLowerCase()),t}return mt[i.which]?mt[i.which]:zo[i.which]?zo[i.which]:String.fromCharCode(i.which).toLowerCase()}function qu(i,t){return i.sort().join(",")===t.sort().join(",")}function zu(i){var t=[];return i.shiftKey&&t.push("shift"),i.altKey&&t.push("alt"),i.ctrlKey&&t.push("ctrl"),i.metaKey&&t.push("meta"),t}function Vu(i){if(i.preventDefault){i.preventDefault();return}i.returnValue=!1}function Ku(i){if(i.stopPropagation){i.stopPropagation();return}i.cancelBubble=!0}function Ui(i){return i=="shift"||i=="ctrl"||i=="alt"||i=="meta"}function Uu(){if(!re){re={};for(var i in mt)i>95&&i<112||mt.hasOwnProperty(i)&&(re[mt[i]]=i)}return re}function Bu(i,t,e){return e||(e=Uu()[i]?"keydown":"keypress"),e=="keypress"&&t.length&&(e="keydown"),e}function Hu(i){return i==="+"?["+"]:(i=i.replace(/\+{2}/g,"+plus"),i.split("+"))}function Bo(i,t){var e,r,s,n=[];for(e=Hu(i),s=0;s1){p(f,E,d,m);return}y=Bo(f,m),t._callbacks[y.key]=t._callbacks[y.key]||[],h(y.key,y.modifiers,{type:y.action},g,f,b),t._callbacks[y.key][g?"unshift":"push"]({callback:d,modifiers:y.modifiers,action:y.action,seq:g,level:b,combo:f})}t._bindMultiple=function(f,d,m){for(var g=0;g-1||Ho(t,e.target)?!1:t.tagName=="INPUT"||t.tagName=="SELECT"||t.tagName=="TEXTAREA"||t.isContentEditable};I.prototype.handleKey=function(){var i=this;return i._handleKey.apply(i,arguments)};I.addKeycodes=function(i){for(var t in i)i.hasOwnProperty(t)&&(mt[t]=i[t]);re=null};I.init=function(){var i=I(document);for(var t in i)t.charAt(0)!=="_"&&(I[t]=function(e){return function(){return i[e].apply(i,arguments)}}(t))};function se(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Yu(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Bi=Symbol.for("#updateHotKeys"),Wu=Symbol.for("#inInput"),Hi=Symbol.for("#inEditable"),Gu=Symbol.for("#hotkeyTarget"),Wo=Symbol.for("#hotkeyCombos"),Xu=Symbol.for("#extendType"),ne=Symbol.for("#combos"),Yi=Symbol.for("#target"),ie=Symbol.for("#hotkeyHandlers"),Qu=Symbol.for("#defaultPrevented"),Ju=Symbol.for("#visit"),Yo=Symbol.for("#key"),Zu;try{Zu=(globalThis.navigator.platform||"").match(/iPhone|iPod|iPad|Mac/)}catch{}function zc(){return!0}var Wi={esc:!0},Gi=class extends P{αfocus(t){let e=this.target,r=e.ownerDocument;return t&&(e=e.querySelector(t)||e.closest(t)||r.querySelector(t)),e==r.body?r.activeElement!=r.body&&r.activeElement.blur():e.focus(),!0}αlocal(){return!0}αrepeat(){return!0}},ta=function(i,t,e){return t.tagName=="INPUT"&&(e=="down"||e=="up")?!1:t.tagName=="INPUT"||t.tagName=="SELECT"||t.tagName=="TEXTAREA"?Wi[e]?(i[Wu]=!0,i[Hi]=!0,!1):!0:t.contentEditable&&(t.contentEditable=="true"||t.contentEditable=="plaintext-only")?Wi[e]?(i[Hi]=!0,!1):!0:!1},ea=new class{constructor(){this.combos={"*":{}},this.identifiers={},this.labels={},this.handler=this.handle.bind(this),this.mousetrap=null,this.hothandler=this.handle.bind(this)}addKeycodes(t){return I.addKeycodes(t)}trigger(t){var e,r;return(r=(e=this.mousetrap)==null?void 0:e.trigger)==null?void 0:r.call(e,t)}register(t,e={}){return this.mousetrap||(this.mousetrap=I(globalThis.document),this.mousetrap.stopCallback=ta),this.combos[t]||(this.combos[t]=!0,this.mousetrap.bind(t,this.handler)),(e.capture||e.force)&&(Wi[t]=!0),this}comboIdentifier(t){var e;return(e=this.identifiers)[t]||(e[t]=t.replace(/\+/g,"_").replace(/\ /g,"-").replace(/\*/g,"all").replace(/\|/g," "))}humanize(t,e="auto"){return jo(t,e)}htmlify(t,e="auto"){return qo(t,e)}matchCombo(t){return!0}handle(t,e){var c;let r=t.target&&t.target[Gu]||t.target||globalThis.document.body,s=Array.from(globalThis.document.querySelectorAll("[data-hotkey]")),n=r.ownerDocument,o=r;for(;o&&o!=n&&o.hotkeys!==!0;)o=o.parentNode;if(s=s.reverse().filter(function(a){let p=a[Wo];if(!(p&&(p[e]||p["*"])))return!1;let v=a;for(;v&&v!=n;){if(v.hotkeys===!1)return!1;v=v.parentNode}return!0}),!s.length)return;let l={combo:e,originalEvent:t,targets:s},h=new P("hotkey",{bubbles:!0,detail:l});h[Xu](Gi),h.originalEvent=t,h.hotkey=e,r.dispatchEvent(h);let u=[];for(let a=0,p=se(s),v=p.length;a=this.length))return(e=this[oe])[t]||(e[t]=le.from(this,this.cache[t]))}buildState(t,e,r=!0){let s={data:t,index:this.index+1,path:e||this.router.path,type:r?"push":"replace"};return new le(this,s,!0)}pushState(t,e,r,s=!0){return t instanceof le||(t=this.buildState(t,r,s)),this.index=t.index,this.cache[this.index]=t,this[oe][this.index]=t,this[oe].length=this.cache.length=Math.max(t.index+1,0),globalThis.history[s?"pushState":"replaceState"](String(t),e||null,t.path),this}replaceState(t,e,r){return this.pushState(t,e,r,!1)}};var he=class{constructor(t,e,r,s){this.params=s,this.router=t,e&&(this.location=U.parse(e),this.original=this.location.clone()),this.referrer=r}get apply(){return this.params.apply||[]}get revert(){return this.params.revert||[]}get state(){return this.params.state}get mode(){return this.params.mode}redirect(t){var e,r;return(r=(e=this.location)==null?void 0:e.update)==null||r.call(e,t),this}get path(){var t;return(t=this.location)==null?void 0:t.path}get url(){var t,e;return(e=(t=this.location)==null?void 0:t.toString)==null?void 0:e.call(t)}set path(t){this.location.path=t}abort(t=!1){return this.aborted=!0,t&&(this.forceAbort=t),this}match(t){return this.location?this.router.route(t).match(this.path):null}};function al(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var hr=Symbol.for("#routes"),ts=Symbol.for("#match"),la=Symbol.for("#symbol"),fl=Symbol.for("#matches"),es=new Map,rs={},cl={},ha=/.*/;function ua(i){if(!es.has(i)){let t=new Map;return es.set(i,t),t}return es.get(i)}function aa(i,t){let e=ua(i);if(!e.has(t)){let r=Object.create(i);return Object.assign(r,t),e.set(t,r),r}return e.get(t)}var is=class{};function fa(i){if(rs[i])return rs[i];let t=rs[i]={url:i},e=i.indexOf("?"),r=i.indexOf("#");if(r>=0&&(t.hash=i.slice(r+1),i=t.url=i.slice(0,r)),e>=0){let s=t.query=i.slice(e+1);i=i.slice(0,e),t.query=cl[s]||(cl[s]=new URLSearchParams(s))}return t.path=i,t}var ur=class{constructor(t){this.router=t,this.fullPath="",this[hr]={},this[ts]=new is,this[ts].path=""}route(t){var e;return(e=this[hr])[t]||(e[t]=new ue(this.router,t,this))}match(){return this[ts]}resolve(t){return"/"}},ue=class{constructor(t,e,r){this.parent=r||t.rootRoute,this.router=t,this.status=200,this.path=e,this[la]=Symbol(),this[fl]={},this[hr]={}}route(t){var e;return(e=this[hr])[t]||(e[t]=new ue(this.router,t,this))}get fullPath(){return""+this.parent.fullPath+"/"+this.$path}load(t){return this.router.queue.add(t)}set path(t){var e=this;if(this.$path==t)return;if(this.raw=t,this.$path=t,this.groups=[],this.cache={},this.dynamic=!1,t.indexOf("?")>=0){let s=t.split("?");t=s.shift(),this.query={};for(let n=0,o=al(s.join("?").split("&")),l=o.length;ne&&(s.apply=this.history.slice(e+1,r+1))}}catch{}return this.refresh(s),this}onbeforeunload(t){let e=new he(this,null,this.location,{mode:"unload"});if(this.emit("beforechange",e),e.aborted)return!0}onhashchange(t){return this.emit("hashchange",this[ce]=this[Dt].location.hash),C()}setup(){this.onclick=this.onclick.bind(this),this.onhashchange=this.onhashchange.bind(this);let t=globalThis.window;return this[ce]=this[Dt].location.hash,this.location=U.parse(this.realpath,this),t.onpopstate=this.onpopstate.bind(this),t.onbeforeunload=this.onbeforeunload.bind(this),t.addEventListener("hashchange",this.onhashchange),t.addEventListener("click",this.onclick,{capture:!0}),t.document.documentElement.emit("routerinit",this),this.refresh,this}onclick(t){if(t.metaKey||t.altKey)return;let e=null,r=null,s=t.target;for(;s&&(!e||!r);)!e&&s.nodeName=="A"&&(e=s),!r&&s[B]&&(r=s),s=s.parentNode;if(e&&r!=e&&(!r||r.contains(e))){let n=e.getAttribute("href");n&&!n.match(/\:\/\//)&&(!e.getAttribute("target")||e.getAttribute("target")=="_self")&&!e.classList.contains("external")&&e.addEventListener("click",this.onclicklink.bind(this),{once:!0})}return!0}onclicklink(t){let e=t.currentTarget||t.target;e[B]&&e[B].resolve();let r=e.getAttribute("href"),s=new URL(e.href),n=s.href.slice(s.origin.length),o=this.realpath.split("#")[0],l=n.split("#")[0];return o==l?globalThis.document.location.hash=s.hash:e[B]?e[B].go():this.go(n),t.stopPropagation(),t.preventDefault()}get url(){return this.location.url}get path(){let t=this.location.path;return this.aliases[t]||t}get pathname(){return this.location.pathname}serializeParams(t){var e;if(t instanceof Object){e=[];for(let s=0,n=Object.keys(t),o=n.length,l,h;sthis.idx&&this.array.splice(r,1),this.array.splice(this.idx,0,t)}if(s==-1)return this.changes.delete(t)}}end(){if(this.array.length>=this.idx)for(;this.array.length>this.idx;)this.changes.set(this.array.pop(),-1);return this.array}patch(){return this.end()}};function Is(i){var t,e;let r=Object.getOwnPropertyDescriptors(i.prototype);return t=r.name,delete r.name,e=r.constructor,delete r.constructor,r}function xa(){if(Il!=!0&&(Il=!0,!0))return zs.on("inited",function(i){let t=i[Al];if(t){let e=i instanceof j,r=i[V]||(i[V]={});for(let s=0,n=Object.keys(t),o=n.length,l,h;s=0&&e.splice(r,1)}reportChanged(){return this.changed(0)}reportObserved(){return w.add(this)}};function xd(i){return new _e(null,null,null,i)}var ms=class extends Array{push(){return H(this,super.push(...arguments))}pop(){return H(this,super.pop(...arguments))}unshift(){return H(this,super.unshift(...arguments))}shift(){return H(this,super.shift(...arguments))}splice(){return H(this,super.splice(...arguments))}at(){return N(this,super.at(...arguments))}map(){return N(this,super.map(...arguments))}flatMap(){return N(this,super.flatMap(...arguments))}flat(){return N(this,super.flat(...arguments))}filter(){return N(this,super.filter(...arguments))}find(){return N(this,super.find(...arguments))}slice(){return N(this,super.slice(...arguments))}sort(){return N(this,super.sort(...arguments))}get len(){return N(this,this.length)}set len(t){this.length=t,H(this)}toIterable(){return F&&w.add(this[V]),this}[Symbol.iterator](){return N(this,super[Symbol.iterator](...arguments))}},Fl=Is(ms),gs=class{get len(){return this.length}set len(t){this.length=t}get[ve](){return At(this,null,Fl)}[St](t){return At(this,t,Fl)}[ye](t){return Ls(this,t)}};Ns(Array.prototype,gs.prototype);var ys=class extends Set{has(){return N(this,super.has(...arguments))}keys(){return N(this,super.keys(...arguments))}values(){return N(this,super.values(...arguments))}entries(){return N(this,super.entries(...arguments))}add(){return H(this,super.add(...arguments))}clear(){return H(this,super.clear(...arguments))}delete(){return H(this,super.delete(...arguments))}},Ml=Is(ys),bs=class{get[ve](){return At(this,null,Ml)}[St](t){return At(this,t,Ml)}[ye](t){return Ls(this,t)}};Ns(Set.prototype,bs.prototype);var _s=class extends Map{get(){return N(this,super.get(...arguments))}has(){return N(this,super.has(...arguments))}keys(){return N(this,super.keys(...arguments))}values(){return N(this,super.values(...arguments))}entries(){return N(this,super.entries(...arguments))}set(){return H(this,super.set(...arguments))}clear(){return H(this,super.clear(...arguments))}delete(){return H(this,super.delete(...arguments))}},Dl=Is(_s),vs=class{get[ve](){return At(this,null,Dl)}[St](t){return At(this,t,Dl)}[ye](t){return Ls(this,t)}};Ns(Map.prototype,vs.prototype);var Ss=class{constructor(t,e={}){var r=this,s;this.name=t,this.options=e;let n=this.key=br(t),o=ks(t),l=r.descriptor={enumerable:(s=e.enumerable)!=null?s:!0,configurable:!1,get:function(){return F?$l(this,t,n,r,o):this[n]},set:function(u){return F||!!this[o]?jl(this,t,n,u,r,o):this[n]=u}},h=r.lazyDescriptor={enumerable:!1,configurable:!0,get:function(){return F?(Object.defineProperty(this,t,l),this[t]):this[n]},set:function(u){return this[n]=u,this[o]=null,Object.defineProperty(this,t,l)}}}},xs=class{constructor(t=null){this[Ll](t)}[Ll](t=null){var e;this[mr]=t&&(e=t[mr])!==void 0?e:new Map}for(t){let e=this[mr].get(t);return e||this[mr].set(t,e=[]),e}get(t){let e=this.for(t);return e[V]||e[ve],F&&N(e),e}add(t,e){return this.for(t).push(e)}delete(t,e){let r=this.for(t),s=r.indexOf(e);r.splice(s,1)}},ws=class{constructor(t,e){var r=this;this.name=t,this.key=e,this.index=new xs;let s=ks(t),n=r.descriptor={enumerable:!0,configurable:!1,get:function(){return F?$l(this,t,e,r,s):this[e]},set:function(l){let h=this[e];if(F||!!this[s]?jl(this,t,e,l,r,s):this[e]=l,h!=l&&(h&&r.index.delete(h,this),l))return r.index.add(l,this)}},o=r.lazyDescriptor={set:function(l){return this[e]=l,l&&r.index.add(l,this),Object.defineProperty(this,t,n),this[s]=null}}}where(t){return this.index.get(t)}},$t=class{constructor(t,e,r){this.observing=null,this.observers=null,this.flags=68,this.target=t,this.func=e,this.vkey=r,this.version=0}get beacon(){return this}addSubscriber(t){this.observer?(this.observers||(this.observers=[]),this.observers.push(t)):this.observer=t}removeSubscriber(t){if(this.observer==t)return this.observer=null;let e=this.observers,r=e.indexOf(this);r>=0&&e.splice(r,1)}invalidated(t,e){if(this.flags|=T.STALE|T.POSSIBLY_STALE,this.observer&&this.observer.invalidated(t,this),!!this.observers){for(let r=0,s=G(this.observers),n=s.length;r