(()=>{"use strict";vart={729:t=>{vare=Object.prototype.hasOwnProperty,s="~";functioni(){}functionn(t,e,s){this.fn=t,this.context=e,this.once=s||!1}functiona(t,e,i,a,h){if("function"!=typeofi)thrownewTypeError("The listener must be a function");varr=newn(i,a||t,h),u=s?s+e:e;returnt._events[u]?t._events[u].fn?t._events[u]=[t._events[u],r]:t._events[u].push(r):(t._events[u]=r,t._eventsCount++),t}functionh(t,e){0==--t._eventsCount?t._events=newi:deletet._events[e]}functionr(){this._events=newi,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(newi).__proto__||(s=!1)),r.prototype.eventNames=function(){vart,i,n=[];if(0===this._eventsCount)returnn;for(iint=this._events)e.call(t,i)&&n.push(s?i.slice(1):i);returnObject.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},r.prototype.listeners=function(t){vare=s?s+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(varn=0,a=i.length,h=newArray(a);n<a;n++)h[n]=i[n].fn;returnh},r.prototype.listenerCount=function(t){vare=s?s+t:t,i=this._events[e];returni?i.fn?1:i.length:0},r.prototype.emit=function(t,e,i,n,a,h){varr=s?s+t:t;if(!this._events[r])return!1;varu,l,o=this._events[r],c=arguments.length;if(o.fn){switch(o.once&&this.removeListener(t,o.fn,void0,!0),c){case1:returno.fn.call(o.context),!0;case2:returno.fn.call(o.context,e),!0;case3:returno.fn.call(o.context,e,i),!0;case4:returno.fn.call(o.context,e,i,n),!0;case5:returno.fn.call(o.context,e,i,n,a),!0;case6:returno.fn.call(o.context,e,i,n,a,h),!0}for(l=1,u=newArray(c-1);l<c;l++)u[l-1]=arguments[l];o.fn.apply(o.context,u)}else{varv,y=o.length;for(l=0;l<y;l++)switch(o[l].once&&this.removeListener(t,o[l].fn,void0,!0),c){case1:o[l].fn.call(o[l].context);break;case2:o[l].fn.call(o[l].context,e);break;case3:o[l].fn.call(o[l].context,e,i);break;case4:o[l].fn.call(o[l].context,e,i,n);break;default:if(!u)for(v=1,u=newArray(c-1);v<c;v++)u[v-1]=arguments[v];o[l].fn.apply(o[l].context,u)}}return!0},r.prototype.on=function(t,e,s){returna(this,t,e,s,!1)},r.prototype.once=function(t,e,s){returna(this,t,e,s,!0)},r.prototype.removeListener=function(t,e,i,n){vara=s?s+t:t;if(!this._events[a])returnthis;if(!e)returnh(this,a),this;varr=this._events[a];if(r.fn)r.fn!==e||n&&!r.once||i&&r.context!==i||h(this,a);else{for(varu=0,l=[],o=r.length;u<o;u++)(r[u].fn!==e||n&&!r[u].once||i&&r[u].context!==i)&&l.push(r[u]);l.length?this._events[a]=1===l.length?l[0]:l:h(this,a)}returnthis},r.prototype.removeAllListeners=function(t){vare;returnt?(e=s?s+t:t,this._events[e]&&h(this,e)):(this._events=newi,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=s,r.EventEmitter=r,t.exports=r}},e={};functions(i){varn=e[i];if(void0!==n)returnn.exports;vara=e[i]={exports:{}};returnt[i](a,a.exports,s),a.exports}s.n=t=>{vare=t&&t.__esModule?()=>t.default:()=>t;returns.d(e,{a:e}),e},s.d=(t,e)=>{for(variine)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{constt=newclass{constructor(){this.states=newMap}get(t){returnthis.states.has(t)?this.states.get(t):null}set(t,e){returnthis.states.set(t,e)}};classe{constructor(){this.inventory=[],this.currentRoom="start",this.context=null}addItem(t){this.inventory.push(t)}removeItem(t){this.inventory=this.inventory.filter((e=>e!=t))}getInventory(){returnthis.inventory.map((t=>this.context.getItem(t)))}}classi{speak(t){}stop(){}setOptions(t){}}classnextendsi{constructor(t={}){super(),this.timeout=100,this.timeout=t.timeout||100,this.init()}init(){this.container=document.createElement("div"),this.container.setAttribute("aria-live","polite"),this.speechDisplay=document.createElement("div"),this.speechDisplay.setAttribute("aria-live","polite"),this.container.append(this.speechDisplay),document.body.appendChild(this.container),document.body.insertBefore(this.container,document.body.firstChild)}speak(t){this.clearDisplay();conste=document.createTextNode(t),s=document.create