Time slots app prototype
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
130 KiB

var sh=Object.create;var Xs=Object.defineProperty;var nh=Object.getOwnPropertyDescriptor;var oh=Object.getOwnPropertyNames;var lh=Object.getPrototypeOf,hh=Object.prototype.hasOwnProperty;var ah=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var uh=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of oh(t))!hh.call(i,s)&&s!==e&&Xs(i,s,{get:()=>t[s],enumerable:!(r=nh(t,s))||r.enumerable});return i};var ch=(i,t,e)=>(e=i!=null?sh(lh(i)):{},uh(t||!i||!i.__esModule?Xs(e,"default",{value:i,enumerable:!0}):e,i));var vl=ah((Zf,us)=>{"use strict";var zt=typeof Reflect=="object"?Reflect:null,cl=zt&&typeof zt.apply=="function"?zt.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},xr;zt&&typeof zt.ownKeys=="function"?xr=zt.ownKeys:Object.getOwnPropertySymbols?xr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:xr=function(t){return Object.getOwnPropertyNames(t)};function lu(i){console&&console.warn&&console.warn(i)}var dl=Number.isNaN||function(t){return t!==t};function g(){g.init.call(this)}us.exports=g;us.exports.once=cu;g.EventEmitter=g;g.prototype._events=void 0;g.prototype._eventsCount=0;g.prototype._maxListeners=void 0;var fl=10;function Sr(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(g,"defaultMaxListeners",{enumerable:!0,get:function(){return fl},set:function(i){if(typeof i!="number"||i<0||dl(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");fl=i}});g.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};g.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||dl(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 pl(i){return i._maxListeners===void 0?g.defaultMaxListeners:i._maxListeners}g.prototype.getMaxListeners=function(){return pl(this)};g.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var s=t==="error",n=this._events;if(n!==void 0)s=s&&n.error===void 0;else if(!s)return!1;if(s){var o;if(e.length>0&&(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")cl(h,this,e);else for(var a=h.length,c=_l(h,a),r=0;r<a;++r)cl(c[r],this,e);return!0};function ml(i,t,e,r){var s,n,o;if(Sr(e),n=i._events,n===void 0?(n=i._events=Object.create(null),i._eventsCount=0):(n.newListener!==void 0&&(i.emit("newListener",t,e.listener?e.listener:e),n=i._events),o=n[t]),o===void 0)o=n[t]=e,++i._eventsCount;else if(typeof o=="function"?o=n[t]=r?[e,o]:[o,e]:r?o.unshift(e):o.push(e),s=pl(i),s>0&&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,lu(l)}return i}g.prototype.addListener=function(t,e){return ml(this,t,e,!1)};g.prototype.on=g.prototype.addListener;g.prototype.prependListener=function(t,e){return ml(this,t,e,!0)};function hu(){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 gl(i,t,e){var r={fired:!1,wrapFn:void 0,target:i,type:t,listener:e},s=hu.bind(r);return s.listener=e,r.wrapFn=s,s}g.prototype.once=function(t,e){return Sr(e),this.on(t,gl(this,t,e)),this};g.prototype.prependOnceListener=function(t,e){return Sr(e),this.prependListener(t,gl(this,t,e)),this};g.prototype.removeListener=function(t,e){var r,s,n,o,l;if(Sr(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():au(r,n),r.length===1&&(s[t]=r[0]),s.removeListener!==void 0&&this.emit("removeListener",t,l||e)}return this};g.prototype.off=g.prototype.removeListener;g.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<n.length;++s)o=n[s],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=r[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(s=e.length-1;s>=0;s--)this.removeListener(t,e[s]);return this};function yl(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?uu(s):_l(s,s.length)}g.prototype.listeners=function(t){return yl(this,t,!0)};g.prototype.rawListeners=function(t){return yl(this,t,!1)};g.listenerCount=function(i,t){return typeof i.listenerCount=="function"?i.listenerCount(t):bl.call(i,t)};g.prototype.listenerCount=bl;function bl(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}g.prototype.eventNames=function(){return this._eventsCount>0?xr(this._events):[]};function _l(i,t){for(var e=new Array(t),r=0;r<t;++r)e[r]=i[r];return e}function au(i,t){for(;t+1<i.length;t++)i[t]=i[t+1];i.pop()}function uu(i){for(var t=new Array(i.length),e=0;e<t.length;++e)t[e]=i[e].listener||i[e];return t}function cu(i,t){return new Promise(function(e,r){function s(){n!==void 0&&i.removeListener("error",n),e([].slice.call(arguments))}var n;t!=="error"&&(n=function(l){i.removeListener(t,s),r(l)},i.once("error",n)),i.once(t,s)})}});var De=Symbol.for("#__listeners__"),fh=/-./g,Dr=class{static for(t){return new Proxy({},new this(t))}constructor(t){this.getter=t}get target(){return this.getter()}get(t,e){return this.target[e]}set(t,e,r){return this.target[e]=r,!0}};function Js(i,t={}){return new Proxy(t,new Dr(i))}function Xt(i){let t=typeof i;if(t=="number")return i;if(t=="string"){if(/^\d+fps$/.test(i))return 1e3/parseFloat(i);if(/^([-+]?[\d\.]+)s$/.test(i))return parseFloat(i)*1e3;if(/^([-+]?[\d\.]+)ms$/.test(i))return parseFloat(i)}return null}function Eu(i){return i.indexOf("-")>=0?i.replace(fh,function(t){return t.charAt(1).toUpperCase()}):i}function Hr(i,t,e){if(!i)return;let r=Object.getOwnPropertyDescriptor(i,t);return r||i==e?r||void 0:Hr(Reflect.getPrototypeOf(i),t,e)}var Qs=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 V(i,t,e,r){var s;let n,o,l;return n=i[De]||(i[De]={}),o=n[t]||(n[t]={}),l=o.tail||(o.tail=o.next={}),l.listener=e,l.path=r,o.tail=l.next={},l}function I(i,t,e){let r=V(i,t,e);return r.times=1,r}function Ct(i,t,e,r){let s,n,o=i[De];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 D(i,t,e){let r;(r=i[De])&&(r[t]&&Qs(t,e,r[t]),r.all&&Qs(t,[t,e],r.all))}var Wt=class{emit(t,...e){return D(this,t,e)}on(t,...e){return V(this,t,...e)}once(t,...e){return I(this,t,...e)}un(t,...e){return Ct(this,t,...e)}};function dh(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Zs=Symbol.for("#__init__");var tn=Symbol.for("#schedule"),jr=Symbol.for("#frames"),He=Symbol.for("#interval"),At=Symbol.for("#stage"),Rt=Symbol.for("#scheduled"),je=Symbol.for("#version"),ph=Symbol.for("#fps"),en=Symbol.for("#ticker"),mh=globalThis.requestAnimationFrame||function(i){return globalThis.setTimeout(i,1e3/60)};var Iu=1/60,Gr=class{constructor(t=null){this[Zs](t)}[Zs](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[jr],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[He]=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[He]&&(globalThis.clearInterval(this[He]),this[He]=null),this.active=!1,this}},$r=class{constructor(){var t=this;this.id=Symbol(),this.queue=[],this.stage=-1,this[At]=-1,this[jr]=0,this[Rt]=!1,this[je]=0,this.listeners={},this.intervals={},t.commit=function(){return t.add("commit"),t},this[ph]=0,t.$promise=null,t.$resolve=null,this[en]=function(e){return t[Rt]=!1,t.tick(e)}}touch(){return this[je]++}get version(){return this[je]}add(t,e){return(e||this.queue.indexOf(t)==-1)&&this.queue.push(t),this[Rt]||this[tn](),this}get committingΦ(){return this.queue.indexOf("commit")>=0}get syncingΦ(){return this[At]==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[jr]++;if(this.ts||(this.ts=t),this.dt=t-this.ts,this.ts=t,this.queue=[],this[At]=1,this[je]++,r.length)for(let n=0,o=dh(r),l=o.length;n<l;n++){let h=o[n];typeof h=="string"&&this.listeners[h]?e.listeners[h].forEach(function(a){if(a.tick instanceof Function)return a.tick(e,h);if(a instanceof Function)return a(e,h)}):h instanceof Function?h(e.dt,e):h.tick&&h.tick(e.dt,e)}return this[At]=this[Rt]?0:-1,e.$promise&&(e.$resolve(e),e.$promise=e.$resolve=null),e.listeners.raf&&e.add("raf"),e}[tn](){return this[Rt]||(this[Rt]=!0,this[At]==-1&&(this[At]=0),mh(this[en])),this}schedule(t,e){var r,s;return e||(e=t[r=this.id]||(t[r]={value:!0})),(e[s=this.id]||(e[s]=new Gr({owner:this,target:t}))).update(e,!0)}unschedule(t,e={}){e||(e=t[this.id]);let r=e&&e[this.id];return r&&r.active&&r.deactivate(),this}},A=new $r;function M(){return A.add("commit").promise}function gh(i,t){return globalThis.setTimeout(function(){i(),M()},t)}function yh(i,t){return globalThis.setInterval(function(){i(),M()},t)}var bh=globalThis.clearInterval,_h=globalThis.clearTimeout,Qt=globalThis.imba||(globalThis.imba={});Qt.commit=M;Qt.setTimeout=gh;Qt.setInterval=yh;Qt.clearInterval=bh;Qt.clearTimeout=_h;var rn={on:function(i,t){return V(this,i,t)},inited:function(i){return D(this,"inited",[i])}};function Vu(){return!0}function Hu(i,t,e){if(e.get){let r=e.get;e.get=function(){let s=r.call(this);return Object.defineProperty(this,t,{enumerable:!1,value:s}),s}}return e}import cn from"cluster";import tt from"fs";import Ot from"path";import{EventEmitter as Sh}from"events";import wh from"http";function Z(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var un=Symbol.for("#setup"),sn=Symbol.for("#__initor__"),nn=Symbol.for("#__inited__"),on=Symbol.for("#__init__"),ln=Symbol.for("#setup?"),vh=Symbol.for("#dom"),xh=Symbol.for("#server"),hn=Symbol(),Br={html:{"Content-Type":"text/html; charset=utf-8"},js:{"Content-Type":"text/javascript; charset=utf-8"},cjs:{"Content-Type":"text/javascript; charset=utf-8"},mjs:{"Content-Type":"text/javascript; charset=utf-8"},json:{"Content-Type":"application/json; charset=utf-8"},css:{"Content-Type":"text/css; charset=utf-8"},map:{"Content-Type":"application/json; charset=utf-8"},otf:{"Content-Type":"font/otf"},ttf:{"Content-Type":"font/ttf"},woff:{"Content-Type":"font/woff"},woff2:{"Content-Type":"font/woff2"},svg:{"Content-Type":"image/svg+xml"},avif:{"Content-Type":"image/avif"},gif:{"Content-Type":"image/gif"},png:{"Content-Type":"image/png"},apng:{"Content-Type":"image/apng"},webp:{"Content-Type":"image/webp"},jpg:{"Content-Type":"image/jpeg"},jpeg:{"Content-Type":"image/jpeg"},ico:{"Content-Type":"image/x-icon"},bmp:{"Content-Type":"image/bmp"},pdf:{"Content-Type":"application/pdf"},webm:{"Content-Type":"video/webm"},weba:{"Content-Type":"audio/webm"},avi:{"Content-Type":"video/x-msvideo"},mp3:{"Content-Type":"audio/mpeg"},mp4:{"Content-Type":"video/mp4"},m4a:{"Content-Type":"audio/m4a"},mov:{"Content-Type":"video/quicktime"},wmv:{"Content-Type":"video/x-ms-wmv"},mpeg:{"Content-Type":"video/mpeg"},wav:{"Content-Type":"audio/wav"},ogg:{"Content-Type":"audio/ogg"},ogv:{"Content-Type":"video/ogg"},oga:{"Content-Type":"audio/ogg"},opus:{"Content-Type":"audio/opus"}},H=globalThis.process,zr=class extends Set{call(t,...e){var r;r=[];for(let s of Z(this))r.push(s[t](...e));return r}close(t={}){var e;e=[];for(let r of Z(this))e.push(r.close(t));return e}reload(t={}){var e;e=[];for(let r of Z(this))e.push(r.reload(t));return e}broadcast(t,...e){var r;r=[];for(let s of Z(this))r.push(s.broadcast(t,...e));return r}emit(t,e){var r;r=[];for(let s of Z(this))r.push(s.emit(t,e));return r}},Jt=new zr,an=new(class extends Sh{static[on](){return this.prototype[sn]=hn,this}constructor(){var t;super(...arguments),t=this,this.autoreload=!1,this.state={},globalThis.IMBA_RUN&&cn.isWorker&&H.on("message",function(e){if(t.emit("message",e),e[0]=="emit")return t.emit(...e.slice(1))}),this[sn]===hn&&this[nn]&&this[nn]()}[un](){var t=this;if(this[ln]!=!0&&(this[ln]=!0,!0))return this.on("rebuild",function(e){let r=globalThis.IMBA_MANIFEST;return globalThis.IMBA_MANIFEST=e,Jt.broadcast("rebuild",e)}),t.on("reloading",function(e){var r;t.state.reloading=!0,r=[];for(let s of Z(Jt))r.push(s.pause());return r}),t.on("reloaded",async function(e){var r;t.state.reloaded=!0,Jt.broadcast("reloaded"),await new Promise(function(n){return setTimeout(n,100)}),r=[];for(let n of Z(Jt))r.push(n.close());let s=r;return setTimeout(function(){return H.exit(0)},100),await Promise.all(s),H.exit(0)}),!0}send(t){if(H.send instanceof Function)return H.send(t)}on(t,e){return super.on(...arguments)}reload(){if(!(this.isReloading!=!0&&(this.isReloading=!0,!0)))return this;if(this.state.reloading=!0,!H.env.IMBA_SERVE){console.warn("not possible to gracefully reload servers not started via imba start");return}this.send("reload")}}[on]());function fn(i,t=[],e=0){let r=globalThis.IMBA_MANIFEST[i];if(t.indexOf(i)>=0)return t;if(r?.imports)for(let s=0,n=Z(r?.imports),o=n.length;s<o;s++){let l=n[s];t.push(l),fn(l,t,e+1)}return t}var Ur=class{constructor(t,e,r={}){this.server=t,this.url=e,[this.pathname,this.query]=e.split("?"),this.ext=Ot.extname(this.pathname),this.headers={"Content-Type":"text/plain","Access-Control-Allow-Origin":"*","cache-control":"public, max-age=31536000"},Object.assign(this.headers,t.options.assetHeaders||{}),Object.assign(this.headers,Br[this.ext.slice(1)]||{}),this.headers["max-age"]=864e5,r.imports&&t.options.preload!==!1&&(this.headers.Link=fn(e).map(function(s){return"<"+s+">; rel=modulepreload; as=script"}).join(", ")),this.path=t.localPathForUrl(e)}respond(t,e){var r=this;return tt.access(this.path,tt.constants.R_OK,function(s){if(s)return e.writeHead(404,{}),e.end();try{if(r.server.options.setHeaders&&r.server.options.setHeaders(e,r.path),globalThis.BUN)return tt.readFile(r.path,function(n,o){return e.writeHead(200,r.headers),e.end(o)});{let n=tt.createReadStream(r.path);return e.writeHead(200,r.headers),n.pipe(e)}}catch{return e.writeHead(503,{}),e.end()}})}createReadStream(){return tt.createReadStream(this.path)}pipe(t){return this.createReadStream().pipe(t)}},qr=class{static wrap(t,e={}){return new this(t,e)}localPathForUrl(t){var e,r,s;let n=t.replace(/\?.*$/,"");return(e=this.urlToLocalPathMap)[n]==null?e[n]=(r=Ot.resolve(this.publicPath,"."+n),s=tt.existsSync(r)&&r,!s&&this.staticDir&&(r=Ot.resolve(this.staticDir,"."+n),s=tt.existsSync(r)&&r),s):e[n]}headersForAsset(t){let e,r=Ot.extname(t);return e=Object.assign({"Content-Type":"text/plain","Access-Control-Allow-Origin":"*","cache-control":"public"},Br[r.slice(1)]||{})}get manifest(){return globalThis.IMBA_MANIFEST||{}}constructor(t,e={}){var r=this;Jt.add(this),this.id=Math.random(),this.options=e,this.closed=!1,this.paused=!1,this.server=t,this.clients=new Set,this.stalledResponses=[],this.assetResponders={},this.urlToLocalPathMap={},this.publicExistsMap={};try{this.rootDir=H.env.IMBA_OUTDIR||Ot.dirname(H.env.pm_exec_path||H.argv[1])}catch{}try{this.publicPath=Ot.resolve(this.rootDir,H.env.IMBA_PUBDIR||globalThis.IMBA_PUBDIR||"public")}catch{}this.staticDir=globalThis.IMBA_STATICDIR||"",H.env.IMBA_PATH&&(this.devtoolsPath=Ot.resolve(H.env.IMBA_PATH,"dist","hmr.js")),this.scheme=t instanceof wh.Server?"http":"https";let s=this.server._events.request,n=globalThis[vh];t.off("request",s),s[xh]=this,t.on("listening",function(){let o=r.server.address(),l=o.address;(l=="::"||l=="0.0.0.0")&&(l="localhost");let h=""+r.scheme+"://"+l+":"+o.port+"/";if(!H.env.IMBA_CLUSTER)return console.log("listening on "+h)}),globalThis.IMBA_HMR&&(globalThis.IMBA_HMR_PATH="/__hmr__.js"),r.handler=function(o,l){var h,a;let c=o.constructor.name=="Http2ServerRequest",u=o.url;if(r.paused||r.closed)return l.statusCode=302,l.setHeader("Location",o.url),c||l.setHeader("Connection","close"),r.closed?(c&&o.stream.session.close(),l.end()):r.stalledResponses.push(l);if(globalThis.IMBA_HMR){if(u=="/__hmr__.js"&&r.devtoolsPath){let m=tt.createReadStream(r.devtoolsPath);return l.writeHead(200,Br.js),m.pipe(l)}if(u=="/__hmr__"){let m={"Content-Type":"text/event-stream","Cache-Control":"no-cache"};return c||(m.Connection="keep-alive"),l.writeHead(200,m),r.clients.add(l),r.broadcast("init",globalThis.IMBA_MANIFEST,[l]),o.on("close",function(){return r.clients.delete(l)}),!0}}let p=o.headers,b;c?b=p[":scheme"]+"://"+p[":authority"]:b=(o.connection.encrypted?"https":"http")+"://"+p.host;let f=r.manifest[u];if(f&&r.localPathForUrl(u))return((a=r.assetResponders)[u]||(a[u]=new Ur(r,u,f))).respond(o,l);if((u.match(/\.[A-Z\d]{8}\./)||u.match(/\.\w{1,4}($|\?)/))&&(h=r.localPathForUrl(u)))try{let m=r.headersForAsset(h);if(e.setHeaders&&e.setHeaders(l,h),globalThis.BUN)return tt.readFile(h,function(_,S){return _?(l.writeHead(500,{}),l.write("Error getting the file: "+_)):(l.writeHead(200,m),l.end(S))});{let _=tt.createReadStream(h);return l.writeHead(200,m),_.pipe(l)}}catch{return l.writeHead(503,{}),l.end()}if(n){let m=new n.Location(o.url,b);return n.Document.create({location:m},function(){return s(o,l)})}else return s(o,l)},t.on("request",r.handler),t.on("close",function(){return console.log("server is closing!!!")}),globalThis.IMBA_RUN&&cn.isWorker&&(an[un](),an.send("serve"))}broadcast(t,e={},r=this.clients){e=JSON.stringify(e);let s="data: "+e+`
`;for(let n of Z(r))n.write("event: "+t+`
`),n.write(`id: imba
`),n.write(s);return this}pause(){return this.paused!=!0&&(this.paused=!0,!0)&&this.broadcast("paused"),this}resume(){if(this.paused!=!1&&(this.paused=!1,!0))return this.broadcast("resumed"),this.flushStalledResponses()}flushStalledResponses(){for(let t=0,e=Z(this.stalledResponses),r=e.length;t<r;t++)e[t].end();return this.stalledResponses=[]}close(){var t=this;return this.pause(),new Promise(function(e){return t.closed=!0,t.server.close(e),t.flushStalledResponses()})}};function Ku(i,...t){return qr.wrap(i,...t)}import dn from"path";var Xu=new class{get rootDir(){return process.env.IMBA_OUTDIR||dn.dirname(process.env.pm_exec_path||process.argv[1])}get publicPath(){return dn.resolve(this.rootDir,process.env.IMBA_PUBDIR||globalThis.IMBA_PUBDIR||"public")}};function Th(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var W={"":[-1,{id:1,slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",width:1,height:1,referrerPolicy:"referrerpolicy",decoding:1,name:1,lowsrc:1,align:1,hspace:1,vspace:1,longDesc:"longdesc",border:1,loading:1}],HTMLInput:[1,{accept:1,alt:1,autocomplete:1,dirName:"dirname",formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",height:1,max:1,maxLength:"maxlength",min:1,minLength:"minlength",name:1,pattern:1,placeholder:1,src:1,step:1,type:1,defaultValue:"value",value:1,width:1,align:1,useMap:"usemap",required:1}],HTMLLabel:[1,{htmlFor:"for"}],HTMLLegend:[1,{align:1}],HTMLLI:[1,{value:1,type:1}],HTMLLink:[1,{href:1,crossOrigin:"crossorigin",rel:1,relList:"rel",media:1,hreflang:1,type:1,as:1,referrerPolicy:"referrerpolicy",sizes:1,imageSrcset:"imagesrcset",imageSizes:"imagesizes",charset:1,rev:1,target:1,integrity:1}],HTMLMap:[1,{name:1}],HTMLMenu:[1,{}],HTMLMeta:[1,{name:1,httpEquiv:"http-equiv",content:1,scheme:1,property:1,charset:1}],HTMLMeter:[1,{value:1,min:1,max:1,low:1,high:1,optimum:1}],HTMLObject:[1,{data:1,type:1,name:1,useMap:"usemap",width:1,height:1,align:1,archive:1,code:1,hspace:1,standby:1,vspace:1,codeBase:"codebase",codeType:"codetype",border:1}],HTMLOList:[1,{start:1,type:1}],HTMLOptGroup:[1,{label:1}],HTMLOption:[1,{label:1,value:1}],HTMLOutput:[1,{htmlFor:"for",name:1}],HTMLParagraph:[1,{align:1}],HTMLParam:[1,{name:1,value:1,type:1,valueType:"valuetype"}],HTMLPicture:[1,{}],HTMLPre:[1,{width:1}],HTMLProgress:[1,{value:1,max:1}],HTMLScript:[1,{src:1,type:1,charset:1,crossOrigin:"crossorigin",referrerPolicy:"referrerpolicy",event:1,htmlFor:"for",integrity:1,defer:1,async:1}],HTMLSelect:[1,{autocomplete:1,name:1,size:1,value:1,required:1}],HTMLSlot:[1,{name:1}],HTMLSource:[1,{src:1,type:1,srcset:1,sizes:1,media:1}],HTMLSpan:[1,{}],HTMLStyle:[1,{media:1,type:1}],HTMLTable:[1,{align:1,border:1,frame:1,rules:1,summary:1,width:1,bgColor:"bgcolor",cellPadding:"cellpadding",cellSpacing:"cellspacing"}],HTMLTableSection:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign"}],HTMLTableCell:[1,{colSpan:"colspan",rowSpan:"rowspan",headers:1,align:1,axis:1,height:1,width:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor",abbr:1,scope:1}],HTMLTemplate:[1,{}],HTMLTextArea:[1,{autocomplete:1,cols:1,dirName:"dirname",maxLength:"maxlength",minLength:"minlength",name:1,placeholder:1,rows:1,wrap:1}],HTMLTime:[1,{dateTime:"datetime"}],HTMLTitle:[1,{}],HTMLTableRow:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor"}],HTMLTrack:[1,{kind:1,src:1,srclang:1,label:1}],HTMLUList:[1,{type:1}],HTMLVideo:[4,{width:1,height:1,poster:1}],SVG:[-1,{}],SVGGraphics:[66,{transform:1}],SVGA:[67,{}],SVGAnimation:[66,{}],SVGAnimate:[69,{}],SVGAnimateMotion:[69,{}],SVGAnimateTransform:[69,{}],SVGGeometry:[67,{}],SVGCircle:[73,{cx:1,cy:1,r:1}],SVGClipPath:[67,{clipPathUnits:1}],SVGDefs:[67,{}],SVGDesc:[66,{}],SVGDiscard:[66,{}],SVGEllipse:[73,{cx:1,cy:1,rx:1,ry:1}],SVGFEBlend:[66,{mode:1,x:1,y:1,width:1,height:1}],SVGFEColorMatrix:[66,{type:1,values:1,x:1,y:1,width:1,height:1}],SVGFEComponentTransfer:[66,{x:1,y:1,width:1,height:1}],SVGFEComposite:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEConvolveMatrix:[66,{orderX:1,orderY:1,kernelMatrix:1,divisor:1,edgeMode:1,x:1,y:1,width:1,height:1}],SVGFEDiffuseLighting:[66,{surfaceScale:1,diffuseConstant:1,x:1,y:1,width:1,height:1}],SVGFEDisplacementMap:[66,{xChannelSelector:1,yChannelSelector:1,x:1,y:1,width:1,height:1}],SVGFEDistantLight:[66,{}],SVGFEDropShadow:[66,{dx:1,dy:1,stdDeviationX:1,stdDeviationY:1,x:1,y:1,width:1,height:1}],SVGFEFlood:[66,{x:1,y:1,width:1,height:1}],SVGComponentTransferFunction:[66,{type:1,tableValues:1,slope:1,amplitude:1,exponent:1}],SVGFEFuncA:[90,{}],SVGFEFuncB:[90,{}],SVGFEFuncG:[90,{}],SVGFEFuncR:[90,{}],SVGFEGaussianBlur:[66,{x:1,y:1,width:1,height:1}],SVGFEImage:[66,{preserveAspectRatio:1,x:1,y:1,width:1,height:1}],SVGFEMerge:[66,{x:1,y:1,width:1,height:1}],SVGFEMergeNode:[66,{}],SVGFEMorphology:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEOffset:[66,{x:1,y:1,width:1,height:1}],SVGFEPointLight:[66,{}],SVGFESpecularLighting:[66,{surfaceScale:1,specularConstant:1,specularExponent:1,x:1,y:1,width:1,height:1}],SVGFESpotLight:[66,{specularExponent:1}],SVGFETile:[66,{x:1,y:1,width:1,height:1}],SVGFETurbulence:[66,{numOctaves:1,stitchTiles:1,type:1,x:1,y:1,width:1,height:1}],SVGFilter:[66,{filterUnits:1,primitiveUnits:1,x:1,y:1,width:1,height:1}],SVGForeignObject:[67,{x:1,y:1,width:1,height:1}],SVGG:[67,{}],SVGImage:[67,{x:1,y:1,width:1,height:1,preserveAspectRatio:1}],SVGLine:[73,{x1:1,y1:1,x2:1,y2:1}],SVGGradient:[66,{gradientUnits:1,gradientTransform:1,spreadMethod:1}],SVGLinearGradient:[111,{x1:1,y1:1,x2:1,y2:1}],SVGMarker:[66,{refX:1,refY:1,markerUnits:1,markerWidth:1,markerHeight:1,orientType:1,orientAngle:1,viewBox:1,preserveAspectRatio:1}],SVGMask:[66,{maskUnits:1,maskContentUnits:1,x:1,y:1,width:1,height:1}],SVGMetadata:[66,{}],SVGMPath:[66,{}],SVGPath:[73,{}],SVGPattern:[66,{patternUnits:1,patternContentUnits:1,patternTransform:1,x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGPolygon:[73,{}],SVGPolyline:[73,{}],SVGRadialGradient:[111,{cx:1,cy:1,r:1,fx:1,fy:1,fr:1}],SVGRect:[73,{x:1,y:1,width:1,height:1,rx:1,ry:1}],SVGScript:[66,{}],SVGSet:[69,{}],SVGStop:[66,{}],SVGStyle:[66,{}],SVGSVG:[67,{x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGSwitch:[67,{}],SVGSymbol:[66,{viewBox:1,preserveAspectRatio:1}],SVGTextContent:[67,{textLength:1,lengthAdjust:1}],SVGTextPositioning:[130,{x:1,y:1,dx:1,dy:1,rotate:1}],SVGText:[131,{}],SVGTextPath:[130,{startOffset:1,method:1,spacing:1}],SVGTitle:[66,{}],SVGTSpan:[131,{}],SVGUse:[67,{x:1,y:1,width:1,height:1}],SVGView:[66,{viewBox:1,preserveAspectRatio:1}]},T={a:2,abbr:1,address:1,area:3,article:1,aside:1,audio:5,b:1,base:6,bdi:1,bdo:1,blockquote:7,body:8,br:9,button:10,canvas:11,caption:12,cite:1,code:1,col:13,colgroup:13,data:14,datalist:15,dd:1,del:16,details:17,dfn:1,dialog:18,div:19,dl:20,dt:1,em:1,embed:21,fieldset:22,figcaption:1,figure:1,footer:1,form:23,h1:24,h2:24,h3:24,h4:24,h5:24,h6:24,head:25,header:1,hgroup:1,hr:26,html:27,i:1,iframe:28,img:29,input:30,ins:16,kbd:1,label:31,legend:32,li:33,link:34,main:1,map:35,mark:1,menu:36,meta:37,meter:38,nav:1,noscript:1,object:39,ol:40,optgroup:41,option:42,output:43,p:44,param:45,picture:46,pre:47,progress:48,q:7,rp:1,rt:1,ruby:1,s:1,samp:1,script:49,section:1,select:50,slot:51,small:1,source:52,span:53,strike:1,strong:1,style:54,sub:1,summary:1,sup:1,table:55,tbody:56,td:57,template:58,textarea:59,tfoot:56,th:57,thead:56,time:60,title:61,tr:62,track:63,u:1,ul:64,var:1,video:65,wbr:1,svg_a:68,svg_animate:70,svg_animateMotion:71,svg_animateTransform:72,svg_audio:66,svg_canvas:66,svg_circle:74,svg_clipPath:75,svg_defs:76,svg_desc:77,svg_discard:78,svg_ellipse:79,svg_feBlend:80,svg_feColorMatrix:81,svg_feComponentTransfer:82,svg_feComposite:83,svg_feConvolveMatrix:84,svg_feDiffuseLighting:85,svg_feDisplacementMap:86,svg_feDistantLight:87,svg_feDropShadow:88,svg_feFlood:89,svg_feFuncA:91,svg_feFuncB:92,svg_feFuncG:93,svg_feFuncR:94,svg_feGaussianBlur:95,svg_feImage:96,svg_feMerge:97,svg_feMergeNode:98,svg_feMorphology:99,svg_feOffset:100,svg_fePointLight:101,svg_feSpecularLighting:102,svg_feSpotLight:103,svg_feTile:104,svg_feTurbulence:105,svg_filter:106,svg_foreignObject:107,svg_g:108,svg_iframe:66,svg_image:109,svg_line:110,svg_linearGradient:112,svg_marker:113,svg_mask:114,svg_metadata:115,svg_mpath:116,svg_path:117,svg_pattern:118,svg_polygon:119,svg_polyline:120,svg_radialGradient:121,svg_rect:122,svg_script:123,svg_set:124,svg_stop:125,svg_style:126,svg_svg:127,svg_switch:128,svg_symbol:129,svg_text:132,svg_textPath:133,svg_title:134,svg_tspan:135,svg_unknown:66,svg_use:136,svg_video:66,svg_view:137},Kr=Object.keys(W);for(let i=0,t=Th(Kr),e=t.length;i<e;i++){let r=t[i],s=W[r];s.name=r+"Element",s.up=W[Kr[s[0]]]}for(let i=0,t=Object.keys(T),e=t.length,r,s;i<e;i++)r=t[i],s=T[r],T[r]=W[Kr[s]],r.indexOf("svg_")==0&&(T[r.replace("_",":")]=T[r]);import{AsyncLocalStorage as pn}from"async_hooks";var mn=Symbol.for("#toStringDeopt");var gn=Symbol.for("#symbols"),yn=Symbol.for("#batches"),bn=Symbol.for("#extras"),_n=Symbol.for("#stacks"),Mt=class{constructor(t){this.dom=t,this.string=""}contains(t){return this.dom.classList.contains(t)}add(t){return this.contains(t)?this:(this.string+=(this.string?" ":"")+t,this.dom.classList.add(t),this)}remove(t){if(!this.contains(t))return this;let e=new RegExp("(^|\\s)"+t+"(?=\\s|$)","g");return this.string=this.string.replace(e,""),this.dom.classList.remove(t),this}toggle(t,e){return e===void 0&&(e=!this.contains(t)),e?this.add(t):this.remove(t)}incr(t,e=0){var r=this;let s=this.stacks,n=s[t]||0;return n<1&&this.add(t),e>0&&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[gn],s=this[yn],n=!0;if(!r)r=this[gn]=[t],s=this[yn]=[e||""],this.toString=this.valueOf=this[mn];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[bn]=" "+s.join(" "),this.sync())}valueOf(){return this.string}toString(){return this.string}[mn](){return this.string+(this[bn]||"")}sync(){return this.dom.flagSync$()}get stacks(){return this[_n]||(this[_n]={})}};var Ge=Symbol.for("#__init__"),vn=Symbol.for("#__initor__"),xn=Symbol.for("#__inited__"),Yr=Symbol.for("#getRenderContext"),Lh=Symbol.for("#getDynamicContext"),Sn=Symbol(),C={context:null},Wr=class{constructor(t=null){this[Ge](t)}[Ge](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()}},Zt=new Wr,X=class extends Map{static[Ge](){return this.prototype[vn]=Sn,this}constructor(t,e=null){super(),this._=t,this.sym=e,this[vn]===Sn&&this[xn]&&this[xn]()}pop(){return C.context=null}[Yr](t){let e=this.get(t);return e||this.set(t,e=new X(this._,t)),C.context=e}[Lh](t,e){return this[Yr](t)[Yr](e)}run(t){return this.value=t,C.context==this&&(C.context=null),this.get(t)}cache(t){return this.set(this.value,t),t}};X[Ge]();function wn(i,t=Symbol(),e=i){return C.context=i[t]||(i[t]=new X(e,t))}function ic(){let i=C.context,t=i||new X(null);return globalThis.DEBUG_IMBA&&!i&&Zt.stack.length>0&&console.warn("detected unmemoized nodes in",Zt.stack.slice(0),"see https://imba.io",t),i&&(C.context=null),t}function ei(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var B=Symbol.for("#__initor__"),z=Symbol.for("#__inited__"),w=Symbol.for("#__init__"),ri=Symbol.for("#parent"),Kn=Symbol.for("#context"),Tn=Symbol.for("#closestNode"),Nh=Symbol.for("#parentNode"),Ch=Symbol.for("##inited"),Xr=Symbol.for("#getRenderContext"),Oh=Symbol.for("#getDynamicContext"),Qr=Symbol.for("#replaceChild"),se=Symbol.for("#appendChild"),Ln=Symbol.for("#removeChild"),dt=Symbol.for("#insertInto"),Nn=Symbol.for("#insertChild"),te=Symbol.for("#removeFrom"),Cn=Symbol.for("#removeFromDeopt"),Vt=Symbol.for("#replaceWith"),On=Symbol.for("#replaceWithDeopt"),Jr=Symbol.for("#placeholderNode"),Mh=Symbol.for("#attachToParent"),Ph=Symbol.for("#detachFromParent"),kh=Symbol.for("#placeChild"),Eh=Symbol.for("#beforeReconcile"),Fh=Symbol.for("#afterReconcile"),Ih=Symbol.for("#afterVisit"),Ah=Symbol.for("#visitContext"),Mn=Symbol.for("#document"),qe=Symbol.for("#htmlNodeName"),Pn=Symbol.for("#ImbaElement"),kn=Symbol.for("#flags"),Ke=Symbol.for("#scripts"),Zr=Symbol.for("#location"),En=Symbol.for("##document"),Yn=Symbol.for("##parent"),Rh=Symbol.for("##up"),Fn=Symbol.for("##context"),ee=Symbol.for("#domNode"),$e=Symbol.for("##placeholderNode"),In=Symbol.for("#domDeopt"),Vh=Symbol.for("#insertIntoDeopt"),An=Symbol.for("##classList"),Be=Symbol.for("##style"),Rn=Symbol.for("##dataset"),nt=Symbol.for("#asset"),ti=Symbol.for("#innerHTML"),ze=Symbol.for("##visitContext"),Dh=Symbol.for("#isRichElement"),re=Symbol.for("#src"),Hh=Symbol.for("#getSlot"),jh=Symbol.for("#cssns"),Gh=Symbol.for("#cssid"),$h=Symbol.for("#dom"),Vn=Symbol(),Dn=Symbol(),Hn=Symbol(),jn=Symbol(),Gn=Symbol(),$n=Symbol(),Bh={},ie=null,ne=class extends URL{},Bn=class{get document(){return this[Mn]||(this[Mn]=new this.Document(this))}get location(){return this.document.location}};function uc(){return!0}var zh={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ot=null,Wn={},ii=class{define(){return this}get(){return this}upgrade(){}whenDefined(){}},cc=new ii,Uh={};function pt(i,t){let e=i;if(typeof i=="string"&&(i=W[i]||T[i]||W[i+"Element"]||T["svg_"+i]),i instanceof L)return i;if(!i)return pt("HTML");if(i&&!i.klass){class r extends pt(i.up){}i.klass=r}if(i&&!i.idl){i.idl=!0;let r=Object.getOwnPropertyDescriptors(i.klass.prototype);for(let s=i[1],n=0,o=Object.keys(s),l=o.length,h,a;n<l;n++){h=o[n],a=s[h];let c=a==1?h:a;r[c]||c=="style"||Object.defineProperty(i.klass.prototype,h,{set:function(u){this.setAttribute(c,u)},get:function(){return this.getAttribute(c)}})}}return i.klass}function dc(i,t,e){let r=pt(i,t);if(!(r==e||r.prototype instanceof e||r.prototype[qe])){let n=r.prototype[Pn];if(!n){n=class extends r{static[w](){return this.prototype[B]=Vn,this}constructor(){super(...arguments),this.__slots={},this.__F=0,this[B]===Vn&&this[z]&&this[z]()}}[w](),r.prototype[Pn]=n;let o=Object.getOwnPropertyDescriptors(e.prototype);Object.defineProperties(n.prototype,o),n.prototype[qe]=i}return n}return r}var Ue=function(i){let t=typeof i=="string"?i:String(i);return t.indexOf('"')>=0&&(t=t.replace(/\"/g,"&quot;")),t},si=function(i,t){let e=typeof i=="string"?i:String(i);return t=="script"||(e.indexOf('"')>=0&&(e=e.replace(/\"/g,"&quot;")),e.indexOf("<")>=0&&(e=e.replace(/\</g,"&lt;")),e.indexOf(">")>=0&&(e=e.replace(/\>/g,"&gt;"))),e},et=class{static create(t,e){let r=new et;return r[Kn]=t,r.location=t.location,ie||(ie=new pn),ie.run(r,e),r}constructor(){}get flags(){return this[kn]||(this[kn]=new Mt({classList:new Dt(this)}))}get scripts(){return this[Ke]||(this[Ke]=[])}set location(t){typeof t=="string"&&(t=new ne(t)),this[Zr]=t}get location(){return this[Zr]||(this[Zr]=new ne("http://localhost/"))}createElement(t){let e=pt(t),r=new e(t);return r.nodeName=t,r}createElementNS(t,e){if(t=="http://www.w3.org/2000/svg"){let r=pt("svg_"+e),s=new r;return s.nodeName=e,s}return this.createElement(e)}createTextNode(t){return new Pt(t)}createComment(t){return new lt(t)}createDocumentFragment(){return new le}getElementById(t){return null}},ht=new et,zn=ht;function me(){return ie&&ie?.getStore?.()||ht}var Dt=class{constructor(t,e){this.classes=e||[],this.dom=t}add(t){return this.classes.indexOf(t)<0&&this.classes.push(t),this}remove(t){let e=this.classes.indexOf(t);return e>=0&&(this.classes[e]=""),this}toggle(t){return this.contains(t)?this.remove(t):this.add(t),this}contains(t){return this.classes.indexOf(t)>=0}clone(t){return new Dt(t,this.classes.slice(0))}toString(){return this.classes.join(" ").trim()}},ni=class{constructor(){}removeProperty(t){var e;return e=this[t],delete this[t],e}setProperty(t,e){return this[t]=e}toString(){let t=[];for(let e=this,r=0,s=Object.keys(e),n=s.length,o,l;r<n;r++)o=s[r],l=e[o],l instanceof Function||t.push(""+o+": "+l);return t.join(";")}},oe=class{static wrap(t){return new Proxy(t.attributes,new oe)}set(t,e,r){return t["data-"+e]=r,!0}get(t,e){return t["data-"+e]}},qh={get(i,t){let e=i,r;for(;e&&r==null;)(e=e[ri])&&(r=e[t]);return r}},L=class{toString(){return this.outerHTML}get outerHTML(){return""}text$(t){return this.textContent=t,this}get ownerDocument(){return this[En]||(this[En]=me())}get[ri](){return this[Yn]||this.parentNode||this[Rh]}get[Kn](){return this[Fn]||(this[Fn]=new Proxy(this,qh))}get[Tn](){return this}get[Nh](){return this[ri][Tn]}[w](){return this}[Ch](){return this}[Xr](t){return wn(this,t)}[Oh](t,e){return this[Xr](t)[Xr](e)}[Qr](t,e){let r=this[Nn](t,e);return this[Ln](e),r}[se](t){return t[dt](this,null)}[Ln](t){return t[te](this)}[dt](t,e){return e?t.insertBefore(this,e):t.appendChild(this),this}[Nn](t,e){return t[dt](this,e)}[te](t){return t.removeChild(this)}[Cn](t){return t.removeChild(this[ee]||this)}[Vt](t,e){return e[Qr](t,this)}[On](t,e){return e[Qr](t,this[ee]||this)}get[Jr](){return this[$e]||(this[$e]=ht.createComment("placeholder"))}set[Jr](t){let e=this[$e];this[$e]=t,e&&e!=t&&e.parentNode&&e[Vt](t)}[Mh](){let t=this[ee],e=t&&t.parentNode;return t&&e&&t!=this&&(this[ee]=null,this[dt](e,t),t[te](e)),this}[Ph](){this[In]!=!0&&(this[In]=!0,!0)&&(this[Vt]=this[On],this[te]=this[Cn],this[dt]=this[Vh]);let t=this[Jr];return this.parentNode&&t!=this&&(t[dt](this.parentNode,this),this[te](this.parentNode)),this[ee]=t,this}[kh](t,e,r){let s=typeof t;if(s==="undefined"||t===null){if(r&&r instanceof lt)return r;let n=new lt("");return r?r[Vt](n,this):n[dt](this,null)}if(t===r)return t;if(s!=="object"){let n,o=t;return e&128&&e&256,r?r instanceof Pt?(r.textContent=o,r):(n=zn.createTextNode(o),r[Vt](n,this),n):(this.appendChild(n=zn.createTextNode(o)),n)}else return r?r[Vt](t,this):t[dt](this,null)}},Pt=class extends L{static[w](){return this.prototype[B]=Dn,this}constructor(t){super(),this.textContent=t??"",this[B]===Dn&&this[z]&&this[z]()}get outerHTML(){return this.textContent}};Pt[w]();var lt=class extends L{static[w](){return this.prototype[B]=Hn,this}constructor(t){super(),this.value=t,this[B]===Hn&&this[z]&&this[z]()}get outerHTML(){return"<!-- "+si(this.value)+" -->"}toString(){return this.tag&&this.tag.toNodeString?this.tag.toNodeString():this.outerHTML}};lt[w]();var d=class extends L{static[w](){return this.prototype[B]=jn,this}constructor(t){super(),this.nodeName=t,this.childNodes=[],this.attributes={},this[B]===jn&&this[z]&&this[z]()}emit(t,e,r={bubbles:!0}){console.warn("Element#emit not supported on node")}get classList(){return this[An]||(this[An]=new Dt(this))}get style(){return this[Be]||(this[Be]=new ni)}get dataset(){return this[Rn]||(this[Rn]=oe.wrap(this))}get richValue(){return this.value}set richValue(t){this.value=t}set asset(t){this[nt]=t}get asset(){return this[nt]}flag$(){return this}flagIf$(){return this}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t}removeChild(t){let e=this.childNodes.indexOf(t);return e>=0&&this.childNodes.splice(e,1),this}replaceChild(t,e){let r=this.childNodes.indexOf(e);return r>=0&&(this.childNodes.splice(r,1,t),t.parentNode=this),e}insertBefore(t,e){let r=this.childNodes.indexOf(e);return this.childNodes.splice(r,0,t),this}setAttribute(t,e){return this.attributes[t]=e,this}setAttributeNS(t,e,r){return this.setAttribute(t+":"+e,r)}getAttribute(t){return this.attributes?this.attributes[t]:void 0}getAttributeNS(t,e){return this.getAttribute(t+":"+e)}removeAttribute(t){var e;return e=this.attributes[t],delete this.attributes[t],!0}addEventListener(){return this}removeEventListener(){return this}resolve(){return this}set innerHTML(t){this[ti]=t}get innerHTML(){let t="";if(this[ti])return this[ti];if(this.textContent!=null)return si(this.textContent);for(let e=0,r=ei(this.childNodes),s=r.length;e<s;e++){let n=r[e];typeof n=="string"||n instanceof String?t+=si(n,this.nodeName):typeof n=="number"||n instanceof Number?t+=""+n:n&&(t+=n.outerHTML)}return t}get outerHTML(){let t=this.nodeName,e=this[qe],r=""+t;e&&(r=""+e+" is='"+t+"'",t=e);let s,n=this.classList.toString();this.dehydrate&&(n=n?"_ssr_ "+n:"_ssr_",this.dehydrate()),(s=this.id)&&(r+=' id="'+Ue(s)+'"'),n&&(r+=' class="'+Ue(n)+'"');for(let o=this.attributes,l=0,h=Object.keys(o),a=h.length,c,u;l<a;l++)c=h[l],u=o[c],r+=" "+c+'="'+Ue(u)+'"';return this[Be]&&(r+=' style="'+Ue(this[Be].toString())+'"'),zh[t]?"<"+r+">":"<"+r+">"+this.innerHTML+"</"+t+">"}get firstChild(){return this.childNodes[0]}get lastChild(){return this.childNodes[this.childNodes.length-1]}get firstElementChild(){let t=this.childNodes.length,e=0;for(;e<t;){let r=this.childNodes[e++];if(r instanceof d)return r}return null}get lastElementChild(){let t=this.childNodes.length;for(;t>0;){let e=this.childNodes[--t];if(e instanceof d)return e}return null}get className(){return this.classList.toString()}set className(t){this.classList.classes=(t||"").split(" "),this.classList.toString()}log(...t){return console.log(...t)}text$(t){return this.textContent=t,this}[Eh](){return this}[Fh](){return this}[Ih](){this.render&&this.render(),this[ze]&&(this[ze]=null)}get[Ah](){return this[ze]||(this[ze]={})}get flags(){return this.$flags||(this.$flags=new Mt(this),this.flag$==d.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=Hr(this,t,d);!r||!r.set?this.setAttribute(t,e):this[t]=e}};d[w]();d.prototype.setns$=d.prototype.setAttributeNS;d.prototype[Dh]=!0;var le=class extends d{static[w](){return this.prototype[B]=Gn,this}constructor(){super(null),this[B]===Gn&&this[z]&&this[z]()}get outerHTML(){return this.innerHTML}};le[w]();var Un=class extends le{get outerHTML(){return this.innerHTML}},P=class extends d{},Ye=class extends P{static[w](){return this.prototype[B]=$n,this}constructor(){super(...arguments),super[w]||this[w](),this[B]===$n&&this[z]&&this[z]()}[w](t=null){super[w]&&super[w](...arguments),this.hmr=t?t.hmr:void 0}get scripts(){return this[Ke]||(this[Ke]=[])}get outerHTML(){let t=ot;ot=this;let e=super.outerHTML,r=new Set,s=[],n=[];if(globalThis.IMBA_HMR_PATH&&this.hmr!==!1&&n.push("<script src='/__hmr__.js'><\/script>"),!this.styles){for(let o=0,l=ei(this.scripts),h=l.length;o<h;o++){let c=l[o].src,u=Bh[c];u&&u.css&&r.add(u.css)}for(let o of ei(r))n.push("<link rel='stylesheet' href='"+o.url+"'>")}if(ot=t,n.length){let o=e.indexOf("</head>");o==-1&&(o=e.indexOf("<body>")),o==-1&&(o=0),e=e.slice(0,o)+`
`+n.join(`
`)+`
`+e.slice(o)}return"<!DOCTYPE html>"+e}};Ye[w]();var he=class extends P{},ae=class extends P{},ue=class extends P{},ce=class extends P{},fe=class extends P{},oi=class extends P{get outerHTML(){return ot&&(ot.scripts||(ot.scripts=[])).push(this),this[nt]&&(this[nt].js?(this.setAttribute("src",this[nt].js.url),this.setAttribute("type","module")):console.warn("could not find browser entrypoint for "+this[nt].path)),super.outerHTML}},li=class extends P{get outerHTML(){if(this[nt]){let t=this.getAttribute("rel"),e;t=="stylesheet"&&((e=this[nt].css.url)||console.warn("could not find stylesheet for "+this[nt].path)),e&&this.setAttribute("href",e)}return super.outerHTML}},hi=class extends P{set src(t){this[re]!=t&&(this[re]=t)}get src(){return this[re]}get outerHTML(){if(ot&&this.src&&(ot.styles||(ot.styles=[])).push(this),this.src){this.nodeName="link",this.setAttribute("rel","stylesheet"),this.setAttribute("href",String(this.src));let t=super.outerHTML;return this.nodeName="style",t}return super.outerHTML}},k=class{},We=class extends k{},de=class extends We{},Xe=class extends de{},Qe=class extends We{},E=class extends k{},qn={};function Xn(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==pe?e[t]=r||null:Xn(Reflect.getPrototypeOf(i),t,e)}var pe=class extends d{set$(t,e){var r;let s=qn[r=this.nodeName]||(qn[r]={}),n=Xn(this,t,s);!n||!n.set?this.setAttribute(t,e):this[t]=e}},ai=class extends pe{set src(t){if(this[re]!=t&&(this[re]=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<n;r++)o=s[r],l=e[o],this.setAttribute(o,l);this.innerHTML=t.content}}}};W[""].klass=d;W.HTML.klass=P;W.SVG.klass=pe;T.html.klass=Ye;T.select.klass=he;T.input.klass=ae;T.textarea.klass=ue;T.button.klass=ce;T.option.klass=fe;T.script.klass=oi;T.style.klass=hi;T.link.klass=li;T.svg_svg.klass=ai;pt("");pt("HTML");pt("SVG");function pc(i,t,e,r){let s=ht.createElement(i);return e&&(s.className=e),r!==null&&s.text$(r),t&&t[se]&&t[se](s),s}function mc(i,t,e,r,s){let n=ht.createElementNS("http://www.w3.org/2000/svg",i);return e&&(n.className=e),t&&t[se]&&t[se](n),r&&(n.textContent=r),n}function mt(i){return ht.createComment(i)}function ui(i){return ht.createTextNode(i)}function gc(){return ht.createDocumentFragment()}function Kh(i,t,e,r,s){let n;return typeof i!="string"&&(i.prototype instanceof P?(n=new i,n.nodeName=i.nodeName):i&&i.nodeName&&(i=i.nodeName)),n||(n=ht.createElement(Wn[i]||i)),n[Yn]=t,n[w](),r!==null&&n[Hh]("__").text$(r),(e||n.flags$ns)&&n.flag$(e||""),n}function yc(i,t,e,r){if(i==null||i==null)return mt("");if(i instanceof L)return i;if(typeof i=="string"||i&&i.prototype instanceof L)return Kh(i,t,e,r)}function bc(i,t,e={}){W[i]=Uh[i]={idl:!0,name:i,klass:t};let r=t.nodeName=i,s=t.prototype;if(i.indexOf("-")==-1&&(r=t.nodeName=""+i+"-tag",Wn[i]=r),e.extends&&(s[qe]=e.extends),e.cssns){let n=(s._ns_||"")+" "+e.cssns;s._ns_=n.trim()+" ",s[jh]=e.cssns}if(e.cssid){let n=(s.flags$ns||"")+" "+e.cssid;s[Gh]=e.cssid,s.flags$ns=n.trim()+" "}return t}globalThis[$h]={Location:ne,Document:et};function ci(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Yh(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var er=Symbol.for("#parent"),Qn=Symbol.for("#closestNode"),Wh=Symbol.for("#isRichElement"),Xh=Symbol.for("#afterVisit"),Jn=Symbol.for("#__initor__"),Zn=Symbol.for("#__inited__"),to=Symbol.for("#appendChild"),eo=Symbol.for("#removeChild"),ro=Symbol.for("#replaceChild"),at=Symbol.for("#insertInto"),Je=Symbol.for("#replaceWith"),io=Symbol.for("#insertChild"),Ze=Symbol.for("#removeFrom"),so=Symbol.for("#placeChild"),ao=Symbol.for("#__init__"),Qh=Symbol.for("#registerFunctionalSlot"),Jh=Symbol.for("#getFunctionalSlot"),no=Symbol.for("#getSlot"),di=Symbol.for("##parent"),gt=Symbol.for("##up"),oo=Symbol.for("##flags"),Zh=Symbol.for("#domFlags"),U=Symbol.for("#end"),lo=Symbol.for("#textContent"),tr=Symbol.for("#textNode"),fi=Symbol.for("#functionalSlots"),ho=Symbol();function Sc(){return!0}var yt=class{constructor(){this.childNodes=[]}log(...t){}hasChildNodes(){return!1}set[er](t){this[di]=t}get[er](){return this[di]||this[gt]}get[Qn](){return this[er][Qn]}get[Wh](){return!0}get flags(){return this[oo]||(this[oo]=new Mt(this))}flagSync$(){return this}[Xh](){return this}},ta=0,ge=class extends yt{static[ao](){return this.prototype[Jn]=ho,this}constructor(t,e){super(...arguments),this[gt]=e,this.parentNode=null,this[Zh]=t,this.childNodes=[],this[U]=mt("slot"+ta++),e&&e[to](this),this[Jn]===ho&&this[Zn]&&this[Zn]()}get[er](){return this[di]||this.parentNode||this[gt]}set textContent(t){this[lo]=t}get textContent(){return this[lo]}hasChildNodes(){for(let t=0,e=ci(this.childNodes),r=e.length;t<r;t++){let s=e[t];if(s instanceof yt&&s.hasChildNodes())return!0;if(!(s instanceof lt)){if(s instanceof L)return!0}}return!1}text$(t){return this[tr]?this[tr].textContent=t:this[tr]=this[so](t),this[tr]}appendChild(t){return this.parentNode&&t[at](this.parentNode,this[U]),this.childNodes.push(t)}[to](t){var e;return this.parentNode?t[at](this.parentNode,this[U]):t[gt]==null?t[gt]=this[gt]||this:t[gt],this.childNodes.push(t)}insertBefore(t,e){this.parentNode&&this.parentNode[io](t,e);let r=this.childNodes.indexOf(e);return r>=0&&this.childNodes.splice(r,0,t),t}[eo](t){this.parentNode&&this.parentNode[eo](t);let e=this.childNodes.indexOf(t);e>=0&&this.childNodes.splice(e,1)}[ro](t,e){this.parentNode&&this.parentNode[ro](t,e);let r=this.childNodes.indexOf(e);return this.childNodes[r]=t,t}[at](t,e){let r=this.parentNode;if(this.parentNode!=t&&(this.parentNode=t,!0)){this[U]&&(e=this[U][at](t,e));for(let s=0,n=ci(this.childNodes),o=n.length;s<o;s++)n[s][at](t,e)}return this}[Je](t,e){let r=t[at](e,this[U]);return this[Ze](e),r}[io](t,e){if(this.parentNode&&this.insertBefore(t,e||this[U]),e){let r=this.childNodes.indexOf(e);r>=0&&this.childNodes.splice(r,0,t)}else this.childNodes.push(t);return t}[Ze](t){for(let e=0,r=ci(this.childNodes),s=r.length;e<s;e++)r[e][Ze](t);return this[U]&&this[U][Ze](t),this.parentNode=null,this}[so](t,e,r){let s=this.parentNode,n=typeof t;if(n==="undefined"||t===null){if(r&&r instanceof lt)return r;let o=mt("");if(r){let l=this.childNodes.indexOf(r);return this.childNodes.splice(l,1,o),s&&r[Je](o,s),o}return this.childNodes.push(o),s&&o[at](s,this[U]),o}if(t===r)return t;if(n!=="object"){let o,l=t;if(r){if(r instanceof Pt)return r.textContent=l,r;{o=ui(l);let h=this.childNodes.indexOf(r);return this.childNodes.splice(h,1,o),s&&r[Je](o,s),o}}else return this.childNodes.push(o=ui(l)),s&&o[at](s,this[U]),o}else if(r){let o=this.childNodes.indexOf(r);return this.childNodes.splice(o,1,t),s&&r[Je](t,s),t}else return this.childNodes.push(t),s&&t[at](s,this[U]),t}};ge[ao]();function wc(i,t){return new ge(i,t)}function rr(i,t){let e=new ge(i,null);return e[gt]=t,e}var pi=class{[Qh](t){let e=this[fi]||(this[fi]={});return e[t]||(e[t]=rr(0,this))}[Jh](t,e){let r=this[fi];return r&&r[t]||this[no](t,e)}[no](t,e){var r;return t=="__"&&!this.render?this:(r=this.__slots)[t]||(r[t]=rr(0,this))}};Yh(L.prototype,pi.prototype);function ea(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var ra=Symbol.for("#afterVisit"),ir=Symbol.for("#insertInto"),uo=Symbol.for("#appendChild"),ia=Symbol.for("#replaceWith"),mi=Symbol.for("#removeFrom"),co=Symbol.for("#__initor__"),fo=Symbol.for("#__inited__"),mo=Symbol.for("#__init__"),sa=Symbol.for("#domFlags"),na=Symbol.for("##parent"),bt=Symbol.for("#end"),oa=Symbol.for("#removeChild"),la=Symbol.for("#insertChild"),po=Symbol(),sr=class extends yt{static[mo](){return this.prototype[co]=po,this}constructor(t,e){super(...arguments),this[sa]=t,this[na]=e,t&256||(this[bt]=mt("list")),this.$=this.childNodes,this.length=0,e&&e[uo](this),this[co]===po&&this[fo]&&this[fo]()}hasChildNodes(){return this.length!=0}[ra](t){let e=this.length;if(this.length=t,e==t)return;let r=this.parentNode;if(!r)return;let s=this.childNodes,n=this[bt];if(e>t)for(;e>t;)r[oa](s[--e]);else if(t>e)for(;t>e;)r[la](s[e++],n);this.length=t}[ir](t,e){this.parentNode=t,this[bt]&&this[bt][ir](t,e),e=this[bt];for(let r=0,s=ea(this.childNodes),n=s.length;r<n;r++){let o=s[r];if(r==this.length)break;o[ir](t,e)}return this}[uo](t){}[ia](t,e){let r=t[ir](e,this[bt]);return this[mi](e),r}[mi](t){let e=this.length;for(;e>0;)this.childNodes[--e][mi](t);this[bt]&&t.removeChild(this[bt]),this.parentNode=null}};sr[mo]();function Cc(i,t){return new sr(i,t)}function go(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var gi=Symbol.for("#appendChild"),nr=Symbol.for("#insertChild"),ha=Symbol.for("#replaceWith"),or=Symbol.for("#insertInto"),yi=Symbol.for("#removeFrom"),aa=Symbol.for("#afterVisit"),yo=Symbol.for("#__initor__"),bo=Symbol.for("#__inited__"),So=Symbol.for("#__init__"),lr=Symbol.for("#domFlags"),_o=Symbol.for("##parent"),_t=Symbol.for("#end"),vo=Symbol.for("#removeChild"),xo=Symbol(),hr=class extends yt{static[So](){return this.prototype[yo]=xo,this}constructor(t,e){super(...arguments),this[lr]=t,this[_o]=e,this.changes=new Map,this.dirty=!1,this.array=this.childNodes,this.$=new X(this,Symbol()),t&256||(this[_t]=mt("map")),e&&e[gi](this),this[yo]===xo&&this[bo]&&this[bo]()}[gi](t){if(this.parentNode)return this.parentNode[nr](t,this[_t])}hasChildNodes(){return this.childNodes.length!=0}push(t,e){if(!(this[lr]&1)){this.array.push(t),this[gi](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[nr](t,n.nextSibling)}else s[nr](t,this.childNodes[e+1]||this[_t])}moveChild(t,e,r){return this.insertChild(t,e,r)}removeChild(t,e){t.parentNode&&t[yi](t.parentNode)}[nr](t,e){}[ha](t,e){let r=t[or](e,this[_t]);return this[yi](e),r}[or](t,e){this[_o]=t;let r=this.parentNode;if(t!=r){this.parentNode=t;for(let s=0,n=go(this.array),o=n.length;s<o;s++)n[s][or](t,e);this[_t]&&this[_t][or](t,e)}return this}[yi](t){for(let e=0,r=go(this.array),s=r.length;e<s;e++){let n=r[e];t[vo](n)}return this[_t]&&t[vo](this[_t]),this.parentNode=null}[aa](t){var e=this;if(!(this[lr]&1)){this[lr]|=1;return}if(this.dirty&&(e.changes.forEach(function(r,s){if(r==-1)return e.removeChild(s)}),e.changes.clear(),e.dirty=!1),e.array.length>t)for(;e.array.length>t;){let r=e.array.pop();e.removeChild(r)}}};hr[So]();function Ec(i,t){return new hr(i,t)}var jt=Symbol.for("#__init__"),wo=Symbol.for("#__initor__"),To=Symbol.for("#__inited__"),ua=Symbol.for("##inited"),ca=Symbol.for("#afterVisit"),fa=Symbol.for("#beforeReconcile"),da=Symbol.for("#afterReconcile"),Lo=Symbol.for("#__hooks__"),Ht=Symbol.for("#autorender"),ar=Symbol.for("##visitContext"),No=Symbol(),Co=new class{constructor(i=null){this[jt](i)}[jt](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=L.DOCUMENT_POSITION_PRECEDING,o=L.DOCUMENT_POSITION_FOLLOWING;if(e){let l=this.items.indexOf(s),h=l,a=function(u,p){return t.tests++,u.compareDocumentPosition(p)};(l==-1||s.nodeName!=i.nodeName)&&(h=l=0);let c=t.items[h];for(;c&&a(c,i)&o;)c=t.items[++h];if(h!=l)c?t.items.splice(h,0,i):t.items.push(i);else{for(;c&&a(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 Hc(){return Co.flush()}var Gt=class extends P{static[jt](){return this.prototype[wo]=No,this}constructor(){super(),this.flags$ns&&(this.flag$=this.flagExt$),this.setup$(),this.build(),this[wo]===No&&this[To]&&this[To]()}setup$(){return this.__slots={},this.__F=0}[jt](){return this.__F|=3,this}[ua](){if(this[Lo])return this[Lo].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[Ht]||(this[Ht]={});e.value=t,this.mountedΦ&&A.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 A.on("commit",this),this.__F|=128,this}unschedule(){return A.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}[ca](){if(this.visit(),this[ar])return this[ar]=null}[fa](){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&&Zt.push(this),this[ar]&&(this[ar]=null),this}[da](){return globalThis.DEBUG_IMBA&&Zt.pop(this),this}connectedCallback(){let t=this.__F,e=t&1,r=t&8;if(!e&&!(t&1024)){Co.queue(this);return}if(t&48)return;this.__F|=16,e||this[jt](),t&2||(this.flags$ext=this.className,this.__F|=2,this.hydrate(),this.commit()),r||(this.awaken(),this.__F|=8),D(this,"mount");let s=this.mount();return s&&s.then instanceof Function&&s.then(A.commit),t=this.__F=(this.__F|32)&-17,t&64&&this.schedule(),this[Ht]&&A.schedule(this,this[Ht]),this}disconnectedCallback(){if(this.__F=this.__F&-49,this.__F&128&&this.unschedule(),D(this,"unmount"),this.unmount(),this[Ht])return A.unschedule(this,this[Ht])}};Gt[jt]();var jc=Gt;function pa(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Oo=Symbol.for("#__init__");var ma={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 Mo={prefix:1,suffix:1,content:1},vi={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]]},ga=new RegExp("^("+Object.keys(vi).join("|")+")(\\d+(?:\\.\\d+)?)$"),ya=/^([xyz])$/,ba=/^([tlbr]|size|[whtlbr]|[mps][tlbrxy]?|[rcxy]?[gs])$/,_a=`*,::before,::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: currentColor;
}`,bi=class{constructor(t=null){this[Oo](t)}[Oo](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",_a))}toString(){return Object.values(this.entries).map(function(t){return t.css}).join(`
`)}toValue(t,e,r,s=null){let n;Mo[r]&&(t=String(t));let o=typeof t;if(o=="number"){if(e||(ya.test(r)?e="px":ba.test(r)?e="u":r=="rotate"&&(e="turn",t=(t%1).toFixed(4))),e)return ma[e]?t+e:e=="u"?t*4+"px":"calc(var(--u_"+e+",1px) * "+t+")"}else if(o=="string"){if(r&&Mo[r]&&t[0]!='"'&&t[0]!="'"&&(t.indexOf('"')>=0?t.indexOf("'")==-1&&(t="'"+t+"'"):t='"'+t+'"'),n=t.match(ga)){let h=vi[n[1]][parseInt(n[2])],a="100%";if(typeof s=="number"?a=s+"%":typeof s=="string"&&(a=s),h)return"hsla("+h[0]+","+h[1]+"%,"+h[2]+"%,"+a+")"}}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]}},va=new bi,zc=Object.keys(vi);function Uc(){return!0}var _i=class{css$(t,e,r){return this.style[t]=e}css$var(t,e,r,s,n=null){let o=va.toValue(e,r,s,n);this.style.setProperty(t,o)}};pa(d.prototype,_i.prototype);var xa=Symbol.for("#insertInto"),Po=Symbol.for("#removeFrom");function Wc(i,t={}){let e=C.context;C.context=t;let r=i(t);return C.context==t&&(C.context=e),r}function Sa(i,t){return console.error(`imba.mount not supported on server.
To spawn a dev-server for an imba client run:
> imba serve my-imba-file.imba`),String(i);let e=t||globalThis.document.body,r=i;if(i instanceof Function){let s=new X(e,null),n=function(){let o=C.context;C.context=s;let l=i(s);return C.context==s&&(C.context=o),l};r=n(),A.listen("commit",n)}else r.__F|=64;return r[xa](e),r}function wa(i){return i&&i[Po]&&i[Po](i.parentNode),i}var ko=globalThis.imba||(globalThis.imba={});ko.mount=Sa;ko.unmount=wa;function $t(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function ye(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var be=Symbol.for("##onchange"),ve=Symbol.for("#afterVisit"),_e=Symbol.for("##oninput"),ur=Symbol.for("##onclick"),xe=Symbol.for("##bound"),vt=Symbol.for("##visitContext");function Zc(){return!0}var Ta={INPUT:!0,SELECT:!0,TEXTAREA:!0,BUTTON:!0},xi=function(i){return i instanceof Array||i&&i.has instanceof Function},Oi=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},Mi=function(i,t){if(i instanceof Array)return i.push(t);if(i&&i.add instanceof Function)return i.add(t)},Pi=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 La(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 Si=class{getRichValue(){return this.value}setRichValue(t){return this.value=t}bind$(t,e){let r=e||[];return t=="data"&&!this[xe]&&Ta[this.nodeName]&&(this[xe]=!0,this[be]&&this.addEventListener("change",this[be]=this[be].bind(this)),this[_e]&&this.addEventListener("input",this[_e]=this[_e].bind(this),{capture:!0}),this[ur]&&this.addEventListener("click",this[ur]=this[ur].bind(this),{capture:!0})),Object.defineProperty(this,t,r instanceof Array?La(r):r),r}};$t(d.prototype,Si.prototype);Object.defineProperty(d.prototype,"richValue",{get:function(){return this.getRichValue()},set:function(i){return this.setRichValue(i)}});var wi=class{[be](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=ye(r),l=o.length;n<l;n++){let h=o[n];s.indexOf(h)==-1&&Pi(e,h)}for(let n=0,o=ye(s),l=o.length;n<l;n++){let h=o[n];(!r||r.indexOf(h)==-1)&&Mi(e,h)}}else this.data=s[0];return M(),this}getRichValue(){var t;if(this.$$value)return this.$$value;t=[];for(let e=0,r=ye(this.selectedOptions),s=r.length;e<s;e++){let n=r[e];t.push(n.richValue)}return this.$$value=t}syncValue(){let t=this.data;if(this.multiple){let e=[];for(let r=0,s=ye(this.options),n=s.length;r<n;r++){let o=s[r],l=o.richValue,h=Oi(t,l);o.selected=h,h&&e.push(l)}this.$$value=e}else for(let e=0,r=ye(this.options),s=r.length;e<s;e++){let o=r[e].richValue;if(o==t){this.$$value=[o],this.selectedIndex=e;break}}}[ve](){if(this.syncValue(),this[vt])return this[vt]=null}};$t(he.prototype,wi.prototype);var Ti=class{setRichValue(t){return this.$$value=t,this.value=t}getRichValue(){return this.$$value!==void 0?this.$$value:this.value}};$t(fe.prototype,Ti.prototype);var Li=class{setRichValue(t){return this.$$value=t,this.value=t}getRichValue(){return this.$$value!==void 0?this.$$value:this.value}[_e](t){return this.data=this.value,M()}[ve](){let t=this.data;if(t==null&&(t=""),this[xe]&&this.value!=t&&(this.value=t),this[vt])return this[vt]=null}};$t(ue.prototype,Li.prototype);var Ni=class{[_e](t){let e=this.type;if(!(e=="checkbox"||e=="radio")&&!(e=="number"&&Number.isNaN(this.valueAsNumber)))return this.$$value=void 0,this.data=this.richValue,M()}[be](t){let e=this.data,r=this.richValue;if(this.type=="checkbox"||this.type=="radio"){let s=this.checked;xi(e)?s?Mi(e,r):Pi(e,r):this.data=s?r:!1}return M()}setRichValue(t){this.$$value!==t&&(this.$$value=t,this.value!==t&&(this.value=t))}getRichValue(){if(this.$$value!==void 0)return this.$$value;let t=this.value,e=this.type;if(e=="range"||e=="number"){let r=this.valueAsNumber;Number.isNaN(r)&&(r=Number(t.replace(/\,/,".")+0)),Number.isNaN(r)&&(r=null),t=r}else e=="checkbox"&&(t==null||t==="on")&&(t=!0);return t}[ve](){if(this[xe]){let t=this.type;if(t=="checkbox"||t=="radio"){let e=this.data;e===!0||e===!1||e==null?this.checked=!!e:this.checked=Oi(e,this.richValue)}else this.richValue=this.data}this[vt]&&(this[vt]=null)}};$t(ae.prototype,Ni.prototype);var Ci=class{get checked(){return this.$checked}set checked(t){t!=this.$checked&&(this.$checked=t,this.flags.toggle("checked",!!t))}setRichValue(t){return this.$$value=t,this.value=t}getRichValue(){return this.$$value!==void 0?this.$$value:this.value}[ur](t){let e=this.data,r=this.checked,s=this.richValue;return xi(e)?r?Pi(e,s):Mi(e,s):this.$$value==null?this.data=!r:this.data=r?null:s,this[ve](),M()}[ve](){if(this[xe]){let t=this.data,e=this.$$value==null?!0:this.$$value;xi(t)?this.checked=Oi(t,e):this.checked=t==e}this[vt]&&(this[vt]=null)}};$t(ce.prototype,Ci.prototype);function Eo(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Na=Symbol.for("#getSlot"),Ca=Symbol.for("#container"),Oa=Symbol.for("#afterVisit"),kt=Symbol.for("#__init__"),Fo=Symbol.for("#__initor__"),Io=Symbol.for("#__inited__"),cr=Symbol.for("#listeners"),rt=Symbol.for("#slot"),Ma=Symbol.for("#parent"),j=Symbol.for("##container"),ki=Symbol.for("#domTarget"),Ao=Symbol.for("#insertInto"),Pa=Symbol.for("#removeFrom"),ka=Symbol.for("#teleport"),Ea=Symbol.for("#self"),Fa=Symbol.for("#target"),Ro=Symbol(),Se=class extends Gt{static[kt](){return this.prototype[Fo]=Ro,this}constructor(){super(...arguments),super[kt]||this[kt](),this[Fo]===Ro&&this[Io]&&this[Io]()}[kt](t=null){super[kt]&&super[kt](...arguments),this.to=t?t.to:void 0}build(){return this[cr]=[],this.win=globalThis,this.doc=globalThis.document}setup(){return this.setAttribute("style","display:none !important;")}[Na](t,e){return this[rt]||(this[rt]=rr(0,this[Ma])),this[rt]}get[Ca](){if(!this[j]){let t=this.className;this[j]=this.doc.createElement("div"),this[j].className=t,this[j].style.cssText="display:contents !important;"}return this[j]}get domTarget(){return this[ki]||(this[ki]=this.to instanceof d?this.to:this.closest(this.to)||this.doc.querySelector(this.to))}get eventTarget(){return this.domTarget}get style(){return this[j]?this[j].style:super.style}get classList(){return this[j]?this[j].classList:super.classList}get className(){return this[j]?this[j].className:super.className}set className(t){this[j]?this[j].className=t:super.className=t}[Oa](){if(this.mountedΦ&&this[rt]&&!this[rt].parentNode)return this[rt][Ao](this.target)}mount(){for(let e=0,r=Eo(this[cr]),s=r.length;e<s;e++){let[n,o,l]=r[e];this.eventTarget.addEventListener(n,o,l)}let t=this.domTarget;return this[rt]&&this[rt][Ao](t),this}unmount(){for(let t=0,e=Eo(this[cr]),r=e.length;t<r;t++){let[s,n,o]=e[t];this.eventTarget.removeEventListener(s,n,o)}return this[rt]&&this[rt][Pa](this.domTarget),this[ki]=null,this}addEventListener(t,e,r={}){if(e[ka]=this,e[Ea]=this,this[cr].push([t,e,r]),this.mountedΦ&&this.eventTarget?.addEventListener)return this.eventTarget.addEventListener(t,e,r)}};Se[kt]();var Ei=class extends Se{get domTarget(){return this.doc.body}get eventTarget(){return this.win}addEventListener(t,e,r={}){return e[Fa]=this.domTarget.parentNode,super.addEventListener(...arguments)}on$resize(t,e,r,s){return this.addEventListener("resize",r,s),r}};globalThis.customElements&&(globalThis.customElements.define("i-teleport",Se),globalThis.customElements.define("i-global",Ei));function nf(){return!0}function xt(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Ia(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var ct=Symbol.for("#__init__"),fr=Symbol.for("#__initor__"),dr=Symbol.for("#__inited__"),Vo=Symbol.for("#imba"),Fi=Symbol.for("#insertInto"),Ii=Symbol.for("#removeFrom"),Aa=Symbol.for("#all"),we=Symbol.for("#phase"),ut=Symbol.for("#nodes"),Ra=Symbol.for("#sizes"),Do=Symbol.for("#mode"),Ho=Symbol.for("#enabled"),Va=Symbol.for("#easer"),jo=Symbol.for("#anims"),Ai=Symbol.for("#_easer_"),Go=Symbol(),$o=Symbol(),pr=class extends Wt{static[ct](){return this.prototype[fr]=Go,this}constructor(){super(...arguments),super[ct]||this[ct](),this[fr]===Go&&this[dr]&&this[dr]()}[ct](t=null){var e;super[ct]&&super[ct](...arguments),this.selectors=t&&(e=t.selectors)!==void 0?e:{}}addSelectors(t,e){var r;return((r=this.selectors)[e]||(r[e]=[])).push(...t),!0}getSelectors(...t){let e=[];for(let r=0,s=xt(t),n=s.length;r<n;r++){let o=s[r];this.selectors[o]&&e.push(...this.selectors[o])}return e&&e.length?e.join(","):null}nodesForBase(t,e="transition"){let r=[t],s=(this.selectors[e]||[]).join(",");if(s=="")return r;let n=t.querySelectorAll(s);for(let o=0,l=xt(n),h=l.length;o<h;o++){let a=l[o];a.closest("._ease_")==t&&r.push(a)}return r[Aa]=n,r}nodesWithSize(t,e="in"){let r=this.getSelectors("_off_sized","_"+e+"_sized");return r?t.filter(function(s){return s.matches(r)}):[]}};pr[ct]();var Ri=new pr,Da=globalThis.imba||(globalThis.imba={});Da.transitions=Ri;var mr=class extends Wt{static[ct](){return this.prototype[fr]=$o,this}constructor(t){super(),this.dom=t,this[we]=null,this[ut]=[],this[Ra]=new Map,this[fr]===$o&&this[dr]&&this[dr]()}log(...t){}get flags(){return this.dom.flags}flag(t){for(let e=0,r=xt(this[ut]),s=r.length;e<s;e++)r[e].flags.add(t);return this}unflag(t){for(let e=0,r=xt(this[ut]),s=r.length;e<s;e++)r[e].flags.remove(t);return this}commit(){return this.dom.offsetWidth}enable(t){return t&&(this[Do]=t),this[Ho]!=!0&&(this[Ho]=!0,!0)?(this.dom[Fi]=this[Fi].bind(this),this.dom[Ii]=this[Ii].bind(this),this.flags.add("_ease_")):this}disable(){return this.flags.remove("_ease_"),!0}set phase(t){let e=this[we];this[we]!=t&&(this[we]=t,!0)&&(e&&this.unflag("@"+e),t&&this.flag("@"+t),t||(this.unflag("@out"),this.unflag("@in"),this.unflag("@off"),this[ut]=null),t=="enter"&&e=="leave"&&this.dom?.transitionΞoutΞcancel?.(this),t=="leave"&&e=="enter"&&this.dom?.transitionΞinΞcancel?.(this),t=="enter"&&this.dom?.transitionΞin?.(this),t=="leave"&&this.dom?.transitionΞout?.(this),e=="leave"&&!t&&this.dom?.transitionΞoutΞend?.(this),e=="enter"&&!t&&this.dom?.transitionΞinΞend?.(this))}get phase(){return this[we]}get leavingΦ(){return this.phase=="leave"}get enteringΦ(){return this.phase=="enter"}get idleΦ(){return this.phase==null}track(t){var e=this;let r={before:me().getAnimations()};return this.commit(),t(),this.commit(),r.after=me().getAnimations(),r.fresh=r.after.filter(function(s){return r.before.indexOf(s)==-1}),r.deep=r.fresh.filter(function(s){let n;return!!((n=s.effect.target)&&n.closest("._ease_")!=e.dom)}),r.own=r.fresh.filter(function(s){return r.deep.indexOf(s)==-1}),r.own.length?r.finished=new Promise(function(s){let n=new Set(r.own),o=function(){if(n.delete(this),n.size==0)return s()};for(let l=0,h=xt(r.own),a=h.length;l<a;l++){let c=h[l];c[Va]=e,c.addEventListener("finish",o,{once:!0}),c.addEventListener("cancel",o,{once:!0})}}):r.finished=Promise.resolve(!0),r}getAnimatedNodes(){return Ri.nodesForBase(this.dom)}getNodeSizes(t="in",e=this[ut]){let r=Ri.nodesWithSize(e,t),s=new Map;for(let n=0,o=xt(r),l=o.length;n<l;n++){let h=o[n],a=(this&&this[Vo]||globalThis[Vo]).window.getComputedStyle(h);s.set(h,{width:a.width,height:a.height})}return s}applyNodeSizes(t){for(let[e,r]of xt(t))e.style.width=r.width,e.style.height=r.height;return t}clearNodeSizes(t){if(!!t){for(let[e,r]of xt(t))e.style.removeProperty("width"),e.style.removeProperty("height");return t}}[Fi](t,e){var r=this;let s;if(this.enteringΦ)return this.dom;let n=function(){if(s&&r.clearNodeSizes(s),r.enteringΦ)return r.phase=null};if(r.leavingΦ)return r.track(function(){return r.phase="enter",r.unflag("@off"),r.unflag("@out")}).finished.then(n,function(a){return r.log("error cancel leave",a)}),r.dom;let o=me().contains(t);return e?t.insertBefore(r.dom,e):t.appendChild(r.dom),this[ut]=r.getAnimatedNodes(),r.flag("_instant_"),r.unflag("@out"),r.commit(),s=this[ut].sized=r.getNodeSizes("in"),r.dom?.transitionΞinΞinit?.(r),r.flag("@off"),r.flag("@in"),r.flag("@enter"),r.commit(),r.unflag("_instant_"),(this[jo]=r.track(function(){return r.phase="enter",r.applyNodeSizes(s),r.unflag("@off"),r.unflag("@in")})).finished.then(n,function(h){return r.clearNodeSizes(s),r.log("cancelled insert into",h)}),r.dom}[Ii](t){var e=this;if(this.leavingΦ)return;let r,s=function(){if(e.phase=="leave")return e.dom.emit("easeoutend",{}),t.removeChild(e.dom),e.phase=null};if(e.enteringΦ&&this[Do]!="forward"){let o=e.track(function(){return e.flag("@off"),e.flag("@in"),e.unflag("@out"),e.phase="leave",e.clearNodeSizes(e[ut].sized)});e.log("cancel enter anims own",o.own,o),o.finished.then(s,function(l){return e.log("error cancel entering",l)});return}this[ut]=e.getAnimatedNodes(),r=e.getNodeSizes("out"),e.applyNodeSizes(r),e.flag("@leave");let n=this[jo]=e.track(function(){return e.phase="leave",e.flag("@off"),e.flag("@out"),e.clearNodeSizes(r)});if(!n.own.length){s();return}n.finished.then(s,function(){return!0})}};mr[ct]();var Vi=class{transitionΞinΞinit(t){return!0}transitionΞin(t){return!0}transitionΞinΞend(t){return!0}transitionΞinΞcancel(t){return!0}transitionΞout(t){return!0}transitionΞoutΞend(t){return!0}transitionΞoutΞcancel(t){return!0}get ease(){return this[Ai]||(this[Ai]=new mr(this))}set ease(t){if(t==!1){this[Ai]?.disable?.();return}this.ease.enable(t)}};Ia(d.prototype,Vi.prototype);function af(){return!0}function Ha(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function Bo(){return!0}var Di=class{αesc(){return this.keyCode==27}αtab(){return this.keyCode==9}αenter(){return this.keyCode==13}αspace(){return this.keyCode==32}αup(){return this.keyCode==38}αdown(){return this.keyCode==40}αleft(){return this.keyCode==37}αright(){return this.keyCode==39}αdel(){return this.keyCode==8||this.keyCode==46}αkey(t){if(typeof t=="string")return this.key==t;if(typeof t=="number")return this.keyCode==t}};Ha(Qe.prototype,Di.prototype);function ja(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function gr(){return!0}var Hi=class{αleft(){return this.button==0}αmiddle(){return this.button==1}αright(){return this.button==2}αshift(){return!!this.shiftKey}αalt(){return!!this.altKey}αctrl(){return!!this.ctrlKey}αmeta(){return!!this.metaKey}αmod(){let t=globalThis.navigator.platform;return/^(Mac|iPhone|iPad|iPod)/.test(t||"")?!!this.metaKey:!!this.ctrlKey}};ja(de.prototype,Hi.prototype);function zi(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function zo(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Ga=Symbol.for("#extendType"),$a=Symbol.for("#modifierState"),yr=Symbol.for("#sharedModifierState"),Uo=Symbol.for("#onceHandlerEnd");var qo=Symbol.for("#extendDescriptors"),G=Symbol.for("#context"),Ko=Symbol.for("#self"),Ba=Symbol.for("#target"),Yo=Symbol.for("#stopPropagation"),Wo=Symbol.for("#defaultPrevented"),za=Symbol.for("#teleport");Bo();gr();var ji=class{[Ga](t){var e,r,s;let n=t[qo]||(t[qo]=(r=Object.getOwnPropertyDescriptors(t.prototype),s=r.constructor,delete r.constructor,r));return Object.defineProperties(this,n)}};zi(E.prototype,ji.prototype);var Gi=class{get[$a](){var t,e;return(t=this[G])[e=this[G].step]||(t[e]={})}get[yr](){var t,e;return(t=this[G].handler)[e=this[G].step]||(t[e]={})}[Uo](t){return I(this[G],"end",t)}αsel(t){return!!this.target.matches(String(t))}αclosest(t){return!!this.target.closest(String(t))}αlog(...t){return console.info(...t),!0}αtrusted(){return!!this.isTrusted}αif(t){return!!t}αwait(t=250){return new Promise(function(e){return setTimeout(e,Xt(t))})}αself(){return this.target==this[G].element}αcooldown(t=250){let e=this[yr];return e.active?!1:(e.active=!0,e.target=this[G].element,e.target.flags.incr("cooldown"),this[Uo](function(){return setTimeout(function(){return e.target.flags.decr("cooldown"),e.active=!1},Xt(t))}),!0)}αthrottle(t=250){let e=this[yr];return e.active?(e.next&&e.next(!1),new Promise(function(r){return e.next=function(s){return e.next=null,r(s)}})):(e.active=!0,e.el||(e.el=this[G].element),e.el.flags.incr("throttled"),I(this[G],"end",function(){let r=Xt(t);return e.interval=setInterval(function(){e.next?e.next(!0):(clearInterval(e.interval),e.el.flags.decr("throttled"),e.active=!1)},r)}),!0)}αdebounce(t=250){let e=this[yr],r=this;return e.queue||(e.queue=[]),e.queue.push(e.last=r),new Promise(function(s){return setTimeout(function(){return e.last==r?(r.debounced=e.queue,e.last=null,e.queue=[],s(!0)):s(!1)},Xt(t))})}αflag(t,e){let{element:r,step:s,state:n,id:o,current:l}=this[G],h=e instanceof d?e:e?r.closest(e):r;if(!h)return!0;this[G].commit=!0,n[s]=o,h.flags.incr(t);let a=Date.now();return I(l,"end",function(){let c=Date.now()-a,u=Math.max(250-c,0);return setTimeout(function(){return h.flags.decr(t)},u)}),!0}αbusy(t){return this.αflag("busy",t)}αoutside(){let{handler:t}=this[G];if(t&&t[Ko])return!t[Ko].parentNode.contains(this.target)}};zi(k.prototype,Gi.prototype);var Sf={};function wf(){return!0}var $i=class{constructor(t,e){this.params=t,this.closure=e}getHandlerForMethod(t,e){return t?t[e]?t:this.getHandlerForMethod(t.parentNode,e):null}emit(t,...e){return D(this,t,e)}on(t,...e){return V(this,t,...e)}once(t,...e){return I(this,t,...e)}un(t,...e){return Ct(this,t,...e)}get passiveΦ(){return this.params.passive}get captureΦ(){return this.params.capture}get silentΦ(){return this.params.silent}get globalΦ(){return this.params.global}async handleEvent(t){let e=this[Ba]||t.currentTarget,r=this.params,s=null,n=r.silence||r.silent;this.count||(this.count=0),this.state||(this.state={});let o={element:e,event:t,modifiers:r,handler:this,id:++this.count,step:-1,state:this.state,commit:null,current:null};if(o.current=o,t.handle$mod&&t.handle$mod.apply(o,r.options||[])==!1)return;let l=k[this.type+"$handle"]||k[t.type+"$handle"]||t.handle$mod||this.guard;if(!(l&&l.apply(o,r.options||[])==!1)){this.currentEvents||(this.currentEvents=new Set),this.currentEvents.add(t);for(let h=0,a=Object.keys(r),c=a.length,u,p;h<c;h++){if(u=a[h],p=r[u],o.step++,u[0]=="_")continue;u.indexOf("~")>0&&(u=u.split("~")[0]);let b=null,f=[t,o],m,_=null,S,F=!1,Rr=typeof u=="string";if(u[0]=="$"&&u[1]=="_"&&p[0]instanceof Function)u=p[0],u.passive||(o.commit=!0),f=[t,o].concat(p.slice(1)),_=e;else if(p instanceof Array){f=p.slice(),b=f;for(let N=0,Y=zo(f),Re=Y.length;N<Re;N++){let Yt=Y[N];if(typeof Yt=="string"&&Yt[0]=="~"&&Yt[1]=="$"){let Ys=Yt.slice(2).split("."),Ve=o[Ys.shift()]||t;for(let Vr=0,Ws=zo(Ys),rh=Ws.length;Vr<rh;Vr++){let ih=Ws[Vr];Ve=Ve?Ve[ih]:void 0}f[N]=Ve}}}if(typeof u=="string"&&(S=u.match(/^(emit|flag|mod|moved|pin|fit|refit|map|remap|css)-(.+)$/))&&(b||(b=f=[]),f.unshift(S[2]),u=S[1]),u=="trap")t[Yo]=!0,t.stopImmediatePropagation(),t[Wo]=!0,t.preventDefault();else if(u=="stop")t[Yo]=!0,t.stopImmediatePropagation();else if(u=="prevent")t[Wo]=!0,t.preventDefault();else if(u=="commit")o.commit=!0;else if(u=="once")e.removeEventListener(t.type,this);else{if(u=="options"||u=="silence"||u=="silent")continue;if(u=="emit"){let N=f[0],Y=f[1],Re=new E(N,{bubbles:!0,detail:Y});Re.originalEvent=t;let eh=(this[za]||e).dispatchEvent(Re)}else if(typeof u=="string"){u[0]=="!"&&(F=!0,u=u.slice(1));let N="α"+u,Y=t[N];Y||(Y=this.type&&k[this.type+"$"+u+"$mod"]),Y||(Y=t[u+"$mod"]||k[t.type+"$"+u]||k[u+"$mod"]),Y instanceof Function?(u=Y,_=o,f=b||[],t[N]&&(_=t,t[G]=o)):u[0]=="_"?(u=u.slice(1),_=this.closure):_=this.getHandlerForMethod(e,u)}}try{u instanceof Function?m=u.apply(_||e,f):_&&(m=_[u].apply(_,f)),m&&m.then instanceof Function&&m!=A.$promise&&(o.commit&&!n&&A.commit(),m=await m)}catch(N){s=N;break}if(F&&m===!0||!F&&m===!1)break;o.value=m}if(D(o,"end",o),o.commit&&!n&&A.commit(),this.currentEvents.delete(t),this.currentEvents.size==0&&this.emit("idle"),s!=null){if(this.type!="error"){let h=s instanceof Error?s.message:s,a=new E("error",{detail:h,bubbles:!0,cancelable:!0});a.error=s,a.originalEvent=t;let c=e.dispatchEvent(a);if(a.defaultPrevented)return}throw s}}}},Bi=class{on$(t,e,r){let s="on$"+t,n;n=new $i(e,r);let o=e.capture||!1,l=e.passive,h=o;return l&&(h={passive:l,capture:o}),this[s]instanceof Function?n=this[s](e,r,n,h):this.addEventListener(t,n,h),n}on$error(t,e,r,s){return t.options?.length&&(r.guard=function(...n){let o=this.event.error;return!!n.find(function(h){return o instanceof h})}),this.addEventListener("error",r,s),r}};zi(d.prototype,Bi.prototype);var Ui=new class{get iosΦ(){let i=globalThis.navigator.platform||"";return!!(i.match(/iPhone|iPod|iPad/)||i=="MacIntel"&&globalThis.navigator.maxTouchPoints>2)}};function Bt(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 St(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 br(i,t=1){let e=1/t;return Math.round(i*e)/e}function Ua(i,t,e){return t>e?Math.max(e,Math.min(t,i)):Math.min(e,Math.max(t,i))}function qi(i,t,e,r,s=.1){let[n,o]=St(e),[l,h]=St(r),[a,c]=St(s);return o=="%"&&(n=(t-i)*(n/100)),h=="%"&&(l=(t-i)*(l/100)),c=="%"&&(a=(l-n)*(a/100)),function(u,p){let b=(u-i)/(t-i),f=n+(l-n)*b;return s&&(f=br(f,a)),p&&(f=Ua(f,n,l)),f}}function qa(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}gr();function Pf(){return!0}var Yi=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}};qa(Xe.prototype,Yi.prototype);function Ka(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Xo=Symbol.for("#capture"),it=Symbol.for("#step"),Ya=Symbol.for("#cancel"),Wi=Symbol.for("#reframe");var Qo=Symbol.for("#mods"),Xi=Symbol.for("#dx"),Qi=Symbol.for("#dy"),wt=Symbol.for("#context"),_r=Symbol.for("#locked"),el=Symbol.for("#teardown"),Jo=Symbol.for("#x"),Zo=Symbol.for("#y"),Wa=Symbol.for("#pinTarget");function If(){return!0}var tl=null,Ji=class{constructor(t,e,r){this.phase="init",this.events=[],this.originalEvent=t,this.handler=e,this.target=this.currentTarget=r,this[Qo]={}}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[Xi]==null?this.event.x-this.start.x:this[Xi]}get dy(){return this[Qi]==null?this.event.y-this.start.y:this[Qi]}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 D(this,t,e)}on(t,...e){return V(this,t,...e)}once(t,...e){return I(this,t,...e)}un(t,...e){return Ct(this,t,...e)}αflag(t,e){let{element:r}=this[wt],s=Date.now(),n=e instanceof d?e:e?r.closest(e):r;return this[it].setup!=!0&&(this[it].setup=!0,!0)&&(n.flags.incr(t),I(this,"end",function(){return n.flags.decr(t)})),!0}αlock(){return this[Xo](),!0}[Xo](){if(this[_r]!=!0&&(this[_r]=!0,!0))return this[wt].element.setPointerCapture(this.pointerId)}get[it](){var t,e;return(t=this[Qo])[e=this[wt].step]||(t[e]={})}[Ya](){return this[el]()}αmoved(t,e){let r=this[it],{element:s,state:n,event:o}=this[wt];if(!r.setup){let u=t||4;typeof t=="string"&&t.match(/^(up|down|left|right|x|y)$/)&&(r.dir=t,u=e||4),typeof e=="string"&&e.match(/^(up|down|left|right|x|y)$/)&&(r.dir=e),r.setup=!0;let[p,b]=St(u);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,b&&b!="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,a=this.y-r.y0;r.x=Math.max(r.x,Math.abs(h)),r.y=Math.max(r.y,Math.abs(a)),r.left=Math.max(r.left,-h),r.right=Math.max(r.right,h),r.up=Math.max(r.up,-a),r.down=Math.max(r.down,a),r.dist=Math.max(r.dist,Math.sqrt(h*h+a*a));let c=r[r.dir];if(c>l&&c>=r.x&&c>=r.y){r.active=!0;let u=n.pinTarget;return s.flags.incr("@move"),u&&u.flags.incr("@move"),this.preventDefault(),I(this,"end",function(){return u&&u.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[it],s=this[wt].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),I(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[it];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[wt].commit=!0,!0}αapply(t,e="x",r="y"){return e&&(t[e]=this.x),r&&(t[r]=this.y),this[wt].commit=!0,!0}αcss(t="x",e="y"){let r=this[it];if(r.setup!=!0&&(r.setup=!0,!0))r.el=this[wt].element,r.x=r.el[Jo]||0,r.y=r.el[Zo]||0,r.tx=this.x,r.ty=this.y;else{let s=r.el[Jo]=r.x+(this.x-r.tx),n=r.el[Zo]=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=br(this.x,t),this.y=br(this.y,e),!0}[Wi](...t){let e=this[it];if(e.setup!=!0&&(e.setup=!0,!0)){let r=this.target,s=t.length,n=t[0],o=0,l="100%",h=0,a=typeof n;a=="number"||a=="string"&&/^([-+]?\d[\d\.]*)(%|\w+)$/.test(n)||n instanceof Array?n=null:a=="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=qi(c.left,c.right,o[0],l[0],h[0]),e.y=qi(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[Xi]=r-this.x0,this[Qi]=s-this.y0}return!0}αfit(...t){return this[it].clamp=!0,this[Wi](...t)}αreframe(...t){return this[Wi](...t)}αpin(...t){let e=this[it];if(e.setup!=!0&&(e.setup=!0,!0)){let r=Bt(t[0],this.target);r instanceof d||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[Wa]=r,r.flags.incr("_touch_"),I(this,"end",function(){return r.flags.decr("_touch_")}))}return this.x-=e.x,this.y-=e.y,!0}},Zi=class{on$touch(t,e,r,s){return r.type="touch",this.addEventListener("pointerdown",r,{passive:!1}),Ui.iosΦ&&globalThis.parent!=globalThis&&tl!=!0&&(tl=!0,!0)&&globalThis.parent.postMessage("setupTouchFix"),r}};Ka(d.prototype,Zi.prototype);k.touch$handle=function(){let i=this.event,t=this.element,e=this.state.pointerId,r=this.modifiers,s=this.handler,n=Ui.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 Ji(i,s,t);e=o.pointerId;let l=function(f){return f.preventDefault(),!1},h=null,a=Symbol(),c=function(f){let m=o.clientX,_=o.clientY,S=f.clientX,F=f.clientY;(o[_r]||o.defaultPrevented)&&(f.pointerId==o.pointerId||m==S&&_==F)&&(f.preventDefault(),f.stopPropagation()),c&&(globalThis.removeEventListener("click",c,{capture:!0}),c=null)},u=function(f){if(!(o.type=="touchmove"&&f.changedTouches[0].identifier!=e)&&(o.defaultPrevented||o[_r]))return f.preventDefault()},p=function(f){let m=f.type,_=o.phase;if(f.pointerId&&o.pointerId!=f.pointerId||f[a])return;f[a]=!0;let S=m=="pointerup"||m=="pointercancel";if(f.pressure==0&&f.pointerType=="mouse"&&m=="pointermove"&&o.originalEvent.pressure>0)return h(f);m=="pointercancel"?(o.x=o.clientX,o.y=o.clientY):(o.x=f.clientX,o.y=f.clientY),o.event=f,S&&(o.phase="ended");try{s.handleEvent(o)}catch{}if(_=="init"&&!S&&(o.phase="active"),S&&h)return h(f)},b=!1;return h=function(f){if(!b&&(b=!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&&u)return globalThis.removeEventListener("touchend",u),globalThis.removeEventListener("touchmove",u,{passive:!1}),u=null},100),!r.passive))return globalThis.document.removeEventListener("selectstart",l,{capture:!0})},o[el]=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",u),globalThis.addEventListener("touchmove",u,{passive:!1})),r.passive||globalThis.document.addEventListener("selectstart",l,{capture:!0}),p(i),!1};function sl(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Xa(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Qa=Symbol.for("#context"),Ja=Symbol.for("#extendType");function Vf(){return!0}var rl=new(globalThis.WeakMap||Map),ts={threshold:[0]},Za={};k.intersect$handle=function(){let i=this.event.detail.observer;return this.modifiers._observer==i};var es=class extends E{α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[Qa],n=Bt(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 tu(i,t){return function(e,r){let s=r.prevRatios||(r.prevRatios=new WeakMap);for(let n=0,o=sl(e),l=o.length;n<l;n++){let h=o[n],a=s.get(h.target)||0,c=h.intersectionRatio,u={entry:h,ratio:c,from:a,delta:c-a,observer:r},p=new E(i,{bubbles:!1,detail:u});p[Ja](es),p.entry=h,p.isIntersecting=h.isIntersecting,p.delta=u.delta,p.ratio=u.ratio,s.set(h.target,c),h.target.dispatchEvent(p)}}}function il(i=ts){let t=i.threshold.join("-")+i.rootMargin;!i.root&&ts.root&&(i.root||(i.root=ts.root));let e=i.root||Za,r=rl.get(e);return r||rl.set(e,r={}),r[t]||(r[t]=new IntersectionObserver(tu("intersect",t),i))}var rs=class{on$intersect(t,e,r,s){let n;if(t.options){let o=[],l={threshold:o};for(let h=0,a=sl(t.options),c=a.length;h<c;h++){let u=a[h];u instanceof d||u instanceof et?l.root=u:typeof u=="number"?o.push(u):typeof u=="string"?l.rootMargin=u:typeof u=="object"&&Object.assign(l,u)}if(o.length==1){let h=o[0];if(h>1)for(o[0]=0;o.length<h;)o.push(o.length/(h-1))}o.length==0&&o.push(0),n=il(l)}else n=il();return t._observer=n,n.observe(this),this.addEventListener("intersect",r,s),r}};Xa(d.prototype,rs.prototype);function eu(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function ru(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var is=Symbol.for("#width"),ss=Symbol.for("#height"),iu=Symbol.for("#extendType");function Gf(){return!0}var vr=null,ns=class extends E{αcss(t="1elw",e="1elh",r=""){let s=this.target;if(s.offsetParent){let n=St(t),o=St(e),l=Bt(r,s),h=n?"--u_"+n[1]:"--"+t,a=o?"--u_"+o[1]:"--"+e,c=n?this.width/n[0]:this.width,u=o?this.height/o[0]:this.height;l.style.setProperty(h,c),l.style.setProperty(a,u)}return!0}get width(){return this[is]==null?this[is]=this.entry.target.offsetWidth:this[is]}get height(){return this[ss]==null?this[ss]=this.entry.target.offsetHeight:this[ss]}};function su(){return globalThis.ResizeObserver||vr||(console.warn(":resize not supported in this browser"),vr={observe:function(){return!0}}),vr||(vr=new ResizeObserver(function(i){for(let t=0,e=eu(i),r=e.length;t<r;t++){let s=e[t],n=new E("resize",{bubbles:!1,detail:s});n.entry=s,n.rect=s.contentRect,n[iu](ns),s.target.dispatchEvent(n);let o=new E("resized",{bubbles:!0,detail:s});s.target.dispatchEvent(o)}}))}var os=class{on$resize(t,e,r,s){return su().observe(this),this.addEventListener("resize",r,s),r}};ru(d.prototype,os.prototype);function nu(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}function Uf(){return!0}var ls,nl=Symbol();function ou(){if(!ls)return ls=function(i){if(i[nl])return;i[nl]=!0;let t=globalThis.document.activeElement;if(t&&t.matches("input,textarea")){let e=new E("selection",{detail:{start:t.selectionStart,end:t.selectionEnd}});return t.dispatchEvent(e)}},globalThis.document.addEventListener("selectionchange",ls)}var hs=class{on$selection(t,e,r,s){return ou(),this.addEventListener("selection",r,s),r}};nu(d.prototype,hs.prototype);var ol=Symbol.for("#string"),ll=Symbol.for("#html"),Tt={win:{sep:"+",name:"win",order:["meta","ctrl","mod","alt","option","shift"].reverse(),labels:{option:"alt",mod:"ctrl",meta:"win"}},mac:{sep:"",name:"mac",order:["ctrl","alt","option","shift","mod","command"].reverse(),labels:{left:"→",up:"↑",down:"↓",right:"←",plus:"+",tab:"⇥",meta:"⌘",mod:"⌘",ctrl:"⌃",option:"⌥",alt:"⌥",del:"⌦",shift:"⇧",enter:"↩",esc:"⎋",backspace:"⌫"}}};Tt.auto=Tt.win;var as={};function hl(i,t="auto"){let e=""+i+":"+t;if(as[e])return as[e];let r=Tt[t]||Tt.win,s=i.split(" ").map(function(n){return n.split("+").sort(function(a,c){return r.order.indexOf(c)-r.order.indexOf(a)}).map(function(a){let c=r.labels[a]||a;return c=c[0].toUpperCase()+(c.slice(1)||"")})});return as[e]=s}function al(i,t){var e;let r=hl(i,t),s=Tt[t]||Tt.win;return r[ol]||(r[ol]=r.map(function(n){return n.join(s.sep)}).join(" "))}function ul(i,t){var e;let r=hl(i,t),s=Tt[t]||Tt.win;return r[ll]||(r[ll]=r.map(function(n){return"<kbd>"+n.map(function(o){return"<kbd>"+o+"</kbd>"}).join("")+"</kbd>"}).join(" "))}function Wf(){return!0}var Xf=new class{humanize(t,e="auto"){return al(t,e)}htmlify(t,e="auto"){return ul(t,e)}};var zl=ch(vl());var cs=Symbol.for("#getQueryParam"),xl=Symbol.for("#setQueryParam");var Sl=Symbol.for("#query");var Q=class{static parse(t,e){return t instanceof Q?t:new Q(t,e)}constructor(t,e){this.router=e,this.parse(t)}parse(t){let e;return t instanceof URL||(t=new URL(t,this.router.origin)),(e=this.router?.aliases[t.pathname])&&(t.pathname=e),this.url=t,this}get activeΦ(){return this.router.location==this}reparse(){return this.parse(this.url)}get searchParams(){return this.url.searchParams}search(){let t=this.searchParams?this.searchParams.toString():"";return t?"?"+t:""}update(t){if(t instanceof Object)for(let e=0,r=Object.keys(t),s=r.length,n,o;e<s;e++)n=r[e],o=t[n],this.searchParams.set(n,o);else typeof t=="string"&&this.parse(t);return this}clone(){return new Q(this.url.href,this.router)}equals(t){return this.toString()==String(t)}get href(){return this.url.href}get path(){return this.url.href.slice(this.url.origin.length)}get pathname(){return this.url.pathname}get query(){return this[Sl]||(this[Sl]=new Proxy({},{get:this[cs].bind(this),set:this[xl].bind(this)}))}toString(){return this.href}[cs](t,e){return this.searchParams.get(e)}[xl](t,e,r){return this[cs](t,e)!=r&&(r==null||r==""?this.searchParams.delete(e):this.searchParams.set(e,r),this.activeΦ&&(this.router.history.replaceState({},null,this.url.toString()),this.router.touch())),!0}};var wr=class{constructor(t){this.router=t,this.stack=[],this.pos=-1}pushState(t,e,r){return this.stack.length=Math.max(this.pos,0),this.stack[++this.pos]=[t,e,r],this}replaceState(t,e,r){return this.stack.length=this.pos,this.stack[this.pos]=[t,e,r]}popState(){return this.stack.length=this.pos+1,this.pos-=1,this.stack.pop()}currentState(){return this.stack[this.pos]}slice(){return[]}};var Te=class{constructor(t,e,r,s){this.params=s,this.router=t,e&&(this.location=Q.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){return this.location?.update?.(t),this}get path(){return this.location?.path}get url(){return this.location?.toString?.()}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 wl(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var Tr=Symbol.for("#routes"),fs=Symbol.for("#match"),fu=Symbol.for("#symbol"),Tl=Symbol.for("#matches"),ds=new Map,ps={},Ll={},du=/.*/;function pu(i){if(!ds.has(i)){let t=new Map;return ds.set(i,t),t}return ds.get(i)}function mu(i,t){let e=pu(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 ms=class{};function gu(i){if(ps[i])return ps[i];let t=ps[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=Ll[s]||(Ll[s]=new URLSearchParams(s))}return t.path=i,t}var Lr=class{constructor(t){this.router=t,this.fullPath="",this[Tr]={},this[fs]=new ms,this[fs].path=""}route(t){var e;return(e=this[Tr])[t]||(e[t]=new Le(this.router,t,this))}match(){return this[fs]}resolve(t){return"/"}},Le=class{constructor(t,e,r){this.parent=r||t.rootRoute,this.router=t,this.status=200,this.path=e,this[fu]=Symbol(),this[Tl]={},this[Tr]={}}route(t){var e;return(e=this[Tr])[t]||(e[t]=new Le(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=wl(s.join("?").split("&")),l=o.length;n<l;n++){let h=o[n];if(!h)continue;let[a,c]=h.split("=");a[0]=="!"&&(this.dynamic=!0,a=a.slice(1),c=!1),c===""&&(c=!1),c&&c[0]==":"&&(this.dynamic=!0),this.query[a]=c||c!==!1}}if(t=t.replace(/\:(\w+|\*)(\.)?/g,function(s,n,o){e.dynamic=!0,n!="*"&&e.groups.push(n);let l=e.router.matchers[n]||(o?"([^/#.?]+)":"([^/#?]+)");return o?""+l+".":l}),t==""&&e.query)return;if(t=="*")return e.regex=du,e;t="^"+t;let r=t[t.length-1];(r=="$"||r=="/")&&(t=t.slice(0,-1)+"(?=/?[#?]|/?$)"),r!="/"&&r!="$"&&t!="^/"&&(t=t+"(?=[/#?]|$)"),e.regex=new RegExp(t)}match(t=this.router.path){var e,r;let s=this.parent.match(t);if(!s)return null;let n=gu(t),o=n.url,l="";if(s.path&&n.path.indexOf(s.path)==0&&(l=s.path+"/",o=o.slice(l.length)),e=this.regex?o.match(this.regex):[""]){let h=l+e[0],a=[this.$path],c={};if(this.groups.length)for(let b=0,f=wl(e),m=f.length,_;b<m;b++){let S=f[b];(_=this.groups[b-1])&&(c[_]=S,a.push(S))}if(this.query)for(let b=this.query,f=0,m=Object.keys(b),_=m.length,S,F;f<_;f++){S=m[f],F=b[S];let Rr=S,N=n.query?.get?.(S);if(F===!1){if(N)return null;a.push("1");continue}if(F[0]==":"&&(Rr=F.slice(1),F=!0),F==!0&&N||F==N)c[Rr]=N,a.push(N);else return null}let u=a.join("*");c=(r=this[Tl])[u]||(r[u]=c);let p=mu(s,c);return p.path=h,p}return null}resolve(t=this.router.path){if(this.raw[0]=="/"&&!this.dynamic)return this.raw.replace(/\$/g,"");let e=this.parent.match(t),r=this.parent.resolve(t),s;if(this.dynamic){let n=this.match(t);return n?n.path:null}return this.raw[0]=="?"?s=(r||"/")+this.raw:s=r+"/"+this.raw,s.replace(/\$/g,"").replace(/\/\/+/g,"/")}};var Nl=Symbol.for("#__initor__"),Cl=Symbol.for("#__inited__"),Ml=Symbol.for("#__init__"),Nr=Symbol.for("#idler"),Ne=Symbol.for("#resolve"),Ol=Symbol(),Ce=class extends Set{static[Ml](){return this.prototype[Nl]=Ol,this}constructor(){super(),this[Nr]=Promise.resolve(this),this[Nl]===Ol&&this[Cl]&&this[Cl]()}emit(t,...e){return D(this,t,e)}on(t,...e){return V(this,t,...e)}once(t,...e){return I(this,t,...e)}un(t,...e){return Ct(this,t,...e)}add(t){var e=this;if(t instanceof Function&&(t=t()),!this.has(t)){t.then(function(){return e.delete(t)});let r=e.size==0;super.add(t),r&&(this[Nr]=this[Ne]=null,e.emit("busy",e))}return t}delete(t){return super.delete(t)?(this.size==0&&(this[Ne]&&(this[Ne](this),this[Ne]=null),this.emit("idle",this)),!0):!1}get idle(){var t=this;return this[Nr]||(this[Nr]=new Promise(function(e){return t[Ne]=e}))}};Ce[Ml]();function Ts(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Pl=Symbol.for("#__initor__"),kl=Symbol.for("#__inited__"),Bl=Symbol.for("#__init__"),bs=Symbol.for("#enter"),_s=Symbol.for("#resolved"),Or=Symbol.for("#leave"),El=Symbol.for("#afterVisitRouted"),Fl=Symbol.for("#afterVisitRouteTo"),Il=Symbol.for("#router"),gs=Symbol.for("#doc"),ft=Symbol.for("#version"),yu=Symbol.for("#routes"),Al=Symbol.for("#origin"),ys=Symbol.for("#request"),Rl=Symbol.for("#hash"),q=Symbol.for("#routeTo"),Oe=Symbol.for("#path"),st=Symbol.for("#match"),Me=Symbol.for("#options"),bu=Symbol.for("#cache"),Vl=Symbol.for("#unmatched"),Lt=Symbol.for("#active"),_u=Symbol.for("#resolvedPath"),vu=Symbol.for("#dataKey"),xu=Symbol.for("#activeKey"),Pe=Symbol.for("#urlKey"),Ut=Symbol.for("#dataMap"),Cr=Symbol.for("#href"),R=Symbol.for("#route"),Dl=Symbol.for("#context"),Hl=Symbol.for("#afterVisit"),jl=Symbol.for("#routeHandler"),Su=Symbol.for("#parentNode"),wu=Symbol.for("#visitContext"),Gl=Symbol.for("##visitContext"),Tu=Symbol.for("#attachToParent"),Lu=Symbol.for("#detachFromParent"),$l=Symbol();var vs=class{get router(){return this[Il]||(this[Il]=new Mr(this))}};Ts(et.prototype,vs.prototype);function gd(){return!0}var yd=Js(function(){return globalThis.document.router}),Mr=class extends zl.EventEmitter{static[Bl](){return this.prototype[Pl]=$l,this}constructor(t,e={}){super(),this[gs]=t,this[ft]=0,this[yu]={},this.aliases={},this.redirects={},this.rules={},this.matchers={},this.options=e,this.busy=[],this.queue=new Ce,this.root=new Lr(this),this.location=new Q(e.url||t.location.href,this),this.history=new wr(this),this.mode=e.mode||"history",this.setup(),this[Pl]===$l&&this[kl]&&this[kl]()}get origin(){return this[Al]||(this[Al]=this[gs].location.origin)}get query(){return this.location.query}init(){return this.refresh({mode:"replace"}),this}alias(t,e){return this.aliases[t]=e,this.location.reparse(),this}touch(){return this[ft]++}option(t,e){return e==null?this.options[t]:(this.options[t]=e,this)}get realpath(){return this.location.path}get state(){return this.history.state}get states(){return this.history.currentStates}set state(t){}get ctx(){return this[ys]}pushState(t,e,r){return this.history.pushState(t,e||null,String(r))}replaceState(t,e,r){return this.history.replaceState(t,e||null,String(r))}refresh(t={}){if(this.refreshing)return;this.refreshing=!0;let e=this.location,r=Q.parse(t.location||this.realpath,this),s=t.mode,n=this[ys];if(!r.equals(e)||!n||t.state){let o=new Te(this,r,e,t);this[ys]=o,this.emit("beforechange",o),o.aborted&&(!o.forceAbort&&globalThis.window.confirm("Are you sure you want to leave? You might have unsaved changes")?o.aborted=!1:s=="pop"?this.pushState(this.state,null,String(e)):s=="replace"&&this.replaceState(this.state,null,String(e))),o.aborted||(this.location=o.location,s=="push"?this.pushState(o.state,null,String(this.location)):s=="replace"?this.replaceState(o.state,null,String(this.location)):s=="pop"&&(this.history.index=t.index),this.emit("change",o),this.touch(),M())}return this.refreshing=!1,this}onpopstate(t){let e=this.history.index,r=e,s={pop:!0,index:0,from:e,mode:"pop"};try{if(typeof t.state=="string"){let[n,o]=t.state.split("|");r=s.index=parseInt(o),r<e?s.revert=this.history.slice(r+1,e+1).reverse():r>e&&(s.apply=this.history.slice(e+1,r+1))}}catch{}return this.refresh(s),this}onbeforeunload(t){let e=new Te(this,null,this.location,{mode:"unload"});if(this.emit("beforechange",e),e.aborted)return!0}onhashchange(t){return this.emit("hashchange",this[Rl]=this[gs].location.hash),M()}setup(){return 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[q]&&(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[q]&&e[q].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[q]?e[q].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;s<o;s++)l=n[s],h=t[l],e.push([l,globalThis.encodeURI(h)].join("="));return e.join("&")}return t||""}get hash(){return this[Rl]}set hash(t){}match(t){return this.route(t).match(this.path)}route(t){return this.root.route(t)}go(t,e=null){if(typeof t=="object"&&e===null&&(e=t,t=this.path),typeof t=="number")return globalThis.history.go(t),this;let r=this.location.clone().update(t),s=this.history.buildState(e,r.path,!0);return this.refresh({push:!0,mode:"push",location:r,state:s,apply:[s]}),this}replace(t,e=null){typeof t=="object"&&e===null&&(e=t,t=this.path);let r=this.location.clone().update(t),s=this.history.buildState(e,r.path,!1);return this.refresh({replace:!0,mode:"replace",location:r,state:s,apply:[s]})}};Mr[Bl]();var Pr=class{constructor(t,e,r,s={}){this.parent=r,this.node=t,this[Oe]=e,this[st]=null,this[Me]=s,this[bu]={},this[Vl]={},this[Lt]=null,this[_u]=null,this[vu]=Symbol(),this[xu]=Symbol(),this[Pe]=Symbol()}get router(){return this.node.ownerDocument.router}get route(){return(this.parent?this.parent.route:this.router).route(this[Oe])}get match(){return this[st]}get params(){return this[st]||this[Vl]}get state(){let t=this[Ut]||(this[Ut]=new Map),e=this.params,r=this[Ut].get(e);return r||this[Ut].set(e,r={}),r}set state(t){(this[Ut]||(this[Ut]=new Map)).set(this.params,t)}set path(t){this[Oe]!=t&&(this[Oe]=t,!0)&&this.router.touch()}get path(){return this[Oe]}get isActive(){return!!this[Lt]}get activeΦ(){return!!this[Lt]}resolve(){let t=this.router[ft];if(!(this[ft]!=t&&(this[ft]=t,!0)))return;let e=this.route,r=this[Me],s=this.router.path,n=e.match(s),o=this[Lt],l=this[st],h=n!=l,a=n&&n[this[Pe]];return n&&(this[Lt]=!0,this[st]=n,n[this[Pe]]=s),n&&(h||a!=s||!o)&&this[_s](n,l,a),!o&&n&&this[bs](),!n&&(o||o===null)&&(this[Lt]=!1,this[Or]()),this[st]}[bs](){return this.node.flags.remove("not-routed"),this.node.flags.add("routed"),this.node?.routeDidEnter?.(this)}[_s](t,e,r=""){return this.node?.routeDidResolve?.(this,t,e,r)}[Or](){return this.node.flags.add("not-routed"),this.node.flags.remove("routed"),this.node?.routeDidLeave?.(this)}},xs=class extends Pr{[bs](){return this}[_s](){return this}[Or](){return this}resolve(){let t=this.router[ft];if(!(this[ft]!=t&&(this[ft]=t,!0)))return;let e=this[Me],r=this.route,s=this.router.path,n=this.route.resolve(s),o=this.route.match(s);o&&(this[st]=o,this[st][this[Pe]]=s),e.sticky&&this[st]&&(n=this[st][this[Pe]]),this[Cr]!=n&&(this[Cr]=n,!0)&&this.node.nodeName=="A"&&this.node.setAttribute("href",n),this.node.flags.toggle("active",!!o)}go(){return this.resolve(),this[Me]&&this[Me].replace?this.router.replace(this[Cr]):this.router.go(this[Cr])}},Ss=class{get router(){return this.ownerDocument.router}};Ts(L.prototype,Ss.prototype);var ws=class{set route(t){if(this[R]){this[R].path=t;return}let e=t[0]!="/"?this[Dl].route:null;this[R]=new Pr(this,t,e,this.route__),this[Hl]=this[El]}get route(){return this[R]}set routeΞto(t){var e=this;if(this[q]){this[q].path=t;return}let r=t[0]!="/"?this[Dl].route:null;this[R]=this[q]=new xs(this,t,r,this.routeTo__),this[Hl]=this[Fl],e.onclick=function(s){if(!s.altKey&&!s.metaKey&&!s[jl])return s.preventDefault(),s[jl]=e[q],e[q].go()}}[El](){if(this[R]){let t=this[Su],e=t&&t[wu];if(e&&e.matchedRoute&&e.matchedRoute!=this[R]){this[R][Lt]!=!1&&(this[R][Lt]=!1,!0)&&(this[R][Or](),this[R][ft]=-1);return}if(this[R].resolve(),this[R].activeΦ)e.matchedRoute=this[R];else return}if(this.visit&&this.visit(),this[Gl])return this[Gl]=null}[Fl](){if(this[q]&&this[q].resolve(),this.visit)return this.visit()}routeDidEnter(t){return this[Tu]()}routeDidLeave(t){return this[Lu]()}routeDidResolve(t,e,r){var s=this;this.routed instanceof Function&&e!=r&&s.router.queue.add(async function(){s.suspend();let n=await s.routed(e,t.state,r);return s.unsuspend()})}};Ts(d.prototype,ws.prototype);function J(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}function Hs(i,t){let e=Object.getOwnPropertyDescriptors(t);return delete e.constructor,Object.defineProperties(i,e),i}var Ae=Symbol.for("##reactive"),Et=Symbol.for("##referenced"),Ee=Symbol.for("##dereferenced"),kr=Symbol.for("#map"),Ul=Symbol.for("#__init__"),Er=Symbol.for("#child"),ke=Symbol.for("#reactions"),Ls=Symbol.for("#promise"),v={TOUCHING:1<<1,STALE:1<<2,OBJECT:1<<3,RUNNING:1<<4,INVALIDATING:1<<5,POSSIBLY_STALE:1<<6,AUTORUN:1<<7},O=0,ql=!1;var Nu=0,Xl=1,js={META:new Map,VALUE:new Map,REF:new Map},$=Symbol.for("~"),Ql=Symbol.for("~~"),Gs=function(i,t){return t.has(i)||t.set(i,Symbol()),t.get(i)},Ir=function(i){return typeof i=="symbol"?Gs(i,js.VALUE):Symbol.for(i)},$s=function(i){return typeof i=="symbol"?Gs(i,js.META):Symbol.for("#"+i+"__")},Bs=function(i){return typeof i=="symbol"?Gs(i,js.REF):Symbol.for("~"+i)},x=function(i,t){return O&&y.add(i[$]),t},K=function(i,t){return i[$].invalidated(0),t},qt=function(i,t,e){let r=i[$];return r||(r=i[$]=new Ie(v.OBJECT),Object.defineProperties(i,e)),t&&r.addSubscriber(t),i},zs=function(i,t){let e=i[$];return e&&e.removeSubscriber(t),i},Ns=class{constructor(t){this.changes=new Map,this.cleanup(),t&&this.reset(t)}reset(t=[]){return this.array=t,this.initialLength=t.length}cleanup(){return this.idx=0,this.array=null,this.changes.clear(),this.dirty=!1}push(t){if(this.initialLength==0){this.array.indexOf(t)<0&&(this.changes.set(t,1),this.array.push(t),this.idx++);return}let e=this.array[this.idx];if(e===t)return++this.idx;{let r=this.array.indexOf(t),s=this.changes.get(t);if(r===-1)this.array.splice(this.idx,0,t),this.changes.set(t,1),this.idx++;else if(r===this.idx+1)e&&this.changes.set(e,-1),this.array.splice(this.idx,1),++this.idx;else{if(r<this.idx)return;r>this.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 Us(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 Cu(){if(ql!=!0&&(ql=!0,!0))return rn.on("inited",function(i){let t=i[Ql];if(t){let e=i instanceof L,r=i[$]||(i[$]={});for(let s=0,n=Object.keys(t),o=n.length,l,h;s<o;s++){l=n[s],h=t[l];let a=r[l]=new It(i[l],i,h);e||a.call()}e&&(V(i,"mount",function(){var s;s=[];for(let n=0,o=J(Object.values(r)),l=o.length;n<l;n++){let h=o[n];s.push(h instanceof It&&h.activate())}return s}),V(i,"unmount",function(){var s;s=[];for(let n=0,o=J(Object.values(r)),l=o.length;n<l;n++){let h=o[n];s.push(h instanceof It&&h.deactivate())}return s}))}})}function Ou(i,t=Ql){return i.hasOwnProperty(t)||(i[t]=Object.assign({},i[t]||{})),i[t]}var Fe=class{constructor(t,e=0){this.depth=e,this.parent=t,this.target=null,this.patcher=new Ns}get activeΦ(){return y==this}get rootΦ(){return this==Ft}get snapshot(){let t=[],e=this[Er];for(;e&&e.target;)t.push({depth:e.depth,target:e.target,beacon:e.beacon}),e=e[Er];return t}reset(t){return this.tracking=!0,this.target=t,this.beacon=t.beacon,this.patcher.reset(t.observing||(t.observing=[])),this}add(t){if(this.tracking&&t)return this.patcher.push(t)}react(t){return Ft.reactions.add(t)}push(t){return y=this.child.reset(t)}pop(){let t=null;if(this.beacon){t=this.patcher.end();let e=this.patcher.changes;if(e.size)for(let[s,n]of J(e))n===1?s.addSubscriber(this.beacon):s.removeSubscriber(this.beacon)}return this.patcher.cleanup(),this.target=this.beacon=null,y=this.parent,y==Ft&&Ft.flush(),t}get child(){return this[Er]||(this[Er]=new Fe(this,this.depth+1))}get reactions(){return this[ke]||(this[ke]=new Set)}flush(){if(!this[ke])return;let t=this[ke];this[ke]=null;for(let e of J(t))e.call()}},Cs=class extends Fe{add(){return!0}},y=new Cs(null,0),Ft=y,Mu=function(){return y.tracking=!1},Jl=function(i,t,e,r,s){let n=i[e],o=i[s];return o||(o=i[s]=new Ie(0,r,n,t)),y.add(o,i),n},Zl=function(i,t,e,r,s,n){let o=i[e];if(r!=o){i[e]=r;let l=i[n];l&&l.changed(0,r,o)}},Ie=class{constructor(t,e,r,s){return this.id=Xl++,this.observer=null,this.observers=null,r&&r[Et]&&r[Et](this),this}changed(t,e,r){if(Nu++,r&&r[Ee]&&r[Ee](this,e),e&&e[Et]&&e[Et](this,r),this.observer&&this.observer.invalidated(t+1,this,e,r),this.observers)for(let s=0,n=J(this.observers),o=n.length;s<o;s++)n[s].invalidated(t+1,this,e,r);y==Ft&&y.flush()}invalidated(t,e){if(this.observer&&this.observer.invalidated(t+1,this),this.observers)for(let r=0,s=J(this.observers),n=s.length;r<n;r++)s[r].invalidated(t+1,this);return t==0&&y==Ft&&y.flush(),!0}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(t);r>=0&&e.splice(r,1)}reportChanged(){return this.changed(0)}reportObserved(){return y.add(this)}};function Td(i){return new Ie(null,null,null,i)}var Os=class extends Array{push(){return K(this,super.push(...arguments))}pop(){return K(this,super.pop(...arguments))}unshift(){return K(this,super.unshift(...arguments))}shift(){return K(this,super.shift(...arguments))}splice(){return K(this,super.splice(...arguments))}at(){return x(this,super.at(...arguments))}map(){return x(this,super.map(...arguments))}flatMap(){return x(this,super.flatMap(...arguments))}flat(){return x(this,super.flat(...arguments))}filter(){return x(this,super.filter(...arguments))}find(){return x(this,super.find(...arguments))}slice(){return x(this,super.slice(...arguments))}sort(){return x(this,super.sort(...arguments))}get len(){return x(this,this.length)}set len(t){this.length=t,K(this)}toIterable(){return O&&y.add(this[$]),this}[Symbol.iterator](){return x(this,super[Symbol.iterator](...arguments))}},Kl=Us(Os),Ms=class{get len(){return this.length}set len(t){this.length=t}get[Ae](){return qt(this,null,Kl)}[Et](t){return qt(this,t,Kl)}[Ee](t){return zs(this,t)}};Hs(Array.prototype,Ms.prototype);var Ps=class extends Set{has(){return x(this,super.has(...arguments))}keys(){return x(this,super.keys(...arguments))}values(){return x(this,super.values(...arguments))}entries(){return x(this,super.entries(...arguments))}add(){return K(this,super.add(...arguments))}clear(){return K(this,super.clear(...arguments))}delete(){return K(this,super.delete(...arguments))}},Yl=Us(Ps),ks=class{get[Ae](){return qt(this,null,Yl)}[Et](t){return qt(this,t,Yl)}[Ee](t){return zs(this,t)}};Hs(Set.prototype,ks.prototype);var Es=class extends Map{get(){return x(this,super.get(...arguments))}has(){return x(this,super.has(...arguments))}keys(){return x(this,super.keys(...arguments))}values(){return x(this,super.values(...arguments))}entries(){return x(this,super.entries(...arguments))}set(){return K(this,super.set(...arguments))}clear(){return K(this,super.clear(...arguments))}delete(){return K(this,super.delete(...arguments))}},Wl=Us(Es),Fs=class{get[Ae](){return qt(this,null,Wl)}[Et](t){return qt(this,t,Wl)}[Ee](t){return zs(this,t)}};Hs(Map.prototype,Fs.prototype);var Is=class{constructor(t,e={}){var r=this,s;this.name=t,this.options=e;let n=this.key=Ir(t),o=Bs(t),l=r.descriptor={enumerable:(s=e.enumerable)!=null?s:!0,configurable:!1,get:function(){return O?Jl(this,t,n,r,o):this[n]},set:function(a){return O||!!this[o]?Zl(this,t,n,a,r,o):this[n]=a}},h=r.lazyDescriptor={enumerable:!1,configurable:!0,get:function(){return O?(Object.defineProperty(this,t,l),this[t]):this[n]},set:function(a){return this[n]=a,this[o]=null,Object.defineProperty(this,t,l)}}}},As=class{constructor(t=null){this[Ul](t)}[Ul](t=null){var e;this[kr]=t&&(e=t[kr])!==void 0?e:new Map}for(t){let e=this[kr].get(t);return e||this[kr].set(t,e=[]),e}get(t){let e=this.for(t);return e[$]||e[Ae],O&&x(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)}},Rs=class{constructor(t,e){var r=this;this.name=t,this.key=e,this.index=new As;let s=Bs(t),n=r.descriptor={enumerable:!0,configurable:!1,get:function(){return O?Jl(this,t,e,r,s):this[e]},set:function(l){let h=this[e];if(O||!!this[s]?Zl(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)}},Kt=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|=v.STALE|v.POSSIBLY_STALE,this.observer&&this.observer.invalidated(t,this),!!this.observers){for(let r=0,s=J(this.observers),n=s.length;r<n;r++)s[r].invalidated(t,this);return this}}value(){if(O&&y.add(this),(this.flags&v.POSSIBLY_STALE)==0)return this.target[this.vkey];O++,this.flags|=v.RUNNING,y.push(this);let t=this.func.call(this.target);y.pop(this);let e=this.target[this.vkey];return this.target[this.vkey]=t,this.flags&=~(v.STALE|v.POSSIBLY_STALE|v.RUNNING),t!==e&&this.version++,O--,t}},Vs=class{constructor(t,e){this.name=t;let r=Bs(t),s=Ir(t),n=this.descriptor={enumerable:!1,configurable:!1,get:function(){return this[r].value()}},o=this.lazyDescriptor={enumerable:!1,get:function(){let l=this[r]=new Kt(this,e,s);return Object.defineProperty(this,t,n),l.value()}}}},It=class{get beacon(){return this}constructor(t,e,r={}){this.cb=t,this.context=e,this.options=r,this.flags=0,this.id=Xl++,this.cachedComputedVersions=new WeakMap,this.checkComputedValues=new Set,this.observing=[],this.timeout=null}get runningΦ(){return this.flags&v.RUNNING}invalidated(t,e){return e instanceof Kt?(this.flags|=v.POSSIBLY_STALE,this.checkComputedValues.add(e)):this.flags|=v.STALE,y.react(this)}activate(){return this.observing=[],this.cachedComputedVersions=new WeakMap,this.checkComputedValues=new Set,this.call(),this}deactivate(){if(this.timeout&&clearTimeout(this.timeout),this.observing)for(let t=0,e=J(this.observing),r=e.length;t<r;t++)e[t].removeSubscriber(this);return this.observing=this.checkComputedValues=this.cachedComputedVersions=null,this}call(){var t=this;if(O&&console.warn("should not call reaction inside an autorunning context?",Ft.snapshot),this.flags&v.POSSIBLY_STALE&&(this.flags&v.STALE)==0){let e=!1;for(let r of J(this.checkComputedValues)){let s=this.cachedComputedVersions.get(r);r.value();let n=r.version;if(s!=n){e=!0;break}}if(!e){this.flags&=~v.POSSIBLY_STALE,this.checkComputedValues.clear();return}}if(this.options.delay){clearTimeout(this.timeout);let e=this.options.delay;typeof e!="number"&&(e=1e3),t.timeout=setTimeout(function(){return t.run()},e);return}return t.run()}run(){O++,this.flags|=v.RUNNING;let t=y.push(this),e=this.cb.call(this.context,Mu),r=y.pop(this);this.observing=r,this.checkComputedValues.clear();for(let s=0,n=J(r),o=n.length;s<o;s++){let l=n[s];l instanceof Kt&&this.cachedComputedVersions.set(l,l.version)}return this.flags&=~(v.RUNNING|v.STALE|v.POSSIBLY_STALE),O--,e}dispose(){return this.deactivate(),this.cb=this.context=this.options=null,this}},Ds=class extends It{resolve(t){return this.deactivate(),this.resolved=t}then(...t){var e=this;return this.resolved!==void 0?Promise.resolve(this.resolved).then(...t):(this[Ls]||(this[Ls]=new Promise(function(r){return e.resolve=function(s){return e.deactivate(),e.resolved=s,r(s)}})),this[Ls].then(...t))}run(){O++,this.flags|=v.RUNNING;let t=y.push(this),e=this.cb.call(this.context),r=y.pop(this);this.observing=r,this.checkComputedValues.clear();for(let s=0,n=J(r),o=n.length;s<o;s++){let l=n[s];l instanceof Kt&&this.cachedComputedVersions.set(l,l.version)}return this.flags&=~(v.RUNNING|v.STALE|v.POSSIBLY_STALE),O--,e!=!1&&e!=null&&e!=null&&this.resolve(e),e}},Fr=class{constructor(t,e){this.context=e,this.cb=t}run(t=this.context,e=[]){y.push(this);try{let r=this.cb.apply(t,e);return y.pop(this),r}catch(r){throw y.pop(this),r}}};function Ld(i,t={}){let e=new It(i,globalThis,t);return e.call(),e}function Nd(i,t={}){let e=new Ds(i,globalThis,t);return e.call(),e}function Cd(i){return i[Ae]}function Od(i){return new Fr(i,globalThis).run()}function Md(i){return i&&i[$]&&i[$].invalidated(0),i}function Pd(i){return i&&i[$]&&i[$].reportObserved(),i}function kd(i,t,e){let r=$s(t);return(i[r]=new Vs(t,e.get)).lazyDescriptor}function Ed(i,t,e){let r=$s(t),s=Ir(t),n=this[0]||{},o=i[r]=new Is(t,n);return e?(Object.defineProperty(i,s,Object.assign({},e)),o.lazyDescriptor):(Object.defineProperty(i,t,o.lazyDescriptor),null)}function Fd(i,t,e){let r=$s(t);return i.constructor[t],(i[r]=new Rs(t,Ir(t))).lazyDescriptor}function Id(i,t,e){let r=Ou(i),s=this[0]||{};return s.flags=v.AUTORUN,Cu(),r[t]=s,e}function Ad(i,t,e){if(e.value){let r=new Fr(e.value,null);e.value=function(){return r.run(this,arguments)}}return e}function Pu(i){let t;return i?(t=i.toIterable)?t.call(i):i:[]}var th=Symbol.for("#__init__");var Ar=Symbol.for("#watchers");function Vd(i,t,e,r,s,n){return i&&i.$accessor instanceof Function?i=i.$accessor(t,e,r,s,n):n[s]=i,i&&!i.$init&&(i.$init=i.$set||function(){return!0}),i}function Dd(i,t,e=[]){return t.prototype?new t(...e):t.apply(i,e)}var qs=class{constructor(t=null){this[th](t)}[th](t=null){var e;this.local=t&&(e=t.local)!==void 0?e:!1,this.session=t&&(e=t.session)!==void 0?e:!1,this.weak=t&&(e=t.weak)!==void 0?e:!1}watch(t){return(this[Ar]||(this[Ar]=[])).push(t)}$get(t,e){return t[e]}$set(t,e,r,s){if(this[Ar]){let n=this.$get(e,r,s);if(n!=t){e[r]=t;for(let o=0,l=Pu(this[Ar]),h=l.length;o<h;o++){let c=l[o].call(e,t,n,this)}}}else e[r]=t}$accessor(t,e,r,s,n){return n[s]=this}};function Hd(){return new qs}var Ks=function(){return!0},Nt=class{constructor(t,e=""){this.store=t||{},this.cache={raw:{},rich:{}},this.ns=e,this.local=t==globalThis.sessionStorage,this.children=new Map}serialize(t,e){return JSON.stringify(t)}deserialize(t,e){return JSON.parse(t)}getItem(t){let e=String(this.ns)+":"+t;if(this.store instanceof Nt)return this.store.getItem(e);if(this.local&&this.cache.rich[e]!=null)return this.cache.rich[e];let r=this.store.getItem(e);if(r!=null)return this.cache.raw[e]==r?this.cache.rich[e]:(this.cache.raw[e]=r,this.cache.rich[e]=this.deserialize(r,e))}setItem(t,e){var r,s;let n=String(this.ns)+":"+t;if(this.store instanceof Nt)return this.store.setItem(n,e);let o=this.cache.rich[n],l=typeof e;if(this.local&&(this.cache.rich[n]=e),o!==e||l=="object"){let h=this.store.getItem(n);if(e==null)return this.store.removeItem(n),r=this.cache.rich[n],delete this.cache.rich[n],s=this.cache.raw[n],delete this.cache.raw[n],M();{let a=this.serialize(e,n);if(this.cache.rich[n]=e,this.cache.raw[n]=a,h!=a)return this.store.setItem(n,a),M()}}}get(t,e,r){return this.getItem(e)}set(t,e,r,s){return this.setItem(e,r),!0}apply(t,e,[r]){let s=this.children.get(r);return s||this.children.set(r,s=new Proxy(Ks,new Nt(this,r))),s}deleteProperty(t,e){var r;let s=this.ns+e;return r=this.cache[s],delete this.cache[s],this.store.removeItem(s)}},$d=new Proxy(Ks,new Nt(globalThis.localStorage)),Bd=new Proxy(Ks,new Nt(globalThis.sessionStorage));export{qs as Accessor,Uh as CUSTOM_TYPES,lt as Comment,Gt as Component,E as CustomEvent,et as Document,le as DocumentFragment,mr as Easer,d as Element,Pr as ElementRoute,xs as ElementRouteTo,Wt as Emitter,k as Event,$i as EventHandler,yt as Fragment,ce as HTMLButtonElement,P as HTMLElement,Ye as HTMLHtmlElement,ae as HTMLInputElement,li as HTMLLinkElement,fe as HTMLOptionElement,oi as HTMLScriptElement,he as HTMLSelectElement,hi as HTMLStyleElement,ue as HTMLTextAreaElement,jc as ImbaElement,ts as IntersectionEventDefaults,Qe as KeyboardEvent,Dr as LazyProxy,ne as Location,de as MouseEvent,L as Node,Xe as PointerEvent,X as RenderContext,Mr as Router,pe as SVGElement,ai as SVGSVGElement,$r as Scheduler,Un as ShadowRoot,ni as StyleDeclaration,Pt as Text,We as UIEvent,Bn as Window,Vd as accessor,Ld as autorun,Nd as awaits,bh as clearInterval,_h as clearTimeout,zc as colors,M as commit,Td as createAtom,mt as createComment,Kh as createComponent,yc as createDynamic,pc as createElement,gc as createFragment,Cc as createIndexedList,Ec as createKeyedList,wc as createLiveFragment,wn as createRenderContext,mc as createSVGElement,rr as createSlot,ui as createTextNode,cc as customElements,bc as defineTag,Dd as descriptor,zn as document,D as emit,Xu as env,Sf as events,Hr as getDeepPropertyDescriptor,ic as getRenderContext,dc as getSuperTagType,pt as getTagType,me as get_document,rn as hooks,Xf as hotkeys,Hc as hydrate,V as listen,$d as locals,Sa as mount,Cd as observable,I as once,Xt as parseTime,Js as proxy,Wc as render,C as renderContext,Zt as renderer,Md as reportChanged,Pd as reportObserved,yd as router,Od as run,A as scheduler,Ku as serve,Bd as session,yh as setInterval,gh as setTimeout,va as styles,Eu as toCamelCase,Ri as transitions,Ct as unlisten,wa as unmount,Zc as use_dom_bind,nf as use_dom_teleport,af as use_dom_transitions,wf as use_events,Wf as use_events_hotkey,Vf as use_events_intersect,Bo as use_events_keyboard,gr as use_events_mouse,Pf as use_events_pointer,Gf as use_events_resize,Uf as use_events_selection,If as use_events_touch,Vu as use_hooks,gd as use_router,Sc as use_slots,Uc as use_styles,uc as use_window,Ad as αaction,Id as αautorun,kd as αcomputed,Hu as αlazy,Ed as αobservable,Hd as αprop,Fd as αref};